@kubex/zinc 1.1.89 → 1.1.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +629 -502
- package/dist/vscode.html-custom-data.json +82 -57
- package/dist/web-types.json +197 -147
- package/dist/zn.d.ts +17 -1
- package/dist/zn.min.js +59 -56
- package/docs/pages/components/editor.md +0 -1
- package/package.json +1 -1
- package/src/components/absolute-container/absolute-container.component.ts +23 -4
- package/src/components/inline-edit/inline-edit.component.ts +5 -0
- package/src/components/input/input.component.ts +4 -1
- package/src/components/scroll-container/scroll-container.component.ts +31 -6
- package/src/components/slash-menu/slash-menu.component.ts +4 -1
- package/src/components/textarea/textarea.component.ts +4 -1
- package/src/components/translations/translations.component.ts +4 -0
package/dist/zn.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $0=$n((btt,T0)=>{var so=-1,Ar=1,Ve=0;function wl(i,o,t,r,n){if(i===o)return i?[[Ve,i]]:[];if(t!=null){var a=F5(i,o,t);if(a)return a}var s=ku(i,o),l=i.substring(0,s);i=i.substring(s),o=o.substring(s),s=Cd(i,o);var d=i.substring(i.length-s);i=i.substring(0,i.length-s),o=o.substring(0,o.length-s);var h=q5(i,o);return l&&h.unshift([Ve,l]),d&&h.push([Ve,d]),Cu(h,n),r&&N5(h),h}function q5(i,o){var t;if(!i)return[[Ar,o]];if(!o)return[[so,i]];var r=i.length>o.length?i:o,n=i.length>o.length?o:i,a=r.indexOf(n);if(a!==-1)return t=[[Ar,r.substring(0,a)],[Ve,n],[Ar,r.substring(a+n.length)]],i.length>o.length&&(t[0][0]=t[2][0]=so),t;if(n.length===1)return[[so,i],[Ar,o]];var s=D5(i,o);if(s){var l=s[0],d=s[1],h=s[2],m=s[3],f=s[4],b=wl(l,h),g=wl(d,m);return b.concat([[Ve,f]],g)}return I5(i,o)}function I5(i,o){for(var t=i.length,r=o.length,n=Math.ceil((t+r)/2),a=n,s=2*n,l=new Array(s),d=new Array(s),h=0;h<s;h++)l[h]=-1,d[h]=-1;l[a+1]=0,d[a+1]=0;for(var m=t-r,f=m%2!==0,b=0,g=0,v=0,x=0,_=0;_<n;_++){for(var k=-_+b;k<=_-g;k+=2){var N=a+k,G;k===-_||k!==_&&l[N-1]<l[N+1]?G=l[N+1]:G=l[N-1]+1;for(var I=G-k;G<t&&I<r&&i.charAt(G)===o.charAt(I);)G++,I++;if(l[N]=G,G>t)g+=2;else if(I>r)b+=2;else if(f){var w=a+m-k;if(w>=0&&w<s&&d[w]!==-1){var $=t-d[w];if(G>=$)return x0(i,o,G,I)}}}for(var L=-_+v;L<=_-x;L+=2){var w=a+L,$;L===-_||L!==_&&d[w-1]<d[w+1]?$=d[w+1]:$=d[w-1]+1;for(var W=$-L;$<t&&W<r&&i.charAt(t-$-1)===o.charAt(r-W-1);)$++,W++;if(d[w]=$,$>t)x+=2;else if(W>r)v+=2;else if(!f){var N=a+m-L;if(N>=0&&N<s&&l[N]!==-1){var G=l[N],I=a+G-N;if($=t-$,G>=$)return x0(i,o,G,I)}}}}return[[so,i],[Ar,o]]}function x0(i,o,t,r){var n=i.substring(0,t),a=o.substring(0,r),s=i.substring(t),l=o.substring(r),d=wl(n,a),h=wl(s,l);return d.concat(h)}function ku(i,o){if(!i||!o||i.charAt(0)!==o.charAt(0))return 0;for(var t=0,r=Math.min(i.length,o.length),n=r,a=0;t<n;)i.substring(a,n)==o.substring(a,n)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return k0(i.charCodeAt(n-1))&&n--,n}function y0(i,o){var t=i.length,r=o.length;if(t==0||r==0)return 0;t>r?i=i.substring(t-r):t<r&&(o=o.substring(0,t));var n=Math.min(t,r);if(i==o)return n;for(var a=0,s=1;;){var l=i.substring(n-s),d=o.indexOf(l);if(d==-1)return a;s+=d,(d==0||i.substring(n-s)==o.substring(0,s))&&(a=s,s++)}}function Cd(i,o){if(!i||!o||i.slice(-1)!==o.slice(-1))return 0;for(var t=0,r=Math.min(i.length,o.length),n=r,a=0;t<n;)i.substring(i.length-n,i.length-a)==o.substring(o.length-n,o.length-a)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return C0(i.charCodeAt(i.length-n))&&n--,n}function D5(i,o){var t=i.length>o.length?i:o,r=i.length>o.length?o:i;if(t.length<4||r.length*2<t.length)return null;function n(g,v,x){for(var _=g.substring(x,x+Math.floor(g.length/4)),k=-1,N="",G,I,w,$;(k=v.indexOf(_,k+1))!==-1;){var L=ku(g.substring(x),v.substring(k)),W=Cd(g.substring(0,x),v.substring(0,k));N.length<W+L&&(N=v.substring(k-W,k)+v.substring(k,k+L),G=g.substring(0,x-W),I=g.substring(x+L),w=v.substring(0,k-W),$=v.substring(k+L))}return N.length*2>=g.length?[G,I,w,$,N]:null}var a=n(t,r,Math.ceil(t.length/4)),s=n(t,r,Math.ceil(t.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var d,h,m,f;i.length>o.length?(d=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],d=l[2],h=l[3]);var b=l[4];return[d,h,m,f,b]}function N5(i){for(var o=!1,t=[],r=0,n=null,a=0,s=0,l=0,d=0,h=0;a<i.length;)i[a][0]==Ve?(t[r++]=a,s=d,l=h,d=0,h=0,n=i[a][1]):(i[a][0]==Ar?d+=i[a][1].length:h+=i[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(d,h)&&(i.splice(t[r-1],0,[so,n]),i[t[r-1]+1][0]=Ar,r--,r--,a=r>0?t[r-1]:-1,s=0,l=0,d=0,h=0,n=null,o=!0)),a++;for(o&&Cu(i),P5(i),a=1;a<i.length;){if(i[a-1][0]==so&&i[a][0]==Ar){var m=i[a-1][1],f=i[a][1],b=y0(m,f),g=y0(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(i.splice(a,0,[Ve,f.substring(0,b)]),i[a-1][1]=m.substring(0,m.length-b),i[a+1][1]=f.substring(b),a++):(g>=m.length/2||g>=f.length/2)&&(i.splice(a,0,[Ve,m.substring(0,g)]),i[a-1][0]=Ar,i[a-1][1]=f.substring(0,f.length-g),i[a+1][0]=so,i[a+1][1]=m.substring(g),a++),a++}a++}}var z0=/[^a-zA-Z0-9]/,w0=/\s/,_0=/[\r\n]/,R5=/\n\r?\n$/,O5=/^\r?\n\r?\n/;function P5(i){function o(g,v){if(!g||!v)return 6;var x=g.charAt(g.length-1),_=v.charAt(0),k=x.match(z0),N=_.match(z0),G=k&&x.match(w0),I=N&&_.match(w0),w=G&&x.match(_0),$=I&&_.match(_0),L=w&&g.match(R5),W=$&&v.match(O5);return L||W?5:w||$?4:k&&!G&&I?3:G||I?2:k||N?1:0}for(var t=1;t<i.length-1;){if(i[t-1][0]==Ve&&i[t+1][0]==Ve){var r=i[t-1][1],n=i[t][1],a=i[t+1][1],s=Cd(r,n);if(s){var l=n.substring(n.length-s);r=r.substring(0,r.length-s),n=l+n.substring(0,n.length-s),a=l+a}for(var d=r,h=n,m=a,f=o(r,n)+o(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=o(r,n)+o(n,a);b>=f&&(f=b,d=r,h=n,m=a)}i[t-1][1]!=d&&(d?i[t-1][1]=d:(i.splice(t-1,1),t--),i[t][1]=h,m?i[t+1][1]=m:(i.splice(t+1,1),t--))}t++}}function Cu(i,o){i.push([Ve,""]);for(var t=0,r=0,n=0,a="",s="",l;t<i.length;){if(t<i.length-1&&!i[t][1]){i.splice(t,1);continue}switch(i[t][0]){case Ar:n++,s+=i[t][1],t++;break;case so:r++,a+=i[t][1],t++;break;case Ve:var d=t-n-r-1;if(o){if(d>=0&&E0(i[d][1])){var h=i[d][1].slice(-1);if(i[d][1]=i[d][1].slice(0,-1),a=h+a,s=h+s,!i[d][1]){i.splice(d,1),t--;var m=d-1;i[m]&&i[m][0]===Ar&&(n++,s=i[m][1]+s,m--),i[m]&&i[m][0]===so&&(r++,a=i[m][1]+a,m--),d=m}}if(S0(i[t][1])){var h=i[t][1].charAt(0);i[t][1]=i[t][1].slice(1),a+=h,s+=h}}if(t<i.length-1&&!i[t][1]){i.splice(t,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=ku(s,a),l!==0&&(d>=0?i[d][1]+=s.substring(0,l):(i.splice(0,0,[Ve,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=Cd(s,a),l!==0&&(i[t][1]=s.substring(s.length-l)+i[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?(i.splice(t-f,f),t=t-f):a.length===0?(i.splice(t-f,f,[Ar,s]),t=t-f+1):s.length===0?(i.splice(t-f,f,[so,a]),t=t-f+1):(i.splice(t-f,f,[so,a],[Ar,s]),t=t-f+2)}t!==0&&i[t-1][0]===Ve?(i[t-1][1]+=i[t][1],i.splice(t,1)):t++,n=0,r=0,a="",s="";break}}i[i.length-1][1]===""&&i.pop();var b=!1;for(t=1;t<i.length-1;)i[t-1][0]===Ve&&i[t+1][0]===Ve&&(i[t][1].substring(i[t][1].length-i[t-1][1].length)===i[t-1][1]?(i[t][1]=i[t-1][1]+i[t][1].substring(0,i[t][1].length-i[t-1][1].length),i[t+1][1]=i[t-1][1]+i[t+1][1],i.splice(t-1,1),b=!0):i[t][1].substring(0,i[t+1][1].length)==i[t+1][1]&&(i[t-1][1]+=i[t+1][1],i[t][1]=i[t][1].substring(i[t+1][1].length)+i[t+1][1],i.splice(t+1,1),b=!0)),t++;b&&Cu(i,o)}function k0(i){return i>=55296&&i<=56319}function C0(i){return i>=56320&&i<=57343}function S0(i){return C0(i.charCodeAt(0))}function E0(i){return k0(i.charCodeAt(i.length-1))}function H5(i){for(var o=[],t=0;t<i.length;t++)i[t][1].length>0&&o.push(i[t]);return o}function _u(i,o,t,r){return E0(i)||S0(r)?null:H5([[Ve,i],[so,o],[Ar,t],[Ve,r]])}function F5(i,o,t){var r=typeof t=="number"?{index:t,length:0}:t.oldRange,n=typeof t=="number"?null:t.newRange,a=i.length,s=o.length;if(r.length===0&&(n===null||n.length===0)){var l=r.index,d=i.slice(0,l),h=i.slice(l),m=n?n.index:null;t:{var f=l+s-a;if(m!==null&&m!==f||f<0||f>s)break t;var b=o.slice(0,f),g=o.slice(f);if(g!==h)break t;var v=Math.min(l,f),x=d.slice(0,v),_=b.slice(0,v);if(x!==_)break t;var k=d.slice(v),N=b.slice(v);return _u(x,k,N,h)}t:{if(m!==null&&m!==l)break t;var G=l,b=o.slice(0,G),g=o.slice(G);if(b!==d)break t;var I=Math.min(a-G,s-G),w=h.slice(h.length-I),$=g.slice(g.length-I);if(w!==$)break t;var k=h.slice(0,h.length-I),N=g.slice(0,g.length-I);return _u(d,k,N,w)}}if(r.length>0&&n&&n.length===0)t:{var x=i.slice(0,r.index),w=i.slice(r.index+r.length),v=x.length,I=w.length;if(s<v+I)break t;var _=o.slice(0,v),$=o.slice(s-I);if(x!==_||w!==$)break t;var k=i.slice(v,a-I),N=o.slice(v,s-I);return _u(x,k,N,w)}return null}function Sd(i,o,t,r){return wl(i,o,t,r,!0)}Sd.INSERT=Ar;Sd.DELETE=so;Sd.EQUAL=Ve;T0.exports=Sd});var Hu=$n((_l,ts)=>{var B5=200,F0="__lodash_hash_undefined__",B0=9007199254740991,qu="[object Arguments]",V5="[object Array]",V0="[object Boolean]",U0="[object Date]",U5="[object Error]",Iu="[object Function]",j0="[object GeneratorFunction]",Ed="[object Map]",G0="[object Number]",Du="[object Object]",A0="[object Promise]",W0="[object RegExp]",Td="[object Set]",K0="[object String]",Y0="[object Symbol]",Eu="[object WeakMap]",X0="[object ArrayBuffer]",$d="[object DataView]",Q0="[object Float32Array]",J0="[object Float64Array]",Z0="[object Int8Array]",t1="[object Int16Array]",e1="[object Int32Array]",r1="[object Uint8Array]",o1="[object Uint8ClampedArray]",n1="[object Uint16Array]",i1="[object Uint32Array]",j5=/[\\^$.*+?()[\]{}|]/g,G5=/\w*$/,W5=/^\[object .+?Constructor\]$/,K5=/^(?:0|[1-9]\d*)$/,Gt={};Gt[qu]=Gt[V5]=Gt[X0]=Gt[$d]=Gt[V0]=Gt[U0]=Gt[Q0]=Gt[J0]=Gt[Z0]=Gt[t1]=Gt[e1]=Gt[Ed]=Gt[G0]=Gt[Du]=Gt[W0]=Gt[Td]=Gt[K0]=Gt[Y0]=Gt[r1]=Gt[o1]=Gt[n1]=Gt[i1]=!0;Gt[U5]=Gt[Iu]=Gt[Eu]=!1;var Y5=typeof global=="object"&&global&&global.Object===Object&&global,X5=typeof self=="object"&&self&&self.Object===Object&&self,On=Y5||X5||Function("return this")(),a1=typeof _l=="object"&&_l&&!_l.nodeType&&_l,L0=a1&&typeof ts=="object"&&ts&&!ts.nodeType&&ts,Q5=L0&&L0.exports===a1;function J5(i,o){return i.set(o[0],o[1]),i}function Z5(i,o){return i.add(o),i}function t4(i,o){for(var t=-1,r=i?i.length:0;++t<r&&o(i[t],t,i)!==!1;);return i}function e4(i,o){for(var t=-1,r=o.length,n=i.length;++t<r;)i[n+t]=o[t];return i}function s1(i,o,t,r){var n=-1,a=i?i.length:0;for(r&&a&&(t=i[++n]);++n<a;)t=o(t,i[n],n,i);return t}function r4(i,o){for(var t=-1,r=Array(i);++t<i;)r[t]=o(t);return r}function o4(i,o){return i?.[o]}function l1(i){var o=!1;if(i!=null&&typeof i.toString!="function")try{o=!!(i+"")}catch{}return o}function M0(i){var o=-1,t=Array(i.size);return i.forEach(function(r,n){t[++o]=[n,r]}),t}function Nu(i,o){return function(t){return i(o(t))}}function q0(i){var o=-1,t=Array(i.size);return i.forEach(function(r){t[++o]=r}),t}var n4=Array.prototype,i4=Function.prototype,Ad=Object.prototype,Su=On["__core-js_shared__"],I0=(function(){var i=/[^.]+$/.exec(Su&&Su.keys&&Su.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),c1=i4.toString,bi=Ad.hasOwnProperty,Ld=Ad.toString,a4=RegExp("^"+c1.call(bi).replace(j5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D0=Q5?On.Buffer:void 0,N0=On.Symbol,R0=On.Uint8Array,s4=Nu(Object.getPrototypeOf,Object),l4=Object.create,c4=Ad.propertyIsEnumerable,d4=n4.splice,O0=Object.getOwnPropertySymbols,p4=D0?D0.isBuffer:void 0,h4=Nu(Object.keys,Object),Tu=os(On,"DataView"),kl=os(On,"Map"),$u=os(On,"Promise"),Au=os(On,"Set"),Lu=os(On,"WeakMap"),Cl=os(Object,"create"),u4=ua(Tu),m4=ua(kl),f4=ua($u),g4=ua(Au),b4=ua(Lu),P0=N0?N0.prototype:void 0,H0=P0?P0.valueOf:void 0;function ha(i){var o=-1,t=i?i.length:0;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function v4(){this.__data__=Cl?Cl(null):{}}function x4(i){return this.has(i)&&delete this.__data__[i]}function y4(i){var o=this.__data__;if(Cl){var t=o[i];return t===F0?void 0:t}return bi.call(o,i)?o[i]:void 0}function z4(i){var o=this.__data__;return Cl?o[i]!==void 0:bi.call(o,i)}function w4(i,o){var t=this.__data__;return t[i]=Cl&&o===void 0?F0:o,this}ha.prototype.clear=v4;ha.prototype.delete=x4;ha.prototype.get=y4;ha.prototype.has=z4;ha.prototype.set=w4;function Pn(i){var o=-1,t=i?i.length:0;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function _4(){this.__data__=[]}function k4(i){var o=this.__data__,t=Md(o,i);if(t<0)return!1;var r=o.length-1;return t==r?o.pop():d4.call(o,t,1),!0}function C4(i){var o=this.__data__,t=Md(o,i);return t<0?void 0:o[t][1]}function S4(i){return Md(this.__data__,i)>-1}function E4(i,o){var t=this.__data__,r=Md(t,i);return r<0?t.push([i,o]):t[r][1]=o,this}Pn.prototype.clear=_4;Pn.prototype.delete=k4;Pn.prototype.get=C4;Pn.prototype.has=S4;Pn.prototype.set=E4;function es(i){var o=-1,t=i?i.length:0;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function T4(){this.__data__={hash:new ha,map:new(kl||Pn),string:new ha}}function $4(i){return qd(this,i).delete(i)}function A4(i){return qd(this,i).get(i)}function L4(i){return qd(this,i).has(i)}function M4(i,o){return qd(this,i).set(i,o),this}es.prototype.clear=T4;es.prototype.delete=$4;es.prototype.get=A4;es.prototype.has=L4;es.prototype.set=M4;function rs(i){this.__data__=new Pn(i)}function q4(){this.__data__=new Pn}function I4(i){return this.__data__.delete(i)}function D4(i){return this.__data__.get(i)}function N4(i){return this.__data__.has(i)}function R4(i,o){var t=this.__data__;if(t instanceof Pn){var r=t.__data__;if(!kl||r.length<B5-1)return r.push([i,o]),this;t=this.__data__=new es(r)}return t.set(i,o),this}rs.prototype.clear=q4;rs.prototype.delete=I4;rs.prototype.get=D4;rs.prototype.has=N4;rs.prototype.set=R4;function O4(i,o){var t=Ou(i)||l8(i)?r4(i.length,String):[],r=t.length,n=!!r;for(var a in i)(o||bi.call(i,a))&&!(n&&(a=="length"||n8(a,r)))&&t.push(a);return t}function d1(i,o,t){var r=i[o];(!(bi.call(i,o)&&m1(r,t))||t===void 0&&!(o in i))&&(i[o]=t)}function Md(i,o){for(var t=i.length;t--;)if(m1(i[t][0],o))return t;return-1}function P4(i,o){return i&&p1(o,Pu(o),i)}function Mu(i,o,t,r,n,a,s){var l;if(r&&(l=a?r(i,n,a,s):r(i)),l!==void 0)return l;if(!Id(i))return i;var d=Ou(i);if(d){if(l=e8(i),!o)return J4(i,l)}else{var h=pa(i),m=h==Iu||h==j0;if(d8(i))return j4(i,o);if(h==Du||h==qu||m&&!a){if(l1(i))return a?i:{};if(l=r8(m?{}:i),!o)return Z4(i,P4(l,i))}else{if(!Gt[h])return a?i:{};l=o8(i,h,Mu,o)}}s||(s=new rs);var f=s.get(i);if(f)return f;if(s.set(i,l),!d)var b=t?t8(i):Pu(i);return t4(b||i,function(g,v){b&&(v=g,g=i[v]),d1(l,v,Mu(g,o,t,r,v,i,s))}),l}function H4(i){return Id(i)?l4(i):{}}function F4(i,o,t){var r=o(i);return Ou(i)?r:e4(r,t(i))}function B4(i){return Ld.call(i)}function V4(i){if(!Id(i)||a8(i))return!1;var o=g1(i)||l1(i)?a4:W5;return o.test(ua(i))}function U4(i){if(!u1(i))return h4(i);var o=[];for(var t in Object(i))bi.call(i,t)&&t!="constructor"&&o.push(t);return o}function j4(i,o){if(o)return i.slice();var t=new i.constructor(i.length);return i.copy(t),t}function Ru(i){var o=new i.constructor(i.byteLength);return new R0(o).set(new R0(i)),o}function G4(i,o){var t=o?Ru(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}function W4(i,o,t){var r=o?t(M0(i),!0):M0(i);return s1(r,J5,new i.constructor)}function K4(i){var o=new i.constructor(i.source,G5.exec(i));return o.lastIndex=i.lastIndex,o}function Y4(i,o,t){var r=o?t(q0(i),!0):q0(i);return s1(r,Z5,new i.constructor)}function X4(i){return H0?Object(H0.call(i)):{}}function Q4(i,o){var t=o?Ru(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}function J4(i,o){var t=-1,r=i.length;for(o||(o=Array(r));++t<r;)o[t]=i[t];return o}function p1(i,o,t,r){t||(t={});for(var n=-1,a=o.length;++n<a;){var s=o[n],l=r?r(t[s],i[s],s,t,i):void 0;d1(t,s,l===void 0?i[s]:l)}return t}function Z4(i,o){return p1(i,h1(i),o)}function t8(i){return F4(i,Pu,h1)}function qd(i,o){var t=i.__data__;return i8(o)?t[typeof o=="string"?"string":"hash"]:t.map}function os(i,o){var t=o4(i,o);return V4(t)?t:void 0}var h1=O0?Nu(O0,Object):u8,pa=B4;(Tu&&pa(new Tu(new ArrayBuffer(1)))!=$d||kl&&pa(new kl)!=Ed||$u&&pa($u.resolve())!=A0||Au&&pa(new Au)!=Td||Lu&&pa(new Lu)!=Eu)&&(pa=function(i){var o=Ld.call(i),t=o==Du?i.constructor:void 0,r=t?ua(t):void 0;if(r)switch(r){case u4:return $d;case m4:return Ed;case f4:return A0;case g4:return Td;case b4:return Eu}return o});function e8(i){var o=i.length,t=i.constructor(o);return o&&typeof i[0]=="string"&&bi.call(i,"index")&&(t.index=i.index,t.input=i.input),t}function r8(i){return typeof i.constructor=="function"&&!u1(i)?H4(s4(i)):{}}function o8(i,o,t,r){var n=i.constructor;switch(o){case X0:return Ru(i);case V0:case U0:return new n(+i);case $d:return G4(i,r);case Q0:case J0:case Z0:case t1:case e1:case r1:case o1:case n1:case i1:return Q4(i,r);case Ed:return W4(i,r,t);case G0:case K0:return new n(i);case W0:return K4(i);case Td:return Y4(i,r,t);case Y0:return X4(i)}}function n8(i,o){return o=o??B0,!!o&&(typeof i=="number"||K5.test(i))&&i>-1&&i%1==0&&i<o}function i8(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}function a8(i){return!!I0&&I0 in i}function u1(i){var o=i&&i.constructor,t=typeof o=="function"&&o.prototype||Ad;return i===t}function ua(i){if(i!=null){try{return c1.call(i)}catch{}try{return i+""}catch{}}return""}function s8(i){return Mu(i,!0,!0)}function m1(i,o){return i===o||i!==i&&o!==o}function l8(i){return c8(i)&&bi.call(i,"callee")&&(!c4.call(i,"callee")||Ld.call(i)==qu)}var Ou=Array.isArray;function f1(i){return i!=null&&p8(i.length)&&!g1(i)}function c8(i){return h8(i)&&f1(i)}var d8=p4||m8;function g1(i){var o=Id(i)?Ld.call(i):"";return o==Iu||o==j0}function p8(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=B0}function Id(i){var o=typeof i;return!!i&&(o=="object"||o=="function")}function h8(i){return!!i&&typeof i=="object"}function Pu(i){return f1(i)?O4(i):U4(i)}function u8(){return[]}function m8(){return!1}ts.exports=s8});var Ju=$n((Sl,is)=>{var f8=200,Qu="__lodash_hash_undefined__",Bd=1,T1=2,$1=9007199254740991,Dd="[object Arguments]",Uu="[object Array]",g8="[object AsyncFunction]",A1="[object Boolean]",L1="[object Date]",M1="[object Error]",q1="[object Function]",b8="[object GeneratorFunction]",Nd="[object Map]",I1="[object Number]",v8="[object Null]",ns="[object Object]",b1="[object Promise]",x8="[object Proxy]",D1="[object RegExp]",Rd="[object Set]",N1="[object String]",y8="[object Symbol]",z8="[object Undefined]",ju="[object WeakMap]",R1="[object ArrayBuffer]",Od="[object DataView]",w8="[object Float32Array]",_8="[object Float64Array]",k8="[object Int8Array]",C8="[object Int16Array]",S8="[object Int32Array]",E8="[object Uint8Array]",T8="[object Uint8ClampedArray]",$8="[object Uint16Array]",A8="[object Uint32Array]",L8=/[\\^$.*+?()[\]{}|]/g,M8=/^\[object .+?Constructor\]$/,q8=/^(?:0|[1-9]\d*)$/,Qt={};Qt[w8]=Qt[_8]=Qt[k8]=Qt[C8]=Qt[S8]=Qt[E8]=Qt[T8]=Qt[$8]=Qt[A8]=!0;Qt[Dd]=Qt[Uu]=Qt[R1]=Qt[A1]=Qt[Od]=Qt[L1]=Qt[M1]=Qt[q1]=Qt[Nd]=Qt[I1]=Qt[ns]=Qt[D1]=Qt[Rd]=Qt[N1]=Qt[ju]=!1;var O1=typeof global=="object"&&global&&global.Object===Object&&global,I8=typeof self=="object"&&self&&self.Object===Object&&self,Hn=O1||I8||Function("return this")(),P1=typeof Sl=="object"&&Sl&&!Sl.nodeType&&Sl,v1=P1&&typeof is=="object"&&is&&!is.nodeType&&is,H1=v1&&v1.exports===P1,Fu=H1&&O1.process,x1=(function(){try{return Fu&&Fu.binding&&Fu.binding("util")}catch{}})(),y1=x1&&x1.isTypedArray;function D8(i,o){for(var t=-1,r=i==null?0:i.length,n=0,a=[];++t<r;){var s=i[t];o(s,t,i)&&(a[n++]=s)}return a}function N8(i,o){for(var t=-1,r=o.length,n=i.length;++t<r;)i[n+t]=o[t];return i}function R8(i,o){for(var t=-1,r=i==null?0:i.length;++t<r;)if(o(i[t],t,i))return!0;return!1}function O8(i,o){for(var t=-1,r=Array(i);++t<i;)r[t]=o(t);return r}function P8(i){return function(o){return i(o)}}function H8(i,o){return i.has(o)}function F8(i,o){return i?.[o]}function B8(i){var o=-1,t=Array(i.size);return i.forEach(function(r,n){t[++o]=[n,r]}),t}function V8(i,o){return function(t){return i(o(t))}}function U8(i){var o=-1,t=Array(i.size);return i.forEach(function(r){t[++o]=r}),t}var j8=Array.prototype,G8=Function.prototype,Vd=Object.prototype,Bu=Hn["__core-js_shared__"],F1=G8.toString,bn=Vd.hasOwnProperty,z1=(function(){var i=/[^.]+$/.exec(Bu&&Bu.keys&&Bu.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),B1=Vd.toString,W8=RegExp("^"+F1.call(bn).replace(L8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w1=H1?Hn.Buffer:void 0,Pd=Hn.Symbol,_1=Hn.Uint8Array,V1=Vd.propertyIsEnumerable,K8=j8.splice,ma=Pd?Pd.toStringTag:void 0,k1=Object.getOwnPropertySymbols,Y8=w1?w1.isBuffer:void 0,X8=V8(Object.keys,Object),Gu=as(Hn,"DataView"),El=as(Hn,"Map"),Wu=as(Hn,"Promise"),Ku=as(Hn,"Set"),Yu=as(Hn,"WeakMap"),Tl=as(Object,"create"),Q8=ba(Gu),J8=ba(El),Z8=ba(Wu),t6=ba(Ku),e6=ba(Yu),C1=Pd?Pd.prototype:void 0,Vu=C1?C1.valueOf:void 0;function fa(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function r6(){this.__data__=Tl?Tl(null):{},this.size=0}function o6(i){var o=this.has(i)&&delete this.__data__[i];return this.size-=o?1:0,o}function n6(i){var o=this.__data__;if(Tl){var t=o[i];return t===Qu?void 0:t}return bn.call(o,i)?o[i]:void 0}function i6(i){var o=this.__data__;return Tl?o[i]!==void 0:bn.call(o,i)}function a6(i,o){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=Tl&&o===void 0?Qu:o,this}fa.prototype.clear=r6;fa.prototype.delete=o6;fa.prototype.get=n6;fa.prototype.has=i6;fa.prototype.set=a6;function Fn(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function s6(){this.__data__=[],this.size=0}function l6(i){var o=this.__data__,t=Ud(o,i);if(t<0)return!1;var r=o.length-1;return t==r?o.pop():K8.call(o,t,1),--this.size,!0}function c6(i){var o=this.__data__,t=Ud(o,i);return t<0?void 0:o[t][1]}function d6(i){return Ud(this.__data__,i)>-1}function p6(i,o){var t=this.__data__,r=Ud(t,i);return r<0?(++this.size,t.push([i,o])):t[r][1]=o,this}Fn.prototype.clear=s6;Fn.prototype.delete=l6;Fn.prototype.get=c6;Fn.prototype.has=d6;Fn.prototype.set=p6;function ga(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function h6(){this.size=0,this.__data__={hash:new fa,map:new(El||Fn),string:new fa}}function u6(i){var o=jd(this,i).delete(i);return this.size-=o?1:0,o}function m6(i){return jd(this,i).get(i)}function f6(i){return jd(this,i).has(i)}function g6(i,o){var t=jd(this,i),r=t.size;return t.set(i,o),this.size+=t.size==r?0:1,this}ga.prototype.clear=h6;ga.prototype.delete=u6;ga.prototype.get=m6;ga.prototype.has=f6;ga.prototype.set=g6;function Hd(i){var o=-1,t=i==null?0:i.length;for(this.__data__=new ga;++o<t;)this.add(i[o])}function b6(i){return this.__data__.set(i,Qu),this}function v6(i){return this.__data__.has(i)}Hd.prototype.add=Hd.prototype.push=b6;Hd.prototype.has=v6;function xi(i){var o=this.__data__=new Fn(i);this.size=o.size}function x6(){this.__data__=new Fn,this.size=0}function y6(i){var o=this.__data__,t=o.delete(i);return this.size=o.size,t}function z6(i){return this.__data__.get(i)}function w6(i){return this.__data__.has(i)}function _6(i,o){var t=this.__data__;if(t instanceof Fn){var r=t.__data__;if(!El||r.length<f8-1)return r.push([i,o]),this.size=++t.size,this;t=this.__data__=new ga(r)}return t.set(i,o),this.size=t.size,this}xi.prototype.clear=x6;xi.prototype.delete=y6;xi.prototype.get=z6;xi.prototype.has=w6;xi.prototype.set=_6;function k6(i,o){var t=Fd(i),r=!t&&P6(i),n=!t&&!r&&Xu(i),a=!t&&!r&&!n&&X1(i),s=t||r||n||a,l=s?O8(i.length,String):[],d=l.length;for(var h in i)(o||bn.call(i,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||I6(h,d)))&&l.push(h);return l}function Ud(i,o){for(var t=i.length;t--;)if(G1(i[t][0],o))return t;return-1}function C6(i,o,t){var r=o(i);return Fd(i)?r:N8(r,t(i))}function Al(i){return i==null?i===void 0?z8:v8:ma&&ma in Object(i)?M6(i):O6(i)}function S1(i){return $l(i)&&Al(i)==Dd}function U1(i,o,t,r,n){return i===o?!0:i==null||o==null||!$l(i)&&!$l(o)?i!==i&&o!==o:S6(i,o,t,r,U1,n)}function S6(i,o,t,r,n,a){var s=Fd(i),l=Fd(o),d=s?Uu:vi(i),h=l?Uu:vi(o);d=d==Dd?ns:d,h=h==Dd?ns:h;var m=d==ns,f=h==ns,b=d==h;if(b&&Xu(i)){if(!Xu(o))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new xi),s||X1(i)?j1(i,o,t,r,n,a):A6(i,o,d,t,r,n,a);if(!(t&Bd)){var g=m&&bn.call(i,"__wrapped__"),v=f&&bn.call(o,"__wrapped__");if(g||v){var x=g?i.value():i,_=v?o.value():o;return a||(a=new xi),n(x,_,t,r,a)}}return b?(a||(a=new xi),L6(i,o,t,r,n,a)):!1}function E6(i){if(!Y1(i)||N6(i))return!1;var o=W1(i)?W8:M8;return o.test(ba(i))}function T6(i){return $l(i)&&K1(i.length)&&!!Qt[Al(i)]}function $6(i){if(!R6(i))return X8(i);var o=[];for(var t in Object(i))bn.call(i,t)&&t!="constructor"&&o.push(t);return o}function j1(i,o,t,r,n,a){var s=t&Bd,l=i.length,d=o.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(i);if(h&&a.get(o))return h==o;var m=-1,f=!0,b=t&T1?new Hd:void 0;for(a.set(i,o),a.set(o,i);++m<l;){var g=i[m],v=o[m];if(r)var x=s?r(v,g,m,o,i,a):r(g,v,m,i,o,a);if(x!==void 0){if(x)continue;f=!1;break}if(b){if(!R8(o,function(_,k){if(!H8(b,k)&&(g===_||n(g,_,t,r,a)))return b.push(k)})){f=!1;break}}else if(!(g===v||n(g,v,t,r,a))){f=!1;break}}return a.delete(i),a.delete(o),f}function A6(i,o,t,r,n,a,s){switch(t){case Od:if(i.byteLength!=o.byteLength||i.byteOffset!=o.byteOffset)return!1;i=i.buffer,o=o.buffer;case R1:return!(i.byteLength!=o.byteLength||!a(new _1(i),new _1(o)));case A1:case L1:case I1:return G1(+i,+o);case M1:return i.name==o.name&&i.message==o.message;case D1:case N1:return i==o+"";case Nd:var l=B8;case Rd:var d=r&Bd;if(l||(l=U8),i.size!=o.size&&!d)return!1;var h=s.get(i);if(h)return h==o;r|=T1,s.set(i,o);var m=j1(l(i),l(o),r,n,a,s);return s.delete(i),m;case y8:if(Vu)return Vu.call(i)==Vu.call(o)}return!1}function L6(i,o,t,r,n,a){var s=t&Bd,l=E1(i),d=l.length,h=E1(o),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in o:bn.call(o,b)))return!1}var g=a.get(i);if(g&&a.get(o))return g==o;var v=!0;a.set(i,o),a.set(o,i);for(var x=s;++f<d;){b=l[f];var _=i[b],k=o[b];if(r)var N=s?r(k,_,b,o,i,a):r(_,k,b,i,o,a);if(!(N===void 0?_===k||n(_,k,t,r,a):N)){v=!1;break}x||(x=b=="constructor")}if(v&&!x){var G=i.constructor,I=o.constructor;G!=I&&"constructor"in i&&"constructor"in o&&!(typeof G=="function"&&G instanceof G&&typeof I=="function"&&I instanceof I)&&(v=!1)}return a.delete(i),a.delete(o),v}function E1(i){return C6(i,B6,q6)}function jd(i,o){var t=i.__data__;return D6(o)?t[typeof o=="string"?"string":"hash"]:t.map}function as(i,o){var t=F8(i,o);return E6(t)?t:void 0}function M6(i){var o=bn.call(i,ma),t=i[ma];try{i[ma]=void 0;var r=!0}catch{}var n=B1.call(i);return r&&(o?i[ma]=t:delete i[ma]),n}var q6=k1?function(i){return i==null?[]:(i=Object(i),D8(k1(i),function(o){return V1.call(i,o)}))}:V6,vi=Al;(Gu&&vi(new Gu(new ArrayBuffer(1)))!=Od||El&&vi(new El)!=Nd||Wu&&vi(Wu.resolve())!=b1||Ku&&vi(new Ku)!=Rd||Yu&&vi(new Yu)!=ju)&&(vi=function(i){var o=Al(i),t=o==ns?i.constructor:void 0,r=t?ba(t):"";if(r)switch(r){case Q8:return Od;case J8:return Nd;case Z8:return b1;case t6:return Rd;case e6:return ju}return o});function I6(i,o){return o=o??$1,!!o&&(typeof i=="number"||q8.test(i))&&i>-1&&i%1==0&&i<o}function D6(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}function N6(i){return!!z1&&z1 in i}function R6(i){var o=i&&i.constructor,t=typeof o=="function"&&o.prototype||Vd;return i===t}function O6(i){return B1.call(i)}function ba(i){if(i!=null){try{return F1.call(i)}catch{}try{return i+""}catch{}}return""}function G1(i,o){return i===o||i!==i&&o!==o}var P6=S1((function(){return arguments})())?S1:function(i){return $l(i)&&bn.call(i,"callee")&&!V1.call(i,"callee")},Fd=Array.isArray;function H6(i){return i!=null&&K1(i.length)&&!W1(i)}var Xu=Y8||U6;function F6(i,o){return U1(i,o)}function W1(i){if(!Y1(i))return!1;var o=Al(i);return o==q1||o==b8||o==g8||o==x8}function K1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=$1}function Y1(i){var o=typeof i;return i!=null&&(o=="object"||o=="function")}function $l(i){return i!=null&&typeof i=="object"}var X1=y1?P8(y1):T6;function B6(i){return H6(i)?k6(i):$6(i)}function V6(){return[]}function U6(){return!1}is.exports=F6});var Q1=$n(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});var j6=Hu(),G6=Ju(),Zu;(function(i){function o(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let d=j6(s);l||(d=Object.keys(d).reduce((h,m)=>(d[m]!=null&&(h[m]=d[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(d[h]=a[h]);return Object.keys(d).length>0?d:void 0}i.compose=o;function t(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((d,h)=>(G6(a[h],s[h])||(d[h]=s[h]===void 0?null:s[h]),d),{});return Object.keys(l).length>0?l:void 0}i.diff=t;function r(a={},s={}){a=a||{};let l=Object.keys(s).reduce((d,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(d[h]=s[h]),d),{});return Object.keys(a).reduce((d,h)=>(a[h]!==s[h]&&s[h]===void 0&&(d[h]=null),d),l)}i.invert=r;function n(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let d=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(d).length>0?d:void 0}i.transform=n})(Zu||(Zu={}));tm.default=Zu});var om=$n(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var em;(function(i){function o(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}i.length=o})(em||(em={}));rm.default=em});var Z1=$n(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var J1=om(),nm=class{constructor(o){this.ops=o,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(o){o||(o=1/0);let t=this.ops[this.index];if(t){let r=this.offset,n=J1.default.length(t);if(o>=n-r?(o=n-r,this.index+=1,this.offset=0):this.offset+=o,typeof t.delete=="number")return{delete:o};{let a={};return t.attributes&&(a.attributes=t.attributes),typeof t.retain=="number"?a.retain=o:typeof t.retain=="object"&&t.retain!==null?a.retain=t.retain:typeof t.insert=="string"?a.insert=t.insert.substr(r,o):a.insert=t.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?J1.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let o=this.ops[this.index];return o?typeof o.delete=="number"?"delete":typeof o.retain=="number"||typeof o.retain=="object"&&o.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let o=this.offset,t=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=o,this.index=t,[r].concat(n)}}else return[]}};im.default=nm});var Ur=$n((Vn,Wd)=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.AttributeMap=Vn.OpIterator=Vn.Op=void 0;var Gd=$0(),W6=Hu(),am=Ju(),va=Q1();Vn.AttributeMap=va.default;var Bn=om();Vn.Op=Bn.default;var wo=Z1();Vn.OpIterator=wo.default;var K6="\0",tx=(i,o)=>{if(typeof i!="object"||i===null)throw new Error(`cannot retain a ${typeof i}`);if(typeof o!="object"||o===null)throw new Error(`cannot retain a ${typeof o}`);let t=Object.keys(i)[0];if(!t||t!==Object.keys(o)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(o)[0]}`);return[t,i[t],o[t]]},Un=class i{constructor(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]}static registerEmbed(o,t){this.handlers[o]=t}static unregisterEmbed(o){delete this.handlers[o]}static getHandler(o){let t=this.handlers[o];if(!t)throw new Error(`no handlers for embed type "${o}"`);return t}insert(o,t){let r={};return typeof o=="string"&&o.length===0?this:(r.insert=o,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))}delete(o){return o<=0?this:this.push({delete:o})}retain(o,t){if(typeof o=="number"&&o<=0)return this;let r={retain:o};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)}push(o){let t=this.ops.length,r=this.ops[t-1];if(o=W6(o),typeof r=="object"){if(typeof o.delete=="number"&&typeof r.delete=="number")return this.ops[t-1]={delete:r.delete+o.delete},this;if(typeof r.delete=="number"&&o.insert!=null&&(t-=1,r=this.ops[t-1],typeof r!="object"))return this.ops.unshift(o),this;if(am(o.attributes,r.attributes)){if(typeof o.insert=="string"&&typeof r.insert=="string")return this.ops[t-1]={insert:r.insert+o.insert},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof r.retain=="number")return this.ops[t-1]={retain:r.retain+o.retain},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this}chop(){let o=this.ops[this.ops.length-1];return o&&typeof o.retain=="number"&&!o.attributes&&this.ops.pop(),this}filter(o){return this.ops.filter(o)}forEach(o){this.ops.forEach(o)}map(o){return this.ops.map(o)}partition(o){let t=[],r=[];return this.forEach(n=>{(o(n)?t:r).push(n)}),[t,r]}reduce(o,t){return this.ops.reduce(o,t)}changeLength(){return this.reduce((o,t)=>t.insert?o+Bn.default.length(t):t.delete?o-t.delete:o,0)}length(){return this.reduce((o,t)=>o+Bn.default.length(t),0)}slice(o=0,t=1/0){let r=[],n=new wo.default(this.ops),a=0;for(;a<t&&n.hasNext();){let s;a<o?s=n.next(o-a):(s=n.next(t-a),r.push(s)),a+=Bn.default.length(s)}return new i(r)}compose(o){let t=new wo.default(this.ops),r=new wo.default(o.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 i(n);for(;t.hasNext()||r.hasNext();)if(r.peekType()==="insert")s.push(r.next());else if(t.peekType()==="delete")s.push(t.next());else{let l=Math.min(t.peekLength(),r.peekLength()),d=t.next(l),h=r.next(l);if(h.retain){let m={};if(typeof d.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")d.retain==null?m.insert=d.insert:m.retain=d.retain;else{let b=d.retain==null?"insert":"retain",[g,v,x]=tx(d[b],h.retain),_=i.getHandler(g);m[b]={[g]:_.compose(v,x,b==="retain")}}let f=va.default.compose(d.attributes,h.attributes,typeof d.retain=="number");if(f&&(m.attributes=f),s.push(m),!r.hasNext()&&am(s.ops[s.ops.length-1],m)){let b=new i(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof d.retain=="number"||typeof d.retain=="object"&&d.retain!==null)&&s.push(h)}return s.chop()}concat(o){let t=new i(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t}diff(o,t){if(this.ops===o.ops)return new i;let r=[this,o].map(d=>d.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:K6;let m=d===o?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new i,a=Gd(r[0],r[1],t,!0),s=new wo.default(this.ops),l=new wo.default(o.ops);return a.forEach(d=>{let h=d[1].length;for(;h>0;){let m=0;switch(d[0]){case Gd.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case Gd.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case Gd.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);am(f.insert,b.insert)?n.retain(m,va.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(o,t=`
|
|
2
|
-
`){let r=new wo.default(this.ops),n=new i,a=0;for(;r.hasNext();){if(r.peekType()!=="insert")return;let s=r.peek(),l=Bn.default.length(s)-r.peekLength(),d=typeof s.insert=="string"?s.insert.indexOf(t,l)-l:-1;if(d<0)n.push(r.next());else if(d>0)n.push(r.next(d));else{if(o(n,r.next(1).attributes||{},a)===!1)return;a+=1,n=new i}}n.length()>0&&o(n,{},a)}invert(o){let t=new i;return this.reduce((r,n)=>{if(n.insert)t.delete(Bn.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 o.slice(r,r+a).forEach(l=>{n.delete?t.push(l):n.retain&&n.attributes&&t.retain(Bn.default.length(l),va.default.invert(n.attributes,l.attributes))}),r+a}else if(typeof n.retain=="object"&&n.retain!==null){let a=o.slice(r,r+1),s=new wo.default(a.ops).next(),[l,d,h]=tx(n.retain,s.insert),m=i.getHandler(l);return t.retain({[l]:m.invert(d,h)},va.default.invert(n.attributes,s.attributes)),r+1}}return r},0),t.chop()}transform(o,t=!1){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);let r=o,n=new wo.default(this.ops),a=new wo.default(r.ops),s=new i;for(;n.hasNext()||a.hasNext();)if(n.peekType()==="insert"&&(t||a.peekType()!=="insert"))s.retain(Bn.default.length(n.next()));else if(a.peekType()==="insert")s.push(a.next());else{let l=Math.min(n.peekLength(),a.peekLength()),d=n.next(l),h=a.next(l);if(d.delete)continue;if(h.delete)s.push(h);else{let m=d.retain,f=h.retain,b=typeof f=="object"&&f!==null?f:l;if(typeof m=="object"&&m!==null&&typeof f=="object"&&f!==null){let g=Object.keys(m)[0];if(g===Object.keys(f)[0]){let v=i.getHandler(g);v&&(b={[g]:v.transform(m[g],f[g],t)})}}s.retain(b,va.default.transform(d.attributes,h.attributes,t))}}return s.chop()}transformPosition(o,t=!1){t=!!t;let r=new wo.default(this.ops),n=0;for(;r.hasNext()&&n<=o;){let a=r.peekLength(),s=r.peekType();if(r.next(),s==="delete"){o-=Math.min(a,o-n);continue}else s==="insert"&&(n<o||!t)&&(o+=a);n+=a}return o}};Un.Op=Bn.default;Un.OpIterator=wo.default;Un.AttributeMap=va.default;Un.handlers={};Vn.default=Un;typeof Wd=="object"&&(Wd.exports=Un,Wd.exports.default=Un)});var gz=$n((vlt,Cm)=>{"use strict";var AT=Object.prototype.hasOwnProperty,Mr="~";function Fl(){}Object.create&&(Fl.prototype=Object.create(null),new Fl().__proto__||(Mr=!1));function LT(i,o,t){this.fn=i,this.context=o,this.once=t||!1}function fz(i,o,t,r,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var a=new LT(t,r||i,n),s=Mr?Mr+o:o;return i._events[s]?i._events[s].fn?i._events[s]=[i._events[s],a]:i._events[s].push(a):(i._events[s]=a,i._eventsCount++),i}function yp(i,o){--i._eventsCount===0?i._events=new Fl:delete i._events[o]}function wr(){this._events=new Fl,this._eventsCount=0}wr.prototype.eventNames=function(){var o=[],t,r;if(this._eventsCount===0)return o;for(r in t=this._events)AT.call(t,r)&&o.push(Mr?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o};wr.prototype.listeners=function(o){var t=Mr?Mr+o:o,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};wr.prototype.listenerCount=function(o){var t=Mr?Mr+o:o,r=this._events[t];return r?r.fn?1:r.length:0};wr.prototype.emit=function(o,t,r,n,a,s){var l=Mr?Mr+o:o;if(!this._events[l])return!1;var d=this._events[l],h=arguments.length,m,f;if(d.fn){switch(d.once&&this.removeListener(o,d.fn,void 0,!0),h){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,n),!0;case 5:return d.fn.call(d.context,t,r,n,a),!0;case 6:return d.fn.call(d.context,t,r,n,a,s),!0}for(f=1,m=new Array(h-1);f<h;f++)m[f-1]=arguments[f];d.fn.apply(d.context,m)}else{var b=d.length,g;for(f=0;f<b;f++)switch(d[f].once&&this.removeListener(o,d[f].fn,void 0,!0),h){case 1:d[f].fn.call(d[f].context);break;case 2:d[f].fn.call(d[f].context,t);break;case 3:d[f].fn.call(d[f].context,t,r);break;case 4:d[f].fn.call(d[f].context,t,r,n);break;default:if(!m)for(g=1,m=new Array(h-1);g<h;g++)m[g-1]=arguments[g];d[f].fn.apply(d[f].context,m)}}return!0};wr.prototype.on=function(o,t,r){return fz(this,o,t,r,!1)};wr.prototype.once=function(o,t,r){return fz(this,o,t,r,!0)};wr.prototype.removeListener=function(o,t,r,n){var a=Mr?Mr+o:o;if(!this._events[a])return this;if(!t)return yp(this,a),this;var s=this._events[a];if(s.fn)s.fn===t&&(!n||s.once)&&(!r||s.context===r)&&yp(this,a);else{for(var l=0,d=[],h=s.length;l<h;l++)(s[l].fn!==t||n&&!s[l].once||r&&s[l].context!==r)&&d.push(s[l]);d.length?this._events[a]=d.length===1?d[0]:d:yp(this,a)}return this};wr.prototype.removeAllListeners=function(o){var t;return o?(t=Mr?Mr+o:o,this._events[t]&&yp(this,t)):(this._events=new Fl,this._eventsCount=0),this};wr.prototype.off=wr.prototype.removeListener;wr.prototype.addListener=wr.prototype.on;wr.prefixed=Mr;wr.EventEmitter=wr;typeof Cm<"u"&&(Cm.exports=wr)});var uf=$n((mc,hf)=>{(function(i,o){typeof mc=="object"&&typeof hf=="object"?hf.exports=o():typeof define=="function"&&define.amd?define([],o):typeof mc=="object"?mc.AirDatepicker=o():i.AirDatepicker=o()})(mc,(function(){return(function(){"use strict";var i={d:function(R,y){for(var S in y)i.o(y,S)&&!i.o(R,S)&&Object.defineProperty(R,S,{enumerable:!0,get:y[S]})},o:function(R,y){return Object.prototype.hasOwnProperty.call(R,y)}},o={};i.d(o,{default:function(){return it}});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(R){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof R=="string"?y.querySelector(R):R}function a(){let{tagName:R="div",className:y="",innerHtml:S="",id:z="",attrs:q={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=document.createElement(R);return y&&M.classList.add(...y.split(" ")),z&&(M.id=z),S&&(M.innerHTML=S),q&&s(M,q),M}function s(R,y){for(let[S,z]of Object.entries(y))z!==void 0&&R.setAttribute(S,z);return R}function l(R){return new Date(R.getFullYear(),R.getMonth()+1,0).getDate()}function d(R){let y=R.getHours(),{hours:S,dayPeriod:z}=h(y);return{year:R.getFullYear(),month:R.getMonth(),fullMonth:R.getMonth()+1<10?"0"+(R.getMonth()+1):R.getMonth()+1,date:R.getDate(),fullDate:R.getDate()<10?"0"+R.getDate():R.getDate(),day:R.getDay(),hours:y,fullHours:m(y),hours12:S,dayPeriod:z,fullHours12:m(S),minutes:R.getMinutes(),fullMinutes:R.getMinutes()<10?"0"+R.getMinutes():R.getMinutes()}}function h(R){return{dayPeriod:R>11?"pm":"am",hours:R%12==0?12:R%12}}function m(R){return R<10?"0"+R:R}function f(R){let y=10*Math.floor(R.getFullYear()/10);return[y,y+9]}function b(){let R=[];for(var y=arguments.length,S=new Array(y),z=0;z<y;z++)S[z]=arguments[z];return S.forEach((q=>{if(typeof q=="object")for(let M in q)q[M]&&R.push(M);else q&&R.push(q)})),R.join(" ")}function g(R,y){let S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.days;if(!R||!y)return!1;let z=d(R),q=d(y);return{[t.days]:z.date===q.date&&z.month===q.month&&z.year===q.year,[t.months]:z.month===q.month&&z.year===q.year,[t.years]:z.year===q.year}[S]}function v(R,y,S){let z=_(R,!1).getTime(),q=_(y,!1).getTime();return S?z>=q:z>q}function x(R,y){return!v(R,y,!0)}function _(R){let y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],S=new Date(R.getTime());return typeof y!="boolean"||y||(function(z){z.setHours(0,0,0,0)})(S),S}function k(R,y,S){R.length?R.forEach((z=>{z.addEventListener(y,S)})):R.addEventListener(y,S)}function N(R,y){return!(!R||R===document||R instanceof DocumentFragment)&&(R.matches(y)?R:N(R.parentNode,y))}function G(R,y,S){return R>S?S:R<y?y:R}function I(R){for(var y=arguments.length,S=new Array(y>1?y-1:0),z=1;z<y;z++)S[z-1]=arguments[z];return S.filter((q=>q)).forEach((q=>{for(let[M,A]of Object.entries(q))if(A!==void 0&&A.toString()==="[object Object]"){let P=R[M]!==void 0?R[M].toString():void 0,U=A.toString(),Y=Array.isArray(A)?[]:{};R[M]=R[M]?P!==U?Y:R[M]:Y,I(R[M],A)}else R[M]=A})),R}function w(R){let y=R;return R instanceof Date||(typeof R=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(R)&&(R+="T00:00:00"),y=new Date(R)),isNaN(y.getTime())&&(console.log(`Unable to convert value "${R}" to Date object`),y=!1),y}function $(R){let y="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+y+")("+R+")($|<|"+y+")","g")}function L(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}class W{constructor(){let{type:y,date:S,dp:z,opts:q,body:M}=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 P=g(A,this.date,this.type);P?this.focus():!P&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()})),L(this,"render",(()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell))),this.type=y,this.singleType=this.type.slice(0,-1),this.date=S,this.dp=z,this.opts=q,this.body=M,this.customData=!1,this.init()}init(){var y,S;let{onRenderCell:z}=this.opts;z&&(this.customData=z({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(y=this.customData)!==null&&y!==void 0&&y.disabled?this.dp.disableDate(this.date):((S=this.customData)===null||S===void 0?void 0:S.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 y;let{year:S,month:z,fullMonth:q,date:M,fullDate:A}=d(this.date),P=((y=this.customData)===null||y===void 0?void 0:y.attrs)||{};this.$cell=a({attrs:{"data-year":S,"data-month":z,"data-date":M,"data-iso-date":`${S}-${q}-${A}`,...P}}),this.$cell.adpCell=this}_getClassName(){var y;let S=new Date,{selectOtherMonths:z,selectOtherYears:q}=this.opts,{minDate:M,maxDate:A,isDateDisabled:P}=this.dp,{day:U}=d(this.date),Y=this._isOutOfMinMaxRange(),ot=P(this.date),et=b("air-datepicker-cell",`-${this.singleType}-`,{"-current-":g(S,this.date,this.type),"-min-date-":M&&g(M,this.date,this.type),"-max-date-":A&&g(A,this.date,this.type)}),at="";switch(this.type){case t.days:at=b({"-weekend-":this.dp.isWeekend(U),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!z||Y||ot});break;case t.months:at=b({"-disabled-":Y});break;case t.years:at=b({"-other-decade-":this.isOtherDecade,"-disabled-":Y||this.isOtherDecade&&!q})}return b(et,at,(y=this.customData)===null||y===void 0?void 0:y.classes).split(" ")}_getHtml(){var y;let{year:S,month:z,date:q}=d(this.date),{showOtherMonths:M,showOtherYears:A}=this.opts;if((y=this.customData)!==null&&y!==void 0&&y.html)return this.customData.html;switch(this.type){case t.days:return!M&&this.isOtherMonth?"":q;case t.months:return this.dp.locale[this.opts.monthsField][z];case t.years:return!A&&this.isOtherDecade?"":S}}_isOutOfMinMaxRange(){let{minDate:y,maxDate:S}=this.dp,{type:z,date:q}=this,{month:M,year:A,date:P}=d(q),U=z===t.days,Y=z===t.years,ot=!!y&&new Date(A,Y?y.getMonth():M,U?P:y.getDate()),et=!!S&&new Date(A,Y?S.getMonth():M,U?P:S.getDate());return y&&S?x(ot,y)||v(et,S):y?x(ot,y):S?v(et,S):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:y,focusDate:S,rangeDateTo:z,rangeDateFrom:q}=this.dp,M=y.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!M)return;let A=q,P=z;if(M===1&&S){let at=v(S,y[0]);A=at?y[0]:S,P=at?S:y[0]}let U=b({"-in-range-":A&&P&&(Y=this.date,ot=A,et=P,v(Y,ot)&&x(Y,et)),"-range-from-":A&&g(this.date,A,this.type),"-range-to-":P&&g(this.date,P,this.type)});var Y,ot,et;U&&this.$cell.classList.add(...U.split(" "))}_handleSelectedStatus(){let y=this.dp._checkIfDateIsSelected(this.date,this.type);y?this.select():!y&&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 tt(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}let ht={[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>`},gt=".air-datepicker-cell";class _t{constructor(y){let{dp:S,type:z,opts:q}=y;tt(this,"handleClick",(M=>{let A=M.target.closest(gt).adpCell;if(A.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let P=this.dp._checkIfDateIsSelected(A.date,A.type);P?this.dp._handleAlreadySelectedDates(P,A.date):this.dp.selectDate(A.date)})),tt(this,"handleDayNameClick",(M=>{let A=M.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(A),datepicker:this.dp})})),tt(this,"onChangeCurrentView",(M=>{M!==this.type?this.hide():(this.show(),this.render())})),tt(this,"onMouseOverCell",(M=>{let A=N(M.target,gt);this.dp.setFocusDate(!!A&&A.adpCell.date)})),tt(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),tt(this,"onClickBody",(M=>{let{onClickDayName:A}=this.opts,P=M.target;P.closest(gt)&&this.handleClick(M),A&&P.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(M)})),tt(this,"onMouseDown",(M=>{this.pressed=!0;let A=N(M.target,gt),P=A&&A.adpCell;g(P.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),g(P.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)})),tt(this,"onMouseMove",(M=>{if(!this.pressed||!this.dp.isMinViewReached)return;M.preventDefault();let A=N(M.target,gt),P=A&&A.adpCell,{selectedDates:U,rangeDateTo:Y,rangeDateFrom:ot}=this.dp;if(!P||P.isDisabled)return;let{date:et}=P;if(U.length===2){if(this.rangeFromFocused&&!v(et,Y)){let{hours:at,minutes:fe}=d(ot);et.setHours(at),et.setMinutes(fe),this.dp.rangeDateFrom=et,this.dp.replaceDate(ot,et)}if(this.rangeToFocused&&!x(et,ot)){let{hours:at,minutes:fe}=d(Y);et.setHours(at),et.setMinutes(fe),this.dp.rangeDateTo=et,this.dp.replaceDate(Y,et)}}})),tt(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),tt(this,"onChangeViewDate",((M,A)=>{if(!this.isVisible)return;let P=f(M),U=f(A);switch(this.dp.currentView){case t.days:if(g(M,A,t.months))return;break;case t.months:if(g(M,A,t.years))return;break;case t.years:if(P[0]===U[0]&&P[1]===U[1])return}this.render()})),tt(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((M=>{this.$cells.appendChild(M.render())}))})),this.dp=S,this.type=z,this.opts=q,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:y,dynamicRange:S}=this.opts;k(this.$el,"mouseover",this.onMouseOverCell),k(this.$el,"mouseout",this.onMouseOutCell),k(this.$el,"click",this.onClickBody),y&&S&&(k(this.$el,"mousedown",this.onMouseDown),k(this.$el,"mousemove",this.onMouseMove),k(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:ht[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,S="",z=this.dp.isWeekend,{onClickDayName:q}=this.opts,M=y,A=0;for(;A<7;){let P=M%7;S+=`<div class="${b("air-datepicker-body--day-name",{[t.cssClassWeekend]:z(P),"-clickable-":!!q})}" data-day-index='${P}'>${this.dp.locale.daysMin[P]}</div>`,A++,M++}return S}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(y){let{type:S,dp:z,opts:q}=this;return new W({type:S,dp:z,opts:q,date:y,body:this})}_generateCells(){_t.getDatesFunction(this.type)(this.dp,(y=>{this.cells.push(this._generateCell(y))}))}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach((y=>y.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(y,S){let{viewDate:z,opts:{fixedHeight:q},locale:{firstDay:M}}=y,A=l(z),{year:P,month:U}=d(z),Y=new Date(P,U,1),ot=new Date(P,U,A),et=Y.getDay()-M,at=6-ot.getDay()+M;et=et<0?et+7:et,at=at>6?at-7:at;let fe=(function(Wi,ph){let{year:$c,month:R_,date:O_}=d(Wi);return new Date($c,R_,O_-ph)})(Y,et),Pr=A+et+at,hr=fe.getDate(),{year:on,month:js}=d(fe),ji=0;q&&(Pr=42);let Gi=[];for(;ji<Pr;){let Wi=new Date(on,js,hr+ji);S&&S(Wi),Gi.push(Wi),ji++}return Gi}static getMonthsDates(y,S){let{year:z}=y.parsedViewDate,q=0,M=[];for(;q<12;){let A=new Date(z,q);M.push(A),S&&S(A),q++}return M}static getYearsDates(y,S){let z=f(y.viewDate),q=z[0]-1,M=z[1]+1,A=q,P=[];for(;A<=M;){let U=new Date(A,0);P.push(U),S&&S(U),A++}return P}static getDatesFunction(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return{[t.days]:_t.getDaysDates,[t.months]:_t.getMonthsDates,[t.years]:_t.getYearsDates}[y]}}function Rt(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}class we{constructor(y){let{dp:S,opts:z}=y;Rt(this,"onClickNav",(q=>{let M=N(q.target,".air-datepicker-nav--action");if(!M)return;let A=M.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:q,nextHtml:M}=this.opts;this.$prev.innerHTML=q,this.$next.innerHTML=M,this._resetNavStatus(),this.render(),this.handleNavStatus()})),Rt(this,"renderDelay",(()=>{setTimeout(this.render)})),Rt(this,"render",(()=>{this.$title.innerHTML=this._getTitle(),(function(q,M){for(let A in M)M[A]?q.classList.add(A):q.classList.remove(A)})(this.$title,{"-disabled-":this.dp.isFinalView})})),this.dp=S,this.opts=z,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:y,opts:S}=this,z=S.navTitles[y.currentView];return typeof z=="function"?z(y):y.formatDate(y.viewDate,z)}handleNavStatus(){let{disableNavWhenOutOfRange:y}=this.opts,{minDate:S,maxDate:z}=this.dp;if(!S&&!z||!y)return;let{year:q,month:M}=this.dp.parsedViewDate,A=!!S&&d(S),P=!!z&&d(z);switch(this.dp.currentView){case t.days:S&&A.month>=M&&A.year>=q&&this._disableNav("prev"),z&&P.month<=M&&P.year<=q&&this._disableNav("next");break;case t.months:S&&A.year>=q&&this._disableNav("prev"),z&&P.year<=q&&this._disableNav("next");break;case t.years:{let U=f(this.dp.viewDate);S&&A.year>=U[0]&&this._disableNav("prev"),z&&P.year<=U[1]&&this._disableNav("next");break}}}_disableNav(y){n('[data-action="'+y+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(y){for(var S=arguments.length,z=new Array(S>1?S-1:0),q=1;q<S;q++)z[q-1]=arguments[q];y.length?y.forEach((M=>{M.classList.remove(...z)})):y.classList.remove(...z)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:y,nextHtml:S}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${y}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${S}</div>`}get isNavIsFunction(){let{navTitles:y}=this.opts;return Object.keys(y).find((S=>typeof y[S]=="function"))}}var Ke={today:{content:R=>R.locale.today,onClick:R=>R.setViewDate(new Date)},clear:{content:R=>R.locale.clear,onClick:R=>R.clear()}};class pr{constructor(y){let{dp:S,opts:z}=y;this.dp=S,this.opts=z,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:y}=this.opts;Array.isArray(y)||(y=[y]),y.forEach((S=>{let z=S;typeof S=="string"&&Ke[S]&&(z=Ke[S]);let q=this.createButton(z);z.onClick&&this.attachEventToButton(q,z.onClick),this.$el.appendChild(q)}))}attachEventToButton(y,S){y.addEventListener("click",(()=>{S(this.dp)}))}createButton(y){let{content:S,className:z,tagName:q="button",attrs:M={}}=y;return a({tagName:q,innerHtml:`<span tabindex='-1'>${typeof S=="function"?S(this.dp):S}</span>`,className:b("air-datepicker-button",z),attrs:M})}render(){this.generateButtons()}}function Ae(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}class Ye{constructor(){let{opts:y,dp:S}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ae(this,"toggleTimepickerIsActive",(q=>{this.dp.timepickerIsActive=q})),Ae(this,"onChangeSelectedDate",(q=>{let{date:M,updateTime:A=!1}=q;M&&(this.setMinMaxTime(M),this.setCurrentTime(!!A&&M),this.addTimeToDate(M))})),Ae(this,"onChangeLastSelectedDate",(q=>{q&&(this.setTime(q),this.render())})),Ae(this,"onChangeInputRange",(q=>{let M=q.target;this[M.getAttribute("name")]=M.value,this.updateText(),this.dp.trigger(t.eventChangeTime,{hours:this.hours,minutes:this.minutes})})),Ae(this,"onMouseEnterLeave",(q=>{let M=q.target.getAttribute("name"),A=this.$minutesText;M==="hours"&&(A=this.$hoursText),A.classList.toggle("-focus-")})),Ae(this,"onFocus",(()=>{this.toggleTimepickerIsActive(!0)})),Ae(this,"onBlur",(()=>{this.toggleTimepickerIsActive(!1)})),this.opts=y,this.dp=S;let{timeFormat:z}=this.dp.locale;z&&(z.match($("h"))||z.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 y="input";navigator.userAgent.match(/trident/gi)&&(y="change"),k(this.$ranges,y,this.onChangeInputRange),k(this.$ranges,"mouseenter",this.onMouseEnterLeave),k(this.$ranges,"mouseleave",this.onMouseEnterLeave),k(this.$ranges,"focus",this.onFocus),k(this.$ranges,"mousedown",this.onFocus),k(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:y,hours:S,displayHours:z,minutes:q,minHours:M,minMinutes:A,maxHours:P,maxMinutes:U,dayPeriod:Y,opts:{hoursStep:ot,minutesStep:et}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">${m(z)}</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">${m(q)}</span> `+(y?`<span class='air-datepicker-time--current-ampm'>${Y}</span>`:"")+`</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row"> <input type="range" name="hours" value="${S}" min="${M}" max="${P}" step="${ot}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${q}" min="${A}" max="${U}" step="${et}"/> </div></div>`}defineDOM(){let y=S=>n(S,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=y('[name="hours"]'),this.$minutes=y('[name="minutes"]'),this.$hoursText=y(".air-datepicker-time--current-hours"),this.$minutesText=y(".air-datepicker-time--current-minutes"),this.$ampm=y(".air-datepicker-time--current-ampm")}setTime(y){this.setMinMaxTime(y),this.setCurrentTime(y)}addTimeToDate(y){y&&(y.setHours(this.hours),y.setMinutes(this.minutes))}setMinMaxTime(y){if(this.setMinMaxTimeFromOptions(),y){let{minDate:S,maxDate:z}=this.dp;S&&g(y,S)&&this.setMinTimeFromMinDate(S),z&&g(y,z)&&this.setMaxTimeFromMaxDate(z)}}setCurrentTime(y){let{hours:S,minutes:z}=y?d(y):this;this.hours=G(S,this.minHours,this.maxHours),this.minutes=G(z,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:y,minMinutes:S,maxHours:z,maxMinutes:q}=this.opts;this.minHours=G(y,0,23),this.minMinutes=G(S,0,59),this.maxHours=G(z,0,23),this.maxMinutes=G(q,0,59)}setMinTimeFromMinDate(y){let{lastSelectedDate:S}=this.dp;this.minHours=y.getHours(),S&&S.getHours()>y.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=y.getMinutes()}setMaxTimeFromMaxDate(y){let{lastSelectedDate:S}=this.dp;this.maxHours=y.getHours(),S&&S.getHours()<y.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=y.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(y){this._hours=y;let{hours:S,dayPeriod:z}=h(y);this.displayHours=this.ampm?S:y,this.dayPeriod=z}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function _e(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}class ri{constructor(y){let{dp:S,opts:z}=y;_e(this,"pressedKeys",new Set),_e(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],q=>q.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],q=>q.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],q=>q.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],q=>q.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],q=>q.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],q=>q.year-=10],[["Control","Shift","ArrowUp"],(q,M)=>M.up()]])),_e(this,"handleHotKey",(q=>{let M=this.hotKeys.get(q),A=d(this.getInitialFocusDate());M(A,this.dp);let{year:P,month:U,date:Y}=A,ot=l(new Date(P,U));ot<Y&&(Y=ot);let et=this.dp.getClampedDate(new Date(P,U,Y));this.dp.setFocusDate(et,{viewDateTransition:!0})})),_e(this,"isHotKeyPressed",(()=>{let q=!1,M=this.pressedKeys.size,A=P=>this.pressedKeys.has(P);for(let[P]of this.hotKeys){if(q)break;if(Array.isArray(P[0]))P.forEach((U=>{q||M!==U.length||(q=U.every(A)&&P)}));else{if(M!==P.length)continue;q=P.every(A)&&P}}return q})),_e(this,"isArrow",(q=>q>=37&&q<=40)),_e(this,"onKeyDown",(q=>{if(!this.dp.visible&&!this.dp.treatAsInline)return;let{key:M,which:A}=q,{dp:P,dp:{focusDate:U},opts:Y}=this;this.registerKey(M);let ot=this.isHotKeyPressed();if(ot)return q.preventDefault(),void this.handleHotKey(ot);if(this.isArrow(A))return q.preventDefault(),void this.focusNextCell(M);if(M==="Enter"){if(P.currentView!==Y.minView)return void P.down();if(U){let et=P._checkIfDateIsSelected(U);return void(et?P._handleAlreadySelectedDates(et,U):P.selectDate(U))}}M==="Escape"&&this.dp.hide()})),_e(this,"onKeyUp",(q=>{this.removeKey(q.key)})),this.dp=S,this.opts=z,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:y}=this.dp;y.addEventListener("keydown",this.onKeyDown),y.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:y}=this.dp;y.removeEventListener("keydown",this.onKeyDown),y.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:y,currentView:S,selectedDates:z,parsedViewDate:{year:q,month:M}}=this.dp,A=y||z[z.length-1];if(!A)switch(S){case t.days:A=new Date(q,M,new Date().getDate());break;case t.months:A=new Date(q,M,1);break;case t.years:A=new Date(q,0,1)}return A}focusNextCell(y){let S=this.getInitialFocusDate(),{currentView:z}=this.dp,{days:q,months:M,years:A}=t,P=d(S),U=P.year,Y=P.month,ot=P.date;switch(y){case"ArrowLeft":z===q&&(ot-=1),z===M&&(Y-=1),z===A&&(U-=1);break;case"ArrowUp":z===q&&(ot-=7),z===M&&(Y-=3),z===A&&(U-=4);break;case"ArrowRight":z===q&&(ot+=1),z===M&&(Y+=1),z===A&&(U+=1);break;case"ArrowDown":z===q&&(ot+=7),z===M&&(Y+=3),z===A&&(U+=4)}let et=this.dp.getClampedDate(new Date(U,Y,ot));this.dp.setFocusDate(et,{viewDateTransition:!0})}registerKey(y){this.pressedKeys.add(y)}removeKey(y){this.pressedKeys.delete(y)}}let qa={on(R,y){this.__events||(this.__events={}),this.__events[R]?this.__events[R].push(y):this.__events[R]=[y]},off(R,y){this.__events&&this.__events[R]&&(this.__events[R]=this.__events[R].filter((S=>S!==y)))},removeAllEvents(){this.__events={}},trigger(R){for(var y=arguments.length,S=new Array(y>1?y-1:0),z=1;z<y;z++)S[z-1]=arguments[z];this.__events&&this.__events[R]&&this.__events[R].forEach((q=>{q(...S)}))}};function mt(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}let Io="",Do="",ut=!1;class it{static buildGlobalContainer(y){ut=!0,Io=a({className:y,id:y}),n("body").appendChild(Io)}constructor(y,S){var z=this;if(mt(this,"viewIndexes",[t.days,t.months,t.years]),mt(this,"next",(()=>{let{year:A,month:P}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,P+1,1));break;case t.months:this.setViewDate(new Date(A+1,P,1));break;case t.years:this.setViewDate(new Date(A+10,0,1))}})),mt(this,"prev",(()=>{let{year:A,month:P}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,P-1,1));break;case t.months:this.setViewDate(new Date(A-1,P,1));break;case t.years:this.setViewDate(new Date(A-10,0,1))}})),mt(this,"_finishHide",(()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)})),mt(this,"setPosition",(function(A){let P=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(A=A||z.opts.position)=="function")return void(z.customHide=A({$datepicker:z.$datepicker,$target:z.$el,$pointer:z.$pointer,isViewChange:P,done:z._finishHide}));let U,Y,{isMobile:ot}=z.opts,et=z.$el.getBoundingClientRect(),at=z.$el.getBoundingClientRect(),fe=z.$datepicker.offsetParent,Pr=z.$el.offsetParent,hr=z.$datepicker.getBoundingClientRect(),on=A.split(" "),js=window.scrollY,ji=window.scrollX,Gi=z.opts.offset,Wi=on[0],ph=on[1];if(ot)z.$datepicker.style.cssText="left: 50%; top: 50%";else{if(fe===Pr&&fe!==document.body&&(at={top:z.$el.offsetTop,left:z.$el.offsetLeft,width:et.width,height:z.$el.offsetHeight},js=0,ji=0),fe!==Pr&&fe!==document.body){let $c=fe.getBoundingClientRect();at={top:et.top-$c.top,left:et.left-$c.left,width:et.width,height:et.height},js=0,ji=0}switch(Wi){case"top":U=at.top-hr.height-Gi;break;case"right":Y=at.left+at.width+Gi;break;case"bottom":U=at.top+at.height+Gi;break;case"left":Y=at.left-hr.width-Gi}switch(ph){case"top":U=at.top;break;case"right":Y=at.left+at.width-hr.width;break;case"bottom":U=at.top+at.height-hr.height;break;case"left":Y=at.left;break;case"center":/left|right/.test(Wi)?U=at.top+at.height/2-hr.height/2:Y=at.left+at.width/2-hr.width/2}z.$datepicker.style.cssText=`left: ${Y+ji}px; top: ${U+js}px`}})),mt(this,"_setInputValue",(()=>{let{opts:A,$altField:P,locale:{dateFormat:U}}=this,{altFieldDateFormat:Y,altField:ot}=A;ot&&P&&(P.value=this._getInputValue(Y)),this.$el.value=this._getInputValue(U),this.$el.dispatchEvent(new Event("change"))})),mt(this,"_getInputValue",(A=>{let{selectedDates:P,opts:U}=this,{multipleDates:Y,multipleDatesSeparator:ot}=U;if(!P.length)return"";let et=typeof A=="function",at=et?A(Y?P:P[0]):P.map((fe=>this.formatDate(fe,A)));return at=et?at:at.join(ot),at})),mt(this,"_checkIfDateIsSelected",(function(A){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.days,U=!1;return z.selectedDates.some((Y=>{let ot=g(A,Y,P);return U=ot&&Y,ot})),U})),mt(this,"_scheduleCallAfterTransition",(A=>{this._cancelScheduledCall(),A&&A(!1),this._onTransitionEnd=()=>{A&&A(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})})),mt(this,"_cancelScheduledCall",(()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)})),mt(this,"setViewDate",(A=>{if(!((A=w(A))instanceof Date)||g(A,this.viewDate))return;let P=this.viewDate;this.viewDate=A;let{onChangeViewDate:U}=this.opts;if(U){let{month:Y,year:ot}=this.parsedViewDate;U({month:Y,year:ot,decade:this.curDecade})}this.trigger(t.eventChangeViewDate,A,P)})),mt(this,"setFocusDate",(function(A){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!A||(A=w(A))instanceof Date)&&(z.focusDate=A,z.trigger(t.eventChangeFocusDate,A,P))})),mt(this,"setCurrentView",(function(A){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(z.viewIndexes.includes(A)){if(z.currentView=A,z.elIsInput&&z.visible&&z.setPosition(void 0,!0),z.trigger(t.eventChangeCurrentView,A),!z.views[A]){let U=z.views[A]=new _t({dp:z,opts:z.opts,type:A});z.shouldUpdateDOM&&z.$content.appendChild(U.$el)}z.opts.onChangeView&&!P.silent&&z.opts.onChangeView(A)}})),mt(this,"_updateLastSelectedDate",(A=>{this.lastSelectedDate=A,this.trigger(t.eventChangeLastSelectedDate,A)})),mt(this,"destroy",(()=>{if(this.isDestroyed)return;let{showEvent:A,isMobile:P}=this.opts,U=this.$datepicker.parentNode;U&&U.removeChild(this.$datepicker),this.$el.removeEventListener(A,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),P&&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})),mt(this,"update",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=I({},z.opts),{silent:Y}=P;I(z.opts,A);let{timepicker:ot,buttons:et,range:at,selectedDates:fe,isMobile:Pr}=z.opts,hr=z.visible||z.treatAsInline;z._createMinMaxDates(),z._limitViewDateByMaxMinDates(),z._handleLocale(),fe&&(z.selectedDates=[],z.selectDate(fe,{silent:Y})),A.view&&z.setCurrentView(A.view,{silent:Y}),z._setInputValue(),U.range&&!at?(z.rangeDateTo=!1,z.rangeDateFrom=!1):!U.range&&at&&z.selectedDates.length&&(z.rangeDateFrom=z.selectedDates[0],z.rangeDateTo=z.selectedDates[1]),U.timepicker&&!ot?(hr&&z.timepicker.destroy(),z.timepicker=!1,z.$timepicker.parentNode.removeChild(z.$timepicker)):!U.timepicker&&ot&&z._addTimepicker(),!U.buttons&&et?z._addButtons():U.buttons&&!et?(z.buttons.destroy(),z.$buttons.parentNode.removeChild(z.$buttons)):hr&&U.buttons&&et&&z.buttons.clearHtml().render(),!U.isMobile&&Pr?(z.treatAsInline||Do||z._createMobileOverlay(),z._addMobileAttributes(),z.visible&&z._showMobileOverlay()):U.isMobile&&!Pr&&(z._removeMobileAttributes(),z.visible&&(Do.classList.remove("-active-"),typeof z.opts.position!="function"&&z.setPosition())),hr&&(z.nav.update(),z.views[z.currentView].render(),z.currentView===t.days&&z.views[z.currentView].renderDayNames())})),mt(this,"disableDate",((A,P)=>{(Array.isArray(A)?A:[A]).forEach((U=>{let Y=w(U);if(!Y)return;let ot=P?"delete":"add";this.disabledDates[ot](this.formatDate(Y,"yyyy-MM-dd"));let et=this.getCell(Y,this.currentViewSingular);et&&et.adpCell.render()}),[])})),mt(this,"enableDate",(A=>{this.disableDate(A,!0)})),mt(this,"isDateDisabled",(A=>{let P=w(A);return this.disabledDates.has(this.formatDate(P,"yyyy-MM-dd"))})),mt(this,"isOtherMonth",(A=>{let{month:P}=d(A);return P!==this.parsedViewDate.month})),mt(this,"isOtherYear",(A=>{let{year:P}=d(A);return P!==this.parsedViewDate.year})),mt(this,"isOtherDecade",(A=>{let{year:P}=d(A),[U,Y]=f(this.viewDate);return P<U||P>Y})),mt(this,"_onChangeSelectedDate",(A=>{let{silent:P}=A;setTimeout((()=>{this._setInputValue(),this.opts.onSelect&&!P&&this._triggerOnSelect()}))})),mt(this,"_onChangeFocusedDate",(function(A){let{viewDateTransition:P}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!A)return;let U=!1;P&&(U=z.isOtherMonth(A)||z.isOtherYear(A)||z.isOtherDecade(A)),U&&z.setViewDate(A),z.opts.onFocus&&z.opts.onFocus({datepicker:z,date:A})})),mt(this,"_onChangeTime",(A=>{let{hours:P,minutes:U}=A,Y=new Date,{lastSelectedDate:ot,opts:{onSelect:et}}=this,at=ot;ot||(at=Y);let fe=this.getCell(at,this.currentViewSingular),Pr=fe&&fe.adpCell;Pr&&Pr.isDisabled||(at.setHours(P),at.setMinutes(U),ot?(this._setInputValue(),et&&this._triggerOnSelect()):this.selectDate(at))})),mt(this,"_onFocus",(A=>{this.visible||this.show()})),mt(this,"_onBlur",(A=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()})),mt(this,"_onMouseDown",(A=>{this.inFocus=!0})),mt(this,"_onMouseUp",(A=>{this.inFocus=!1,this.$el.focus()})),mt(this,"_onResize",(()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()})),mt(this,"_onClickOverlay",(()=>{this.visible&&this.hide()})),mt(this,"getViewDates",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return _t.getDatesFunction(A)(z)})),mt(this,"isWeekend",(A=>this.opts.weekends.includes(A))),mt(this,"getClampedDate",(A=>{let{minDate:P,maxDate:U}=this,Y=A;return U&&v(A,U)?Y=U:P&&x(A,P)&&(Y=P),Y})),this.$el=n(y),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=I({},r,S),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||!1);let{view:q,startDate:M}=this.opts;M||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=w(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=q,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:y,treatAsInline:S,opts:{inline:z,isMobile:q,selectedDates:M,keyboardNav:A,onlyTimepicker:P}}=this,U=n("body");(!ut||ut&&Io&&!U.contains(Io))&&!z&&this.elIsInput&&!this.$customContainer&&it.buildGlobalContainer(it.defaultGlobalContainerId),!q||Do||S||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(z||this._bindEvents(),A&&!P&&(this.keyboardNav=new ri({dp:this,opts:y}))),M&&this.selectDate(M,{silent:!0}),this.opts.visible&&!S&&this.show(),q&&!S&&this.$el.setAttribute("readonly",!0),S&&this._createComponents()}_createMobileOverlay(){Do=a({className:"air-datepicker-overlay"}),Io.appendChild(Do)}_createComponents(){let{opts:y,treatAsInline:S,opts:{inline:z,buttons:q,timepicker:M,position:A,classes:P,onlyTimepicker:U,isMobile:Y}}=this;this._buildBaseHtml(),this.elIsInput&&(z||this._setPositionClasses(A)),!z&&this.elIsInput||this.$datepicker.classList.add("-inline-"),P&&this.$datepicker.classList.add(...P.split(" ")),U&&this.$datepicker.classList.add("-only-timepicker-"),Y&&!S&&this._addMobileAttributes(),this.views[this.currentView]=new _t({dp:this,type:this.currentView,opts:y}),this.nav=new we({dp:this,opts:y}),M&&this._addTimepicker(),q&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let y in this.views)this.views[y].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){Do.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Do.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:y,maxDate:S}=this.opts;this.minDate=!!y&&w(y),this.maxDate=!!S&&w(S)}_addTimepicker(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new Ye({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 pr({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:y}=this.opts;var S,z;this.elIsInput?y?(S=this.$datepicker,(z=this.$el).parentNode.insertBefore(S,z.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:y,dateFormat:S,firstDay:z,timepicker:q,onlyTimepicker:M,timeFormat:A,dateTimeSeparator:P}=this.opts;var U;this.locale=(U=y,JSON.parse(JSON.stringify(U))),S&&(this.locale.dateFormat=S),A!==void 0&&A!==""&&(this.locale.timeFormat=A);let{timeFormat:Y}=this.locale;if(z!==""&&(this.locale.firstDay=z),q&&typeof S!="function"){let ot=Y?P:"";this.locale.dateFormat=[this.locale.dateFormat,Y||""].join(ot)}M&&typeof S!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(y){if(typeof y=="function")return void this.$datepicker.classList.add("-custom-position-");let S=(y=y.split(" "))[0],z=`air-datepicker -${S}-${y[1]}- -from-${S}-`;this.$datepicker.classList.add(...z.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:y,minDate:S,maxDate:z}=this;z&&v(y,z)&&this.setViewDate(z),S&&x(y,S)&&this.setViewDate(S)}formatDate(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,S=arguments.length>1?arguments[1]:void 0;if(y=w(y),!(y instanceof Date))return;let z=S,q=this.locale,M=d(y),A=M.dayPeriod,P=f(y),U=it.replacer,Y={T:y.getTime(),m:M.minutes,mm:M.fullMinutes,h:M.hours12,hh:M.fullHours12,H:M.hours,HH:M.fullHours,aa:A,AA:A.toUpperCase(),E:q.daysShort[M.day],EEEE:q.days[M.day],d:M.date,dd:M.fullDate,M:M.month+1,MM:M.fullMonth,MMM:q.monthsShort[M.month],MMMM:q.months[M.month],yy:M.year.toString().slice(-2),yyyy:M.year,yyyy1:P[0],yyyy2:P[1]};for(let[ot,et]of Object.entries(Y))z=U(z,$(ot),et);return z}down(y){this._handleUpDownActions(y,"down")}up(y){this._handleUpDownActions(y,"up")}selectDate(y){let S,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:q,parsedViewDate:M,selectedDates:A}=this,{updateTime:P,silent:U}=z,{moveToOtherMonthsOnSelect:Y,moveToOtherYearsOnSelect:ot,multipleDates:et,range:at,autoClose:fe,onBeforeSelect:Pr}=this.opts,hr=A.length;if(Array.isArray(y))return y.forEach((on=>{this.selectDate(on,z)})),new Promise((on=>{setTimeout(on)}));if((y=w(y))instanceof Date){if(Pr&&!U&&!Pr({date:y,datepicker:this}))return Promise.resolve();if(q===t.days&&y.getMonth()!==M.month&&Y&&(S=new Date(y.getFullYear(),y.getMonth(),1)),q===t.years&&y.getFullYear()!==M.year&&ot&&(S=new Date(y.getFullYear(),0,1)),S&&this.setViewDate(S),et&&!at){if(hr===et)return;this._checkIfDateIsSelected(y)||A.push(y)}else if(at)switch(hr){case 1:A.push(y),this.rangeDateTo||(this.rangeDateTo=y),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=y),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[y],this.rangeDateFrom=y,this.rangeDateTo="";break;default:this.selectedDates=[y],this.rangeDateFrom=y}else this.selectedDates=[y];return this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,silent:z?.silent,date:y,updateTime:P}),this._updateLastSelectedDate(y),fe&&!this.timepickerIsActive&&this.visible&&(et||at?at&&hr===1&&this.hide():this.hide()),new Promise((on=>{setTimeout(on)}))}}unselectDate(y){let S=this.selectedDates,z=this;if((y=w(y))instanceof Date)return S.some(((q,M)=>{if(g(q,y))return S.splice(M,1),z.selectedDates.length?(z.rangeDateTo="",z.rangeDateFrom=S[0],z._updateLastSelectedDate(z.selectedDates[z.selectedDates.length-1])):(z.rangeDateFrom="",z.rangeDateTo="",z._updateLastSelectedDate(!1)),this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,date:y}),!0}))}replaceDate(y,S){let z=this.selectedDates.find((M=>g(M,y,this.currentView))),q=this.selectedDates.indexOf(z);q<0||g(this.selectedDates[q],S,this.currentView)||(this.selectedDates[q]=S,this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,date:S,updateTime:!0}),this._updateLastSelectedDate(S))}clear(){let y=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:y.silent}),new Promise((S=>{setTimeout(S)}))}show(){let{onShow:y,isMobile:S}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,y&&this._scheduleCallAfterTransition(y),S&&this._showMobileOverlay()}hide(){let{onHide:y,isMobile:S}=this.opts,z=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((q=>{!this.customHide&&(q&&z||!q&&!z)&&this._finishHide(),y&&y(q)})),S&&Do.classList.remove("-active-")}_triggerOnSelect(){let y=[],S=[],{selectedDates:z,locale:q,opts:{onSelect:M,multipleDates:A,range:P}}=this,U=A||P,Y=typeof q.dateFormat=="function";z.length&&(y=z.map(_),S=Y?A?q.dateFormat(y):y.map((ot=>q.dateFormat(ot))):y.map((ot=>this.formatDate(ot,q.dateFormat)))),M({date:U?y:y[0],formattedDate:U?S:S[0],datepicker:this})}_handleAlreadySelectedDates(y,S){let{selectedDates:z,rangeDateFrom:q,rangeDateTo:M}=this,{range:A,toggleSelected:P}=this.opts,U=z.length,Y=typeof P=="function"?P({datepicker:this,date:S}):P,ot=!!(A&&U===1&&y),et=ot?_(S):S;A&&!Y&&(U!==2&&this.selectDate(et),U===2&&g(q,M))||(Y?this.unselectDate(et):this._updateLastSelectedDate(ot?et:y))}_handleUpDownActions(y,S){if(!((y=w(y||this.focusDate||this.viewDate))instanceof Date))return;let z=S==="up"?this.viewIndex+1:this.viewIndex-1;z>2&&(z=2),z<0&&(z=0),this.setViewDate(new Date(y.getFullYear(),y.getMonth(),1)),this.setCurrentView(this.viewIndexes[z])}getCell(y){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.day;if(!((y=w(y))instanceof Date))return;let{year:z,month:q,date:M}=d(y),A=`[data-year="${z}"]`,P=`[data-month="${q}"]`,U={[t.day]:`${A}${P}[data-date="${M}"]`,[t.month]:`${A}${P}`,[t.year]:`${A}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(U[S]):void 0}_showMobileOverlay(){Do.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((y,S)=>parseFloat(S)+y),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return d(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return f(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===t.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===t.days}get $container(){return this.$customContainer||Io}static replacer(y,S,z){return y.replace(S,(function(q,M,A,P){return M+z+P}))}}var xt;return mt(it,"defaults",r),mt(it,"version","3.6.0"),mt(it,"defaultGlobalContainerId","air-datepicker-global-container"),xt=it.prototype,Object.assign(xt,qa),o.default})()}))});var Ws=globalThis,og=i=>i,Ac=Ws.trustedTypes,ng=Ac?Ac.createPolicy("lit-html",{createHTML:i=>i}):void 0,uh="$lit$",An=`lit$${Math.random().toFixed(9).slice(2)}$`,mh="?"+An,H_=`<${mh}>`,Xi=document,Ks=()=>Xi.createComment(""),Ys=i=>i===null||typeof i!="object"&&typeof i!="function",fh=Array.isArray,dg=i=>fh(i)||typeof i?.[Symbol.iterator]=="function",hh=`[
|
|
1
|
+
import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $0=$n((gtt,T0)=>{var so=-1,Ar=1,Ve=0;function wl(i,o,t,r,n){if(i===o)return i?[[Ve,i]]:[];if(t!=null){var a=F5(i,o,t);if(a)return a}var s=ku(i,o),l=i.substring(0,s);i=i.substring(s),o=o.substring(s),s=Cd(i,o);var d=i.substring(i.length-s);i=i.substring(0,i.length-s),o=o.substring(0,o.length-s);var h=q5(i,o);return l&&h.unshift([Ve,l]),d&&h.push([Ve,d]),Cu(h,n),r&&N5(h),h}function q5(i,o){var t;if(!i)return[[Ar,o]];if(!o)return[[so,i]];var r=i.length>o.length?i:o,n=i.length>o.length?o:i,a=r.indexOf(n);if(a!==-1)return t=[[Ar,r.substring(0,a)],[Ve,n],[Ar,r.substring(a+n.length)]],i.length>o.length&&(t[0][0]=t[2][0]=so),t;if(n.length===1)return[[so,i],[Ar,o]];var s=D5(i,o);if(s){var l=s[0],d=s[1],h=s[2],m=s[3],f=s[4],b=wl(l,h),g=wl(d,m);return b.concat([[Ve,f]],g)}return I5(i,o)}function I5(i,o){for(var t=i.length,r=o.length,n=Math.ceil((t+r)/2),a=n,s=2*n,l=new Array(s),d=new Array(s),h=0;h<s;h++)l[h]=-1,d[h]=-1;l[a+1]=0,d[a+1]=0;for(var m=t-r,f=m%2!==0,b=0,g=0,v=0,x=0,_=0;_<n;_++){for(var k=-_+b;k<=_-g;k+=2){var N=a+k,G;k===-_||k!==_&&l[N-1]<l[N+1]?G=l[N+1]:G=l[N-1]+1;for(var I=G-k;G<t&&I<r&&i.charAt(G)===o.charAt(I);)G++,I++;if(l[N]=G,G>t)g+=2;else if(I>r)b+=2;else if(f){var w=a+m-k;if(w>=0&&w<s&&d[w]!==-1){var $=t-d[w];if(G>=$)return x0(i,o,G,I)}}}for(var L=-_+v;L<=_-x;L+=2){var w=a+L,$;L===-_||L!==_&&d[w-1]<d[w+1]?$=d[w+1]:$=d[w-1]+1;for(var W=$-L;$<t&&W<r&&i.charAt(t-$-1)===o.charAt(r-W-1);)$++,W++;if(d[w]=$,$>t)x+=2;else if(W>r)v+=2;else if(!f){var N=a+m-L;if(N>=0&&N<s&&l[N]!==-1){var G=l[N],I=a+G-N;if($=t-$,G>=$)return x0(i,o,G,I)}}}}return[[so,i],[Ar,o]]}function x0(i,o,t,r){var n=i.substring(0,t),a=o.substring(0,r),s=i.substring(t),l=o.substring(r),d=wl(n,a),h=wl(s,l);return d.concat(h)}function ku(i,o){if(!i||!o||i.charAt(0)!==o.charAt(0))return 0;for(var t=0,r=Math.min(i.length,o.length),n=r,a=0;t<n;)i.substring(a,n)==o.substring(a,n)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return k0(i.charCodeAt(n-1))&&n--,n}function y0(i,o){var t=i.length,r=o.length;if(t==0||r==0)return 0;t>r?i=i.substring(t-r):t<r&&(o=o.substring(0,t));var n=Math.min(t,r);if(i==o)return n;for(var a=0,s=1;;){var l=i.substring(n-s),d=o.indexOf(l);if(d==-1)return a;s+=d,(d==0||i.substring(n-s)==o.substring(0,s))&&(a=s,s++)}}function Cd(i,o){if(!i||!o||i.slice(-1)!==o.slice(-1))return 0;for(var t=0,r=Math.min(i.length,o.length),n=r,a=0;t<n;)i.substring(i.length-n,i.length-a)==o.substring(o.length-n,o.length-a)?(t=n,a=t):r=n,n=Math.floor((r-t)/2+t);return C0(i.charCodeAt(i.length-n))&&n--,n}function D5(i,o){var t=i.length>o.length?i:o,r=i.length>o.length?o:i;if(t.length<4||r.length*2<t.length)return null;function n(g,v,x){for(var _=g.substring(x,x+Math.floor(g.length/4)),k=-1,N="",G,I,w,$;(k=v.indexOf(_,k+1))!==-1;){var L=ku(g.substring(x),v.substring(k)),W=Cd(g.substring(0,x),v.substring(0,k));N.length<W+L&&(N=v.substring(k-W,k)+v.substring(k,k+L),G=g.substring(0,x-W),I=g.substring(x+L),w=v.substring(0,k-W),$=v.substring(k+L))}return N.length*2>=g.length?[G,I,w,$,N]:null}var a=n(t,r,Math.ceil(t.length/4)),s=n(t,r,Math.ceil(t.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var d,h,m,f;i.length>o.length?(d=l[0],h=l[1],m=l[2],f=l[3]):(m=l[0],f=l[1],d=l[2],h=l[3]);var b=l[4];return[d,h,m,f,b]}function N5(i){for(var o=!1,t=[],r=0,n=null,a=0,s=0,l=0,d=0,h=0;a<i.length;)i[a][0]==Ve?(t[r++]=a,s=d,l=h,d=0,h=0,n=i[a][1]):(i[a][0]==Ar?d+=i[a][1].length:h+=i[a][1].length,n&&n.length<=Math.max(s,l)&&n.length<=Math.max(d,h)&&(i.splice(t[r-1],0,[so,n]),i[t[r-1]+1][0]=Ar,r--,r--,a=r>0?t[r-1]:-1,s=0,l=0,d=0,h=0,n=null,o=!0)),a++;for(o&&Cu(i),P5(i),a=1;a<i.length;){if(i[a-1][0]==so&&i[a][0]==Ar){var m=i[a-1][1],f=i[a][1],b=y0(m,f),g=y0(f,m);b>=g?(b>=m.length/2||b>=f.length/2)&&(i.splice(a,0,[Ve,f.substring(0,b)]),i[a-1][1]=m.substring(0,m.length-b),i[a+1][1]=f.substring(b),a++):(g>=m.length/2||g>=f.length/2)&&(i.splice(a,0,[Ve,m.substring(0,g)]),i[a-1][0]=Ar,i[a-1][1]=f.substring(0,f.length-g),i[a+1][0]=so,i[a+1][1]=m.substring(g),a++),a++}a++}}var z0=/[^a-zA-Z0-9]/,w0=/\s/,_0=/[\r\n]/,R5=/\n\r?\n$/,O5=/^\r?\n\r?\n/;function P5(i){function o(g,v){if(!g||!v)return 6;var x=g.charAt(g.length-1),_=v.charAt(0),k=x.match(z0),N=_.match(z0),G=k&&x.match(w0),I=N&&_.match(w0),w=G&&x.match(_0),$=I&&_.match(_0),L=w&&g.match(R5),W=$&&v.match(O5);return L||W?5:w||$?4:k&&!G&&I?3:G||I?2:k||N?1:0}for(var t=1;t<i.length-1;){if(i[t-1][0]==Ve&&i[t+1][0]==Ve){var r=i[t-1][1],n=i[t][1],a=i[t+1][1],s=Cd(r,n);if(s){var l=n.substring(n.length-s);r=r.substring(0,r.length-s),n=l+n.substring(0,n.length-s),a=l+a}for(var d=r,h=n,m=a,f=o(r,n)+o(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=o(r,n)+o(n,a);b>=f&&(f=b,d=r,h=n,m=a)}i[t-1][1]!=d&&(d?i[t-1][1]=d:(i.splice(t-1,1),t--),i[t][1]=h,m?i[t+1][1]=m:(i.splice(t+1,1),t--))}t++}}function Cu(i,o){i.push([Ve,""]);for(var t=0,r=0,n=0,a="",s="",l;t<i.length;){if(t<i.length-1&&!i[t][1]){i.splice(t,1);continue}switch(i[t][0]){case Ar:n++,s+=i[t][1],t++;break;case so:r++,a+=i[t][1],t++;break;case Ve:var d=t-n-r-1;if(o){if(d>=0&&E0(i[d][1])){var h=i[d][1].slice(-1);if(i[d][1]=i[d][1].slice(0,-1),a=h+a,s=h+s,!i[d][1]){i.splice(d,1),t--;var m=d-1;i[m]&&i[m][0]===Ar&&(n++,s=i[m][1]+s,m--),i[m]&&i[m][0]===so&&(r++,a=i[m][1]+a,m--),d=m}}if(S0(i[t][1])){var h=i[t][1].charAt(0);i[t][1]=i[t][1].slice(1),a+=h,s+=h}}if(t<i.length-1&&!i[t][1]){i.splice(t,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=ku(s,a),l!==0&&(d>=0?i[d][1]+=s.substring(0,l):(i.splice(0,0,[Ve,s.substring(0,l)]),t++),s=s.substring(l),a=a.substring(l)),l=Cd(s,a),l!==0&&(i[t][1]=s.substring(s.length-l)+i[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?(i.splice(t-f,f),t=t-f):a.length===0?(i.splice(t-f,f,[Ar,s]),t=t-f+1):s.length===0?(i.splice(t-f,f,[so,a]),t=t-f+1):(i.splice(t-f,f,[so,a],[Ar,s]),t=t-f+2)}t!==0&&i[t-1][0]===Ve?(i[t-1][1]+=i[t][1],i.splice(t,1)):t++,n=0,r=0,a="",s="";break}}i[i.length-1][1]===""&&i.pop();var b=!1;for(t=1;t<i.length-1;)i[t-1][0]===Ve&&i[t+1][0]===Ve&&(i[t][1].substring(i[t][1].length-i[t-1][1].length)===i[t-1][1]?(i[t][1]=i[t-1][1]+i[t][1].substring(0,i[t][1].length-i[t-1][1].length),i[t+1][1]=i[t-1][1]+i[t+1][1],i.splice(t-1,1),b=!0):i[t][1].substring(0,i[t+1][1].length)==i[t+1][1]&&(i[t-1][1]+=i[t+1][1],i[t][1]=i[t][1].substring(i[t+1][1].length)+i[t+1][1],i.splice(t+1,1),b=!0)),t++;b&&Cu(i,o)}function k0(i){return i>=55296&&i<=56319}function C0(i){return i>=56320&&i<=57343}function S0(i){return C0(i.charCodeAt(0))}function E0(i){return k0(i.charCodeAt(i.length-1))}function H5(i){for(var o=[],t=0;t<i.length;t++)i[t][1].length>0&&o.push(i[t]);return o}function _u(i,o,t,r){return E0(i)||S0(r)?null:H5([[Ve,i],[so,o],[Ar,t],[Ve,r]])}function F5(i,o,t){var r=typeof t=="number"?{index:t,length:0}:t.oldRange,n=typeof t=="number"?null:t.newRange,a=i.length,s=o.length;if(r.length===0&&(n===null||n.length===0)){var l=r.index,d=i.slice(0,l),h=i.slice(l),m=n?n.index:null;t:{var f=l+s-a;if(m!==null&&m!==f||f<0||f>s)break t;var b=o.slice(0,f),g=o.slice(f);if(g!==h)break t;var v=Math.min(l,f),x=d.slice(0,v),_=b.slice(0,v);if(x!==_)break t;var k=d.slice(v),N=b.slice(v);return _u(x,k,N,h)}t:{if(m!==null&&m!==l)break t;var G=l,b=o.slice(0,G),g=o.slice(G);if(b!==d)break t;var I=Math.min(a-G,s-G),w=h.slice(h.length-I),$=g.slice(g.length-I);if(w!==$)break t;var k=h.slice(0,h.length-I),N=g.slice(0,g.length-I);return _u(d,k,N,w)}}if(r.length>0&&n&&n.length===0)t:{var x=i.slice(0,r.index),w=i.slice(r.index+r.length),v=x.length,I=w.length;if(s<v+I)break t;var _=o.slice(0,v),$=o.slice(s-I);if(x!==_||w!==$)break t;var k=i.slice(v,a-I),N=o.slice(v,s-I);return _u(x,k,N,w)}return null}function Sd(i,o,t,r){return wl(i,o,t,r,!0)}Sd.INSERT=Ar;Sd.DELETE=so;Sd.EQUAL=Ve;T0.exports=Sd});var Hu=$n((_l,ts)=>{var B5=200,F0="__lodash_hash_undefined__",B0=9007199254740991,qu="[object Arguments]",V5="[object Array]",V0="[object Boolean]",U0="[object Date]",U5="[object Error]",Iu="[object Function]",j0="[object GeneratorFunction]",Ed="[object Map]",G0="[object Number]",Du="[object Object]",A0="[object Promise]",W0="[object RegExp]",Td="[object Set]",K0="[object String]",Y0="[object Symbol]",Eu="[object WeakMap]",X0="[object ArrayBuffer]",$d="[object DataView]",Q0="[object Float32Array]",J0="[object Float64Array]",Z0="[object Int8Array]",t1="[object Int16Array]",e1="[object Int32Array]",r1="[object Uint8Array]",o1="[object Uint8ClampedArray]",n1="[object Uint16Array]",i1="[object Uint32Array]",j5=/[\\^$.*+?()[\]{}|]/g,G5=/\w*$/,W5=/^\[object .+?Constructor\]$/,K5=/^(?:0|[1-9]\d*)$/,Gt={};Gt[qu]=Gt[V5]=Gt[X0]=Gt[$d]=Gt[V0]=Gt[U0]=Gt[Q0]=Gt[J0]=Gt[Z0]=Gt[t1]=Gt[e1]=Gt[Ed]=Gt[G0]=Gt[Du]=Gt[W0]=Gt[Td]=Gt[K0]=Gt[Y0]=Gt[r1]=Gt[o1]=Gt[n1]=Gt[i1]=!0;Gt[U5]=Gt[Iu]=Gt[Eu]=!1;var Y5=typeof global=="object"&&global&&global.Object===Object&&global,X5=typeof self=="object"&&self&&self.Object===Object&&self,On=Y5||X5||Function("return this")(),a1=typeof _l=="object"&&_l&&!_l.nodeType&&_l,L0=a1&&typeof ts=="object"&&ts&&!ts.nodeType&&ts,Q5=L0&&L0.exports===a1;function J5(i,o){return i.set(o[0],o[1]),i}function Z5(i,o){return i.add(o),i}function t4(i,o){for(var t=-1,r=i?i.length:0;++t<r&&o(i[t],t,i)!==!1;);return i}function e4(i,o){for(var t=-1,r=o.length,n=i.length;++t<r;)i[n+t]=o[t];return i}function s1(i,o,t,r){var n=-1,a=i?i.length:0;for(r&&a&&(t=i[++n]);++n<a;)t=o(t,i[n],n,i);return t}function r4(i,o){for(var t=-1,r=Array(i);++t<i;)r[t]=o(t);return r}function o4(i,o){return i?.[o]}function l1(i){var o=!1;if(i!=null&&typeof i.toString!="function")try{o=!!(i+"")}catch{}return o}function M0(i){var o=-1,t=Array(i.size);return i.forEach(function(r,n){t[++o]=[n,r]}),t}function Nu(i,o){return function(t){return i(o(t))}}function q0(i){var o=-1,t=Array(i.size);return i.forEach(function(r){t[++o]=r}),t}var n4=Array.prototype,i4=Function.prototype,Ad=Object.prototype,Su=On["__core-js_shared__"],I0=(function(){var i=/[^.]+$/.exec(Su&&Su.keys&&Su.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),c1=i4.toString,bi=Ad.hasOwnProperty,Ld=Ad.toString,a4=RegExp("^"+c1.call(bi).replace(j5,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D0=Q5?On.Buffer:void 0,N0=On.Symbol,R0=On.Uint8Array,s4=Nu(Object.getPrototypeOf,Object),l4=Object.create,c4=Ad.propertyIsEnumerable,d4=n4.splice,O0=Object.getOwnPropertySymbols,p4=D0?D0.isBuffer:void 0,h4=Nu(Object.keys,Object),Tu=os(On,"DataView"),kl=os(On,"Map"),$u=os(On,"Promise"),Au=os(On,"Set"),Lu=os(On,"WeakMap"),Cl=os(Object,"create"),u4=ua(Tu),m4=ua(kl),f4=ua($u),g4=ua(Au),b4=ua(Lu),P0=N0?N0.prototype:void 0,H0=P0?P0.valueOf:void 0;function ha(i){var o=-1,t=i?i.length:0;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function v4(){this.__data__=Cl?Cl(null):{}}function x4(i){return this.has(i)&&delete this.__data__[i]}function y4(i){var o=this.__data__;if(Cl){var t=o[i];return t===F0?void 0:t}return bi.call(o,i)?o[i]:void 0}function z4(i){var o=this.__data__;return Cl?o[i]!==void 0:bi.call(o,i)}function w4(i,o){var t=this.__data__;return t[i]=Cl&&o===void 0?F0:o,this}ha.prototype.clear=v4;ha.prototype.delete=x4;ha.prototype.get=y4;ha.prototype.has=z4;ha.prototype.set=w4;function Pn(i){var o=-1,t=i?i.length:0;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function _4(){this.__data__=[]}function k4(i){var o=this.__data__,t=Md(o,i);if(t<0)return!1;var r=o.length-1;return t==r?o.pop():d4.call(o,t,1),!0}function C4(i){var o=this.__data__,t=Md(o,i);return t<0?void 0:o[t][1]}function S4(i){return Md(this.__data__,i)>-1}function E4(i,o){var t=this.__data__,r=Md(t,i);return r<0?t.push([i,o]):t[r][1]=o,this}Pn.prototype.clear=_4;Pn.prototype.delete=k4;Pn.prototype.get=C4;Pn.prototype.has=S4;Pn.prototype.set=E4;function es(i){var o=-1,t=i?i.length:0;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function T4(){this.__data__={hash:new ha,map:new(kl||Pn),string:new ha}}function $4(i){return qd(this,i).delete(i)}function A4(i){return qd(this,i).get(i)}function L4(i){return qd(this,i).has(i)}function M4(i,o){return qd(this,i).set(i,o),this}es.prototype.clear=T4;es.prototype.delete=$4;es.prototype.get=A4;es.prototype.has=L4;es.prototype.set=M4;function rs(i){this.__data__=new Pn(i)}function q4(){this.__data__=new Pn}function I4(i){return this.__data__.delete(i)}function D4(i){return this.__data__.get(i)}function N4(i){return this.__data__.has(i)}function R4(i,o){var t=this.__data__;if(t instanceof Pn){var r=t.__data__;if(!kl||r.length<B5-1)return r.push([i,o]),this;t=this.__data__=new es(r)}return t.set(i,o),this}rs.prototype.clear=q4;rs.prototype.delete=I4;rs.prototype.get=D4;rs.prototype.has=N4;rs.prototype.set=R4;function O4(i,o){var t=Ou(i)||l8(i)?r4(i.length,String):[],r=t.length,n=!!r;for(var a in i)(o||bi.call(i,a))&&!(n&&(a=="length"||n8(a,r)))&&t.push(a);return t}function d1(i,o,t){var r=i[o];(!(bi.call(i,o)&&m1(r,t))||t===void 0&&!(o in i))&&(i[o]=t)}function Md(i,o){for(var t=i.length;t--;)if(m1(i[t][0],o))return t;return-1}function P4(i,o){return i&&p1(o,Pu(o),i)}function Mu(i,o,t,r,n,a,s){var l;if(r&&(l=a?r(i,n,a,s):r(i)),l!==void 0)return l;if(!Id(i))return i;var d=Ou(i);if(d){if(l=e8(i),!o)return J4(i,l)}else{var h=pa(i),m=h==Iu||h==j0;if(d8(i))return j4(i,o);if(h==Du||h==qu||m&&!a){if(l1(i))return a?i:{};if(l=r8(m?{}:i),!o)return Z4(i,P4(l,i))}else{if(!Gt[h])return a?i:{};l=o8(i,h,Mu,o)}}s||(s=new rs);var f=s.get(i);if(f)return f;if(s.set(i,l),!d)var b=t?t8(i):Pu(i);return t4(b||i,function(g,v){b&&(v=g,g=i[v]),d1(l,v,Mu(g,o,t,r,v,i,s))}),l}function H4(i){return Id(i)?l4(i):{}}function F4(i,o,t){var r=o(i);return Ou(i)?r:e4(r,t(i))}function B4(i){return Ld.call(i)}function V4(i){if(!Id(i)||a8(i))return!1;var o=g1(i)||l1(i)?a4:W5;return o.test(ua(i))}function U4(i){if(!u1(i))return h4(i);var o=[];for(var t in Object(i))bi.call(i,t)&&t!="constructor"&&o.push(t);return o}function j4(i,o){if(o)return i.slice();var t=new i.constructor(i.length);return i.copy(t),t}function Ru(i){var o=new i.constructor(i.byteLength);return new R0(o).set(new R0(i)),o}function G4(i,o){var t=o?Ru(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}function W4(i,o,t){var r=o?t(M0(i),!0):M0(i);return s1(r,J5,new i.constructor)}function K4(i){var o=new i.constructor(i.source,G5.exec(i));return o.lastIndex=i.lastIndex,o}function Y4(i,o,t){var r=o?t(q0(i),!0):q0(i);return s1(r,Z5,new i.constructor)}function X4(i){return H0?Object(H0.call(i)):{}}function Q4(i,o){var t=o?Ru(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}function J4(i,o){var t=-1,r=i.length;for(o||(o=Array(r));++t<r;)o[t]=i[t];return o}function p1(i,o,t,r){t||(t={});for(var n=-1,a=o.length;++n<a;){var s=o[n],l=r?r(t[s],i[s],s,t,i):void 0;d1(t,s,l===void 0?i[s]:l)}return t}function Z4(i,o){return p1(i,h1(i),o)}function t8(i){return F4(i,Pu,h1)}function qd(i,o){var t=i.__data__;return i8(o)?t[typeof o=="string"?"string":"hash"]:t.map}function os(i,o){var t=o4(i,o);return V4(t)?t:void 0}var h1=O0?Nu(O0,Object):u8,pa=B4;(Tu&&pa(new Tu(new ArrayBuffer(1)))!=$d||kl&&pa(new kl)!=Ed||$u&&pa($u.resolve())!=A0||Au&&pa(new Au)!=Td||Lu&&pa(new Lu)!=Eu)&&(pa=function(i){var o=Ld.call(i),t=o==Du?i.constructor:void 0,r=t?ua(t):void 0;if(r)switch(r){case u4:return $d;case m4:return Ed;case f4:return A0;case g4:return Td;case b4:return Eu}return o});function e8(i){var o=i.length,t=i.constructor(o);return o&&typeof i[0]=="string"&&bi.call(i,"index")&&(t.index=i.index,t.input=i.input),t}function r8(i){return typeof i.constructor=="function"&&!u1(i)?H4(s4(i)):{}}function o8(i,o,t,r){var n=i.constructor;switch(o){case X0:return Ru(i);case V0:case U0:return new n(+i);case $d:return G4(i,r);case Q0:case J0:case Z0:case t1:case e1:case r1:case o1:case n1:case i1:return Q4(i,r);case Ed:return W4(i,r,t);case G0:case K0:return new n(i);case W0:return K4(i);case Td:return Y4(i,r,t);case Y0:return X4(i)}}function n8(i,o){return o=o??B0,!!o&&(typeof i=="number"||K5.test(i))&&i>-1&&i%1==0&&i<o}function i8(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}function a8(i){return!!I0&&I0 in i}function u1(i){var o=i&&i.constructor,t=typeof o=="function"&&o.prototype||Ad;return i===t}function ua(i){if(i!=null){try{return c1.call(i)}catch{}try{return i+""}catch{}}return""}function s8(i){return Mu(i,!0,!0)}function m1(i,o){return i===o||i!==i&&o!==o}function l8(i){return c8(i)&&bi.call(i,"callee")&&(!c4.call(i,"callee")||Ld.call(i)==qu)}var Ou=Array.isArray;function f1(i){return i!=null&&p8(i.length)&&!g1(i)}function c8(i){return h8(i)&&f1(i)}var d8=p4||m8;function g1(i){var o=Id(i)?Ld.call(i):"";return o==Iu||o==j0}function p8(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=B0}function Id(i){var o=typeof i;return!!i&&(o=="object"||o=="function")}function h8(i){return!!i&&typeof i=="object"}function Pu(i){return f1(i)?O4(i):U4(i)}function u8(){return[]}function m8(){return!1}ts.exports=s8});var Ju=$n((Sl,is)=>{var f8=200,Qu="__lodash_hash_undefined__",Bd=1,T1=2,$1=9007199254740991,Dd="[object Arguments]",Uu="[object Array]",g8="[object AsyncFunction]",A1="[object Boolean]",L1="[object Date]",M1="[object Error]",q1="[object Function]",b8="[object GeneratorFunction]",Nd="[object Map]",I1="[object Number]",v8="[object Null]",ns="[object Object]",b1="[object Promise]",x8="[object Proxy]",D1="[object RegExp]",Rd="[object Set]",N1="[object String]",y8="[object Symbol]",z8="[object Undefined]",ju="[object WeakMap]",R1="[object ArrayBuffer]",Od="[object DataView]",w8="[object Float32Array]",_8="[object Float64Array]",k8="[object Int8Array]",C8="[object Int16Array]",S8="[object Int32Array]",E8="[object Uint8Array]",T8="[object Uint8ClampedArray]",$8="[object Uint16Array]",A8="[object Uint32Array]",L8=/[\\^$.*+?()[\]{}|]/g,M8=/^\[object .+?Constructor\]$/,q8=/^(?:0|[1-9]\d*)$/,Qt={};Qt[w8]=Qt[_8]=Qt[k8]=Qt[C8]=Qt[S8]=Qt[E8]=Qt[T8]=Qt[$8]=Qt[A8]=!0;Qt[Dd]=Qt[Uu]=Qt[R1]=Qt[A1]=Qt[Od]=Qt[L1]=Qt[M1]=Qt[q1]=Qt[Nd]=Qt[I1]=Qt[ns]=Qt[D1]=Qt[Rd]=Qt[N1]=Qt[ju]=!1;var O1=typeof global=="object"&&global&&global.Object===Object&&global,I8=typeof self=="object"&&self&&self.Object===Object&&self,Hn=O1||I8||Function("return this")(),P1=typeof Sl=="object"&&Sl&&!Sl.nodeType&&Sl,v1=P1&&typeof is=="object"&&is&&!is.nodeType&&is,H1=v1&&v1.exports===P1,Fu=H1&&O1.process,x1=(function(){try{return Fu&&Fu.binding&&Fu.binding("util")}catch{}})(),y1=x1&&x1.isTypedArray;function D8(i,o){for(var t=-1,r=i==null?0:i.length,n=0,a=[];++t<r;){var s=i[t];o(s,t,i)&&(a[n++]=s)}return a}function N8(i,o){for(var t=-1,r=o.length,n=i.length;++t<r;)i[n+t]=o[t];return i}function R8(i,o){for(var t=-1,r=i==null?0:i.length;++t<r;)if(o(i[t],t,i))return!0;return!1}function O8(i,o){for(var t=-1,r=Array(i);++t<i;)r[t]=o(t);return r}function P8(i){return function(o){return i(o)}}function H8(i,o){return i.has(o)}function F8(i,o){return i?.[o]}function B8(i){var o=-1,t=Array(i.size);return i.forEach(function(r,n){t[++o]=[n,r]}),t}function V8(i,o){return function(t){return i(o(t))}}function U8(i){var o=-1,t=Array(i.size);return i.forEach(function(r){t[++o]=r}),t}var j8=Array.prototype,G8=Function.prototype,Vd=Object.prototype,Bu=Hn["__core-js_shared__"],F1=G8.toString,bn=Vd.hasOwnProperty,z1=(function(){var i=/[^.]+$/.exec(Bu&&Bu.keys&&Bu.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),B1=Vd.toString,W8=RegExp("^"+F1.call(bn).replace(L8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w1=H1?Hn.Buffer:void 0,Pd=Hn.Symbol,_1=Hn.Uint8Array,V1=Vd.propertyIsEnumerable,K8=j8.splice,ma=Pd?Pd.toStringTag:void 0,k1=Object.getOwnPropertySymbols,Y8=w1?w1.isBuffer:void 0,X8=V8(Object.keys,Object),Gu=as(Hn,"DataView"),El=as(Hn,"Map"),Wu=as(Hn,"Promise"),Ku=as(Hn,"Set"),Yu=as(Hn,"WeakMap"),Tl=as(Object,"create"),Q8=ba(Gu),J8=ba(El),Z8=ba(Wu),t6=ba(Ku),e6=ba(Yu),C1=Pd?Pd.prototype:void 0,Vu=C1?C1.valueOf:void 0;function fa(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function r6(){this.__data__=Tl?Tl(null):{},this.size=0}function o6(i){var o=this.has(i)&&delete this.__data__[i];return this.size-=o?1:0,o}function n6(i){var o=this.__data__;if(Tl){var t=o[i];return t===Qu?void 0:t}return bn.call(o,i)?o[i]:void 0}function i6(i){var o=this.__data__;return Tl?o[i]!==void 0:bn.call(o,i)}function a6(i,o){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=Tl&&o===void 0?Qu:o,this}fa.prototype.clear=r6;fa.prototype.delete=o6;fa.prototype.get=n6;fa.prototype.has=i6;fa.prototype.set=a6;function Fn(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function s6(){this.__data__=[],this.size=0}function l6(i){var o=this.__data__,t=Ud(o,i);if(t<0)return!1;var r=o.length-1;return t==r?o.pop():K8.call(o,t,1),--this.size,!0}function c6(i){var o=this.__data__,t=Ud(o,i);return t<0?void 0:o[t][1]}function d6(i){return Ud(this.__data__,i)>-1}function p6(i,o){var t=this.__data__,r=Ud(t,i);return r<0?(++this.size,t.push([i,o])):t[r][1]=o,this}Fn.prototype.clear=s6;Fn.prototype.delete=l6;Fn.prototype.get=c6;Fn.prototype.has=d6;Fn.prototype.set=p6;function ga(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}function h6(){this.size=0,this.__data__={hash:new fa,map:new(El||Fn),string:new fa}}function u6(i){var o=jd(this,i).delete(i);return this.size-=o?1:0,o}function m6(i){return jd(this,i).get(i)}function f6(i){return jd(this,i).has(i)}function g6(i,o){var t=jd(this,i),r=t.size;return t.set(i,o),this.size+=t.size==r?0:1,this}ga.prototype.clear=h6;ga.prototype.delete=u6;ga.prototype.get=m6;ga.prototype.has=f6;ga.prototype.set=g6;function Hd(i){var o=-1,t=i==null?0:i.length;for(this.__data__=new ga;++o<t;)this.add(i[o])}function b6(i){return this.__data__.set(i,Qu),this}function v6(i){return this.__data__.has(i)}Hd.prototype.add=Hd.prototype.push=b6;Hd.prototype.has=v6;function xi(i){var o=this.__data__=new Fn(i);this.size=o.size}function x6(){this.__data__=new Fn,this.size=0}function y6(i){var o=this.__data__,t=o.delete(i);return this.size=o.size,t}function z6(i){return this.__data__.get(i)}function w6(i){return this.__data__.has(i)}function _6(i,o){var t=this.__data__;if(t instanceof Fn){var r=t.__data__;if(!El||r.length<f8-1)return r.push([i,o]),this.size=++t.size,this;t=this.__data__=new ga(r)}return t.set(i,o),this.size=t.size,this}xi.prototype.clear=x6;xi.prototype.delete=y6;xi.prototype.get=z6;xi.prototype.has=w6;xi.prototype.set=_6;function k6(i,o){var t=Fd(i),r=!t&&P6(i),n=!t&&!r&&Xu(i),a=!t&&!r&&!n&&X1(i),s=t||r||n||a,l=s?O8(i.length,String):[],d=l.length;for(var h in i)(o||bn.call(i,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||I6(h,d)))&&l.push(h);return l}function Ud(i,o){for(var t=i.length;t--;)if(G1(i[t][0],o))return t;return-1}function C6(i,o,t){var r=o(i);return Fd(i)?r:N8(r,t(i))}function Al(i){return i==null?i===void 0?z8:v8:ma&&ma in Object(i)?M6(i):O6(i)}function S1(i){return $l(i)&&Al(i)==Dd}function U1(i,o,t,r,n){return i===o?!0:i==null||o==null||!$l(i)&&!$l(o)?i!==i&&o!==o:S6(i,o,t,r,U1,n)}function S6(i,o,t,r,n,a){var s=Fd(i),l=Fd(o),d=s?Uu:vi(i),h=l?Uu:vi(o);d=d==Dd?ns:d,h=h==Dd?ns:h;var m=d==ns,f=h==ns,b=d==h;if(b&&Xu(i)){if(!Xu(o))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new xi),s||X1(i)?j1(i,o,t,r,n,a):A6(i,o,d,t,r,n,a);if(!(t&Bd)){var g=m&&bn.call(i,"__wrapped__"),v=f&&bn.call(o,"__wrapped__");if(g||v){var x=g?i.value():i,_=v?o.value():o;return a||(a=new xi),n(x,_,t,r,a)}}return b?(a||(a=new xi),L6(i,o,t,r,n,a)):!1}function E6(i){if(!Y1(i)||N6(i))return!1;var o=W1(i)?W8:M8;return o.test(ba(i))}function T6(i){return $l(i)&&K1(i.length)&&!!Qt[Al(i)]}function $6(i){if(!R6(i))return X8(i);var o=[];for(var t in Object(i))bn.call(i,t)&&t!="constructor"&&o.push(t);return o}function j1(i,o,t,r,n,a){var s=t&Bd,l=i.length,d=o.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(i);if(h&&a.get(o))return h==o;var m=-1,f=!0,b=t&T1?new Hd:void 0;for(a.set(i,o),a.set(o,i);++m<l;){var g=i[m],v=o[m];if(r)var x=s?r(v,g,m,o,i,a):r(g,v,m,i,o,a);if(x!==void 0){if(x)continue;f=!1;break}if(b){if(!R8(o,function(_,k){if(!H8(b,k)&&(g===_||n(g,_,t,r,a)))return b.push(k)})){f=!1;break}}else if(!(g===v||n(g,v,t,r,a))){f=!1;break}}return a.delete(i),a.delete(o),f}function A6(i,o,t,r,n,a,s){switch(t){case Od:if(i.byteLength!=o.byteLength||i.byteOffset!=o.byteOffset)return!1;i=i.buffer,o=o.buffer;case R1:return!(i.byteLength!=o.byteLength||!a(new _1(i),new _1(o)));case A1:case L1:case I1:return G1(+i,+o);case M1:return i.name==o.name&&i.message==o.message;case D1:case N1:return i==o+"";case Nd:var l=B8;case Rd:var d=r&Bd;if(l||(l=U8),i.size!=o.size&&!d)return!1;var h=s.get(i);if(h)return h==o;r|=T1,s.set(i,o);var m=j1(l(i),l(o),r,n,a,s);return s.delete(i),m;case y8:if(Vu)return Vu.call(i)==Vu.call(o)}return!1}function L6(i,o,t,r,n,a){var s=t&Bd,l=E1(i),d=l.length,h=E1(o),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in o:bn.call(o,b)))return!1}var g=a.get(i);if(g&&a.get(o))return g==o;var v=!0;a.set(i,o),a.set(o,i);for(var x=s;++f<d;){b=l[f];var _=i[b],k=o[b];if(r)var N=s?r(k,_,b,o,i,a):r(_,k,b,i,o,a);if(!(N===void 0?_===k||n(_,k,t,r,a):N)){v=!1;break}x||(x=b=="constructor")}if(v&&!x){var G=i.constructor,I=o.constructor;G!=I&&"constructor"in i&&"constructor"in o&&!(typeof G=="function"&&G instanceof G&&typeof I=="function"&&I instanceof I)&&(v=!1)}return a.delete(i),a.delete(o),v}function E1(i){return C6(i,B6,q6)}function jd(i,o){var t=i.__data__;return D6(o)?t[typeof o=="string"?"string":"hash"]:t.map}function as(i,o){var t=F8(i,o);return E6(t)?t:void 0}function M6(i){var o=bn.call(i,ma),t=i[ma];try{i[ma]=void 0;var r=!0}catch{}var n=B1.call(i);return r&&(o?i[ma]=t:delete i[ma]),n}var q6=k1?function(i){return i==null?[]:(i=Object(i),D8(k1(i),function(o){return V1.call(i,o)}))}:V6,vi=Al;(Gu&&vi(new Gu(new ArrayBuffer(1)))!=Od||El&&vi(new El)!=Nd||Wu&&vi(Wu.resolve())!=b1||Ku&&vi(new Ku)!=Rd||Yu&&vi(new Yu)!=ju)&&(vi=function(i){var o=Al(i),t=o==ns?i.constructor:void 0,r=t?ba(t):"";if(r)switch(r){case Q8:return Od;case J8:return Nd;case Z8:return b1;case t6:return Rd;case e6:return ju}return o});function I6(i,o){return o=o??$1,!!o&&(typeof i=="number"||q8.test(i))&&i>-1&&i%1==0&&i<o}function D6(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}function N6(i){return!!z1&&z1 in i}function R6(i){var o=i&&i.constructor,t=typeof o=="function"&&o.prototype||Vd;return i===t}function O6(i){return B1.call(i)}function ba(i){if(i!=null){try{return F1.call(i)}catch{}try{return i+""}catch{}}return""}function G1(i,o){return i===o||i!==i&&o!==o}var P6=S1((function(){return arguments})())?S1:function(i){return $l(i)&&bn.call(i,"callee")&&!V1.call(i,"callee")},Fd=Array.isArray;function H6(i){return i!=null&&K1(i.length)&&!W1(i)}var Xu=Y8||U6;function F6(i,o){return U1(i,o)}function W1(i){if(!Y1(i))return!1;var o=Al(i);return o==q1||o==b8||o==g8||o==x8}function K1(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=$1}function Y1(i){var o=typeof i;return i!=null&&(o=="object"||o=="function")}function $l(i){return i!=null&&typeof i=="object"}var X1=y1?P8(y1):T6;function B6(i){return H6(i)?k6(i):$6(i)}function V6(){return[]}function U6(){return!1}is.exports=F6});var Q1=$n(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});var j6=Hu(),G6=Ju(),Zu;(function(i){function o(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let d=j6(s);l||(d=Object.keys(d).reduce((h,m)=>(d[m]!=null&&(h[m]=d[m]),h),{}));for(let h in a)a[h]!==void 0&&s[h]===void 0&&(d[h]=a[h]);return Object.keys(d).length>0?d:void 0}i.compose=o;function t(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((d,h)=>(G6(a[h],s[h])||(d[h]=s[h]===void 0?null:s[h]),d),{});return Object.keys(l).length>0?l:void 0}i.diff=t;function r(a={},s={}){a=a||{};let l=Object.keys(s).reduce((d,h)=>(s[h]!==a[h]&&a[h]!==void 0&&(d[h]=s[h]),d),{});return Object.keys(a).reduce((d,h)=>(a[h]!==s[h]&&s[h]===void 0&&(d[h]=null),d),l)}i.invert=r;function n(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let d=Object.keys(s).reduce((h,m)=>(a[m]===void 0&&(h[m]=s[m]),h),{});return Object.keys(d).length>0?d:void 0}i.transform=n})(Zu||(Zu={}));tm.default=Zu});var om=$n(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var em;(function(i){function o(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}i.length=o})(em||(em={}));rm.default=em});var Z1=$n(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var J1=om(),nm=class{constructor(o){this.ops=o,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(o){o||(o=1/0);let t=this.ops[this.index];if(t){let r=this.offset,n=J1.default.length(t);if(o>=n-r?(o=n-r,this.index+=1,this.offset=0):this.offset+=o,typeof t.delete=="number")return{delete:o};{let a={};return t.attributes&&(a.attributes=t.attributes),typeof t.retain=="number"?a.retain=o:typeof t.retain=="object"&&t.retain!==null?a.retain=t.retain:typeof t.insert=="string"?a.insert=t.insert.substr(r,o):a.insert=t.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?J1.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let o=this.ops[this.index];return o?typeof o.delete=="number"?"delete":typeof o.retain=="number"||typeof o.retain=="object"&&o.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let o=this.offset,t=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=o,this.index=t,[r].concat(n)}}else return[]}};im.default=nm});var Ur=$n((Vn,Wd)=>{"use strict";Object.defineProperty(Vn,"__esModule",{value:!0});Vn.AttributeMap=Vn.OpIterator=Vn.Op=void 0;var Gd=$0(),W6=Hu(),am=Ju(),va=Q1();Vn.AttributeMap=va.default;var Bn=om();Vn.Op=Bn.default;var wo=Z1();Vn.OpIterator=wo.default;var K6="\0",tx=(i,o)=>{if(typeof i!="object"||i===null)throw new Error(`cannot retain a ${typeof i}`);if(typeof o!="object"||o===null)throw new Error(`cannot retain a ${typeof o}`);let t=Object.keys(i)[0];if(!t||t!==Object.keys(o)[0])throw new Error(`embed types not matched: ${t} != ${Object.keys(o)[0]}`);return[t,i[t],o[t]]},Un=class i{constructor(o){Array.isArray(o)?this.ops=o:o!=null&&Array.isArray(o.ops)?this.ops=o.ops:this.ops=[]}static registerEmbed(o,t){this.handlers[o]=t}static unregisterEmbed(o){delete this.handlers[o]}static getHandler(o){let t=this.handlers[o];if(!t)throw new Error(`no handlers for embed type "${o}"`);return t}insert(o,t){let r={};return typeof o=="string"&&o.length===0?this:(r.insert=o,t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))}delete(o){return o<=0?this:this.push({delete:o})}retain(o,t){if(typeof o=="number"&&o<=0)return this;let r={retain:o};return t!=null&&typeof t=="object"&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)}push(o){let t=this.ops.length,r=this.ops[t-1];if(o=W6(o),typeof r=="object"){if(typeof o.delete=="number"&&typeof r.delete=="number")return this.ops[t-1]={delete:r.delete+o.delete},this;if(typeof r.delete=="number"&&o.insert!=null&&(t-=1,r=this.ops[t-1],typeof r!="object"))return this.ops.unshift(o),this;if(am(o.attributes,r.attributes)){if(typeof o.insert=="string"&&typeof r.insert=="string")return this.ops[t-1]={insert:r.insert+o.insert},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this;if(typeof o.retain=="number"&&typeof r.retain=="number")return this.ops[t-1]={retain:r.retain+o.retain},typeof o.attributes=="object"&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this}chop(){let o=this.ops[this.ops.length-1];return o&&typeof o.retain=="number"&&!o.attributes&&this.ops.pop(),this}filter(o){return this.ops.filter(o)}forEach(o){this.ops.forEach(o)}map(o){return this.ops.map(o)}partition(o){let t=[],r=[];return this.forEach(n=>{(o(n)?t:r).push(n)}),[t,r]}reduce(o,t){return this.ops.reduce(o,t)}changeLength(){return this.reduce((o,t)=>t.insert?o+Bn.default.length(t):t.delete?o-t.delete:o,0)}length(){return this.reduce((o,t)=>o+Bn.default.length(t),0)}slice(o=0,t=1/0){let r=[],n=new wo.default(this.ops),a=0;for(;a<t&&n.hasNext();){let s;a<o?s=n.next(o-a):(s=n.next(t-a),r.push(s)),a+=Bn.default.length(s)}return new i(r)}compose(o){let t=new wo.default(this.ops),r=new wo.default(o.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 i(n);for(;t.hasNext()||r.hasNext();)if(r.peekType()==="insert")s.push(r.next());else if(t.peekType()==="delete")s.push(t.next());else{let l=Math.min(t.peekLength(),r.peekLength()),d=t.next(l),h=r.next(l);if(h.retain){let m={};if(typeof d.retain=="number")m.retain=typeof h.retain=="number"?l:h.retain;else if(typeof h.retain=="number")d.retain==null?m.insert=d.insert:m.retain=d.retain;else{let b=d.retain==null?"insert":"retain",[g,v,x]=tx(d[b],h.retain),_=i.getHandler(g);m[b]={[g]:_.compose(v,x,b==="retain")}}let f=va.default.compose(d.attributes,h.attributes,typeof d.retain=="number");if(f&&(m.attributes=f),s.push(m),!r.hasNext()&&am(s.ops[s.ops.length-1],m)){let b=new i(t.rest());return s.concat(b).chop()}}else typeof h.delete=="number"&&(typeof d.retain=="number"||typeof d.retain=="object"&&d.retain!==null)&&s.push(h)}return s.chop()}concat(o){let t=new i(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t}diff(o,t){if(this.ops===o.ops)return new i;let r=[this,o].map(d=>d.map(h=>{if(h.insert!=null)return typeof h.insert=="string"?h.insert:K6;let m=d===o?"on":"with";throw new Error("diff() called "+m+" non-document")}).join("")),n=new i,a=Gd(r[0],r[1],t,!0),s=new wo.default(this.ops),l=new wo.default(o.ops);return a.forEach(d=>{let h=d[1].length;for(;h>0;){let m=0;switch(d[0]){case Gd.INSERT:m=Math.min(l.peekLength(),h),n.push(l.next(m));break;case Gd.DELETE:m=Math.min(h,s.peekLength()),s.next(m),n.delete(m);break;case Gd.EQUAL:m=Math.min(s.peekLength(),l.peekLength(),h);let f=s.next(m),b=l.next(m);am(f.insert,b.insert)?n.retain(m,va.default.diff(f.attributes,b.attributes)):n.push(b).delete(m);break}h-=m}}),n.chop()}eachLine(o,t=`
|
|
2
|
+
`){let r=new wo.default(this.ops),n=new i,a=0;for(;r.hasNext();){if(r.peekType()!=="insert")return;let s=r.peek(),l=Bn.default.length(s)-r.peekLength(),d=typeof s.insert=="string"?s.insert.indexOf(t,l)-l:-1;if(d<0)n.push(r.next());else if(d>0)n.push(r.next(d));else{if(o(n,r.next(1).attributes||{},a)===!1)return;a+=1,n=new i}}n.length()>0&&o(n,{},a)}invert(o){let t=new i;return this.reduce((r,n)=>{if(n.insert)t.delete(Bn.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 o.slice(r,r+a).forEach(l=>{n.delete?t.push(l):n.retain&&n.attributes&&t.retain(Bn.default.length(l),va.default.invert(n.attributes,l.attributes))}),r+a}else if(typeof n.retain=="object"&&n.retain!==null){let a=o.slice(r,r+1),s=new wo.default(a.ops).next(),[l,d,h]=tx(n.retain,s.insert),m=i.getHandler(l);return t.retain({[l]:m.invert(d,h)},va.default.invert(n.attributes,s.attributes)),r+1}}return r},0),t.chop()}transform(o,t=!1){if(t=!!t,typeof o=="number")return this.transformPosition(o,t);let r=o,n=new wo.default(this.ops),a=new wo.default(r.ops),s=new i;for(;n.hasNext()||a.hasNext();)if(n.peekType()==="insert"&&(t||a.peekType()!=="insert"))s.retain(Bn.default.length(n.next()));else if(a.peekType()==="insert")s.push(a.next());else{let l=Math.min(n.peekLength(),a.peekLength()),d=n.next(l),h=a.next(l);if(d.delete)continue;if(h.delete)s.push(h);else{let m=d.retain,f=h.retain,b=typeof f=="object"&&f!==null?f:l;if(typeof m=="object"&&m!==null&&typeof f=="object"&&f!==null){let g=Object.keys(m)[0];if(g===Object.keys(f)[0]){let v=i.getHandler(g);v&&(b={[g]:v.transform(m[g],f[g],t)})}}s.retain(b,va.default.transform(d.attributes,h.attributes,t))}}return s.chop()}transformPosition(o,t=!1){t=!!t;let r=new wo.default(this.ops),n=0;for(;r.hasNext()&&n<=o;){let a=r.peekLength(),s=r.peekType();if(r.next(),s==="delete"){o-=Math.min(a,o-n);continue}else s==="insert"&&(n<o||!t)&&(o+=a);n+=a}return o}};Un.Op=Bn.default;Un.OpIterator=wo.default;Un.AttributeMap=va.default;Un.handlers={};Vn.default=Un;typeof Wd=="object"&&(Wd.exports=Un,Wd.exports.default=Un)});var gz=$n((blt,Cm)=>{"use strict";var AT=Object.prototype.hasOwnProperty,Mr="~";function Fl(){}Object.create&&(Fl.prototype=Object.create(null),new Fl().__proto__||(Mr=!1));function LT(i,o,t){this.fn=i,this.context=o,this.once=t||!1}function fz(i,o,t,r,n){if(typeof t!="function")throw new TypeError("The listener must be a function");var a=new LT(t,r||i,n),s=Mr?Mr+o:o;return i._events[s]?i._events[s].fn?i._events[s]=[i._events[s],a]:i._events[s].push(a):(i._events[s]=a,i._eventsCount++),i}function yp(i,o){--i._eventsCount===0?i._events=new Fl:delete i._events[o]}function wr(){this._events=new Fl,this._eventsCount=0}wr.prototype.eventNames=function(){var o=[],t,r;if(this._eventsCount===0)return o;for(r in t=this._events)AT.call(t,r)&&o.push(Mr?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o};wr.prototype.listeners=function(o){var t=Mr?Mr+o:o,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};wr.prototype.listenerCount=function(o){var t=Mr?Mr+o:o,r=this._events[t];return r?r.fn?1:r.length:0};wr.prototype.emit=function(o,t,r,n,a,s){var l=Mr?Mr+o:o;if(!this._events[l])return!1;var d=this._events[l],h=arguments.length,m,f;if(d.fn){switch(d.once&&this.removeListener(o,d.fn,void 0,!0),h){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,n),!0;case 5:return d.fn.call(d.context,t,r,n,a),!0;case 6:return d.fn.call(d.context,t,r,n,a,s),!0}for(f=1,m=new Array(h-1);f<h;f++)m[f-1]=arguments[f];d.fn.apply(d.context,m)}else{var b=d.length,g;for(f=0;f<b;f++)switch(d[f].once&&this.removeListener(o,d[f].fn,void 0,!0),h){case 1:d[f].fn.call(d[f].context);break;case 2:d[f].fn.call(d[f].context,t);break;case 3:d[f].fn.call(d[f].context,t,r);break;case 4:d[f].fn.call(d[f].context,t,r,n);break;default:if(!m)for(g=1,m=new Array(h-1);g<h;g++)m[g-1]=arguments[g];d[f].fn.apply(d[f].context,m)}}return!0};wr.prototype.on=function(o,t,r){return fz(this,o,t,r,!1)};wr.prototype.once=function(o,t,r){return fz(this,o,t,r,!0)};wr.prototype.removeListener=function(o,t,r,n){var a=Mr?Mr+o:o;if(!this._events[a])return this;if(!t)return yp(this,a),this;var s=this._events[a];if(s.fn)s.fn===t&&(!n||s.once)&&(!r||s.context===r)&&yp(this,a);else{for(var l=0,d=[],h=s.length;l<h;l++)(s[l].fn!==t||n&&!s[l].once||r&&s[l].context!==r)&&d.push(s[l]);d.length?this._events[a]=d.length===1?d[0]:d:yp(this,a)}return this};wr.prototype.removeAllListeners=function(o){var t;return o?(t=Mr?Mr+o:o,this._events[t]&&yp(this,t)):(this._events=new Fl,this._eventsCount=0),this};wr.prototype.off=wr.prototype.removeListener;wr.prototype.addListener=wr.prototype.on;wr.prefixed=Mr;wr.EventEmitter=wr;typeof Cm<"u"&&(Cm.exports=wr)});var uf=$n((mc,hf)=>{(function(i,o){typeof mc=="object"&&typeof hf=="object"?hf.exports=o():typeof define=="function"&&define.amd?define([],o):typeof mc=="object"?mc.AirDatepicker=o():i.AirDatepicker=o()})(mc,(function(){return(function(){"use strict";var i={d:function(R,y){for(var S in y)i.o(y,S)&&!i.o(R,S)&&Object.defineProperty(R,S,{enumerable:!0,get:y[S]})},o:function(R,y){return Object.prototype.hasOwnProperty.call(R,y)}},o={};i.d(o,{default:function(){return it}});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(R){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof R=="string"?y.querySelector(R):R}function a(){let{tagName:R="div",className:y="",innerHtml:S="",id:z="",attrs:q={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},M=document.createElement(R);return y&&M.classList.add(...y.split(" ")),z&&(M.id=z),S&&(M.innerHTML=S),q&&s(M,q),M}function s(R,y){for(let[S,z]of Object.entries(y))z!==void 0&&R.setAttribute(S,z);return R}function l(R){return new Date(R.getFullYear(),R.getMonth()+1,0).getDate()}function d(R){let y=R.getHours(),{hours:S,dayPeriod:z}=h(y);return{year:R.getFullYear(),month:R.getMonth(),fullMonth:R.getMonth()+1<10?"0"+(R.getMonth()+1):R.getMonth()+1,date:R.getDate(),fullDate:R.getDate()<10?"0"+R.getDate():R.getDate(),day:R.getDay(),hours:y,fullHours:m(y),hours12:S,dayPeriod:z,fullHours12:m(S),minutes:R.getMinutes(),fullMinutes:R.getMinutes()<10?"0"+R.getMinutes():R.getMinutes()}}function h(R){return{dayPeriod:R>11?"pm":"am",hours:R%12==0?12:R%12}}function m(R){return R<10?"0"+R:R}function f(R){let y=10*Math.floor(R.getFullYear()/10);return[y,y+9]}function b(){let R=[];for(var y=arguments.length,S=new Array(y),z=0;z<y;z++)S[z]=arguments[z];return S.forEach((q=>{if(typeof q=="object")for(let M in q)q[M]&&R.push(M);else q&&R.push(q)})),R.join(" ")}function g(R,y){let S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t.days;if(!R||!y)return!1;let z=d(R),q=d(y);return{[t.days]:z.date===q.date&&z.month===q.month&&z.year===q.year,[t.months]:z.month===q.month&&z.year===q.year,[t.years]:z.year===q.year}[S]}function v(R,y,S){let z=_(R,!1).getTime(),q=_(y,!1).getTime();return S?z>=q:z>q}function x(R,y){return!v(R,y,!0)}function _(R){let y=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],S=new Date(R.getTime());return typeof y!="boolean"||y||(function(z){z.setHours(0,0,0,0)})(S),S}function k(R,y,S){R.length?R.forEach((z=>{z.addEventListener(y,S)})):R.addEventListener(y,S)}function N(R,y){return!(!R||R===document||R instanceof DocumentFragment)&&(R.matches(y)?R:N(R.parentNode,y))}function G(R,y,S){return R>S?S:R<y?y:R}function I(R){for(var y=arguments.length,S=new Array(y>1?y-1:0),z=1;z<y;z++)S[z-1]=arguments[z];return S.filter((q=>q)).forEach((q=>{for(let[M,A]of Object.entries(q))if(A!==void 0&&A.toString()==="[object Object]"){let P=R[M]!==void 0?R[M].toString():void 0,U=A.toString(),Y=Array.isArray(A)?[]:{};R[M]=R[M]?P!==U?Y:R[M]:Y,I(R[M],A)}else R[M]=A})),R}function w(R){let y=R;return R instanceof Date||(typeof R=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(R)&&(R+="T00:00:00"),y=new Date(R)),isNaN(y.getTime())&&(console.log(`Unable to convert value "${R}" to Date object`),y=!1),y}function $(R){let y="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+y+")("+R+")($|<|"+y+")","g")}function L(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}class W{constructor(){let{type:y,date:S,dp:z,opts:q,body:M}=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 P=g(A,this.date,this.type);P?this.focus():!P&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()})),L(this,"render",(()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell))),this.type=y,this.singleType=this.type.slice(0,-1),this.date=S,this.dp=z,this.opts=q,this.body=M,this.customData=!1,this.init()}init(){var y,S;let{onRenderCell:z}=this.opts;z&&(this.customData=z({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(y=this.customData)!==null&&y!==void 0&&y.disabled?this.dp.disableDate(this.date):((S=this.customData)===null||S===void 0?void 0:S.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 y;let{year:S,month:z,fullMonth:q,date:M,fullDate:A}=d(this.date),P=((y=this.customData)===null||y===void 0?void 0:y.attrs)||{};this.$cell=a({attrs:{"data-year":S,"data-month":z,"data-date":M,"data-iso-date":`${S}-${q}-${A}`,...P}}),this.$cell.adpCell=this}_getClassName(){var y;let S=new Date,{selectOtherMonths:z,selectOtherYears:q}=this.opts,{minDate:M,maxDate:A,isDateDisabled:P}=this.dp,{day:U}=d(this.date),Y=this._isOutOfMinMaxRange(),ot=P(this.date),et=b("air-datepicker-cell",`-${this.singleType}-`,{"-current-":g(S,this.date,this.type),"-min-date-":M&&g(M,this.date,this.type),"-max-date-":A&&g(A,this.date,this.type)}),at="";switch(this.type){case t.days:at=b({"-weekend-":this.dp.isWeekend(U),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!z||Y||ot});break;case t.months:at=b({"-disabled-":Y});break;case t.years:at=b({"-other-decade-":this.isOtherDecade,"-disabled-":Y||this.isOtherDecade&&!q})}return b(et,at,(y=this.customData)===null||y===void 0?void 0:y.classes).split(" ")}_getHtml(){var y;let{year:S,month:z,date:q}=d(this.date),{showOtherMonths:M,showOtherYears:A}=this.opts;if((y=this.customData)!==null&&y!==void 0&&y.html)return this.customData.html;switch(this.type){case t.days:return!M&&this.isOtherMonth?"":q;case t.months:return this.dp.locale[this.opts.monthsField][z];case t.years:return!A&&this.isOtherDecade?"":S}}_isOutOfMinMaxRange(){let{minDate:y,maxDate:S}=this.dp,{type:z,date:q}=this,{month:M,year:A,date:P}=d(q),U=z===t.days,Y=z===t.years,ot=!!y&&new Date(A,Y?y.getMonth():M,U?P:y.getDate()),et=!!S&&new Date(A,Y?S.getMonth():M,U?P:S.getDate());return y&&S?x(ot,y)||v(et,S):y?x(ot,y):S?v(et,S):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:y,focusDate:S,rangeDateTo:z,rangeDateFrom:q}=this.dp,M=y.length;if(this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),!M)return;let A=q,P=z;if(M===1&&S){let at=v(S,y[0]);A=at?y[0]:S,P=at?S:y[0]}let U=b({"-in-range-":A&&P&&(Y=this.date,ot=A,et=P,v(Y,ot)&&x(Y,et)),"-range-from-":A&&g(this.date,A,this.type),"-range-to-":P&&g(this.date,P,this.type)});var Y,ot,et;U&&this.$cell.classList.add(...U.split(" "))}_handleSelectedStatus(){let y=this.dp._checkIfDateIsSelected(this.date,this.type);y?this.select():!y&&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 tt(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}let ht={[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>`},gt=".air-datepicker-cell";class _t{constructor(y){let{dp:S,type:z,opts:q}=y;tt(this,"handleClick",(M=>{let A=M.target.closest(gt).adpCell;if(A.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let P=this.dp._checkIfDateIsSelected(A.date,A.type);P?this.dp._handleAlreadySelectedDates(P,A.date):this.dp.selectDate(A.date)})),tt(this,"handleDayNameClick",(M=>{let A=M.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(A),datepicker:this.dp})})),tt(this,"onChangeCurrentView",(M=>{M!==this.type?this.hide():(this.show(),this.render())})),tt(this,"onMouseOverCell",(M=>{let A=N(M.target,gt);this.dp.setFocusDate(!!A&&A.adpCell.date)})),tt(this,"onMouseOutCell",(()=>{this.dp.setFocusDate(!1)})),tt(this,"onClickBody",(M=>{let{onClickDayName:A}=this.opts,P=M.target;P.closest(gt)&&this.handleClick(M),A&&P.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(M)})),tt(this,"onMouseDown",(M=>{this.pressed=!0;let A=N(M.target,gt),P=A&&A.adpCell;g(P.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),g(P.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)})),tt(this,"onMouseMove",(M=>{if(!this.pressed||!this.dp.isMinViewReached)return;M.preventDefault();let A=N(M.target,gt),P=A&&A.adpCell,{selectedDates:U,rangeDateTo:Y,rangeDateFrom:ot}=this.dp;if(!P||P.isDisabled)return;let{date:et}=P;if(U.length===2){if(this.rangeFromFocused&&!v(et,Y)){let{hours:at,minutes:fe}=d(ot);et.setHours(at),et.setMinutes(fe),this.dp.rangeDateFrom=et,this.dp.replaceDate(ot,et)}if(this.rangeToFocused&&!x(et,ot)){let{hours:at,minutes:fe}=d(Y);et.setHours(at),et.setMinutes(fe),this.dp.rangeDateTo=et,this.dp.replaceDate(Y,et)}}})),tt(this,"onMouseUp",(()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1})),tt(this,"onChangeViewDate",((M,A)=>{if(!this.isVisible)return;let P=f(M),U=f(A);switch(this.dp.currentView){case t.days:if(g(M,A,t.months))return;break;case t.months:if(g(M,A,t.years))return;break;case t.years:if(P[0]===U[0]&&P[1]===U[1])return}this.render()})),tt(this,"render",(()=>{this.destroyCells(),this._generateCells(),this.cells.forEach((M=>{this.$cells.appendChild(M.render())}))})),this.dp=S,this.type=z,this.opts=q,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:y,dynamicRange:S}=this.opts;k(this.$el,"mouseover",this.onMouseOverCell),k(this.$el,"mouseout",this.onMouseOutCell),k(this.$el,"click",this.onClickBody),y&&S&&(k(this.$el,"mousedown",this.onMouseDown),k(this.$el,"mousemove",this.onMouseMove),k(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:ht[this.type]}),this.$names=n(".air-datepicker-body--day-names",this.$el),this.$cells=n(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,S="",z=this.dp.isWeekend,{onClickDayName:q}=this.opts,M=y,A=0;for(;A<7;){let P=M%7;S+=`<div class="${b("air-datepicker-body--day-name",{[t.cssClassWeekend]:z(P),"-clickable-":!!q})}" data-day-index='${P}'>${this.dp.locale.daysMin[P]}</div>`,A++,M++}return S}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(y){let{type:S,dp:z,opts:q}=this;return new W({type:S,dp:z,opts:q,date:y,body:this})}_generateCells(){_t.getDatesFunction(this.type)(this.dp,(y=>{this.cells.push(this._generateCell(y))}))}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach((y=>y.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(y,S){let{viewDate:z,opts:{fixedHeight:q},locale:{firstDay:M}}=y,A=l(z),{year:P,month:U}=d(z),Y=new Date(P,U,1),ot=new Date(P,U,A),et=Y.getDay()-M,at=6-ot.getDay()+M;et=et<0?et+7:et,at=at>6?at-7:at;let fe=(function(Wi,ph){let{year:$c,month:R_,date:O_}=d(Wi);return new Date($c,R_,O_-ph)})(Y,et),Pr=A+et+at,hr=fe.getDate(),{year:on,month:js}=d(fe),ji=0;q&&(Pr=42);let Gi=[];for(;ji<Pr;){let Wi=new Date(on,js,hr+ji);S&&S(Wi),Gi.push(Wi),ji++}return Gi}static getMonthsDates(y,S){let{year:z}=y.parsedViewDate,q=0,M=[];for(;q<12;){let A=new Date(z,q);M.push(A),S&&S(A),q++}return M}static getYearsDates(y,S){let z=f(y.viewDate),q=z[0]-1,M=z[1]+1,A=q,P=[];for(;A<=M;){let U=new Date(A,0);P.push(U),S&&S(U),A++}return P}static getDatesFunction(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return{[t.days]:_t.getDaysDates,[t.months]:_t.getMonthsDates,[t.years]:_t.getYearsDates}[y]}}function Ot(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}class we{constructor(y){let{dp:S,opts:z}=y;Ot(this,"onClickNav",(q=>{let M=N(q.target,".air-datepicker-nav--action");if(!M)return;let A=M.dataset.action;this.dp[A]()})),Ot(this,"onChangeViewDate",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),Ot(this,"onChangeCurrentView",(()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()})),Ot(this,"onClickNavTitle",(()=>{this.dp.isFinalView||this.dp.up()})),Ot(this,"update",(()=>{let{prevHtml:q,nextHtml:M}=this.opts;this.$prev.innerHTML=q,this.$next.innerHTML=M,this._resetNavStatus(),this.render(),this.handleNavStatus()})),Ot(this,"renderDelay",(()=>{setTimeout(this.render)})),Ot(this,"render",(()=>{this.$title.innerHTML=this._getTitle(),(function(q,M){for(let A in M)M[A]?q.classList.add(A):q.classList.remove(A)})(this.$title,{"-disabled-":this.dp.isFinalView})})),this.dp=S,this.opts=z,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:y,opts:S}=this,z=S.navTitles[y.currentView];return typeof z=="function"?z(y):y.formatDate(y.viewDate,z)}handleNavStatus(){let{disableNavWhenOutOfRange:y}=this.opts,{minDate:S,maxDate:z}=this.dp;if(!S&&!z||!y)return;let{year:q,month:M}=this.dp.parsedViewDate,A=!!S&&d(S),P=!!z&&d(z);switch(this.dp.currentView){case t.days:S&&A.month>=M&&A.year>=q&&this._disableNav("prev"),z&&P.month<=M&&P.year<=q&&this._disableNav("next");break;case t.months:S&&A.year>=q&&this._disableNav("prev"),z&&P.year<=q&&this._disableNav("next");break;case t.years:{let U=f(this.dp.viewDate);S&&A.year>=U[0]&&this._disableNav("prev"),z&&P.year<=U[1]&&this._disableNav("next");break}}}_disableNav(y){n('[data-action="'+y+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(y){for(var S=arguments.length,z=new Array(S>1?S-1:0),q=1;q<S;q++)z[q-1]=arguments[q];y.length?y.forEach((M=>{M.classList.remove(...z)})):y.classList.remove(...z)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:y,nextHtml:S}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${y}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${S}</div>`}get isNavIsFunction(){let{navTitles:y}=this.opts;return Object.keys(y).find((S=>typeof y[S]=="function"))}}var Ke={today:{content:R=>R.locale.today,onClick:R=>R.setViewDate(new Date)},clear:{content:R=>R.locale.clear,onClick:R=>R.clear()}};class pr{constructor(y){let{dp:S,opts:z}=y;this.dp=S,this.opts=z,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:y}=this.opts;Array.isArray(y)||(y=[y]),y.forEach((S=>{let z=S;typeof S=="string"&&Ke[S]&&(z=Ke[S]);let q=this.createButton(z);z.onClick&&this.attachEventToButton(q,z.onClick),this.$el.appendChild(q)}))}attachEventToButton(y,S){y.addEventListener("click",(()=>{S(this.dp)}))}createButton(y){let{content:S,className:z,tagName:q="button",attrs:M={}}=y;return a({tagName:q,innerHtml:`<span tabindex='-1'>${typeof S=="function"?S(this.dp):S}</span>`,className:b("air-datepicker-button",z),attrs:M})}render(){this.generateButtons()}}function Ae(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}class Ye{constructor(){let{opts:y,dp:S}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ae(this,"toggleTimepickerIsActive",(q=>{this.dp.timepickerIsActive=q})),Ae(this,"onChangeSelectedDate",(q=>{let{date:M,updateTime:A=!1}=q;M&&(this.setMinMaxTime(M),this.setCurrentTime(!!A&&M),this.addTimeToDate(M))})),Ae(this,"onChangeLastSelectedDate",(q=>{q&&(this.setTime(q),this.render())})),Ae(this,"onChangeInputRange",(q=>{let M=q.target;this[M.getAttribute("name")]=M.value,this.updateText(),this.dp.trigger(t.eventChangeTime,{hours:this.hours,minutes:this.minutes})})),Ae(this,"onMouseEnterLeave",(q=>{let M=q.target.getAttribute("name"),A=this.$minutesText;M==="hours"&&(A=this.$hoursText),A.classList.toggle("-focus-")})),Ae(this,"onFocus",(()=>{this.toggleTimepickerIsActive(!0)})),Ae(this,"onBlur",(()=>{this.toggleTimepickerIsActive(!1)})),this.opts=y,this.dp=S;let{timeFormat:z}=this.dp.locale;z&&(z.match($("h"))||z.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 y="input";navigator.userAgent.match(/trident/gi)&&(y="change"),k(this.$ranges,y,this.onChangeInputRange),k(this.$ranges,"mouseenter",this.onMouseEnterLeave),k(this.$ranges,"mouseleave",this.onMouseEnterLeave),k(this.$ranges,"focus",this.onFocus),k(this.$ranges,"mousedown",this.onFocus),k(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:y,hours:S,displayHours:z,minutes:q,minHours:M,minMinutes:A,maxHours:P,maxMinutes:U,dayPeriod:Y,opts:{hoursStep:ot,minutesStep:et}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">${m(z)}</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">${m(q)}</span> `+(y?`<span class='air-datepicker-time--current-ampm'>${Y}</span>`:"")+`</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row"> <input type="range" name="hours" value="${S}" min="${M}" max="${P}" step="${ot}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${q}" min="${A}" max="${U}" step="${et}"/> </div></div>`}defineDOM(){let y=S=>n(S,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=y('[name="hours"]'),this.$minutes=y('[name="minutes"]'),this.$hoursText=y(".air-datepicker-time--current-hours"),this.$minutesText=y(".air-datepicker-time--current-minutes"),this.$ampm=y(".air-datepicker-time--current-ampm")}setTime(y){this.setMinMaxTime(y),this.setCurrentTime(y)}addTimeToDate(y){y&&(y.setHours(this.hours),y.setMinutes(this.minutes))}setMinMaxTime(y){if(this.setMinMaxTimeFromOptions(),y){let{minDate:S,maxDate:z}=this.dp;S&&g(y,S)&&this.setMinTimeFromMinDate(S),z&&g(y,z)&&this.setMaxTimeFromMaxDate(z)}}setCurrentTime(y){let{hours:S,minutes:z}=y?d(y):this;this.hours=G(S,this.minHours,this.maxHours),this.minutes=G(z,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:y,minMinutes:S,maxHours:z,maxMinutes:q}=this.opts;this.minHours=G(y,0,23),this.minMinutes=G(S,0,59),this.maxHours=G(z,0,23),this.maxMinutes=G(q,0,59)}setMinTimeFromMinDate(y){let{lastSelectedDate:S}=this.dp;this.minHours=y.getHours(),S&&S.getHours()>y.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=y.getMinutes()}setMaxTimeFromMaxDate(y){let{lastSelectedDate:S}=this.dp;this.maxHours=y.getHours(),S&&S.getHours()<y.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=y.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(y){this._hours=y;let{hours:S,dayPeriod:z}=h(y);this.displayHours=this.ampm?S:y,this.dayPeriod=z}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function _e(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}class ri{constructor(y){let{dp:S,opts:z}=y;_e(this,"pressedKeys",new Set),_e(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],q=>q.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],q=>q.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],q=>q.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],q=>q.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],q=>q.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],q=>q.year-=10],[["Control","Shift","ArrowUp"],(q,M)=>M.up()]])),_e(this,"handleHotKey",(q=>{let M=this.hotKeys.get(q),A=d(this.getInitialFocusDate());M(A,this.dp);let{year:P,month:U,date:Y}=A,ot=l(new Date(P,U));ot<Y&&(Y=ot);let et=this.dp.getClampedDate(new Date(P,U,Y));this.dp.setFocusDate(et,{viewDateTransition:!0})})),_e(this,"isHotKeyPressed",(()=>{let q=!1,M=this.pressedKeys.size,A=P=>this.pressedKeys.has(P);for(let[P]of this.hotKeys){if(q)break;if(Array.isArray(P[0]))P.forEach((U=>{q||M!==U.length||(q=U.every(A)&&P)}));else{if(M!==P.length)continue;q=P.every(A)&&P}}return q})),_e(this,"isArrow",(q=>q>=37&&q<=40)),_e(this,"onKeyDown",(q=>{if(!this.dp.visible&&!this.dp.treatAsInline)return;let{key:M,which:A}=q,{dp:P,dp:{focusDate:U},opts:Y}=this;this.registerKey(M);let ot=this.isHotKeyPressed();if(ot)return q.preventDefault(),void this.handleHotKey(ot);if(this.isArrow(A))return q.preventDefault(),void this.focusNextCell(M);if(M==="Enter"){if(P.currentView!==Y.minView)return void P.down();if(U){let et=P._checkIfDateIsSelected(U);return void(et?P._handleAlreadySelectedDates(et,U):P.selectDate(U))}}M==="Escape"&&this.dp.hide()})),_e(this,"onKeyUp",(q=>{this.removeKey(q.key)})),this.dp=S,this.opts=z,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:y}=this.dp;y.addEventListener("keydown",this.onKeyDown),y.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:y}=this.dp;y.removeEventListener("keydown",this.onKeyDown),y.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:y,currentView:S,selectedDates:z,parsedViewDate:{year:q,month:M}}=this.dp,A=y||z[z.length-1];if(!A)switch(S){case t.days:A=new Date(q,M,new Date().getDate());break;case t.months:A=new Date(q,M,1);break;case t.years:A=new Date(q,0,1)}return A}focusNextCell(y){let S=this.getInitialFocusDate(),{currentView:z}=this.dp,{days:q,months:M,years:A}=t,P=d(S),U=P.year,Y=P.month,ot=P.date;switch(y){case"ArrowLeft":z===q&&(ot-=1),z===M&&(Y-=1),z===A&&(U-=1);break;case"ArrowUp":z===q&&(ot-=7),z===M&&(Y-=3),z===A&&(U-=4);break;case"ArrowRight":z===q&&(ot+=1),z===M&&(Y+=1),z===A&&(U+=1);break;case"ArrowDown":z===q&&(ot+=7),z===M&&(Y+=3),z===A&&(U+=4)}let et=this.dp.getClampedDate(new Date(U,Y,ot));this.dp.setFocusDate(et,{viewDateTransition:!0})}registerKey(y){this.pressedKeys.add(y)}removeKey(y){this.pressedKeys.delete(y)}}let qa={on(R,y){this.__events||(this.__events={}),this.__events[R]?this.__events[R].push(y):this.__events[R]=[y]},off(R,y){this.__events&&this.__events[R]&&(this.__events[R]=this.__events[R].filter((S=>S!==y)))},removeAllEvents(){this.__events={}},trigger(R){for(var y=arguments.length,S=new Array(y>1?y-1:0),z=1;z<y;z++)S[z-1]=arguments[z];this.__events&&this.__events[R]&&this.__events[R].forEach((q=>{q(...S)}))}};function mt(R,y,S){return(y=(function(z){var q=(function(M,A){if(typeof M!="object"||M===null)return M;var P=M[Symbol.toPrimitive];if(P!==void 0){var U=P.call(M,"string");if(typeof U!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)})(z);return typeof q=="symbol"?q:String(q)})(y))in R?Object.defineProperty(R,y,{value:S,enumerable:!0,configurable:!0,writable:!0}):R[y]=S,R}let Io="",Do="",ut=!1;class it{static buildGlobalContainer(y){ut=!0,Io=a({className:y,id:y}),n("body").appendChild(Io)}constructor(y,S){var z=this;if(mt(this,"viewIndexes",[t.days,t.months,t.years]),mt(this,"next",(()=>{let{year:A,month:P}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,P+1,1));break;case t.months:this.setViewDate(new Date(A+1,P,1));break;case t.years:this.setViewDate(new Date(A+10,0,1))}})),mt(this,"prev",(()=>{let{year:A,month:P}=this.parsedViewDate;switch(this.currentView){case t.days:this.setViewDate(new Date(A,P-1,1));break;case t.months:this.setViewDate(new Date(A-1,P,1));break;case t.years:this.setViewDate(new Date(A-10,0,1))}})),mt(this,"_finishHide",(()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)})),mt(this,"setPosition",(function(A){let P=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(A=A||z.opts.position)=="function")return void(z.customHide=A({$datepicker:z.$datepicker,$target:z.$el,$pointer:z.$pointer,isViewChange:P,done:z._finishHide}));let U,Y,{isMobile:ot}=z.opts,et=z.$el.getBoundingClientRect(),at=z.$el.getBoundingClientRect(),fe=z.$datepicker.offsetParent,Pr=z.$el.offsetParent,hr=z.$datepicker.getBoundingClientRect(),on=A.split(" "),js=window.scrollY,ji=window.scrollX,Gi=z.opts.offset,Wi=on[0],ph=on[1];if(ot)z.$datepicker.style.cssText="left: 50%; top: 50%";else{if(fe===Pr&&fe!==document.body&&(at={top:z.$el.offsetTop,left:z.$el.offsetLeft,width:et.width,height:z.$el.offsetHeight},js=0,ji=0),fe!==Pr&&fe!==document.body){let $c=fe.getBoundingClientRect();at={top:et.top-$c.top,left:et.left-$c.left,width:et.width,height:et.height},js=0,ji=0}switch(Wi){case"top":U=at.top-hr.height-Gi;break;case"right":Y=at.left+at.width+Gi;break;case"bottom":U=at.top+at.height+Gi;break;case"left":Y=at.left-hr.width-Gi}switch(ph){case"top":U=at.top;break;case"right":Y=at.left+at.width-hr.width;break;case"bottom":U=at.top+at.height-hr.height;break;case"left":Y=at.left;break;case"center":/left|right/.test(Wi)?U=at.top+at.height/2-hr.height/2:Y=at.left+at.width/2-hr.width/2}z.$datepicker.style.cssText=`left: ${Y+ji}px; top: ${U+js}px`}})),mt(this,"_setInputValue",(()=>{let{opts:A,$altField:P,locale:{dateFormat:U}}=this,{altFieldDateFormat:Y,altField:ot}=A;ot&&P&&(P.value=this._getInputValue(Y)),this.$el.value=this._getInputValue(U),this.$el.dispatchEvent(new Event("change"))})),mt(this,"_getInputValue",(A=>{let{selectedDates:P,opts:U}=this,{multipleDates:Y,multipleDatesSeparator:ot}=U;if(!P.length)return"";let et=typeof A=="function",at=et?A(Y?P:P[0]):P.map((fe=>this.formatDate(fe,A)));return at=et?at:at.join(ot),at})),mt(this,"_checkIfDateIsSelected",(function(A){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.days,U=!1;return z.selectedDates.some((Y=>{let ot=g(A,Y,P);return U=ot&&Y,ot})),U})),mt(this,"_scheduleCallAfterTransition",(A=>{this._cancelScheduledCall(),A&&A(!1),this._onTransitionEnd=()=>{A&&A(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})})),mt(this,"_cancelScheduledCall",(()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)})),mt(this,"setViewDate",(A=>{if(!((A=w(A))instanceof Date)||g(A,this.viewDate))return;let P=this.viewDate;this.viewDate=A;let{onChangeViewDate:U}=this.opts;if(U){let{month:Y,year:ot}=this.parsedViewDate;U({month:Y,year:ot,decade:this.curDecade})}this.trigger(t.eventChangeViewDate,A,P)})),mt(this,"setFocusDate",(function(A){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!A||(A=w(A))instanceof Date)&&(z.focusDate=A,z.trigger(t.eventChangeFocusDate,A,P))})),mt(this,"setCurrentView",(function(A){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(z.viewIndexes.includes(A)){if(z.currentView=A,z.elIsInput&&z.visible&&z.setPosition(void 0,!0),z.trigger(t.eventChangeCurrentView,A),!z.views[A]){let U=z.views[A]=new _t({dp:z,opts:z.opts,type:A});z.shouldUpdateDOM&&z.$content.appendChild(U.$el)}z.opts.onChangeView&&!P.silent&&z.opts.onChangeView(A)}})),mt(this,"_updateLastSelectedDate",(A=>{this.lastSelectedDate=A,this.trigger(t.eventChangeLastSelectedDate,A)})),mt(this,"destroy",(()=>{if(this.isDestroyed)return;let{showEvent:A,isMobile:P}=this.opts,U=this.$datepicker.parentNode;U&&U.removeChild(this.$datepicker),this.$el.removeEventListener(A,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),P&&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})),mt(this,"update",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=I({},z.opts),{silent:Y}=P;I(z.opts,A);let{timepicker:ot,buttons:et,range:at,selectedDates:fe,isMobile:Pr}=z.opts,hr=z.visible||z.treatAsInline;z._createMinMaxDates(),z._limitViewDateByMaxMinDates(),z._handleLocale(),fe&&(z.selectedDates=[],z.selectDate(fe,{silent:Y})),A.view&&z.setCurrentView(A.view,{silent:Y}),z._setInputValue(),U.range&&!at?(z.rangeDateTo=!1,z.rangeDateFrom=!1):!U.range&&at&&z.selectedDates.length&&(z.rangeDateFrom=z.selectedDates[0],z.rangeDateTo=z.selectedDates[1]),U.timepicker&&!ot?(hr&&z.timepicker.destroy(),z.timepicker=!1,z.$timepicker.parentNode.removeChild(z.$timepicker)):!U.timepicker&&ot&&z._addTimepicker(),!U.buttons&&et?z._addButtons():U.buttons&&!et?(z.buttons.destroy(),z.$buttons.parentNode.removeChild(z.$buttons)):hr&&U.buttons&&et&&z.buttons.clearHtml().render(),!U.isMobile&&Pr?(z.treatAsInline||Do||z._createMobileOverlay(),z._addMobileAttributes(),z.visible&&z._showMobileOverlay()):U.isMobile&&!Pr&&(z._removeMobileAttributes(),z.visible&&(Do.classList.remove("-active-"),typeof z.opts.position!="function"&&z.setPosition())),hr&&(z.nav.update(),z.views[z.currentView].render(),z.currentView===t.days&&z.views[z.currentView].renderDayNames())})),mt(this,"disableDate",((A,P)=>{(Array.isArray(A)?A:[A]).forEach((U=>{let Y=w(U);if(!Y)return;let ot=P?"delete":"add";this.disabledDates[ot](this.formatDate(Y,"yyyy-MM-dd"));let et=this.getCell(Y,this.currentViewSingular);et&&et.adpCell.render()}),[])})),mt(this,"enableDate",(A=>{this.disableDate(A,!0)})),mt(this,"isDateDisabled",(A=>{let P=w(A);return this.disabledDates.has(this.formatDate(P,"yyyy-MM-dd"))})),mt(this,"isOtherMonth",(A=>{let{month:P}=d(A);return P!==this.parsedViewDate.month})),mt(this,"isOtherYear",(A=>{let{year:P}=d(A);return P!==this.parsedViewDate.year})),mt(this,"isOtherDecade",(A=>{let{year:P}=d(A),[U,Y]=f(this.viewDate);return P<U||P>Y})),mt(this,"_onChangeSelectedDate",(A=>{let{silent:P}=A;setTimeout((()=>{this._setInputValue(),this.opts.onSelect&&!P&&this._triggerOnSelect()}))})),mt(this,"_onChangeFocusedDate",(function(A){let{viewDateTransition:P}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!A)return;let U=!1;P&&(U=z.isOtherMonth(A)||z.isOtherYear(A)||z.isOtherDecade(A)),U&&z.setViewDate(A),z.opts.onFocus&&z.opts.onFocus({datepicker:z,date:A})})),mt(this,"_onChangeTime",(A=>{let{hours:P,minutes:U}=A,Y=new Date,{lastSelectedDate:ot,opts:{onSelect:et}}=this,at=ot;ot||(at=Y);let fe=this.getCell(at,this.currentViewSingular),Pr=fe&&fe.adpCell;Pr&&Pr.isDisabled||(at.setHours(P),at.setMinutes(U),ot?(this._setInputValue(),et&&this._triggerOnSelect()):this.selectDate(at))})),mt(this,"_onFocus",(A=>{this.visible||this.show()})),mt(this,"_onBlur",(A=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()})),mt(this,"_onMouseDown",(A=>{this.inFocus=!0})),mt(this,"_onMouseUp",(A=>{this.inFocus=!1,this.$el.focus()})),mt(this,"_onResize",(()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()})),mt(this,"_onClickOverlay",(()=>{this.visible&&this.hide()})),mt(this,"getViewDates",(function(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.days;return _t.getDatesFunction(A)(z)})),mt(this,"isWeekend",(A=>this.opts.weekends.includes(A))),mt(this,"getClampedDate",(A=>{let{minDate:P,maxDate:U}=this,Y=A;return U&&v(A,U)?Y=U:P&&x(A,P)&&(Y=P),Y})),this.$el=n(y),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=I({},r,S),this.$customContainer=!!this.opts.container&&n(this.opts.container),this.$altField=n(this.opts.altField||!1);let{view:q,startDate:M}=this.opts;M||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=w(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=q,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:y,treatAsInline:S,opts:{inline:z,isMobile:q,selectedDates:M,keyboardNav:A,onlyTimepicker:P}}=this,U=n("body");(!ut||ut&&Io&&!U.contains(Io))&&!z&&this.elIsInput&&!this.$customContainer&&it.buildGlobalContainer(it.defaultGlobalContainerId),!q||Do||S||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(z||this._bindEvents(),A&&!P&&(this.keyboardNav=new ri({dp:this,opts:y}))),M&&this.selectDate(M,{silent:!0}),this.opts.visible&&!S&&this.show(),q&&!S&&this.$el.setAttribute("readonly",!0),S&&this._createComponents()}_createMobileOverlay(){Do=a({className:"air-datepicker-overlay"}),Io.appendChild(Do)}_createComponents(){let{opts:y,treatAsInline:S,opts:{inline:z,buttons:q,timepicker:M,position:A,classes:P,onlyTimepicker:U,isMobile:Y}}=this;this._buildBaseHtml(),this.elIsInput&&(z||this._setPositionClasses(A)),!z&&this.elIsInput||this.$datepicker.classList.add("-inline-"),P&&this.$datepicker.classList.add(...P.split(" ")),U&&this.$datepicker.classList.add("-only-timepicker-"),Y&&!S&&this._addMobileAttributes(),this.views[this.currentView]=new _t({dp:this,type:this.currentView,opts:y}),this.nav=new we({dp:this,opts:y}),M&&this._addTimepicker(),q&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let y in this.views)this.views[y].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){Do.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Do.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:y,maxDate:S}=this.opts;this.minDate=!!y&&w(y),this.maxDate=!!S&&w(S)}_addTimepicker(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new Ye({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 pr({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:y}=this.opts;var S,z;this.elIsInput?y?(S=this.$datepicker,(z=this.$el).parentNode.insertBefore(S,z.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:y,dateFormat:S,firstDay:z,timepicker:q,onlyTimepicker:M,timeFormat:A,dateTimeSeparator:P}=this.opts;var U;this.locale=(U=y,JSON.parse(JSON.stringify(U))),S&&(this.locale.dateFormat=S),A!==void 0&&A!==""&&(this.locale.timeFormat=A);let{timeFormat:Y}=this.locale;if(z!==""&&(this.locale.firstDay=z),q&&typeof S!="function"){let ot=Y?P:"";this.locale.dateFormat=[this.locale.dateFormat,Y||""].join(ot)}M&&typeof S!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(y){if(typeof y=="function")return void this.$datepicker.classList.add("-custom-position-");let S=(y=y.split(" "))[0],z=`air-datepicker -${S}-${y[1]}- -from-${S}-`;this.$datepicker.classList.add(...z.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:y,minDate:S,maxDate:z}=this;z&&v(y,z)&&this.setViewDate(z),S&&x(y,S)&&this.setViewDate(S)}formatDate(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,S=arguments.length>1?arguments[1]:void 0;if(y=w(y),!(y instanceof Date))return;let z=S,q=this.locale,M=d(y),A=M.dayPeriod,P=f(y),U=it.replacer,Y={T:y.getTime(),m:M.minutes,mm:M.fullMinutes,h:M.hours12,hh:M.fullHours12,H:M.hours,HH:M.fullHours,aa:A,AA:A.toUpperCase(),E:q.daysShort[M.day],EEEE:q.days[M.day],d:M.date,dd:M.fullDate,M:M.month+1,MM:M.fullMonth,MMM:q.monthsShort[M.month],MMMM:q.months[M.month],yy:M.year.toString().slice(-2),yyyy:M.year,yyyy1:P[0],yyyy2:P[1]};for(let[ot,et]of Object.entries(Y))z=U(z,$(ot),et);return z}down(y){this._handleUpDownActions(y,"down")}up(y){this._handleUpDownActions(y,"up")}selectDate(y){let S,z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:q,parsedViewDate:M,selectedDates:A}=this,{updateTime:P,silent:U}=z,{moveToOtherMonthsOnSelect:Y,moveToOtherYearsOnSelect:ot,multipleDates:et,range:at,autoClose:fe,onBeforeSelect:Pr}=this.opts,hr=A.length;if(Array.isArray(y))return y.forEach((on=>{this.selectDate(on,z)})),new Promise((on=>{setTimeout(on)}));if((y=w(y))instanceof Date){if(Pr&&!U&&!Pr({date:y,datepicker:this}))return Promise.resolve();if(q===t.days&&y.getMonth()!==M.month&&Y&&(S=new Date(y.getFullYear(),y.getMonth(),1)),q===t.years&&y.getFullYear()!==M.year&&ot&&(S=new Date(y.getFullYear(),0,1)),S&&this.setViewDate(S),et&&!at){if(hr===et)return;this._checkIfDateIsSelected(y)||A.push(y)}else if(at)switch(hr){case 1:A.push(y),this.rangeDateTo||(this.rangeDateTo=y),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=y),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[y],this.rangeDateFrom=y,this.rangeDateTo="";break;default:this.selectedDates=[y],this.rangeDateFrom=y}else this.selectedDates=[y];return this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,silent:z?.silent,date:y,updateTime:P}),this._updateLastSelectedDate(y),fe&&!this.timepickerIsActive&&this.visible&&(et||at?at&&hr===1&&this.hide():this.hide()),new Promise((on=>{setTimeout(on)}))}}unselectDate(y){let S=this.selectedDates,z=this;if((y=w(y))instanceof Date)return S.some(((q,M)=>{if(g(q,y))return S.splice(M,1),z.selectedDates.length?(z.rangeDateTo="",z.rangeDateFrom=S[0],z._updateLastSelectedDate(z.selectedDates[z.selectedDates.length-1])):(z.rangeDateFrom="",z.rangeDateTo="",z._updateLastSelectedDate(!1)),this.trigger(t.eventChangeSelectedDate,{action:t.actionUnselectDate,date:y}),!0}))}replaceDate(y,S){let z=this.selectedDates.find((M=>g(M,y,this.currentView))),q=this.selectedDates.indexOf(z);q<0||g(this.selectedDates[q],S,this.currentView)||(this.selectedDates[q]=S,this.trigger(t.eventChangeSelectedDate,{action:t.actionSelectDate,date:S,updateTime:!0}),this._updateLastSelectedDate(S))}clear(){let y=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:y.silent}),new Promise((S=>{setTimeout(S)}))}show(){let{onShow:y,isMobile:S}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,y&&this._scheduleCallAfterTransition(y),S&&this._showMobileOverlay()}hide(){let{onHide:y,isMobile:S}=this.opts,z=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition((q=>{!this.customHide&&(q&&z||!q&&!z)&&this._finishHide(),y&&y(q)})),S&&Do.classList.remove("-active-")}_triggerOnSelect(){let y=[],S=[],{selectedDates:z,locale:q,opts:{onSelect:M,multipleDates:A,range:P}}=this,U=A||P,Y=typeof q.dateFormat=="function";z.length&&(y=z.map(_),S=Y?A?q.dateFormat(y):y.map((ot=>q.dateFormat(ot))):y.map((ot=>this.formatDate(ot,q.dateFormat)))),M({date:U?y:y[0],formattedDate:U?S:S[0],datepicker:this})}_handleAlreadySelectedDates(y,S){let{selectedDates:z,rangeDateFrom:q,rangeDateTo:M}=this,{range:A,toggleSelected:P}=this.opts,U=z.length,Y=typeof P=="function"?P({datepicker:this,date:S}):P,ot=!!(A&&U===1&&y),et=ot?_(S):S;A&&!Y&&(U!==2&&this.selectDate(et),U===2&&g(q,M))||(Y?this.unselectDate(et):this._updateLastSelectedDate(ot?et:y))}_handleUpDownActions(y,S){if(!((y=w(y||this.focusDate||this.viewDate))instanceof Date))return;let z=S==="up"?this.viewIndex+1:this.viewIndex-1;z>2&&(z=2),z<0&&(z=0),this.setViewDate(new Date(y.getFullYear(),y.getMonth(),1)),this.setCurrentView(this.viewIndexes[z])}getCell(y){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.day;if(!((y=w(y))instanceof Date))return;let{year:z,month:q,date:M}=d(y),A=`[data-year="${z}"]`,P=`[data-month="${q}"]`,U={[t.day]:`${A}${P}[data-date="${M}"]`,[t.month]:`${A}${P}`,[t.year]:`${A}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(U[S]):void 0}_showMobileOverlay(){Do.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce(((y,S)=>parseFloat(S)+y),0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return d(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return f(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===t.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===t.days}get $container(){return this.$customContainer||Io}static replacer(y,S,z){return y.replace(S,(function(q,M,A,P){return M+z+P}))}}var xt;return mt(it,"defaults",r),mt(it,"version","3.6.0"),mt(it,"defaultGlobalContainerId","air-datepicker-global-container"),xt=it.prototype,Object.assign(xt,qa),o.default})()}))});var Ws=globalThis,og=i=>i,Ac=Ws.trustedTypes,ng=Ac?Ac.createPolicy("lit-html",{createHTML:i=>i}):void 0,uh="$lit$",An=`lit$${Math.random().toFixed(9).slice(2)}$`,mh="?"+An,H_=`<${mh}>`,Xi=document,Ks=()=>Xi.createComment(""),Ys=i=>i===null||typeof i!="object"&&typeof i!="function",fh=Array.isArray,dg=i=>fh(i)||typeof i?.[Symbol.iterator]=="function",hh=`[
|
|
3
3
|
\f\r]`,Gs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ig=/-->/g,ag=/>/g,Ki=RegExp(`>|${hh}(?:([^\\s"'>=/]+)(${hh}*=${hh}*(?:[^
|
|
4
4
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),sg=/'/g,lg=/"/g,pg=/^(?:script|style|textarea|title)$/i,gh=i=>(o,...t)=>({_$litType$:i,strings:o,values:t}),u=gh(1),No=gh(2),hg=gh(3),ae=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),cg=new WeakMap,Yi=Xi.createTreeWalker(Xi,129);function ug(i,o){if(!fh(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ng!==void 0?ng.createHTML(o):o}var mg=(i,o)=>{let t=i.length-1,r=[],n,a=o===2?"<svg>":o===3?"<math>":"",s=Gs;for(let l=0;l<t;l++){let d=i[l],h,m,f=-1,b=0;for(;b<d.length&&(s.lastIndex=b,m=s.exec(d),m!==null);)b=s.lastIndex,s===Gs?m[1]==="!--"?s=ig:m[1]!==void 0?s=ag:m[2]!==void 0?(pg.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Ki):m[3]!==void 0&&(s=Ki):s===Ki?m[0]===">"?(s=n??Gs,f=-1):m[1]===void 0?f=-2:(f=s.lastIndex-m[2].length,h=m[1],s=m[3]===void 0?Ki:m[3]==='"'?lg:sg):s===lg||s===sg?s=Ki:s===ig||s===ag?s=Gs:(s=Ki,n=void 0);let g=s===Ki&&i[l+1].startsWith("/>")?" ":"";a+=s===Gs?d+H_:f>=0?(r.push(h),d.slice(0,f)+uh+d.slice(f)+An+g):d+An+(f===-2?l:g)}return[ug(i,a+(i[t]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),r]},Xs=class i{constructor({strings:o,_$litType$:t},r){let n;this.parts=[];let a=0,s=0,l=o.length-1,d=this.parts,[h,m]=mg(o,t);if(this.el=i.createElement(h,r),Yi.currentNode=this.el.content,t===2||t===3){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=Yi.nextNode())!==null&&d.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(uh)){let b=m[s++],g=n.getAttribute(f).split(An),v=/([.?@])?(.*)/.exec(b);d.push({type:1,index:a,name:v[2],strings:g,ctor:v[1]==="."?Mc:v[1]==="?"?qc:v[1]==="@"?Ic:Ji}),n.removeAttribute(f)}else f.startsWith(An)&&(d.push({type:6,index:a}),n.removeAttribute(f));if(pg.test(n.tagName)){let f=n.textContent.split(An),b=f.length-1;if(b>0){n.textContent=Ac?Ac.emptyScript:"";for(let g=0;g<b;g++)n.append(f[g],Ks()),Yi.nextNode(),d.push({type:2,index:++a});n.append(f[b],Ks())}}}else if(n.nodeType===8)if(n.data===mh)d.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(An,f+1))!==-1;)d.push({type:7,index:a}),f+=An.length-1}a++}}static createElement(o,t){let r=Xi.createElement("template");return r.innerHTML=o,r}};function Qi(i,o,t=i,r){if(o===ae)return o;let n=r!==void 0?t._$Co?.[r]:t._$Cl,a=Ys(o)?void 0:o._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(i),n._$AT(i,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(o=Qi(i,n._$AS(i,o.values),n,r)),o}var Lc=class{constructor(o,t){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:t},parts:r}=this._$AD,n=(o?.creationScope??Xi).importNode(t,!0);Yi.currentNode=n;let a=Yi.nextNode(),s=0,l=0,d=r[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new Ia(a,a.nextSibling,this,o):d.type===1?h=new d.ctor(a,d.name,d.strings,this,o):d.type===6&&(h=new Dc(a,this,o)),this._$AV.push(h),d=r[++l]}s!==d?.index&&(a=Yi.nextNode(),s++)}return Yi.currentNode=Xi,n}p(o){let t=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(o,r,t),t+=r.strings.length-2):r._$AI(o[t])),t++}},Ia=class i{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,t,r,n){this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=o,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,t=this._$AM;return t!==void 0&&o?.nodeType===11&&(o=t.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,t=this){o=Qi(this,o,t),Ys(o)?o===V||o==null||o===""?(this._$AH!==V&&this._$AR(),this._$AH=V):o!==this._$AH&&o!==ae&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):dg(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==V&&Ys(this._$AH)?this._$AA.nextSibling.data=o:this.T(Xi.createTextNode(o)),this._$AH=o}$(o){let{values:t,_$litType$:r}=o,n=typeof r=="number"?this._$AC(o):(r.el===void 0&&(r.el=Xs.createElement(ug(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Lc(n,this),s=a.u(this.options);a.p(t),this.T(s),this._$AH=a}}_$AC(o){let t=cg.get(o.strings);return t===void 0&&cg.set(o.strings,t=new Xs(o)),t}k(o){fh(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let a of o)n===t.length?t.push(r=new i(this.O(Ks()),this.O(Ks()),this,this.options)):r=t[n],r._$AI(a),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(o=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);o!==this._$AB;){let r=og(o).nextSibling;og(o).remove(),o=r}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Ji=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,t,r,n,a){this.type=1,this._$AH=V,this._$AN=void 0,this.element=o,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=V}_$AI(o,t=this,r,n){let a=this.strings,s=!1;if(a===void 0)o=Qi(this,o,t,0),s=!Ys(o)||o!==this._$AH&&o!==ae,s&&(this._$AH=o);else{let l=o,d,h;for(o=a[0],d=0;d<a.length-1;d++)h=Qi(this,l[r+d],t,d),h===ae&&(h=this._$AH[d]),s||(s=!Ys(h)||h!==this._$AH[d]),h===V?o=V:o!==V&&(o+=(h??"")+a[d+1]),this._$AH[d]=h}s&&!n&&this.j(o)}j(o){o===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Mc=class extends Ji{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===V?void 0:o}},qc=class extends Ji{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==V)}},Ic=class extends Ji{constructor(o,t,r,n,a){super(o,t,r,n,a),this.type=5}_$AI(o,t=this){if((o=Qi(this,o,t,0)??V)===ae)return;let r=this._$AH,n=o===V&&r!==V||o.capture!==r.capture||o.once!==r.once||o.passive!==r.passive,a=o!==V&&(r===V||n);n&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},Dc=class{constructor(o,t,r){this.element=o,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(o){Qi(this,o)}},fg={M:uh,P:An,A:mh,C:1,L:mg,R:Lc,D:dg,V:Qi,I:Ia,H:Ji,N:qc,U:Ic,B:Mc,F:Dc},F_=Ws.litHtmlPolyfillSupport;F_?.(Xs,Ia),(Ws.litHtmlVersions??(Ws.litHtmlVersions=[])).push("3.3.3");var Da=(i,o,t)=>{let r=t?.renderBefore??o,n=r._$litPart$;if(n===void 0){let a=t?.renderBefore??null;r._$litPart$=n=new Ia(o.insertBefore(Ks(),a),a,void 0,t??{})}return n._$AI(i),n};var or={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},se=i=>(...o)=>({_$litDirective$:i,values:o}),Xe=class{constructor(o){}get _$AU(){return this._$AM._$AU}_$AT(o,t,r){this._$Ct=o,this._$AM=t,this._$Ci=r}_$AS(o,t){return this.update(o,t)}update(o,t){return this.render(...t)}};var D=se(class extends Xe{constructor(i){if(super(i),i.type!==or.ATTRIBUTE||i.name!=="class"||i.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter(o=>i[o]).join(" ")+" "}update(i,[o]){if(this.st===void 0){this.st=new Set,i.strings!==void 0&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(r=>r!=="")));for(let r in o)o[r]&&!this.nt?.has(r)&&this.st.add(r);return this.render(o)}let t=i.element.classList;for(let r of this.st)r in o||(t.remove(r),this.st.delete(r));for(let r in o){let n=!!o[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 ae}});var Nc=globalThis,Rc=Nc.ShadowRoot&&(Nc.ShadyCSS===void 0||Nc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bh=Symbol(),gg=new WeakMap,Qs=class{constructor(o,t,r){if(this._$cssResult$=!0,r!==bh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=o,this.t=t}get styleSheet(){let o=this.o,t=this.t;if(Rc&&o===void 0){let r=t!==void 0&&t.length===1;r&&(o=gg.get(t)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),r&&gg.set(t,o))}return o}toString(){return this.cssText}},T=i=>new Qs(typeof i=="string"?i:i+"",void 0,bh),E=(i,...o)=>{let t=i.length===1?i[0]:o.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)+i[a+1],i[0]);return new Qs(t,i,bh)},bg=(i,o)=>{if(Rc)i.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of o){let r=document.createElement("style"),n=Nc.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,i.appendChild(r)}},vh=Rc?i=>i:i=>i instanceof CSSStyleSheet?(o=>{let t="";for(let r of o.cssRules)t+=r.cssText;return T(t)})(i):i;var{is:B_,defineProperty:V_,getOwnPropertyDescriptor:U_,getOwnPropertyNames:j_,getOwnPropertySymbols:G_,getPrototypeOf:W_}=Object,oi=globalThis,vg=oi.trustedTypes,K_=vg?vg.emptyScript:"",Y_=oi.reactiveElementPolyfillSupport,Js=(i,o)=>i,ni={toAttribute(i,o){switch(o){case Boolean:i=i?K_:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,o){let t=i;switch(o){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch{t=null}}return t}},Na=(i,o)=>!B_(i,o),xg={attribute:!0,type:String,converter:ni,reflect:!1,useDefault:!1,hasChanged:Na};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),oi.litPropertyMetadata??(oi.litPropertyMetadata=new WeakMap);var Ln=class extends HTMLElement{static addInitializer(o){this._$Ei(),(this.l??(this.l=[])).push(o)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(o,t=xg){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(o)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(o,t),!t.noAccessor){let r=Symbol(),n=this.getPropertyDescriptor(o,r,t);n!==void 0&&V_(this.prototype,o,n)}}static getPropertyDescriptor(o,t,r){let{get:n,set:a}=U_(this.prototype,o)??{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(o,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(o){return this.elementProperties.get(o)??xg}static _$Ei(){if(this.hasOwnProperty(Js("elementProperties")))return;let o=W_(this);o.finalize(),o.l!==void 0&&(this.l=[...o.l]),this.elementProperties=new Map(o.elementProperties)}static finalize(){if(this.hasOwnProperty(Js("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Js("properties"))){let t=this.properties,r=[...j_(t),...G_(t)];for(let n of r)this.createProperty(n,t[n])}let o=this[Symbol.metadata];if(o!==null){let t=litPropertyMetadata.get(o);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(o){let t=[];if(Array.isArray(o)){let r=new Set(o.flat(1/0).reverse());for(let n of r)t.unshift(vh(n))}else o!==void 0&&t.push(vh(o));return t}static _$Eu(o,t){let r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof o=="string"?o.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(o=>this.enableUpdating=o),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(o=>o(this))}addController(o){(this._$EO??(this._$EO=new Set)).add(o),this.renderRoot!==void 0&&this.isConnected&&o.hostConnected?.()}removeController(o){this._$EO?.delete(o)}_$E_(){let o=new Map,t=this.constructor.elementProperties;for(let r of t.keys())this.hasOwnProperty(r)&&(o.set(r,this[r]),delete this[r]);o.size>0&&(this._$Ep=o)}createRenderRoot(){let o=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bg(o,this.constructor.elementStyles),o}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(o=>o.hostConnected?.())}enableUpdating(o){}disconnectedCallback(){this._$EO?.forEach(o=>o.hostDisconnected?.())}attributeChangedCallback(o,t,r){this._$AK(o,r)}_$ET(o,t){let r=this.constructor.elementProperties.get(o),n=this.constructor._$Eu(o,r);if(n!==void 0&&r.reflect===!0){let a=(r.converter?.toAttribute!==void 0?r.converter:ni).toAttribute(t,r.type);this._$Em=o,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(o,t){let r=this.constructor,n=r._$Eh.get(o);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:ni;this._$Em=n;let l=s.fromAttribute(t,a.type);this[n]=l??this._$Ej?.get(n)??l,this._$Em=null}}requestUpdate(o,t,r,n=!1,a){if(o!==void 0){let s=this.constructor;if(n===!1&&(a=this[o]),r??(r=s.getPropertyOptions(o)),!((r.hasChanged??Na)(a,t)||r.useDefault&&r.reflect&&a===this._$Ej?.get(o)&&!this.hasAttribute(s._$Eu(o,r))))return;this.C(o,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(o,t,{useDefault:r,reflect:n,wrapped:a},s){r&&!(this._$Ej??(this._$Ej=new Map)).has(o)&&(this._$Ej.set(o,s??t??this[o]),a!==!0||s!==void 0)||(this._$AL.has(o)||(this.hasUpdated||r||(t=void 0),this._$AL.set(o,t)),n===!0&&this._$Em!==o&&(this._$Eq??(this._$Eq=new Set)).add(o))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let o=this.scheduleUpdate();return o!=null&&await o,!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 o=!1,t=this._$AL;try{o=this.shouldUpdate(t),o?(this.willUpdate(t),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(t)):this._$EM()}catch(r){throw o=!1,this._$EM(),r}o&&this._$AE(t)}willUpdate(o){}_$AE(o){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(o)),this.updated(o)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(o){return!0}update(o){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(o){}firstUpdated(o){}};Ln.elementStyles=[],Ln.shadowRootOptions={mode:"open"},Ln[Js("elementProperties")]=new Map,Ln[Js("finalized")]=new Map,Y_?.({ReactiveElement:Ln}),(oi.reactiveElementVersions??(oi.reactiveElementVersions=[])).push("2.1.2");var Zs=globalThis,ii=class extends Ln{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;let o=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=o.firstChild),o}update(o){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(o),this._$Do=Da(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ae}};ii._$litElement$=!0,ii.finalized=!0,Zs.litElementHydrateSupport?.({LitElement:ii});var X_=Zs.litElementPolyfillSupport;X_?.({LitElement:ii});(Zs.litElementVersions??(Zs.litElementVersions=[])).push("4.2.2");var yg=new WeakMap;function zg(i){let o=yg.get(i);return o||(o=window.getComputedStyle(i,null),yg.set(i,o)),o}function Q_(i){if(typeof i.checkVisibility=="function")return i.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let o=zg(i);return o.visibility!=="hidden"&&o.display!=="none"}function J_(i){let o=zg(i),{overflowY:t,overflowX:r}=o;return t==="scroll"||r==="scroll"?!0:t!=="auto"||r!=="auto"?!1:i.scrollHeight>i.clientHeight&&t==="auto"||i.scrollWidth>i.clientWidth&&r==="auto"}function Z_(i){let o=i.tagName.toLowerCase(),t=Number(i.getAttribute("tabindex"));return i.hasAttribute("tabindex")&&(isNaN(t)||t<=-1)||i.hasAttribute("disabled")||i.closest("[inert]")||o==="input"&&i.getAttribute("type")==="radio"&&!i.hasAttribute("checked")||!Q_(i)?!1:(o==="audio"||o==="video")&&i.hasAttribute("controls")||i.hasAttribute("tabindex")||i.hasAttribute("contenteditable")&&i.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(o)?!0:J_(i)}function wg(i){let o=xh(i),t=o[0]??null,r=o[o.length-1]??null;return{start:t,end:r}}function tk(i,o){return i.getRootNode({composed:!0})?.host!==o}function xh(i){let o=new WeakMap,t=[];function r(n){if(n instanceof Element){if(n.hasAttribute("inert")||n.closest("[inert]")||o.has(n))return;o.set(n,!0),!t.includes(n)&&Z_(n)&&t.push(n),n instanceof HTMLSlotElement&&tk(n,i)&&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(i),t.sort((n,a)=>{let s=Number(n.getAttribute("tabindex"))||0;return(Number(a.getAttribute("tabindex"))||0)-s})}var _g=new WeakMap,yh=class{constructor(o){this.handleKeyDown=o=>{if(o.key==="Enter"){if(o.altKey||o.ctrlKey||o.metaKey||o.shiftKey||o.isComposing||o.defaultPrevented)return;let r=o.target;if(this.isSelectOption(r)){o.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){o.preventDefault(),this.focusNextInGroup(r,n)||this.focusNextControl(n);return}o.preventDefault(),this.areRequiredFieldsFilled()?this.submitForm():this.focusNextControl(r);return}if(o.key==="ArrowDown"){let t=o.target,r=t.tagName;if(!(o.altKey||o.ctrlKey||o.metaKey||o.shiftKey)&&!o.defaultPrevented){let a=this.findParentGroup(t);if(a){o.preventDefault(),this.focusNextInGroup(t,a)||this.focusNextControl(a);return}(r==="ZN-CHECKBOX"||r==="ZN-TOGGLE")&&(o.preventDefault(),this.focusNextControl(t))}}if(o.key==="ArrowUp"){let t=o.target,r=t.tagName;if(!(o.altKey||o.ctrlKey||o.metaKey||o.shiftKey)&&!o.defaultPrevented){let a=this.findParentGroup(t);if(a){o.preventDefault(),this.focusPreviousInGroup(t,a)||this.focusPreviousControl(a);return}(r==="ZN-CHECKBOX"||r==="ZN-TOGGLE")&&(o.preventDefault(),this.focusPreviousControl(t))}}};this.form=o,this.form.addEventListener("keydown",this.handleKeyDown,!0)}shouldSkipEnterKey(o){let t=o.tagName.toLowerCase();return t==="zn-textarea"||t==="textarea"||(t==="zn-input"||t==="input")&&o.getAttribute("type")==="search"?!0:t==="button"||t==="zn-button"}shouldExcludeFromNavigation(o){let t=o.tagName.toLowerCase();return t==="button"||t==="zn-button"}isSelectOption(o){return o.tagName.toLowerCase()==="zn-option"}findParentSelect(o){let t=o;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(o){let t=o;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(o){let t=o.tagName==="ZN-RADIO-GROUP"?"ZN-RADIO":"ZN-CHECKBOX",r=[],n=document.createTreeWalker(o,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(o,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]===o||r[a].contains(o)){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(o,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]===o||r[a].contains(o)){n=a;break}if(n>0){let a=r[n-1];if(typeof a.focus=="function")return a.focus(),!0}return!1}areRequiredFieldsFilled(){let o=Zi.get(this.form);if(!o)return!0;for(let t of o){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 o=xh(this.form),t=[],r=new Set;for(let n of o){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(o,t){for(let r=0;r<t.length;r++){let n=t[r];if(n===o)return r;let a=o.getRootNode();if(a instanceof ShadowRoot&&a.host===n||n.contains(o)||o.contains(n))return r}return-1}focusNextControl(o){let t=this.getNavigableControls(),r=this.findCurrentControlIndex(o,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(o){let t=this.getNavigableControls(),r=this.findCurrentControlIndex(o,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 o=this.form.querySelector('[type="submit"]');if(o)o.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 kg(i){let o=_g.get(i);return o||(o=new yh(i),_g.set(i,o)),o}var mr=class{constructor(o,t,r=0){this.storage=o,this.prefix=t,this.ttl=r*1e3,this.cleanup()}get(o){return!o||o.length<1?null:this.stripTtl(this.storage.getItem(this.prefix+o))}stripTtl(o){if(o===null)return null;let t=o.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(o,t,r){!o||o.length<1||(r=r>0?Date.now()+r*1e3:0,this.storage.setItem(this.prefix+o,r+","+t))}set(o,t){this.setWithTTL(o,t,this.ttl)}remove(o){this.storage.removeItem(this.prefix+o)}cleanup(){for(let o=0;o<this.storage.length;o++){let t=this.storage.key(o);t!==null&&t.startsWith(this.prefix)&&this.stripTtl(this.storage.getItem(t))===null&&this.storage.removeItem(t)}}};var Zi=new WeakMap,tl=new WeakMap,el=new WeakMap,Oc=new WeakMap,zh=new WeakSet,Pc=new WeakMap,$g="znform:";function wh(i=!1){try{return i?window.localStorage:window.sessionStorage}catch{return null}}function ek(i=!1,o=0){let t=wh(i);return t?new mr(t,$g,o):null}function Cg(i){let o=i?.getAttribute("store-ttl");return o&&Number(o)||0}function Sg(i){return!!i?.hasAttribute("local-storage")}function Ag(i){return i?.getAttribute("store-key")||""}function rk(i){return i.getAttribute("store-key")||""}function ok(i){return i.getAttribute("name")||("name"in i&&typeof i.name=="string"?i.name:"")}function Lg(i,o){let t=rk(i),r=Ag(o);if(t)return r?`${r}:${t}`:t;let n=ok(i);return r&&n?`${r}:${n}`:""}function Mg(i,o){let t=Sg(i)||Sg(o),r=Cg(i)||Cg(o);return ek(t,r)}function qg(i,o){let t=Lg(i,o),n=(t?Mg(i,o):null)?.get(t);if(!n)return null;try{return JSON.parse(n)}catch{return{value:n}}}function Ig(i,o,t){let r=Lg(i,o),n=r?Mg(i,o):null;n&&n.set(r,JSON.stringify(t))}function nk(i){return i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement||i instanceof HTMLSelectElement}function ik(i){return i instanceof HTMLInputElement&&(i.type==="checkbox"||i.type==="radio")?{checked:i.checked,value:i.value}:{value:i.value}}function ak(i){i.querySelectorAll("input, textarea, select").forEach(t=>{let r=qg(t,i);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 Eg(i,o){!nk(i)||i.form!==o||Ig(i,o,ik(i))}function sk(i,o){let t={value:o};return"checked"in i&&typeof i.checked=="boolean"&&(t.checked=i.checked),"indeterminate"in i&&typeof i.indeterminate=="boolean"&&(t.indeterminate=i.indeterminate),t}function Tg(i,o){let t=[],r=$g+o;for(let n=0;n<i.length;n++){let a=i.key(n);(a===r||a?.startsWith(r+":"))&&t.push(a)}t.forEach(n=>i.removeItem(n))}function lk(i){let o=typeof i=="string"?i:Ag(i);if(!o)return;let t=wh(!0),r=wh(!1);t&&Tg(t,o),r&&r!==t&&Tg(r,o)}var nt=class{constructor(o,t){this.handleFormData=o=>{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=>{o.formData.append(r,m.toString())},l=(m,f)=>{let b=m,g=f??(typeof b.name=="string"?b.name:void 0);typeof g=="string"?o.formData.append(r,m,g):o.formData.append(r,m)},d=m=>typeof FileList<"u"&&m instanceof FileList,h=m=>typeof Blob<"u"&&m instanceof Blob;if(d(n)){if(n.length>0)for(let m=0;m<n.length;m++){let f=n.item(m);f&&l(f,f.name)}}else h(n)?l(n,n.name):Array.isArray(n)?n.forEach(m=>{if(h(m))l(m,m.name);else if(d(m)){let f=m;for(let b=0;b<f.length;b++){let g=f.item(b);g&&l(g,g.name)}}else s(m)}):s(n);this.host.dispatchEvent(new CustomEvent("zn-formdata",{bubbles:!0,composed:!0}))}};this.handleFormSubmit=o=>{let t=this.options.disabled(this.host),r=this.options.reportValidity;this.form&&!this.form.noValidate&&Zi.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)&&(o.preventDefault(),o.stopImmediatePropagation(),n&&(n.disabled=!1,n.innerHTML=a))};this.enableSubmit=o=>{if(o.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),Pc.set(this.host,[])};this.handleInteraction=o=>{let t=Pc.get(this.host);t.includes(o.type)||t.push(o.type),t.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0),this.persistHostValue(),this.checkFormValidity()};this.checkFormValidity=()=>{let o=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 o?.setAttribute("disabled","disabled"),!1}return o?.removeAttribute("disabled"),!0};this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){let o=this.form.querySelectorAll("*");for(let t of o)if(typeof t.reportValidity=="function"&&!t.reportValidity())return!1}return!0};(this.host=o).addController(this),this.options={form:r=>{let n=r.form;if(n){let s=r.getRootNode().querySelector(`#${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 o=this.options.form(this.host);o&&this.attachForm(o),Pc.set(this.host,[]),this.options.assumeInteractionOn.forEach(t=>{this.host.addEventListener(t,this.handleInteraction)}),await this.host.updateComplete,this.restorePersistedValue(),o&&this.checkFormValidity()}hostDisconnected(){this.detachForm(),Pc.delete(this.host),this.options.assumeInteractionOn.forEach(o=>{this.host.removeEventListener(o,this.handleInteraction)})}hostUpdated(){let o=this.options.form(this.host);o||this.detachForm(),o&&this.form!==o&&(this.detachForm(),this.attachForm(o)),this.host.hasUpdated&&this.setValidity(this.host.validity?.valid)}attachForm(o){if(!o){this.form=void 0;return}this.form=o,Zi.has(this.form)?Zi.get(this.form).add(this.host):Zi.set(this.form,new Set([this.host])),this.form.hasAttribute("data-enter-navigation")&&kg(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),tl.has(this.form)||(tl.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),el.has(this.form)||(el.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())}detachForm(){if(!this.form)return;let o=Zi.get(this.form);o&&(o.delete(this.host),o.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),tl.has(this.form)&&(this.form.reportValidity=tl.get(this.form),tl.delete(this.form)),el.has(this.form)&&(this.form.checkValidity=el.get(this.form),el.delete(this.form)),this.form=void 0))}attachFormPersistence(o){if(Oc.has(o))return;let t=n=>Eg(n.target,o),r=n=>Eg(n.target,o);o.addEventListener("input",t),o.addEventListener("change",r),Oc.set(o,{handleInput:t,handleChange:r}),ak(o)}detachFormPersistence(o){let t=Oc.get(o);t&&(o.removeEventListener("input",t.handleInput),o.removeEventListener("change",t.handleChange),Oc.delete(o))}restorePersistedValue(){let o=qg(this.host,this.form);o&&("checked"in this.host&&typeof o.checked=="boolean"?this.options.setValue(this.host,o.checked):"value"in o&&this.options.setValue(this.host,o.value),"indeterminate"in this.host&&typeof o.indeterminate=="boolean"&&(this.host.indeterminate=o.indeterminate))}persistHostValue(){Ig(this.host,this.form,sk(this.host,this.options.value(this.host)))}setUserInteracted(o,t){t?zh.add(o):zh.delete(o),o.requestUpdate()}doAction(o,t){if(this.form){let r=document.createElement("button");r.type=o,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(o){this.doAction("reset",o)}submit(o){this.doAction("submit",o)}setValidity(o){let t=this.host,r=!!zh.has(t),n=!!t.required;t.toggleAttribute("data-required",n),t.toggleAttribute("data-optional",!n),t.toggleAttribute("data-invalid",!o),t.toggleAttribute("data-valid",o),t.toggleAttribute("data-user-invalid",!o&&r),t.toggleAttribute("data-user-valid",o&&r)}updateValidity(){let o=this.host;this.setValidity(o.validity?.valid)}emitInvalidEvent(o){let t=new CustomEvent("zn-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});o||t.preventDefault(),this.host.dispatchEvent(t)||o?.preventDefault()}},ge=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),Hc=Object.freeze({...ge,customError:!0,valid:!1}),Fc=Object.freeze({...ge,valueMissing:!0,valid:!1});var Q=class{constructor(o,...t){this.slotNames=[];this.handleSlotChange=o=>{let t=o.target;(this.slotNames.includes("[default]")&&!t.name||t.name&&this.slotNames.includes(t.name))&&this.host.requestUpdate()};(this.host=o).addController(this),this.slotNames=t}hasDefaultSlot(){return[...this.host.childNodes].some(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent.trim()!=="")return!0;if(o.nodeType===o.ELEMENT_NODE){let t=o;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(o){return this.host.querySelector(`:scope > [slot="${o}"]`)!==null}test(o){return o==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(o)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}getSlot(o){return this.host.querySelector(`:scope > [slot="${o}"]`)}getDefaultSlot(){return[...this.host.childNodes].filter(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent.trim()!=="")return!0;if(o.nodeType===o.ELEMENT_NODE){let t=o;if(t.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!t.hasAttribute("slot"))return!0}return!1})}getSlots(o){return this.host.querySelectorAll(`:scope > [slot="${o}"]`)}};function Dg(i){if(!i)return"";let o=i.assignedNodes({flatten:!0}),t="";return[...o].forEach(r=>{r.nodeType===Node.TEXT_NODE&&(t+=r.textContent)}),t}var Rg=Symbol.for(""),ck=i=>{if(i?.r===Rg)return i?._$litStatic$};var Mn=(i,...o)=>({_$litStatic$:o.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
5
|
take care to ensure page security.`)})(r)+i[n+1],i[0]),r:Rg}),Ng=new Map,_h=i=>(o,...t)=>{let r=t.length,n,a,s=[],l=[],d,h=0,m=!1;for(;h<r;){for(d=o[h];h<r&&(a=t[h],(n=ck(a))!==void 0);)d+=n+o[++h],m=!0;h!==r&&l.push(a),s.push(d),h++}if(h===r&&s.push(o[r]),m){let f=s.join("$$lit$$");(o=Ng.get(f))===void 0&&(s.raw=s,Ng.set(f,o=s)),t=l}return i(o,...t)},le=_h(u),wq=_h(No),_q=_h(hg);var H=i=>i??V;var Og=i=>(o,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(i,o)}):customElements.define(i,o)};var dk={attribute:!0,type:String,converter:ni,reflect:!1,hasChanged:Na},pk=(i=dk,o,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"&&((i=Object.create(i)).wrapped=!0),a.set(t.name,i),r==="accessor"){let{name:s}=t;return{set(l){let d=o.get.call(this);o.set.call(this,l),this.requestUpdate(s,d,i,!0,l)},init(l){return l!==void 0&&this.C(s,void 0,i,l),l}}}if(r==="setter"){let{name:s}=t;return function(l){let d=this[s];o.call(this,l),this.requestUpdate(s,d,i,!0,l)}}throw Error("Unsupported decorator location: "+r)};function p(i){return(o,t)=>typeof t=="object"?pk(i,o,t):((r,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,r),s?Object.getOwnPropertyDescriptor(n,a):void 0})(i,o,t)}function O(i){return p({...i,state:!0,attribute:!1})}function Pg(i){return(o,t)=>{let r=typeof o=="function"?o:o[t];Object.assign(r,i)}}var nn=(i,o,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof o!="object"&&Object.defineProperty(i,o,t),t);function F(i,o){return(t,r,n)=>{let a=s=>s.renderRoot?.querySelector(i)??null;if(o){let{get:s,set:l}=typeof r=="object"?t:n??(()=>{let d=Symbol();return{get(){return this[d]},set(h){this[d]=h}}})();return nn(t,r,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&l.call(this,d)),d}})}return nn(t,r,{get(){return a(this)}})}}var hk;function Ra(i){return(o,t)=>nn(o,t,{get(){return(this.renderRoot??hk??(hk=document.createDocumentFragment())).querySelectorAll(i)}})}function Hg(i){return(o,t)=>nn(o,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(i)??null}})}function Fg(i){return(o,t)=>{let{slot:r}=i??{},n="slot"+(r?`[name=${r}]`:":not([name])");return nn(o,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(i)??[]}})}}var Bg="important",uk=" !"+Bg,Sr=se(class extends Xe{constructor(i){if(super(i),i.type!==or.ATTRIBUTE||i.name!=="style"||i.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(i){return Object.keys(i).reduce((o,t)=>{let r=i[t];return r==null?o:o+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`},"")}update(i,[o]){let{style:t}=i.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(o)),this.render(o);for(let r of this.ft)o[r]==null&&(this.ft.delete(r),r.includes("-")?t.removeProperty(r):t[r]=null);for(let r in o){let n=o[r];if(n!=null){this.ft.add(r);let a=typeof n=="string"&&n.endsWith(uk);r.includes("-")||a?t.setProperty(r,a?n.slice(0,-11):n,a?Bg:""):t[r]=n}}return ae}});function K(i,o){let t={waitUntilFirstUpdate:!1,...o};return(r,n)=>{let{update:a}=r,s=Array.isArray(i)?i:[i];r.update=function(l){s.forEach(d=>{let h=d;if(l.has(h)){let m=l.get(h),f=this[h];m!==f&&(!t.waitUntilFirstUpdate||this.hasUpdated)&&this[n](m,f)}}),a.call(this,l)}}}var mk=Object.defineProperty,fk=(i,o,t)=>o in i?mk(i,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[o]=t,kh=(i,o,t)=>(fk(i,typeof o!="symbol"?o+"":o,t),t),gk=(i,o,t)=>{if(!o.has(i))throw TypeError("Cannot "+t)},Ch=(i,o)=>{if(Object(o)!==o)throw TypeError('Cannot use the "in" operator on this value');return i.has(o)},Bc=(i,o,t)=>{if(o.has(i))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(i):o.set(i,t)},Vg=(i,o,t)=>(gk(i,o,"access private method"),t);function Ug(i,o){return Object.is(i,o)}var Le=null,rl=!1,Vc=1,Uc=Symbol("SIGNAL");function Oa(i){let o=Le;return Le=i,o}function bk(){return Le}function vk(){return rl}var Ah={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 jc(i){if(rl)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(Le===null)return;Le.consumerOnSignalRead(i);let o=Le.nextProducerIndex++;if(Pa(Le),o<Le.producerNode.length&&Le.producerNode[o]!==i&&Th(Le)){let t=Le.producerNode[o];Gc(t,Le.producerIndexOfThis[o])}Le.producerNode[o]!==i&&(Le.producerNode[o]=i,Le.producerIndexOfThis[o]=Th(Le)?Wg(i,Le,o):0),Le.producerLastReadVersion[o]=i.version}function xk(){Vc++}function jg(i){if(!(!i.dirty&&i.lastCleanEpoch===Vc)){if(!i.producerMustRecompute(i)&&!kk(i)){i.dirty=!1,i.lastCleanEpoch=Vc;return}i.producerRecomputeValue(i),i.dirty=!1,i.lastCleanEpoch=Vc}}function Gg(i){if(i.liveConsumerNode===void 0)return;let o=rl;rl=!0;try{for(let t of i.liveConsumerNode)t.dirty||zk(t)}finally{rl=o}}function yk(){return Le?.consumerAllowSignalWrites!==!1}function zk(i){var o;i.dirty=!0,Gg(i),(o=i.consumerMarkedDirty)==null||o.call(i.wrapper??i)}function wk(i){return i&&(i.nextProducerIndex=0),Oa(i)}function _k(i,o){if(Oa(o),!(!i||i.producerNode===void 0||i.producerIndexOfThis===void 0||i.producerLastReadVersion===void 0)){if(Th(i))for(let t=i.nextProducerIndex;t<i.producerNode.length;t++)Gc(i.producerNode[t],i.producerIndexOfThis[t]);for(;i.producerNode.length>i.nextProducerIndex;)i.producerNode.pop(),i.producerLastReadVersion.pop(),i.producerIndexOfThis.pop()}}function kk(i){Pa(i);for(let o=0;o<i.producerNode.length;o++){let t=i.producerNode[o],r=i.producerLastReadVersion[o];if(r!==t.version||(jg(t),r!==t.version))return!0}return!1}function Wg(i,o,t){var r;if(Lh(i),Pa(i),i.liveConsumerNode.length===0){(r=i.watched)==null||r.call(i.wrapper);for(let n=0;n<i.producerNode.length;n++)i.producerIndexOfThis[n]=Wg(i.producerNode[n],i,n)}return i.liveConsumerIndexOfThis.push(t),i.liveConsumerNode.push(o)-1}function Gc(i,o){var t;if(Lh(i),Pa(i),typeof ngDevMode<"u"&&ngDevMode&&o>=i.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${o} is out of bounds of ${i.liveConsumerNode.length} consumers)`);if(i.liveConsumerNode.length===1){(t=i.unwatched)==null||t.call(i.wrapper);for(let n=0;n<i.producerNode.length;n++)Gc(i.producerNode[n],i.producerIndexOfThis[n])}let r=i.liveConsumerNode.length-1;if(i.liveConsumerNode[o]=i.liveConsumerNode[r],i.liveConsumerIndexOfThis[o]=i.liveConsumerIndexOfThis[r],i.liveConsumerNode.length--,i.liveConsumerIndexOfThis.length--,o<i.liveConsumerNode.length){let n=i.liveConsumerIndexOfThis[o],a=i.liveConsumerNode[o];Pa(a),a.producerIndexOfThis[n]=o}}function Th(i){var o;return i.consumerIsAlwaysLive||(((o=i?.liveConsumerNode)==null?void 0:o.length)??0)>0}function Pa(i){i.producerNode??(i.producerNode=[]),i.producerIndexOfThis??(i.producerIndexOfThis=[]),i.producerLastReadVersion??(i.producerLastReadVersion=[])}function Lh(i){i.liveConsumerNode??(i.liveConsumerNode=[]),i.liveConsumerIndexOfThis??(i.liveConsumerIndexOfThis=[])}function Kg(i){if(jg(i),jc(i),i.value===$h)throw i.error;return i.value}function Ck(i){let o=Object.create(Sk);o.computation=i;let t=()=>Kg(o);return t[Uc]=o,t}var Sh=Symbol("UNSET"),Eh=Symbol("COMPUTING"),$h=Symbol("ERRORED"),Sk={...Ah,value:Sh,dirty:!0,error:null,equal:Ug,producerMustRecompute(i){return i.value===Sh||i.value===Eh},producerRecomputeValue(i){if(i.value===Eh)throw new Error("Detected cycle in computations.");let o=i.value;i.value=Eh;let t=wk(i),r,n=!1;try{r=i.computation.call(i.wrapper),n=o!==Sh&&o!==$h&&i.equal.call(i.wrapper,o,r)}catch(a){r=$h,i.error=a}finally{_k(i,t)}if(n){i.value=o;return}i.value=r,i.version++}};function Ek(){throw new Error}var Tk=Ek;function $k(){Tk()}function Ak(i){let o=Object.create(qk);o.value=i;let t=()=>(jc(o),o.value);return t[Uc]=o,t}function Lk(){return jc(this),this.value}function Mk(i,o){yk()||$k(),i.equal.call(i.wrapper,i.value,o)||(i.value=o,Ik(i))}var qk={...Ah,equal:Ug,value:void 0};function Ik(i){i.version++,xk(),Gg(i)}var nr=Symbol("node"),Yt;(i=>{var o,t,r,n,a,s;class l{constructor(m,f={}){Bc(this,t),kh(this,o);let g=Ak(m)[Uc];if(this[nr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[i.subtle.watched],g.unwatched=f[i.subtle.unwatched]}}get(){if(!(0,i.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return Lk.call(this[nr])}set(m){if(!(0,i.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(vk())throw new Error("Writes to signals not permitted during Watcher callback");let f=this[nr];Mk(f,m)}}o=nr,t=new WeakSet,r=function(){},i.isState=h=>typeof h=="object"&&Ch(t,h),i.State=l;class d{constructor(m,f){Bc(this,a),kh(this,n);let g=Ck(m)[Uc];if(g.consumerAllowSignalWrites=!0,this[nr]=g,g.wrapper=this,f){let v=f.equals;v&&(g.equal=v),g.watched=f[i.subtle.watched],g.unwatched=f[i.subtle.unwatched]}}get(){if(!(0,i.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return Kg(this[nr])}}n=nr,a=new WeakSet,s=function(){},i.isComputed=h=>typeof h=="object"&&Ch(a,h),i.Computed=d,(h=>{var m,f,b,g,v;function x($){let L,W=null;try{W=Oa(null),L=$()}finally{Oa(W)}return L}h.untrack=x;function _($){var L;if(!(0,i.isComputed)($)&&!(0,i.isWatcher)($))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((L=$[nr].producerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSources=_;function k($){var L;if(!(0,i.isComputed)($)&&!(0,i.isState)($))throw new TypeError("Called introspectSinks without a Signal argument");return((L=$[nr].liveConsumerNode)==null?void 0:L.map(W=>W.wrapper))??[]}h.introspectSinks=k;function N($){if(!(0,i.isComputed)($)&&!(0,i.isState)($))throw new TypeError("Called hasSinks without a Signal argument");let L=$[nr].liveConsumerNode;return L?L.length>0:!1}h.hasSinks=N;function G($){if(!(0,i.isComputed)($)&&!(0,i.isWatcher)($))throw new TypeError("Called hasSources without a Computed or Watcher argument");let L=$[nr].producerNode;return L?L.length>0:!1}h.hasSources=G;class I{constructor(L){Bc(this,f),Bc(this,g),kh(this,m);let W=Object.create(Ah);W.wrapper=this,W.consumerMarkedDirty=L,W.consumerIsAlwaysLive=!0,W.consumerAllowSignalWrites=!1,W.producerNode=[],this[nr]=W}watch(...L){if(!(0,i.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Vg(this,g,v).call(this,L);let W=this[nr];W.dirty=!1;let tt=Oa(W);for(let ht of L)jc(ht[nr]);Oa(tt)}unwatch(...L){if(!(0,i.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");Vg(this,g,v).call(this,L);let W=this[nr];Pa(W);for(let tt=W.producerNode.length-1;tt>=0;tt--)if(L.includes(W.producerNode[tt].wrapper)){Gc(W.producerNode[tt],W.producerIndexOfThis[tt]);let ht=W.producerNode.length-1;if(W.producerNode[tt]=W.producerNode[ht],W.producerIndexOfThis[tt]=W.producerIndexOfThis[ht],W.producerNode.length--,W.producerIndexOfThis.length--,W.nextProducerIndex--,tt<W.producerNode.length){let gt=W.producerIndexOfThis[tt],_t=W.producerNode[tt];Lh(_t),_t.liveConsumerIndexOfThis[gt]=tt}}}getPending(){if(!(0,i.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[nr].producerNode.filter(W=>W.dirty).map(W=>W.wrapper)}}m=nr,f=new WeakSet,b=function(){},g=new WeakSet,v=function($){for(let L of $)if(!(0,i.isComputed)(L)&&!(0,i.isState)(L))throw new TypeError("Called watch/unwatch without a Computed or State argument")},i.isWatcher=$=>Ch(f,$),h.Watcher=I;function w(){var $;return($=bk())==null?void 0:$.wrapper}h.currentComputed=w,h.watched=Symbol("watched"),h.unwatched=Symbol("unwatched")})(i.subtle||(i.subtle={}))})(Yt||(Yt={}));var Mh=!1,Yg=new Yt.subtle.Watcher(()=>{Mh||(Mh=!0,queueMicrotask(()=>{Mh=!1;for(let i of Yg.getPending())i.get();Yg.watch()}))}),Dk=Symbol("SignalWatcherBrand"),Nk=new FinalizationRegistry(i=>{i.unwatch(...Yt.subtle.introspectSources(i))}),Xg=new WeakMap;function Wc(i){return i[Dk]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),i):class extends i{constructor(){super(...arguments),this._$St=new Map,this._$So=new Yt.State(0),this._$Si=!1}_$Sl(){var o,t;let r=[],n=[];this._$St.forEach((s,l)=>{(s?.beforeUpdate?r:n).push(l)});let a=(o=this.h)===null||o===void 0?void 0:o.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 Yt.Computed(()=>{this._$So.get(),super.performUpdate()});let o=this.h=new Yt.subtle.Watcher(function(){let t=Xg.get(this);t!==void 0&&(t._$Si===!1&&(new Set(this.getPending()).has(t._$Su)?t.requestUpdate():t._$Sv()),this.watch())});Xg.set(o,this),Nk.register(this,o),o.watch(this._$Su),o.watch(...Array.from(this._$St).map(([t])=>t))}_$Sp(){if(this.h===void 0)return;let o=!1;this.h.unwatch(...Yt.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),o||(o=!n),n})),o||(this._$Su=void 0,this.h=void 0,this._$St.clear())}updateEffect(o,t){var r;this._$S_();let n=new Yt.Computed(()=>{o()});return this.h.watch(n),this._$St.set(n,t),(r=t?.beforeUpdate)!==null&&r!==void 0&&r?Yt.subtle.untrack(()=>n.get()):this.updateComplete.then(()=>Yt.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:Rk}=fg,Qg=i=>i;var Kc=i=>i.strings===void 0,Jg=()=>document.createComment(""),Ha=(i,o,t)=>{let r=i._$AA.parentNode,n=o===void 0?i._$AB:o._$AA;if(t===void 0){let a=r.insertBefore(Jg(),n),s=r.insertBefore(Jg(),n);t=new Rk(a,s,i,i.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==i;if(l){let d;t._$AQ?.(i),t._$AM=i,t._$AP!==void 0&&(d=i._$AU)!==s._$AU&&t._$AP(d)}if(a!==n||l){let d=t._$AA;for(;d!==a;){let h=Qg(d).nextSibling;Qg(r).insertBefore(d,n),d=h}}}return t},ai=(i,o,t=i)=>(i._$AI(o,t),i),Ok={},Fa=(i,o=Ok)=>i._$AH=o,Zg=i=>i._$AH,Yc=i=>{i._$AR(),i._$AA.remove()};var ol=(i,o)=>{let t=i._$AN;if(t===void 0)return!1;for(let r of t)r._$AO?.(o,!1),ol(r,o);return!0},Xc=i=>{let o,t;do{if((o=i._$AM)===void 0)break;t=o._$AN,t.delete(i),i=o}while(t?.size===0)},tb=i=>{for(let o;o=i._$AM;i=o){let t=o._$AN;if(t===void 0)o._$AN=t=new Set;else if(t.has(i))break;t.add(i),Fk(o)}};function Pk(i){this._$AN!==void 0?(Xc(this),this._$AM=i,tb(this)):this._$AM=i}function Hk(i,o=!1,t=0){let r=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(o)if(Array.isArray(r))for(let a=t;a<r.length;a++)ol(r[a],!1),Xc(r[a]);else r!=null&&(ol(r,!1),Xc(r));else ol(this,i)}var Fk=i=>{i.type==or.CHILD&&(i._$AP??(i._$AP=Hk),i._$AQ??(i._$AQ=Pk))},si=class extends Xe{constructor(){super(...arguments),this._$AN=void 0}_$AT(o,t,r){super._$AT(o,t,r),tb(this),this.isConnected=o._$AU}_$AO(o,t=!0){o!==this.isConnected&&(this.isConnected=o,o?this.reconnected?.():this.disconnected?.()),t&&(ol(this,o),Xc(this))}setValue(o){if(Kc(this._$Ct))this._$Ct._$AI(o,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=o,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}};var qh=!1,Ih=new Yt.subtle.Watcher(async()=>{qh||(qh=!0,queueMicrotask(()=>{qh=!1;for(let i of Ih.getPending())i.get();Ih.watch()}))}),Qc=class extends si{_$S_(){var o,t;this._$Sm===void 0&&(this._$Sj=new Yt.Computed(()=>{var r;let n=(r=this._$SW)===null||r===void 0?void 0:r.get();return this.setValue(n),n}),this._$Sm=(t=(o=this._$Sk)===null||o===void 0?void 0:o.h)!==null&&t!==void 0?t:Ih,this._$Sm.watch(this._$Sj),Yt.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(o){return Yt.subtle.untrack(()=>o.get())}update(o,[t]){var r,n;return(r=this._$Sk)!==null&&r!==void 0||(this._$Sk=(n=o.options)===null||n===void 0?void 0:n.host),t!==this._$SW&&this._$SW!==void 0&&this._$Sp(),this._$SW=t,this._$S_(),Yt.subtle.untrack(()=>this._$SW.get())}disconnected(){this._$Sp()}reconnected(){this._$S_()}},Dh=se(Qc);var Nh=i=>(o,...t)=>i(o,...t.map(r=>r instanceof Yt.State||r instanceof Yt.Computed?Dh(r):r)),Bk=Nh(u),Vk=Nh(No);var NI=Yt.State,RI=Yt.Computed,eb=(i,o)=>new Yt.State(i,o);function ob(){return typeof document>"u"?"light":document.documentElement.getAttribute("t")||document.body.getAttribute("t")||"light"}var Jc=eb(ob()),rb=!1;function Uk(){rb||typeof window>"u"||(rb=!0,window.addEventListener("theme-change",i=>{let o=i.detail,t;typeof o=="string"?t=o:o&&typeof o=="object"&&"theme"in o&&typeof o.theme=="string"?t=o.theme:t=ob(),t!==Jc.get()&&Jc.set(t)}))}Uk();var jk=Wc(ii),C=class extends jk{willUpdate(o){this.t=Jc.get(),super.willUpdate(o)}static define(o,t=this,r={}){let n=customElements.get(o);if(!n){customElements.define(o,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 <${o}>${a} but it is already registered as <${o}>${s}.`)}constructor(){super(),Object.entries(this.constructor.dependencies).forEach(([o,t])=>{this.constructor.define(o,t)})}emit(o,t){let r=new CustomEvent(o,{bubbles:!0,cancelable:!0,composed:!0,detail:{element:this},...t});return this.dispatchEvent(r),r}};C.dependencies={},c([p()],C.prototype,"dir",2),c([p()],C.prototype,"lang",2),c([p({reflect:!0})],C.prototype,"t",2);var ta=class extends Xe{constructor(o){if(super(o),this.it=V,o.type!==or.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(o){if(o===V||o==null)return this._t=void 0,this.it=o;if(o===ae)return o;if(typeof o!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(o===this.it)return this._t;this.it=o;let t=[o];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};ta.directiveName="unsafeHTML",ta.resultType=1;var Qe=se(ta);function go(i,o){return new Promise(t=>{function r(n){n.target===i&&(i.removeEventListener(o,r),t())}i.addEventListener(o,r)})}var Rh=class{constructor(){this.openDropdowns=new Set;this.openTooltips=new Set}registerDropdown(o){this.openDropdowns.add(o)}unregisterDropdown(o){this.openDropdowns.delete(o)}isDropdownOpen(){return this.openDropdowns.size>0}registerTooltip(o){this.openTooltips.add(o)}unregisterTooltip(o){this.openTooltips.delete(o)}isTooltipOpen(){return this.openTooltips.size>0}},Gk=new Rh,Ro=Gk;var nb=E`@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}:host *,:host *::before,:host *::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 be=class extends C{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,go(this,"zn-after-show")}async hide(){if(this.open)return this.open=!1,go(this,"zn-after-hide")}reposition(){this.popup.reposition()}updateAccessibleTrigger(){let r=this.trigger.assignedElements({flatten:!0}).find(a=>wg(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"),Ro.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"),Ro.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`
|
|
@@ -36,7 +36,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
36
36
|
</div>
|
|
37
37
|
</zn-popup>
|
|
38
38
|
`}};be.styles=T(nb),c([F(".dropdown")],be.prototype,"popup",2),c([F(".dropdown__trigger")],be.prototype,"trigger",2),c([F(".dropdown__panel")],be.prototype,"panel",2),c([p({type:Boolean,reflect:!0})],be.prototype,"open",2),c([p({reflect:!0})],be.prototype,"placement",2),c([p({type:Boolean,reflect:!0})],be.prototype,"disabled",2),c([p({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],be.prototype,"stayOpenOnSelect",2),c([p({attribute:!1})],be.prototype,"containingElement",2),c([p({type:Number})],be.prototype,"distance",2),c([p({type:Number})],be.prototype,"skidding",2),c([p({type:Boolean})],be.prototype,"hoist",2),c([p({reflect:!0})],be.prototype,"sync",2),c([p()],be.prototype,"uri",2),c([p({type:String})],be.prototype,"fetchedContent",2),c([K("open",{waitUntilFirstUpdate:!0})],be.prototype,"handleOpenChange",1);var ir=be;be.define("zn-dropdown");var ib=(i,o,t)=>{for(let r of o)if(r[0]===i)return(0,r[1])();return t?.()};function ab(i){function o(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 x=b.charCodeAt(v);x<128?g+=String.fromCharCode(x):x<2048?(g+=String.fromCharCode(x>>6|192),g+=String.fromCharCode(x&63|128)):(g+=String.fromCharCode(x>>12|224),g+=String.fromCharCode(x>>6&63|128),g+=String.fromCharCode(x&63|128))}return g}let r=Math.pow,n=r(2,32),a=[],s=[],l=[],d={},h=0,m=t(i),f=m.length*8;for(let b=2;h<64;b++)if(!d[b]){for(let g=0;g<313;g+=b)d[g]=!0;h<8&&(s[h]=r(b,.5)*n|0),l[h]=r(b,1/3)*n|0,h++}for(m+="\x80";m.length%64!==56;)m+="\0";for(let b=0;b<m.length;b++)a[b>>2]|=m.charCodeAt(b)<<(3-b%4)*8;a[a.length]=f/n|0,a[a.length]=f;for(let b=0;b<a.length;b+=16){let g=s.slice(0,8),v=a.slice(b,b+16);for(let x=16;x<64;x++){let _=v[x-15],k=v[x-2],N=o(_,7)^o(_,18)^_>>>3,G=o(k,17)^o(k,19)^k>>>10;v[x]=v[x-16]+N+v[x-7]+G|0}for(let x=0;x<64;x++){let _=g[0],k=g[1],N=g[2],G=g[3],I=g[4],w=g[5],$=g[6],L=g[7],W=o(I,6)^o(I,11)^o(I,25),tt=I&w^~I&$,ht=L+W+tt+l[x]+v[x]|0,gt=o(_,2)^o(_,13)^o(_,22),_t=_&k^_&N^k&N,Rt=gt+_t|0;g[7]=$,g[6]=w,g[5]=I,g[4]=G+ht|0,g[3]=N,g[2]=k,g[1]=_,g[0]=ht+Rt|0}for(let x=0;x<8;x++)s[x]=s[x]+g[x]|0}return s.map(b=>(b>>>0).toString(16).padStart(8,"0")).join("")}var nl=class extends ta{};nl.directiveName="unsafeSVG",nl.resultType=2;var sb=se(nl);var lb=E`@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}:host *,:host *::before,:host *::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 Ba,Oh;function cb(){return Oh??(Oh=import("./chunks/zn.SBAUMVLL.js").then(i=>{Ba=i.icons}).catch(i=>{Oh=void 0,console.warn("<zn-icon> failed to load the lucide icon chunk",i)})),Oh}var ar=class ar extends C{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 ar.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(),Da(u`
|
|
39
|
+
`);let g="";for(let v=0;v<b.length;v++){let x=b.charCodeAt(v);x<128?g+=String.fromCharCode(x):x<2048?(g+=String.fromCharCode(x>>6|192),g+=String.fromCharCode(x&63|128)):(g+=String.fromCharCode(x>>12|224),g+=String.fromCharCode(x>>6&63|128),g+=String.fromCharCode(x&63|128))}return g}let r=Math.pow,n=r(2,32),a=[],s=[],l=[],d={},h=0,m=t(i),f=m.length*8;for(let b=2;h<64;b++)if(!d[b]){for(let g=0;g<313;g+=b)d[g]=!0;h<8&&(s[h]=r(b,.5)*n|0),l[h]=r(b,1/3)*n|0,h++}for(m+="\x80";m.length%64!==56;)m+="\0";for(let b=0;b<m.length;b++)a[b>>2]|=m.charCodeAt(b)<<(3-b%4)*8;a[a.length]=f/n|0,a[a.length]=f;for(let b=0;b<a.length;b+=16){let g=s.slice(0,8),v=a.slice(b,b+16);for(let x=16;x<64;x++){let _=v[x-15],k=v[x-2],N=o(_,7)^o(_,18)^_>>>3,G=o(k,17)^o(k,19)^k>>>10;v[x]=v[x-16]+N+v[x-7]+G|0}for(let x=0;x<64;x++){let _=g[0],k=g[1],N=g[2],G=g[3],I=g[4],w=g[5],$=g[6],L=g[7],W=o(I,6)^o(I,11)^o(I,25),tt=I&w^~I&$,ht=L+W+tt+l[x]+v[x]|0,gt=o(_,2)^o(_,13)^o(_,22),_t=_&k^_&N^k&N,Ot=gt+_t|0;g[7]=$,g[6]=w,g[5]=I,g[4]=G+ht|0,g[3]=N,g[2]=k,g[1]=_,g[0]=ht+Ot|0}for(let x=0;x<8;x++)s[x]=s[x]+g[x]|0}return s.map(b=>(b>>>0).toString(16).padStart(8,"0")).join("")}var nl=class extends ta{};nl.directiveName="unsafeSVG",nl.resultType=2;var sb=se(nl);var lb=E`@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}:host *,:host *::before,:host *::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 Ba,Oh;function cb(){return Oh??(Oh=import("./chunks/zn.SBAUMVLL.js").then(i=>{Ba=i.icons}).catch(i=>{Oh=void 0,console.warn("<zn-icon> failed to load the lucide icon chunk",i)})),Oh}var ar=class ar extends C{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 ar.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(),Da(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">
|
|
@@ -135,7 +135,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
135
135
|
${this.loadingText}<span class="loading-countdown"></span>
|
|
136
136
|
</span>
|
|
137
137
|
</div>
|
|
138
|
-
`:null}`}};st.styles=T(pb),st.dependencies={"zn-tooltip":Oo,"zn-icon":ct},c([F(".button")],st.prototype,"button",2),c([Ra(".loading-countdown")],st.prototype,"countdownContainer",2),c([p({})],st.prototype,"color",2),c([p({attribute:"hover-color"})],st.prototype,"hoverColor",2),c([p({type:Boolean})],st.prototype,"text",2),c([p({type:Boolean})],st.prototype,"outline",2),c([p({type:Boolean})],st.prototype,"disabled",2),c([p({type:Boolean})],st.prototype,"grow",2),c([p({type:Boolean})],st.prototype,"square",2),c([p({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],st.prototype,"iconButton",2),c([p({type:Boolean})],st.prototype,"plain",2),c([p({type:Boolean,attribute:"no-hover"})],st.prototype,"noHover",2),c([p({type:Boolean,attribute:"panel-bg"})],st.prototype,"panelBackground",2),c([p({attribute:"dropdown-closer",type:Boolean})],st.prototype,"dropdownCloser",2),c([p({type:Number})],st.prototype,"notification",2),c([p({attribute:"muted-notifications",type:Boolean})],st.prototype,"mutedNotifications",2),c([p()],st.prototype,"verticalAlign",2),c([p()],st.prototype,"content",2),c([p()],st.prototype,"icon",2),c([p()],st.prototype,"gaid",2),c([p({attribute:"icon-position"})],st.prototype,"iconPosition",2),c([p({attribute:"icon-size"})],st.prototype,"iconSize",2),c([p({attribute:"icon-color"})],st.prototype,"iconColor",2),c([p({attribute:"icon-fill"})],st.prototype,"iconFill",2),c([p({attribute:"icon-library"})],st.prototype,"iconLibrary",2),c([p()],st.prototype,"type",2),c([p()],st.prototype,"name",2),c([p()],st.prototype,"value",2),c([p()],st.prototype,"form",2),c([p({attribute:"formaction"})],st.prototype,"formAction",2),c([p({attribute:"formenctype"})],st.prototype,"formEnctype",2),c([p({attribute:"formmethod"})],st.prototype,"formMethod",2),c([p({attribute:"formnovalidate",type:Boolean})],st.prototype,"formNoValidate",2),c([p({attribute:"formtarget"})],st.prototype,"formTarget",2),c([p()],st.prototype,"href",2),c([p()],st.prototype,"target",2),c([p({attribute:"data-target"})],st.prototype,"dataTarget",2),c([p()],st.prototype,"rel",2),c([p()],st.prototype,"tooltip",2),c([p({type:Boolean,attribute:"auto-click"})],st.prototype,"autoClick",2),c([p({type:Number,attribute:"auto-click-delay"})],st.prototype,"autoClickDelay",2),c([p({type:String,attribute:"loading-text"})],st.prototype,"loadingText",2),c([p({type:String,attribute:"loading-text-position"})],st.prototype,"loadingTextPosition",2),c([p({type:Boolean})],st.prototype,"loading",2),c([K("autoClick")],st.prototype,"handleAutoClickChange",1);var Ct=st;st.define("zn-button");var Lt=class{constructor(o,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=o,t!==null&&this.t.add(t??o),this.l=r,this.o=a??this.o,this.callback=n,window.MutationObserver?(this.u=new MutationObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),o.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(o){this.value=this.callback?.(o,this.u)}hostConnected(){for(let o of this.t)this.observe(o)}hostDisconnected(){this.disconnect()}async hostUpdated(){let o=this.u.takeRecords();(o.length||!this.o&&this.i)&&this.handleChanges(o),this.i=!1}observe(o){this.t.add(o),this.u.observe(o,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}};var Va=class extends C{constructor(){super(),new Lt(this,{config:{childList:!0,subtree:!0,attributes:!0,characterData:!0},callback:()=>this.resize(),skipInitial:!0})}firstUpdated(o){super.firstUpdated(o),this.resize()}resize(){let o=0;Array.from(this.children).forEach(t=>{o+=t.getBoundingClientRect().height}),this.style.minHeight=o+"px"}createRenderRoot(){return this}};var Wk=Va;Va.define("zn-absolute-container");var an=Math.min,Po=Math.max,al=Math.round,sl=Math.floor,sn=i=>({x:i,y:i}),Kk={left:"right",right:"left",bottom:"top",top:"bottom"};function Hh(i,o,t){return Po(i,an(o,t))}function ea(i,o){return typeof i=="function"?i(o):i}function ci(i){return i.split("-")[0]}function ra(i){return i.split("-")[1]}function Fh(i){return i==="x"?"y":"x"}function td(i){return i==="y"?"height":"width"}function ln(i){let o=i[0];return o==="t"||o==="b"?"y":"x"}function ed(i){return Fh(ln(i))}function mb(i,o,t){t===void 0&&(t=!1);let r=ra(i),n=ed(i),a=td(n),s=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(s=il(s)),[s,il(s)]}function fb(i){let o=il(i);return[Zc(i),o,Zc(o)]}function Zc(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var hb=["left","right"],ub=["right","left"],Yk=["top","bottom"],Xk=["bottom","top"];function Qk(i,o,t){switch(i){case"top":case"bottom":return t?o?ub:hb:o?hb:ub;case"left":case"right":return o?Yk:Xk;default:return[]}}function gb(i,o,t,r){let n=ra(i),a=Qk(ci(i),t==="start",r);return n&&(a=a.map(s=>s+"-"+n),o&&(a=a.concat(a.map(Zc)))),a}function il(i){let o=ci(i);return Kk[o]+i.slice(o.length)}function Jk(i){var o,t,r,n;return{top:(o=i.top)!=null?o:0,right:(t=i.right)!=null?t:0,bottom:(r=i.bottom)!=null?r:0,left:(n=i.left)!=null?n:0}}function Bh(i){return typeof i!="number"?Jk(i):{top:i,right:i,bottom:i,left:i}}function oa(i){let{x:o,y:t,width:r,height:n}=i;return{width:r,height:n,top:t,left:o,right:o+r,bottom:t+n,x:o,y:t}}function bb(i,o,t){let{reference:r,floating:n}=i,a=ln(o),s=ed(o),l=td(s),d=ci(o),h=a==="y",m=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,b=r[l]/2-n[l]/2,g;switch(d){case"top":g={x:m,y:r.y-n.height};break;case"bottom":g={x:m,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-n.width,y:f};break;default:g={x:r.x,y:r.y}}let v=ra(o);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function vb(i,o){var t;o===void 0&&(o={});let{x:r,y:n,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=ea(o,i),v=Bh(g),_=l[b?f==="floating"?"reference":"floating":f],k=oa(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(_)))==null||t?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:d})),N=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,G=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),I=await(a.isElement==null?void 0:a.isElement(G))&&await(a.getScale==null?void 0:a.getScale(G))||{x:1,y:1},w=oa(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:G,strategy:d}):N);return{top:(k.top-w.top+v.top)/I.y,bottom:(w.bottom-k.bottom+v.bottom)/I.y,left:(k.left-w.left+v.left)/I.x,right:(w.right-k.right+v.right)/I.x}}var Zk=50,xb=async(i,o,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:vb},d=await(s.isRTL==null?void 0:s.isRTL(o)),h=await s.getElementRects({reference:i,floating:o,strategy:n}),{x:m,y:f}=bb(h,r,d),b=r,g=0,v={};for(let x=0;x<a.length;x++){let _=a[x];if(!_)continue;let{name:k,fn:N}=_,{x:G,y:I,data:w,reset:$}=await N({x:m,y:f,initialPlacement:r,placement:b,strategy:n,middlewareData:v,rects:h,platform:l,elements:{reference:i,floating:o}});m=G??m,f=I??f,v[k]={...v[k],...w},$&&g<Zk&&(g++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(h=$.rects===!0?await s.getElementRects({reference:i,floating:o,strategy:n}):$.rects),{x:m,y:f}=bb(h,b,d)),x=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},yb=i=>({name:"arrow",options:i,async fn(o){let{x:t,y:r,placement:n,rects:a,platform:s,elements:l,middlewareData:d}=o,{element:h,padding:m=0}=ea(i,o)||{};if(h==null)return{};let f=Bh(m),b={x:t,y:r},g=ed(n),v=td(g),x=await s.getDimensions(h),_=g==="y",k=_?"top":"left",N=_?"bottom":"right",G=_?"clientHeight":"clientWidth",I=a.reference[v]+a.reference[g]-b[g]-a.floating[v],w=b[g]-a.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h)),L=$?$[G]:0;(!L||!await(s.isElement==null?void 0:s.isElement($)))&&(L=l.floating[G]||a.floating[v]);let W=I/2-w/2,tt=L/2-x[v]/2-1,ht=an(f[k],tt),gt=an(f[N],tt),_t=L-x[v]-gt,Rt=L/2-x[v]/2+W,we=Hh(ht,Rt,_t),Ke=!d.arrow&&ra(n)!=null&&Rt!==we&&a.reference[v]/2-(Rt<ht?ht:gt)-x[v]/2<0,pr=Ke?Rt<ht?Rt-ht:Rt-_t:0;return{[g]:b[g]+pr,data:{[g]:we,centerOffset:Rt-we-pr,...Ke&&{alignmentOffset:pr}},reset:Ke}}});var zb=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(o){var t,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:h}=o,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,..._}=ea(i,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let k=ci(n),N=ln(l),G=ci(l)===l,I=await(d.isRTL==null?void 0:d.isRTL(h.floating)),w=b||(G||!x?[il(l)]:fb(l)),$=v!=="none";!b&&$&&w.push(...gb(l,x,v,I));let L=[l,...w],W=await d.detectOverflow(o,_),tt=[],ht=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&tt.push(W[k]),f){let we=mb(n,s,I);tt.push(W[we[0]],W[we[1]])}if(ht=[...ht,{placement:n,overflows:tt}],!tt.every(we=>we<=0)){var gt,_t;let we=(((gt=a.flip)==null?void 0:gt.index)||0)+1,Ke=L[we];if(Ke&&(!(f==="alignment"?N!==ln(Ke):!1)||ht.every(Ye=>ln(Ye.placement)===N?Ye.overflows[0]>0:!0)))return{data:{index:we,overflows:ht},reset:{placement:Ke}};let pr=(_t=ht.filter(Ae=>Ae.overflows[0]<=0).sort((Ae,Ye)=>Ae.overflows[1]-Ye.overflows[1])[0])==null?void 0:_t.placement;if(!pr)switch(g){case"bestFit":{var Rt;let Ae=(Rt=ht.filter(Ye=>{if($){let _e=ln(Ye.placement);return _e===N||_e==="y"}return!0}).map(Ye=>[Ye.placement,Ye.overflows.filter(_e=>_e>0).reduce((_e,ri)=>_e+ri,0)]).sort((Ye,_e)=>Ye[1]-_e[1])[0])==null?void 0:Rt[0];Ae&&(pr=Ae);break}case"initialPlacement":pr=l;break}if(n!==pr)return{reset:{placement:pr}}}return{}}}};var t3=new Set(["left","top"]);async function e3(i,o){let{placement:t,platform:r,elements:n}=i,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=ci(t),l=ra(t),d=ln(t)==="y",h=t3.has(s)?-1:1,m=a&&d?-1:1,f=ea(o,i),{mainAxis:b,crossAxis:g,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(g=l==="end"?v*-1:v),d?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var wb=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(o){var t,r;let{x:n,y:a,placement:s,middlewareData:l}=o,d=await e3(o,i);return s===((t=l.offset)==null?void 0:t.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},_b=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(o){let{x:t,y:r,placement:n,platform:a}=o,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:N=>{let{x:G,y:I}=N;return{x:G,y:I}}},...h}=ea(i,o),m={x:t,y:r},f=await a.detectOverflow(o,h),b=ln(n),g=Fh(b),v=m[g],x=m[b],_=(N,G)=>Hh(G+f[N==="y"?"top":"left"],G,G-f[N==="y"?"bottom":"right"]);s&&(v=_(g,v)),l&&(x=_(b,x));let k=d.fn({...o,[g]:v,[b]:x});return{...k,data:{x:k.x-t,y:k.y-r,enabled:{[g]:s,[b]:l}}}}}};var kb=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(o){let{placement:t,rects:r,platform:n,elements:a}=o,{apply:s=()=>{},...l}=ea(i,o),d=await n.detectOverflow(o,l),h=ci(t),m=ra(t),f=ln(t)==="y",{width:b,height:g}=r.floating,v,x;h==="top"||h==="bottom"?(v=h,x=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(x=h,v=m==="end"?"top":"bottom");let _=g-d.top-d.bottom,k=b-d.left-d.right,N=an(g-d[v],_),G=an(b-d[x],k),I=o.middlewareData.shift,w=!I,$=N,L=G;I!=null&&I.enabled.x&&(L=k),I!=null&&I.enabled.y&&($=_),w&&!m&&(f?L=b-2*Po(d.left,d.right):$=g-2*Po(d.top,d.bottom)),await s({...o,availableWidth:L,availableHeight:$});let W=await n.getDimensions(a.floating);return b!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function rd(){return typeof window<"u"}function ia(i){return Sb(i)?(i.nodeName||"").toLowerCase():"#document"}function Er(i){var o;return(i==null||(o=i.ownerDocument)==null?void 0:o.defaultView)||window}function cn(i){var o;return(o=(Sb(i)?i.ownerDocument:i.document)||window.document)==null?void 0:o.documentElement}function Sb(i){return rd()?i instanceof Node||i instanceof Er(i).Node:!1}function Ho(i){return rd()?i instanceof Element||i instanceof Er(i).Element:!1}function qn(i){return rd()?i instanceof HTMLElement||i instanceof Er(i).HTMLElement:!1}function Cb(i){return!rd()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof Er(i).ShadowRoot}function ll(i){let{overflow:o,overflowX:t,overflowY:r,display:n}=Fo(i);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&n!=="inline"&&n!=="contents"}function Eb(i){return/^(table|td|th)$/.test(ia(i))}function cl(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var r3=/transform|translate|scale|rotate|perspective|filter/,o3=/paint|layout|strict|content/,na=i=>!!i&&i!=="none",Vh;function ja(i){let o=Ho(i)?Fo(i):i;return na(o.transform)||na(o.translate)||na(o.scale)||na(o.rotate)||na(o.perspective)||!od()&&(na(o.backdropFilter)||na(o.filter))||r3.test(o.willChange||"")||o3.test(o.contain||"")}function Tb(i){let o=di(i);for(;qn(o)&&!Ga(o);){if(ja(o))return o;if(cl(o))return null;o=di(o)}return null}function od(){return Vh==null&&(Vh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Vh}function Ga(i){return/^(html|body|#document)$/.test(ia(i))}function Fo(i){return Er(i).getComputedStyle(i)}function dl(i){return Ho(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function di(i){if(ia(i)==="html")return i;let o=i.assignedSlot||i.parentNode||Cb(i)&&i.host||cn(i);return Cb(o)?o.host:o}function $b(i){let o=di(i);return Ga(o)?(i.ownerDocument||i).body:qn(o)&&ll(o)?o:$b(o)}function Ua(i,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let n=$b(i),a=n===((r=i.ownerDocument)==null?void 0:r.body),s=Er(n);if(a){let l=nd(s);return o.concat(s,s.visualViewport||[],ll(n)?n:[],l&&t?Ua(l):[])}else return o.concat(n,Ua(n,[],t))}function nd(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Mb(i){let o=Fo(i),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,n=qn(i),a=n?i.offsetWidth:t,s=n?i.offsetHeight:r,l=al(t)!==a||al(r)!==s;return l&&(t=a,r=s),{width:t,height:r,$:l}}function jh(i){return Ho(i)?i:i.contextElement}function Wa(i){let o=jh(i);if(!qn(o))return sn(1);let t=o.getBoundingClientRect(),{width:r,height:n,$:a}=Mb(o),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 n3=sn(0);function qb(i){let o=Er(i);return!od()||!o.visualViewport?n3:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function i3(i,o,t){return o===void 0&&(o=!1),!!t&&o&&t===Er(i)}function aa(i,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let n=i.getBoundingClientRect(),a=jh(i),s=sn(1);o&&(r?Ho(r)&&(s=Wa(r)):s=Wa(i));let l=i3(a,t,r)?qb(a):sn(0),d=(n.left+l.x)/s.x,h=(n.top+l.y)/s.y,m=n.width/s.x,f=n.height/s.y;if(a&&r){let b=Er(a),g=Ho(r)?Er(r):r,v=b,x=nd(v);for(;x&&g!==v;){let _=Wa(x),k=x.getBoundingClientRect(),N=Fo(x),G=k.left+(x.clientLeft+parseFloat(N.paddingLeft))*_.x,I=k.top+(x.clientTop+parseFloat(N.paddingTop))*_.y;d*=_.x,h*=_.y,m*=_.x,f*=_.y,d+=G,h+=I,v=Er(x),x=nd(v)}}return oa({width:m,height:f,x:d,y:h})}function id(i,o){let t=dl(i).scrollLeft;return o?o.left+t:aa(cn(i)).left+t}function Ib(i,o){let t=i.getBoundingClientRect(),r=t.left+o.scrollLeft-id(i,t),n=t.top+o.scrollTop;return{x:r,y:n}}function a3(i){let{elements:o,rect:t,offsetParent:r,strategy:n}=i,a=n==="fixed",s=cn(r),l=o?cl(o.floating):!1;if(r===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},h=sn(1),m=sn(0),f=qn(r);if((f||!a)&&((ia(r)!=="body"||ll(s))&&(d=dl(r)),f)){let g=aa(r);h=Wa(r),m.x=g.x+r.clientLeft,m.y=g.y+r.clientTop}let b=s&&!f&&!a?Ib(s,d):sn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-d.scrollTop*h.y+m.y+b.y}}function s3(i){return i.getClientRects?Array.from(i.getClientRects()):[]}function l3(i){let o=dl(i),t=i.ownerDocument.body,r=Po(i.scrollWidth,i.clientWidth,t.scrollWidth,t.clientWidth),n=Po(i.scrollHeight,i.clientHeight,t.scrollHeight,t.clientHeight),a=-o.scrollLeft+id(i),s=-o.scrollTop;return Fo(t).direction==="rtl"&&(a+=Po(i.clientWidth,t.clientWidth)-r),{width:r,height:n,x:a,y:s}}var c3=25;function d3(i,o,t){t===void 0&&(t="viewport");let r=t==="layoutViewport",n=Er(i),a=cn(i),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,h=0,m=0;if(s){let b=!od()||o==="fixed";r?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(id(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),x=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,_=Math.abs(a.clientWidth-g.clientWidth-x),k=getComputedStyle(a).scrollbarGutter==="stable both-edges"?_/2:_;k<=c3&&(l-=k)}return{width:l,height:d,x:h,y:m}}function p3(i,o){let t=aa(i,!0,o==="fixed"),r=t.top+i.clientTop,n=t.left+i.clientLeft,a=Wa(i),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=n*a.x,h=r*a.y;return{width:s,height:l,x:d,y:h}}function Ab(i,o,t){let r;if(o==="viewport"||o==="layoutViewport")r=d3(i,t,o);else if(o==="document")r=l3(cn(i));else if(Ho(o))r=p3(o,t);else{let n=qb(i);r={x:o.x-n.x,y:o.y-n.y,width:o.width,height:o.height}}return oa(r)}function h3(i,o){let t=o.get(i);if(t)return t;let r=Ua(i,[],!1).filter(l=>Ho(l)&&ia(l)!=="body"),n=null,a=Fo(i).position==="fixed",s=a?di(i):i;for(;Ho(s)&&!Ga(s);){let l=Fo(s),d=ja(s),h=n?n.position:a?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&l.position==="static")?r=r.filter(f=>f!==s):n=l,s=di(s)}return o.set(i,r),r}function u3(i){let{element:o,boundary:t,rootBoundary:r,strategy:n}=i,s=[...t==="clippingAncestors"?cl(o)?[]:h3(o,this._c):[].concat(t),r],l=Ab(o,s[0],n),d=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=Ab(o,s[b],n);d=Po(g.top,d),h=an(g.right,h),m=an(g.bottom,m),f=Po(g.left,f)}return{width:h-f,height:m-d,x:f,y:d}}function m3(i){let{width:o,height:t}=Mb(i);return{width:o,height:t}}function f3(i,o,t){let r=qn(o),n=cn(o),a=t==="fixed",s=aa(i,!0,a,o),l={scrollLeft:0,scrollTop:0},d=sn(0);if((r||!a)&&((ia(o)!=="body"||ll(n))&&(l=dl(o)),r)){let b=aa(o,!0,a,o);d.x=b.x+o.clientLeft,d.y=b.y+o.clientTop}!r&&n&&(d.x=id(n));let h=n&&!r&&!a?Ib(n,l):sn(0),m=s.left+l.scrollLeft-d.x-h.x,f=s.top+l.scrollTop-d.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function Uh(i){return Fo(i).position==="static"}function Lb(i,o){if(!qn(i)||Fo(i).position==="fixed")return null;if(o)return o(i);let t=i.offsetParent;return cn(i)===t&&(t=t.ownerDocument.body),t}function Db(i,o){let t=Er(i);if(cl(i))return t;if(!qn(i)){let n=di(i);for(;n&&!Ga(n);){if(Ho(n)&&!Uh(n))return n;n=di(n)}return t}let r=Lb(i,o);for(;r&&Eb(r)&&Uh(r);)r=Lb(r,o);return r&&Ga(r)&&Uh(r)&&!ja(r)?t:r||Tb(i)||t}var g3=async function(i){let o=this.getOffsetParent||Db,t=this.getDimensions,r=await t(i.floating);return{reference:f3(i.reference,await o(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function b3(i){return Fo(i).direction==="rtl"}var pl={convertOffsetParentRelativeRectToViewportRelativeRect:a3,getDocumentElement:cn,getClippingRect:u3,getOffsetParent:Db,getElementRects:g3,getClientRects:s3,getDimensions:m3,getScale:Wa,isElement:Ho,isRTL:b3};function Nb(i,o){return i.x===o.x&&i.y===o.y&&i.width===o.width&&i.height===o.height}function v3(i,o,t){let r=null,n,a=cn(i);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=i.getBoundingClientRect(),{left:g,top:v,width:x,height:_}=b;if(m||o(),!x||!_)return;let k=sl(v),N=sl(a.clientWidth-(g+x)),G=sl(a.clientHeight-(v+_)),I=sl(g),$={rootMargin:-k+"px "+-N+"px "+-G+"px "+-I+"px",threshold:Po(0,an(1,f))||1},L=!0;function W(tt){let ht=tt[0].intersectionRatio;if(!Nb(b,i.getBoundingClientRect()))return l();if(ht!==f){if(!L)return l();ht?l(!1,ht):n=setTimeout(()=>{l(!1,1e-7)},1e3)}L=!1}try{r=new IntersectionObserver(W,{...$,root:a.ownerDocument})}catch{r=new IntersectionObserver(W,$)}r.observe(i)}let d=Er(i),h=()=>l(t);return d.addEventListener("resize",h),l(!0),()=>{d.removeEventListener("resize",h),s()}}function ad(i,o,t,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=jh(i),m=n||a?[...h?Ua(h):[],...o?Ua(o):[]]:[];m.forEach(k=>{n&&k.addEventListener("scroll",t),a&&k.addEventListener("resize",t)});let f=h&&l?v3(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(k=>{let[N]=k;N&&N.target===h&&g&&o&&(g.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var G;(G=g)==null||G.observe(o)})),t()}),h&&!d&&g.observe(h),o&&g.observe(o));let v,x=d?aa(i):null;d&&_();function _(){let k=aa(i);x&&!Nb(x,k)&&t(),x=k,v=requestAnimationFrame(_)}return t(),()=>{var k;m.forEach(N=>{n&&N.removeEventListener("scroll",t),a&&N.removeEventListener("resize",t)}),f?.(),(k=g)==null||k.disconnect(),g=null,d&&cancelAnimationFrame(v)}}var sd=wb;var ld=_b,cd=zb,hl=kb;var Rb=yb;var dd=(i,o,t)=>{let r=new Map,n=t??{},a={...pl,...n.platform,_c:r};return xb(i,o,{...n,platform:a})};function Ob(i){return x3(i)}function Gh(i){return i.assignedSlot?i.assignedSlot:i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}function x3(i){for(let o=i;o;o=Gh(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Gh(i);o;o=Gh(o)){if(!(o instanceof Element))continue;let t=getComputedStyle(o);if(t.display!=="contents"&&(t.position!=="static"||ja(t)||o.tagName==="BODY"))return o}return null}var Pb=E`@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}:host *,:host *::before,:host *::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 y3(i){return i!==null&&typeof i=="object"&&"getBoundingClientRect"in i&&("contextElement"in i?i instanceof Element:!0)}var Tt=class extends C{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="fixed";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0;this.hoverBridge=!1;this.handleAnchorHover=()=>{this.active||this.start()};this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let t=this.anchorEl.getBoundingClientRect(),r=this.popup.getBoundingClientRect(),n=this.placement.includes("top")||this.placement.includes("bottom"),a,s,l,d,h,m,f,b;n?t.top<r.top?(a=t.left,s=t.bottom,l=t.right,d=t.bottom,h=r.left,m=r.top,f=r.right,b=r.top):(a=r.left,s=r.bottom,l=r.right,d=r.bottom,h=t.left,m=t.top,f=t.right,b=t.top):t.left<r.left?(a=t.right,s=t.top,l=r.left,d=r.top,h=t.right,m=t.bottom,f=r.left,b=r.bottom):(a=r.right,s=r.top,l=t.left,d=t.top,h=r.right,m=r.bottom,f=t.left,b=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${a}px`),this.style.setProperty("--hover-bridge-top-left-y",`${s}px`),this.style.setProperty("--hover-bridge-top-right-x",`${l}px`),this.style.setProperty("--hover-bridge-top-right-y",`${d}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${h}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${m}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${f}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${b}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.active&&this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||y3(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=ad(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=[sd({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(hl({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(cd({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ld({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(hl({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(Rb({element:this.arrowEl,padding:this.arrowPadding}));let r=this.strategy==="absolute"?n=>pl.getOffsetParent(n,Ob):pl.getOffsetParent;dd(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...pl,getOffsetParent:r}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let d={top:"bottom",right:"left",bottom:"top",left:"right"}[l.split("-")[0]];if(this.setAttribute("data-current-placement",l),Object.assign(this.popup.style,{left:`${n}px`,top:`${a}px`}),!!this.popup?.isConnected&&(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,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
|
|
138
|
+
`:null}`}};st.styles=T(pb),st.dependencies={"zn-tooltip":Oo,"zn-icon":ct},c([F(".button")],st.prototype,"button",2),c([Ra(".loading-countdown")],st.prototype,"countdownContainer",2),c([p({})],st.prototype,"color",2),c([p({attribute:"hover-color"})],st.prototype,"hoverColor",2),c([p({type:Boolean})],st.prototype,"text",2),c([p({type:Boolean})],st.prototype,"outline",2),c([p({type:Boolean})],st.prototype,"disabled",2),c([p({type:Boolean})],st.prototype,"grow",2),c([p({type:Boolean})],st.prototype,"square",2),c([p({attribute:"icon-button",converter:{fromAttribute:t=>t==="small"||t==="round"?t:t!==null,toAttribute:t=>t==="small"||t==="round"?t:t?"":null}})],st.prototype,"iconButton",2),c([p({type:Boolean})],st.prototype,"plain",2),c([p({type:Boolean,attribute:"no-hover"})],st.prototype,"noHover",2),c([p({type:Boolean,attribute:"panel-bg"})],st.prototype,"panelBackground",2),c([p({attribute:"dropdown-closer",type:Boolean})],st.prototype,"dropdownCloser",2),c([p({type:Number})],st.prototype,"notification",2),c([p({attribute:"muted-notifications",type:Boolean})],st.prototype,"mutedNotifications",2),c([p()],st.prototype,"verticalAlign",2),c([p()],st.prototype,"content",2),c([p()],st.prototype,"icon",2),c([p()],st.prototype,"gaid",2),c([p({attribute:"icon-position"})],st.prototype,"iconPosition",2),c([p({attribute:"icon-size"})],st.prototype,"iconSize",2),c([p({attribute:"icon-color"})],st.prototype,"iconColor",2),c([p({attribute:"icon-fill"})],st.prototype,"iconFill",2),c([p({attribute:"icon-library"})],st.prototype,"iconLibrary",2),c([p()],st.prototype,"type",2),c([p()],st.prototype,"name",2),c([p()],st.prototype,"value",2),c([p()],st.prototype,"form",2),c([p({attribute:"formaction"})],st.prototype,"formAction",2),c([p({attribute:"formenctype"})],st.prototype,"formEnctype",2),c([p({attribute:"formmethod"})],st.prototype,"formMethod",2),c([p({attribute:"formnovalidate",type:Boolean})],st.prototype,"formNoValidate",2),c([p({attribute:"formtarget"})],st.prototype,"formTarget",2),c([p()],st.prototype,"href",2),c([p()],st.prototype,"target",2),c([p({attribute:"data-target"})],st.prototype,"dataTarget",2),c([p()],st.prototype,"rel",2),c([p()],st.prototype,"tooltip",2),c([p({type:Boolean,attribute:"auto-click"})],st.prototype,"autoClick",2),c([p({type:Number,attribute:"auto-click-delay"})],st.prototype,"autoClickDelay",2),c([p({type:String,attribute:"loading-text"})],st.prototype,"loadingText",2),c([p({type:String,attribute:"loading-text-position"})],st.prototype,"loadingTextPosition",2),c([p({type:Boolean})],st.prototype,"loading",2),c([K("autoClick")],st.prototype,"handleAutoClickChange",1);var Ct=st;st.define("zn-button");var Lt=class{constructor(o,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=o,t!==null&&this.t.add(t??o),this.l=r,this.o=a??this.o,this.callback=n,window.MutationObserver?(this.u=new MutationObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),o.addController(this)):console.warn("MutationController error: browser does not support MutationObserver.")}handleChanges(o){this.value=this.callback?.(o,this.u)}hostConnected(){for(let o of this.t)this.observe(o)}hostDisconnected(){this.disconnect()}async hostUpdated(){let o=this.u.takeRecords();(o.length||!this.o&&this.i)&&this.handleChanges(o),this.i=!1}observe(o){this.t.add(o),this.u.observe(o,this.l),this.i=!0,this.h.requestUpdate()}disconnect(){this.u.disconnect()}};var Va=class extends C{constructor(){super();this._resizeFrame=null;new Lt(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 Wk=Va;Va.define("zn-absolute-container");var an=Math.min,Po=Math.max,al=Math.round,sl=Math.floor,sn=i=>({x:i,y:i}),Kk={left:"right",right:"left",bottom:"top",top:"bottom"};function Hh(i,o,t){return Po(i,an(o,t))}function ea(i,o){return typeof i=="function"?i(o):i}function ci(i){return i.split("-")[0]}function ra(i){return i.split("-")[1]}function Fh(i){return i==="x"?"y":"x"}function td(i){return i==="y"?"height":"width"}function ln(i){let o=i[0];return o==="t"||o==="b"?"y":"x"}function ed(i){return Fh(ln(i))}function mb(i,o,t){t===void 0&&(t=!1);let r=ra(i),n=ed(i),a=td(n),s=n==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return o.reference[a]>o.floating[a]&&(s=il(s)),[s,il(s)]}function fb(i){let o=il(i);return[Zc(i),o,Zc(o)]}function Zc(i){return i.includes("start")?i.replace("start","end"):i.replace("end","start")}var hb=["left","right"],ub=["right","left"],Yk=["top","bottom"],Xk=["bottom","top"];function Qk(i,o,t){switch(i){case"top":case"bottom":return t?o?ub:hb:o?hb:ub;case"left":case"right":return o?Yk:Xk;default:return[]}}function gb(i,o,t,r){let n=ra(i),a=Qk(ci(i),t==="start",r);return n&&(a=a.map(s=>s+"-"+n),o&&(a=a.concat(a.map(Zc)))),a}function il(i){let o=ci(i);return Kk[o]+i.slice(o.length)}function Jk(i){var o,t,r,n;return{top:(o=i.top)!=null?o:0,right:(t=i.right)!=null?t:0,bottom:(r=i.bottom)!=null?r:0,left:(n=i.left)!=null?n:0}}function Bh(i){return typeof i!="number"?Jk(i):{top:i,right:i,bottom:i,left:i}}function oa(i){let{x:o,y:t,width:r,height:n}=i;return{width:r,height:n,top:t,left:o,right:o+r,bottom:t+n,x:o,y:t}}function bb(i,o,t){let{reference:r,floating:n}=i,a=ln(o),s=ed(o),l=td(s),d=ci(o),h=a==="y",m=r.x+r.width/2-n.width/2,f=r.y+r.height/2-n.height/2,b=r[l]/2-n[l]/2,g;switch(d){case"top":g={x:m,y:r.y-n.height};break;case"bottom":g={x:m,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:f};break;case"left":g={x:r.x-n.width,y:f};break;default:g={x:r.x,y:r.y}}let v=ra(o);return v&&(g[s]+=b*(v==="end"?1:-1)*(t&&h?-1:1)),g}async function vb(i,o){var t;o===void 0&&(o={});let{x:r,y:n,platform:a,rects:s,elements:l,strategy:d}=i,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:f="floating",altBoundary:b=!1,padding:g=0}=ea(o,i),v=Bh(g),_=l[b?f==="floating"?"reference":"floating":f],k=oa(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(_)))==null||t?_:_.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:h,rootBoundary:m,strategy:d})),N=f==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,G=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),I=await(a.isElement==null?void 0:a.isElement(G))&&await(a.getScale==null?void 0:a.getScale(G))||{x:1,y:1},w=oa(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:G,strategy:d}):N);return{top:(k.top-w.top+v.top)/I.y,bottom:(w.bottom-k.bottom+v.bottom)/I.y,left:(k.left-w.left+v.left)/I.x,right:(w.right-k.right+v.right)/I.x}}var Zk=50,xb=async(i,o,t)=>{let{placement:r="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=s.detectOverflow?s:{...s,detectOverflow:vb},d=await(s.isRTL==null?void 0:s.isRTL(o)),h=await s.getElementRects({reference:i,floating:o,strategy:n}),{x:m,y:f}=bb(h,r,d),b=r,g=0,v={};for(let x=0;x<a.length;x++){let _=a[x];if(!_)continue;let{name:k,fn:N}=_,{x:G,y:I,data:w,reset:$}=await N({x:m,y:f,initialPlacement:r,placement:b,strategy:n,middlewareData:v,rects:h,platform:l,elements:{reference:i,floating:o}});m=G??m,f=I??f,v[k]={...v[k],...w},$&&g<Zk&&(g++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(h=$.rects===!0?await s.getElementRects({reference:i,floating:o,strategy:n}):$.rects),{x:m,y:f}=bb(h,b,d)),x=-1)}return{x:m,y:f,placement:b,strategy:n,middlewareData:v}},yb=i=>({name:"arrow",options:i,async fn(o){let{x:t,y:r,placement:n,rects:a,platform:s,elements:l,middlewareData:d}=o,{element:h,padding:m=0}=ea(i,o)||{};if(h==null)return{};let f=Bh(m),b={x:t,y:r},g=ed(n),v=td(g),x=await s.getDimensions(h),_=g==="y",k=_?"top":"left",N=_?"bottom":"right",G=_?"clientHeight":"clientWidth",I=a.reference[v]+a.reference[g]-b[g]-a.floating[v],w=b[g]-a.reference[g],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(h)),L=$?$[G]:0;(!L||!await(s.isElement==null?void 0:s.isElement($)))&&(L=l.floating[G]||a.floating[v]);let W=I/2-w/2,tt=L/2-x[v]/2-1,ht=an(f[k],tt),gt=an(f[N],tt),_t=L-x[v]-gt,Ot=L/2-x[v]/2+W,we=Hh(ht,Ot,_t),Ke=!d.arrow&&ra(n)!=null&&Ot!==we&&a.reference[v]/2-(Ot<ht?ht:gt)-x[v]/2<0,pr=Ke?Ot<ht?Ot-ht:Ot-_t:0;return{[g]:b[g]+pr,data:{[g]:we,centerOffset:Ot-we-pr,...Ke&&{alignmentOffset:pr}},reset:Ke}}});var zb=function(i){return i===void 0&&(i={}),{name:"flip",options:i,async fn(o){var t,r;let{placement:n,middlewareData:a,rects:s,initialPlacement:l,platform:d,elements:h}=o,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:b,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:x=!0,..._}=ea(i,o);if((t=a.arrow)!=null&&t.alignmentOffset)return{};let k=ci(n),N=ln(l),G=ci(l)===l,I=await(d.isRTL==null?void 0:d.isRTL(h.floating)),w=b||(G||!x?[il(l)]:fb(l)),$=v!=="none";!b&&$&&w.push(...gb(l,x,v,I));let L=[l,...w],W=await d.detectOverflow(o,_),tt=[],ht=((r=a.flip)==null?void 0:r.overflows)||[];if(m&&tt.push(W[k]),f){let we=mb(n,s,I);tt.push(W[we[0]],W[we[1]])}if(ht=[...ht,{placement:n,overflows:tt}],!tt.every(we=>we<=0)){var gt,_t;let we=(((gt=a.flip)==null?void 0:gt.index)||0)+1,Ke=L[we];if(Ke&&(!(f==="alignment"?N!==ln(Ke):!1)||ht.every(Ye=>ln(Ye.placement)===N?Ye.overflows[0]>0:!0)))return{data:{index:we,overflows:ht},reset:{placement:Ke}};let pr=(_t=ht.filter(Ae=>Ae.overflows[0]<=0).sort((Ae,Ye)=>Ae.overflows[1]-Ye.overflows[1])[0])==null?void 0:_t.placement;if(!pr)switch(g){case"bestFit":{var Ot;let Ae=(Ot=ht.filter(Ye=>{if($){let _e=ln(Ye.placement);return _e===N||_e==="y"}return!0}).map(Ye=>[Ye.placement,Ye.overflows.filter(_e=>_e>0).reduce((_e,ri)=>_e+ri,0)]).sort((Ye,_e)=>Ye[1]-_e[1])[0])==null?void 0:Ot[0];Ae&&(pr=Ae);break}case"initialPlacement":pr=l;break}if(n!==pr)return{reset:{placement:pr}}}return{}}}};var t3=new Set(["left","top"]);async function e3(i,o){let{placement:t,platform:r,elements:n}=i,a=await(r.isRTL==null?void 0:r.isRTL(n.floating)),s=ci(t),l=ra(t),d=ln(t)==="y",h=t3.has(s)?-1:1,m=a&&d?-1:1,f=ea(o,i),{mainAxis:b,crossAxis:g,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof v=="number"&&(g=l==="end"?v*-1:v),d?{x:g*m,y:b*h}:{x:b*h,y:g*m}}var wb=function(i){return i===void 0&&(i=0),{name:"offset",options:i,async fn(o){var t,r;let{x:n,y:a,placement:s,middlewareData:l}=o,d=await e3(o,i);return s===((t=l.offset)==null?void 0:t.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:n+d.x,y:a+d.y,data:{...d,placement:s}}}}},_b=function(i){return i===void 0&&(i={}),{name:"shift",options:i,async fn(o){let{x:t,y:r,placement:n,platform:a}=o,{mainAxis:s=!0,crossAxis:l=!1,limiter:d={fn:N=>{let{x:G,y:I}=N;return{x:G,y:I}}},...h}=ea(i,o),m={x:t,y:r},f=await a.detectOverflow(o,h),b=ln(n),g=Fh(b),v=m[g],x=m[b],_=(N,G)=>Hh(G+f[N==="y"?"top":"left"],G,G-f[N==="y"?"bottom":"right"]);s&&(v=_(g,v)),l&&(x=_(b,x));let k=d.fn({...o,[g]:v,[b]:x});return{...k,data:{x:k.x-t,y:k.y-r,enabled:{[g]:s,[b]:l}}}}}};var kb=function(i){return i===void 0&&(i={}),{name:"size",options:i,async fn(o){let{placement:t,rects:r,platform:n,elements:a}=o,{apply:s=()=>{},...l}=ea(i,o),d=await n.detectOverflow(o,l),h=ci(t),m=ra(t),f=ln(t)==="y",{width:b,height:g}=r.floating,v,x;h==="top"||h==="bottom"?(v=h,x=m===(await(n.isRTL==null?void 0:n.isRTL(a.floating))?"start":"end")?"left":"right"):(x=h,v=m==="end"?"top":"bottom");let _=g-d.top-d.bottom,k=b-d.left-d.right,N=an(g-d[v],_),G=an(b-d[x],k),I=o.middlewareData.shift,w=!I,$=N,L=G;I!=null&&I.enabled.x&&(L=k),I!=null&&I.enabled.y&&($=_),w&&!m&&(f?L=b-2*Po(d.left,d.right):$=g-2*Po(d.top,d.bottom)),await s({...o,availableWidth:L,availableHeight:$});let W=await n.getDimensions(a.floating);return b!==W.width||g!==W.height?{reset:{rects:!0}}:{}}}};function rd(){return typeof window<"u"}function ia(i){return Sb(i)?(i.nodeName||"").toLowerCase():"#document"}function Er(i){var o;return(i==null||(o=i.ownerDocument)==null?void 0:o.defaultView)||window}function cn(i){var o;return(o=(Sb(i)?i.ownerDocument:i.document)||window.document)==null?void 0:o.documentElement}function Sb(i){return rd()?i instanceof Node||i instanceof Er(i).Node:!1}function Ho(i){return rd()?i instanceof Element||i instanceof Er(i).Element:!1}function qn(i){return rd()?i instanceof HTMLElement||i instanceof Er(i).HTMLElement:!1}function Cb(i){return!rd()||typeof ShadowRoot>"u"?!1:i instanceof ShadowRoot||i instanceof Er(i).ShadowRoot}function ll(i){let{overflow:o,overflowX:t,overflowY:r,display:n}=Fo(i);return/auto|scroll|overlay|hidden|clip/.test(o+r+t)&&n!=="inline"&&n!=="contents"}function Eb(i){return/^(table|td|th)$/.test(ia(i))}function cl(i){try{if(i.matches(":popover-open"))return!0}catch{}try{return i.matches(":modal")}catch{return!1}}var r3=/transform|translate|scale|rotate|perspective|filter/,o3=/paint|layout|strict|content/,na=i=>!!i&&i!=="none",Vh;function ja(i){let o=Ho(i)?Fo(i):i;return na(o.transform)||na(o.translate)||na(o.scale)||na(o.rotate)||na(o.perspective)||!od()&&(na(o.backdropFilter)||na(o.filter))||r3.test(o.willChange||"")||o3.test(o.contain||"")}function Tb(i){let o=di(i);for(;qn(o)&&!Ga(o);){if(ja(o))return o;if(cl(o))return null;o=di(o)}return null}function od(){return Vh==null&&(Vh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Vh}function Ga(i){return/^(html|body|#document)$/.test(ia(i))}function Fo(i){return Er(i).getComputedStyle(i)}function dl(i){return Ho(i)?{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}:{scrollLeft:i.scrollX,scrollTop:i.scrollY}}function di(i){if(ia(i)==="html")return i;let o=i.assignedSlot||i.parentNode||Cb(i)&&i.host||cn(i);return Cb(o)?o.host:o}function $b(i){let o=di(i);return Ga(o)?(i.ownerDocument||i).body:qn(o)&&ll(o)?o:$b(o)}function Ua(i,o,t){var r;o===void 0&&(o=[]),t===void 0&&(t=!0);let n=$b(i),a=n===((r=i.ownerDocument)==null?void 0:r.body),s=Er(n);if(a){let l=nd(s);return o.concat(s,s.visualViewport||[],ll(n)?n:[],l&&t?Ua(l):[])}else return o.concat(n,Ua(n,[],t))}function nd(i){return i.parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null}function Mb(i){let o=Fo(i),t=parseFloat(o.width)||0,r=parseFloat(o.height)||0,n=qn(i),a=n?i.offsetWidth:t,s=n?i.offsetHeight:r,l=al(t)!==a||al(r)!==s;return l&&(t=a,r=s),{width:t,height:r,$:l}}function jh(i){return Ho(i)?i:i.contextElement}function Wa(i){let o=jh(i);if(!qn(o))return sn(1);let t=o.getBoundingClientRect(),{width:r,height:n,$:a}=Mb(o),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 n3=sn(0);function qb(i){let o=Er(i);return!od()||!o.visualViewport?n3:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function i3(i,o,t){return o===void 0&&(o=!1),!!t&&o&&t===Er(i)}function aa(i,o,t,r){o===void 0&&(o=!1),t===void 0&&(t=!1);let n=i.getBoundingClientRect(),a=jh(i),s=sn(1);o&&(r?Ho(r)&&(s=Wa(r)):s=Wa(i));let l=i3(a,t,r)?qb(a):sn(0),d=(n.left+l.x)/s.x,h=(n.top+l.y)/s.y,m=n.width/s.x,f=n.height/s.y;if(a&&r){let b=Er(a),g=Ho(r)?Er(r):r,v=b,x=nd(v);for(;x&&g!==v;){let _=Wa(x),k=x.getBoundingClientRect(),N=Fo(x),G=k.left+(x.clientLeft+parseFloat(N.paddingLeft))*_.x,I=k.top+(x.clientTop+parseFloat(N.paddingTop))*_.y;d*=_.x,h*=_.y,m*=_.x,f*=_.y,d+=G,h+=I,v=Er(x),x=nd(v)}}return oa({width:m,height:f,x:d,y:h})}function id(i,o){let t=dl(i).scrollLeft;return o?o.left+t:aa(cn(i)).left+t}function Ib(i,o){let t=i.getBoundingClientRect(),r=t.left+o.scrollLeft-id(i,t),n=t.top+o.scrollTop;return{x:r,y:n}}function a3(i){let{elements:o,rect:t,offsetParent:r,strategy:n}=i,a=n==="fixed",s=cn(r),l=o?cl(o.floating):!1;if(r===s||l&&a)return t;let d={scrollLeft:0,scrollTop:0},h=sn(1),m=sn(0),f=qn(r);if((f||!a)&&((ia(r)!=="body"||ll(s))&&(d=dl(r)),f)){let g=aa(r);h=Wa(r),m.x=g.x+r.clientLeft,m.y=g.y+r.clientTop}let b=s&&!f&&!a?Ib(s,d):sn(0);return{width:t.width*h.x,height:t.height*h.y,x:t.x*h.x-d.scrollLeft*h.x+m.x+b.x,y:t.y*h.y-d.scrollTop*h.y+m.y+b.y}}function s3(i){return i.getClientRects?Array.from(i.getClientRects()):[]}function l3(i){let o=dl(i),t=i.ownerDocument.body,r=Po(i.scrollWidth,i.clientWidth,t.scrollWidth,t.clientWidth),n=Po(i.scrollHeight,i.clientHeight,t.scrollHeight,t.clientHeight),a=-o.scrollLeft+id(i),s=-o.scrollTop;return Fo(t).direction==="rtl"&&(a+=Po(i.clientWidth,t.clientWidth)-r),{width:r,height:n,x:a,y:s}}var c3=25;function d3(i,o,t){t===void 0&&(t="viewport");let r=t==="layoutViewport",n=Er(i),a=cn(i),s=n.visualViewport,l=a.clientWidth,d=a.clientHeight,h=0,m=0;if(s){let b=!od()||o==="fixed";r?b||(h=-s.offsetLeft,m=-s.offsetTop):(l=s.width,d=s.height,b&&(h=s.offsetLeft,m=s.offsetTop))}if(id(a)<=0){let b=a.ownerDocument,g=b.body,v=getComputedStyle(g),x=b.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,_=Math.abs(a.clientWidth-g.clientWidth-x),k=getComputedStyle(a).scrollbarGutter==="stable both-edges"?_/2:_;k<=c3&&(l-=k)}return{width:l,height:d,x:h,y:m}}function p3(i,o){let t=aa(i,!0,o==="fixed"),r=t.top+i.clientTop,n=t.left+i.clientLeft,a=Wa(i),s=i.clientWidth*a.x,l=i.clientHeight*a.y,d=n*a.x,h=r*a.y;return{width:s,height:l,x:d,y:h}}function Ab(i,o,t){let r;if(o==="viewport"||o==="layoutViewport")r=d3(i,t,o);else if(o==="document")r=l3(cn(i));else if(Ho(o))r=p3(o,t);else{let n=qb(i);r={x:o.x-n.x,y:o.y-n.y,width:o.width,height:o.height}}return oa(r)}function h3(i,o){let t=o.get(i);if(t)return t;let r=Ua(i,[],!1).filter(l=>Ho(l)&&ia(l)!=="body"),n=null,a=Fo(i).position==="fixed",s=a?di(i):i;for(;Ho(s)&&!Ga(s);){let l=Fo(s),d=ja(s),h=n?n.position:a?"fixed":"";!d&&(h==="fixed"||h==="absolute"&&l.position==="static")?r=r.filter(f=>f!==s):n=l,s=di(s)}return o.set(i,r),r}function u3(i){let{element:o,boundary:t,rootBoundary:r,strategy:n}=i,s=[...t==="clippingAncestors"?cl(o)?[]:h3(o,this._c):[].concat(t),r],l=Ab(o,s[0],n),d=l.top,h=l.right,m=l.bottom,f=l.left;for(let b=1;b<s.length;b++){let g=Ab(o,s[b],n);d=Po(g.top,d),h=an(g.right,h),m=an(g.bottom,m),f=Po(g.left,f)}return{width:h-f,height:m-d,x:f,y:d}}function m3(i){let{width:o,height:t}=Mb(i);return{width:o,height:t}}function f3(i,o,t){let r=qn(o),n=cn(o),a=t==="fixed",s=aa(i,!0,a,o),l={scrollLeft:0,scrollTop:0},d=sn(0);if((r||!a)&&((ia(o)!=="body"||ll(n))&&(l=dl(o)),r)){let b=aa(o,!0,a,o);d.x=b.x+o.clientLeft,d.y=b.y+o.clientTop}!r&&n&&(d.x=id(n));let h=n&&!r&&!a?Ib(n,l):sn(0),m=s.left+l.scrollLeft-d.x-h.x,f=s.top+l.scrollTop-d.y-h.y;return{x:m,y:f,width:s.width,height:s.height}}function Uh(i){return Fo(i).position==="static"}function Lb(i,o){if(!qn(i)||Fo(i).position==="fixed")return null;if(o)return o(i);let t=i.offsetParent;return cn(i)===t&&(t=t.ownerDocument.body),t}function Db(i,o){let t=Er(i);if(cl(i))return t;if(!qn(i)){let n=di(i);for(;n&&!Ga(n);){if(Ho(n)&&!Uh(n))return n;n=di(n)}return t}let r=Lb(i,o);for(;r&&Eb(r)&&Uh(r);)r=Lb(r,o);return r&&Ga(r)&&Uh(r)&&!ja(r)?t:r||Tb(i)||t}var g3=async function(i){let o=this.getOffsetParent||Db,t=this.getDimensions,r=await t(i.floating);return{reference:f3(i.reference,await o(i.floating),i.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function b3(i){return Fo(i).direction==="rtl"}var pl={convertOffsetParentRelativeRectToViewportRelativeRect:a3,getDocumentElement:cn,getClippingRect:u3,getOffsetParent:Db,getElementRects:g3,getClientRects:s3,getDimensions:m3,getScale:Wa,isElement:Ho,isRTL:b3};function Nb(i,o){return i.x===o.x&&i.y===o.y&&i.width===o.width&&i.height===o.height}function v3(i,o,t){let r=null,n,a=cn(i);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=i.getBoundingClientRect(),{left:g,top:v,width:x,height:_}=b;if(m||o(),!x||!_)return;let k=sl(v),N=sl(a.clientWidth-(g+x)),G=sl(a.clientHeight-(v+_)),I=sl(g),$={rootMargin:-k+"px "+-N+"px "+-G+"px "+-I+"px",threshold:Po(0,an(1,f))||1},L=!0;function W(tt){let ht=tt[0].intersectionRatio;if(!Nb(b,i.getBoundingClientRect()))return l();if(ht!==f){if(!L)return l();ht?l(!1,ht):n=setTimeout(()=>{l(!1,1e-7)},1e3)}L=!1}try{r=new IntersectionObserver(W,{...$,root:a.ownerDocument})}catch{r=new IntersectionObserver(W,$)}r.observe(i)}let d=Er(i),h=()=>l(t);return d.addEventListener("resize",h),l(!0),()=>{d.removeEventListener("resize",h),s()}}function ad(i,o,t,r){r===void 0&&(r={});let{ancestorScroll:n=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,h=jh(i),m=n||a?[...h?Ua(h):[],...o?Ua(o):[]]:[];m.forEach(k=>{n&&k.addEventListener("scroll",t),a&&k.addEventListener("resize",t)});let f=h&&l?v3(h,t,a):null,b=-1,g=null;s&&(g=new ResizeObserver(k=>{let[N]=k;N&&N.target===h&&g&&o&&(g.unobserve(o),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var G;(G=g)==null||G.observe(o)})),t()}),h&&!d&&g.observe(h),o&&g.observe(o));let v,x=d?aa(i):null;d&&_();function _(){let k=aa(i);x&&!Nb(x,k)&&t(),x=k,v=requestAnimationFrame(_)}return t(),()=>{var k;m.forEach(N=>{n&&N.removeEventListener("scroll",t),a&&N.removeEventListener("resize",t)}),f?.(),(k=g)==null||k.disconnect(),g=null,d&&cancelAnimationFrame(v)}}var sd=wb;var ld=_b,cd=zb,hl=kb;var Rb=yb;var dd=(i,o,t)=>{let r=new Map,n=t??{},a={...pl,...n.platform,_c:r};return xb(i,o,{...n,platform:a})};function Ob(i){return x3(i)}function Gh(i){return i.assignedSlot?i.assignedSlot:i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}function x3(i){for(let o=i;o;o=Gh(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Gh(i);o;o=Gh(o)){if(!(o instanceof Element))continue;let t=getComputedStyle(o);if(t.display!=="contents"&&(t.position!=="static"||ja(t)||o.tagName==="BODY"))return o}return null}var Pb=E`@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}:host *,:host *::before,:host *::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 y3(i){return i!==null&&typeof i=="object"&&"getBoundingClientRect"in i&&("contextElement"in i?i instanceof Element:!0)}var Tt=class extends C{constructor(){super(...arguments);this.active=!1;this.placement="top";this.strategy="fixed";this.distance=0;this.skidding=0;this.arrow=!1;this.arrowPlacement="anchor";this.arrowPadding=10;this.flip=!1;this.flipFallbackPlacements="";this.flipFallbackStrategy="best-fit";this.flipPadding=0;this.shift=!1;this.shiftPadding=0;this.autoSizePadding=0;this.hoverBridge=!1;this.handleAnchorHover=()=>{this.active||this.start()};this.updateHoverBridge=()=>{if(this.hoverBridge&&this.anchorEl){let t=this.anchorEl.getBoundingClientRect(),r=this.popup.getBoundingClientRect(),n=this.placement.includes("top")||this.placement.includes("bottom"),a,s,l,d,h,m,f,b;n?t.top<r.top?(a=t.left,s=t.bottom,l=t.right,d=t.bottom,h=r.left,m=r.top,f=r.right,b=r.top):(a=r.left,s=r.bottom,l=r.right,d=r.bottom,h=t.left,m=t.top,f=t.right,b=t.top):t.left<r.left?(a=t.right,s=t.top,l=r.left,d=r.top,h=t.right,m=t.bottom,f=r.left,b=r.bottom):(a=r.right,s=r.top,l=t.left,d=t.top,h=r.right,m=r.bottom,f=t.left,b=t.bottom),this.style.setProperty("--hover-bridge-top-left-x",`${a}px`),this.style.setProperty("--hover-bridge-top-left-y",`${s}px`),this.style.setProperty("--hover-bridge-top-right-x",`${l}px`),this.style.setProperty("--hover-bridge-top-right-y",`${d}px`),this.style.setProperty("--hover-bridge-bottom-left-x",`${h}px`),this.style.setProperty("--hover-bridge-bottom-left-y",`${m}px`),this.style.setProperty("--hover-bridge-bottom-right-x",`${f}px`),this.style.setProperty("--hover-bridge-bottom-right-y",`${b}px`)}}}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.active&&this.start()}disconnectedCallback(){super.disconnectedCallback(),this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&typeof this.anchor=="string"){let t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element||y3(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=ad(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=[sd({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(hl({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(cd({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:this.flipFallbackStrategy==="best-fit"?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(ld({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(hl({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(Rb({element:this.arrowEl,padding:this.arrowPadding}));let r=this.strategy==="absolute"?n=>pl.getOffsetParent(n,Ob):pl.getOffsetParent;dd(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...pl,getOffsetParent:r}}).then(({x:n,y:a,middlewareData:s,placement:l})=>{let d={top:"bottom",right:"left",bottom:"top",left:"right"}[l.split("-")[0]];if(this.setAttribute("data-current-placement",l),Object.assign(this.popup.style,{left:`${n}px`,top:`${a}px`}),!!this.popup?.isConnected&&(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,[d]:"calc(var(--arrow-size-diagonal) * -1)"})}}),requestAnimationFrame(()=>this.updateHoverBridge())}render(){return u`
|
|
139
139
|
<slot class="anchor" name="anchor" @slotchange="${this.handleAnchorChange}"></slot>
|
|
140
140
|
|
|
141
141
|
<span
|
|
@@ -153,7 +153,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
153
153
|
${this.arrow?u`
|
|
154
154
|
<div part="arrow" class="popup__arrow" role="presentation"></div>`:""}
|
|
155
155
|
</div>
|
|
156
|
-
`}};Tt.styles=T(Pb),c([F(".popup")],Tt.prototype,"popup",2),c([F(".popup__arrow")],Tt.prototype,"arrowEl",2),c([p()],Tt.prototype,"anchor",2),c([p({type:Boolean,reflect:!0})],Tt.prototype,"active",2),c([p({reflect:!0})],Tt.prototype,"placement",2),c([p({reflect:!0})],Tt.prototype,"strategy",2),c([p({type:Number})],Tt.prototype,"distance",2),c([p({type:Number})],Tt.prototype,"skidding",2),c([p({type:Boolean})],Tt.prototype,"arrow",2),c([p({attribute:"arrow-placement"})],Tt.prototype,"arrowPlacement",2),c([p({attribute:"arrow-padding",type:Number})],Tt.prototype,"arrowPadding",2),c([p({type:Boolean})],Tt.prototype,"flip",2),c([p({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(r=>r.trim()).filter(r=>r!==""),toAttribute:t=>t.join(" ")}})],Tt.prototype,"flipFallbackPlacements",2),c([p({attribute:"flip-fallback-strategy"})],Tt.prototype,"flipFallbackStrategy",2),c([p({type:Object})],Tt.prototype,"flipBoundary",2),c([p({attribute:"flip-padding",type:Number})],Tt.prototype,"flipPadding",2),c([p({type:Boolean})],Tt.prototype,"shift",2),c([p({type:Object})],Tt.prototype,"shiftBoundary",2),c([p({attribute:"shift-padding",type:Number})],Tt.prototype,"shiftPadding",2),c([p({attribute:"auto-size"})],Tt.prototype,"autoSize",2),c([p()],Tt.prototype,"sync",2),c([p({type:Object})],Tt.prototype,"autoSizeBoundary",2),c([p({attribute:"auto-size-padding",type:Number})],Tt.prototype,"autoSizePadding",2),c([p({attribute:"hover-bridge",type:Boolean})],Tt.prototype,"hoverBridge",2);var ul=Tt;Tt.define("zn-popup");var Hb=E`@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}:host *,:host *::before,:host *::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(:not([expanded])){cursor:pointer}:host([expanded]) .expand{transform:rotate(180deg)}:host-context(.app-navigation) .header{padding:var(--zn-base-px)}.header{display:flex;flex-direction:row;justify-content:space-between;cursor:pointer;overflow:hidden;padding:var(--zn-base-gap);justify-items:center}.header .caption{font-weight:600;margin:0;flex-grow:1;width:100%;color:rgb(var(--zn-text-heading))}.header .description{text-align:right;padding:0;margin:0}.header .summary{font-weight:500;font-size:90%}.header .label{font-weight:500;font-size:90%}.header__left{flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.header__right{display:flex;flex-direction:row;align-items:center}:host([error-label]) .header .caption{color:rgb(var(--zn-color-error))}:host([warning-label]) .header .caption{color:rgb(var(--zn-color-warning))}:host(:not([flush])).content{padding:var(--zn-base-gap,0)}.content{transition:0.1s all ease-out}:host([expanded]) .content{margin:0 var(--zn-spacing-medium);padding-bottom:var(--zn-spacing-medium)}:host([expanded]) .content--flush{margin:0;padding:0}:host(:not([expanded])) .content{max-height:0;opacity:0;overflow:hidden;padding:0}.expand{margin-left:var(--zn-spacing-medium)}`;var
|
|
156
|
+
`}};Tt.styles=T(Pb),c([F(".popup")],Tt.prototype,"popup",2),c([F(".popup__arrow")],Tt.prototype,"arrowEl",2),c([p()],Tt.prototype,"anchor",2),c([p({type:Boolean,reflect:!0})],Tt.prototype,"active",2),c([p({reflect:!0})],Tt.prototype,"placement",2),c([p({reflect:!0})],Tt.prototype,"strategy",2),c([p({type:Number})],Tt.prototype,"distance",2),c([p({type:Number})],Tt.prototype,"skidding",2),c([p({type:Boolean})],Tt.prototype,"arrow",2),c([p({attribute:"arrow-placement"})],Tt.prototype,"arrowPlacement",2),c([p({attribute:"arrow-padding",type:Number})],Tt.prototype,"arrowPadding",2),c([p({type:Boolean})],Tt.prototype,"flip",2),c([p({attribute:"flip-fallback-placements",converter:{fromAttribute:t=>t.split(" ").map(r=>r.trim()).filter(r=>r!==""),toAttribute:t=>t.join(" ")}})],Tt.prototype,"flipFallbackPlacements",2),c([p({attribute:"flip-fallback-strategy"})],Tt.prototype,"flipFallbackStrategy",2),c([p({type:Object})],Tt.prototype,"flipBoundary",2),c([p({attribute:"flip-padding",type:Number})],Tt.prototype,"flipPadding",2),c([p({type:Boolean})],Tt.prototype,"shift",2),c([p({type:Object})],Tt.prototype,"shiftBoundary",2),c([p({attribute:"shift-padding",type:Number})],Tt.prototype,"shiftPadding",2),c([p({attribute:"auto-size"})],Tt.prototype,"autoSize",2),c([p()],Tt.prototype,"sync",2),c([p({type:Object})],Tt.prototype,"autoSizeBoundary",2),c([p({attribute:"auto-size-padding",type:Number})],Tt.prototype,"autoSizePadding",2),c([p({attribute:"hover-bridge",type:Boolean})],Tt.prototype,"hoverBridge",2);var ul=Tt;Tt.define("zn-popup");var Hb=E`@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}:host *,:host *::before,:host *::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(:not([expanded])){cursor:pointer}:host([expanded]) .expand{transform:rotate(180deg)}:host-context(.app-navigation) .header{padding:var(--zn-base-px)}.header{display:flex;flex-direction:row;justify-content:space-between;cursor:pointer;overflow:hidden;padding:var(--zn-base-gap);justify-items:center}.header .caption{font-weight:600;margin:0;flex-grow:1;width:100%;color:rgb(var(--zn-text-heading))}.header .description{text-align:right;padding:0;margin:0}.header .summary{font-weight:500;font-size:90%}.header .label{font-weight:500;font-size:90%}.header__left{flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.header__right{display:flex;flex-direction:row;align-items:center}:host([error-label]) .header .caption{color:rgb(var(--zn-color-error))}:host([warning-label]) .header .caption{color:rgb(var(--zn-color-warning))}:host(:not([flush])).content{padding:var(--zn-base-gap,0)}.content{transition:0.1s all ease-out}:host([expanded]) .content{margin:0 var(--zn-spacing-medium);padding-bottom:var(--zn-spacing-medium)}:host([expanded]) .content--flush{margin:0;padding:0}:host(:not([expanded])) .content{max-height:0;opacity:0;overflow:hidden;padding:0}.expand{margin-left:var(--zn-spacing-medium)}`;var Re=class extends C{constructor(){super(...arguments);this.caption="";this.label="";this.showNumber=!1;this.countElement="*";this.expanded=!1;this.storeKey="";this.storeTtl=0;this.flush=!1;this.numberOfItems=0;this.hasSlotController=new Q(this,"[default]","header","caption","label","description");this.observer=new Lt(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>this.recalculateNumberOfItems()});this.showArrow=!0;this.handleCaptionToggle=t=>{let r=t.target;r&&(this.expanded=r.checked)};this.handleCollapse=t=>{let r=t.target;r.tagName.toLowerCase()==="input"&&r.type==="checkbox"||this.expanded&&(this.expanded=!1,t.stopPropagation())};this.recalculateNumberOfItems=()=>{let t=this.hasSlotController.getDefaultSlot().filter(n=>n.nodeType===Node.ELEMENT_NODE);if(this.countElement==="*"){this.numberOfItems=t.length;return}let r=t.flatMap(n=>Array.from(n.querySelectorAll(this.countElement)));this.numberOfItems=r.length}}async connectedCallback(){if(super.connectedCallback(),this._store=new mr(this.localStorage?window.localStorage:window.sessionStorage,"zncla:",this.storeTtl),this.expanded=this.defaultState==="open",this.storeKey){let r=this._store.get(this.storeKey);r&&(this.expanded=r==="true")}this.showNumber&&this.observer.observe(this),await this.updateComplete;let t=this.hasSlotController.getSlot("caption");if(t){let r=t.querySelectorAll("zn-toggle");this.showArrow=!1,r.forEach(n=>{n.removeEventListener("zn-input",this.handleCaptionToggle),n.addEventListener("zn-input",this.handleCaptionToggle)})}}updated(t){super.updated(t),t.has("expanded")&&this.storeKey&&this._store.set(this.storeKey,this.expanded.toString())}render(){return this.recalculateNumberOfItems(),u`
|
|
157
157
|
<div @click="${()=>this.expanded?"":this.expanded=!0}">
|
|
158
158
|
<slot name="header" part="header" class="header" @click="${this.handleCollapse}">
|
|
159
159
|
<div class="header__left">
|
|
@@ -176,7 +176,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
176
176
|
<div class=${D({content:!0,"content--flush":this.flush})} part="content">
|
|
177
177
|
<slot @slotchange="${this.requestUpdate}"></slot>
|
|
178
178
|
</div>
|
|
179
|
-
</div>`}};
|
|
179
|
+
</div>`}};Re.styles=T(Hb),c([p({reflect:!0})],Re.prototype,"caption",2),c([p({reflect:!0})],Re.prototype,"description",2),c([p({reflect:!0})],Re.prototype,"label",2),c([p({type:Boolean,attribute:"show-number",reflect:!0})],Re.prototype,"showNumber",2),c([p({type:String,attribute:"count-element"})],Re.prototype,"countElement",2),c([p({type:Boolean,reflect:!0})],Re.prototype,"expanded",2),c([p({attribute:"default"})],Re.prototype,"defaultState",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],Re.prototype,"localStorage",2),c([p({attribute:"store-key",reflect:!0})],Re.prototype,"storeKey",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],Re.prototype,"storeTtl",2),c([p({attribute:"flush",type:Boolean,reflect:!0})],Re.prototype,"flush",2),c([O()],Re.prototype,"numberOfItems",2);var sa=Re;Re.define("zn-collapsible");var Fb=E`@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}:host *,:host *::before,:host *::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))}:host([appearance=solid]) .wrapper:before{backdrop-filter:none}.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%}.wrapper:before{border-radius:10px;position:absolute;content:"";inset:0;z-index:-1;backdrop-filter:blur(3px)}: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 Hr=class extends C{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`
|
|
180
180
|
<zn-icon class="alert-icon" src="${this.icon}" id="xy2" @click="${this.hideAlert}"
|
|
181
181
|
style="cursor: pointer"></zn-icon>`:"":t=this.icon?u`
|
|
182
182
|
<zn-icon class="alert-icon" src="${this.icon}" id="xy2"></zn-icon>`:"");let r=this.caption?u`<h6>${this.caption}</h6>`:"";return u`
|
|
@@ -289,7 +289,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
289
289
|
</slot>
|
|
290
290
|
</button>
|
|
291
291
|
</zn-tooltip>
|
|
292
|
-
`}showStatus(t){let r=t==="success"?this.successIcon:this.errorIcon;this.tooltip.content=t==="success"?"Copied!":"Error!",this.copyIcon.hidden=!0,this.status=t,r.hidden=!1,setTimeout(()=>{this.status="rest",this.copyIcon.hidden=!1,r.hidden=!0,this.tooltip.content=this.copyLabel||"Copy",this.isCopying=!1},1500)}async handleCopy(){if(this.isCopying)return;this.isCopying=!0;let t=this.value||this.textContent;if(this.from){let r=this.getRootNode(),n=this.from.includes("."),a=this.from.includes("[")&&this.from.includes("]"),s=this.from,l="";n?[s,l]=this.from.trim().split("."):a&&([s,l]=this.from.trim().replace(/]$/,"").split("["));let d="getElementById"in r?r.getElementById(s):null;d?a?t=d.getAttribute(l)||"":n?t=d[l]||"":t=d.textContent||"":(console.error("No target element found with id:",s),this.showStatus("error"),this.emit("zn-error"))}if(!t){console.error('No value to copy. Please provide a value or a valid "from" attribute.'),this.showStatus("error"),this.emit("zn-error");return}try{await navigator.clipboard.writeText(t),this.showStatus("success"),this.emit("zn-copy",{detail:{value:t}})}catch(r){console.error("Failed to copy text: ",r),this.showStatus("error"),this.emit("zn-error")}}};Ze.styles=T(Yb),c([F('slot[name="copy-icon"')],Ze.prototype,"copyIcon",2),c([F('slot[name="success-icon"')],Ze.prototype,"successIcon",2),c([F('slot[name="error-icon"')],Ze.prototype,"errorIcon",2),c([F("zn-tooltip")],Ze.prototype,"tooltip",2),c([O()],Ze.prototype,"isCopying",2),c([O()],Ze.prototype,"status",2),c([p()],Ze.prototype,"value",2),c([p({attribute:"copy-label"})],Ze.prototype,"copyLabel",2),c([p()],Ze.prototype,"src",2),c([p({type:Number,reflect:!0})],Ze.prototype,"size",2),c([p()],Ze.prototype,"from",2);var Kh=Ze;Ze.define("zn-copy-button");var Xb=()=>new Xh,Xh=class{},Yh=new WeakMap,fl=se(class extends si{render(i){return V}update(i,[o]){let t=o!==this.G;return t&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=o,this.ht=i.options?.host,this.rt(this.ct=i.element)),V}rt(i){if(this.G!==void 0)if(this.isConnected||(i=void 0),typeof this.G=="function"){let o=this.ht??globalThis,t=Yh.get(o);t===void 0&&(t=new WeakMap,Yh.set(o,t)),t.get(this.G)!==void 0&&this.G.call(this.ht,void 0),t.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){return typeof this.G=="function"?Yh.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 te=class{constructor(o,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=o,t!==null&&this.t.add(t??o),this.l=r,this.o=a??this.o,this.callback=n,window.ResizeObserver?(this.u=new ResizeObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),o.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(o){this.value=this.callback?.(o,this.u)}hostConnected(){for(let o of this.t)this.observe(o)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(o){this.t.add(o),this.u.observe(o,this.l),this.i=!0,this.h.requestUpdate()}unobserve(o){this.t.delete(o),this.u.unobserve(o)}disconnect(){this.u.disconnect()}target(o){return T3(this,o)}},T3=se(class extends si{constructor(){super(...arguments),this.observing=!1}render(i,o){}update(i,[o,t]){this.controller=o,this.part=i,this.observe=t,t===!1?(o.unobserve(i.element),this.observing=!1):this.observing===!1&&(o.observe(i.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 Qb=Symbol(),gl=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((o,t)=>{this.o=o,this.h=t})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(o,t,r){this.p=0,this.i=0,(this._=o).addController(this);let n=typeof t=="object"?t:{task:t,args:r};this.v=n.task,this.j=n.args,this.m=n.argsEqual??Jb,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 o=this.j();if(!Array.isArray(o))throw Error("The args function must return an array");return o}async S(){let o=this.T(),t=this.O;this.O=o,o===t||o===void 0||t!==void 0&&this.m(t,o)||await this.run(o)}async run(o){let t,r;o??(o=this.T()),this.O=o,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(o,{signal:this.q.signal})}catch(s){a=!0,r=s}if(this.p===n){if(t===Qb)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(o){this.i===1&&this.q?.abort(o)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(o){switch(this.i){case 0:return o.initial?.();case 1:return o.pending?.();case 2:return o.complete?.(this.value);case 3:return o.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},Jb=(i,o)=>i===o||i.length===o.length&&i.every(((t,r)=>!Na(t,o[r])));function $3(i,o=document){let t=o.querySelector(i);if(t)return t;for(let r of o.querySelectorAll("*"))if(r.shadowRoot){let n=$3(i,r.shadowRoot);if(n)return n}return null}function A3(i,o=document,t=[]){t.push(...o.querySelectorAll(i));for(let r of o.querySelectorAll("*"))r.shadowRoot&&A3(i,r.shadowRoot,t);return t}function Ot(i,o,t){let r=[],n=(a,s)=>{if(!a||a.nodeType!==Node.ELEMENT_NODE||s&&t&&a.matches(t))return;a.matches(i)&&r.push(a);let l=a.children;if(l.length)for(let h of l)n(h,!0);let d=a.shadowRoot;if(d){let h=d.children;for(let m of h)n(m,!0)}};return n(o,!1),r}function Zb(i,o){return{top:Math.round(i.getBoundingClientRect().top-o.getBoundingClientRect().top),left:Math.round(i.getBoundingClientRect().left-o.getBoundingClientRect().left)}}var tv=new Set;function pd(i){tv.delete(i),tv.size===0&&(document.body.classList.remove("zn-scroll-lock"),document.body.style.removeProperty("--zn-scroll-lock-size"))}function ev(i,o,t="vertical",r="smooth"){let n=Zb(i,o),a=n.top+o.scrollTop,s=n.left+o.scrollLeft,l=o.scrollLeft,d=o.scrollLeft+o.offsetWidth,h=o.scrollTop,m=o.scrollTop+o.offsetHeight;(t==="horizontal"||t==="both")&&(s<l?o.scrollTo({left:s,behavior:r}):s+i.clientWidth>d&&o.scrollTo({left:s-o.offsetWidth+i.clientWidth,behavior:r})),(t==="vertical"||t==="both")&&(a<h?o.scrollTo({top:a,behavior:r}):a+i.clientHeight>m&&o.scrollTo({top:a-o.offsetHeight+i.clientHeight,behavior:r}))}var rv=E`@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}:host *,:host *::before,:host *::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{border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color);margin:2px;overflow:auto}.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% - var(--zn-spacing-2x-large));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__header{flex:0 0 auto;display:flex}.dialog__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0}.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__body{flex:1 1 auto;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.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 sr=class extends C{constructor(){super(...arguments);this.hasSlotController=new Q(this,"[default]","footer");this.variant="default";this.size="medium";this.open=!1;this.cosmic=!1;this.noHeader=!1;this.closeClickHandler=t=>{t.target instanceof HTMLElement&&t.target.hasAttribute("dialog-closer")&&this.hide()}}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("#"+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(),pd(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector("#"+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`
|
|
292
|
+
`}showStatus(t){let r=t==="success"?this.successIcon:this.errorIcon;this.tooltip.content=t==="success"?"Copied!":"Error!",this.copyIcon.hidden=!0,this.status=t,r.hidden=!1,setTimeout(()=>{this.status="rest",this.copyIcon.hidden=!1,r.hidden=!0,this.tooltip.content=this.copyLabel||"Copy",this.isCopying=!1},1500)}async handleCopy(){if(this.isCopying)return;this.isCopying=!0;let t=this.value||this.textContent;if(this.from){let r=this.getRootNode(),n=this.from.includes("."),a=this.from.includes("[")&&this.from.includes("]"),s=this.from,l="";n?[s,l]=this.from.trim().split("."):a&&([s,l]=this.from.trim().replace(/]$/,"").split("["));let d="getElementById"in r?r.getElementById(s):null;d?a?t=d.getAttribute(l)||"":n?t=d[l]||"":t=d.textContent||"":(console.error("No target element found with id:",s),this.showStatus("error"),this.emit("zn-error"))}if(!t){console.error('No value to copy. Please provide a value or a valid "from" attribute.'),this.showStatus("error"),this.emit("zn-error");return}try{await navigator.clipboard.writeText(t),this.showStatus("success"),this.emit("zn-copy",{detail:{value:t}})}catch(r){console.error("Failed to copy text: ",r),this.showStatus("error"),this.emit("zn-error")}}};Ze.styles=T(Yb),c([F('slot[name="copy-icon"')],Ze.prototype,"copyIcon",2),c([F('slot[name="success-icon"')],Ze.prototype,"successIcon",2),c([F('slot[name="error-icon"')],Ze.prototype,"errorIcon",2),c([F("zn-tooltip")],Ze.prototype,"tooltip",2),c([O()],Ze.prototype,"isCopying",2),c([O()],Ze.prototype,"status",2),c([p()],Ze.prototype,"value",2),c([p({attribute:"copy-label"})],Ze.prototype,"copyLabel",2),c([p()],Ze.prototype,"src",2),c([p({type:Number,reflect:!0})],Ze.prototype,"size",2),c([p()],Ze.prototype,"from",2);var Kh=Ze;Ze.define("zn-copy-button");var Xb=()=>new Xh,Xh=class{},Yh=new WeakMap,fl=se(class extends si{render(i){return V}update(i,[o]){let t=o!==this.G;return t&&this.rt(void 0),(t||this.lt!==this.ct)&&(this.G=o,this.ht=i.options?.host,this.rt(this.ct=i.element)),V}rt(i){if(this.G!==void 0)if(this.isConnected||(i=void 0),typeof this.G=="function"){let o=this.ht??globalThis,t=Yh.get(o);t===void 0&&(t=new WeakMap,Yh.set(o,t)),t.get(this.G)!==void 0&&this.G.call(this.ht,void 0),t.set(this.G,i),i!==void 0&&this.G.call(this.ht,i)}else this.G.value=i}get lt(){return typeof this.G=="function"?Yh.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 te=class{constructor(o,{target:t,config:r,callback:n,skipInitial:a}){this.t=new Set,this.o=!1,this.i=!1,this.h=o,t!==null&&this.t.add(t??o),this.l=r,this.o=a??this.o,this.callback=n,window.ResizeObserver?(this.u=new ResizeObserver(s=>{this.handleChanges(s),this.h.requestUpdate()}),o.addController(this)):console.warn("ResizeController error: browser does not support ResizeObserver.")}handleChanges(o){this.value=this.callback?.(o,this.u)}hostConnected(){for(let o of this.t)this.observe(o)}hostDisconnected(){this.disconnect()}async hostUpdated(){!this.o&&this.i&&this.handleChanges([]),this.i=!1}observe(o){this.t.add(o),this.u.observe(o,this.l),this.i=!0,this.h.requestUpdate()}unobserve(o){this.t.delete(o),this.u.unobserve(o)}disconnect(){this.u.disconnect()}target(o){return T3(this,o)}},T3=se(class extends si{constructor(){super(...arguments),this.observing=!1}render(i,o){}update(i,[o,t]){this.controller=o,this.part=i,this.observe=t,t===!1?(o.unobserve(i.element),this.observing=!1):this.observing===!1&&(o.observe(i.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 Qb=Symbol(),gl=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((o,t)=>{this.o=o,this.h=t})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(o,t,r){this.p=0,this.i=0,(this._=o).addController(this);let n=typeof t=="object"?t:{task:t,args:r};this.v=n.task,this.j=n.args,this.m=n.argsEqual??Jb,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 o=this.j();if(!Array.isArray(o))throw Error("The args function must return an array");return o}async S(){let o=this.T(),t=this.O;this.O=o,o===t||o===void 0||t!==void 0&&this.m(t,o)||await this.run(o)}async run(o){let t,r;o??(o=this.T()),this.O=o,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(o,{signal:this.q.signal})}catch(s){a=!0,r=s}if(this.p===n){if(t===Qb)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(o){this.i===1&&this.q?.abort(o)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(o){switch(this.i){case 0:return o.initial?.();case 1:return o.pending?.();case 2:return o.complete?.(this.value);case 3:return o.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},Jb=(i,o)=>i===o||i.length===o.length&&i.every(((t,r)=>!Na(t,o[r])));function $3(i,o=document){let t=o.querySelector(i);if(t)return t;for(let r of o.querySelectorAll("*"))if(r.shadowRoot){let n=$3(i,r.shadowRoot);if(n)return n}return null}function A3(i,o=document,t=[]){t.push(...o.querySelectorAll(i));for(let r of o.querySelectorAll("*"))r.shadowRoot&&A3(i,r.shadowRoot,t);return t}function Pt(i,o,t){let r=[],n=(a,s)=>{if(!a||a.nodeType!==Node.ELEMENT_NODE||s&&t&&a.matches(t))return;a.matches(i)&&r.push(a);let l=a.children;if(l.length)for(let h of l)n(h,!0);let d=a.shadowRoot;if(d){let h=d.children;for(let m of h)n(m,!0)}};return n(o,!1),r}function Zb(i,o){return{top:Math.round(i.getBoundingClientRect().top-o.getBoundingClientRect().top),left:Math.round(i.getBoundingClientRect().left-o.getBoundingClientRect().left)}}var tv=new Set;function pd(i){tv.delete(i),tv.size===0&&(document.body.classList.remove("zn-scroll-lock"),document.body.style.removeProperty("--zn-scroll-lock-size"))}function ev(i,o,t="vertical",r="smooth"){let n=Zb(i,o),a=n.top+o.scrollTop,s=n.left+o.scrollLeft,l=o.scrollLeft,d=o.scrollLeft+o.offsetWidth,h=o.scrollTop,m=o.scrollTop+o.offsetHeight;(t==="horizontal"||t==="both")&&(s<l?o.scrollTo({left:s,behavior:r}):s+i.clientWidth>d&&o.scrollTo({left:s-o.offsetWidth+i.clientWidth,behavior:r})),(t==="vertical"||t==="both")&&(a<h?o.scrollTo({top:a,behavior:r}):a+i.clientHeight>m&&o.scrollTo({top:a-o.offsetHeight+i.clientHeight,behavior:r}))}var rv=E`@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}:host *,:host *::before,:host *::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{border-radius:var(--zn-border-radius);background-color:var(--zn-panel-background-color);margin:2px;overflow:auto}.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% - var(--zn-spacing-2x-large));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__header{flex:0 0 auto;display:flex}.dialog__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0}.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__body{flex:1 1 auto;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.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 sr=class extends C{constructor(){super(...arguments);this.hasSlotController=new Q(this,"[default]","footer");this.variant="default";this.size="medium";this.open=!1;this.cosmic=!1;this.noHeader=!1;this.closeClickHandler=t=>{t.target instanceof HTMLElement&&t.target.hasAttribute("dialog-closer")&&this.hide()}}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("#"+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(),pd(this),this.closeWatcher?.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let t=this.parentElement?.querySelector("#"+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`
|
|
293
293
|
<dialog
|
|
294
294
|
part="base"
|
|
295
295
|
role="alertdialog"
|
|
@@ -334,7 +334,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
334
334
|
</footer>
|
|
335
335
|
</div>
|
|
336
336
|
</dialog>
|
|
337
|
-
`}};sr.styles=T(rv),sr.dependencies={"zn-button":Ct},c([F(".dialog")],sr.prototype,"dialog",2),c([F(".dialog__close")],sr.prototype,"closer",2),c([p({reflect:!0})],sr.prototype,"variant",2),c([p({reflect:!0})],sr.prototype,"size",2),c([p({type:Boolean,reflect:!0})],sr.prototype,"open",2),c([p({reflect:!0})],sr.prototype,"label",2),c([p({type:Boolean,reflect:!0})],sr.prototype,"cosmic",2),c([p({attribute:"no-header",type:Boolean,reflect:!0})],sr.prototype,"noHeader",2),c([p({type:String,reflect:!0})],sr.prototype,"trigger",2);var la=sr;sr.define("zn-dialog");var ov=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.confirm-dialog__content{margin:0;text-wrap:auto}.confirm-dialog::part(footer){text-align:right}.confirm-dialog::part(body){text-align:left}.confirm-dialog--has-default-slot .confirm-dialog__content{margin-bottom:var(--zn-spacing-large)}.confirm-dialog--error::part(title){--icon-background-color:rgb(var(--zn-color-error),.3);--icon-color:rgb(var(--zn-color-error),1);--caption-color:rgb(var(--zn-color-error),1)}.confirm-dialog--warning::part(title){--icon-background-color:rgb(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning),1);--caption-color:rgb(var(--zn-color-warning),1)}.confirm-dialog--success::part(title){--icon-background-color:rgb(var(--zn-color-success),.3);--icon-color:rgb(var(--zn-color-success),1);--caption-color:rgb(var(--zn-color-success),1)}.confirm-dialog--info::part(title){--icon-background-color:rgb(var(--zn-color-info),.3);--icon-color:rgb(var(--zn-color-info),1);--caption-color:rgb(var(--zn-color-info),1)}`;var ee=class extends C{constructor(){super(...arguments);this.hasSlotController=new Q(this,"[default]","footer");this.variant="default";this.size="medium";this.type="warning";this.open=!1;this.caption="";this.action="";this.content="";this.confirmText="Confirm";this.cancelText="Cancel";this.hideIcon=!1;this.showLoading=!1;this.announcement="";this.footerText="";this.loading=!1;this.show=(t=void 0)=>{t?.target?.disabled||(this.loading=!1,this.dialog.show())}}firstUpdated(t){super.firstUpdated(t),this.open&&this.dialog.show()}connectedCallback(){super.connectedCallback(),this.hasSlotController.test("trigger")?this.hasSlotController.getSlot("trigger")?.addEventListener("click",this.show):this.trigger&&
|
|
337
|
+
`}};sr.styles=T(rv),sr.dependencies={"zn-button":Ct},c([F(".dialog")],sr.prototype,"dialog",2),c([F(".dialog__close")],sr.prototype,"closer",2),c([p({reflect:!0})],sr.prototype,"variant",2),c([p({reflect:!0})],sr.prototype,"size",2),c([p({type:Boolean,reflect:!0})],sr.prototype,"open",2),c([p({reflect:!0})],sr.prototype,"label",2),c([p({type:Boolean,reflect:!0})],sr.prototype,"cosmic",2),c([p({attribute:"no-header",type:Boolean,reflect:!0})],sr.prototype,"noHeader",2),c([p({type:String,reflect:!0})],sr.prototype,"trigger",2);var la=sr;sr.define("zn-dialog");var ov=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}.confirm-dialog__content{margin:0;text-wrap:auto}.confirm-dialog::part(footer){text-align:right}.confirm-dialog::part(body){text-align:left}.confirm-dialog--has-default-slot .confirm-dialog__content{margin-bottom:var(--zn-spacing-large)}.confirm-dialog--error::part(title){--icon-background-color:rgb(var(--zn-color-error),.3);--icon-color:rgb(var(--zn-color-error),1);--caption-color:rgb(var(--zn-color-error),1)}.confirm-dialog--warning::part(title){--icon-background-color:rgb(var(--zn-color-warning),.3);--icon-color:rgb(var(--zn-color-warning),1);--caption-color:rgb(var(--zn-color-warning),1)}.confirm-dialog--success::part(title){--icon-background-color:rgb(var(--zn-color-success),.3);--icon-color:rgb(var(--zn-color-success),1);--caption-color:rgb(var(--zn-color-success),1)}.confirm-dialog--info::part(title){--icon-background-color:rgb(var(--zn-color-info),.3);--icon-color:rgb(var(--zn-color-info),1);--caption-color:rgb(var(--zn-color-info),1)}`;var ee=class extends C{constructor(){super(...arguments);this.hasSlotController=new Q(this,"[default]","footer");this.variant="default";this.size="medium";this.type="warning";this.open=!1;this.caption="";this.action="";this.content="";this.confirmText="Confirm";this.cancelText="Cancel";this.hideIcon=!1;this.showLoading=!1;this.announcement="";this.footerText="";this.loading=!1;this.show=(t=void 0)=>{t?.target?.disabled||(this.loading=!1,this.dialog.show())}}firstUpdated(t){super.firstUpdated(t),this.open&&this.dialog.show()}connectedCallback(){super.connectedCallback(),this.hasSlotController.test("trigger")?this.hasSlotController.getSlot("trigger")?.addEventListener("click",this.show):this.trigger&&Pt("#"+this.trigger,this.parentElement,"").forEach(r=>{r.addEventListener("click",this.show)})}updateTriggers(){Pt("#"+this.trigger,this.parentElement,"").forEach(r=>{r.removeEventListener("click",this.show),r.addEventListener("click",this.show)})}hide(){this.loading=!1,this.dialog.hide()}render(){let t={warning:"priority_high",error:"priority_high",success:"check",info:"help"};return u`
|
|
338
338
|
<slot name="trigger" slot="trigger"></slot>
|
|
339
339
|
<zn-dialog size="${this.size}" variant="${this.variant}" label=${H(this.caption)} trigger=${this.trigger}
|
|
340
340
|
class=${D({"confirm-dialog":!0,"confirm-dialog--warning":this.type==="warning","confirm-dialog--error":this.type==="error","confirm-dialog--success":this.type==="success","confirm-dialog--info":this.type==="info","confirm-dialog--has-default-slot":this.hasSlotController.test("[default]")})}>
|
|
@@ -377,7 +377,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
377
377
|
<zn-button color="default" slot="footer" @click=${this.handleQBUpdate}>Show Results</zn-button>
|
|
378
378
|
</div>
|
|
379
379
|
</zn-slideout>
|
|
380
|
-
`}};dn.styles=T(nv),c([p()],dn.prototype,"filters",2),c([p()],dn.prototype,"name",2),c([p()],dn.prototype,"value",2);var Qh=dn;dn.define("zn-data-table-filter");var re=(i="value")=>(o,t)=>{let r=o.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(a,s,l){let d=r.getPropertyOptions(i),h=typeof d.attribute=="string"?d.attribute:i;if(a===h){let m=d.converter||ni,b=(typeof m=="function"?m:m?.fromAttribute??ni.fromAttribute)(l,d.type);this[i]!==b&&(this[t]=b)}n.call(this,a,s,l)}};var L3=new Map;function hd(i){return(Array.isArray(i)?i:i.split(",")).reduce((t,r)=>{let n=L3.get(r.trim());return n?[...t,...n]:t},[])}function M3(i){return typeof i=="object"&&i!==null&&typeof i.label=="string"}function pi(i){let o=i?.trim();if(!o)return[];if(o.startsWith("["))try{let t=JSON.parse(o);return Array.isArray(t)?t.filter(M3):[]}catch{return console.warn("slash-items could not be parsed as JSON",o),[]}return o.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 q3(i){return i.keywords?(Array.isArray(i.keywords)?i.keywords:i.keywords.split(",")).map(t=>t.trim().toLowerCase()).filter(t=>t!==""):[]}function I3(i,o){let t=i.label.toLowerCase();return t.startsWith(o)?0:t.split(/\s+/).some(r=>r.startsWith(o))?1:t.includes(o)?2:q3(i).some(r=>r.includes(o))?3:i.value?.toLowerCase().includes(o)?4:i.description?.toLowerCase().includes(o)?5:-1}function ud(i,o){let t=o.trim().toLowerCase();return i.map((r,n)=>({item:r,index:n,score:t?I3(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 Tr=se(class extends Xe{constructor(i){if(super(i),i.type!==or.PROPERTY&&i.type!==or.ATTRIBUTE&&i.type!==or.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Kc(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[o]){if(o===ae||o===V)return o;let t=i.element,r=i.name;if(i.type===or.PROPERTY){if(o===t[r])return ae}else if(i.type===or.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return ae}else if(i.type===or.ATTRIBUTE&&t.getAttribute(r)===o+"")return ae;return Fa(i),o}});var Jh=new Set,Ya=new Map,Nn,Zh="ltr",tu="en",iv=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(iv){let i=new MutationObserver(av);Zh=document.documentElement.dir||"ltr",tu=document.documentElement.lang||navigator.language,i.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function vl(...i){i.map(o=>{let t=o.$code.toLowerCase();Ya.has(t)?Ya.set(t,Object.assign(Object.assign({},Ya.get(t)),o)):Ya.set(t,o),Nn||(Nn=o)}),av()}function av(){iv&&(Zh=document.documentElement.dir||"ltr",tu=document.documentElement.lang||navigator.language),[...Jh.keys()].map(i=>{typeof i.requestUpdate=="function"&&i.requestUpdate()})}var md=class{constructor(o){this.host=o,this.host.addController(this)}hostConnected(){Jh.add(this.host)}hostDisconnected(){Jh.delete(this.host)}dir(){return`${this.host.dir||Zh}`.toLowerCase()}lang(){let o=`${this.host.lang||tu}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(o),o}catch{return Nn?Nn.$code.toLowerCase():"en"}}getTranslationData(o){var t,r;let n;try{n=new Intl.Locale(o.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=Ya.get(`${a}-${s}`),d=Ya.get(a);return{locale:n,language:a,region:s,primary:l,secondary:d}}exists(o,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[o]||a&&a[o]||t.includeFallback&&Nn&&Nn[o])}term(o,...t){let{primary:r,secondary:n}=this.getTranslationData(this.lang()),a;if(r&&r[o])a=r[o];else if(n&&n[o])a=n[o];else if(Nn&&Nn[o])a=Nn[o];else return console.error(`No translation found for: ${String(o)}`),String(o);return typeof a=="function"?a(...t):a}date(o,t){return o=new Date(o),new Intl.DateTimeFormat(this.lang(),t).format(o)}number(o,t){return o=Number(o),isNaN(o)?"":new Intl.NumberFormat(this.lang(),t).format(o)}relativeTime(o,t,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(o,t)}};var sv={$code:"en",$name:"English",$dir:"ltr",onChange:"onChange",showPassword:"Show password",hidePassword:"Hide password",clearEntry:"Clear entry",numOptionsSelected:i=>i===0?"No options selected":i===1?"1 option selected":`${i} 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:i=>i===0?"No files selected":i===1?"1 file selected":`${i} files selected`};vl(sv);var lv=sv;var tr=class extends md{};vl(lv);var D3=["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 N3(i){let o=parseFloat(i.lineHeight);if(!Number.isNaN(o))return o;let t=parseFloat(i.fontSize);return Number.isNaN(t)?16:t*1.2}function eu(i,o){let t=i.ownerDocument,r=getComputedStyle(i),n=i.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"),D3.forEach(f=>{let b=l[f];typeof b=="string"&&(s[f]=b)}),n&&(s.height="auto");let d=i.value.slice(0,o);a.textContent=n?d.replace(/\s/g,"\xA0"):d;let h=t.createElement("span");h.textContent=i.value.slice(o)||".",a.appendChild(h),t.body.appendChild(a);let m={top:h.offsetTop+(parseFloat(r.borderTopWidth)||0),left:h.offsetLeft+(parseFloat(r.borderLeftWidth)||0),height:N3(r)};return a.remove(),m}function ru(i,{top:o,left:t,height:r}){let n=i.getBoundingClientRect(),a=Math.max(n.top,n.bottom-r),s=Math.min(Math.max(n.top+o-i.scrollTop,n.top),a),l=Math.min(Math.max(n.left+t-i.scrollLeft,n.left),n.right);return new DOMRect(l,s,1,r)}function OH(i,o){return ru(i,eu(i,o))}var cv=E`@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}:host *,:host *::before,:host *::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{--slash-menu-width:320px;--slash-menu-max-height:260px;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));overflow-y:auto;overscroll-behavior:none;z-index:var(--zn-z-index-dropdown);padding:var(--zn-spacing-2x-small,4px) 0;background:var(--zn-panel-background-color);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--zn-border-radius,6px);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__heading,.slash-menu__group-heading,.slash-menu__footer,.slash-menu__empty{padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-small,12px);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{font-weight:var(--zn-font-weight-semibold);text-transform:uppercase;letter-spacing:0.04em}.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__item{display:flex;align-items:center;gap:var(--zn-spacing-x-small,8px);width:100%;padding:var(--zn-spacing-x-small,8px) var(--zn-spacing-small,12px);border:none;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.slash-menu__item--active,.slash-menu__item:hover:not(.slash-menu__item--disabled){background:var(--zn-input-background-color-hover)}.slash-menu__item--disabled{opacity:0.5;cursor:not-allowed}.slash-menu__icon{display:flex;align-items:center;justify-content:center;flex:0 0 16px;color:var(--zn-color-neutral-500)}.slash-menu__text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.slash-menu__label{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 Xa="zn-slash-item-select";function R3(i,o){return!!i&&i.length===o.length&&i.every((t,r)=>t.label===o[r].label&&t.value===o[r].value&&t.disabled===o[r].disabled)}var Re=class extends C{constructor(){super(...arguments);this.open=!1;this.items=[];this.query="";this.heading="Insert";this.emptyText="No matches";this.maxItems=25;this.anchor=null;this.placement="bottom-start";this.distance=4;this.activeIndex=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 visibleItems(){return this.maxItems>0?this.items.slice(0,this.maxItems):this.items}get activeItem(){return this.visibleItems[this.activeIndex]}show(){this.open=!0}hide(){this.open=!1}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=ad(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 dd(t,r,{placement:this.placement,strategy:"fixed",middleware:[sd(this.distance),cd({padding:8}),ld({padding:8}),hl({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.dispatchEvent(new CustomEvent(Xa,{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.panel;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("items")&&!R3(t.get("items"),this.items)&&(this.activeIndex=this.visibleItems.findIndex(r=>!r.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=t.value&&t.value!==t.label&&!t.value.includes(`
|
|
380
|
+
`}};dn.styles=T(nv),c([p()],dn.prototype,"filters",2),c([p()],dn.prototype,"name",2),c([p()],dn.prototype,"value",2);var Qh=dn;dn.define("zn-data-table-filter");var re=(i="value")=>(o,t)=>{let r=o.constructor,n=r.prototype.attributeChangedCallback;r.prototype.attributeChangedCallback=function(a,s,l){let d=r.getPropertyOptions(i),h=typeof d.attribute=="string"?d.attribute:i;if(a===h){let m=d.converter||ni,b=(typeof m=="function"?m:m?.fromAttribute??ni.fromAttribute)(l,d.type);this[i]!==b&&(this[t]=b)}n.call(this,a,s,l)}};var L3=new Map;function hd(i){return(Array.isArray(i)?i:i.split(",")).reduce((t,r)=>{let n=L3.get(r.trim());return n?[...t,...n]:t},[])}function M3(i){return typeof i=="object"&&i!==null&&typeof i.label=="string"}function pi(i){let o=i?.trim();if(!o)return[];if(o.startsWith("["))try{let t=JSON.parse(o);return Array.isArray(t)?t.filter(M3):[]}catch{return console.warn("slash-items could not be parsed as JSON",o),[]}return o.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 q3(i){return i.keywords?(Array.isArray(i.keywords)?i.keywords:i.keywords.split(",")).map(t=>t.trim().toLowerCase()).filter(t=>t!==""):[]}function I3(i,o){let t=i.label.toLowerCase();return t.startsWith(o)?0:t.split(/\s+/).some(r=>r.startsWith(o))?1:t.includes(o)?2:q3(i).some(r=>r.includes(o))?3:i.value?.toLowerCase().includes(o)?4:i.description?.toLowerCase().includes(o)?5:-1}function ud(i,o){let t=o.trim().toLowerCase();return i.map((r,n)=>({item:r,index:n,score:t?I3(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 Tr=se(class extends Xe{constructor(i){if(super(i),i.type!==or.PROPERTY&&i.type!==or.ATTRIBUTE&&i.type!==or.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Kc(i))throw Error("`live` bindings can only contain a single expression")}render(i){return i}update(i,[o]){if(o===ae||o===V)return o;let t=i.element,r=i.name;if(i.type===or.PROPERTY){if(o===t[r])return ae}else if(i.type===or.BOOLEAN_ATTRIBUTE){if(!!o===t.hasAttribute(r))return ae}else if(i.type===or.ATTRIBUTE&&t.getAttribute(r)===o+"")return ae;return Fa(i),o}});var Jh=new Set,Ya=new Map,Nn,Zh="ltr",tu="en",iv=typeof MutationObserver<"u"&&typeof document<"u"&&typeof document.documentElement<"u";if(iv){let i=new MutationObserver(av);Zh=document.documentElement.dir||"ltr",tu=document.documentElement.lang||navigator.language,i.observe(document.documentElement,{attributes:!0,attributeFilter:["dir","lang"]})}function vl(...i){i.map(o=>{let t=o.$code.toLowerCase();Ya.has(t)?Ya.set(t,Object.assign(Object.assign({},Ya.get(t)),o)):Ya.set(t,o),Nn||(Nn=o)}),av()}function av(){iv&&(Zh=document.documentElement.dir||"ltr",tu=document.documentElement.lang||navigator.language),[...Jh.keys()].map(i=>{typeof i.requestUpdate=="function"&&i.requestUpdate()})}var md=class{constructor(o){this.host=o,this.host.addController(this)}hostConnected(){Jh.add(this.host)}hostDisconnected(){Jh.delete(this.host)}dir(){return`${this.host.dir||Zh}`.toLowerCase()}lang(){let o=`${this.host.lang||tu}`.toLowerCase().replace(/_/g,"-");try{return new Intl.Locale(o),o}catch{return Nn?Nn.$code.toLowerCase():"en"}}getTranslationData(o){var t,r;let n;try{n=new Intl.Locale(o.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=Ya.get(`${a}-${s}`),d=Ya.get(a);return{locale:n,language:a,region:s,primary:l,secondary:d}}exists(o,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[o]||a&&a[o]||t.includeFallback&&Nn&&Nn[o])}term(o,...t){let{primary:r,secondary:n}=this.getTranslationData(this.lang()),a;if(r&&r[o])a=r[o];else if(n&&n[o])a=n[o];else if(Nn&&Nn[o])a=Nn[o];else return console.error(`No translation found for: ${String(o)}`),String(o);return typeof a=="function"?a(...t):a}date(o,t){return o=new Date(o),new Intl.DateTimeFormat(this.lang(),t).format(o)}number(o,t){return o=Number(o),isNaN(o)?"":new Intl.NumberFormat(this.lang(),t).format(o)}relativeTime(o,t,r){return new Intl.RelativeTimeFormat(this.lang(),r).format(o,t)}};var sv={$code:"en",$name:"English",$dir:"ltr",onChange:"onChange",showPassword:"Show password",hidePassword:"Hide password",clearEntry:"Clear entry",numOptionsSelected:i=>i===0?"No options selected":i===1?"1 option selected":`${i} 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:i=>i===0?"No files selected":i===1?"1 file selected":`${i} files selected`};vl(sv);var lv=sv;var tr=class extends md{};vl(lv);var D3=["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 N3(i){let o=parseFloat(i.lineHeight);if(!Number.isNaN(o))return o;let t=parseFloat(i.fontSize);return Number.isNaN(t)?16:t*1.2}function eu(i,o){let t=i.ownerDocument,r=getComputedStyle(i),n=i.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"),D3.forEach(f=>{let b=l[f];typeof b=="string"&&(s[f]=b)}),n&&(s.height="auto");let d=i.value.slice(0,o);a.textContent=n?d.replace(/\s/g,"\xA0"):d;let h=t.createElement("span");h.textContent=i.value.slice(o)||".",a.appendChild(h),t.body.appendChild(a);let m={top:h.offsetTop+(parseFloat(r.borderTopWidth)||0),left:h.offsetLeft+(parseFloat(r.borderLeftWidth)||0),height:N3(r)};return a.remove(),m}function ru(i,{top:o,left:t,height:r}){let n=i.getBoundingClientRect(),a=Math.max(n.top,n.bottom-r),s=Math.min(Math.max(n.top+o-i.scrollTop,n.top),a),l=Math.min(Math.max(n.left+t-i.scrollLeft,n.left),n.right);return new DOMRect(l,s,1,r)}function OH(i,o){return ru(i,eu(i,o))}var cv=E`@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}:host *,:host *::before,:host *::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{--slash-menu-width:320px;--slash-menu-max-height:260px;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));overflow-y:auto;overscroll-behavior:none;z-index:var(--zn-z-index-dropdown);padding:var(--zn-spacing-2x-small,4px) 0;background:var(--zn-panel-background-color);border:solid var(--zn-panel-border-width,1px) var(--zn-panel-border-color);border-radius:var(--zn-border-radius,6px);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__heading,.slash-menu__group-heading,.slash-menu__footer,.slash-menu__empty{padding:var(--zn-spacing-2x-small,4px) var(--zn-spacing-small,12px);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{font-weight:var(--zn-font-weight-semibold);text-transform:uppercase;letter-spacing:0.04em}.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__item{display:flex;align-items:center;gap:var(--zn-spacing-x-small,8px);width:100%;padding:var(--zn-spacing-x-small,8px) var(--zn-spacing-small,12px);border:none;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.slash-menu__item--active,.slash-menu__item:hover:not(.slash-menu__item--disabled){background:var(--zn-input-background-color-hover)}.slash-menu__item--disabled{opacity:0.5;cursor:not-allowed}.slash-menu__icon{display:flex;align-items:center;justify-content:center;flex:0 0 16px;color:var(--zn-color-neutral-500)}.slash-menu__text{display:flex;flex-direction:column;min-width:0;flex:1 1 auto}.slash-menu__label{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 Xa="zn-slash-item-select";function R3(i,o){return!!i&&i.length===o.length&&i.every((t,r)=>t.label===o[r].label&&t.value===o[r].value&&t.disabled===o[r].disabled)}var Me=class extends C{constructor(){super(...arguments);this.open=!1;this.items=[];this.query="";this.heading="Insert";this.emptyText="No matches";this.maxItems=25;this.hideKeys=!1;this.anchor=null;this.placement="bottom-start";this.distance=4;this.activeIndex=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 visibleItems(){return this.maxItems>0?this.items.slice(0,this.maxItems):this.items}get activeItem(){return this.visibleItems[this.activeIndex]}show(){this.open=!0}hide(){this.open=!1}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=ad(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 dd(t,r,{placement:this.placement,strategy:"fixed",middleware:[sd(this.distance),cd({padding:8}),ld({padding:8}),hl({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.dispatchEvent(new CustomEvent(Xa,{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.panel;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("items")&&!R3(t.get("items"),this.items)&&(this.activeIndex=this.visibleItems.findIndex(r=>!r.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(`
|
|
381
381
|
`)?t.value:"";return u`
|
|
382
382
|
<button
|
|
383
383
|
type="button"
|
|
@@ -418,8 +418,8 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
418
418
|
<div class="slash-menu__empty">${this.emptyText}</div>`}
|
|
419
419
|
${t>0?u`
|
|
420
420
|
<div part="footer" class="slash-menu__footer">${t} more — keep typing to narrow</div>`:""}
|
|
421
|
-
</div>`}};
|
|
422
|
-
<slot></slot>`}};lr.styles=T(dv),c([p()],lr.prototype,"label",2),c([p()],lr.prototype,"value",2),c([p()],lr.prototype,"icon",2),c([p()],lr.prototype,"description",2),c([p()],lr.prototype,"keywords",2),c([p()],lr.prototype,"group",2),c([p({type:Number})],lr.prototype,"order",2),c([p({attribute:"caret-offset",type:Number})],lr.prototype,"caretOffset",2),c([p()],lr.prototype,"action",2),c([p({type:Boolean,reflect:!0})],lr.prototype,"disabled",2);var xl=lr;lr.define("zn-slash-item");var ca=Re;Re.define("zn-slash-menu");var pv=E`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;box-shadow:var(--zn-shadow-x-small);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 rt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Q(this,"help-text","label","label-tooltip");this.localize=new tr(this);this.slashController=new hi(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.triggerSubmit=!1}get valueAsDate(){return this.__dateInput.type=this.type,this.__dateInput.value=this.value,this.input?.valueAsDate||this.__dateInput.valueAsDate}set valueAsDate(t){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=t,this.value=this.__dateInput.value}get valueAsNumber(){return this.__numberInput.value=this.value,this.input?.valueAsNumber||this.__numberInput.valueAsNumber}set valueAsNumber(t){this.__numberInput.valueAsNumber=t,this.value=this.__numberInput.value}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}validateMinMax(){this.type!=="number"&&this.type!=="date"||(typeof this.min<"u"&&parseInt(this.value)<parseInt(this.min)&&(this.value=this.min.toString()),typeof this.max<"u"&&parseInt(this.value)>parseInt(this.max)&&(this.value=this.max.toString()))}hexToRgb(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16);return`rgb(${n}, ${a}, ${s})`}rgbToHex(t){let r=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(!r)return"";let n=parseInt(r[1]).toString(16).padStart(2,"0"),a=parseInt(r[2]).toString(16).padStart(2,"0"),s=parseInt(r[3]).toString(16).padStart(2,"0");return`#${n}${a}${s}`}hexToOklch(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;let l=n*.4124564+a*.3575761+s*.1804375,d=n*.2126729+a*.7151522+s*.072175,h=n*.0193339+a*.119192+s*.9503041,m=l/.95047,f=d/1,b=h/1.08883,g=m>.008856?Math.pow(m,1/3):7.787*m+16/116,v=f>.008856?Math.pow(f,1/3):7.787*f+16/116,x=b>.008856?Math.pow(b,1/3):7.787*b+16/116,_=116*v-16,k=500*(g-v),N=200*(v-x),G=Math.sqrt(k*k+N*N),I=Math.atan2(N,k)*180/Math.PI;I<0&&(I+=360);let w=(_/100).toFixed(3),$=(G/150).toFixed(3),L=I.toFixed(1);return`oklch(${w} ${$} ${L})`}oklchToHex(t){let r=t.match(/^oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)$/);if(!r)return"";let n=parseFloat(r[1])*100,a=parseFloat(r[2])*150,s=parseFloat(r[3]),l=a*Math.cos(s*Math.PI/180),d=a*Math.sin(s*Math.PI/180),h=(n+16)/116,m=l/500+h,f=h-d/200,b=m>.206897?Math.pow(m,3):(m-16/116)/7.787,g=h>.206897?Math.pow(h,3):(h-16/116)/7.787,v=f>.206897?Math.pow(f,3):(f-16/116)/7.787,x=b*.95047,_=g*1,k=v*1.08883,N=x*3.2404542+_*-1.5371385+k*-.4985314,G=x*-.969266+_*1.8760108+k*.041556,I=x*.0556434+_*-.2040259+k*1.0572252;N=N>.0031308?1.055*Math.pow(N,1/2.4)-.055:12.92*N,G=G>.0031308?1.055*Math.pow(G,1/2.4)-.055:12.92*G,I=I>.0031308?1.055*Math.pow(I,1/2.4)-.055:12.92*I,N=Math.max(0,Math.min(1,N)),G=Math.max(0,Math.min(1,G)),I=Math.max(0,Math.min(1,I));let w=Math.round(N*255).toString(16).padStart(2,"0"),$=Math.round(G*255).toString(16).padStart(2,"0"),L=Math.round(I*255).toString(16).padStart(2,"0");return`#${w}${$}${L}`}hexToHsl(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255,l=Math.max(n,a,s),d=Math.min(n,a,s),h=(l+d)/2,m=0,f=0;if(l!==d){let b=l-d;switch(f=h>.5?b/(2-l-d):b/(l+d),l){case n:m=((a-s)/b+(a<s?6:0))/6;break;case a:m=((s-n)/b+2)/6;break;case s:m=((n-a)/b+4)/6;break}}return`hsl(${Math.round(m*360)}, ${Math.round(f*100)}%, ${Math.round(h*100)}%)`}hslToHex(t){let r=t.match(/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)$/);if(!r)return"";let n=parseInt(r[1])/360,a=parseInt(r[2])/100,s=parseInt(r[3])/100,l,d,h;if(a===0)l=d=h=s;else{let g=(_,k,N)=>(N<0&&(N+=1),N>1&&(N-=1),N<.16666666666666666?_+(k-_)*6*N:N<.5?k:N<.6666666666666666?_+(k-_)*(.6666666666666666-N)*6:_),v=s<.5?s*(1+a):s+a-s*a,x=2*s-v;l=g(x,v,n+1/3),d=g(x,v,n),h=g(x,v,n-1/3)}let m=Math.round(l*255).toString(16).padStart(2,"0"),f=Math.round(d*255).toString(16).padStart(2,"0"),b=Math.round(h*255).toString(16).padStart(2,"0");return`#${m}${f}${b}`}convertToHex(t){return t?t.startsWith("#")?t:t.startsWith("rgb")?this.rgbToHex(t):t.startsWith("hsl")?this.hslToHex(t):t.startsWith("oklch")?this.oklchToHex(t):t:"#000000"}convertFromHex(t){return t?this.colorFormat==="hex"?t:this.colorFormat==="rgb"?this.hexToRgb(t):this.colorFormat==="hsl"?this.hexToHsl(t):this.colorFormat==="oklch"?this.hexToOklch(t):t:""}handleBlur(){if(this.hasFocus=!1,this.isUserTyping=!1,this.validateMinMax(),this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);r!==this.value&&(this.value=r)}}this.emit("zn-blur")}handleChange(){if(this.type==="currency"&&this.input.value)this.value=parseFloat(this.input.value).toFixed(2);else if(this.type==="color"){let t=this.input.value.trim();if(t==="")this.value="";else if(this.colorFormat==="hex"){let r=t;r&&!r.startsWith("#")&&(r="#"+r),/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(r)&&(this.value=r.toLowerCase())}else this.colorFormat==="rgb"?/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="hsl"?/^hsl\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="oklch"&&/^oklch\(\s*[0-9.]+\s+[0-9.]+\s+[0-9.]+\s*\)$/.test(t)&&(this.value=t)}else this.value=this.input.value;this.emit("zn-change")}handleClearClick(t){this.value="",this.emit("zn-clear"),this.emit("zn-input"),this.emit("zn-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleInput(){this.isUserTyping=!0,this.type==="color"?this.value=this.input.value:this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){if(this.slashController.open)return;if(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let r=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;if(t.key==="Enter"&&!r&&!t.defaultPrevented&&!t.isComposing){let n=this.formControlController.getForm();if(!this.triggerSubmit&&(n?.hasAttribute("enter-navigation")||n?.hasAttribute("data-enter-navigation")))return;this.formControlController.submit()}}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleColorSwatchClick(){this.type==="color"&&this.colorPicker&&this.colorPicker.click()}handleColorPickerChange(){if(this.type==="color"&&this.colorPicker){let t=this.colorPicker.value;this.value=this.convertFromHex(t),this.emit("zn-change"),this.emit("zn-input")}}focusInput(t){if(this.hasFocus)return;let r=t.target;r.tagName==="ZN-CHECKBOX"&&(r.slot==="prefix"||r.closest('[slot="prefix"]'))||(r.classList.contains("input__prefix")||r.slot==="prefix"||r.hasAttribute("part")&&r.getAttribute("part")==="base")&&(this.handleFocus(),this.input.focus())}firstUpdated(){this.type==="range"&&this.value===""&&(this.value=this.input.value),this.slashController.attach(this.input)}async resolveSlashItems(t=""){let r=[...hd(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,d=this.labelTooltip?!0:r,h=this.contextNote||s?!0:n,m=this.helpText?!0:a,f=this.clearable&&!this.disabled&&!this.readonly,b=this.optionalIcon,g=f&&(typeof this.value=="number"||this.value.length>0);return u`
|
|
421
|
+
</div>`}};Me.styles=T(cv),Me.dependencies={"zn-icon":ct},c([F(".slash-menu__panel")],Me.prototype,"panel",2),c([p({type:Boolean,reflect:!0})],Me.prototype,"open",2),c([p({type:Array})],Me.prototype,"items",2),c([p()],Me.prototype,"query",2),c([p()],Me.prototype,"heading",2),c([p({attribute:"empty-text"})],Me.prototype,"emptyText",2),c([p({attribute:"max-items",type:Number})],Me.prototype,"maxItems",2),c([p({attribute:"hide-keys",type:Boolean})],Me.prototype,"hideKeys",2),c([p({attribute:!1})],Me.prototype,"anchor",2),c([p()],Me.prototype,"placement",2),c([p({type:Number})],Me.prototype,"distance",2),c([O()],Me.prototype,"activeIndex",2);var O3=40,hi=class{constructor(o,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=o=>{this.isOpen&&(o.key==="ArrowDown"||o.key==="ArrowUp")||(o.key.startsWith("Arrow")||o.key==="Home"||o.key==="End")&&this.detect()};this.handleBlur=()=>this.close();this.handleScroll=()=>{this.isOpen&&this.menu?.reposition()};this.handleKeyDown=o=>{if(!this.isOpen||o.isComposing)return;let t=()=>{o.preventDefault(),o.stopPropagation()};switch(o.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(o.shiftKey||o.metaKey||o.ctrlKey||o.altKey)return;let r=this.menu?.activeItem;if(!r){this.close();return}t(),this.select(r)}}};this.handleItemSelect=o=>{let{item:t}=o.detail;t&&this.select(t)};this.host=o,this.options=t,o.addController(this)}get open(){return this.isOpen}hostConnected(){this.addListeners()}hostDisconnected(){this.removeListeners()}attach(o){this.field===o&&this.listening||(this.removeListeners(),this.field=o,this.caretAnchor.contextElement=o,this.addListeners())}detach(){this.removeListeners(),this.field=null}addListeners(){let o=this.field;!o||this.listening||(o.addEventListener("keydown",this.handleKeyDown,{capture:!0}),o.addEventListener("input",this.handleInput),o.addEventListener("keyup",this.handleKeyUp),o.addEventListener("click",this.handleCaretMove),o.addEventListener("blur",this.handleBlur),o.addEventListener("scroll",this.handleScroll),this.listening=!0)}removeListeners(){let o=this.field;!o||!this.listening||(this.close(),o.removeEventListener("keydown",this.handleKeyDown,{capture:!0}),o.removeEventListener("input",this.handleInput),o.removeEventListener("keyup",this.handleKeyUp),o.removeEventListener("click",this.handleCaretMove),o.removeEventListener("blur",this.handleBlur),o.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 o=this.field;if(!o)return new DOMRect;let t=this.triggerIndex>=0?this.triggerIndex:o.selectionStart??0,r=o.clientWidth,n=this.measured;return(!n||n.index!==t||n.width!==r||n.value!==o.value)&&(this.measured={value:o.value,index:t,width:r,coordinates:eu(o,t)}),ru(o,this.measured.coordinates)}detect(){if(this.inserting)return;let o=this.field;if(!o||o.disabled||o.readOnly){this.close();return}let t=this.options.trigger?.()||"/",r=o.selectionStart;if(!t||r===null||o.selectionEnd!==r){this.close();return}let n=o.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>O3||/[\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(o){let t=++this.resolveToken,r=[];try{r=await this.options.items(o)}catch(s){console.warn("slash menu items could not be resolved",s)}if(t!==this.resolveToken)return;let n=ud(r,o);if(!n.length){this.close();return}let a=await this.options.menu();!a||t!==this.resolveToken||(a!==this.menu&&(this.menu?.removeEventListener(Xa,this.handleItemSelect),a.addEventListener(Xa,this.handleItemSelect),this.menu=a),a.anchor=this.caretAnchor,a.query=o,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(o){let t=this.field,r=this.triggerIndex,n=t?.selectionStart??r,a=this.query,s=this.options.trigger?.()||"/";if(o.disabled||(this.close(),!t||r<0))return;let l=this.options.onSelect?.(o,a)===!1,d=l?"":o.value??"";t.value.slice(r,n)===s+a&&(this.replace(t,r,n,d,o),!l&&d&&this.options.onInsert?.(o,d))}replace(o,t,r,n,a){this.inserting=!0;try{o.focus({preventScroll:!0}),o.setSelectionRange(t,r);let s=!1;try{s=o.ownerDocument.execCommand("insertText",!1,n)}catch{s=!1}s||(o.setRangeText(n,t,r,"end"),o.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})));let l=Math.min(Math.max(a.caretOffset??n.length,0),n.length);o.setSelectionRange(t+l,t+l)}finally{this.inserting=!1}this.host.requestUpdate()}};var dv=E`@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}:host *,:host *::before,:host *::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 lr=class extends C{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`
|
|
422
|
+
<slot></slot>`}};lr.styles=T(dv),c([p()],lr.prototype,"label",2),c([p()],lr.prototype,"value",2),c([p()],lr.prototype,"icon",2),c([p()],lr.prototype,"description",2),c([p()],lr.prototype,"keywords",2),c([p()],lr.prototype,"group",2),c([p({type:Number})],lr.prototype,"order",2),c([p({attribute:"caret-offset",type:Number})],lr.prototype,"caretOffset",2),c([p()],lr.prototype,"action",2),c([p({type:Boolean,reflect:!0})],lr.prototype,"disabled",2);var xl=lr;lr.define("zn-slash-item");var ca=Me;Me.define("zn-slash-menu");var pv=E`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{display:block}.input{flex:1 1 auto;display:inline-flex;align-items:stretch;justify-content:start;position:relative;width:100%;box-shadow:var(--zn-shadow-x-small);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 rt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Q(this,"help-text","label","label-tooltip");this.localize=new tr(this);this.slashController=new hi(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.triggerSubmit=!1}get valueAsDate(){return this.__dateInput.type=this.type,this.__dateInput.value=this.value,this.input?.valueAsDate||this.__dateInput.valueAsDate}set valueAsDate(t){this.__dateInput.type=this.type,this.__dateInput.valueAsDate=t,this.value=this.__dateInput.value}get valueAsNumber(){return this.__numberInput.value=this.value,this.input?.valueAsNumber||this.__numberInput.valueAsNumber}set valueAsNumber(t){this.__numberInput.valueAsNumber=t,this.value=this.__numberInput.value}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}validateMinMax(){this.type!=="number"&&this.type!=="date"||(typeof this.min<"u"&&parseInt(this.value)<parseInt(this.min)&&(this.value=this.min.toString()),typeof this.max<"u"&&parseInt(this.value)>parseInt(this.max)&&(this.value=this.max.toString()))}hexToRgb(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16);return`rgb(${n}, ${a}, ${s})`}rgbToHex(t){let r=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(!r)return"";let n=parseInt(r[1]).toString(16).padStart(2,"0"),a=parseInt(r[2]).toString(16).padStart(2,"0"),s=parseInt(r[3]).toString(16).padStart(2,"0");return`#${n}${a}${s}`}hexToOklch(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,a=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92;let l=n*.4124564+a*.3575761+s*.1804375,d=n*.2126729+a*.7151522+s*.072175,h=n*.0193339+a*.119192+s*.9503041,m=l/.95047,f=d/1,b=h/1.08883,g=m>.008856?Math.pow(m,1/3):7.787*m+16/116,v=f>.008856?Math.pow(f,1/3):7.787*f+16/116,x=b>.008856?Math.pow(b,1/3):7.787*b+16/116,_=116*v-16,k=500*(g-v),N=200*(v-x),G=Math.sqrt(k*k+N*N),I=Math.atan2(N,k)*180/Math.PI;I<0&&(I+=360);let w=(_/100).toFixed(3),$=(G/150).toFixed(3),L=I.toFixed(1);return`oklch(${w} ${$} ${L})`}oklchToHex(t){let r=t.match(/^oklch\(([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)$/);if(!r)return"";let n=parseFloat(r[1])*100,a=parseFloat(r[2])*150,s=parseFloat(r[3]),l=a*Math.cos(s*Math.PI/180),d=a*Math.sin(s*Math.PI/180),h=(n+16)/116,m=l/500+h,f=h-d/200,b=m>.206897?Math.pow(m,3):(m-16/116)/7.787,g=h>.206897?Math.pow(h,3):(h-16/116)/7.787,v=f>.206897?Math.pow(f,3):(f-16/116)/7.787,x=b*.95047,_=g*1,k=v*1.08883,N=x*3.2404542+_*-1.5371385+k*-.4985314,G=x*-.969266+_*1.8760108+k*.041556,I=x*.0556434+_*-.2040259+k*1.0572252;N=N>.0031308?1.055*Math.pow(N,1/2.4)-.055:12.92*N,G=G>.0031308?1.055*Math.pow(G,1/2.4)-.055:12.92*G,I=I>.0031308?1.055*Math.pow(I,1/2.4)-.055:12.92*I,N=Math.max(0,Math.min(1,N)),G=Math.max(0,Math.min(1,G)),I=Math.max(0,Math.min(1,I));let w=Math.round(N*255).toString(16).padStart(2,"0"),$=Math.round(G*255).toString(16).padStart(2,"0"),L=Math.round(I*255).toString(16).padStart(2,"0");return`#${w}${$}${L}`}hexToHsl(t){let r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!r)return"";let n=parseInt(r[1],16)/255,a=parseInt(r[2],16)/255,s=parseInt(r[3],16)/255,l=Math.max(n,a,s),d=Math.min(n,a,s),h=(l+d)/2,m=0,f=0;if(l!==d){let b=l-d;switch(f=h>.5?b/(2-l-d):b/(l+d),l){case n:m=((a-s)/b+(a<s?6:0))/6;break;case a:m=((s-n)/b+2)/6;break;case s:m=((n-a)/b+4)/6;break}}return`hsl(${Math.round(m*360)}, ${Math.round(f*100)}%, ${Math.round(h*100)}%)`}hslToHex(t){let r=t.match(/^hsl\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*\)$/);if(!r)return"";let n=parseInt(r[1])/360,a=parseInt(r[2])/100,s=parseInt(r[3])/100,l,d,h;if(a===0)l=d=h=s;else{let g=(_,k,N)=>(N<0&&(N+=1),N>1&&(N-=1),N<.16666666666666666?_+(k-_)*6*N:N<.5?k:N<.6666666666666666?_+(k-_)*(.6666666666666666-N)*6:_),v=s<.5?s*(1+a):s+a-s*a,x=2*s-v;l=g(x,v,n+1/3),d=g(x,v,n),h=g(x,v,n-1/3)}let m=Math.round(l*255).toString(16).padStart(2,"0"),f=Math.round(d*255).toString(16).padStart(2,"0"),b=Math.round(h*255).toString(16).padStart(2,"0");return`#${m}${f}${b}`}convertToHex(t){return t?t.startsWith("#")?t:t.startsWith("rgb")?this.rgbToHex(t):t.startsWith("hsl")?this.hslToHex(t):t.startsWith("oklch")?this.oklchToHex(t):t:"#000000"}convertFromHex(t){return t?this.colorFormat==="hex"?t:this.colorFormat==="rgb"?this.hexToRgb(t):this.colorFormat==="hsl"?this.hexToHsl(t):this.colorFormat==="oklch"?this.hexToOklch(t):t:""}handleBlur(){if(this.hasFocus=!1,this.isUserTyping=!1,this.validateMinMax(),this.type==="color"&&this.value){let t=this.convertToHex(this.value);if(t){let r=this.convertFromHex(t);r!==this.value&&(this.value=r)}}this.emit("zn-blur")}handleChange(){if(this.type==="currency"&&this.input.value)this.value=parseFloat(this.input.value).toFixed(2);else if(this.type==="color"){let t=this.input.value.trim();if(t==="")this.value="";else if(this.colorFormat==="hex"){let r=t;r&&!r.startsWith("#")&&(r="#"+r),/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(r)&&(this.value=r.toLowerCase())}else this.colorFormat==="rgb"?/^rgb\(\s*\d+\s*,\s*\d+\s*,\s*\d+\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="hsl"?/^hsl\(\s*\d+\s*,\s*\d+%\s*,\s*\d+%\s*\)$/.test(t)&&(this.value=t):this.colorFormat==="oklch"&&/^oklch\(\s*[0-9.]+\s+[0-9.]+\s+[0-9.]+\s*\)$/.test(t)&&(this.value=t)}else this.value=this.input.value;this.emit("zn-change")}handleClearClick(t){this.value="",this.emit("zn-clear"),this.emit("zn-input"),this.emit("zn-change"),this.input.focus(),t.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleInput(){this.isUserTyping=!0,this.type==="color"?this.value=this.input.value:this.value=this.input.value,this.formControlController.updateValidity(),this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){if(this.slashController.open)return;if(t.key==="Escape"){this.input.blur(),t.stopPropagation();return}let r=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;if(t.key==="Enter"&&!r&&!t.defaultPrevented&&!t.isComposing){let n=this.formControlController.getForm();if(!this.triggerSubmit&&(n?.hasAttribute("enter-navigation")||n?.hasAttribute("data-enter-navigation")))return;this.formControlController.submit()}}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleColorSwatchClick(){this.type==="color"&&this.colorPicker&&this.colorPicker.click()}handleColorPickerChange(){if(this.type==="color"&&this.colorPicker){let t=this.colorPicker.value;this.value=this.convertFromHex(t),this.emit("zn-change"),this.emit("zn-input")}}focusInput(t){if(this.hasFocus)return;let r=t.target;r.tagName==="ZN-CHECKBOX"&&(r.slot==="prefix"||r.closest('[slot="prefix"]'))||(r.classList.contains("input__prefix")||r.slot==="prefix"||r.hasAttribute("part")&&r.getAttribute("part")==="base")&&(this.handleFocus(),this.input.focus())}firstUpdated(){this.type==="range"&&this.value===""&&(this.value=this.input.value),this.slashController.attach(this.input)}async resolveSlashItems(t=""){let r=[...hd(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,d=this.labelTooltip?!0:r,h=this.contextNote||s?!0:n,m=this.helpText?!0:a,f=this.clearable&&!this.disabled&&!this.readonly,b=this.optionalIcon,g=f&&(typeof this.value=="number"||this.value.length>0);return u`
|
|
423
423
|
<div part="form-control"
|
|
424
424
|
class="${D({"form-control":!0,"form-control--x-small":this.size==="x-small","form-control--small":this.size==="small","form-control--medium":this.size==="medium","form-control--large":this.size==="large","form-control--has-label":l,"form-control--has-label-tooltip":d,"form-control--has-context-note":h,"form-control--has-help-text":m})}">
|
|
425
425
|
|
|
@@ -541,7 +541,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
541
541
|
</span>
|
|
542
542
|
</div>
|
|
543
543
|
${this.hasSlashMenu?u`
|
|
544
|
-
<zn-slash-menu part="slash-menu" heading=${this.slashHeading}></zn-slash-menu>`:""}
|
|
544
|
+
<zn-slash-menu part="slash-menu" heading=${this.slashHeading} ?hide-keys=${this.slashHideKeys}></zn-slash-menu>`:""}
|
|
545
545
|
<slot name="slash-menu"></slot>
|
|
546
546
|
<slot name="slash-items" hidden></slot>
|
|
547
547
|
</div>
|
|
@@ -554,7 +554,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
554
554
|
<slot name="help-text">${this.helpText}</slot>
|
|
555
555
|
</div>
|
|
556
556
|
|
|
557
|
-
</div>`}};rt.styles=T(pv),rt.dependencies={"zn-icon":ct,"zn-slash-item":xl,"zn-slash-menu":ca,"zn-tooltip":Oo},c([F(".input__control")],rt.prototype,"input",2),c([F(".input__color-picker")],rt.prototype,"colorPicker",2),c([F("zn-slash-menu")],rt.prototype,"slashMenuElement",2),c([O()],rt.prototype,"hasFocus",2),c([O()],rt.prototype,"hasSlashMenu",2),c([O()],rt.prototype,"isUserTyping",2),c([p()],rt.prototype,"title",2),c([p({reflect:!0})],rt.prototype,"type",2),c([p()],rt.prototype,"name",2),c([p()],rt.prototype,"value",2),c([re()],rt.prototype,"defaultValue",2),c([p({reflect:!0})],rt.prototype,"size",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"pill",2),c([p()],rt.prototype,"label",2),c([p({attribute:"label-tooltip"})],rt.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],rt.prototype,"contextNote",2),c([p({attribute:"help-text"})],rt.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"clearable",2),c([p({attribute:"optional-icon",type:Boolean})],rt.prototype,"optionalIcon",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"filled",2),c([p()],rt.prototype,"placeholder",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"readonly",2),c([p({attribute:"password-toggle",type:Boolean})],rt.prototype,"passwordToggle",2),c([p({attribute:"password-visible",type:Boolean})],rt.prototype,"passwordVisible",2),c([p({attribute:"no-spin-buttons",type:Boolean})],rt.prototype,"noSpinButtons",2),c([p({attribute:"color-format"})],rt.prototype,"colorFormat",2),c([p({attribute:"value-suffix"})],rt.prototype,"valueSuffix",2),c([p({reflect:!0})],rt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"required",2),c([p()],rt.prototype,"pattern",2),c([p({type:Number})],rt.prototype,"minlength",2),c([p({type:Number})],rt.prototype,"maxlength",2),c([p()],rt.prototype,"min",2),c([p()],rt.prototype,"max",2),c([p()],rt.prototype,"step",2),c([p()],rt.prototype,"autocapitalize",2),c([p()],rt.prototype,"autocorrect",2),c([p()],rt.prototype,"autocomplete",2),c([p({type:Boolean})],rt.prototype,"autofocus",2),c([p()],rt.prototype,"enterkeyhint",2),c([p({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],rt.prototype,"spellcheck",2),c([p()],rt.prototype,"inputmode",2),c([p({attribute:"slash-items",converter:{fromAttribute:t=>pi(t),toAttribute:t=>JSON.stringify(t)}})],rt.prototype,"slashItems",2),c([p({attribute:"slash-preset"})],rt.prototype,"slashPreset",2),c([p({attribute:"slash-trigger"})],rt.prototype,"slashTrigger",2),c([p({attribute:"slash-heading"})],rt.prototype,"slashHeading",2),c([p({attribute:!1})],rt.prototype,"slashItemsProvider",2),c([p({type:Boolean,attribute:"trigger-submit"})],rt.prototype,"triggerSubmit",2),c([K("disabled",{waitUntilFirstUpdate:!0})],rt.prototype,"handleDisabledChange",1),c([K("step",{waitUntilFirstUpdate:!0})],rt.prototype,"handleStepChange",1),c([K("value",{waitUntilFirstUpdate:!0})],rt.prototype,"handleValueChange",1),c([K("colorFormat",{waitUntilFirstUpdate:!0})],rt.prototype,"handleColorFormatChange",1);var Ce=rt;rt.define("zn-input");var hv=E`@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}:host *,:host *::before,:host *::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-help-text){font-size:var(--zn-input-help-text-font-size-small);padding-left:var(--zn-spacing-2x-small)}`;var Br=class extends C{constructor(){super(...arguments);this._formController=new nt(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 ge}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,d=l.value||s.getAttribute("value"),h=l.name||s.getAttribute("name");h&&(t[h]=d)}}),t}disconnectedCallback(){super.disconnectedCallback(),this._searchTimeout&&window.clearTimeout(this._searchTimeout)}emitSearchChange(){let t=this.getFormData();this.emit("zn-search-change",{detail:{value:this.value,formData:t,searchUri:this.searchUri}})}render(){return u`
|
|
557
|
+
</div>`}};rt.styles=T(pv),rt.dependencies={"zn-icon":ct,"zn-slash-item":xl,"zn-slash-menu":ca,"zn-tooltip":Oo},c([F(".input__control")],rt.prototype,"input",2),c([F(".input__color-picker")],rt.prototype,"colorPicker",2),c([F("zn-slash-menu")],rt.prototype,"slashMenuElement",2),c([O()],rt.prototype,"hasFocus",2),c([O()],rt.prototype,"hasSlashMenu",2),c([O()],rt.prototype,"isUserTyping",2),c([p()],rt.prototype,"title",2),c([p({reflect:!0})],rt.prototype,"type",2),c([p()],rt.prototype,"name",2),c([p()],rt.prototype,"value",2),c([re()],rt.prototype,"defaultValue",2),c([p({reflect:!0})],rt.prototype,"size",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"pill",2),c([p()],rt.prototype,"label",2),c([p({attribute:"label-tooltip"})],rt.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],rt.prototype,"contextNote",2),c([p({attribute:"help-text"})],rt.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"clearable",2),c([p({attribute:"optional-icon",type:Boolean})],rt.prototype,"optionalIcon",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"filled",2),c([p()],rt.prototype,"placeholder",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"readonly",2),c([p({attribute:"password-toggle",type:Boolean})],rt.prototype,"passwordToggle",2),c([p({attribute:"password-visible",type:Boolean})],rt.prototype,"passwordVisible",2),c([p({attribute:"no-spin-buttons",type:Boolean})],rt.prototype,"noSpinButtons",2),c([p({attribute:"color-format"})],rt.prototype,"colorFormat",2),c([p({attribute:"value-suffix"})],rt.prototype,"valueSuffix",2),c([p({reflect:!0})],rt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],rt.prototype,"required",2),c([p()],rt.prototype,"pattern",2),c([p({type:Number})],rt.prototype,"minlength",2),c([p({type:Number})],rt.prototype,"maxlength",2),c([p()],rt.prototype,"min",2),c([p()],rt.prototype,"max",2),c([p()],rt.prototype,"step",2),c([p()],rt.prototype,"autocapitalize",2),c([p()],rt.prototype,"autocorrect",2),c([p()],rt.prototype,"autocomplete",2),c([p({type:Boolean})],rt.prototype,"autofocus",2),c([p()],rt.prototype,"enterkeyhint",2),c([p({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],rt.prototype,"spellcheck",2),c([p()],rt.prototype,"inputmode",2),c([p({attribute:"slash-items",converter:{fromAttribute:t=>pi(t),toAttribute:t=>JSON.stringify(t)}})],rt.prototype,"slashItems",2),c([p({attribute:"slash-preset"})],rt.prototype,"slashPreset",2),c([p({attribute:"slash-trigger"})],rt.prototype,"slashTrigger",2),c([p({attribute:"slash-heading"})],rt.prototype,"slashHeading",2),c([p({attribute:"slash-hide-keys",type:Boolean})],rt.prototype,"slashHideKeys",2),c([p({attribute:!1})],rt.prototype,"slashItemsProvider",2),c([p({type:Boolean,attribute:"trigger-submit"})],rt.prototype,"triggerSubmit",2),c([K("disabled",{waitUntilFirstUpdate:!0})],rt.prototype,"handleDisabledChange",1),c([K("step",{waitUntilFirstUpdate:!0})],rt.prototype,"handleStepChange",1),c([K("value",{waitUntilFirstUpdate:!0})],rt.prototype,"handleValueChange",1),c([K("colorFormat",{waitUntilFirstUpdate:!0})],rt.prototype,"handleColorFormatChange",1);var Ce=rt;rt.define("zn-input");var hv=E`@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}:host *,:host *::before,:host *::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-help-text){font-size:var(--zn-input-help-text-font-size-small);padding-left:var(--zn-spacing-2x-small)}`;var Br=class extends C{constructor(){super(...arguments);this._formController=new nt(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 ge}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,d=l.value||s.getAttribute("value"),h=l.name||s.getAttribute("name");h&&(t[h]=d)}}),t}disconnectedCallback(){super.disconnectedCallback(),this._searchTimeout&&window.clearTimeout(this._searchTimeout)}emitSearchChange(){let t=this.getFormData();this.emit("zn-search-change",{detail:{value:this.value,formData:t,searchUri:this.searchUri}})}render(){return u`
|
|
558
558
|
<div class="data-table-search">
|
|
559
559
|
<zn-input
|
|
560
560
|
type="search"
|
|
@@ -1062,7 +1062,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
1062
1062
|
aria-hidden="true"
|
|
1063
1063
|
></zn-icon>
|
|
1064
1064
|
</div>
|
|
1065
|
-
`}};gr.styles=T(_v),gr.dependencies={"zn-icon":ct},c([F(".option__label")],gr.prototype,"defaultSlot",2),c([O()],gr.prototype,"current",2),c([O()],gr.prototype,"hasHover",2),c([p({reflect:!0})],gr.prototype,"value",2),c([p({type:Boolean,reflect:!0})],gr.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],gr.prototype,"selected",2),c([K("disabled")],gr.prototype,"handleDisabledChange",1),c([K("selected")],gr.prototype,"handleSelectedChange",1);var Oe=gr;gr.define("zn-option");function pn(i,o,t){return new Promise(r=>{if(t?.duration===1/0)throw new Error("Promise-based animations must be finite.");let n=i.animate(o,{...t,duration:V3()?0:t.duration});n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})})}function V3(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function cu(i){return Promise.all(i.getAnimations().map(o=>new Promise(t=>{o.cancel(),requestAnimationFrame(t)})))}var Qa=class{constructor(o){this.conditionals=[];this.initiallyDisabled=!1;this.handleChange=()=>this.checkConditionals();(this.host=o).addController(this)}setup(){if(this.host.conditional==="")return;let o=this.host.conditional.split(",").map(t=>t.trim());o.forEach(t=>{let r=
|
|
1065
|
+
`}};gr.styles=T(_v),gr.dependencies={"zn-icon":ct},c([F(".option__label")],gr.prototype,"defaultSlot",2),c([O()],gr.prototype,"current",2),c([O()],gr.prototype,"hasHover",2),c([p({reflect:!0})],gr.prototype,"value",2),c([p({type:Boolean,reflect:!0})],gr.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],gr.prototype,"selected",2),c([K("disabled")],gr.prototype,"handleDisabledChange",1),c([K("selected")],gr.prototype,"handleSelectedChange",1);var Oe=gr;gr.define("zn-option");function pn(i,o,t){return new Promise(r=>{if(t?.duration===1/0)throw new Error("Promise-based animations must be finite.");let n=i.animate(o,{...t,duration:V3()?0:t.duration});n.addEventListener("cancel",r,{once:!0}),n.addEventListener("finish",r,{once:!0})})}function V3(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function cu(i){return Promise.all(i.getAnimations().map(o=>new Promise(t=>{o.cancel(),requestAnimationFrame(t)})))}var Qa=class{constructor(o){this.conditionals=[];this.initiallyDisabled=!1;this.handleChange=()=>this.checkConditionals();(this.host=o).addController(this)}setup(){if(this.host.conditional==="")return;let o=this.host.conditional.split(",").map(t=>t.trim());o.forEach(t=>{let r=Pt(`#${t}`,document.documentElement,""),n=Pt(`[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,o.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(o=>{o.removeEventListener("zn-change",this.handleChange)}),this.conditionals=[]}check(){this.checkConditionals()}checkConditionals(){let o=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||o}};var Cv=new Map,U3=new WeakMap;function j3(i){return i??{keyframes:[],options:{duration:0}}}function kv(i,o){return o.toLowerCase()==="rtl"?{keyframes:i.rtlKeyframes||i.keyframes,options:i.options}:i}function hn(i,o){Cv.set(i,j3(o))}function un(i,o,t){let r=U3.get(i);if(r?.[o])return kv(r[o],t.dir);let n=Cv.get(o);return n?kv(n,t.dir):{keyframes:[],options:{duration:0}}}var Sv=E`@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}:host *,:host *::before,:host *::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}.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-normal);color:var(--zn-color-neutral-500);text-transform:uppercase;padding-block:var(--zn-spacing-2x-small);padding-inline:var(--zn-spacing-large);-moz-user-select:none;user-select:none;-webkit-user-select:none}:host(:not(:first-of-type)) .opt-group__label{border-block-start:solid var(--zn-panel-border-width) var(--zn-panel-border-color);margin-block-start:var(--zn-spacing-x-small);padding-block-start:var(--zn-spacing-small)}.opt-group__options{display:block}:host([disabled]){opacity:0.5}`;var jo=class extends C{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`
|
|
1066
1066
|
<div part="base" class="opt-group">
|
|
1067
1067
|
<div part="label" class="opt-group__label" aria-hidden="true">
|
|
1068
1068
|
${this.label}
|
|
@@ -1513,7 +1513,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
1513
1513
|
:host {
|
|
1514
1514
|
--max-width: 100%;
|
|
1515
1515
|
}
|
|
1516
|
-
</style>${h}`:h}};Fe.styles=T(Hv),c([p({attribute:"full-location"})],Fe.prototype,"fullLocation",2),c([p({attribute:"entity-id"})],Fe.prototype,"entityId",2),c([p({attribute:"entity-id-show",type:Boolean})],Fe.prototype,"entityIdShow",2),c([p({type:Boolean})],Fe.prototype,"transparent",2),c([p()],Fe.prototype,"caption",2),c([p()],Fe.prototype,"icon",2),c([p({type:Array})],Fe.prototype,"navigation",2),c([p({attribute:"full-width",type:Boolean})],Fe.prototype,"fullWidth",2),c([p({attribute:"previous-path"})],Fe.prototype,"previousPath",2),c([p({attribute:"previous-target"})],Fe.prototype,"previousTarget",2),c([p({attribute:"hide-breadcrumb",type:Boolean})],Fe.prototype,"hideBreadcrumb",2),c([K("navigation",{waitUntilFirstUpdate:!0})],Fe.prototype,"updateNav",1);var gu=Fe;Fe.define("zn-header");var Fv=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host{display:block;--navbar-active-colour:var(--zn-active-nav-background,var(--zn-page-content-background,var(--zn-page-surface-background,var(--zn-body))))}:host ul.navbar{padding:0;margin-inline:var(--zn-spacing-small)}:host ul.navbar--color-body{background-color:rgb(var(--zn-color-body))}:host([gutter]) ul.navbar{margin:0 calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host([hover]){position:absolute;transform:translateY(-100%)}:host([hover]) ul.navbar{position:relative}:host([hover]) ul.navbar li{z-index:2}:host([hover]) ul.navbar::after{z-index:1;content:"";position:absolute;inset:0;border-radius:6px 6px 0 0;background-color:rgb(var(--zn-body))}:host([hover]) ul.navbar::before{z-index:1;content:"";position:absolute;top:-2px;right:-2px;left:-2px;bottom:0;border-radius:10px;backdrop-filter:blur(2px) opacity(0.8)}:host([icon-only]) ul.navbar li{padding:0;width:36px;min-width:36px;justify-content:center}:host([icon-only]) ul.navbar li:hover:not(.active):not(.zn-tb-active):not(.more)::after{display:none}.navbar__container{display:flex;flex-direction:row;position:relative;justify-content:space-between}.navbar{margin:0}:host:not([stacked]) .navbar{margin:0 0 0 calc(var(--zn-gutter,0) + var(--zn-base-gap,0));padding-left:0}:host:not([stacked]) .navbar--flush{padding:0}ul.navbar li{padding-top:0;font-size:var(--zn-text-tab-link-font-size);line-height:var(--zn-text-tab-link-line-height);font-weight:var(--zn-text-tab-link-font-weight);white-space:nowrap;color:var(--zn-text-tab-link-color)}ul.navbar li a{text-decoration:none;color:inherit}:host-context(zn-page) ul.navbar li:not(.active):not(.zn-tb-active){background:var(--navbar-page-inactive-tab-background,transparent);backdrop-filter:var(--navbar-page-inactive-tab-filter,none)}:host([baseless]) .navbar__container{border-bottom:none}:host([stacked]){width:unset;height:100%;margin:0 0}:host([stacked]) .navbar__container{border-bottom:none;height:100%}:host([stacked]) ul.navbar.navbar--no-pad li{padding:0 !important}:host([stacked]) ul.navbar{padding:0;margin:0;flex-direction:column;gap:0}:host([stacked]) ul.navbar li{border-bottom:1px solid rgb(var(--zn-border-color));padding:var(--zn-base-px)}:host([stacked]) ul.navbar li.active:before,:host([stacked]) ul.navbar li.zn-tb-active:before{display:none}:host([stacked]) ul.navbar li.zn-tb-active{background-color:rgb(var(--zn-color-navigation))}:host([stacked]) ul.navbar li:hover:before{left:0;right:0}:host([stacked][slot=left]) ul.navbar--border{border-right:1px solid rgb(var(--zn-border-color))}:host([stacked][slot=right]) ul.navbar--border{border-left:1px solid rgb(var(--zn-border-color))}:host([panel]){background:rgb(var(--zn-panel))}:host([icon-bar]) ul.navbar{display:flex;flex-direction:row;gap:5px;padding:5px;border-radius:10px;margin:0;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));flex-basis:100%;min-height:50px}:host([icon-bar]) ul.navbar li{flex-direction:column;border-radius:6px;flex-basis:100%;padding:5px 10px}:host([icon-bar]) ul.navbar li:before{display:none !important}:host([icon-bar]) ul.navbar li.active,:host([icon-bar]) ul.navbar li.zn-tb-active{background:rgba(0,0,0,0.03);color:rgb(var(--zn-primary))}:host([icon-bar]) ul.navbar li:hover{color:rgb(var(--zn-primary))}:host([icon-bar]) .navbar__container{border-bottom:0}.navbar__container--stacked.navbar__container--icon-bar{display:inline}ul.navbar.navbar--stacked.navbar--icon-bar{flex-direction:column;padding:0;gap:0}ul.navbar.navbar--stacked.navbar--icon-bar li{border-radius:0;align-items:flex-start;padding:8px}:host(:not([stacked]):not([icon-bar])) ul.navbar{height:40px;align-self:end}:host(:not([stacked]):not([icon-bar]):not([icon-only])) ul.navbar{min-width:200px}:host([icon-only]:not([stacked]):not([icon-bar])) ul.navbar{height:36px}:host([pad]) ul.navbar{padding:var(--zn-spacing-medium) var(--zn-spacing-medium) 0}:host(:not([stacked])) ul.navbar>li{border-right-width:1px;border-top-width:1px}:host(:not([stacked])) ul.navbar>li:first-of-type{border-left-width:1px;border-top-left-radius:6px}:host(:not([stacked])) ul.navbar>li:last-of-type{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar>li.active,:host(:not([stacked])) ul.navbar>li.zn-tb-active{color:var(--zn-text-tab-link-active-color)}:host(:not([stacked])) ul.navbar:not(.has-hidden)>li.last-visible{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar.has-hidden>li.more{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar.more-only>li.more{border-left-width:1px;border-top-left-radius:6px}:host{display:block;width:100%}:host .navbar__container{border-bottom:1px solid rgb(var(--zn-border-color))}:host ul.navbar{display:flex;flex-basis:fit-content;gap:0;list-style:none}:host ul.navbar li.more{display:none}:host ul.navbar.has-hidden li.more{display:flex}:host ul.navbar li.hidden{visibility:hidden;position:absolute;pointer-events:none}:host ul.navbar li .closer{display:none}:host ul.navbar li{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:var(--zn-text-tab-link-font-weight);padding:0 calc(var(--zn-base-px,8px) * 2);background:rgb(var(--zn-color-tab));transition:background-color 100ms ease-in-out;position:relative}:host ul.navbar li:hover{background:rgba(var(--zn-color-tab),0.5)}:host ul.navbar li:hover::after{content:"";position:absolute;inset:0;border-radius:inherit;background:rgb(var(--navbar-active-colour));z-index:-1}:host ul.navbar li{display:flex;align-items:center;justify-content:center;gap:3px;cursor:pointer}:host ul.navbar li zn-icon,:host ul.navbar li zn-tooltip{pointer-events:none}:host ul.navbar li#dropdown-item{flex-grow:1;justify-content:flex-start;padding:0}:host ul.navbar li#dropdown-item zn-dropdown{height:100%}:host ul.navbar li#dropdown-item zn-dropdown zn-button{height:100%}:host ul.navbar li::before{content:"";left:50%;right:50%;bottom:-1px;position:absolute;background-color:rgb(var(--navbar-active-colour));transition:all 300ms ease-in-out;height:1px}:host ul.navbar li:hover:before:not(#dropdown-item){left:-2px;right:-2px}:host ul.navbar li.active,:host ul.navbar li.zn-tb-active{background:rgb(var(--navbar-active-colour));font-size:var(--zn-text-tab-link-active-font-size);line-height:var(--zn-text-tab-link-active-line-height);font-weight:var(--zn-text-tab-link-active-font-weight);color:var(--zn-text-tab-link-active-color)}:host ul.navbar li.active::before,:host ul.navbar li.zn-tb-active::before{left:0;right:0}:host ul.navbar li[closable] .closer{display:block;margin-left:10px;pointer-events:all;opacity:0.8}:host ul.navbar li[closable] .closer:hover{opacity:1}:host([small]){width:unset}:host([small]) ul.navbar{padding:0;gap:0;border-radius:5px}:host([small]) ul.navbar li{border-left:1px solid rgb(var(--zn-border-color));border-radius:0}:host([small]) ul.navbar li:first-of-type{border-left:none}button[popovertarget]{display:flex;justify-content:center;align-items:center}:host([highlight]){margin:0 0}:host([highlight]) .navbar__container{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(var(--zn-border-color));height:40px}:host([highlight]):host([dropdown]) li{border-bottom:0}:host([highlight]) ul.navbar{gap:0;overflow:initial}:host([highlight]) ul.navbar li{padding-left:var(--zn-spacing-medium);padding-right:var(--zn-spacing-medium);padding-top:var(--zn-spacing-small);position:relative}:host([highlight]) ul.navbar li:hover::before,:host([highlight]) ul.navbar li::before:not(.active):not(#dropdown-item){display:none}:host([highlight]) ul.navbar li.active{border-right:1px solid rgb(var(--zn-border-color))}:host([highlight]) ul.navbar li.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background-color:rgb(var(--navbar-active-colour))}:host([highlight]) .active{background-color:rgb(var(--navbar-active-colour))}:host([dropdown]) ul.navbar li{border-bottom:1px solid rgb(var(--zn-border-color));border-right:1px solid rgb(var(--zn-border-color));border-right:1px solid rgb(var(--zn-border-color));border-left:0}:host([dropdown]) ul.navbar li.active{border-bottom:0}:host([dropdown]) ul.navbar li:before{display:none}:host([dropdown]) ul.navbar li#dropdown-item{border-right:0}.expandables{flex-grow:0;flex-shrink:0;margin:0;display:flex;gap:var(--zn-spacing-x-small);padding-right:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}.expandables:empty{display:none}:host ul.navbar li.more{padding:0;width:40px;min-width:40px}:host ul.navbar li.more zn-dropdown,:host ul.navbar li.more zn-button[slot=trigger]{height:100%;width:100%}:host ul.navbar li.more zn-button[slot=trigger] zn-icon{transition:transform 200ms ease-in-out;--icon-color:var(--zn-text-tab-link-color)}:host ul.navbar li.more zn-dropdown[open] zn-button[slot=trigger] zn-icon{transform:rotate(90deg);--icon-color:var(--zn-text-tab-link-active-color)}:host ul.navbar li.more:has(zn-dropdown[open]){background:rgb(var(--zn-panel))}:host ul.navbar li.more:has(zn-dropdown[open])::after{content:"";position:absolute;inset:auto 0 -1px 0;height:1px;border-radius:0;background:rgb(var(--zn-panel));z-index:1}:host ul.navbar li.more zn-button::part(base){height:100%;padding-left:0;padding-right:0;outline:none}:host ul.navbar li.more zn-button::part(base):hover{background-color:transparent}:host ul.navbar li.more ul#extended-menu{--navbar-more-trigger-width:40px;box-shadow:0 4px 8px -4px rgba(33,33,33,0.1);border:1px solid rgb(var(--zn-border-color));border-top:0;border-radius:0 0 var(--zn-border-radius) var(--zn-border-radius);overflow:hidden;position:relative;inset-inline-end:-1px}:host ul.navbar li.more ul#extended-menu::before{content:"";position:absolute;inset:0 calc(var(--navbar-more-trigger-width) - 2px) auto 0;height:1px;background:rgb(var(--zn-border-color));z-index:2}:host ul.navbar li.more ul#extended-menu{background:rgb(var(--zn-panel));display:flex;flex-direction:column;height:auto;width:-moz-fit-content;width:fit-content;min-width:var(--zn-size-spanel);margin:-1px 0 0;padding:1px}:host ul.navbar li.more ul#extended-menu li{justify-content:left;background:rgb(var(--zn-panel));font-size:var(--zn-text-menu-link-font-size);line-height:var(--zn-text-menu-link-line-height);font-weight:var(--zn-text-menu-link-font-weight);color:var(--zn-text-menu-link-color);padding:var(--zn-spacing-small) var(--zn-spacing-medium)}:host ul.navbar li.more ul#extended-menu li:hover{background:linear-gradient(rgba(0,0,0,0.06),rgba(0,0,0,0.06)),rgb(var(--zn-panel))}:host ul.navbar li.more ul#extended-menu li.active,:host ul.navbar li.more ul#extended-menu li.zn-tb-active{font-weight:var(--zn-text-tab-link-font-weight);color:var(--zn-text-tab-link-color)}:host ul.navbar li.more ul#extended-menu li.active::before,:host ul.navbar li.more ul#extended-menu li.zn-tb-active::before{left:0;right:0}`;var i5=200,Pt=class extends C{constructor(){super();this.navigation=[];this.flush=!1;this.gutter=!1;this.dropdown=[];this.manualAddItems=!1;this.isolated=!1;this.storeKey="";this.storeTtl=0;this._preItems=[];this._postItems=[];this._expanding=[];this._openedTabs=[];this._itemsObserver=new Lt(this,{target:null,config:{childList:!0},callback:()=>this._updateVisibility()});this._navItems=null;this._expandable=null;this._extendedMenu=null;this._cloneSources=new WeakMap;this._lightDomClones=new WeakMap;this._navItemsGap=0;this._expandableMargin=0;this._totalItemWidth=0;this._resizeFrame=null;this._expandingActionObserver=new Lt(this,{target:null,config:{attributes:!0,attributeFilter:["open","method","basis"]},callback:()=>this._scheduleResize()});this._scheduleResize=()=>{this._resizeFrame!==null&&cancelAnimationFrame(this._resizeFrame),this._resizeFrame=requestAnimationFrame(()=>{this._resizeFrame=null,this.handleResize()})};this._updateVisibility=()=>{if(this._expanding.length>0){this.style.display="";return}let t=this.itemCount();t===0||t<2&&this.hideOne?this.style.display="none":this.style.display=""};this.handleResize=()=>{if(this._extendedMenu===null||this.iconBar||this.stacked)return;let t=this._resolveAvailableWidth(),r=this._getExpandableWidth(t);if(this._totalItemWidth=this._measureTotalItemWidth(),this._totalItemWidth===0)return;let n=(this._navItems?.querySelectorAll("li.hidden").length||0)>0,a=this._navItems?this._getHorizontalSpacing(this._navItems):0,l=Math.max(t-r,i5)-a;if(!n&&this._totalItemWidth<=l){this._navItems?.classList.toggle("has-hidden",!1),this._syncLastVisibleItem();return}let d=this._getMoreItemWidth(),h=l-d,m=0,f=!1,b=this._navItems?.querySelectorAll(":scope > li")||[];this._extendedMenu.innerHTML="";for(let g of b){if(g.classList.contains("more")||!(g instanceof HTMLElement))continue;let v=this._getItemWidth(g);if(f||v+m>h){let x=g.cloneNode(!0);x.classList.remove("hidden"),this._cloneSources.set(x,g),x.addEventListener("click",()=>{g.click(),(this.shadowRoot?.querySelector("#extended-dropdown")||null)?.hide()}),this._extendedMenu?.appendChild(x),g.classList.add("hidden"),n=!0,f=!0}else g.classList.remove("hidden"),m+=v}this._navItems?.classList.toggle("has-hidden",n&&f),this._syncLastVisibleItem()};this._syncExtendedActive=()=>{let t=this._extendedMenu?.querySelectorAll(":scope > li")||[];for(let r of t){let n=this._cloneSources.get(r);n&&(r.classList.toggle("active",n.classList.contains("active")),r.classList.toggle("zn-tb-active",n.classList.contains("zn-tb-active")))}};this.handleClick=t=>{let r=t.composedPath(),n=this.isolated?"data-tab":"tab",a=r.find(s=>s instanceof HTMLElement&&s.tagName==="LI"&&(s.hasAttribute(n)||s.hasAttribute("tab-uri")));a&&(t.stopPropagation(),this.emit("zn-select",{detail:{item:a}}))};this._resizeController=new te(this,{callback:()=>this._scheduleResize()}),new Lt(this,{config:{childList:!0},callback:t=>this._adoptNewLightItems(t)})}appendItem(t){this._appended=[...this._appended||[],t]}_cloneLightItem(t){let r=this._lightDomClones.get(t);if(r)return r;let n=t.cloneNode(!0);return this._cloneSources.set(n,t),this._lightDomClones.set(t,n),n.addEventListener("click",()=>t.click()),n}_syncLightDomItems(){let t=[],r=[];Array.from(this.children).forEach(n=>{if(!(n instanceof HTMLElement)||n.tagName!=="LI")return;let a=this._cloneLightItem(n);n.hasAttribute("suffix")?r.push(a):t.push(a)}),this._preItems=t,this._postItems=r}addExpandingAction(t){this._expanding.includes(t)||(this._expanding=[...this._expanding,t]),t.parentElement!==this&&this.appendChild(t),this.requestUpdate(),this._updateVisibility(),this._observeExpandingAction(t),this._scheduleResize()}_observeExpandingAction(t){this._expandingActionObserver.observe(t),this._resizeController.observe(t)}_adoptNewLightItems(t){for(let r of t)for(let n of Array.from(r.addedNodes))n instanceof Element&&n.tagName==="ZN-EXPANDING-ACTION"&&this.addExpandingAction(n);t.some(r=>Array.from(r.addedNodes).some(n=>n instanceof HTMLLIElement)||Array.from(r.removedNodes).some(n=>n instanceof HTMLLIElement))&&(this._syncLightDomItems(),this.requestUpdate())}connectedCallback(){super.connectedCallback(),this._syncLightDomItems(),this._expanding=Array.from(this.querySelectorAll("zn-expanding-action")),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300),this._store=new mr(this.localStorage?window.localStorage:window.sessionStorage,"znnav:",this.storeTtl)}itemCount(){return(this._navItems?.querySelectorAll(":scope > li:not(.more):not(#dropdown-item)")||[]).length}_resolveAvailableWidth(){let t=this.parentElement,r=this.offsetWidth||t?.offsetWidth||0;for(;r===0&&t?.parentElement;)t=t.parentElement,r=t.offsetWidth||0;return r}_measureTotalItemWidth(){let t=this._navItems?.querySelectorAll(":scope > li")||[],r=0;for(let n of t)n.classList.contains("more")||!(n instanceof HTMLElement)||(r+=this._getItemWidth(n));return r}_getItemWidth(t){return(t.getBoundingClientRect().width||t.offsetWidth||0)+this._navItemsGap+5}_getHorizontalSpacing(t){let r=getComputedStyle(t);return(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)}_getMoreItemWidth(){let t=this._navItems?.querySelector(":scope > li.more");if(!t||!this._navItems)return 0;let r=this._getItemWidth(t);if(r>0)return r;let n=this._navItems.classList.contains("has-hidden");return this._navItems.classList.add("has-hidden"),r=this._getItemWidth(t),this._navItems.classList.toggle("has-hidden",n),r}_syncLastVisibleItem(){let t=this._navItems?.querySelectorAll(":scope > li")||[],r=null;for(let n of t)n.classList.remove("last-visible"),!(n.classList.contains("more")||n.classList.contains("hidden")||n.id==="dropdown-item")&&(r=n);r?.classList.add("last-visible"),this._navItems?.classList.toggle("more-only",!r&&this._navItems.classList.contains("has-hidden"))}_getExpandableWidth(t){let r=this._expandableMargin+(this._expandable?.getBoundingClientRect().width||this._expandable?.offsetWidth||0),n=0;for(let a of this._expanding){if(!(a instanceof HTMLElement))continue;let s=a.method||a.getAttribute("method")||"drop",l=!!(a.open||a.hasAttribute("open"));if(s!=="fill"||!l)continue;let h=a.shadowRoot?.querySelector(".expanding-action--fill")?.getBoundingClientRect().width||0;n=Math.max(n,h,Math.min(t,800))}return Math.max(r,n)}addItem(t,r=!0){let n=t.getAttribute("tab-uri");if(typeof n!="string"||this._openedTabs.includes(n))return;this._openedTabs.push(n);let a=this.shadowRoot?.querySelector("ul"),s=this.shadowRoot?.querySelector('[id="dropdown-item"]');r&&s&&(s.querySelector("zn-dropdown")?.hide(),this._saveTabToStorage({uri:n,title:t.innerText})),s?a?.insertBefore(t,s):a?.appendChild(t),this._updateVisibility()}firstUpdated(t){if(super.firstUpdated(t),this._extendedMenu=this.shadowRoot?.querySelector("#extended-menu")||null,this.shadowRoot?.querySelector("#extended-dropdown")?.addEventListener("zn-show",this._syncExtendedActive),this._expandable=this.shadowRoot?.querySelector(".navbar__container > div.expandables")||null,this._expandable){let r=getComputedStyle(this._expandable);this._expandableMargin=(parseFloat(r.marginLeft)||0)+(parseFloat(r.marginRight)||0),this._resizeController.observe(this._expandable)}if(this._navItems=this.shadowRoot?.querySelector(".navbar__container > ul")||null,this._navItems){let r=getComputedStyle(this._navItems);this._navItemsGap=parseFloat(r.columnGap)||0,this._resizeController.observe(this._navItems),this._navItems.addEventListener("click",n=>{let a=n.target.closest("li[tab-uri]");if(a&&this.storeKey){let s=a.getAttribute("tab-uri");s&&this._store.set(this.storeKey+":active",s)}})}if(this._loadStoredTabs(),this._navItems&&this._itemsObserver.observe(this._navItems),this._expanding.forEach(r=>this._observeExpandingAction(r)),this._updateVisibility(),setTimeout(()=>{this.handleResize()},100),this.dropdown.length>0){let r=this.shadowRoot?.querySelector("zn-menu");r&&r.addEventListener("zn-menu-select",n=>{if(this.manualAddItems)return;if(n.detail.element.hasAttribute("data-path")){let s=document.createElement("li");s.setAttribute("tab-uri",n.detail.element.getAttribute("data-path")),s.innerText=n.detail.value,this.addItem(s,!0),setTimeout(()=>{s.click()},300)}})}}_loadStoredTabs(){if(!this.storeKey||!this._store)return;let t=this._store.get(this.storeKey),r=this._store.get(this.storeKey+":active");if(t)try{let n=JSON.parse(t);Array.isArray(n)&&n.forEach(a=>{if(a.uri&&a.title){let s=document.createElement("li");s.setAttribute("tab-uri",a.uri),s.innerText=a.title,this.addItem(s,!1),r&&a.uri===r&&setTimeout(()=>{s.click()},100)}})}catch(n){console.warn("ZnNavbar: Failed to load stored tabs",n)}}_saveTabToStorage(t){if(!(!this.storeKey||!this._store))try{let r=this._store.get(this.storeKey),n=[];r&&(n=JSON.parse(r)),n.some(a=>a.uri===t.uri)||(n.push(t),this._store.set(this.storeKey,JSON.stringify(n)))}catch(r){console.warn("ZnNavbar: Failed to save tab",r)}}updated(t){super.updated(t),(t.has("hideOne")||t.has("navigation")||t.has("_appended"))&&this._updateVisibility()}render(){return this.navigation||(this.navigation=[]),u`
|
|
1516
|
+
</style>${h}`:h}};Fe.styles=T(Hv),c([p({attribute:"full-location"})],Fe.prototype,"fullLocation",2),c([p({attribute:"entity-id"})],Fe.prototype,"entityId",2),c([p({attribute:"entity-id-show",type:Boolean})],Fe.prototype,"entityIdShow",2),c([p({type:Boolean})],Fe.prototype,"transparent",2),c([p()],Fe.prototype,"caption",2),c([p()],Fe.prototype,"icon",2),c([p({type:Array})],Fe.prototype,"navigation",2),c([p({attribute:"full-width",type:Boolean})],Fe.prototype,"fullWidth",2),c([p({attribute:"previous-path"})],Fe.prototype,"previousPath",2),c([p({attribute:"previous-target"})],Fe.prototype,"previousTarget",2),c([p({attribute:"hide-breadcrumb",type:Boolean})],Fe.prototype,"hideBreadcrumb",2),c([K("navigation",{waitUntilFirstUpdate:!0})],Fe.prototype,"updateNav",1);var gu=Fe;Fe.define("zn-header");var Fv=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host{display:block;--navbar-active-colour:var(--zn-active-nav-background,var(--zn-page-content-background,var(--zn-page-surface-background,var(--zn-body))))}:host ul.navbar{padding:0;margin-inline:var(--zn-spacing-small)}:host ul.navbar--color-body{background-color:rgb(var(--zn-color-body))}:host([gutter]) ul.navbar{margin:0 calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}:host([hover]){position:absolute;transform:translateY(-100%)}:host([hover]) ul.navbar{position:relative}:host([hover]) ul.navbar li{z-index:2}:host([hover]) ul.navbar::after{z-index:1;content:"";position:absolute;inset:0;border-radius:6px 6px 0 0;background-color:rgb(var(--zn-body))}:host([hover]) ul.navbar::before{z-index:1;content:"";position:absolute;top:-2px;right:-2px;left:-2px;bottom:0;border-radius:10px;backdrop-filter:blur(2px) opacity(0.8)}:host([icon-only]) ul.navbar li{padding:0;width:36px;min-width:36px;justify-content:center}:host([icon-only]) ul.navbar li:hover:not(.active):not(.zn-tb-active):not(.more)::after{display:none}.navbar__container{display:flex;flex-direction:row;position:relative;justify-content:space-between}.navbar{margin:0}:host:not([stacked]) .navbar{margin:0 0 0 calc(var(--zn-gutter,0) + var(--zn-base-gap,0));padding-left:0}:host:not([stacked]) .navbar--flush{padding:0}ul.navbar li{padding-top:0;font-size:var(--zn-text-tab-link-font-size);line-height:var(--zn-text-tab-link-line-height);font-weight:var(--zn-text-tab-link-font-weight);white-space:nowrap;color:var(--zn-text-tab-link-color)}ul.navbar li a{text-decoration:none;color:inherit}:host-context(zn-page) ul.navbar li:not(.active):not(.zn-tb-active){background:var(--navbar-page-inactive-tab-background,transparent);backdrop-filter:var(--navbar-page-inactive-tab-filter,none)}:host([baseless]) .navbar__container{border-bottom:none}:host([stacked]){width:unset;height:100%;margin:0 0}:host([stacked]) .navbar__container{border-bottom:none;height:100%}:host([stacked]) ul.navbar.navbar--no-pad li{padding:0 !important}:host([stacked]) ul.navbar{padding:0;margin:0;flex-direction:column;gap:0}:host([stacked]) ul.navbar li{border-bottom:1px solid rgb(var(--zn-border-color));padding:var(--zn-base-px)}:host([stacked]) ul.navbar li.active:before,:host([stacked]) ul.navbar li.zn-tb-active:before{display:none}:host([stacked]) ul.navbar li.zn-tb-active{background-color:rgb(var(--zn-color-navigation))}:host([stacked]) ul.navbar li:hover:before{left:0;right:0}:host([stacked][slot=left]) ul.navbar--border{border-right:1px solid rgb(var(--zn-border-color))}:host([stacked][slot=right]) ul.navbar--border{border-left:1px solid rgb(var(--zn-border-color))}:host([panel]){background:rgb(var(--zn-panel))}:host([icon-bar]) ul.navbar{display:flex;flex-direction:row;gap:5px;padding:5px;border-radius:10px;margin:0;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));flex-basis:100%;min-height:50px}:host([icon-bar]) ul.navbar li{flex-direction:column;border-radius:6px;flex-basis:100%;padding:5px 10px}:host([icon-bar]) ul.navbar li:before{display:none !important}:host([icon-bar]) ul.navbar li.active,:host([icon-bar]) ul.navbar li.zn-tb-active{background:rgba(0,0,0,0.03);color:rgb(var(--zn-primary))}:host([icon-bar]) ul.navbar li:hover{color:rgb(var(--zn-primary))}:host([icon-bar]) .navbar__container{border-bottom:0}.navbar__container--stacked.navbar__container--icon-bar{display:inline}ul.navbar.navbar--stacked.navbar--icon-bar{flex-direction:column;padding:0;gap:0}ul.navbar.navbar--stacked.navbar--icon-bar li{border-radius:0;align-items:flex-start;padding:8px}:host(:not([stacked]):not([icon-bar])) ul.navbar{height:40px;align-self:end}:host(:not([stacked]):not([icon-bar]):not([icon-only])) ul.navbar{min-width:200px}:host([icon-only]:not([stacked]):not([icon-bar])) ul.navbar{height:36px}:host([pad]) ul.navbar{padding:var(--zn-spacing-medium) var(--zn-spacing-medium) 0}:host(:not([stacked])) ul.navbar>li{border-right-width:1px;border-top-width:1px}:host(:not([stacked])) ul.navbar>li:first-of-type{border-left-width:1px;border-top-left-radius:6px}:host(:not([stacked])) ul.navbar>li:last-of-type{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar>li.active,:host(:not([stacked])) ul.navbar>li.zn-tb-active{color:var(--zn-text-tab-link-active-color)}:host(:not([stacked])) ul.navbar:not(.has-hidden)>li.last-visible{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar.has-hidden>li.more{border-top-right-radius:6px}:host(:not([stacked])) ul.navbar.more-only>li.more{border-left-width:1px;border-top-left-radius:6px}:host{display:block;width:100%}:host .navbar__container{border-bottom:1px solid rgb(var(--zn-border-color))}:host ul.navbar{display:flex;flex-basis:fit-content;gap:0;list-style:none}:host ul.navbar li.more{display:none}:host ul.navbar.has-hidden li.more{display:flex}:host ul.navbar li.hidden{visibility:hidden;position:absolute;pointer-events:none}:host ul.navbar li .closer{display:none}:host ul.navbar li{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-weight:var(--zn-text-tab-link-font-weight);padding:0 calc(var(--zn-base-px,8px) * 2);background:rgb(var(--zn-color-tab));transition:background-color 100ms ease-in-out;position:relative}:host ul.navbar li:hover{background:rgba(var(--zn-color-tab),0.5)}:host ul.navbar li:hover::after{content:"";position:absolute;inset:0;border-radius:inherit;background:rgb(var(--navbar-active-colour));z-index:-1}:host ul.navbar li{display:flex;align-items:center;justify-content:center;gap:3px;cursor:pointer}:host ul.navbar li zn-icon,:host ul.navbar li zn-tooltip{pointer-events:none}:host ul.navbar li#dropdown-item{flex-grow:1;justify-content:flex-start;padding:0}:host ul.navbar li#dropdown-item zn-dropdown{height:100%}:host ul.navbar li#dropdown-item zn-dropdown zn-button{height:100%}:host ul.navbar li::before{content:"";left:50%;right:50%;bottom:-1px;position:absolute;background-color:rgb(var(--navbar-active-colour));transition:all 300ms ease-in-out;height:1px}:host ul.navbar li:hover:before:not(#dropdown-item){left:-2px;right:-2px}:host ul.navbar li.active,:host ul.navbar li.zn-tb-active{background:rgb(var(--navbar-active-colour));font-size:var(--zn-text-tab-link-active-font-size);line-height:var(--zn-text-tab-link-active-line-height);font-weight:var(--zn-text-tab-link-active-font-weight);color:var(--zn-text-tab-link-active-color)}:host ul.navbar li.active::before,:host ul.navbar li.zn-tb-active::before{left:0;right:0}:host ul.navbar li[closable] .closer{display:block;margin-left:10px;pointer-events:all;opacity:0.8}:host ul.navbar li[closable] .closer:hover{opacity:1}:host([small]){width:unset}:host([small]) ul.navbar{padding:0;gap:0;border-radius:5px}:host([small]) ul.navbar li{border-left:1px solid rgb(var(--zn-border-color));border-radius:0}:host([small]) ul.navbar li:first-of-type{border-left:none}button[popovertarget]{display:flex;justify-content:center;align-items:center}:host([highlight]){margin:0 0}:host([highlight]) .navbar__container{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(var(--zn-border-color));height:40px}:host([highlight]):host([dropdown]) li{border-bottom:0}:host([highlight]) ul.navbar{gap:0;overflow:initial}:host([highlight]) ul.navbar li{padding-left:var(--zn-spacing-medium);padding-right:var(--zn-spacing-medium);padding-top:var(--zn-spacing-small);position:relative}:host([highlight]) ul.navbar li:hover::before,:host([highlight]) ul.navbar li::before:not(.active):not(#dropdown-item){display:none}:host([highlight]) ul.navbar li.active{border-right:1px solid rgb(var(--zn-border-color))}:host([highlight]) ul.navbar li.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background-color:rgb(var(--navbar-active-colour))}:host([highlight]) .active{background-color:rgb(var(--navbar-active-colour))}:host([dropdown]) ul.navbar li{border-bottom:1px solid rgb(var(--zn-border-color));border-right:1px solid rgb(var(--zn-border-color));border-right:1px solid rgb(var(--zn-border-color));border-left:0}:host([dropdown]) ul.navbar li.active{border-bottom:0}:host([dropdown]) ul.navbar li:before{display:none}:host([dropdown]) ul.navbar li#dropdown-item{border-right:0}.expandables{flex-grow:0;flex-shrink:0;margin:0;display:flex;gap:var(--zn-spacing-x-small);padding-right:calc(var(--zn-gutter,0) + var(--zn-base-gap,0))}.expandables:empty{display:none}:host ul.navbar li.more{padding:0;width:40px;min-width:40px}:host ul.navbar li.more zn-dropdown,:host ul.navbar li.more zn-button[slot=trigger]{height:100%;width:100%}:host ul.navbar li.more zn-button[slot=trigger] zn-icon{transition:transform 200ms ease-in-out;--icon-color:var(--zn-text-tab-link-color)}:host ul.navbar li.more zn-dropdown[open] zn-button[slot=trigger] zn-icon{transform:rotate(90deg);--icon-color:var(--zn-text-tab-link-active-color)}:host ul.navbar li.more:has(zn-dropdown[open]){background:rgb(var(--zn-panel))}:host ul.navbar li.more:has(zn-dropdown[open])::after{content:"";position:absolute;inset:auto 0 -1px 0;height:1px;border-radius:0;background:rgb(var(--zn-panel));z-index:1}:host ul.navbar li.more zn-button::part(base){height:100%;padding-left:0;padding-right:0;outline:none}:host ul.navbar li.more zn-button::part(base):hover{background-color:transparent}:host ul.navbar li.more ul#extended-menu{--navbar-more-trigger-width:40px;box-shadow:0 4px 8px -4px rgba(33,33,33,0.1);border:1px solid rgb(var(--zn-border-color));border-top:0;border-radius:0 0 var(--zn-border-radius) var(--zn-border-radius);overflow:hidden;position:relative;inset-inline-end:-1px}:host ul.navbar li.more ul#extended-menu::before{content:"";position:absolute;inset:0 calc(var(--navbar-more-trigger-width) - 2px) auto 0;height:1px;background:rgb(var(--zn-border-color));z-index:2}:host ul.navbar li.more ul#extended-menu{background:rgb(var(--zn-panel));display:flex;flex-direction:column;height:auto;width:-moz-fit-content;width:fit-content;min-width:var(--zn-size-spanel);margin:-1px 0 0;padding:1px}:host ul.navbar li.more ul#extended-menu li{justify-content:left;background:rgb(var(--zn-panel));font-size:var(--zn-text-menu-link-font-size);line-height:var(--zn-text-menu-link-line-height);font-weight:var(--zn-text-menu-link-font-weight);color:var(--zn-text-menu-link-color);padding:var(--zn-spacing-small) var(--zn-spacing-medium)}:host ul.navbar li.more ul#extended-menu li:hover{background:linear-gradient(rgba(0,0,0,0.06),rgba(0,0,0,0.06)),rgb(var(--zn-panel))}:host ul.navbar li.more ul#extended-menu li.active,:host ul.navbar li.more ul#extended-menu li.zn-tb-active{font-weight:var(--zn-text-tab-link-font-weight);color:var(--zn-text-tab-link-color)}:host ul.navbar li.more ul#extended-menu li.active::before,:host ul.navbar li.more ul#extended-menu li.zn-tb-active::before{left:0;right:0}`;var i5=200,Ht=class extends C{constructor(){super();this.navigation=[];this.flush=!1;this.gutter=!1;this.dropdown=[];this.manualAddItems=!1;this.isolated=!1;this.storeKey="";this.storeTtl=0;this._preItems=[];this._postItems=[];this._expanding=[];this._openedTabs=[];this._itemsObserver=new Lt(this,{target:null,config:{childList:!0},callback:()=>this._updateVisibility()});this._navItems=null;this._expandable=null;this._extendedMenu=null;this._cloneSources=new WeakMap;this._lightDomClones=new WeakMap;this._navItemsGap=0;this._expandableMargin=0;this._totalItemWidth=0;this._resizeFrame=null;this._expandingActionObserver=new Lt(this,{target:null,config:{attributes:!0,attributeFilter:["open","method","basis"]},callback:()=>this._scheduleResize()});this._scheduleResize=()=>{this._resizeFrame!==null&&cancelAnimationFrame(this._resizeFrame),this._resizeFrame=requestAnimationFrame(()=>{this._resizeFrame=null,this.handleResize()})};this._updateVisibility=()=>{if(this._expanding.length>0){this.style.display="";return}let t=this.itemCount();t===0||t<2&&this.hideOne?this.style.display="none":this.style.display=""};this.handleResize=()=>{if(this._extendedMenu===null||this.iconBar||this.stacked)return;let t=this._resolveAvailableWidth(),r=this._getExpandableWidth(t);if(this._totalItemWidth=this._measureTotalItemWidth(),this._totalItemWidth===0)return;let n=(this._navItems?.querySelectorAll("li.hidden").length||0)>0,a=this._navItems?this._getHorizontalSpacing(this._navItems):0,l=Math.max(t-r,i5)-a;if(!n&&this._totalItemWidth<=l){this._navItems?.classList.toggle("has-hidden",!1),this._syncLastVisibleItem();return}let d=this._getMoreItemWidth(),h=l-d,m=0,f=!1,b=this._navItems?.querySelectorAll(":scope > li")||[];this._extendedMenu.innerHTML="";for(let g of b){if(g.classList.contains("more")||!(g instanceof HTMLElement))continue;let v=this._getItemWidth(g);if(f||v+m>h){let x=g.cloneNode(!0);x.classList.remove("hidden"),this._cloneSources.set(x,g),x.addEventListener("click",()=>{g.click(),(this.shadowRoot?.querySelector("#extended-dropdown")||null)?.hide()}),this._extendedMenu?.appendChild(x),g.classList.add("hidden"),n=!0,f=!0}else g.classList.remove("hidden"),m+=v}this._navItems?.classList.toggle("has-hidden",n&&f),this._syncLastVisibleItem()};this._syncExtendedActive=()=>{let t=this._extendedMenu?.querySelectorAll(":scope > li")||[];for(let r of t){let n=this._cloneSources.get(r);n&&(r.classList.toggle("active",n.classList.contains("active")),r.classList.toggle("zn-tb-active",n.classList.contains("zn-tb-active")))}};this.handleClick=t=>{let r=t.composedPath(),n=this.isolated?"data-tab":"tab",a=r.find(s=>s instanceof HTMLElement&&s.tagName==="LI"&&(s.hasAttribute(n)||s.hasAttribute("tab-uri")));a&&(t.stopPropagation(),this.emit("zn-select",{detail:{item:a}}))};this._resizeController=new te(this,{callback:()=>this._scheduleResize()}),new Lt(this,{config:{childList:!0},callback:t=>this._adoptNewLightItems(t)})}appendItem(t){this._appended=[...this._appended||[],t]}_cloneLightItem(t){let r=this._lightDomClones.get(t);if(r)return r;let n=t.cloneNode(!0);return this._cloneSources.set(n,t),this._lightDomClones.set(t,n),n.addEventListener("click",()=>t.click()),n}_syncLightDomItems(){let t=[],r=[];Array.from(this.children).forEach(n=>{if(!(n instanceof HTMLElement)||n.tagName!=="LI")return;let a=this._cloneLightItem(n);n.hasAttribute("suffix")?r.push(a):t.push(a)}),this._preItems=t,this._postItems=r}addExpandingAction(t){this._expanding.includes(t)||(this._expanding=[...this._expanding,t]),t.parentElement!==this&&this.appendChild(t),this.requestUpdate(),this._updateVisibility(),this._observeExpandingAction(t),this._scheduleResize()}_observeExpandingAction(t){this._expandingActionObserver.observe(t),this._resizeController.observe(t)}_adoptNewLightItems(t){for(let r of t)for(let n of Array.from(r.addedNodes))n instanceof Element&&n.tagName==="ZN-EXPANDING-ACTION"&&this.addExpandingAction(n);t.some(r=>Array.from(r.addedNodes).some(n=>n instanceof HTMLLIElement)||Array.from(r.removedNodes).some(n=>n instanceof HTMLLIElement))&&(this._syncLightDomItems(),this.requestUpdate())}connectedCallback(){super.connectedCallback(),this._syncLightDomItems(),this._expanding=Array.from(this.querySelectorAll("zn-expanding-action")),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300),this._store=new mr(this.localStorage?window.localStorage:window.sessionStorage,"znnav:",this.storeTtl)}itemCount(){return(this._navItems?.querySelectorAll(":scope > li:not(.more):not(#dropdown-item)")||[]).length}_resolveAvailableWidth(){let t=this.parentElement,r=this.offsetWidth||t?.offsetWidth||0;for(;r===0&&t?.parentElement;)t=t.parentElement,r=t.offsetWidth||0;return r}_measureTotalItemWidth(){let t=this._navItems?.querySelectorAll(":scope > li")||[],r=0;for(let n of t)n.classList.contains("more")||!(n instanceof HTMLElement)||(r+=this._getItemWidth(n));return r}_getItemWidth(t){return(t.getBoundingClientRect().width||t.offsetWidth||0)+this._navItemsGap+5}_getHorizontalSpacing(t){let r=getComputedStyle(t);return(parseFloat(r.paddingLeft)||0)+(parseFloat(r.paddingRight)||0)}_getMoreItemWidth(){let t=this._navItems?.querySelector(":scope > li.more");if(!t||!this._navItems)return 0;let r=this._getItemWidth(t);if(r>0)return r;let n=this._navItems.classList.contains("has-hidden");return this._navItems.classList.add("has-hidden"),r=this._getItemWidth(t),this._navItems.classList.toggle("has-hidden",n),r}_syncLastVisibleItem(){let t=this._navItems?.querySelectorAll(":scope > li")||[],r=null;for(let n of t)n.classList.remove("last-visible"),!(n.classList.contains("more")||n.classList.contains("hidden")||n.id==="dropdown-item")&&(r=n);r?.classList.add("last-visible"),this._navItems?.classList.toggle("more-only",!r&&this._navItems.classList.contains("has-hidden"))}_getExpandableWidth(t){let r=this._expandableMargin+(this._expandable?.getBoundingClientRect().width||this._expandable?.offsetWidth||0),n=0;for(let a of this._expanding){if(!(a instanceof HTMLElement))continue;let s=a.method||a.getAttribute("method")||"drop",l=!!(a.open||a.hasAttribute("open"));if(s!=="fill"||!l)continue;let h=a.shadowRoot?.querySelector(".expanding-action--fill")?.getBoundingClientRect().width||0;n=Math.max(n,h,Math.min(t,800))}return Math.max(r,n)}addItem(t,r=!0){let n=t.getAttribute("tab-uri");if(typeof n!="string"||this._openedTabs.includes(n))return;this._openedTabs.push(n);let a=this.shadowRoot?.querySelector("ul"),s=this.shadowRoot?.querySelector('[id="dropdown-item"]');r&&s&&(s.querySelector("zn-dropdown")?.hide(),this._saveTabToStorage({uri:n,title:t.innerText})),s?a?.insertBefore(t,s):a?.appendChild(t),this._updateVisibility()}firstUpdated(t){if(super.firstUpdated(t),this._extendedMenu=this.shadowRoot?.querySelector("#extended-menu")||null,this.shadowRoot?.querySelector("#extended-dropdown")?.addEventListener("zn-show",this._syncExtendedActive),this._expandable=this.shadowRoot?.querySelector(".navbar__container > div.expandables")||null,this._expandable){let r=getComputedStyle(this._expandable);this._expandableMargin=(parseFloat(r.marginLeft)||0)+(parseFloat(r.marginRight)||0),this._resizeController.observe(this._expandable)}if(this._navItems=this.shadowRoot?.querySelector(".navbar__container > ul")||null,this._navItems){let r=getComputedStyle(this._navItems);this._navItemsGap=parseFloat(r.columnGap)||0,this._resizeController.observe(this._navItems),this._navItems.addEventListener("click",n=>{let a=n.target.closest("li[tab-uri]");if(a&&this.storeKey){let s=a.getAttribute("tab-uri");s&&this._store.set(this.storeKey+":active",s)}})}if(this._loadStoredTabs(),this._navItems&&this._itemsObserver.observe(this._navItems),this._expanding.forEach(r=>this._observeExpandingAction(r)),this._updateVisibility(),setTimeout(()=>{this.handleResize()},100),this.dropdown.length>0){let r=this.shadowRoot?.querySelector("zn-menu");r&&r.addEventListener("zn-menu-select",n=>{if(this.manualAddItems)return;if(n.detail.element.hasAttribute("data-path")){let s=document.createElement("li");s.setAttribute("tab-uri",n.detail.element.getAttribute("data-path")),s.innerText=n.detail.value,this.addItem(s,!0),setTimeout(()=>{s.click()},300)}})}}_loadStoredTabs(){if(!this.storeKey||!this._store)return;let t=this._store.get(this.storeKey),r=this._store.get(this.storeKey+":active");if(t)try{let n=JSON.parse(t);Array.isArray(n)&&n.forEach(a=>{if(a.uri&&a.title){let s=document.createElement("li");s.setAttribute("tab-uri",a.uri),s.innerText=a.title,this.addItem(s,!1),r&&a.uri===r&&setTimeout(()=>{s.click()},100)}})}catch(n){console.warn("ZnNavbar: Failed to load stored tabs",n)}}_saveTabToStorage(t){if(!(!this.storeKey||!this._store))try{let r=this._store.get(this.storeKey),n=[];r&&(n=JSON.parse(r)),n.some(a=>a.uri===t.uri)||(n.push(t),this._store.set(this.storeKey,JSON.stringify(n)))}catch(r){console.warn("ZnNavbar: Failed to save tab",r)}}updated(t){super.updated(t),(t.has("hideOne")||t.has("navigation")||t.has("_appended"))&&this._updateVisibility()}render(){return this.navigation||(this.navigation=[]),u`
|
|
1517
1517
|
<div part="container" class="${D({navbar__container:!0,"navbar__container--stacked":this.stacked,"navbar__container--icon-bar":this.iconBar})}">
|
|
1518
1518
|
<ul @click="${this.handleClick}" part="navbar" class="${D({navbar:!0,"navbar--slim":this.slim,"navbar--border":this.border,"navbar--flush":this.flush,"navbar--no-pad":this.noPad,"navbar--stacked":this.stacked,"navbar--icon-bar":this.iconBar,[`navbar--color-${this.color}`]:!!this.color})}">
|
|
1519
1519
|
${this._preItems}
|
|
@@ -1555,8 +1555,8 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
1555
1555
|
</div>
|
|
1556
1556
|
`:""}
|
|
1557
1557
|
</div>
|
|
1558
|
-
<slot name="bottom" part="bottom"></slot>`}};
|
|
1559
|
-
`);let it="";for(let xt=0;xt<ut.length;xt++){let R=ut.charCodeAt(xt);R<128?it+=String.fromCharCode(R):R>127&&R<2048?(it+=String.fromCharCode(R>>6|192),it+=String.fromCharCode(R&63|128)):(it+=String.fromCharCode(R>>12|224),it+=String.fromCharCode(R>>6&63|128),it+=String.fromCharCode(R&63|128))}return it}let v,x,_,k,N,G,I,w,$,L,W=7,tt=12,ht=17,gt=22,_t=5,Rt=9,we=14,Ke=20,pr=4,Ae=11,Ye=16,_e=23,ri=6,qa=10,mt=15,Io=21;for(i=g(i),v=f(i),I=1732584193,w=4023233417,$=2562383102,L=271733878,x=0;x<v.length;x+=16)_=I,k=w,N=$,G=L,I=l(I,w,$,L,v[x+0],W,3614090360),L=l(L,I,w,$,v[x+1],tt,3905402710),$=l($,L,I,w,v[x+2],ht,606105819),w=l(w,$,L,I,v[x+3],gt,3250441966),I=l(I,w,$,L,v[x+4],W,4118548399),L=l(L,I,w,$,v[x+5],tt,1200080426),$=l($,L,I,w,v[x+6],ht,2821735955),w=l(w,$,L,I,v[x+7],gt,4249261313),I=l(I,w,$,L,v[x+8],W,1770035416),L=l(L,I,w,$,v[x+9],tt,2336552879),$=l($,L,I,w,v[x+10],ht,4294925233),w=l(w,$,L,I,v[x+11],gt,2304563134),I=l(I,w,$,L,v[x+12],W,1804603682),L=l(L,I,w,$,v[x+13],tt,4254626195),$=l($,L,I,w,v[x+14],ht,2792965006),w=l(w,$,L,I,v[x+15],gt,1236535329),I=d(I,w,$,L,v[x+1],_t,4129170786),L=d(L,I,w,$,v[x+6],Rt,3225465664),$=d($,L,I,w,v[x+11],we,643717713),w=d(w,$,L,I,v[x+0],Ke,3921069994),I=d(I,w,$,L,v[x+5],_t,3593408605),L=d(L,I,w,$,v[x+10],Rt,38016083),$=d($,L,I,w,v[x+15],we,3634488961),w=d(w,$,L,I,v[x+4],Ke,3889429448),I=d(I,w,$,L,v[x+9],_t,568446438),L=d(L,I,w,$,v[x+14],Rt,3275163606),$=d($,L,I,w,v[x+3],we,4107603335),w=d(w,$,L,I,v[x+8],Ke,1163531501),I=d(I,w,$,L,v[x+13],_t,2850285829),L=d(L,I,w,$,v[x+2],Rt,4243563512),$=d($,L,I,w,v[x+7],we,1735328473),w=d(w,$,L,I,v[x+12],Ke,2368359562),I=h(I,w,$,L,v[x+5],pr,4294588738),L=h(L,I,w,$,v[x+8],Ae,2272392833),$=h($,L,I,w,v[x+11],Ye,1839030562),w=h(w,$,L,I,v[x+14],_e,4259657740),I=h(I,w,$,L,v[x+1],pr,2763975236),L=h(L,I,w,$,v[x+4],Ae,1272893353),$=h($,L,I,w,v[x+7],Ye,4139469664),w=h(w,$,L,I,v[x+10],_e,3200236656),I=h(I,w,$,L,v[x+13],pr,681279174),L=h(L,I,w,$,v[x+0],Ae,3936430074),$=h($,L,I,w,v[x+3],Ye,3572445317),w=h(w,$,L,I,v[x+6],_e,76029189),I=h(I,w,$,L,v[x+9],pr,3654602809),L=h(L,I,w,$,v[x+12],Ae,3873151461),$=h($,L,I,w,v[x+15],Ye,530742520),w=h(w,$,L,I,v[x+2],_e,3299628645),I=m(I,w,$,L,v[x+0],ri,4096336452),L=m(L,I,w,$,v[x+7],qa,1126891415),$=m($,L,I,w,v[x+14],mt,2878612391),w=m(w,$,L,I,v[x+5],Io,4237533241),I=m(I,w,$,L,v[x+12],ri,1700485571),L=m(L,I,w,$,v[x+3],qa,2399980690),$=m($,L,I,w,v[x+10],mt,4293915773),w=m(w,$,L,I,v[x+1],Io,2240044497),I=m(I,w,$,L,v[x+8],ri,1873313359),L=m(L,I,w,$,v[x+15],qa,4264355552),$=m($,L,I,w,v[x+6],mt,2734768916),w=m(w,$,L,I,v[x+13],Io,1309151649),I=m(I,w,$,L,v[x+4],ri,4149444226),L=m(L,I,w,$,v[x+11],qa,3174756917),$=m($,L,I,w,v[x+2],mt,718787259),w=m(w,$,L,I,v[x+9],Io,3951481745),I=t(I,_),w=t(w,k),$=t($,N),L=t(L,G);var Do=b(I)+b(w)+b($)+b(L);return Do.toLowerCase()}var Bv=E`@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}:host *,:host *::before,:host *::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 Be=class extends C{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 Lt(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ot("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 Lt(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Ot("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=Ot("app-content",this,"")[0]?.shadowRoot;r&&(this._countObserver.observe(r),this._colorObserver.observe(r),this._metaObserved=!0)}_registerActions(){Ot("[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-"+bd(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`
|
|
1558
|
+
<slot name="bottom" part="bottom"></slot>`}};Ht.styles=T(Fv),Ht.dependencies={"zn-dropdown":ir},c([p({attribute:"navigation",type:Array})],Ht.prototype,"navigation",2),c([p({attribute:"full-width",type:Boolean,reflect:!0})],Ht.prototype,"fullWidth",2),c([p({attribute:"icon-bar",type:Boolean,reflect:!0})],Ht.prototype,"iconBar",2),c([p({attribute:"slim",type:Boolean,reflect:!0})],Ht.prototype,"slim",2),c([p({attribute:"border",type:Boolean,reflect:!0})],Ht.prototype,"border",2),c([p({attribute:"hide-one",type:Boolean,reflect:!0})],Ht.prototype,"hideOne",2),c([p({attribute:"flush",type:Boolean,reflect:!0})],Ht.prototype,"flush",2),c([p({attribute:"gutter",type:Boolean,reflect:!0})],Ht.prototype,"gutter",2),c([p({type:Boolean})],Ht.prototype,"stacked",2),c([p({type:Array})],Ht.prototype,"dropdown",2),c([p({attribute:"no-pad",type:Boolean})],Ht.prototype,"noPad",2),c([p({attribute:"manual-add-items",type:Boolean})],Ht.prototype,"manualAddItems",2),c([p({type:Boolean})],Ht.prototype,"isolated",2),c([p({reflect:!0})],Ht.prototype,"color",2),c([p({attribute:"master-id",reflect:!0})],Ht.prototype,"masterId",2),c([p({attribute:"store-key",type:String})],Ht.prototype,"storeKey",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],Ht.prototype,"storeTtl",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],Ht.prototype,"localStorage",2),c([p()],Ht.prototype,"_appended",2);var da=Ht;Ht.define("zn-navbar");function bd(i){function o(ut,it){return ut<<it|ut>>>32-it}function t(ut,it){let xt,R,y,S,z;return y=ut&2147483648,S=it&2147483648,xt=ut&1073741824,R=it&1073741824,z=(ut&1073741823)+(it&1073741823),xt&&R?z^2147483648^y^S:xt||R?z?z^3221225472^y^S:z^1073741824^y^S:z^y^S}function r(ut,it,xt){return ut&it|~ut&xt}function n(ut,it,xt){return ut&xt|it&~xt}function a(ut,it,xt){return ut^it^xt}function s(ut,it,xt){return it^(ut|~xt)}function l(ut,it,xt,R,y,S,z){return ut=t(ut,t(t(r(it,xt,R),y),z)),t(o(ut,S),it)}function d(ut,it,xt,R,y,S,z){return ut=t(ut,t(t(n(it,xt,R),y),z)),t(o(ut,S),it)}function h(ut,it,xt,R,y,S,z){return ut=t(ut,t(t(a(it,xt,R),y),z)),t(o(ut,S),it)}function m(ut,it,xt,R,y,S,z){return ut=t(ut,t(t(s(it,xt,R),y),z)),t(o(ut,S),it)}function f(ut){for(var it,xt=ut.length,R=xt+8,y=(R-R%64)/64,S=(y+1)*16,z=Array(S-1),q=0,M=0;M<xt;)it=(M-M%4)/4,q=M%4*8,z[it]=z[it]|ut.charCodeAt(M)<<q,M++;return it=(M-M%4)/4,q=M%4*8,z[it]=z[it]|128<<q,z[S-2]=xt<<3,z[S-1]=xt>>>29,z}function b(ut){var it="",xt="",R,y;for(y=0;y<=3;y++)R=ut>>>y*8&255,xt="0"+R.toString(16),it=it+xt.substr(xt.length-2,2);return it}function g(ut){ut=ut.replace(/\r\n/g,`
|
|
1559
|
+
`);let it="";for(let xt=0;xt<ut.length;xt++){let R=ut.charCodeAt(xt);R<128?it+=String.fromCharCode(R):R>127&&R<2048?(it+=String.fromCharCode(R>>6|192),it+=String.fromCharCode(R&63|128)):(it+=String.fromCharCode(R>>12|224),it+=String.fromCharCode(R>>6&63|128),it+=String.fromCharCode(R&63|128))}return it}let v,x,_,k,N,G,I,w,$,L,W=7,tt=12,ht=17,gt=22,_t=5,Ot=9,we=14,Ke=20,pr=4,Ae=11,Ye=16,_e=23,ri=6,qa=10,mt=15,Io=21;for(i=g(i),v=f(i),I=1732584193,w=4023233417,$=2562383102,L=271733878,x=0;x<v.length;x+=16)_=I,k=w,N=$,G=L,I=l(I,w,$,L,v[x+0],W,3614090360),L=l(L,I,w,$,v[x+1],tt,3905402710),$=l($,L,I,w,v[x+2],ht,606105819),w=l(w,$,L,I,v[x+3],gt,3250441966),I=l(I,w,$,L,v[x+4],W,4118548399),L=l(L,I,w,$,v[x+5],tt,1200080426),$=l($,L,I,w,v[x+6],ht,2821735955),w=l(w,$,L,I,v[x+7],gt,4249261313),I=l(I,w,$,L,v[x+8],W,1770035416),L=l(L,I,w,$,v[x+9],tt,2336552879),$=l($,L,I,w,v[x+10],ht,4294925233),w=l(w,$,L,I,v[x+11],gt,2304563134),I=l(I,w,$,L,v[x+12],W,1804603682),L=l(L,I,w,$,v[x+13],tt,4254626195),$=l($,L,I,w,v[x+14],ht,2792965006),w=l(w,$,L,I,v[x+15],gt,1236535329),I=d(I,w,$,L,v[x+1],_t,4129170786),L=d(L,I,w,$,v[x+6],Ot,3225465664),$=d($,L,I,w,v[x+11],we,643717713),w=d(w,$,L,I,v[x+0],Ke,3921069994),I=d(I,w,$,L,v[x+5],_t,3593408605),L=d(L,I,w,$,v[x+10],Ot,38016083),$=d($,L,I,w,v[x+15],we,3634488961),w=d(w,$,L,I,v[x+4],Ke,3889429448),I=d(I,w,$,L,v[x+9],_t,568446438),L=d(L,I,w,$,v[x+14],Ot,3275163606),$=d($,L,I,w,v[x+3],we,4107603335),w=d(w,$,L,I,v[x+8],Ke,1163531501),I=d(I,w,$,L,v[x+13],_t,2850285829),L=d(L,I,w,$,v[x+2],Ot,4243563512),$=d($,L,I,w,v[x+7],we,1735328473),w=d(w,$,L,I,v[x+12],Ke,2368359562),I=h(I,w,$,L,v[x+5],pr,4294588738),L=h(L,I,w,$,v[x+8],Ae,2272392833),$=h($,L,I,w,v[x+11],Ye,1839030562),w=h(w,$,L,I,v[x+14],_e,4259657740),I=h(I,w,$,L,v[x+1],pr,2763975236),L=h(L,I,w,$,v[x+4],Ae,1272893353),$=h($,L,I,w,v[x+7],Ye,4139469664),w=h(w,$,L,I,v[x+10],_e,3200236656),I=h(I,w,$,L,v[x+13],pr,681279174),L=h(L,I,w,$,v[x+0],Ae,3936430074),$=h($,L,I,w,v[x+3],Ye,3572445317),w=h(w,$,L,I,v[x+6],_e,76029189),I=h(I,w,$,L,v[x+9],pr,3654602809),L=h(L,I,w,$,v[x+12],Ae,3873151461),$=h($,L,I,w,v[x+15],Ye,530742520),w=h(w,$,L,I,v[x+2],_e,3299628645),I=m(I,w,$,L,v[x+0],ri,4096336452),L=m(L,I,w,$,v[x+7],qa,1126891415),$=m($,L,I,w,v[x+14],mt,2878612391),w=m(w,$,L,I,v[x+5],Io,4237533241),I=m(I,w,$,L,v[x+12],ri,1700485571),L=m(L,I,w,$,v[x+3],qa,2399980690),$=m($,L,I,w,v[x+10],mt,4293915773),w=m(w,$,L,I,v[x+1],Io,2240044497),I=m(I,w,$,L,v[x+8],ri,1873313359),L=m(L,I,w,$,v[x+15],qa,4264355552),$=m($,L,I,w,v[x+6],mt,2734768916),w=m(w,$,L,I,v[x+13],Io,1309151649),I=m(I,w,$,L,v[x+4],ri,4149444226),L=m(L,I,w,$,v[x+11],qa,3174756917),$=m($,L,I,w,v[x+2],mt,718787259),w=m(w,$,L,I,v[x+9],Io,3951481745),I=t(I,_),w=t(w,k),$=t($,N),L=t(L,G);var Do=b(I)+b(w)+b($)+b(L);return Do.toLowerCase()}var Bv=E`@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}:host *,:host *::before,:host *::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 Be=class extends C{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 Lt(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Pt("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 Lt(this,{target:null,config:{subtree:!0,attributes:!0,attributeFilter:["content"],childList:!0},callback:()=>{let r=Pt("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=Pt("app-content",this,"")[0]?.shadowRoot;r&&(this._countObserver.observe(r),this._colorObserver.observe(r),this._metaObserved=!0)}_registerActions(){Pt("[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-"+bd(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`
|
|
1560
1560
|
${this.method==="fill"?u`
|
|
1561
1561
|
<zn-button class="expanding-action__button"
|
|
1562
1562
|
@click="${this.handleIconClicked}"
|
|
@@ -1600,7 +1600,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
1600
1600
|
@click="${this.handleIconCloseClicked}"
|
|
1601
1601
|
icon="close"
|
|
1602
1602
|
icon-size="20">
|
|
1603
|
-
</zn-button>`}};Be.styles=T(Bv),c([p()],Be.prototype,"icon",2),c([p()],Be.prototype,"method",2),c([p({attribute:"context-uri",reflect:!0})],Be.prototype,"contextUri",2),c([p({reflect:!0})],Be.prototype,"count",2),c([p({reflect:!0})],Be.prototype,"color",2),c([p({type:Boolean})],Be.prototype,"prefetch",2),c([p()],Be.prototype,"basis",2),c([p({attribute:"max-height"})],Be.prototype,"maxHeight",2),c([p({reflect:!0,type:Boolean})],Be.prototype,"open",2),c([p({attribute:"master-id",reflect:!0})],Be.prototype,"masterId",2),c([p({attribute:"fetch-style",type:String,reflect:!0})],Be.prototype,"fetchStyle",2),c([p({attribute:"no-prefetch",type:Boolean,reflect:!0})],Be.prototype,"noPrefetch",2);var bu=Be;Be.define("zn-expanding-action");var Vv=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents;height:100%}`;var Go=class extends C{constructor(){super(...arguments);this.selected=!1}render(){return u`<slot></slot>`}};Go.styles=T(Vv),c([p()],Go.prototype,"caption",2),c([p({type:Number})],Go.prototype,"priority",2),c([p()],Go.prototype,"uri",2),c([p({type:Boolean,reflect:!0})],Go.prototype,"selected",2);var vu=Go;Go.define("zn-tab");var xd="zntab:",a5=["reload","back_forward"],s5="__znTabsVisit",jv="__znTabs",xu=new Set,Uv=0;function yu(){try{return window.sessionStorage}catch{return null}}function yl(){return window.location.pathname+window.location.search}function l5(){return window.performance?.getEntriesByType("navigation")?.[0]?.type??""}function yd(i){return`${i}@${yl()}`}function Gv(){return xd+yd(s5)}function zu(){return yu()?.getItem(Gv())??""}function c5(){let i=yu();i===null||zu()!==""||(Uv+=1,i.setItem(Gv(),`${Date.now()}-${Uv}`))}function zd(){let i=yu();if(i===null)return;let o=`@${yl()}`;for(let t=i.length-1;t>=0;t--){let r=i.key(t);r!==null&&r.startsWith(xd)&&!r.endsWith(o)&&i.removeItem(r)}}a5.includes(l5())&&xu.add(yl());zd();window.addEventListener("popstate",()=>{xu.add(yl()),zd()},{passive:!0});function Wv(){return xu.has(yl())}function vd(i){return i!==null&&typeof i=="object"?i:null}function Kv(){let i=vd(window.history.state),o=i===null?null:vd(i[jv]),t=o===null?null:vd(o.tabs);return o===null||t===null||typeof o.visit!="string"?null:{visit:o.visit,tabs:t}}function wu(i){if(!i)return null;let o=zu(),t=Kv();if(o===""||t===null||t.visit!==o)return null;let r=t.tabs[i];return typeof r=="string"?r:null}function Yv(i,o,t){c5();let r=zu();if(!i||r==="")return;let n=Kv(),a=n!==null&&n.visit===r?n.tabs:{};if(!t&&a[i]===o)return;let s={...vd(window.history.state),[jv]:{visit:r,tabs:{...a,[i]:o}}};t?window.history.pushState(s,"",window.location.href):window.history.replaceState(s,"")}function Xv(i,o){Yv(i,o,!0)}function Qv(i,o){Yv(i,o,!1)}var Jv=E`@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}:host *,:host *::before,:host *::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)}: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-input-height-x-small:24px;--zn-input-height-small:30px;--zn-input-height-medium:36px;--zn-input-height-large:40px;--zn-input-background-color:var(--zn-color-neutral-50);--zn-input-background-color-hover:var(--zn-color-neutral-100);--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}[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-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}[t=aura],.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-border-color:218,212,246;--zn-input-focus-ring-color:hsl(255 82% 68%/40%)}: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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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}@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}}: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}[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-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,[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)}[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}[t=light] .zn-primary,.theme-light .zn-primary{color:rgb(var(--zn-color-primary))}[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}[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}[t=aura],.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:blur(2px)}[t=aura] .zn-primary,.theme-aura .zn-primary{color:rgb(var(--zn-color-primary))}: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)}[t=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 !important}.zn-bt{border-top-style:solid;border-top-width:1px !important}.zn-bb{border-bottom-style:solid;border-bottom-width:1px !important}.zn-bl{border-left-style:solid;border-left-width:1px !important}.zn-br{border-right-style:solid;border-right-width:1px !important}.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-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(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 !important;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-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(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-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(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)}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);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}}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:contents}#mid,#content{flex:1;display:flex;flex-direction:column;overflow:hidden}.tabs{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%;min-height:100%;max-height:100%;width:100%}h1,h2{padding:0;margin:0}#mid{container-type:inline-size;flex-direction:row}#content{flex:1;max-height:100%;min-height:15px;padding:var(--zn-base-gap,0)}#content ::-webkit-scrollbar{width:5px;height:5px}#content{}#content ::-webkit-scrollbar-track{background:transparent}#content{}#content ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}#content{}#content ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}#content{display:flex;align-items:normal;overflow:auto}#content>::slotted(div),#content>div{max-height:100%}:host([no-scroll]) #content{overflow:hidden}:host([no-scroll]) #content>div{max-height:100%}:host([no-scroll]) #content>::slotted(div){max-height:100%}:host([flush]) #content{padding:0}:host([flush-x]) #content{padding-left:0;padding-right:0}#content.contents-slot slot{display:contents}#content ::slotted([selected]),#content>[selected]{flex-grow:1}#content ::slotted(:not([selected])),#content>:not([selected]):not(slot){display:none !important}:host #header~slot[name=top]::slotted(zn-navbar){padding-top:0}:host #header:not(:empty){display:flex;align-items:center;padding:var(--zn-spacing-medium);gap:var(--zn-spacing-medium)}:host #header:not(:empty) #actions ::slotted(*:not(.zn-tb-active)){display:none}:host #header:not(:empty) #actions{display:flex;overflow:visible}:host #header:not(:empty) h1,:host #header:not(:empty) h2{flex-grow:1}:host h2{font-weight:var(--zn-font-weight-bold);flex-grow:1;font-size:var(--zn-font-size-medium);color:rgba(var(--zn-text-panel-title),100%);padding:0;margin:0}::slotted(div[ref-tab]:not(.zn-tb-active)){display:none}`;var wd="zn-tabs, zn-page, zn-page-nav",Nt=class extends C{constructor(){super();this.defaultUri="";this._current="";this._splitMin=60;this.primaryCaption="Navigation";this.secondaryCaption="Content";this.noPrefetch=!1;this.noCache=!1;this.storeTtl=0;this.padded=!1;this.fetchStyle="";this.fullWidth=!1;this.paddedRight=!1;this.preload=!0;this._activeClicks=0;this._activeTab=null;this._tabs=[];this._actions=[];this._knownUri=new Map;this._defaultTab="";this.hasSlotController=new Q(this,"[default]","bottom","right","left","top","actions");this._domObserver=new Lt(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(r=>{r.type==="childList"&&(r.addedNodes.length>0&&this._registerTabs(),r.removedNodes.length>0&&r.removedNodes.forEach(n=>{let a=n instanceof HTMLElement?n.id:"";a&&this.removeTabAndPanel(a)}))})}});this._monitorObserver=new Lt(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(r=>{r.type==="childList"&&r.addedNodes.forEach(n=>{if(n instanceof HTMLElement&&n.id===this.monitor){this.reRegisterTabs();let a=this.getStoredTab();a!==null&&this.restoreStoredTab(a)}})})}});this.handlePopState=()=>{let t=this.getTabStoreKey();if(t===null)return;let r=wu(t);r!==null&&this.restoreStoredTab(r)};this.reRegisterTabs=()=>{this._registerTabs()};this._registerTabs=()=>{Ot("[tab]",this,wd).forEach(t=>{this._addTab(t)}),Ot("[tab-uri]",this,wd).forEach(t=>{t.getAttribute("tab-uri")===""&&(t.setAttribute("tab",""),t.removeAttribute("tab-uri")),this._addTab(t)}),Ot("[ref-tab-uri]",this,wd).forEach(t=>{t.hasAttribute("ref-tab")||(t.setAttribute("ref-tab",this._uriToId(t.getAttribute("ref-tab-uri"))),t.removeAttribute("ref-tab-uri"),this._actions.push(t))})};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.preload=!this.noPrefetch&&!this.noCache,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content"),this.observerDom(),this._registerTabs(),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300);let t=this.defaultUri?this._uriToId(this.defaultUri):"";this._store=new mr(this.localStorage?window.localStorage:window.sessionStorage,xd,this.storeTtl),Array.from(this.children).forEach(r=>{r.slot===""&&this._panels.set(r.getAttribute("id")||t,[r])}),this.observerDom(),this.monitorDom(),window.addEventListener("popstate",this.handlePopState,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this.handlePopState),setTimeout(()=>{this.isConnected||zd()})}monitorDom(){this.monitor&&this._monitorObserver.observe(this)}getTabStoreKey(){return this.storeKey||null}getStoredTab(){let t=this.getTabStoreKey();if(t===null||!this._store)return null;if(this.localStorage)return this._store.get(t);let r=this._store.get(yd(t));if(r===null)return null;let n=wu(t);return n!==null?n:Wv()?r:null}storeActiveTab(t){let r=this.getTabStoreKey();if(r===null||!this._store)return;let n=this.getUriForTabId(t)??t;this._store.set(this.localStorage?r:yd(r),n),this.localStorage||Qv(r,n)}restoreStoredTab(t){let r=this._tabs.find(n=>n.getAttribute("tab-uri")===t);if(r){this.clickTab(r,!1);return}this._prepareTab(t),this.setActiveTab(t,!0,!1)}activateDefaultTab(){if(!this._panels.has(this._defaultTab)&&this._tabs.length>0&&this._tabs[0].getAttribute("tab-uri")){this.clickTab(this._tabs[0],!1);return}this.setActiveTab(this._defaultTab,!0,!1)}pushTabHistory(t){let r=this.getTabStoreKey();r===null||this.localStorage||Xv(r,this.getUriForTabId(t)??t)}getUriForTabId(t){for(let[r,n]of this._knownUri)if(n===t)return r;return null}_addPanel(t){this._panels.has(t.getAttribute("id"))||this._panels.set(t.getAttribute("id"),[t])}_addTab(t){this._tabs.includes(t)||(this._tabs.push(t),this.preload&&t.addEventListener("mouseover",this.fetchUriTab.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerTabs(),this._defaultTab=this._current||"";let r=this.getStoredTab();if(r!==null){this.restoreStoredTab(r);return}this.activateDefaultTab()},10),this.addEventListener("zn-menu-select",()=>{setTimeout(this.reRegisterTabs,200)},{passive:!0})}switchTab(t){let r=this._panels.size;if(r<2)return;let a=Array.from(this._panels.keys()).indexOf(this._current)+t;a<0?a=r-1:a>=r&&(a=0);let s=Array.from(this._panels.keys())[a];this.setActiveTab(s,!0,!1,null,!0)}nextTab(){this.switchTab(1)}previousTab(){this.switchTab(-1)}_prepareTab(t){for(let r of this._tabs)if(r.getAttribute("tab")===t)return;for(let r of Ot("[tab-uri]",this,wd)){let n=r.getAttribute("tab-uri"),a=this._uriToId(n);a===t&&this._createUriPanel(r,n,a)}}_uriToId(t){return"tab-"+bd(t).substr(0,8)+"-"+this.masterId}_createUriPanel(t,r,n){if(t.hasAttribute("tab")||(t.setAttribute("tab",n),this._setTabEleActive(t,this._current===n)),this._knownUri.has(r)||this._knownUri.set(r,n),this._panels.has(n)&&this._panels.get(n)!==void 0)return this._panels.get(n)[0];let a=document.createElement("div");return a.setAttribute("id",n),this.fetchStyle!==""?a.setAttribute("data-fetch-style",this.fetchStyle):t.hasAttribute("data-fetch-style")&&a.setAttribute("data-fetch-style",t.getAttribute("data-fetch-style")??""),a.setAttribute("data-self-uri",r),a.textContent="Loading ...",this._panel instanceof HTMLElement&&(this._panel.appendChild(a),this._panels.set(n,[a])),document.dispatchEvent(new CustomEvent("zn-new-element",{detail:{element:a,source:t}})),a}_handleClick(t){let r=t.relatedTarget??t.target;r&&("startViewTransition"in document?document.startViewTransition(()=>this.clickTab(r,t.altKey,!0)):this.clickTab(r,t.altKey,!0))}fetchUriTab(t){if(!t.hasAttribute("tab")&&t.hasAttribute("tab-uri")){let r=t.getAttribute("tab-uri")??"";this._createUriPanel(t,r,this._uriToId(r)),t.setAttribute("tab-id",this._uriToId(r))}}clickTab(t,r,n=!1){let a=t.getAttribute("tab-uri"),s=!!a&&this._panels.has(this._uriToId(a));if(this.fetchUriTab(t),t.hasAttribute("tab")){let l=r||this.noCache&&s;setTimeout(()=>{this.setActiveTab(t.getAttribute("tab")||"",!0,l,this.getRefTab(t),n)},10)}}getRefTab(t){let r=t;for(;r;){if(r===this)return null;if(r.hasAttribute("ref-tab"))return r.getAttribute("ref-tab");r=r?.parentElement||r?.getRootNode()?.host}return null}setActiveTab(t,r,n,a=null,s=!1){let l=this._current,d=!1;this._tabs.forEach(h=>{h.hasAttribute("tab-uri")&&this._knownUri.has(h.getAttribute("tab-uri"))&&h.setAttribute("tab",this._knownUri.get(h.getAttribute("tab-uri")));let m=t===h.getAttribute("tab");!m&&a&&!this.getRefTab(h)&&(m=a===h.getAttribute("tab")),d=d||m,this._setTabEleActive(h,m)}),!d&&this._tabs.length>0&&this._setTabEleActive(this._tabs[0],!0),this._actions.forEach(h=>this._setTabEleActive(h,h.getAttribute("ref-tab")===(a||t))),this.selectTab(t,n),s&&this._current===t&&l!==t&&this.pushTabHistory(t),r&&this.storeActiveTab(t)}_setTabEleActive(t,r){r&&(this._activeTab=t),t.classList.toggle("zn-tb-active",r),t.classList.toggle("active",r)}selectTab(t,r){if(t&&!this._panels.has(t))return!1;this._current===t?(this._activeClicks++,this._activeClicks>2&&(r=!0,this._activeClicks=0)):this._activeClicks=0;let a=!0;return this._panels.forEach((l,d)=>{let h=d===t;l.forEach(m=>{if(h&&m.parentNode!==this&&(a=!1),m.toggleAttribute("selected",h),h&&r){let f="",b="";this._activeTab&&this._activeTab.hasAttribute("tab-uri")&&(f=this._activeTab.getAttribute("tab-uri"),b=this._activeTab.getAttribute("gaid")),document.dispatchEvent(new CustomEvent("zn-refresh-element",{detail:{element:m,uri:f,gaid:b}}))}})}),this._panel&&this._panel.classList.toggle("contents-slot",!a),this._current=t,!0}getActiveTab(){return this._panels.get(this._current)||[]}observerDom(){this._domObserver.observe(this)}removeTabAndPanel(t){this._current===t&&this.setActiveTab("",!0,!1);for(let r of this._tabs)if(r.getAttribute("tab")===t){if(r.hasAttribute("tab-uri")){let n=r.getAttribute("tab-uri");this._knownUri.has(n)&&this._knownUri.delete(n)}r.parentElement?.removeChild(r),this._tabs.splice(this._tabs.indexOf(r),1)}if(this._panels.has(t)){let r=this._panels.get(t);r instanceof HTMLElement?r.remove():r instanceof Array&&r.forEach(n=>{n instanceof HTMLElement&&n.remove()}),this._panels.delete(t)}}render(){let t=this.hasSlotController.test("actions"),r=this.caption&&this.caption.length>0,n=this.description&&this.description.length>0,a=r||t||n;if(this._split>0){let s=this.storeKey;s&&(s+="-split");let l="secondary";return this.querySelectorAll('[slot="right"]').length>0&&(l="primary"),u`
|
|
1603
|
+
</zn-button>`}};Be.styles=T(Bv),c([p()],Be.prototype,"icon",2),c([p()],Be.prototype,"method",2),c([p({attribute:"context-uri",reflect:!0})],Be.prototype,"contextUri",2),c([p({reflect:!0})],Be.prototype,"count",2),c([p({reflect:!0})],Be.prototype,"color",2),c([p({type:Boolean})],Be.prototype,"prefetch",2),c([p()],Be.prototype,"basis",2),c([p({attribute:"max-height"})],Be.prototype,"maxHeight",2),c([p({reflect:!0,type:Boolean})],Be.prototype,"open",2),c([p({attribute:"master-id",reflect:!0})],Be.prototype,"masterId",2),c([p({attribute:"fetch-style",type:String,reflect:!0})],Be.prototype,"fetchStyle",2),c([p({attribute:"no-prefetch",type:Boolean,reflect:!0})],Be.prototype,"noPrefetch",2);var bu=Be;Be.define("zn-expanding-action");var Vv=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents;height:100%}`;var Go=class extends C{constructor(){super(...arguments);this.selected=!1}render(){return u`<slot></slot>`}};Go.styles=T(Vv),c([p()],Go.prototype,"caption",2),c([p({type:Number})],Go.prototype,"priority",2),c([p()],Go.prototype,"uri",2),c([p({type:Boolean,reflect:!0})],Go.prototype,"selected",2);var vu=Go;Go.define("zn-tab");var xd="zntab:",a5=["reload","back_forward"],s5="__znTabsVisit",jv="__znTabs",xu=new Set,Uv=0;function yu(){try{return window.sessionStorage}catch{return null}}function yl(){return window.location.pathname+window.location.search}function l5(){return window.performance?.getEntriesByType("navigation")?.[0]?.type??""}function yd(i){return`${i}@${yl()}`}function Gv(){return xd+yd(s5)}function zu(){return yu()?.getItem(Gv())??""}function c5(){let i=yu();i===null||zu()!==""||(Uv+=1,i.setItem(Gv(),`${Date.now()}-${Uv}`))}function zd(){let i=yu();if(i===null)return;let o=`@${yl()}`;for(let t=i.length-1;t>=0;t--){let r=i.key(t);r!==null&&r.startsWith(xd)&&!r.endsWith(o)&&i.removeItem(r)}}a5.includes(l5())&&xu.add(yl());zd();window.addEventListener("popstate",()=>{xu.add(yl()),zd()},{passive:!0});function Wv(){return xu.has(yl())}function vd(i){return i!==null&&typeof i=="object"?i:null}function Kv(){let i=vd(window.history.state),o=i===null?null:vd(i[jv]),t=o===null?null:vd(o.tabs);return o===null||t===null||typeof o.visit!="string"?null:{visit:o.visit,tabs:t}}function wu(i){if(!i)return null;let o=zu(),t=Kv();if(o===""||t===null||t.visit!==o)return null;let r=t.tabs[i];return typeof r=="string"?r:null}function Yv(i,o,t){c5();let r=zu();if(!i||r==="")return;let n=Kv(),a=n!==null&&n.visit===r?n.tabs:{};if(!t&&a[i]===o)return;let s={...vd(window.history.state),[jv]:{visit:r,tabs:{...a,[i]:o}}};t?window.history.pushState(s,"",window.location.href):window.history.replaceState(s,"")}function Xv(i,o){Yv(i,o,!0)}function Qv(i,o){Yv(i,o,!1)}var Jv=E`@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}:host *,:host *::before,:host *::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)}: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-input-height-x-small:24px;--zn-input-height-small:30px;--zn-input-height-medium:36px;--zn-input-height-large:40px;--zn-input-background-color:var(--zn-color-neutral-50);--zn-input-background-color-hover:var(--zn-color-neutral-100);--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}[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-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}[t=aura],.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-border-color:218,212,246;--zn-input-focus-ring-color:hsl(255 82% 68%/40%)}: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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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}@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}}: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}[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-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,[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)}[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}[t=light] .zn-primary,.theme-light .zn-primary{color:rgb(var(--zn-color-primary))}[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}[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}[t=aura],.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:blur(2px)}[t=aura] .zn-primary,.theme-aura .zn-primary{color:rgb(var(--zn-color-primary))}: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)}[t=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 !important}.zn-bt{border-top-style:solid;border-top-width:1px !important}.zn-bb{border-bottom-style:solid;border-bottom-width:1px !important}.zn-bl{border-left-style:solid;border-left-width:1px !important}.zn-br{border-right-style:solid;border-right-width:1px !important}.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-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(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 !important;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-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(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-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(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)}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);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}}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:contents}#mid,#content{flex:1;display:flex;flex-direction:column;overflow:hidden}.tabs{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100%;min-height:100%;max-height:100%;width:100%}h1,h2{padding:0;margin:0}#mid{container-type:inline-size;flex-direction:row}#content{flex:1;max-height:100%;min-height:15px;padding:var(--zn-base-gap,0)}#content ::-webkit-scrollbar{width:5px;height:5px}#content{}#content ::-webkit-scrollbar-track{background:transparent}#content{}#content ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}#content{}#content ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}#content{display:flex;align-items:normal;overflow:auto}#content>::slotted(div),#content>div{max-height:100%}:host([no-scroll]) #content{overflow:hidden}:host([no-scroll]) #content>div{max-height:100%}:host([no-scroll]) #content>::slotted(div){max-height:100%}:host([flush]) #content{padding:0}:host([flush-x]) #content{padding-left:0;padding-right:0}#content.contents-slot slot{display:contents}#content ::slotted([selected]),#content>[selected]{flex-grow:1}#content ::slotted(:not([selected])),#content>:not([selected]):not(slot){display:none !important}:host #header~slot[name=top]::slotted(zn-navbar){padding-top:0}:host #header:not(:empty){display:flex;align-items:center;padding:var(--zn-spacing-medium);gap:var(--zn-spacing-medium)}:host #header:not(:empty) #actions ::slotted(*:not(.zn-tb-active)){display:none}:host #header:not(:empty) #actions{display:flex;overflow:visible}:host #header:not(:empty) h1,:host #header:not(:empty) h2{flex-grow:1}:host h2{font-weight:var(--zn-font-weight-bold);flex-grow:1;font-size:var(--zn-font-size-medium);color:rgba(var(--zn-text-panel-title),100%);padding:0;margin:0}::slotted(div[ref-tab]:not(.zn-tb-active)){display:none}`;var wd="zn-tabs, zn-page, zn-page-nav",Nt=class extends C{constructor(){super();this.defaultUri="";this._current="";this._splitMin=60;this.primaryCaption="Navigation";this.secondaryCaption="Content";this.noPrefetch=!1;this.noCache=!1;this.storeTtl=0;this.padded=!1;this.fetchStyle="";this.fullWidth=!1;this.paddedRight=!1;this.preload=!0;this._activeClicks=0;this._activeTab=null;this._tabs=[];this._actions=[];this._knownUri=new Map;this._defaultTab="";this.hasSlotController=new Q(this,"[default]","bottom","right","left","top","actions");this._domObserver=new Lt(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(r=>{r.type==="childList"&&(r.addedNodes.length>0&&this._registerTabs(),r.removedNodes.length>0&&r.removedNodes.forEach(n=>{let a=n instanceof HTMLElement?n.id:"";a&&this.removeTabAndPanel(a)}))})}});this._monitorObserver=new Lt(this,{target:null,config:{childList:!0,subtree:!0},callback:t=>{t.forEach(r=>{r.type==="childList"&&r.addedNodes.forEach(n=>{if(n instanceof HTMLElement&&n.id===this.monitor){this.reRegisterTabs();let a=this.getStoredTab();a!==null&&this.restoreStoredTab(a)}})})}});this.handlePopState=()=>{let t=this.getTabStoreKey();if(t===null)return;let r=wu(t);r!==null&&this.restoreStoredTab(r)};this.reRegisterTabs=()=>{this._registerTabs()};this._registerTabs=()=>{Pt("[tab]",this,wd).forEach(t=>{this._addTab(t)}),Pt("[tab-uri]",this,wd).forEach(t=>{t.getAttribute("tab-uri")===""&&(t.setAttribute("tab",""),t.removeAttribute("tab-uri")),this._addTab(t)}),Pt("[ref-tab-uri]",this,wd).forEach(t=>{t.hasAttribute("ref-tab")||(t.setAttribute("ref-tab",this._uriToId(t.getAttribute("ref-tab-uri"))),t.removeAttribute("ref-tab-uri"),this._actions.push(t))})};this._panels=new Map}async connectedCallback(){super.connectedCallback(),this.masterId||(this.masterId=this.storeKey||Math.floor(Math.random()*1e6).toString()),this.preload=!this.noPrefetch&&!this.noCache,await this.updateComplete,this._panel=this.shadowRoot?.querySelector("#content"),this.observerDom(),this._registerTabs(),this.storeKey&&this.storeTtl===0&&(this.storeTtl=300);let t=this.defaultUri?this._uriToId(this.defaultUri):"";this._store=new mr(this.localStorage?window.localStorage:window.sessionStorage,xd,this.storeTtl),Array.from(this.children).forEach(r=>{r.slot===""&&this._panels.set(r.getAttribute("id")||t,[r])}),this.observerDom(),this.monitorDom(),window.addEventListener("popstate",this.handlePopState,{passive:!0})}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("popstate",this.handlePopState),setTimeout(()=>{this.isConnected||zd()})}monitorDom(){this.monitor&&this._monitorObserver.observe(this)}getTabStoreKey(){return this.storeKey||null}getStoredTab(){let t=this.getTabStoreKey();if(t===null||!this._store)return null;if(this.localStorage)return this._store.get(t);let r=this._store.get(yd(t));if(r===null)return null;let n=wu(t);return n!==null?n:Wv()?r:null}storeActiveTab(t){let r=this.getTabStoreKey();if(r===null||!this._store)return;let n=this.getUriForTabId(t)??t;this._store.set(this.localStorage?r:yd(r),n),this.localStorage||Qv(r,n)}restoreStoredTab(t){let r=this._tabs.find(n=>n.getAttribute("tab-uri")===t);if(r){this.clickTab(r,!1);return}this._prepareTab(t),this.setActiveTab(t,!0,!1)}activateDefaultTab(){if(!this._panels.has(this._defaultTab)&&this._tabs.length>0&&this._tabs[0].getAttribute("tab-uri")){this.clickTab(this._tabs[0],!1);return}this.setActiveTab(this._defaultTab,!0,!1)}pushTabHistory(t){let r=this.getTabStoreKey();r===null||this.localStorage||Xv(r,this.getUriForTabId(t)??t)}getUriForTabId(t){for(let[r,n]of this._knownUri)if(n===t)return r;return null}_addPanel(t){this._panels.has(t.getAttribute("id"))||this._panels.set(t.getAttribute("id"),[t])}_addTab(t){this._tabs.includes(t)||(this._tabs.push(t),this.preload&&t.addEventListener("mouseover",this.fetchUriTab.bind(this,t)),t.addEventListener("click",this._handleClick.bind(this)))}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>{this._registerTabs(),this._defaultTab=this._current||"";let r=this.getStoredTab();if(r!==null){this.restoreStoredTab(r);return}this.activateDefaultTab()},10),this.addEventListener("zn-menu-select",()=>{setTimeout(this.reRegisterTabs,200)},{passive:!0})}switchTab(t){let r=this._panels.size;if(r<2)return;let a=Array.from(this._panels.keys()).indexOf(this._current)+t;a<0?a=r-1:a>=r&&(a=0);let s=Array.from(this._panels.keys())[a];this.setActiveTab(s,!0,!1,null,!0)}nextTab(){this.switchTab(1)}previousTab(){this.switchTab(-1)}_prepareTab(t){for(let r of this._tabs)if(r.getAttribute("tab")===t)return;for(let r of Pt("[tab-uri]",this,wd)){let n=r.getAttribute("tab-uri"),a=this._uriToId(n);a===t&&this._createUriPanel(r,n,a)}}_uriToId(t){return"tab-"+bd(t).substr(0,8)+"-"+this.masterId}_createUriPanel(t,r,n){if(t.hasAttribute("tab")||(t.setAttribute("tab",n),this._setTabEleActive(t,this._current===n)),this._knownUri.has(r)||this._knownUri.set(r,n),this._panels.has(n)&&this._panels.get(n)!==void 0)return this._panels.get(n)[0];let a=document.createElement("div");return a.setAttribute("id",n),this.fetchStyle!==""?a.setAttribute("data-fetch-style",this.fetchStyle):t.hasAttribute("data-fetch-style")&&a.setAttribute("data-fetch-style",t.getAttribute("data-fetch-style")??""),a.setAttribute("data-self-uri",r),a.textContent="Loading ...",this._panel instanceof HTMLElement&&(this._panel.appendChild(a),this._panels.set(n,[a])),document.dispatchEvent(new CustomEvent("zn-new-element",{detail:{element:a,source:t}})),a}_handleClick(t){let r=t.relatedTarget??t.target;r&&("startViewTransition"in document?document.startViewTransition(()=>this.clickTab(r,t.altKey,!0)):this.clickTab(r,t.altKey,!0))}fetchUriTab(t){if(!t.hasAttribute("tab")&&t.hasAttribute("tab-uri")){let r=t.getAttribute("tab-uri")??"";this._createUriPanel(t,r,this._uriToId(r)),t.setAttribute("tab-id",this._uriToId(r))}}clickTab(t,r,n=!1){let a=t.getAttribute("tab-uri"),s=!!a&&this._panels.has(this._uriToId(a));if(this.fetchUriTab(t),t.hasAttribute("tab")){let l=r||this.noCache&&s;setTimeout(()=>{this.setActiveTab(t.getAttribute("tab")||"",!0,l,this.getRefTab(t),n)},10)}}getRefTab(t){let r=t;for(;r;){if(r===this)return null;if(r.hasAttribute("ref-tab"))return r.getAttribute("ref-tab");r=r?.parentElement||r?.getRootNode()?.host}return null}setActiveTab(t,r,n,a=null,s=!1){let l=this._current,d=!1;this._tabs.forEach(h=>{h.hasAttribute("tab-uri")&&this._knownUri.has(h.getAttribute("tab-uri"))&&h.setAttribute("tab",this._knownUri.get(h.getAttribute("tab-uri")));let m=t===h.getAttribute("tab");!m&&a&&!this.getRefTab(h)&&(m=a===h.getAttribute("tab")),d=d||m,this._setTabEleActive(h,m)}),!d&&this._tabs.length>0&&this._setTabEleActive(this._tabs[0],!0),this._actions.forEach(h=>this._setTabEleActive(h,h.getAttribute("ref-tab")===(a||t))),this.selectTab(t,n),s&&this._current===t&&l!==t&&this.pushTabHistory(t),r&&this.storeActiveTab(t)}_setTabEleActive(t,r){r&&(this._activeTab=t),t.classList.toggle("zn-tb-active",r),t.classList.toggle("active",r)}selectTab(t,r){if(t&&!this._panels.has(t))return!1;this._current===t?(this._activeClicks++,this._activeClicks>2&&(r=!0,this._activeClicks=0)):this._activeClicks=0;let a=!0;return this._panels.forEach((l,d)=>{let h=d===t;l.forEach(m=>{if(h&&m.parentNode!==this&&(a=!1),m.toggleAttribute("selected",h),h&&r){let f="",b="";this._activeTab&&this._activeTab.hasAttribute("tab-uri")&&(f=this._activeTab.getAttribute("tab-uri"),b=this._activeTab.getAttribute("gaid")),document.dispatchEvent(new CustomEvent("zn-refresh-element",{detail:{element:m,uri:f,gaid:b}}))}})}),this._panel&&this._panel.classList.toggle("contents-slot",!a),this._current=t,!0}getActiveTab(){return this._panels.get(this._current)||[]}observerDom(){this._domObserver.observe(this)}removeTabAndPanel(t){this._current===t&&this.setActiveTab("",!0,!1);for(let r of this._tabs)if(r.getAttribute("tab")===t){if(r.hasAttribute("tab-uri")){let n=r.getAttribute("tab-uri");this._knownUri.has(n)&&this._knownUri.delete(n)}r.parentElement?.removeChild(r),this._tabs.splice(this._tabs.indexOf(r),1)}if(this._panels.has(t)){let r=this._panels.get(t);r instanceof HTMLElement?r.remove():r instanceof Array&&r.forEach(n=>{n instanceof HTMLElement&&n.remove()}),this._panels.delete(t)}}render(){let t=this.hasSlotController.test("actions"),r=this.caption&&this.caption.length>0,n=this.description&&this.description.length>0,a=r||t||n;if(this._split>0){let s=this.storeKey;s&&(s+="-split");let l="secondary";return this.querySelectorAll('[slot="right"]').length>0&&(l="primary"),u`
|
|
1604
1604
|
<slot name="top"></slot>
|
|
1605
1605
|
<div id="mid">
|
|
1606
1606
|
<zn-split-pane
|
|
@@ -1933,7 +1933,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
1933
1933
|
</zn-dialog>
|
|
1934
1934
|
`:V}
|
|
1935
1935
|
|
|
1936
|
-
</div>`}};zt.styles=T(t0),zt.dependencies={"zn-icon":ct,"zn-button":Ct,"zn-dialog":la,"zn-input":Ce,"zn-select":ce,"zn-option":Oe},zt.freeInputLibraries=new Set(["gravatar","libravatar","avatar"]),c([p()],zt.prototype,"name",2),c([p()],zt.prototype,"icon",2),c([p()],zt.prototype,"label",2),c([p()],zt.prototype,"library",2),c([p()],zt.prototype,"color",2),c([p({type:Boolean,attribute:"no-color"})],zt.prototype,"noColor",2),c([p({type:Boolean,attribute:"no-library"})],zt.prototype,"noLibrary",2),c([p({attribute:"help-text"})],zt.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],zt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],zt.prototype,"required",2),c([p({type:Boolean,attribute:"trigger-submit"})],zt.prototype,"triggerSubmit",2),c([p({type:Boolean,attribute:"allow-upload"})],zt.prototype,"allowUpload",2),c([p()],zt.prototype,"accept",2),c([p({reflect:!0})],zt.prototype,"form",2),c([re()],zt.prototype,"defaultValue",2),c([O()],zt.prototype,"_dialogOpen",2),c([O()],zt.prototype,"_searchQuery",2),c([O()],zt.prototype,"_iconList",2),c([O()],zt.prototype,"_filteredIcons",2),c([O()],zt.prototype,"_pendingIcon",2),c([O()],zt.prototype,"_pendingLibrary",2),c([O()],zt.prototype,"_pendingColor",2),c([O()],zt.prototype,"_pendingFile",2),c([O()],zt.prototype,"_pendingFileUrl",2),c([O()],zt.prototype,"_mode",2),c([O()],zt.prototype,"_file",2),c([O()],zt.prototype,"_fileUrl",2),c([F("zn-dialog")],zt.prototype,"_dialog",2),c([F(".icon-picker__file-input")],zt.prototype,"_fileInput",2);var Za=zt;var p5=Za;Za.define("zn-icon-picker");var e0=E`@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}:host *,:host *::before,:host *::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)}button,.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(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 !important;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-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(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-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(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}: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 dt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(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 Q(this,"help-text","[default]");this.conditionalController=new Qa(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.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 ce&&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 ce&&!this.isEditing&&await this.input.hide(),this.conditionalController.check()}moveSlottedOptionsToSelect(){if(!(this.input instanceof ce))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`
|
|
1936
|
+
</div>`}};zt.styles=T(t0),zt.dependencies={"zn-icon":ct,"zn-button":Ct,"zn-dialog":la,"zn-input":Ce,"zn-select":ce,"zn-option":Oe},zt.freeInputLibraries=new Set(["gravatar","libravatar","avatar"]),c([p()],zt.prototype,"name",2),c([p()],zt.prototype,"icon",2),c([p()],zt.prototype,"label",2),c([p()],zt.prototype,"library",2),c([p()],zt.prototype,"color",2),c([p({type:Boolean,attribute:"no-color"})],zt.prototype,"noColor",2),c([p({type:Boolean,attribute:"no-library"})],zt.prototype,"noLibrary",2),c([p({attribute:"help-text"})],zt.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],zt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],zt.prototype,"required",2),c([p({type:Boolean,attribute:"trigger-submit"})],zt.prototype,"triggerSubmit",2),c([p({type:Boolean,attribute:"allow-upload"})],zt.prototype,"allowUpload",2),c([p()],zt.prototype,"accept",2),c([p({reflect:!0})],zt.prototype,"form",2),c([re()],zt.prototype,"defaultValue",2),c([O()],zt.prototype,"_dialogOpen",2),c([O()],zt.prototype,"_searchQuery",2),c([O()],zt.prototype,"_iconList",2),c([O()],zt.prototype,"_filteredIcons",2),c([O()],zt.prototype,"_pendingIcon",2),c([O()],zt.prototype,"_pendingLibrary",2),c([O()],zt.prototype,"_pendingColor",2),c([O()],zt.prototype,"_pendingFile",2),c([O()],zt.prototype,"_pendingFileUrl",2),c([O()],zt.prototype,"_mode",2),c([O()],zt.prototype,"_file",2),c([O()],zt.prototype,"_fileUrl",2),c([F("zn-dialog")],zt.prototype,"_dialog",2),c([F(".icon-picker__file-input")],zt.prototype,"_fileInput",2);var Za=zt;var p5=Za;Za.define("zn-icon-picker");var e0=E`@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}:host *,:host *::before,:host *::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)}button,.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(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 !important;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-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(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-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(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}: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 dt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(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 Q(this,"help-text","[default]");this.conditionalController=new Qa(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.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 ce&&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 ce&&!this.isEditing&&await this.input.hide(),this.conditionalController.check()}moveSlottedOptionsToSelect(){if(!(this.input instanceof ce))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`
|
|
1937
1937
|
<div class="${D({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">
|
|
1938
1938
|
|
|
1939
1939
|
<div class="ai__left" @click="${this.disabled?void 0:this.handleEditClick}">
|
|
@@ -1993,6 +1993,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
1993
1993
|
slash-trigger="${this.slashTrigger}"
|
|
1994
1994
|
slash-heading="${this.slashHeading}"
|
|
1995
1995
|
slash-preset="${this.slashPreset}"
|
|
1996
|
+
?slash-hide-keys="${this.slashHideKeys}"
|
|
1996
1997
|
.slashItems="${this.slashItems}"
|
|
1997
1998
|
.slashItemsProvider="${this.slashItemsProvider}"
|
|
1998
1999
|
@zn-input="${this.handleInput}"
|
|
@@ -2011,6 +2012,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
2011
2012
|
slash-trigger="${this.slashTrigger}"
|
|
2012
2013
|
slash-heading="${this.slashHeading}"
|
|
2013
2014
|
slash-preset="${this.slashPreset}"
|
|
2015
|
+
?slash-hide-keys="${this.slashHideKeys}"
|
|
2014
2016
|
.slashItems="${this.slashItems}"
|
|
2015
2017
|
.slashItemsProvider="${this.slashItemsProvider}"
|
|
2016
2018
|
@zn-input="${this.handleInput}"
|
|
@@ -2066,7 +2068,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
2066
2068
|
@zn-blur="${this.handleBlur}"
|
|
2067
2069
|
@zn-input="${this.handleInput}"
|
|
2068
2070
|
>
|
|
2069
|
-
</zn-data-select>`}};dt.styles=T(e0),c([p()],dt.prototype,"value",2),c([p()],dt.prototype,"name",2),c([p({reflect:!0})],dt.prototype,"placeholder",2),c([p({attribute:"edit-text"})],dt.prototype,"editText",2),c([p({attribute:"display-value"})],dt.prototype,"displayValue",2),c([p({type:Boolean,attribute:"clear-on-edit"})],dt.prototype,"clearOnEdit",2),c([p()],dt.prototype,"conditional",2),c([p({type:Boolean})],dt.prototype,"disabled",2),c([p({type:Boolean})],dt.prototype,"inline",2),c([p({type:Boolean})],dt.prototype,"padded",2),c([p({reflect:!0})],dt.prototype,"size",2),c([p({type:Boolean})],dt.prototype,"required",2),c([p()],dt.prototype,"pattern",2),c([p({type:Boolean,reflect:!0})],dt.prototype,"multiple",2),c([p({type:Boolean})],dt.prototype,"clearable",2),c([p()],dt.prototype,"min",2),c([p()],dt.prototype,"max",2),c([p()],dt.prototype,"step",2),c([p({attribute:"input-type"})],dt.prototype,"inputType",2),c([p({attribute:"textarea-rows",type:Number})],dt.prototype,"textareaRows",2),c([p({attribute:"slash-items",converter:{fromAttribute:t=>pi(t),toAttribute:t=>JSON.stringify(t)}})],dt.prototype,"slashItems",2),c([p({attribute:"slash-preset"})],dt.prototype,"slashPreset",2),c([p({attribute:"slash-trigger"})],dt.prototype,"slashTrigger",2),c([p({attribute:"slash-heading"})],dt.prototype,"slashHeading",2),c([p({attribute:!1})],dt.prototype,"slashItemsProvider",2),c([p({type:Object})],dt.prototype,"options",2),c([p({attribute:"provider"})],dt.prototype,"selectProvider",2),c([p({attribute:"icon-position",type:Boolean})],dt.prototype,"iconPosition",2),c([p({attribute:"data-uri"})],dt.prototype,"dataUri",2),c([p({attribute:"context-data"})],dt.prototype,"contextData",2),c([p({type:Boolean})],dt.prototype,"search",2),c([p({type:Boolean,attribute:"free-text"})],dt.prototype,"freeText",2),c([p({attribute:"help-text"})],dt.prototype,"helpText",2),c([p()],dt.prototype,"dir",2),c([p()],dt.prototype,"autocomplete",2),c([O()],dt.prototype,"hasFocus",2),c([O()],dt.prototype,"isEditing",2),c([F(".ai__input")],dt.prototype,"input",2),c([re("value")],dt.prototype,"defaultValue",2),c([K("value",{waitUntilFirstUpdate:!0})],dt.prototype,"handleValueChange",1),c([K("isEditing",{waitUntilFirstUpdate:!0})],dt.prototype,"handleIsEditingChange",1);var _d=dt;dt.define("zn-inline-edit");var r0=E`@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}:host *,:host *::before,:host *::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 Ko=class extends C{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`
|
|
2071
|
+
</zn-data-select>`}};dt.styles=T(e0),c([p()],dt.prototype,"value",2),c([p()],dt.prototype,"name",2),c([p({reflect:!0})],dt.prototype,"placeholder",2),c([p({attribute:"edit-text"})],dt.prototype,"editText",2),c([p({attribute:"display-value"})],dt.prototype,"displayValue",2),c([p({type:Boolean,attribute:"clear-on-edit"})],dt.prototype,"clearOnEdit",2),c([p()],dt.prototype,"conditional",2),c([p({type:Boolean})],dt.prototype,"disabled",2),c([p({type:Boolean})],dt.prototype,"inline",2),c([p({type:Boolean})],dt.prototype,"padded",2),c([p({reflect:!0})],dt.prototype,"size",2),c([p({type:Boolean})],dt.prototype,"required",2),c([p()],dt.prototype,"pattern",2),c([p({type:Boolean,reflect:!0})],dt.prototype,"multiple",2),c([p({type:Boolean})],dt.prototype,"clearable",2),c([p()],dt.prototype,"min",2),c([p()],dt.prototype,"max",2),c([p()],dt.prototype,"step",2),c([p({attribute:"input-type"})],dt.prototype,"inputType",2),c([p({attribute:"textarea-rows",type:Number})],dt.prototype,"textareaRows",2),c([p({attribute:"slash-items",converter:{fromAttribute:t=>pi(t),toAttribute:t=>JSON.stringify(t)}})],dt.prototype,"slashItems",2),c([p({attribute:"slash-preset"})],dt.prototype,"slashPreset",2),c([p({attribute:"slash-trigger"})],dt.prototype,"slashTrigger",2),c([p({attribute:"slash-heading"})],dt.prototype,"slashHeading",2),c([p({attribute:"slash-hide-keys",type:Boolean})],dt.prototype,"slashHideKeys",2),c([p({attribute:!1})],dt.prototype,"slashItemsProvider",2),c([p({type:Object})],dt.prototype,"options",2),c([p({attribute:"provider"})],dt.prototype,"selectProvider",2),c([p({attribute:"icon-position",type:Boolean})],dt.prototype,"iconPosition",2),c([p({attribute:"data-uri"})],dt.prototype,"dataUri",2),c([p({attribute:"context-data"})],dt.prototype,"contextData",2),c([p({type:Boolean})],dt.prototype,"search",2),c([p({type:Boolean,attribute:"free-text"})],dt.prototype,"freeText",2),c([p({attribute:"help-text"})],dt.prototype,"helpText",2),c([p()],dt.prototype,"dir",2),c([p()],dt.prototype,"autocomplete",2),c([O()],dt.prototype,"hasFocus",2),c([O()],dt.prototype,"isEditing",2),c([F(".ai__input")],dt.prototype,"input",2),c([re("value")],dt.prototype,"defaultValue",2),c([K("value",{waitUntilFirstUpdate:!0})],dt.prototype,"handleValueChange",1),c([K("isEditing",{waitUntilFirstUpdate:!0})],dt.prototype,"handleIsEditingChange",1);var _d=dt;dt.define("zn-inline-edit");var r0=E`@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}:host *,:host *::before,:host *::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 Ko=class extends C{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`
|
|
2070
2072
|
<div class="pagination__item">
|
|
2071
2073
|
${this.page>1?u`
|
|
2072
2074
|
<a class="pagination__button pagination__button--prev" href="${this._createLink(this.page-1)}">
|
|
@@ -2185,7 +2187,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
2185
2187
|
${this._header}
|
|
2186
2188
|
<div class="${D({pane__content:!0,"pane__content--flush":this.flush})}">
|
|
2187
2189
|
<slot></slot>
|
|
2188
|
-
</div>`}};fi.styles=T(s0),c([p({type:Boolean})],fi.prototype,"flush",2);var b5=fi;fi.define("zn-pane");function kd(i,o,t,r){function n(a){let s=a.composedPath?.()||a.path||[a.target];for(let l of s){if(l instanceof Element&&l.matches(t))return a.selectedTarget=l,r(a);if(l===i)break}return!1}return i.addEventListener(o,n),()=>i.removeEventListener(o,n)}var l0=E`@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}:host *,:host *::before,:host *::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([gap]){gap:0 calc(var(--zn-base-gap) / 2)}::slotted(*){display:flex;flex-direction:column;height:100%;overflow-y:auto}:host{display:flex;height:100%;max-height:100%;min-height:100%;width:100%;flex:1;min-width:350px;container-type:inline-size;position:relative}:host #primary-pane,:host #secondary-pane{flex-grow:1;flex-shrink:1}:host slot{overflow:auto}:host #resizer{position:relative}:host #resizer:after{content:"";position:absolute;z-index:500}:host #resizer:before{content:"";display:block;position:absolute;z-index:1;transition:background-color 200ms ease-in-out}:host #resizer{cursor:col-resize}:host #resizer:hover:before{background-color:rgb(var(--zn-blue))}:host(:not([vertical])) #split-nav,zn-split-pane:not([vertical]) #split-nav{display:none}@container (min-width:0px) and (max-width:767px){:host(:not([vertical])) #split-nav,zn-split-pane:not([vertical]) #split-nav{position:absolute;top:0;left:0;right:0;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));padding:0;margin:0;list-style-type:none;display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-bottom:1px solid rgb(var(--zn-border-color))}:host(:not([vertical])) #split-nav li,zn-split-pane:not([vertical]) #split-nav li{line-height:39px;flex:1 1 0;min-width:0;text-align:center;position:relative;cursor:pointer}:host(:not([vertical])) #split-nav li::before,zn-split-pane:not([vertical]) #split-nav li::before{content:"";left:50%;right:50%;bottom:-1px;position:absolute;background-color:rgb(var(--zn-accent));transition:all 300ms ease-in-out;height:var(--zn-spacing-2x-small)}:host(:not([vertical])) #split-nav li:hover:before,zn-split-pane:not([vertical]) #split-nav li:hover:before{left:20%;right:20%}:host(:not([vertical])) #split-nav li.active::before,zn-split-pane:not([vertical]) #split-nav li.active::before{left:0;right:0}:host(:not([vertical])) #resizer,:host(:not([vertical])) #primary-pane,:host(:not([vertical])) #secondary-pane,zn-split-pane:not([vertical]) #resizer,zn-split-pane:not([vertical]) #primary-pane,zn-split-pane:not([vertical]) #secondary-pane{display:none}:host(:not([vertical])) #primary-pane,:host(:not([vertical])) #secondary-pane,zn-split-pane:not([vertical]) #primary-pane,zn-split-pane:not([vertical]) #secondary-pane{max-width:100% !important;width:100%;padding-top:40px}}:host(:not([vertical])) #primary-pane,zn-split-pane:not([vertical]) #primary-pane{min-width:var(--min-panel-size,15%)}:host(:not([vertical])) #secondary-pane,zn-split-pane:not([vertical]) #secondary-pane{min-width:var(--min-secondary-panel-size,var(--min-panel-size,15%))}:host(:not([vertical])) #primary-pane,zn-split-pane:not([vertical]) #primary-pane{max-width:var(--max-panel-size,var(--initial-size,50%))}:host(:not([vertical])) #secondary-pane,zn-split-pane:not([vertical]) #secondary-pane{max-width:calc(100% - var(--initial-size,0));width:100%}:host(:not([vertical])) #resizer,zn-split-pane:not([vertical]) #resizer{min-width:1px;padding-top:0;padding-bottom:0}:host(:not([vertical])) #resizer:after,zn-split-pane:not([vertical]) #resizer:after{inset:0 -10px;width:20px}:host(:not([vertical])) #resizer:before,zn-split-pane:not([vertical]) #resizer:before{height:100%;width:1px;top:0;left:50%;transform:translateX(-50%)}@container (min-width:0px) and (max-width:767px){:host([merged-navigation]:not([vertical])){padding-top:0}:host([merged-navigation]:not([vertical])) #split-nav{display:none}:host([merged-navigation]:not([vertical])) #primary-pane,:host([merged-navigation]:not([vertical])) #secondary-pane{padding-top:0}}:host([hide=primary]),:host([hide=secondary]){padding-top:0}:host([hide=primary]) #split-nav,:host([hide=primary]) #resizer,:host([hide=secondary]) #split-nav,:host([hide=secondary]) #resizer{display:none}:host([hide=primary]) #primary-pane{flex:0 0 0;height:0;max-height:0 !important;max-width:0 !important;min-height:0 !important;min-width:0 !important;overflow:hidden;pointer-events:none;visibility:hidden;width:0}:host([hide=primary]) #secondary-pane{height:100%;max-height:100% !important;max-width:100% !important;width:100%}:host([hide=secondary]) #primary-pane{height:100%;max-height:100% !important;max-width:100% !important;width:100%}:host([hide=secondary]) #secondary-pane{flex:0 0 0;height:0;max-height:0 !important;max-width:0 !important;min-height:0 !important;min-width:0 !important;overflow:hidden;pointer-events:none;visibility:hidden;width:0}:host([focus-pane="0"]) #primary-pane{display:block}:host([focus-pane="1"]) #secondary-pane{display:block}:host([vertical]){flex-direction:column}:host([vertical]) #split-nav{display:none}:host([vertical]) #primary-pane{min-height:var(--min-panel-size,15%)}:host([vertical]) #secondary-pane{min-height:var(--min-secondary-panel-size,var(--min-panel-size,15%));z-index:1}:host([vertical]) #primary-pane{max-height:var(--initial-size,50%)}:host([vertical]) #secondary-pane{height:100%;max-height:calc(100% - var(--initial-size,0))}:host([vertical]) #resizer{min-height:1px;padding-left:0;padding-right:0;cursor:row-resize}:host([vertical]) #resizer:after{inset:-10px 0;height:20px}:host([vertical]) #resizer:before{width:100%;height:1px;left:0;top:50%;transform:translateY(-50%)}:host(.resizing){cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(.resizing) #primary-pane{min-width:1%}:host(.resizing) #primary-pane,:host(.resizing) #secondary-pane{pointer-events:none}@container (max-width:767px){:host([padded]){padding-left:8px;overflow:hidden}:host([padded]) #primary-pane{border-left:1px solid rgb(var(--zn-border-color))}:host([padded]) #split-nav{left:8px;border-radius:10px 0 0 0;border-left:1px solid rgb(var(--zn-border-color));border-top:1px solid rgb(var(--zn-border-color))}}@container (min-width:768px){:host([padded]) #primary-pane{padding:0 8px}:host([padded]) #primary-pane ::slotted(*){border-radius:10px 10px 0 0;border:1px solid rgb(var(--zn-border-color)) !important;border-bottom-width:0 !important}:host([padded]) #resizer{margin-right:8px}:host([padded]) #secondary-pane{overflow:hidden;border-radius:10px 0 0 0;background-color:#fbfbfb;border:1px solid rgb(var(--zn-border-color)) !important;border-bottom-width:0 !important}:host([padded-right]) #primary-pane{padding-right:8px}:host([padded-right]) #primary-pane ::slotted(*){border-radius:0 10px 0 0;border:1px solid rgb(var(--zn-border-color)) !important;border-bottom-width:0 !important}:host([padded-right]) #resizer::before{background-color:transparent !important}}:host([padded]:not(.resizing)) #resizer::before,:host([padded-right]:not(.resizing)) #resizer::before{background-color:transparent}:host([padded]:not(.resizing)) #resizer:hover::before,:host([padded-right]:not(.resizing)) #resizer:hover::before{background-color:rgb(var(--zn-blue)) !important}:host([bordered]) #resizer:before{background-color:rgb(var(--zn-border-color))}`;var v5=768,Ht=class extends C{constructor(){super(...arguments);this.mouseMoveHandler=null;this.mouseUpHandler=null;this.currentPixelSize=0;this.currentPercentSize=0;this.currentContainerSize=0;this.focusChangeHandler=()=>this.requestUpdate();this.resizeObserver=null;this.parentIsNarrow=!1;this.calculatePixels=!1;this.preferSecondarySize=!1;this.minimumPaneSize=10;this.initialSize=50;this.storeKey="";this.border=!1;this.vertical=!1;this.primaryCaption="Primary";this.secondaryCaption="Secondary";this._focusPane=0;this.padded=!1;this.paddedRight=!1;this.gap=!1;this.hide="";this.mergedNavigation=!1;this.storeTtl=0}connectedCallback(){super.connectedCallback(),this._store=new mr(this.localStorage?window.localStorage:window.sessionStorage,"znsp:",this.storeTtl),this.primaryFull=this.calculatePixels?this.initialSize+"px":this.initialSize+"%",kd(this,"click","[split-pane-focus]",t=>{t.preventDefault(),t.stopPropagation(),this._setFocusPane(parseInt(t.selectedTarget.getAttribute("split-pane-focus")))}),this.addEventListener("zn-split-pane-focus-change",this.focusChangeHandler),this.resizeObserver=new ResizeObserver(()=>this.refreshNarrowState()),this.resizeObserver.observe(this)}disconnectedCallback(){this.removeEventListener("zn-split-pane-focus-change",this.focusChangeHandler),this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}refreshNarrowState(){let t=this.getBoundingClientRect().width<v5;t!==this.parentIsNarrow&&(this.parentIsNarrow=t,this.updateNestedNavigationMerging(),this.requestUpdate())}firstUpdated(t){setTimeout(this.applyStoredSize.bind(this),100),this.refreshNarrowState(),super.firstUpdated(t)}applyStoredSize(){this.currentContainerSize=this.vertical?this.getBoundingClientRect().height:this.getBoundingClientRect().width;let t=this.preferSecondarySize?this.currentContainerSize-this.initialSize:this.initialSize,r=this.preferSecondarySize?100-this.initialSize:this.initialSize,n=this._store.get(this.storeKey);if(n!==null){let a=n.split(",");if(a.length>=3){t=parseInt(a[0]),r=parseInt(a[1]);let s=parseInt(a[2]);this.preferSecondarySize&&this.calculatePixels&&(t*=this.currentContainerSize/s)}}this.setSize(this.calculatePixels?t:this.currentContainerSize/100*r)}resize(t){if(this.hide==="primary"||this.hide==="secondary")return;this.mouseUpHandler!==null&&this.mouseUpHandler(t),this.classList.add("resizing"),this.currentContainerSize=this.vertical?this.getBoundingClientRect().height:this.getBoundingClientRect().width;let r=this.vertical?this.getBoundingClientRect().top:this.getBoundingClientRect().left;this.mouseMoveHandler=function(n){let a=this.vertical?n.y:n.x;"touches"in n&&n instanceof TouchEvent&&(a=this.vertical?n.touches[0].clientY:n.touches[0].clientX),this.setSize(a-r)}.bind(this),this.mouseUpHandler=function(){this._store.set(this.storeKey,Math.round(this.currentPixelSize)+","+Math.round(this.currentPercentSize)+","+this.currentContainerSize),this.classList.remove("resizing"),window.removeEventListener("touchmove",this.mouseMoveHandler),window.removeEventListener("mousemove",this.mouseMoveHandler),window.removeEventListener("touchend",this.mouseUpHandler),window.removeEventListener("mouseup",this.mouseUpHandler)}.bind(this),window.addEventListener("touchmove",this.mouseMoveHandler),window.addEventListener("touchend",this.mouseUpHandler),window.addEventListener("mousemove",this.mouseMoveHandler),window.addEventListener("mouseup",this.mouseUpHandler)}setSize(t){let r=Number.isFinite(this.minimumSecondaryPaneSize),n=r?this.currentContainerSize-(this.calculatePixels?this.minimumSecondaryPaneSize:this.currentContainerSize/100*this.minimumSecondaryPaneSize):void 0,a=n===void 0?t:Math.min(t,n),s=a/this.currentContainerSize*100;if(this.calculatePixels){let l=n===void 0?this.minimumPaneSize:Math.min(this.minimumPaneSize,n);this.maximumPaneSize||n!==void 0?a=Math.max(l,Math.min(this.maximumPaneSize??1/0,n??1/0,a)):a=Math.max(l,a),s=a/this.currentContainerSize*100,this.initialSize=a}else{let l=r?100-this.minimumSecondaryPaneSize:void 0,d=l===void 0?this.minimumPaneSize:Math.min(this.minimumPaneSize,l);this.maximumPaneSize||l!==void 0?s=Math.max(d,Math.min(this.maximumPaneSize??1/0,l??1/0,s)):s=Math.max(d,s),a=this.currentContainerSize/100*s,this.initialSize=s}this.currentPixelSize=a,this.currentPercentSize=s,this.primaryFull=this.calculatePixels?this.currentPixelSize+"px":this.currentPercentSize+"%"}_setFocusPane(t){this._focusPane=t,this.dispatchEvent(new CustomEvent("zn-split-pane-focus-change",{bubbles:!0,composed:!0}))}getDirectNestedSplitPanes(){return Array.from(this.querySelectorAll("zn-split-pane")).filter(t=>t.parentElement?.closest("zn-split-pane")===this&&!t.vertical)}updateNestedNavigationMerging(){let t=!this.vertical&&this.parentIsNarrow;this.getDirectNestedSplitPanes().forEach(r=>{r.mergedNavigation=t})}getPaneIndexForNestedSplitPane(t){let r=t;for(;r&&r.parentElement!==this;)r=r.parentElement;return r?.getAttribute("slot")==="secondary"?1:0}getNestedNavigationItems(t){return this.getDirectNestedSplitPanesForPane(t).flatMap(r=>r.getNavigationItems().map(n=>({caption:n.caption,active:this._focusPane===t&&n.active,select:()=>{this._setFocusPane(t),n.select()}})))}getDirectNestedSplitPanesForPane(t){return this.getDirectNestedSplitPanes().filter(r=>this.getPaneIndexForNestedSplitPane(r)===t)}getNavigationItems(){this.updateNestedNavigationMerging();let t=this.getNestedNavigationItems(0),r=this.getNestedNavigationItems(1),n=t.length>0?t:[{caption:this.primaryCaption,active:this._focusPane===0,select:()=>this._setFocusPane(0)}],a=r.length>0?r:[{caption:this.secondaryCaption,active:this._focusPane===1,select:()=>this._setFocusPane(1)}];return[...n,...a]}render(){let n=Number.isFinite(this.minimumSecondaryPaneSize)?this.minimumSecondaryPaneSize+(this.calculatePixels?"px":"%"):"var(--min-panel-size)";return u`
|
|
2190
|
+
</div>`}};fi.styles=T(s0),c([p({type:Boolean})],fi.prototype,"flush",2);var b5=fi;fi.define("zn-pane");function kd(i,o,t,r){function n(a){let s=a.composedPath?.()||a.path||[a.target];for(let l of s){if(l instanceof Element&&l.matches(t))return a.selectedTarget=l,r(a);if(l===i)break}return!1}return i.addEventListener(o,n),()=>i.removeEventListener(o,n)}var l0=E`@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}:host *,:host *::before,:host *::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([gap]){gap:0 calc(var(--zn-base-gap) / 2)}::slotted(*){display:flex;flex-direction:column;height:100%;overflow-y:auto}:host{display:flex;height:100%;max-height:100%;min-height:100%;width:100%;flex:1;min-width:350px;container-type:inline-size;position:relative}:host #primary-pane,:host #secondary-pane{flex-grow:1;flex-shrink:1}:host slot{overflow:auto}:host #resizer{position:relative}:host #resizer:after{content:"";position:absolute;z-index:500}:host #resizer:before{content:"";display:block;position:absolute;z-index:1;transition:background-color 200ms ease-in-out}:host #resizer{cursor:col-resize}:host #resizer:hover:before{background-color:rgb(var(--zn-blue))}:host(:not([vertical])) #split-nav,zn-split-pane:not([vertical]) #split-nav{display:none}@container (min-width:0px) and (max-width:767px){:host(:not([vertical])) #split-nav,zn-split-pane:not([vertical]) #split-nav{position:absolute;top:0;left:0;right:0;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));padding:0;margin:0;list-style-type:none;display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-bottom:1px solid rgb(var(--zn-border-color))}:host(:not([vertical])) #split-nav li,zn-split-pane:not([vertical]) #split-nav li{line-height:39px;flex:1 1 0;min-width:0;text-align:center;position:relative;cursor:pointer}:host(:not([vertical])) #split-nav li::before,zn-split-pane:not([vertical]) #split-nav li::before{content:"";left:50%;right:50%;bottom:-1px;position:absolute;background-color:rgb(var(--zn-accent));transition:all 300ms ease-in-out;height:var(--zn-spacing-2x-small)}:host(:not([vertical])) #split-nav li:hover:before,zn-split-pane:not([vertical]) #split-nav li:hover:before{left:20%;right:20%}:host(:not([vertical])) #split-nav li.active::before,zn-split-pane:not([vertical]) #split-nav li.active::before{left:0;right:0}:host(:not([vertical])) #resizer,:host(:not([vertical])) #primary-pane,:host(:not([vertical])) #secondary-pane,zn-split-pane:not([vertical]) #resizer,zn-split-pane:not([vertical]) #primary-pane,zn-split-pane:not([vertical]) #secondary-pane{display:none}:host(:not([vertical])) #primary-pane,:host(:not([vertical])) #secondary-pane,zn-split-pane:not([vertical]) #primary-pane,zn-split-pane:not([vertical]) #secondary-pane{max-width:100% !important;width:100%;padding-top:40px}}:host(:not([vertical])) #primary-pane,zn-split-pane:not([vertical]) #primary-pane{min-width:var(--min-panel-size,15%)}:host(:not([vertical])) #secondary-pane,zn-split-pane:not([vertical]) #secondary-pane{min-width:var(--min-secondary-panel-size,var(--min-panel-size,15%))}:host(:not([vertical])) #primary-pane,zn-split-pane:not([vertical]) #primary-pane{max-width:var(--max-panel-size,var(--initial-size,50%))}:host(:not([vertical])) #secondary-pane,zn-split-pane:not([vertical]) #secondary-pane{max-width:calc(100% - var(--initial-size,0));width:100%}:host(:not([vertical])) #resizer,zn-split-pane:not([vertical]) #resizer{min-width:1px;padding-top:0;padding-bottom:0}:host(:not([vertical])) #resizer:after,zn-split-pane:not([vertical]) #resizer:after{inset:0 -10px;width:20px}:host(:not([vertical])) #resizer:before,zn-split-pane:not([vertical]) #resizer:before{height:100%;width:1px;top:0;left:50%;transform:translateX(-50%)}@container (min-width:0px) and (max-width:767px){:host([merged-navigation]:not([vertical])){padding-top:0}:host([merged-navigation]:not([vertical])) #split-nav{display:none}:host([merged-navigation]:not([vertical])) #primary-pane,:host([merged-navigation]:not([vertical])) #secondary-pane{padding-top:0}}:host([hide=primary]),:host([hide=secondary]){padding-top:0}:host([hide=primary]) #split-nav,:host([hide=primary]) #resizer,:host([hide=secondary]) #split-nav,:host([hide=secondary]) #resizer{display:none}:host([hide=primary]) #primary-pane{flex:0 0 0;height:0;max-height:0 !important;max-width:0 !important;min-height:0 !important;min-width:0 !important;overflow:hidden;pointer-events:none;visibility:hidden;width:0}:host([hide=primary]) #secondary-pane{height:100%;max-height:100% !important;max-width:100% !important;width:100%}:host([hide=secondary]) #primary-pane{height:100%;max-height:100% !important;max-width:100% !important;width:100%}:host([hide=secondary]) #secondary-pane{flex:0 0 0;height:0;max-height:0 !important;max-width:0 !important;min-height:0 !important;min-width:0 !important;overflow:hidden;pointer-events:none;visibility:hidden;width:0}:host([focus-pane="0"]) #primary-pane{display:block}:host([focus-pane="1"]) #secondary-pane{display:block}:host([vertical]){flex-direction:column}:host([vertical]) #split-nav{display:none}:host([vertical]) #primary-pane{min-height:var(--min-panel-size,15%)}:host([vertical]) #secondary-pane{min-height:var(--min-secondary-panel-size,var(--min-panel-size,15%));z-index:1}:host([vertical]) #primary-pane{max-height:var(--initial-size,50%)}:host([vertical]) #secondary-pane{height:100%;max-height:calc(100% - var(--initial-size,0))}:host([vertical]) #resizer{min-height:1px;padding-left:0;padding-right:0;cursor:row-resize}:host([vertical]) #resizer:after{inset:-10px 0;height:20px}:host([vertical]) #resizer:before{width:100%;height:1px;left:0;top:50%;transform:translateY(-50%)}:host(.resizing){cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host(.resizing) #primary-pane{min-width:1%}:host(.resizing) #primary-pane,:host(.resizing) #secondary-pane{pointer-events:none}@container (max-width:767px){:host([padded]){padding-left:8px;overflow:hidden}:host([padded]) #primary-pane{border-left:1px solid rgb(var(--zn-border-color))}:host([padded]) #split-nav{left:8px;border-radius:10px 0 0 0;border-left:1px solid rgb(var(--zn-border-color));border-top:1px solid rgb(var(--zn-border-color))}}@container (min-width:768px){:host([padded]) #primary-pane{padding:0 8px}:host([padded]) #primary-pane ::slotted(*){border-radius:10px 10px 0 0;border:1px solid rgb(var(--zn-border-color)) !important;border-bottom-width:0 !important}:host([padded]) #resizer{margin-right:8px}:host([padded]) #secondary-pane{overflow:hidden;border-radius:10px 0 0 0;background-color:#fbfbfb;border:1px solid rgb(var(--zn-border-color)) !important;border-bottom-width:0 !important}:host([padded-right]) #primary-pane{padding-right:8px}:host([padded-right]) #primary-pane ::slotted(*){border-radius:0 10px 0 0;border:1px solid rgb(var(--zn-border-color)) !important;border-bottom-width:0 !important}:host([padded-right]) #resizer::before{background-color:transparent !important}}:host([padded]:not(.resizing)) #resizer::before,:host([padded-right]:not(.resizing)) #resizer::before{background-color:transparent}:host([padded]:not(.resizing)) #resizer:hover::before,:host([padded-right]:not(.resizing)) #resizer:hover::before{background-color:rgb(var(--zn-blue)) !important}:host([bordered]) #resizer:before{background-color:rgb(var(--zn-border-color))}`;var v5=768,Ft=class extends C{constructor(){super(...arguments);this.mouseMoveHandler=null;this.mouseUpHandler=null;this.currentPixelSize=0;this.currentPercentSize=0;this.currentContainerSize=0;this.focusChangeHandler=()=>this.requestUpdate();this.resizeObserver=null;this.parentIsNarrow=!1;this.calculatePixels=!1;this.preferSecondarySize=!1;this.minimumPaneSize=10;this.initialSize=50;this.storeKey="";this.border=!1;this.vertical=!1;this.primaryCaption="Primary";this.secondaryCaption="Secondary";this._focusPane=0;this.padded=!1;this.paddedRight=!1;this.gap=!1;this.hide="";this.mergedNavigation=!1;this.storeTtl=0}connectedCallback(){super.connectedCallback(),this._store=new mr(this.localStorage?window.localStorage:window.sessionStorage,"znsp:",this.storeTtl),this.primaryFull=this.calculatePixels?this.initialSize+"px":this.initialSize+"%",kd(this,"click","[split-pane-focus]",t=>{t.preventDefault(),t.stopPropagation(),this._setFocusPane(parseInt(t.selectedTarget.getAttribute("split-pane-focus")))}),this.addEventListener("zn-split-pane-focus-change",this.focusChangeHandler),this.resizeObserver=new ResizeObserver(()=>this.refreshNarrowState()),this.resizeObserver.observe(this)}disconnectedCallback(){this.removeEventListener("zn-split-pane-focus-change",this.focusChangeHandler),this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}refreshNarrowState(){let t=this.getBoundingClientRect().width<v5;t!==this.parentIsNarrow&&(this.parentIsNarrow=t,this.updateNestedNavigationMerging(),this.requestUpdate())}firstUpdated(t){setTimeout(this.applyStoredSize.bind(this),100),this.refreshNarrowState(),super.firstUpdated(t)}applyStoredSize(){this.currentContainerSize=this.vertical?this.getBoundingClientRect().height:this.getBoundingClientRect().width;let t=this.preferSecondarySize?this.currentContainerSize-this.initialSize:this.initialSize,r=this.preferSecondarySize?100-this.initialSize:this.initialSize,n=this._store.get(this.storeKey);if(n!==null){let a=n.split(",");if(a.length>=3){t=parseInt(a[0]),r=parseInt(a[1]);let s=parseInt(a[2]);this.preferSecondarySize&&this.calculatePixels&&(t*=this.currentContainerSize/s)}}this.setSize(this.calculatePixels?t:this.currentContainerSize/100*r)}resize(t){if(this.hide==="primary"||this.hide==="secondary")return;this.mouseUpHandler!==null&&this.mouseUpHandler(t),this.classList.add("resizing"),this.currentContainerSize=this.vertical?this.getBoundingClientRect().height:this.getBoundingClientRect().width;let r=this.vertical?this.getBoundingClientRect().top:this.getBoundingClientRect().left;this.mouseMoveHandler=function(n){let a=this.vertical?n.y:n.x;"touches"in n&&n instanceof TouchEvent&&(a=this.vertical?n.touches[0].clientY:n.touches[0].clientX),this.setSize(a-r)}.bind(this),this.mouseUpHandler=function(){this._store.set(this.storeKey,Math.round(this.currentPixelSize)+","+Math.round(this.currentPercentSize)+","+this.currentContainerSize),this.classList.remove("resizing"),window.removeEventListener("touchmove",this.mouseMoveHandler),window.removeEventListener("mousemove",this.mouseMoveHandler),window.removeEventListener("touchend",this.mouseUpHandler),window.removeEventListener("mouseup",this.mouseUpHandler)}.bind(this),window.addEventListener("touchmove",this.mouseMoveHandler),window.addEventListener("touchend",this.mouseUpHandler),window.addEventListener("mousemove",this.mouseMoveHandler),window.addEventListener("mouseup",this.mouseUpHandler)}setSize(t){let r=Number.isFinite(this.minimumSecondaryPaneSize),n=r?this.currentContainerSize-(this.calculatePixels?this.minimumSecondaryPaneSize:this.currentContainerSize/100*this.minimumSecondaryPaneSize):void 0,a=n===void 0?t:Math.min(t,n),s=a/this.currentContainerSize*100;if(this.calculatePixels){let l=n===void 0?this.minimumPaneSize:Math.min(this.minimumPaneSize,n);this.maximumPaneSize||n!==void 0?a=Math.max(l,Math.min(this.maximumPaneSize??1/0,n??1/0,a)):a=Math.max(l,a),s=a/this.currentContainerSize*100,this.initialSize=a}else{let l=r?100-this.minimumSecondaryPaneSize:void 0,d=l===void 0?this.minimumPaneSize:Math.min(this.minimumPaneSize,l);this.maximumPaneSize||l!==void 0?s=Math.max(d,Math.min(this.maximumPaneSize??1/0,l??1/0,s)):s=Math.max(d,s),a=this.currentContainerSize/100*s,this.initialSize=s}this.currentPixelSize=a,this.currentPercentSize=s,this.primaryFull=this.calculatePixels?this.currentPixelSize+"px":this.currentPercentSize+"%"}_setFocusPane(t){this._focusPane=t,this.dispatchEvent(new CustomEvent("zn-split-pane-focus-change",{bubbles:!0,composed:!0}))}getDirectNestedSplitPanes(){return Array.from(this.querySelectorAll("zn-split-pane")).filter(t=>t.parentElement?.closest("zn-split-pane")===this&&!t.vertical)}updateNestedNavigationMerging(){let t=!this.vertical&&this.parentIsNarrow;this.getDirectNestedSplitPanes().forEach(r=>{r.mergedNavigation=t})}getPaneIndexForNestedSplitPane(t){let r=t;for(;r&&r.parentElement!==this;)r=r.parentElement;return r?.getAttribute("slot")==="secondary"?1:0}getNestedNavigationItems(t){return this.getDirectNestedSplitPanesForPane(t).flatMap(r=>r.getNavigationItems().map(n=>({caption:n.caption,active:this._focusPane===t&&n.active,select:()=>{this._setFocusPane(t),n.select()}})))}getDirectNestedSplitPanesForPane(t){return this.getDirectNestedSplitPanes().filter(r=>this.getPaneIndexForNestedSplitPane(r)===t)}getNavigationItems(){this.updateNestedNavigationMerging();let t=this.getNestedNavigationItems(0),r=this.getNestedNavigationItems(1),n=t.length>0?t:[{caption:this.primaryCaption,active:this._focusPane===0,select:()=>this._setFocusPane(0)}],a=r.length>0?r:[{caption:this.secondaryCaption,active:this._focusPane===1,select:()=>this._setFocusPane(1)}];return[...n,...a]}render(){let n=Number.isFinite(this.minimumSecondaryPaneSize)?this.minimumSecondaryPaneSize+(this.calculatePixels?"px":"%"):"var(--min-panel-size)";return u`
|
|
2189
2191
|
<style>:host {
|
|
2190
2192
|
--min-panel-size: ${this.minimumPaneSize}${this.calculatePixels?"px":"%"};
|
|
2191
2193
|
--min-secondary-panel-size: ${n};
|
|
@@ -2208,7 +2210,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
2208
2210
|
<div id="secondary-pane">
|
|
2209
2211
|
<slot name="secondary" @slotchange="${()=>this.requestUpdate()}"></slot>
|
|
2210
2212
|
</div>
|
|
2211
|
-
`}};
|
|
2213
|
+
`}};Ft.styles=T(l0),c([p({attribute:"pixels",type:Boolean,reflect:!0})],Ft.prototype,"calculatePixels",2),c([p({attribute:"secondary",type:Boolean,reflect:!0})],Ft.prototype,"preferSecondarySize",2),c([p({attribute:"min-size",type:Number,reflect:!0})],Ft.prototype,"minimumPaneSize",2),c([p({attribute:"min-secondary-size",type:Number,reflect:!0})],Ft.prototype,"minimumSecondaryPaneSize",2),c([p({attribute:"max-size",type:Number,reflect:!0})],Ft.prototype,"maximumPaneSize",2),c([p({attribute:"initial-size",type:Number,reflect:!0})],Ft.prototype,"initialSize",2),c([p({attribute:"store-key",reflect:!0})],Ft.prototype,"storeKey",2),c([p({attribute:"bordered",type:Boolean,reflect:!0})],Ft.prototype,"border",2),c([p({attribute:"vertical",type:Boolean,reflect:!0})],Ft.prototype,"vertical",2),c([p({attribute:"primary-caption",reflect:!0})],Ft.prototype,"primaryCaption",2),c([p({attribute:"secondary-caption",reflect:!0})],Ft.prototype,"secondaryCaption",2),c([p({attribute:"focus-pane",type:Number,reflect:!0})],Ft.prototype,"_focusPane",2),c([p({attribute:"padded",type:Boolean,reflect:!0})],Ft.prototype,"padded",2),c([p({attribute:"padded-right",type:Boolean,reflect:!0})],Ft.prototype,"paddedRight",2),c([p({type:Boolean,reflect:!0})],Ft.prototype,"gap",2),c([p({reflect:!0})],Ft.prototype,"hide",2),c([p({attribute:"merged-navigation",type:Boolean,reflect:!0})],Ft.prototype,"mergedNavigation",2),c([p({attribute:"local-storage",type:Boolean,reflect:!0})],Ft.prototype,"localStorage",2),c([p({attribute:"store-ttl",type:Number,reflect:!0})],Ft.prototype,"storeTtl",2),c([Pg({passive:!0})],Ft.prototype,"resize",1);var x5=Ft;Ft.define("zn-split-pane");var c0=E`@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}:host *,:host *::before,:host *::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:flex;flex-grow:1;max-height:100%;height:100%;overflow:hidden !important;container-type:inline-size}:host .relative{position:relative;flex-grow:1;max-height:100%}@container (min-width:600px){:host .relative{max-width:calc(100% - var(--zn-spacing-narrow-bar))}}@container (min-width:1100px){:host .relative{max-width:calc(100% - var(--zn-spacing-panel))}}@container (min-width:0px) and (max-width:599px){:host .relative{min-height:0}}:host .container{position:relative;display:flex;flex-direction:column-reverse;align-items:stretch;max-height:100%;max-width:100%;min-height:0;flex:1}@container (min-width:600px){:host .container{flex-direction:row}}:host #primary-content,:host .sidebar{max-height:100%;max-width:100%}:host #primary-content{flex-grow:1;min-height:100px;max-height:100%;overflow-y:auto;display:flex;flex-direction:column;gap:var(--zn-gap,0);padding:var(--zn-base-gap,0)}:host .sidebar{width:100%;display:flex;flex-shrink:0;flex-direction:column;align-items:stretch;overflow-y:auto;overflow-x:hidden}@container (min-width:600px){:host .sidebar{min-width:var(--zn-spacing-narrow-bar);max-width:var(--zn-spacing-narrow-bar)}}@container (min-width:600px){:host .sidebar{flex-direction:row}}:host .sidebar #content{padding:var(--zn-base-gap,0);background:rgb(var(--zn-body));display:none;z-index:5;overflow-y:auto;overflow-x:hidden;position:absolute;right:0;left:0;top:var(--zn-spacing-narrow-bar);bottom:0;flex-grow:1}@container (min-width:600px){:host .sidebar #content{position:relative;inset:0}}@container (min-width:1100px){:host .sidebar #content{padding-left:var(--zn-spacing-medium,0)}}:host .sidebar #expander{cursor:pointer;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;overflow:hidden;border-bottom-width:1px;height:var(--zn-spacing-narrow-bar);width:100%;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));z-index:20;top:0;left:0;right:0;bottom:0}@container (min-width:600px){:host .sidebar #expander{height:unset;flex-direction:column;justify-content:start;min-width:var(--zn-spacing-narrow-bar);max-width:var(--zn-spacing-narrow-bar);width:var(--zn-spacing-narrow-bar);border-bottom-width:0;border-left-width:1px;padding-bottom:var(--zn-spacing-narrow-bar)}}@container (min-width:1100px){:host .sidebar #expander{display:none}}:host .sidebar #expander span{writing-mode:horizontal-tb;flex-grow:1;padding-left:var(--zn-spacing-medium);display:none}@container (min-width:600px){:host .sidebar #expander span{writing-mode:vertical-rl}}@container (min-width:600px){:host .sidebar #expander span{padding-left:0}}:host .sidebar #expander span.open{display:block}:host .sidebar #expander zn-icon{color:rgb(var(--zn-text));margin-left:var(--zn-spacing-medium);margin-right:var(--zn-spacing-medium);transition:all 500ms ease-in-out;rotate:0}@container (min-width:600px){:host .sidebar #expander zn-icon{margin-top:var(--zn-spacing-medium);margin-bottom:var(--zn-spacing-medium);rotate:90deg}}:host([flush]) #primary-content{padding:0}@container (min-width:600px){:host([open]) .relative{max-width:calc(100% - var(--zn-spacing-panel))}}@container (min-width:600px){:host([open]) .sidebar{min-width:var(--zn-spacing-panel);max-width:var(--zn-spacing-panel);width:var(--zn-spacing-panel)}}@container (min-width:600px){:host([open]) .sidebar--wide{min-width:var(--zn-spacing-lside);max-width:var(--zn-spacing-lside);width:var(--zn-spacing-lside)}}:host([open]) .sidebar #expander zn-icon{rotate:-180deg}@container (min-width:600px){:host([open]) .sidebar #expander zn-icon{rotate:-90deg}}:host([open]) .sidebar #expander.open{display:none}:host([open]) .sidebar #expander.close{display:none}@container (min-width:600px){:host([open]) .sidebar #expander.close{display:block}}:host([open]) .sidebar #expander.close-sm{display:block;font-weight:500}@container (min-width:600px){:host([open]) .sidebar #expander.close-sm{display:none}}:host([open]) .sidebar #content{display:block}@container (min-width:1100px){:host .sidebar{min-width:var(--zn-spacing-panel);max-width:var(--zn-spacing-panel);width:var(--zn-spacing-panel)}:host .sidebar--wide{min-width:var(--zn-spacing-lside);max-width:var(--zn-spacing-lside);width:var(--zn-spacing-lside)}:host .sidebar #content{display:block}:host(:not([distinct])) .sidebar{background:transparent}:host(:not([distinct])) .sidebar #content{background:transparent;padding-left:0}}:host([distinct]) .sidebar #content{background:rgba(var(--zn-panel),var(--zn-panel-opacity))}@container (min-width:600px){:host([distinct]) .sidebar{border-left-width:1px}}@container (min-width:600px) and (max-width:1099px){:host([distinct]) .sidebar #content{padding-left:0}}:host([distinct]) .sidebar #expander{border-left-width:0}:host #sidebar #content slot{display:flex;flex-direction:column;align-items:normal;gap:var(--zn-gap,0)}`;var Yo=class extends C{constructor(){super();this.open=!1;this.startScrolled=!1;this.wide=!1;this.domObserver=new Lt(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>{setTimeout(()=>this.scrollBottom(),10)}});this.addEventListener("scroll-to-bottom",()=>{setTimeout(()=>this.scrollBottom(),200)})}connectedCallback(){super.connectedCallback(),this.startScrolled&&(this.domObserver.observe(this),this.scrollBottom())}scrollBottom(){let t=this.shadowRoot?.getElementById("primary-content");t?t.scrollTop=t.scrollHeight:setTimeout(this.scrollBottom.bind(this),10)}render(){return u`
|
|
2212
2214
|
<div class="container">
|
|
2213
2215
|
<div class="relative">
|
|
2214
2216
|
<div id="primary-content">
|
|
@@ -2227,10 +2229,10 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
2227
2229
|
<span class="close"> Close ${this.caption}</span>
|
|
2228
2230
|
<span class="close-sm">${t}</span>
|
|
2229
2231
|
<span class="open"> Show ${this.caption}</span>
|
|
2230
|
-
</div>`}handleClick(t){this.open=!this.open,t.stopPropagation()}};Yo.styles=T(c0),c([p({attribute:"caption",reflect:!0})],Yo.prototype,"caption",2),c([p({attribute:"open",type:Boolean,reflect:!0})],Yo.prototype,"open",2),c([p({attribute:"start-scrolled",type:Boolean,reflect:!0})],Yo.prototype,"startScrolled",2),c([p({type:Boolean})],Yo.prototype,"wide",2);var y5=Yo;Yo.define("zn-sidebar");var d0=E`@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}:host *,:host *::before,:host *::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-sp-padding:var(--zn-base-gap);--zn-sp-gap:var(--zn-base-gap)}:host([grow]){display:flex;flex-grow:1;height:100%}:host([max-full]){max-height:100%;overflow:hidden}:host([scroll]){max-height:100%;overflow:auto}.sp{position:relative;display:flex;flex-direction:column;flex-grow:0;padding:var(--zn-sp-padding);gap:var(--zn-sp-gap);width:100%;height:100%;margin:var(--zn-default-margin,0 auto)}.sp--divide{gap:calc(var(--zn-sp-gap) * 2)}.sp--divide.sp--no-gap ::slotted(*:not(:last-child)){border-bottom:1px solid rgb(var(--zn-border-color)) !important}.sp--divide:not(.sp--no-gap) ::slotted(*:not(:last-child)){position:relative}.sp--divide:not(.sp--no-gap) ::slotted(*:not(:last-child)):after{content:"";position:absolute;display:block;height:1px;left:0;width:100%;max-width:100%;bottom:calc(var(--zn-sp-gap) / 1 * -1);background-color:rgb(var(--zn-border-color))}.sp--row{flex-direction:row}.sp--no-pos{position:unset}.sp--no-gap{gap:0}.sp--grow{flex-grow:1}.sp--flush{padding:0}.sp--flush-y{padding-top:0;padding-bottom:0}.sp--flush-x{padding-left:0;padding-right:0}.sp--flush-t{padding-top:0}.sp--flush-b{padding-bottom:0}.sp--flush-l{padding-left:0}.sp--flush-r{padding-right:0}:host([align=start]) .sp{align-items:flex-start}:host([align=center]) .sp{align-items:center}:host([align=end]) .sp{align-items:flex-end}:host([align=stretch]) .sp{align-items:stretch}:host([align=baseline]) .sp{align-items:baseline}:host([justify=start]) .sp{justify-content:flex-start}:host([justify=center]) .sp{justify-content:center}:host([justify=end]) .sp{justify-content:flex-end}:host([justify=between]) .sp{justify-content:space-between}:host([justify=around]) .sp{justify-content:space-around}:host([justify=evenly]) .sp{justify-content:space-evenly}`;var z5={px:"1",xxs:"3",xs:"5",sm:"10",md:"15",lg:"20",xl:"25"},
|
|
2232
|
+
</div>`}handleClick(t){this.open=!this.open,t.stopPropagation()}};Yo.styles=T(c0),c([p({attribute:"caption",reflect:!0})],Yo.prototype,"caption",2),c([p({attribute:"open",type:Boolean,reflect:!0})],Yo.prototype,"open",2),c([p({attribute:"start-scrolled",type:Boolean,reflect:!0})],Yo.prototype,"startScrolled",2),c([p({type:Boolean})],Yo.prototype,"wide",2);var y5=Yo;Yo.define("zn-sidebar");var d0=E`@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}:host *,:host *::before,:host *::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-sp-padding:var(--zn-base-gap);--zn-sp-gap:var(--zn-base-gap)}:host([grow]){display:flex;flex-grow:1;height:100%}:host([max-full]){max-height:100%;overflow:hidden}:host([scroll]){max-height:100%;overflow:auto}.sp{position:relative;display:flex;flex-direction:column;flex-grow:0;padding:var(--zn-sp-padding);gap:var(--zn-sp-gap);width:100%;height:100%;margin:var(--zn-default-margin,0 auto)}.sp--divide{gap:calc(var(--zn-sp-gap) * 2)}.sp--divide.sp--no-gap ::slotted(*:not(:last-child)){border-bottom:1px solid rgb(var(--zn-border-color)) !important}.sp--divide:not(.sp--no-gap) ::slotted(*:not(:last-child)){position:relative}.sp--divide:not(.sp--no-gap) ::slotted(*:not(:last-child)):after{content:"";position:absolute;display:block;height:1px;left:0;width:100%;max-width:100%;bottom:calc(var(--zn-sp-gap) / 1 * -1);background-color:rgb(var(--zn-border-color))}.sp--row{flex-direction:row}.sp--no-pos{position:unset}.sp--no-gap{gap:0}.sp--grow{flex-grow:1}.sp--flush{padding:0}.sp--flush-y{padding-top:0;padding-bottom:0}.sp--flush-x{padding-left:0;padding-right:0}.sp--flush-t{padding-top:0}.sp--flush-b{padding-bottom:0}.sp--flush-l{padding-left:0}.sp--flush-r{padding-right:0}:host([align=start]) .sp{align-items:flex-start}:host([align=center]) .sp{align-items:center}:host([align=end]) .sp{align-items:flex-end}:host([align=stretch]) .sp{align-items:stretch}:host([align=baseline]) .sp{align-items:baseline}:host([justify=start]) .sp{justify-content:flex-start}:host([justify=center]) .sp{justify-content:center}:host([justify=end]) .sp{justify-content:flex-end}:host([justify=between]) .sp{justify-content:space-between}:host([justify=around]) .sp{justify-content:space-around}:host([justify=evenly]) .sp{justify-content:space-evenly}`;var z5={px:"1",xxs:"3",xs:"5",sm:"10",md:"15",lg:"20",xl:"25"},Bt=class extends C{constructor(){super(...arguments);this.divide=!1;this.row=!1;this.grow=!1;this.padX=!1;this.padY=!1;this.noGap=!1;this.noPosition=!1;this.flush=!1;this.flushX=!1;this.flushY=!1;this.flushT=!1;this.flushB=!1;this.flushL=!1;this.flushR=!1;this.widthContainer=!1;this.formContainer=!1;this.wideFormContainer=!1}connectedCallback(){if(this.gap){let t=z5[this.gap];if(t){let r=parseInt(t)*4;this.style.setProperty("--zn-divide-gap",`${r}px`)}}super.connectedCallback()}render(){return u`
|
|
2231
2233
|
<div part="base" class="${D({sp:!0,"sp--divide":this.divide,"sp--row":this.row,"sp--grow":this.grow,"sp--no-gap":this.noGap,"sp--no-pos":this.noPosition,"sp--flush":this.flush,"sp--flush-y":this.flushY,"sp--flush-x":this.flushX,"sp--flush-t":this.flushT,"sp--flush-b":this.flushB,"sp--flush-l":this.flushL,"sp--flush-r":this.flushR,"width-container":this.widthContainer,"form-container":this.formContainer,"wide-form-container":this.wideFormContainer})}">
|
|
2232
2234
|
<slot></slot>
|
|
2233
|
-
</div>`}};
|
|
2235
|
+
</div>`}};Bt.styles=T(d0),c([p({attribute:"divide",type:Boolean,reflect:!0})],Bt.prototype,"divide",2),c([p({attribute:"gap",reflect:!0})],Bt.prototype,"gap",2),c([p({attribute:"row",type:Boolean,reflect:!0})],Bt.prototype,"row",2),c([p({reflect:!0})],Bt.prototype,"align",2),c([p({reflect:!0})],Bt.prototype,"justify",2),c([p({attribute:"grow",type:Boolean,reflect:!0})],Bt.prototype,"grow",2),c([p({attribute:"pad-x",type:Boolean,reflect:!0})],Bt.prototype,"padX",2),c([p({attribute:"pad-y",type:Boolean,reflect:!0})],Bt.prototype,"padY",2),c([p({attribute:"no-gap",type:Boolean,reflect:!0})],Bt.prototype,"noGap",2),c([p({attribute:"no-pos",type:Boolean,reflect:!0})],Bt.prototype,"noPosition",2),c([p({attribute:"flush",type:Boolean,reflect:!0})],Bt.prototype,"flush",2),c([p({attribute:"flush-x",type:Boolean,reflect:!0})],Bt.prototype,"flushX",2),c([p({attribute:"flush-y",type:Boolean,reflect:!0})],Bt.prototype,"flushY",2),c([p({attribute:"flush-t",type:Boolean,reflect:!0})],Bt.prototype,"flushT",2),c([p({attribute:"flush-b",type:Boolean,reflect:!0})],Bt.prototype,"flushB",2),c([p({attribute:"flush-l",type:Boolean,reflect:!0})],Bt.prototype,"flushL",2),c([p({attribute:"flush-r",type:Boolean,reflect:!0})],Bt.prototype,"flushR",2),c([p({attribute:"width-container",type:Boolean,reflect:!0})],Bt.prototype,"widthContainer",2),c([p({attribute:"form-container",type:Boolean,reflect:!0})],Bt.prototype,"formContainer",2),c([p({attribute:"wide-form-container",type:Boolean,reflect:!0})],Bt.prototype,"wideFormContainer",2);var w5=Bt;Bt.define("zn-sp");var p0=E`@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}:host *,:host *::before,:host *::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:calc(100% - 4px);display:flex;flex-direction:column;padding:10px 0}.header{font-weight:500;color:rgb(var(--zn-text-heading))}.progress{color:rgb(var(--zn-text))}.info{font-size:90%}.header{display:flex;align-items:center;justify-content:space-between}.label,.info{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header{margin-bottom:var(--zn-spacing-x-small)}.step-container{width:100%;position:relative;height:12px;display:flex;align-items:center}.step-line{position:absolute;width:100%;left:2px;height:2px;background-color:rgb(var(--zn-border-color))}.step-progress{background-color:rgb(var(--zn-primary));height:8px;position:absolute;top:2px;border-radius:10px}.steps{position:relative;width:100%;left:2px;display:flex;justify-content:space-between;flex-direction:row}.step{position:relative;width:17px;height:17px;border-radius:50%;background-color:rgb(var(--zn-border-color));display:flex;align-items:center;justify-content:center;cursor:pointer;border-width:3px;border-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}`;var yo=class extends C{render(){let o=[];for(let r=0;r<this.steps;r++)o.push(u`
|
|
2234
2236
|
<div class="step">
|
|
2235
2237
|
</div>
|
|
2236
2238
|
`);let t=this.value/this.steps*100;return t>100&&(t=100),u`
|
|
@@ -2271,7 +2273,7 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
2271
2273
|
</div>
|
|
2272
2274
|
</div>
|
|
2273
2275
|
</div>
|
|
2274
|
-
`}};$r.styles=T(h0),c([p()],$r.prototype,"caption",2),c([p()],$r.prototype,"description",2),c([p()],$r.prototype,"amount",2),c([p()],$r.prototype,"type",2),c([p()],$r.prototype,"previous",2),c([p()],$r.prototype,"currency",2),c([p({type:Boolean,attribute:"show-delta"})],$r.prototype,"showDelta",2),c([p()],$r.prototype,"color",2);var k5=$r;$r.define("zn-stat");var u0=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:contents;--zn-scroll-footer-height:0px;--zn-scroll-header-height:0px}.container{max-height:100%;max-width:100%;height:100%;width:100%;display:flex;flex-direction:column;position:relative;overflow:hidden}.scroll-container{container-type:inline-size;display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;width:100%;overflow-y:auto;flex-grow:1;margin:0;padding:0 0 var(--zn-scroll-footer-height,0px) 0}.scroll-header{display:contents}.scroll-footer{padding:0;margin:0;position:absolute;bottom:0;left:0;right:0;display:flex}`;var gn=class extends C{constructor(){super(...arguments);this.startScrolled=!1;this._footerResizeObserver=new te(this,{target:null,callback:()=>
|
|
2276
|
+
`}};$r.styles=T(h0),c([p()],$r.prototype,"caption",2),c([p()],$r.prototype,"description",2),c([p()],$r.prototype,"amount",2),c([p()],$r.prototype,"type",2),c([p()],$r.prototype,"previous",2),c([p()],$r.prototype,"currency",2),c([p({type:Boolean,attribute:"show-delta"})],$r.prototype,"showDelta",2),c([p()],$r.prototype,"color",2);var k5=$r;$r.define("zn-stat");var u0=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{display:contents;--zn-scroll-footer-height:0px;--zn-scroll-header-height:0px}.container{max-height:100%;max-width:100%;height:100%;width:100%;display:flex;flex-direction:column;position:relative;overflow:hidden}.scroll-container{container-type:inline-size;display:flex;flex-direction:column;height:100%;max-height:100%;max-width:100%;width:100%;overflow-y:auto;flex-grow:1;margin:0;padding:0 0 var(--zn-scroll-footer-height,0px) 0}.scroll-header{display:contents}.scroll-footer{padding:0;margin:0;position:absolute;bottom:0;left:0;right:0;display:flex}`;var gn=class extends C{constructor(){super(...arguments);this.startScrolled=!1;this._footerObserved=!1;this._footerHeightFrame=null;this._footerResizeObserver=new te(this,{target:null,callback:()=>this._syncFooterHeight()});this._domObserver=new Lt(this,{target:null,config:{childList:!0,subtree:!0},callback:()=>{setTimeout(()=>this.scrollEnd(),100),this.footer&&(this._syncFooterHeight(),this._footerObserved||(this._footerObserved=!0,this._footerResizeObserver.observe(this.footer)))}})}firstUpdated(t){super.firstUpdated(t),this.startScrolled&&this.container&&setTimeout(this.scrollEnd.bind(this),10)}disconnectedCallback(){super.disconnectedCallback(),this._footerHeightFrame!==null&&(cancelAnimationFrame(this._footerHeightFrame),this._footerHeightFrame=null)}scrollEnd(){this.container.scrollTop=this.container.scrollHeight}_syncFooterHeight(){this._footerHeightFrame===null&&(this._footerHeightFrame=requestAnimationFrame(()=>{this._footerHeightFrame=null;let t=`${this.footer?.clientHeight??0}px`;this.style.getPropertyValue("--zn-scroll-footer-height")!==t&&this.style.setProperty("--zn-scroll-footer-height",t)}))}connectedCallback(){super.connectedCallback(),this.startScrolled&&this._domObserver.observe(this)}render(){return u`
|
|
2275
2277
|
<div class="container">
|
|
2276
2278
|
<div class="scroll-header">
|
|
2277
2279
|
<slot name="header"></slot>
|
|
@@ -2617,34 +2619,34 @@ import{a as $n,b as P_,c as ur,d as c,e as B}from"./chunks/zn.UBLZO6CI.js";var $
|
|
|
2617
2619
|
<zn-input type="text"
|
|
2618
2620
|
class="query-builder__value"
|
|
2619
2621
|
@zn-input="${a=>this._updateValue(t,a)}">
|
|
2620
|
-
</zn-input>`;return Ee(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()}};Vr.styles=T(v0),Vr.dependencies={"zn-button":Ct,"zn-input":Ce,"zn-option":Oe,"zn-select":ce},c([F(".bulk-actions")],Vr.prototype,"container",2),c([F(".add-rule")],Vr.prototype,"addRule",2),c([F("input#main-input")],Vr.prototype,"input",2),c([p()],Vr.prototype,"name",2),c([p()],Vr.prototype,"value",2),c([p({type:Array})],Vr.prototype,"actions",2);var L5=Vr;Vr.define("zn-bulk-actions");var M5=()=>{let i="attachment",o=new Date().getTime();return`${i}_${o}`},zl=class{constructor(o,t){this._attachmentContainer=document.createElement("div");this._quill=o,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 o=this._fileHolder.files[0];this.addAttachment(o)}addAttachment(o,t){let r=M5(),n=a=>{this._insertAttachment({dataUrl:a,file:o,id:r})};if(t)n(t);else{let a=new FileReader;a.addEventListener("load",()=>{let s=a.result;n(s)},!1),a.readAsDataURL(o)}typeof this._options.upload=="function"&&this._options.upload(o).then(async({path:a,url:s})=>{await this._uploadAttachment(o,s),this._updateAttachment(r,s,a)}).catch(a=>{console.warn(a.message)})}_createAttachmentContainer(){let o=this._attachmentContainer;o.id="attachment-container",o.style.display="flex",o.style.flexWrap="wrap",o.style.gap="10px",o.style.position="absolute",o.style.bottom="0",o.style.left="0",o.style.right="0",o.style.padding="10px",this._quill.container.appendChild(o)}_insertAttachment({dataUrl:o,file:t,id:r}){this._attachmentContainer.appendChild(this._createAttachment(o,t,r))}_updateAttachment(o,t,r){let n=this._quill.container.querySelector(`#${o}`);if(!n)return;n.setAttribute("href",t);let a=n.querySelector(".attachment-name");a&&(r?a.textContent=r:a.textContent="Error uploading file"),this._options.onFileUploaded&&this._options.onFileUploaded(n,{url:t});let s=this._options.attachmentInput;if(s&&r){let l=s.value,d=l?JSON.parse(l):[];d.push(r),s.value=JSON.stringify(d)}}_createAttachment(o,t,r){let n=document.createElement("a");n.setAttribute("href",o),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 o=this._options.attachmentInput;o&&(o.value="")}_removeAttachment(o){let t=this._quill.container.querySelector(`#${o}`);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(o,t){return new Promise((r,n)=>{let a=new XMLHttpRequest;a.open("PUT",t,!0),a.setRequestHeader("Content-Type",o.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(o)})}};var gw=ur(Ur(),1);var Y6=typeof global=="object"&&global&&global.Object===Object&&global,Kd=Y6;var X6=typeof self=="object"&&self&&self.Object===Object&&self,Q6=Kd||X6||Function("return this")(),Me=Q6;var J6=Me.Symbol,_o=J6;var ex=Object.prototype,Z6=ex.hasOwnProperty,t9=ex.toString,Ll=_o?_o.toStringTag:void 0;function e9(i){var o=Z6.call(i,Ll),t=i[Ll];try{i[Ll]=void 0;var r=!0}catch{}var n=t9.call(i);return r&&(o?i[Ll]=t:delete i[Ll]),n}var rx=e9;var r9=Object.prototype,o9=r9.toString;function n9(i){return o9.call(i)}var ox=n9;var i9="[object Null]",a9="[object Undefined]",nx=_o?_o.toStringTag:void 0;function s9(i){return i==null?i===void 0?a9:i9:nx&&nx in Object(i)?rx(i):ox(i)}var Xo=s9;function l9(i){return i!=null&&typeof i=="object"}var cr=l9;var c9=Array.isArray,ko=c9;function d9(i){var o=typeof i;return i!=null&&(o=="object"||o=="function")}var xr=d9;function p9(i){return i}var Yd=p9;var h9="[object AsyncFunction]",u9="[object Function]",m9="[object GeneratorFunction]",f9="[object Proxy]";function g9(i){if(!xr(i))return!1;var o=Xo(i);return o==u9||o==m9||o==h9||o==f9}var ss=g9;var b9=Me["__core-js_shared__"],Xd=b9;var ix=(function(){var i=/[^.]+$/.exec(Xd&&Xd.keys&&Xd.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function v9(i){return!!ix&&ix in i}var ax=v9;var x9=Function.prototype,y9=x9.toString;function z9(i){if(i!=null){try{return y9.call(i)}catch{}try{return i+""}catch{}}return""}var jn=z9;var w9=/[\\^$.*+?()[\]{}|]/g,_9=/^\[object .+?Constructor\]$/,k9=Function.prototype,C9=Object.prototype,S9=k9.toString,E9=C9.hasOwnProperty,T9=RegExp("^"+S9.call(E9).replace(w9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $9(i){if(!xr(i)||ax(i))return!1;var o=ss(i)?T9:_9;return o.test(jn(i))}var sx=$9;function A9(i,o){return i?.[o]}var lx=A9;function L9(i,o){var t=lx(i,o);return sx(t)?t:void 0}var jr=L9;var M9=jr(Me,"WeakMap"),Qd=M9;var cx=Object.create,q9=(function(){function i(){}return function(o){if(!xr(o))return{};if(cx)return cx(o);i.prototype=o;var t=new i;return i.prototype=void 0,t}})(),dx=q9;function I9(i,o,t){switch(t.length){case 0:return i.call(o);case 1:return i.call(o,t[0]);case 2:return i.call(o,t[0],t[1]);case 3:return i.call(o,t[0],t[1],t[2])}return i.apply(o,t)}var px=I9;function D9(i,o){var t=-1,r=i.length;for(o||(o=Array(r));++t<r;)o[t]=i[t];return o}var Jd=D9;var N9=800,R9=16,O9=Date.now;function P9(i){var o=0,t=0;return function(){var r=O9(),n=R9-(r-t);if(t=r,n>0){if(++o>=N9)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}var hx=P9;function H9(i){return function(){return i}}var ux=H9;var F9=(function(){try{var i=jr(Object,"defineProperty");return i({},"",{}),i}catch{}})(),ls=F9;var B9=ls?function(i,o){return ls(i,"toString",{configurable:!0,enumerable:!1,value:ux(o),writable:!0})}:Yd,mx=B9;var V9=hx(mx),fx=V9;function U9(i,o){for(var t=-1,r=i==null?0:i.length;++t<r&&o(i[t],t,i)!==!1;);return i}var gx=U9;var j9=9007199254740991,G9=/^(?:0|[1-9]\d*)$/;function W9(i,o){var t=typeof i;return o=o??j9,!!o&&(t=="number"||t!="symbol"&&G9.test(i))&&i>-1&&i%1==0&&i<o}var Zd=W9;function K9(i,o,t){o=="__proto__"&&ls?ls(i,o,{configurable:!0,enumerable:!0,value:t,writable:!0}):i[o]=t}var cs=K9;function Y9(i,o){return i===o||i!==i&&o!==o}var vn=Y9;var X9=Object.prototype,Q9=X9.hasOwnProperty;function J9(i,o,t){var r=i[o];(!(Q9.call(i,o)&&vn(r,t))||t===void 0&&!(o in i))&&cs(i,o,t)}var tp=J9;function Z9(i,o,t,r){var n=!t;t||(t={});for(var a=-1,s=o.length;++a<s;){var l=o[a],d=r?r(t[l],i[l],l,t,i):void 0;d===void 0&&(d=i[l]),n?cs(t,l,d):tp(t,l,d)}return t}var xn=Z9;var bx=Math.max;function t7(i,o,t){return o=bx(o===void 0?i.length-1:o,0),function(){for(var r=arguments,n=-1,a=bx(r.length-o,0),s=Array(a);++n<a;)s[n]=r[o+n];n=-1;for(var l=Array(o+1);++n<o;)l[n]=r[n];return l[o]=t(s),px(i,this,l)}}var vx=t7;function e7(i,o){return fx(vx(i,o,Yd),i+"")}var xx=e7;var r7=9007199254740991;function o7(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=r7}var ep=o7;function n7(i){return i!=null&&ep(i.length)&&!ss(i)}var yi=n7;function i7(i,o,t){if(!xr(t))return!1;var r=typeof o;return(r=="number"?yi(t)&&Zd(o,t.length):r=="string"&&o in t)?vn(t[o],i):!1}var yx=i7;function a7(i){return xx(function(o,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(a=i.length>3&&typeof a=="function"?(n--,a):void 0,s&&yx(t[0],t[1],s)&&(a=n<3?void 0:a,n=1),o=Object(o);++r<n;){var l=t[r];l&&i(o,l,r,a)}return o})}var zx=a7;var s7=Object.prototype;function l7(i){var o=i&&i.constructor,t=typeof o=="function"&&o.prototype||s7;return i===t}var ds=l7;function c7(i,o){for(var t=-1,r=Array(i);++t<i;)r[t]=o(t);return r}var wx=c7;var d7="[object Arguments]";function p7(i){return cr(i)&&Xo(i)==d7}var sm=p7;var _x=Object.prototype,h7=_x.hasOwnProperty,u7=_x.propertyIsEnumerable,m7=sm((function(){return arguments})())?sm:function(i){return cr(i)&&h7.call(i,"callee")&&!u7.call(i,"callee")},Ml=m7;function f7(){return!1}var kx=f7;var Ex=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cx=Ex&&typeof module=="object"&&module&&!module.nodeType&&module,g7=Cx&&Cx.exports===Ex,Sx=g7?Me.Buffer:void 0,b7=Sx?Sx.isBuffer:void 0,v7=b7||kx,Gn=v7;var x7="[object Arguments]",y7="[object Array]",z7="[object Boolean]",w7="[object Date]",_7="[object Error]",k7="[object Function]",C7="[object Map]",S7="[object Number]",E7="[object Object]",T7="[object RegExp]",$7="[object Set]",A7="[object String]",L7="[object WeakMap]",M7="[object ArrayBuffer]",q7="[object DataView]",I7="[object Float32Array]",D7="[object Float64Array]",N7="[object Int8Array]",R7="[object Int16Array]",O7="[object Int32Array]",P7="[object Uint8Array]",H7="[object Uint8ClampedArray]",F7="[object Uint16Array]",B7="[object Uint32Array]",Jt={};Jt[I7]=Jt[D7]=Jt[N7]=Jt[R7]=Jt[O7]=Jt[P7]=Jt[H7]=Jt[F7]=Jt[B7]=!0;Jt[x7]=Jt[y7]=Jt[M7]=Jt[z7]=Jt[q7]=Jt[w7]=Jt[_7]=Jt[k7]=Jt[C7]=Jt[S7]=Jt[E7]=Jt[T7]=Jt[$7]=Jt[A7]=Jt[L7]=!1;function V7(i){return cr(i)&&ep(i.length)&&!!Jt[Xo(i)]}var Tx=V7;function U7(i){return function(o){return i(o)}}var ps=U7;var $x=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ql=$x&&typeof module=="object"&&module&&!module.nodeType&&module,j7=ql&&ql.exports===$x,lm=j7&&Kd.process,G7=(function(){try{var i=ql&&ql.require&&ql.require("util").types;return i||lm&&lm.binding&&lm.binding("util")}catch{}})(),Wn=G7;var Ax=Wn&&Wn.isTypedArray,W7=Ax?ps(Ax):Tx,hs=W7;var K7=Object.prototype,Y7=K7.hasOwnProperty;function X7(i,o){var t=ko(i),r=!t&&Ml(i),n=!t&&!r&&Gn(i),a=!t&&!r&&!n&&hs(i),s=t||r||n||a,l=s?wx(i.length,String):[],d=l.length;for(var h in i)(o||Y7.call(i,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Zd(h,d)))&&l.push(h);return l}var rp=X7;function Q7(i,o){return function(t){return i(o(t))}}var op=Q7;var J7=op(Object.keys,Object),Lx=J7;var Z7=Object.prototype,tC=Z7.hasOwnProperty;function eC(i){if(!ds(i))return Lx(i);var o=[];for(var t in Object(i))tC.call(i,t)&&t!="constructor"&&o.push(t);return o}var Mx=eC;function rC(i){return yi(i)?rp(i):Mx(i)}var us=rC;function oC(i){var o=[];if(i!=null)for(var t in Object(i))o.push(t);return o}var qx=oC;var nC=Object.prototype,iC=nC.hasOwnProperty;function aC(i){if(!xr(i))return qx(i);var o=ds(i),t=[];for(var r in i)r=="constructor"&&(o||!iC.call(i,r))||t.push(r);return t}var Ix=aC;function sC(i){return yi(i)?rp(i,!0):Ix(i)}var yn=sC;var lC=jr(Object,"create"),Kn=lC;function cC(){this.__data__=Kn?Kn(null):{},this.size=0}var Dx=cC;function dC(i){var o=this.has(i)&&delete this.__data__[i];return this.size-=o?1:0,o}var Nx=dC;var pC="__lodash_hash_undefined__",hC=Object.prototype,uC=hC.hasOwnProperty;function mC(i){var o=this.__data__;if(Kn){var t=o[i];return t===pC?void 0:t}return uC.call(o,i)?o[i]:void 0}var Rx=mC;var fC=Object.prototype,gC=fC.hasOwnProperty;function bC(i){var o=this.__data__;return Kn?o[i]!==void 0:gC.call(o,i)}var Ox=bC;var vC="__lodash_hash_undefined__";function xC(i,o){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=Kn&&o===void 0?vC:o,this}var Px=xC;function ms(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}ms.prototype.clear=Dx;ms.prototype.delete=Nx;ms.prototype.get=Rx;ms.prototype.has=Ox;ms.prototype.set=Px;var cm=ms;function yC(){this.__data__=[],this.size=0}var Hx=yC;function zC(i,o){for(var t=i.length;t--;)if(vn(i[t][0],o))return t;return-1}var zi=zC;var wC=Array.prototype,_C=wC.splice;function kC(i){var o=this.__data__,t=zi(o,i);if(t<0)return!1;var r=o.length-1;return t==r?o.pop():_C.call(o,t,1),--this.size,!0}var Fx=kC;function CC(i){var o=this.__data__,t=zi(o,i);return t<0?void 0:o[t][1]}var Bx=CC;function SC(i){return zi(this.__data__,i)>-1}var Vx=SC;function EC(i,o){var t=this.__data__,r=zi(t,i);return r<0?(++this.size,t.push([i,o])):t[r][1]=o,this}var Ux=EC;function fs(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}fs.prototype.clear=Hx;fs.prototype.delete=Fx;fs.prototype.get=Bx;fs.prototype.has=Vx;fs.prototype.set=Ux;var wi=fs;var TC=jr(Me,"Map"),_i=TC;function $C(){this.size=0,this.__data__={hash:new cm,map:new(_i||wi),string:new cm}}var jx=$C;function AC(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}var Gx=AC;function LC(i,o){var t=i.__data__;return Gx(o)?t[typeof o=="string"?"string":"hash"]:t.map}var ki=LC;function MC(i){var o=ki(this,i).delete(i);return this.size-=o?1:0,o}var Wx=MC;function qC(i){return ki(this,i).get(i)}var Kx=qC;function IC(i){return ki(this,i).has(i)}var Yx=IC;function DC(i,o){var t=ki(this,i),r=t.size;return t.set(i,o),this.size+=t.size==r?0:1,this}var Xx=DC;function gs(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}gs.prototype.clear=jx;gs.prototype.delete=Wx;gs.prototype.get=Kx;gs.prototype.has=Yx;gs.prototype.set=Xx;var np=gs;function NC(i,o){for(var t=-1,r=o.length,n=i.length;++t<r;)i[n+t]=o[t];return i}var ip=NC;var RC=op(Object.getPrototypeOf,Object),bs=RC;var OC="[object Object]",PC=Function.prototype,HC=Object.prototype,Qx=PC.toString,FC=HC.hasOwnProperty,BC=Qx.call(Object);function VC(i){if(!cr(i)||Xo(i)!=OC)return!1;var o=bs(i);if(o===null)return!0;var t=FC.call(o,"constructor")&&o.constructor;return typeof t=="function"&&t instanceof t&&Qx.call(t)==BC}var Jx=VC;function UC(){this.__data__=new wi,this.size=0}var Zx=UC;function jC(i){var o=this.__data__,t=o.delete(i);return this.size=o.size,t}var ty=jC;function GC(i){return this.__data__.get(i)}var ey=GC;function WC(i){return this.__data__.has(i)}var ry=WC;var KC=200;function YC(i,o){var t=this.__data__;if(t instanceof wi){var r=t.__data__;if(!_i||r.length<KC-1)return r.push([i,o]),this.size=++t.size,this;t=this.__data__=new np(r)}return t.set(i,o),this.size=t.size,this}var oy=YC;function vs(i){var o=this.__data__=new wi(i);this.size=o.size}vs.prototype.clear=Zx;vs.prototype.delete=ty;vs.prototype.get=ey;vs.prototype.has=ry;vs.prototype.set=oy;var Ci=vs;function XC(i,o){return i&&xn(o,us(o),i)}var ny=XC;function QC(i,o){return i&&xn(o,yn(o),i)}var iy=QC;var cy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ay=cy&&typeof module=="object"&&module&&!module.nodeType&&module,JC=ay&&ay.exports===cy,sy=JC?Me.Buffer:void 0,ly=sy?sy.allocUnsafe:void 0;function ZC(i,o){if(o)return i.slice();var t=i.length,r=ly?ly(t):new i.constructor(t);return i.copy(r),r}var ap=ZC;function tS(i,o){for(var t=-1,r=i==null?0:i.length,n=0,a=[];++t<r;){var s=i[t];o(s,t,i)&&(a[n++]=s)}return a}var dy=tS;function eS(){return[]}var sp=eS;var rS=Object.prototype,oS=rS.propertyIsEnumerable,py=Object.getOwnPropertySymbols,nS=py?function(i){return i==null?[]:(i=Object(i),dy(py(i),function(o){return oS.call(i,o)}))}:sp,xs=nS;function iS(i,o){return xn(i,xs(i),o)}var hy=iS;var aS=Object.getOwnPropertySymbols,sS=aS?function(i){for(var o=[];i;)ip(o,xs(i)),i=bs(i);return o}:sp,lp=sS;function lS(i,o){return xn(i,lp(i),o)}var uy=lS;function cS(i,o,t){var r=o(i);return ko(i)?r:ip(r,t(i))}var cp=cS;function dS(i){return cp(i,us,xs)}var Il=dS;function pS(i){return cp(i,yn,lp)}var my=pS;var hS=jr(Me,"DataView"),dp=hS;var uS=jr(Me,"Promise"),pp=uS;var mS=jr(Me,"Set"),hp=mS;var fy="[object Map]",fS="[object Object]",gy="[object Promise]",by="[object Set]",vy="[object WeakMap]",xy="[object DataView]",gS=jn(dp),bS=jn(_i),vS=jn(pp),xS=jn(hp),yS=jn(Qd),xa=Xo;(dp&&xa(new dp(new ArrayBuffer(1)))!=xy||_i&&xa(new _i)!=fy||pp&&xa(pp.resolve())!=gy||hp&&xa(new hp)!=by||Qd&&xa(new Qd)!=vy)&&(xa=function(i){var o=Xo(i),t=o==fS?i.constructor:void 0,r=t?jn(t):"";if(r)switch(r){case gS:return xy;case bS:return fy;case vS:return gy;case xS:return by;case yS:return vy}return o});var Yn=xa;var zS=Object.prototype,wS=zS.hasOwnProperty;function _S(i){var o=i.length,t=new i.constructor(o);return o&&typeof i[0]=="string"&&wS.call(i,"index")&&(t.index=i.index,t.input=i.input),t}var yy=_S;var kS=Me.Uint8Array,ys=kS;function CS(i){var o=new i.constructor(i.byteLength);return new ys(o).set(new ys(i)),o}var zs=CS;function SS(i,o){var t=o?zs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}var zy=SS;var ES=/\w*$/;function TS(i){var o=new i.constructor(i.source,ES.exec(i));return o.lastIndex=i.lastIndex,o}var wy=TS;var _y=_o?_o.prototype:void 0,ky=_y?_y.valueOf:void 0;function $S(i){return ky?Object(ky.call(i)):{}}var Cy=$S;function AS(i,o){var t=o?zs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}var up=AS;var LS="[object Boolean]",MS="[object Date]",qS="[object Map]",IS="[object Number]",DS="[object RegExp]",NS="[object Set]",RS="[object String]",OS="[object Symbol]",PS="[object ArrayBuffer]",HS="[object DataView]",FS="[object Float32Array]",BS="[object Float64Array]",VS="[object Int8Array]",US="[object Int16Array]",jS="[object Int32Array]",GS="[object Uint8Array]",WS="[object Uint8ClampedArray]",KS="[object Uint16Array]",YS="[object Uint32Array]";function XS(i,o,t){var r=i.constructor;switch(o){case PS:return zs(i);case LS:case MS:return new r(+i);case HS:return zy(i,t);case FS:case BS:case VS:case US:case jS:case GS:case WS:case KS:case YS:return up(i,t);case qS:return new r;case IS:case RS:return new r(i);case DS:return wy(i);case NS:return new r;case OS:return Cy(i)}}var Sy=XS;function QS(i){return typeof i.constructor=="function"&&!ds(i)?dx(bs(i)):{}}var mp=QS;var JS="[object Map]";function ZS(i){return cr(i)&&Yn(i)==JS}var Ey=ZS;var Ty=Wn&&Wn.isMap,tE=Ty?ps(Ty):Ey,$y=tE;var eE="[object Set]";function rE(i){return cr(i)&&Yn(i)==eE}var Ay=rE;var Ly=Wn&&Wn.isSet,oE=Ly?ps(Ly):Ay,My=oE;var nE=1,iE=2,aE=4,qy="[object Arguments]",sE="[object Array]",lE="[object Boolean]",cE="[object Date]",dE="[object Error]",Iy="[object Function]",pE="[object GeneratorFunction]",hE="[object Map]",uE="[object Number]",Dy="[object Object]",mE="[object RegExp]",fE="[object Set]",gE="[object String]",bE="[object Symbol]",vE="[object WeakMap]",xE="[object ArrayBuffer]",yE="[object DataView]",zE="[object Float32Array]",wE="[object Float64Array]",_E="[object Int8Array]",kE="[object Int16Array]",CE="[object Int32Array]",SE="[object Uint8Array]",EE="[object Uint8ClampedArray]",TE="[object Uint16Array]",$E="[object Uint32Array]",Wt={};Wt[qy]=Wt[sE]=Wt[xE]=Wt[yE]=Wt[lE]=Wt[cE]=Wt[zE]=Wt[wE]=Wt[_E]=Wt[kE]=Wt[CE]=Wt[hE]=Wt[uE]=Wt[Dy]=Wt[mE]=Wt[fE]=Wt[gE]=Wt[bE]=Wt[SE]=Wt[EE]=Wt[TE]=Wt[$E]=!0;Wt[dE]=Wt[Iy]=Wt[vE]=!1;function fp(i,o,t,r,n,a){var s,l=o&nE,d=o&iE,h=o&aE;if(t&&(s=n?t(i,r,n,a):t(i)),s!==void 0)return s;if(!xr(i))return i;var m=ko(i);if(m){if(s=yy(i),!l)return Jd(i,s)}else{var f=Yn(i),b=f==Iy||f==pE;if(Gn(i))return ap(i,l);if(f==Dy||f==qy||b&&!n){if(s=d||b?{}:mp(i),!l)return d?uy(i,iy(s,i)):hy(i,ny(s,i))}else{if(!Wt[f])return n?i:{};s=Sy(i,f,l)}}a||(a=new Ci);var g=a.get(i);if(g)return g;a.set(i,s),My(i)?i.forEach(function(_){s.add(fp(_,o,t,_,i,a))}):$y(i)&&i.forEach(function(_,k){s.set(k,fp(_,o,t,k,i,a))});var v=h?d?my:Il:d?yn:us,x=m?void 0:v(i);return gx(x||i,function(_,k){x&&(k=_,_=i[k]),tp(s,k,fp(_,o,t,k,i,a))}),s}var Ny=fp;var AE=1,LE=4;function ME(i){return Ny(i,AE|LE)}var zn=ME;var qE="__lodash_hash_undefined__";function IE(i){return this.__data__.set(i,qE),this}var Ry=IE;function DE(i){return this.__data__.has(i)}var Oy=DE;function gp(i){var o=-1,t=i==null?0:i.length;for(this.__data__=new np;++o<t;)this.add(i[o])}gp.prototype.add=gp.prototype.push=Ry;gp.prototype.has=Oy;var Py=gp;function NE(i,o){for(var t=-1,r=i==null?0:i.length;++t<r;)if(o(i[t],t,i))return!0;return!1}var Hy=NE;function RE(i,o){return i.has(o)}var Fy=RE;var OE=1,PE=2;function HE(i,o,t,r,n,a){var s=t&OE,l=i.length,d=o.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(i),m=a.get(o);if(h&&m)return h==o&&m==i;var f=-1,b=!0,g=t&PE?new Py:void 0;for(a.set(i,o),a.set(o,i);++f<l;){var v=i[f],x=o[f];if(r)var _=s?r(x,v,f,o,i,a):r(v,x,f,i,o,a);if(_!==void 0){if(_)continue;b=!1;break}if(g){if(!Hy(o,function(k,N){if(!Fy(g,N)&&(v===k||n(v,k,t,r,a)))return g.push(N)})){b=!1;break}}else if(!(v===x||n(v,x,t,r,a))){b=!1;break}}return a.delete(i),a.delete(o),b}var bp=HE;function FE(i){var o=-1,t=Array(i.size);return i.forEach(function(r,n){t[++o]=[n,r]}),t}var By=FE;function BE(i){var o=-1,t=Array(i.size);return i.forEach(function(r){t[++o]=r}),t}var Vy=BE;var VE=1,UE=2,jE="[object Boolean]",GE="[object Date]",WE="[object Error]",KE="[object Map]",YE="[object Number]",XE="[object RegExp]",QE="[object Set]",JE="[object String]",ZE="[object Symbol]",tT="[object ArrayBuffer]",eT="[object DataView]",Uy=_o?_o.prototype:void 0,dm=Uy?Uy.valueOf:void 0;function rT(i,o,t,r,n,a,s){switch(t){case eT:if(i.byteLength!=o.byteLength||i.byteOffset!=o.byteOffset)return!1;i=i.buffer,o=o.buffer;case tT:return!(i.byteLength!=o.byteLength||!a(new ys(i),new ys(o)));case jE:case GE:case YE:return vn(+i,+o);case WE:return i.name==o.name&&i.message==o.message;case XE:case JE:return i==o+"";case KE:var l=By;case QE:var d=r&VE;if(l||(l=Vy),i.size!=o.size&&!d)return!1;var h=s.get(i);if(h)return h==o;r|=UE,s.set(i,o);var m=bp(l(i),l(o),r,n,a,s);return s.delete(i),m;case ZE:if(dm)return dm.call(i)==dm.call(o)}return!1}var jy=rT;var oT=1,nT=Object.prototype,iT=nT.hasOwnProperty;function aT(i,o,t,r,n,a){var s=t&oT,l=Il(i),d=l.length,h=Il(o),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in o:iT.call(o,b)))return!1}var g=a.get(i),v=a.get(o);if(g&&v)return g==o&&v==i;var x=!0;a.set(i,o),a.set(o,i);for(var _=s;++f<d;){b=l[f];var k=i[b],N=o[b];if(r)var G=s?r(N,k,b,o,i,a):r(k,N,b,i,o,a);if(!(G===void 0?k===N||n(k,N,t,r,a):G)){x=!1;break}_||(_=b=="constructor")}if(x&&!_){var I=i.constructor,w=o.constructor;I!=w&&"constructor"in i&&"constructor"in o&&!(typeof I=="function"&&I instanceof I&&typeof w=="function"&&w instanceof w)&&(x=!1)}return a.delete(i),a.delete(o),x}var Gy=aT;var sT=1,Wy="[object Arguments]",Ky="[object Array]",vp="[object Object]",lT=Object.prototype,Yy=lT.hasOwnProperty;function cT(i,o,t,r,n,a){var s=ko(i),l=ko(o),d=s?Ky:Yn(i),h=l?Ky:Yn(o);d=d==Wy?vp:d,h=h==Wy?vp:h;var m=d==vp,f=h==vp,b=d==h;if(b&&Gn(i)){if(!Gn(o))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Ci),s||hs(i)?bp(i,o,t,r,n,a):jy(i,o,d,t,r,n,a);if(!(t&sT)){var g=m&&Yy.call(i,"__wrapped__"),v=f&&Yy.call(o,"__wrapped__");if(g||v){var x=g?i.value():i,_=v?o.value():o;return a||(a=new Ci),n(x,_,t,r,a)}}return b?(a||(a=new Ci),Gy(i,o,t,r,n,a)):!1}var Xy=cT;function Qy(i,o,t,r,n){return i===o?!0:i==null||o==null||!cr(i)&&!cr(o)?i!==i&&o!==o:Xy(i,o,t,r,Qy,n)}var Jy=Qy;function dT(i){return function(o,t,r){for(var n=-1,a=Object(o),s=r(o),l=s.length;l--;){var d=s[i?l:++n];if(t(a[d],d,a)===!1)break}return o}}var Zy=dT;var pT=Zy(),tz=pT;function hT(i,o,t){(t!==void 0&&!vn(i[o],t)||t===void 0&&!(o in i))&&cs(i,o,t)}var Dl=hT;function uT(i){return cr(i)&&yi(i)}var ez=uT;function mT(i,o){if(!(o==="constructor"&&typeof i[o]=="function")&&o!="__proto__")return i[o]}var Nl=mT;function fT(i){return xn(i,yn(i))}var rz=fT;function gT(i,o,t,r,n,a,s){var l=Nl(i,t),d=Nl(o,t),h=s.get(d);if(h){Dl(i,t,h);return}var m=a?a(l,d,t+"",i,o,s):void 0,f=m===void 0;if(f){var b=ko(d),g=!b&&Gn(d),v=!b&&!g&&hs(d);m=d,b||g||v?ko(l)?m=l:ez(l)?m=Jd(l):g?(f=!1,m=ap(d,!0)):v?(f=!1,m=up(d,!0)):m=[]:Jx(d)||Ml(d)?(m=l,Ml(l)?m=rz(l):(!xr(l)||ss(l))&&(m=mp(d))):f=!1}f&&(s.set(d,m),n(m,d,r,a,s),s.delete(d)),Dl(i,t,m)}var oz=gT;function nz(i,o,t,r,n){i!==o&&tz(o,function(a,s){if(n||(n=new Ci),xr(a))oz(i,o,s,t,nz,r,n);else{var l=r?r(Nl(i,s),a,s+"",i,o,n):void 0;l===void 0&&(l=a),Dl(i,s,l)}},yn)}var iz=nz;function bT(i,o){return Jy(i,o)}var ya=bT;var vT=zx(function(i,o,t){iz(i,o,t)}),Gr=vT;var Pl={};P_(Pl,{Attributor:()=>Lr,AttributorStore:()=>Rl,BlockBlot:()=>za,ClassAttributor:()=>qe,ContainerBlot:()=>Ss,EmbedBlot:()=>pe,InlineBlot:()=>xp,LeafBlot:()=>Ie,ParentBlot:()=>Wr,Registry:()=>Ti,Scope:()=>X,ScrollBlot:()=>Ol,StyleAttributor:()=>Kr,TextBlot:()=>Es});var X=(i=>(i[i.TYPE=3]="TYPE",i[i.LEVEL=12]="LEVEL",i[i.ATTRIBUTE=13]="ATTRIBUTE",i[i.BLOT=14]="BLOT",i[i.INLINE=7]="INLINE",i[i.BLOCK=11]="BLOCK",i[i.BLOCK_BLOT=10]="BLOCK_BLOT",i[i.INLINE_BLOT=6]="INLINE_BLOT",i[i.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",i[i.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",i[i.ANY=15]="ANY",i))(X||{}),Lr=class{constructor(o,t,r={}){this.attrName=o,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(o){return Array.from(o.attributes).map(t=>t.name)}add(o,t){return this.canAdd(o,t)?(o.setAttribute(this.keyName,t),!0):!1}canAdd(o,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(o){o.removeAttribute(this.keyName)}value(o){let t=o.getAttribute(this.keyName);return this.canAdd(o,t)&&t?t:""}},Ei=class extends Error{constructor(o){o="[Parchment] "+o,super(o),this.message=o,this.name=this.constructor.name}},lz=class hm{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(o,t=!1){if(o==null)return null;if(this.blots.has(o))return this.blots.get(o)||null;if(t){let r=null;try{r=o.parentNode}catch{return null}return this.find(r,t)}return null}create(o,t,r){let n=this.query(t);if(n==null)throw new Ei(`Unable to create ${t} blot`);let a=n,s=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(r),l=new a(o,s,r);return hm.blots.set(l.domNode,l),l}find(o,t=!1){return hm.find(o,t)}query(o,t=X.ANY){let r;return typeof o=="string"?r=this.types[o]||this.attributes[o]:o instanceof Text||o.nodeType===Node.TEXT_NODE?r=this.types.text:typeof o=="number"?o&X.LEVEL&X.BLOCK?r=this.types.block:o&X.LEVEL&X.INLINE&&(r=this.types.inline):o instanceof Element&&((o.getAttribute("class")||"").split(/\s+/).some(n=>(r=this.classes[n],!!r)),r=r||this.tags[o.tagName]),r==null?null:"scope"in r&&t&X.LEVEL&r.scope&&t&X.TYPE&r.scope?r:null}register(...o){return o.map(t=>{let r="blotName"in t,n="attrName"in t;if(!r&&!n)throw new Ei("Invalid definition");if(r&&t.blotName==="abstract")throw new Ei("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})}};lz.blots=new WeakMap;var Ti=lz;function az(i,o){return(i.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${o}-`)===0)}var um=class extends Lr{static keys(o){return(o.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(o,t){return this.canAdd(o,t)?(this.remove(o),o.classList.add(`${this.keyName}-${t}`),!0):!1}remove(o){az(o,this.keyName).forEach(t=>{o.classList.remove(t)}),o.classList.length===0&&o.removeAttribute("class")}value(o){let t=(az(o,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(o,t)?t:""}},qe=um;function pm(i){let o=i.split("-"),t=o.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return o[0]+t}var mm=class extends Lr{static keys(o){return(o.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(o,t){return this.canAdd(o,t)?(o.style[pm(this.keyName)]=t,!0):!1}remove(o){o.style[pm(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")}value(o){let t=o.style[pm(this.keyName)];return this.canAdd(o,t)?t:""}},Kr=mm,fm=class{constructor(o){this.attributes={},this.domNode=o,this.build()}attribute(o,t){t?o.add(this.domNode,t)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])}build(){this.attributes={};let o=Ti.find(this.domNode);if(o==null)return;let t=Lr.keys(this.domNode),r=qe.keys(this.domNode),n=Kr.keys(this.domNode);t.concat(r).concat(n).forEach(a=>{let s=o.scroll.query(a,X.ATTRIBUTE);s instanceof Lr&&(this.attributes[s.attrName]=s)})}copy(o){Object.keys(this.attributes).forEach(t=>{let r=this.attributes[t].value(this.domNode);o.format(t,r)})}move(o){this.copy(o),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((o,t)=>(o[t]=this.attributes[t].value(this.domNode),o),{})}},Rl=fm,cz=class{constructor(o,t){this.scroll=o,this.domNode=t,Ti.blots.set(t,this),this.prev=null,this.next=null}static create(o){if(this.tagName==null)throw new Ei("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof o=="string"?(r=o.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof o=="number"&&(r=o),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 o=this.domNode.cloneNode(!1);return this.scroll.create(o)}detach(){this.parent!=null&&this.parent.removeChild(this),Ti.blots.delete(this.domNode)}deleteAt(o,t){this.isolate(o,t).remove()}formatAt(o,t,r,n){let a=this.isolate(o,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(o,t,r){let n=r==null?this.scroll.create("text",t):this.scroll.create(t,r),a=this.split(o);this.parent.insertBefore(n,a||void 0)}isolate(o,t){let r=this.split(o);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(o=this.parent){return this.parent==null||this===o?0:this.parent.children.offset(this)+this.parent.offset(o)}optimize(o){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(o,t){let r=typeof o=="string"?this.scroll.create(o,t):o;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(o,t){return o===0?this:this.next}update(o,t){}wrap(o,t){let r=typeof o=="string"?this.scroll.create(o,t):o;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new Ei(`Cannot wrap ${o}`);return r.appendChild(this),r}};cz.blotName="abstract";var dz=cz,pz=class extends dz{static value(o){return!0}index(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(o,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return o>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};pz.scope=X.INLINE_BLOT;var xT=pz,Ie=xT,gm=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...o){if(this.insertBefore(o[0],null),o.length>1){let t=o.slice(1);this.append(...t)}}at(o){let t=this.iterator(),r=t();for(;r&&o>0;)o-=1,r=t();return r}contains(o){let t=this.iterator(),r=t();for(;r;){if(r===o)return!0;r=t()}return!1}indexOf(o){let t=this.iterator(),r=t(),n=0;for(;r;){if(r===o)return n;n+=1,r=t()}return-1}insertBefore(o,t){o!=null&&(this.remove(o),o.next=t,t!=null?(o.prev=t.prev,t.prev!=null&&(t.prev.next=o),t.prev=o,t===this.head&&(this.head=o)):this.tail!=null?(this.tail.next=o,o.prev=this.tail,this.tail=o):(o.prev=null,this.head=this.tail=o),this.length+=1)}offset(o){let t=0,r=this.head;for(;r!=null;){if(r===o)return t;t+=r.length(),r=r.next}return-1}remove(o){this.contains(o)&&(o.prev!=null&&(o.prev.next=o.next),o.next!=null&&(o.next.prev=o.prev),o===this.head&&(this.head=o.next),o===this.tail&&(this.tail=o.prev),this.length-=1)}iterator(o=this.head){return()=>{let t=o;return o!=null&&(o=o.next),t}}find(o,t=!1){let r=this.iterator(),n=r();for(;n;){let a=n.length();if(o<a||t&&o===a&&(n.next==null||n.next.length()!==0))return[n,o];o-=a,n=r()}return[null,0]}forEach(o){let t=this.iterator(),r=t();for(;r;)o(r),r=t()}forEachAt(o,t,r){if(t<=0)return;let[n,a]=this.find(o),s=o-a,l=this.iterator(n),d=l();for(;d&&s<o+t;){let h=d.length();o>s?r(d,o-s,Math.min(t,s+h-o)):r(d,0,Math.min(h,o+t-s)),s+=h,d=l()}}map(o){return this.reduce((t,r)=>(t.push(o(r)),t),[])}reduce(o,t){let r=this.iterator(),n=r();for(;n;)t=o(t,n),n=r();return t}};function sz(i,o){let t=o.find(i);if(t)return t;try{return o.create(i)}catch{let r=o.create(X.INLINE);return Array.from(i.childNodes).forEach(n=>{r.domNode.appendChild(n)}),i.parentNode&&i.parentNode.replaceChild(r.domNode,i),r.attach(),r}}var hz=class Si extends dz{constructor(o,t){super(o,t),this.uiNode=null,this.build()}appendChild(o){this.insertBefore(o)}attach(){super.attach(),this.children.forEach(o=>{o.attach()})}attachUI(o){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=o,Si.uiClass&&this.uiNode.classList.add(Si.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new gm,Array.from(this.domNode.childNodes).filter(o=>o!==this.uiNode).reverse().forEach(o=>{try{let t=sz(o,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Ei)return;throw t}})}deleteAt(o,t){if(o===0&&t===this.length())return this.remove();this.children.forEachAt(o,t,(r,n,a)=>{r.deleteAt(n,a)})}descendant(o,t=0){let[r,n]=this.children.find(t);return o.blotName==null&&o(r)||o.blotName!=null&&r instanceof o?[r,n]:r instanceof Si?r.descendant(o,n):[null,-1]}descendants(o,t=0,r=Number.MAX_VALUE){let n=[],a=r;return this.children.forEachAt(t,r,(s,l,d)=>{(o.blotName==null&&o(s)||o.blotName!=null&&s instanceof o)&&n.push(s),s instanceof Si&&(n=n.concat(s.descendants(o,l,a))),a-=d}),n}detach(){this.children.forEach(o=>{o.detach()}),super.detach()}enforceAllowedChildren(){let o=!1;this.children.forEach(t=>{o||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(),o=!0):t instanceof Si?t.unwrap():t.remove())})}formatAt(o,t,r,n){this.children.forEachAt(o,t,(a,s,l)=>{a.formatAt(s,l,r,n)})}insertAt(o,t,r){let[n,a]=this.children.find(o);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(o,t){o.parent!=null&&o.parent.children.remove(o);let r=null;this.children.insertBefore(o,t||null),o.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==o.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(o.domNode,r),o.attach()}length(){return this.children.reduce((o,t)=>o+t.length(),0)}moveChildren(o,t){this.children.forEach(r=>{o.insertBefore(r,t)})}optimize(o){if(super.optimize(o),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(o,t=!1){let[r,n]=this.children.find(o,t),a=[[this,o]];return r instanceof Si?a.concat(r.path(n,t)):(r!=null&&a.push([r,n]),a)}removeChild(o){this.children.remove(o)}replaceWith(o,t){let r=typeof o=="string"?this.scroll.create(o,t):o;return r instanceof Si&&this.moveChildren(r),super.replaceWith(r)}split(o,t=!1){if(!t){if(o===0)return this;if(o===this.length())return this.next}let r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(o,this.length(),(n,a,s)=>{let l=n.split(a,t);l!=null&&r.appendChild(l)}),r}splitAfter(o){let t=this.clone();for(;o.next!=null;)t.appendChild(o.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(o,t){let r=[],n=[];o.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=sz(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};hz.uiClass="";var yT=hz,Wr=yT;function zT(i,o){if(Object.keys(i).length!==Object.keys(o).length)return!1;for(let t in i)if(i[t]!==o[t])return!1;return!0}var ws=class _s extends Wr{static create(o){return super.create(o)}static formats(o,t){let r=t.query(_s.blotName);if(!(r!=null&&o.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return o.tagName.toLowerCase()}}constructor(o,t){super(o,t),this.attributes=new Rl(this.domNode)}format(o,t){if(o===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof _s||(r=r.wrap(_s.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{let r=this.scroll.query(o,X.INLINE);if(r==null)return;r instanceof Lr?this.attributes.attribute(r,t):t&&(o!==this.statics.blotName||this.formats()[o]!==t)&&this.replaceWith(o,t)}}formats(){let o=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(o[this.statics.blotName]=t),o}formatAt(o,t,r,n){this.formats()[r]!=null||this.scroll.query(r,X.ATTRIBUTE)?this.isolate(o,t).format(r,n):super.formatAt(o,t,r,n)}optimize(o){super.optimize(o);let t=this.formats();if(Object.keys(t).length===0)return this.unwrap();let r=this.next;r instanceof _s&&r.prev===this&&zT(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(o,t){let r=super.replaceWith(o,t);return this.attributes.copy(r),r}update(o,t){super.update(o,t),o.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(o,t){let r=super.wrap(o,t);return r instanceof _s&&this.attributes.move(r),r}};ws.allowedChildren=[ws,Ie],ws.blotName="inline",ws.scope=X.INLINE_BLOT,ws.tagName="SPAN";var wT=ws,xp=wT,ks=class bm extends Wr{static create(o){return super.create(o)}static formats(o,t){let r=t.query(bm.blotName);if(!(r!=null&&o.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return o.tagName.toLowerCase()}}constructor(o,t){super(o,t),this.attributes=new Rl(this.domNode)}format(o,t){let r=this.scroll.query(o,X.BLOCK);r!=null&&(r instanceof Lr?this.attributes.attribute(r,t):o===this.statics.blotName&&!t?this.replaceWith(bm.blotName):t&&(o!==this.statics.blotName||this.formats()[o]!==t)&&this.replaceWith(o,t))}formats(){let o=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(o[this.statics.blotName]=t),o}formatAt(o,t,r,n){this.scroll.query(r,X.BLOCK)!=null?this.format(r,n):super.formatAt(o,t,r,n)}insertAt(o,t,r){if(r==null||this.scroll.query(t,X.INLINE)!=null)super.insertAt(o,t,r);else{let n=this.split(o);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(o,t){let r=super.replaceWith(o,t);return this.attributes.copy(r),r}update(o,t){super.update(o,t),o.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};ks.blotName="block",ks.scope=X.BLOCK_BLOT,ks.tagName="P",ks.allowedChildren=[xp,ks,Ie];var _T=ks,za=_T,vm=class extends Wr{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(o,t){super.deleteAt(o,t),this.enforceAllowedChildren()}formatAt(o,t,r,n){super.formatAt(o,t,r,n),this.enforceAllowedChildren()}insertAt(o,t,r){super.insertAt(o,t,r),this.enforceAllowedChildren()}optimize(o){super.optimize(o),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};vm.blotName="container",vm.scope=X.BLOCK_BLOT;var kT=vm,Ss=kT,xm=class extends Ie{static formats(o,t){}format(o,t){super.formatAt(0,this.length(),o,t)}formatAt(o,t,r,n){o===0&&t===this.length()?this.format(r,n):super.formatAt(o,t,r,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},pe=xm,CT={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ST=100,Cs=class extends Wr{constructor(o,t){super(null,t),this.registry=o,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,CT),this.attach()}create(o,t){return this.registry.create(this,o,t)}find(o,t=!1){let r=this.registry.find(o,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(o,t=X.ANY){return this.registry.query(o,t)}register(...o){return this.registry.register(...o)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(o,t){this.update(),o===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(o,t)}formatAt(o,t,r,n){this.update(),super.formatAt(o,t,r,n)}insertAt(o,t,r){this.update(),super.insertAt(o,t,r)}optimize(o=[],t={}){super.optimize(t);let r=t.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)o.push(n.pop());let a=(d,h=!0)=>{d==null||d===this||d.domNode.parentNode!=null&&(r.has(d.domNode)||r.set(d.domNode,[]),h&&a(d.parent))},s=d=>{r.has(d.domNode)&&(d instanceof Wr&&d.children.forEach(s),r.delete(d.domNode),d.optimize(t))},l=o;for(let d=0;l.length>0;d+=1){if(d>=ST)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 Wr&&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;)o.push(n.pop())}}update(o,t={}){o=o||this.observer.takeRecords();let r=new WeakMap;o.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(o,t)}};Cs.blotName="scroll",Cs.defaultChild=za,Cs.allowedChildren=[za,Ss],Cs.scope=X.BLOCK_BLOT,Cs.tagName="DIV";var ET=Cs,Ol=ET,ym=class uz extends Ie{static create(o){return document.createTextNode(o)}static value(o){return o.data}constructor(o,t){super(o,t),this.text=this.statics.value(this.domNode)}deleteAt(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)}index(o,t){return this.domNode===o?t:-1}insertAt(o,t,r){r==null?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):super.insertAt(o,t,r)}length(){return this.text.length}optimize(o){super.optimize(o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof uz&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(o,t=!1){return[this.domNode,o]}split(o,t=!1){if(!t){if(o===0)return this;if(o===this.length())return this.next}let r=this.scroll.create(this.domNode.splitText(o));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(o,t){o.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ym.blotName="text",ym.scope=X.INLINE_BLOT;var TT=ym,Es=TT;var Ai=ur(Ur(),1);var he=ur(Ur(),1);var wm=ur(Ur(),1);var Hl=class extends pe{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};Hl.blotName="break";Hl.tagName="BR";var yr=Hl;var Te=class extends Es{},$T={"&":"&","<":"<",">":">",'"':""","'":"'"};function wa(i){return i.replace(/[&<>"']/g,o=>$T[o])}var wn=class wn extends xp{static compare(o,t){let r=wn.order.indexOf(o),n=wn.order.indexOf(t);return r>=0||n>=0?r-n:o===t?0:o<t?-1:1}formatAt(o,t,r,n){if(wn.compare(this.statics.blotName,r)<0&&this.scroll.query(r,X.BLOT)){let a=this.isolate(o,t);n&&a.wrap(r,n)}else super.formatAt(o,t,r,n)}optimize(o){if(super.optimize(o),this.parent instanceof wn&&wn.compare(this.statics.blotName,this.parent.statics.blotName)>0){let t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};B(wn,"allowedChildren",[wn,yr,pe,Te]),B(wn,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var zm=wn,zr=zm;var mz=1,Bt=class extends za{constructor(){super(...arguments);B(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=_m(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(`
|
|
2621
|
-
`),s=a.shift();s.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;a.reduce((d,h)=>(l=l.split(d,!0),l.insertAt(0,h),h.length),t+s.length)}insertBefore(t,r){let{head:n}=this.children;super.insertBefore(t,r),n instanceof yr&&n.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+mz),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()-mz)){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}};
|
|
2622
|
-
`),a=n.pop(),s=n.map(d=>{let h=this.scroll.create(
|
|
2623
|
-
`,Yr(i))}function Yr(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return i==null||("formats"in i&&typeof i.formats=="function"&&(o={...o,...i.formats()},t&&delete o["code-token"]),i.parent==null||i.parent.statics.blotName==="scroll"||i.parent.statics.scope!==i.statics.scope)?o:Yr(i.parent,o,t)}var Co=class Co extends pe{static value(){}constructor(o,t,r){super(o,t),this.selection=r,this.textNode=document.createTextNode(Co.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(o,t){if(this.savedLength!==0){super.format(o,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=Co.CONTENTS.length,r.optimize(),r.formatAt(n,Co.CONTENTS.length,o,t),this.savedLength=0)}index(o,t){return o===this.textNode?0:super.index(o,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 o=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 Te?this.prev:null,r=t?t.length():0,n=this.next instanceof Te?this.next:null,a=n?n.text:"",{textNode:s}=this,l=s.data.split(Co.CONTENTS).join("");s.data=Co.CONTENTS;let d;if(t)d=t,(l||n)&&(t.insertAt(t.length(),l+a),n&&n.remove());else if(n)d=n,n.insertAt(0,l);else{let h=document.createTextNode(l);d=this.scroll.create(h),this.parent.insertBefore(d,this)}if(this.remove(),o){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(o.start.node,o.start.offset),f=h(o.end.node,o.end.offset);if(m!==null&&f!==null)return{startNode:d.domNode,startOffset:m,endNode:d.domNode,endOffset:f}}return null}update(o,t){if(o.some(r=>r.type==="characterData"&&r.target===this.textNode)){let r=this.restore();r&&(t.range=r)}}optimize(o){super.optimize(o);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Co.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};B(Co,"blotName","cursor"),B(Co,"className","ql-cursor"),B(Co,"tagName","span"),B(Co,"CONTENTS","\uFEFF");var km=Co,$i=km;var Sm=ur(gz(),1);var Bl=new WeakMap;var Em=["error","warn","log","info"],Tm="warn";function bz(i){if(Tm&&Em.indexOf(i)<=Em.indexOf(Tm)){for(var o=arguments.length,t=new Array(o>1?o-1:0),r=1;r<o;r++)t[r-1]=arguments[r];console[i](...t)}}function $m(i){return Em.reduce((o,t)=>(o[t]=bz.bind(console,t,i),o),{})}$m.level=i=>{Tm=i};bz.level=$m.level;var lo=$m;var Am=lo("quill:events"),MT=["selectionchange","mousedown","mouseup","click"];MT.forEach(i=>{document.addEventListener(i,function(){for(var o=arguments.length,t=new Array(o),r=0;r<o;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{let a=Bl.get(n);a&&a.emitter&&a.emitter.handleDOM(...t)})})});var Vl=class extends Sm.default{constructor(){super(),this.domListeners={},this.on("error",Am.error)}emit(){for(var o=arguments.length,t=new Array(o),r=0;r<o;r++)t[r]=arguments[r];return Am.log.call(Am,...t),super.emit(...t)}handleDOM(o){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[o.type]||[]).forEach(a=>{let{node:s,handler:l}=a;(o.target===s||s.contains(o.target))&&l(o,...r)})}listenDOM(o,t,r){this.domListeners[o]||(this.domListeners[o]=[]),this.domListeners[o].push({node:t,handler:r})}};B(Vl,"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"}),B(Vl,"sources",{API:"api",SILENT:"silent",USER:"user"});var J=Vl;var Lm=lo("quill:selection"),qr=class{constructor(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=o,this.length=t}},qm=class{constructor(o,t){this.emitter=t,this.scroll=o,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new qr(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,J.sources.USER),1)}),this.emitter.on(J.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;let r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(J.events.SCROLL_UPDATE,(n,a)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);let s=a.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(s?J.sources.SILENT:n)}catch{}})}),this.emitter.on(J.events.SCROLL_OPTIMIZE,(r,n)=>{if(n.range){let{startNode:a,startOffset:s,endNode:l,endOffset:d}=n.range;this.setNativeRange(a,s,l,d),this.update(J.sources.SILENT)}}),this.update(J.sources.SILENT)}handleComposition(){this.emitter.on(J.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(J.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){let o=this.cursor.restore();if(!o)return;setTimeout(()=>{this.setNativeRange(o.startNode,o.startOffset,o.endNode,o.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(o,t){this.scroll.update();let r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(o,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 Ie){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(o,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=this.scroll.length();o=Math.min(o,r-1),t=Math.min(o+t,r-1)-o;let n,[a,s]=this.scroll.leaf(o);if(a==null)return null;if(t>0&&s===a.length()){let[m]=this.scroll.leaf(o+1);if(m){let[f]=this.scroll.line(o),[b]=this.scroll.line(o+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(o+t),a==null?null:([n,s]=a.position(s,!0),l.setEnd(n,s),l.getBoundingClientRect());let d="left",h;if(n instanceof Text){if(!n.data.length)return null;s<n.data.length?(l.setStart(n,s),l.setEnd(n,s+1)):(l.setStart(n,s-1),l.setEnd(n,s),d="right"),h=l.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;h=a.domNode.getBoundingClientRect(),s>0&&(d="right")}return{bottom:h.top+h.height,height:h.height,left:h[d],right:h[d],top:h.top,width:0}}getNativeRange(){let o=document.getSelection();if(o==null||o.rangeCount<=0)return null;let t=o.getRangeAt(0);if(t==null)return null;let r=this.normalizeNative(t);return Lm.info("getNativeRange",r),r}getRange(){let o=this.scroll.domNode;if("isConnected"in o&&!o.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&&Mm(this.root,document.activeElement)}normalizedToRange(o){let t=[[o.start.node,o.start.offset]];o.native.collapsed||t.push([o.end.node,o.end.offset]);let r=t.map(s=>{let[l,d]=s,h=this.scroll.find(l,!0),m=h.offset(this.scroll);return d===0?m:h instanceof Ie?m+h.index(l,d):m+h.length()}),n=Math.min(Math.max(...r),this.scroll.length()-1),a=Math.min(n,...r);return new qr(a,n-a)}normalizeNative(o){if(!Mm(this.root,o.startContainer)||!o.collapsed&&!Mm(this.root,o.endContainer))return null;let t={start:{node:o.startContainer,offset:o.startOffset},end:{node:o.endContainer,offset:o.endOffset},native:o};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(o){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(o.index,!1),...r(o.index+o.length,!0)]}setNativeRange(o,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Lm.info("setNativeRange",o,t,r,n),o!=null&&(this.root.parentNode==null||o.parentNode==null||r.parentNode==null))return;let s=document.getSelection();if(s!=null)if(o!=null){this.hasFocus()||this.root.focus({preventScroll:!0});let{native:l}=this.getNativeRange()||{};if(l==null||a||o!==l.startContainer||t!==l.startOffset||r!==l.endContainer||n!==l.endOffset){o instanceof Element&&o.tagName==="BR"&&(t=Array.from(o.parentNode.childNodes).indexOf(o),o=o.parentNode),r instanceof Element&&r.tagName==="BR"&&(n=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);let d=document.createRange();d.setStart(o,t),d.setEnd(r,n),s.removeAllRanges(),s.addRange(d)}}else s.removeAllRanges(),this.root.blur()}setRange(o){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),Lm.info("setRange",o),o!=null){let n=this.rangeToNative(o);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(r)}update(){let o=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),!ya(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,zn(this.lastRange),zn(t),o];this.emitter.emit(J.events.EDITOR_CHANGE,...a),o!==J.sources.SILENT&&this.emitter.emit(...a)}}};function Mm(i,o){try{o.parentNode}catch{return!1}return i.contains(o)}var vz=qm;var qT=/^[ -~]*$/,Dm=class{constructor(o){this.scroll=o,this.delta=this.getDelta()}applyDelta(o){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();let r=xz(o),n=new he.default;return DT(r.ops.slice()).reduce((s,l)=>{let d=he.Op.length(l),h=l.attributes||{},m=!1,f=!1;if(l.insert!=null){if(n.retain(d),typeof l.insert=="string"){let v=l.insert;f=!v.endsWith(`
|
|
2624
|
-
`)&&(t<=s||!!this.scroll.descendant(Ue,s)[0]),this.scroll.insertAt(s,v);let[x,_]=this.scroll.line(s),k=Gr({},Yr(x));if(x instanceof
|
|
2625
|
-
`&&(m=!0):_ instanceof pe&&_.statics.scope===X.INLINE_BLOT&&(m=!0)}if(this.scroll.insertAt(s,v,l.insert[v]),x){let[_]=this.scroll.descendant(
|
|
2622
|
+
</zn-input>`;return Ee(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()}};Vr.styles=T(v0),Vr.dependencies={"zn-button":Ct,"zn-input":Ce,"zn-option":Oe,"zn-select":ce},c([F(".bulk-actions")],Vr.prototype,"container",2),c([F(".add-rule")],Vr.prototype,"addRule",2),c([F("input#main-input")],Vr.prototype,"input",2),c([p()],Vr.prototype,"name",2),c([p()],Vr.prototype,"value",2),c([p({type:Array})],Vr.prototype,"actions",2);var L5=Vr;Vr.define("zn-bulk-actions");var M5=()=>{let i="attachment",o=new Date().getTime();return`${i}_${o}`},zl=class{constructor(o,t){this._attachmentContainer=document.createElement("div");this._quill=o,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 o=this._fileHolder.files[0];this.addAttachment(o)}addAttachment(o,t){let r=M5(),n=a=>{this._insertAttachment({dataUrl:a,file:o,id:r})};if(t)n(t);else{let a=new FileReader;a.addEventListener("load",()=>{let s=a.result;n(s)},!1),a.readAsDataURL(o)}typeof this._options.upload=="function"&&this._options.upload(o).then(async({path:a,url:s})=>{await this._uploadAttachment(o,s),this._updateAttachment(r,s,a)}).catch(a=>{console.warn(a.message)})}_createAttachmentContainer(){let o=this._attachmentContainer;o.id="attachment-container",o.style.display="flex",o.style.flexWrap="wrap",o.style.gap="10px",o.style.position="absolute",o.style.bottom="0",o.style.left="0",o.style.right="0",o.style.padding="10px",this._quill.container.appendChild(o)}_insertAttachment({dataUrl:o,file:t,id:r}){this._attachmentContainer.appendChild(this._createAttachment(o,t,r))}_updateAttachment(o,t,r){let n=this._quill.container.querySelector(`#${o}`);if(!n)return;n.setAttribute("href",t);let a=n.querySelector(".attachment-name");a&&(r?a.textContent=r:a.textContent="Error uploading file"),this._options.onFileUploaded&&this._options.onFileUploaded(n,{url:t});let s=this._options.attachmentInput;if(s&&r){let l=s.value,d=l?JSON.parse(l):[];d.push(r),s.value=JSON.stringify(d)}}_createAttachment(o,t,r){let n=document.createElement("a");n.setAttribute("href",o),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 o=this._options.attachmentInput;o&&(o.value="")}_removeAttachment(o){let t=this._quill.container.querySelector(`#${o}`);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(o,t){return new Promise((r,n)=>{let a=new XMLHttpRequest;a.open("PUT",t,!0),a.setRequestHeader("Content-Type",o.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(o)})}};var gw=ur(Ur(),1);var Y6=typeof global=="object"&&global&&global.Object===Object&&global,Kd=Y6;var X6=typeof self=="object"&&self&&self.Object===Object&&self,Q6=Kd||X6||Function("return this")(),qe=Q6;var J6=qe.Symbol,_o=J6;var ex=Object.prototype,Z6=ex.hasOwnProperty,t9=ex.toString,Ll=_o?_o.toStringTag:void 0;function e9(i){var o=Z6.call(i,Ll),t=i[Ll];try{i[Ll]=void 0;var r=!0}catch{}var n=t9.call(i);return r&&(o?i[Ll]=t:delete i[Ll]),n}var rx=e9;var r9=Object.prototype,o9=r9.toString;function n9(i){return o9.call(i)}var ox=n9;var i9="[object Null]",a9="[object Undefined]",nx=_o?_o.toStringTag:void 0;function s9(i){return i==null?i===void 0?a9:i9:nx&&nx in Object(i)?rx(i):ox(i)}var Xo=s9;function l9(i){return i!=null&&typeof i=="object"}var cr=l9;var c9=Array.isArray,ko=c9;function d9(i){var o=typeof i;return i!=null&&(o=="object"||o=="function")}var xr=d9;function p9(i){return i}var Yd=p9;var h9="[object AsyncFunction]",u9="[object Function]",m9="[object GeneratorFunction]",f9="[object Proxy]";function g9(i){if(!xr(i))return!1;var o=Xo(i);return o==u9||o==m9||o==h9||o==f9}var ss=g9;var b9=qe["__core-js_shared__"],Xd=b9;var ix=(function(){var i=/[^.]+$/.exec(Xd&&Xd.keys&&Xd.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function v9(i){return!!ix&&ix in i}var ax=v9;var x9=Function.prototype,y9=x9.toString;function z9(i){if(i!=null){try{return y9.call(i)}catch{}try{return i+""}catch{}}return""}var jn=z9;var w9=/[\\^$.*+?()[\]{}|]/g,_9=/^\[object .+?Constructor\]$/,k9=Function.prototype,C9=Object.prototype,S9=k9.toString,E9=C9.hasOwnProperty,T9=RegExp("^"+S9.call(E9).replace(w9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $9(i){if(!xr(i)||ax(i))return!1;var o=ss(i)?T9:_9;return o.test(jn(i))}var sx=$9;function A9(i,o){return i?.[o]}var lx=A9;function L9(i,o){var t=lx(i,o);return sx(t)?t:void 0}var jr=L9;var M9=jr(qe,"WeakMap"),Qd=M9;var cx=Object.create,q9=(function(){function i(){}return function(o){if(!xr(o))return{};if(cx)return cx(o);i.prototype=o;var t=new i;return i.prototype=void 0,t}})(),dx=q9;function I9(i,o,t){switch(t.length){case 0:return i.call(o);case 1:return i.call(o,t[0]);case 2:return i.call(o,t[0],t[1]);case 3:return i.call(o,t[0],t[1],t[2])}return i.apply(o,t)}var px=I9;function D9(i,o){var t=-1,r=i.length;for(o||(o=Array(r));++t<r;)o[t]=i[t];return o}var Jd=D9;var N9=800,R9=16,O9=Date.now;function P9(i){var o=0,t=0;return function(){var r=O9(),n=R9-(r-t);if(t=r,n>0){if(++o>=N9)return arguments[0]}else o=0;return i.apply(void 0,arguments)}}var hx=P9;function H9(i){return function(){return i}}var ux=H9;var F9=(function(){try{var i=jr(Object,"defineProperty");return i({},"",{}),i}catch{}})(),ls=F9;var B9=ls?function(i,o){return ls(i,"toString",{configurable:!0,enumerable:!1,value:ux(o),writable:!0})}:Yd,mx=B9;var V9=hx(mx),fx=V9;function U9(i,o){for(var t=-1,r=i==null?0:i.length;++t<r&&o(i[t],t,i)!==!1;);return i}var gx=U9;var j9=9007199254740991,G9=/^(?:0|[1-9]\d*)$/;function W9(i,o){var t=typeof i;return o=o??j9,!!o&&(t=="number"||t!="symbol"&&G9.test(i))&&i>-1&&i%1==0&&i<o}var Zd=W9;function K9(i,o,t){o=="__proto__"&&ls?ls(i,o,{configurable:!0,enumerable:!0,value:t,writable:!0}):i[o]=t}var cs=K9;function Y9(i,o){return i===o||i!==i&&o!==o}var vn=Y9;var X9=Object.prototype,Q9=X9.hasOwnProperty;function J9(i,o,t){var r=i[o];(!(Q9.call(i,o)&&vn(r,t))||t===void 0&&!(o in i))&&cs(i,o,t)}var tp=J9;function Z9(i,o,t,r){var n=!t;t||(t={});for(var a=-1,s=o.length;++a<s;){var l=o[a],d=r?r(t[l],i[l],l,t,i):void 0;d===void 0&&(d=i[l]),n?cs(t,l,d):tp(t,l,d)}return t}var xn=Z9;var bx=Math.max;function t7(i,o,t){return o=bx(o===void 0?i.length-1:o,0),function(){for(var r=arguments,n=-1,a=bx(r.length-o,0),s=Array(a);++n<a;)s[n]=r[o+n];n=-1;for(var l=Array(o+1);++n<o;)l[n]=r[n];return l[o]=t(s),px(i,this,l)}}var vx=t7;function e7(i,o){return fx(vx(i,o,Yd),i+"")}var xx=e7;var r7=9007199254740991;function o7(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=r7}var ep=o7;function n7(i){return i!=null&&ep(i.length)&&!ss(i)}var yi=n7;function i7(i,o,t){if(!xr(t))return!1;var r=typeof o;return(r=="number"?yi(t)&&Zd(o,t.length):r=="string"&&o in t)?vn(t[o],i):!1}var yx=i7;function a7(i){return xx(function(o,t){var r=-1,n=t.length,a=n>1?t[n-1]:void 0,s=n>2?t[2]:void 0;for(a=i.length>3&&typeof a=="function"?(n--,a):void 0,s&&yx(t[0],t[1],s)&&(a=n<3?void 0:a,n=1),o=Object(o);++r<n;){var l=t[r];l&&i(o,l,r,a)}return o})}var zx=a7;var s7=Object.prototype;function l7(i){var o=i&&i.constructor,t=typeof o=="function"&&o.prototype||s7;return i===t}var ds=l7;function c7(i,o){for(var t=-1,r=Array(i);++t<i;)r[t]=o(t);return r}var wx=c7;var d7="[object Arguments]";function p7(i){return cr(i)&&Xo(i)==d7}var sm=p7;var _x=Object.prototype,h7=_x.hasOwnProperty,u7=_x.propertyIsEnumerable,m7=sm((function(){return arguments})())?sm:function(i){return cr(i)&&h7.call(i,"callee")&&!u7.call(i,"callee")},Ml=m7;function f7(){return!1}var kx=f7;var Ex=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cx=Ex&&typeof module=="object"&&module&&!module.nodeType&&module,g7=Cx&&Cx.exports===Ex,Sx=g7?qe.Buffer:void 0,b7=Sx?Sx.isBuffer:void 0,v7=b7||kx,Gn=v7;var x7="[object Arguments]",y7="[object Array]",z7="[object Boolean]",w7="[object Date]",_7="[object Error]",k7="[object Function]",C7="[object Map]",S7="[object Number]",E7="[object Object]",T7="[object RegExp]",$7="[object Set]",A7="[object String]",L7="[object WeakMap]",M7="[object ArrayBuffer]",q7="[object DataView]",I7="[object Float32Array]",D7="[object Float64Array]",N7="[object Int8Array]",R7="[object Int16Array]",O7="[object Int32Array]",P7="[object Uint8Array]",H7="[object Uint8ClampedArray]",F7="[object Uint16Array]",B7="[object Uint32Array]",Jt={};Jt[I7]=Jt[D7]=Jt[N7]=Jt[R7]=Jt[O7]=Jt[P7]=Jt[H7]=Jt[F7]=Jt[B7]=!0;Jt[x7]=Jt[y7]=Jt[M7]=Jt[z7]=Jt[q7]=Jt[w7]=Jt[_7]=Jt[k7]=Jt[C7]=Jt[S7]=Jt[E7]=Jt[T7]=Jt[$7]=Jt[A7]=Jt[L7]=!1;function V7(i){return cr(i)&&ep(i.length)&&!!Jt[Xo(i)]}var Tx=V7;function U7(i){return function(o){return i(o)}}var ps=U7;var $x=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ql=$x&&typeof module=="object"&&module&&!module.nodeType&&module,j7=ql&&ql.exports===$x,lm=j7&&Kd.process,G7=(function(){try{var i=ql&&ql.require&&ql.require("util").types;return i||lm&&lm.binding&&lm.binding("util")}catch{}})(),Wn=G7;var Ax=Wn&&Wn.isTypedArray,W7=Ax?ps(Ax):Tx,hs=W7;var K7=Object.prototype,Y7=K7.hasOwnProperty;function X7(i,o){var t=ko(i),r=!t&&Ml(i),n=!t&&!r&&Gn(i),a=!t&&!r&&!n&&hs(i),s=t||r||n||a,l=s?wx(i.length,String):[],d=l.length;for(var h in i)(o||Y7.call(i,h))&&!(s&&(h=="length"||n&&(h=="offset"||h=="parent")||a&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||Zd(h,d)))&&l.push(h);return l}var rp=X7;function Q7(i,o){return function(t){return i(o(t))}}var op=Q7;var J7=op(Object.keys,Object),Lx=J7;var Z7=Object.prototype,tC=Z7.hasOwnProperty;function eC(i){if(!ds(i))return Lx(i);var o=[];for(var t in Object(i))tC.call(i,t)&&t!="constructor"&&o.push(t);return o}var Mx=eC;function rC(i){return yi(i)?rp(i):Mx(i)}var us=rC;function oC(i){var o=[];if(i!=null)for(var t in Object(i))o.push(t);return o}var qx=oC;var nC=Object.prototype,iC=nC.hasOwnProperty;function aC(i){if(!xr(i))return qx(i);var o=ds(i),t=[];for(var r in i)r=="constructor"&&(o||!iC.call(i,r))||t.push(r);return t}var Ix=aC;function sC(i){return yi(i)?rp(i,!0):Ix(i)}var yn=sC;var lC=jr(Object,"create"),Kn=lC;function cC(){this.__data__=Kn?Kn(null):{},this.size=0}var Dx=cC;function dC(i){var o=this.has(i)&&delete this.__data__[i];return this.size-=o?1:0,o}var Nx=dC;var pC="__lodash_hash_undefined__",hC=Object.prototype,uC=hC.hasOwnProperty;function mC(i){var o=this.__data__;if(Kn){var t=o[i];return t===pC?void 0:t}return uC.call(o,i)?o[i]:void 0}var Rx=mC;var fC=Object.prototype,gC=fC.hasOwnProperty;function bC(i){var o=this.__data__;return Kn?o[i]!==void 0:gC.call(o,i)}var Ox=bC;var vC="__lodash_hash_undefined__";function xC(i,o){var t=this.__data__;return this.size+=this.has(i)?0:1,t[i]=Kn&&o===void 0?vC:o,this}var Px=xC;function ms(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}ms.prototype.clear=Dx;ms.prototype.delete=Nx;ms.prototype.get=Rx;ms.prototype.has=Ox;ms.prototype.set=Px;var cm=ms;function yC(){this.__data__=[],this.size=0}var Hx=yC;function zC(i,o){for(var t=i.length;t--;)if(vn(i[t][0],o))return t;return-1}var zi=zC;var wC=Array.prototype,_C=wC.splice;function kC(i){var o=this.__data__,t=zi(o,i);if(t<0)return!1;var r=o.length-1;return t==r?o.pop():_C.call(o,t,1),--this.size,!0}var Fx=kC;function CC(i){var o=this.__data__,t=zi(o,i);return t<0?void 0:o[t][1]}var Bx=CC;function SC(i){return zi(this.__data__,i)>-1}var Vx=SC;function EC(i,o){var t=this.__data__,r=zi(t,i);return r<0?(++this.size,t.push([i,o])):t[r][1]=o,this}var Ux=EC;function fs(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}fs.prototype.clear=Hx;fs.prototype.delete=Fx;fs.prototype.get=Bx;fs.prototype.has=Vx;fs.prototype.set=Ux;var wi=fs;var TC=jr(qe,"Map"),_i=TC;function $C(){this.size=0,this.__data__={hash:new cm,map:new(_i||wi),string:new cm}}var jx=$C;function AC(i){var o=typeof i;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?i!=="__proto__":i===null}var Gx=AC;function LC(i,o){var t=i.__data__;return Gx(o)?t[typeof o=="string"?"string":"hash"]:t.map}var ki=LC;function MC(i){var o=ki(this,i).delete(i);return this.size-=o?1:0,o}var Wx=MC;function qC(i){return ki(this,i).get(i)}var Kx=qC;function IC(i){return ki(this,i).has(i)}var Yx=IC;function DC(i,o){var t=ki(this,i),r=t.size;return t.set(i,o),this.size+=t.size==r?0:1,this}var Xx=DC;function gs(i){var o=-1,t=i==null?0:i.length;for(this.clear();++o<t;){var r=i[o];this.set(r[0],r[1])}}gs.prototype.clear=jx;gs.prototype.delete=Wx;gs.prototype.get=Kx;gs.prototype.has=Yx;gs.prototype.set=Xx;var np=gs;function NC(i,o){for(var t=-1,r=o.length,n=i.length;++t<r;)i[n+t]=o[t];return i}var ip=NC;var RC=op(Object.getPrototypeOf,Object),bs=RC;var OC="[object Object]",PC=Function.prototype,HC=Object.prototype,Qx=PC.toString,FC=HC.hasOwnProperty,BC=Qx.call(Object);function VC(i){if(!cr(i)||Xo(i)!=OC)return!1;var o=bs(i);if(o===null)return!0;var t=FC.call(o,"constructor")&&o.constructor;return typeof t=="function"&&t instanceof t&&Qx.call(t)==BC}var Jx=VC;function UC(){this.__data__=new wi,this.size=0}var Zx=UC;function jC(i){var o=this.__data__,t=o.delete(i);return this.size=o.size,t}var ty=jC;function GC(i){return this.__data__.get(i)}var ey=GC;function WC(i){return this.__data__.has(i)}var ry=WC;var KC=200;function YC(i,o){var t=this.__data__;if(t instanceof wi){var r=t.__data__;if(!_i||r.length<KC-1)return r.push([i,o]),this.size=++t.size,this;t=this.__data__=new np(r)}return t.set(i,o),this.size=t.size,this}var oy=YC;function vs(i){var o=this.__data__=new wi(i);this.size=o.size}vs.prototype.clear=Zx;vs.prototype.delete=ty;vs.prototype.get=ey;vs.prototype.has=ry;vs.prototype.set=oy;var Ci=vs;function XC(i,o){return i&&xn(o,us(o),i)}var ny=XC;function QC(i,o){return i&&xn(o,yn(o),i)}var iy=QC;var cy=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ay=cy&&typeof module=="object"&&module&&!module.nodeType&&module,JC=ay&&ay.exports===cy,sy=JC?qe.Buffer:void 0,ly=sy?sy.allocUnsafe:void 0;function ZC(i,o){if(o)return i.slice();var t=i.length,r=ly?ly(t):new i.constructor(t);return i.copy(r),r}var ap=ZC;function tS(i,o){for(var t=-1,r=i==null?0:i.length,n=0,a=[];++t<r;){var s=i[t];o(s,t,i)&&(a[n++]=s)}return a}var dy=tS;function eS(){return[]}var sp=eS;var rS=Object.prototype,oS=rS.propertyIsEnumerable,py=Object.getOwnPropertySymbols,nS=py?function(i){return i==null?[]:(i=Object(i),dy(py(i),function(o){return oS.call(i,o)}))}:sp,xs=nS;function iS(i,o){return xn(i,xs(i),o)}var hy=iS;var aS=Object.getOwnPropertySymbols,sS=aS?function(i){for(var o=[];i;)ip(o,xs(i)),i=bs(i);return o}:sp,lp=sS;function lS(i,o){return xn(i,lp(i),o)}var uy=lS;function cS(i,o,t){var r=o(i);return ko(i)?r:ip(r,t(i))}var cp=cS;function dS(i){return cp(i,us,xs)}var Il=dS;function pS(i){return cp(i,yn,lp)}var my=pS;var hS=jr(qe,"DataView"),dp=hS;var uS=jr(qe,"Promise"),pp=uS;var mS=jr(qe,"Set"),hp=mS;var fy="[object Map]",fS="[object Object]",gy="[object Promise]",by="[object Set]",vy="[object WeakMap]",xy="[object DataView]",gS=jn(dp),bS=jn(_i),vS=jn(pp),xS=jn(hp),yS=jn(Qd),xa=Xo;(dp&&xa(new dp(new ArrayBuffer(1)))!=xy||_i&&xa(new _i)!=fy||pp&&xa(pp.resolve())!=gy||hp&&xa(new hp)!=by||Qd&&xa(new Qd)!=vy)&&(xa=function(i){var o=Xo(i),t=o==fS?i.constructor:void 0,r=t?jn(t):"";if(r)switch(r){case gS:return xy;case bS:return fy;case vS:return gy;case xS:return by;case yS:return vy}return o});var Yn=xa;var zS=Object.prototype,wS=zS.hasOwnProperty;function _S(i){var o=i.length,t=new i.constructor(o);return o&&typeof i[0]=="string"&&wS.call(i,"index")&&(t.index=i.index,t.input=i.input),t}var yy=_S;var kS=qe.Uint8Array,ys=kS;function CS(i){var o=new i.constructor(i.byteLength);return new ys(o).set(new ys(i)),o}var zs=CS;function SS(i,o){var t=o?zs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.byteLength)}var zy=SS;var ES=/\w*$/;function TS(i){var o=new i.constructor(i.source,ES.exec(i));return o.lastIndex=i.lastIndex,o}var wy=TS;var _y=_o?_o.prototype:void 0,ky=_y?_y.valueOf:void 0;function $S(i){return ky?Object(ky.call(i)):{}}var Cy=$S;function AS(i,o){var t=o?zs(i.buffer):i.buffer;return new i.constructor(t,i.byteOffset,i.length)}var up=AS;var LS="[object Boolean]",MS="[object Date]",qS="[object Map]",IS="[object Number]",DS="[object RegExp]",NS="[object Set]",RS="[object String]",OS="[object Symbol]",PS="[object ArrayBuffer]",HS="[object DataView]",FS="[object Float32Array]",BS="[object Float64Array]",VS="[object Int8Array]",US="[object Int16Array]",jS="[object Int32Array]",GS="[object Uint8Array]",WS="[object Uint8ClampedArray]",KS="[object Uint16Array]",YS="[object Uint32Array]";function XS(i,o,t){var r=i.constructor;switch(o){case PS:return zs(i);case LS:case MS:return new r(+i);case HS:return zy(i,t);case FS:case BS:case VS:case US:case jS:case GS:case WS:case KS:case YS:return up(i,t);case qS:return new r;case IS:case RS:return new r(i);case DS:return wy(i);case NS:return new r;case OS:return Cy(i)}}var Sy=XS;function QS(i){return typeof i.constructor=="function"&&!ds(i)?dx(bs(i)):{}}var mp=QS;var JS="[object Map]";function ZS(i){return cr(i)&&Yn(i)==JS}var Ey=ZS;var Ty=Wn&&Wn.isMap,tE=Ty?ps(Ty):Ey,$y=tE;var eE="[object Set]";function rE(i){return cr(i)&&Yn(i)==eE}var Ay=rE;var Ly=Wn&&Wn.isSet,oE=Ly?ps(Ly):Ay,My=oE;var nE=1,iE=2,aE=4,qy="[object Arguments]",sE="[object Array]",lE="[object Boolean]",cE="[object Date]",dE="[object Error]",Iy="[object Function]",pE="[object GeneratorFunction]",hE="[object Map]",uE="[object Number]",Dy="[object Object]",mE="[object RegExp]",fE="[object Set]",gE="[object String]",bE="[object Symbol]",vE="[object WeakMap]",xE="[object ArrayBuffer]",yE="[object DataView]",zE="[object Float32Array]",wE="[object Float64Array]",_E="[object Int8Array]",kE="[object Int16Array]",CE="[object Int32Array]",SE="[object Uint8Array]",EE="[object Uint8ClampedArray]",TE="[object Uint16Array]",$E="[object Uint32Array]",Wt={};Wt[qy]=Wt[sE]=Wt[xE]=Wt[yE]=Wt[lE]=Wt[cE]=Wt[zE]=Wt[wE]=Wt[_E]=Wt[kE]=Wt[CE]=Wt[hE]=Wt[uE]=Wt[Dy]=Wt[mE]=Wt[fE]=Wt[gE]=Wt[bE]=Wt[SE]=Wt[EE]=Wt[TE]=Wt[$E]=!0;Wt[dE]=Wt[Iy]=Wt[vE]=!1;function fp(i,o,t,r,n,a){var s,l=o&nE,d=o&iE,h=o&aE;if(t&&(s=n?t(i,r,n,a):t(i)),s!==void 0)return s;if(!xr(i))return i;var m=ko(i);if(m){if(s=yy(i),!l)return Jd(i,s)}else{var f=Yn(i),b=f==Iy||f==pE;if(Gn(i))return ap(i,l);if(f==Dy||f==qy||b&&!n){if(s=d||b?{}:mp(i),!l)return d?uy(i,iy(s,i)):hy(i,ny(s,i))}else{if(!Wt[f])return n?i:{};s=Sy(i,f,l)}}a||(a=new Ci);var g=a.get(i);if(g)return g;a.set(i,s),My(i)?i.forEach(function(_){s.add(fp(_,o,t,_,i,a))}):$y(i)&&i.forEach(function(_,k){s.set(k,fp(_,o,t,k,i,a))});var v=h?d?my:Il:d?yn:us,x=m?void 0:v(i);return gx(x||i,function(_,k){x&&(k=_,_=i[k]),tp(s,k,fp(_,o,t,k,i,a))}),s}var Ny=fp;var AE=1,LE=4;function ME(i){return Ny(i,AE|LE)}var zn=ME;var qE="__lodash_hash_undefined__";function IE(i){return this.__data__.set(i,qE),this}var Ry=IE;function DE(i){return this.__data__.has(i)}var Oy=DE;function gp(i){var o=-1,t=i==null?0:i.length;for(this.__data__=new np;++o<t;)this.add(i[o])}gp.prototype.add=gp.prototype.push=Ry;gp.prototype.has=Oy;var Py=gp;function NE(i,o){for(var t=-1,r=i==null?0:i.length;++t<r;)if(o(i[t],t,i))return!0;return!1}var Hy=NE;function RE(i,o){return i.has(o)}var Fy=RE;var OE=1,PE=2;function HE(i,o,t,r,n,a){var s=t&OE,l=i.length,d=o.length;if(l!=d&&!(s&&d>l))return!1;var h=a.get(i),m=a.get(o);if(h&&m)return h==o&&m==i;var f=-1,b=!0,g=t&PE?new Py:void 0;for(a.set(i,o),a.set(o,i);++f<l;){var v=i[f],x=o[f];if(r)var _=s?r(x,v,f,o,i,a):r(v,x,f,i,o,a);if(_!==void 0){if(_)continue;b=!1;break}if(g){if(!Hy(o,function(k,N){if(!Fy(g,N)&&(v===k||n(v,k,t,r,a)))return g.push(N)})){b=!1;break}}else if(!(v===x||n(v,x,t,r,a))){b=!1;break}}return a.delete(i),a.delete(o),b}var bp=HE;function FE(i){var o=-1,t=Array(i.size);return i.forEach(function(r,n){t[++o]=[n,r]}),t}var By=FE;function BE(i){var o=-1,t=Array(i.size);return i.forEach(function(r){t[++o]=r}),t}var Vy=BE;var VE=1,UE=2,jE="[object Boolean]",GE="[object Date]",WE="[object Error]",KE="[object Map]",YE="[object Number]",XE="[object RegExp]",QE="[object Set]",JE="[object String]",ZE="[object Symbol]",tT="[object ArrayBuffer]",eT="[object DataView]",Uy=_o?_o.prototype:void 0,dm=Uy?Uy.valueOf:void 0;function rT(i,o,t,r,n,a,s){switch(t){case eT:if(i.byteLength!=o.byteLength||i.byteOffset!=o.byteOffset)return!1;i=i.buffer,o=o.buffer;case tT:return!(i.byteLength!=o.byteLength||!a(new ys(i),new ys(o)));case jE:case GE:case YE:return vn(+i,+o);case WE:return i.name==o.name&&i.message==o.message;case XE:case JE:return i==o+"";case KE:var l=By;case QE:var d=r&VE;if(l||(l=Vy),i.size!=o.size&&!d)return!1;var h=s.get(i);if(h)return h==o;r|=UE,s.set(i,o);var m=bp(l(i),l(o),r,n,a,s);return s.delete(i),m;case ZE:if(dm)return dm.call(i)==dm.call(o)}return!1}var jy=rT;var oT=1,nT=Object.prototype,iT=nT.hasOwnProperty;function aT(i,o,t,r,n,a){var s=t&oT,l=Il(i),d=l.length,h=Il(o),m=h.length;if(d!=m&&!s)return!1;for(var f=d;f--;){var b=l[f];if(!(s?b in o:iT.call(o,b)))return!1}var g=a.get(i),v=a.get(o);if(g&&v)return g==o&&v==i;var x=!0;a.set(i,o),a.set(o,i);for(var _=s;++f<d;){b=l[f];var k=i[b],N=o[b];if(r)var G=s?r(N,k,b,o,i,a):r(k,N,b,i,o,a);if(!(G===void 0?k===N||n(k,N,t,r,a):G)){x=!1;break}_||(_=b=="constructor")}if(x&&!_){var I=i.constructor,w=o.constructor;I!=w&&"constructor"in i&&"constructor"in o&&!(typeof I=="function"&&I instanceof I&&typeof w=="function"&&w instanceof w)&&(x=!1)}return a.delete(i),a.delete(o),x}var Gy=aT;var sT=1,Wy="[object Arguments]",Ky="[object Array]",vp="[object Object]",lT=Object.prototype,Yy=lT.hasOwnProperty;function cT(i,o,t,r,n,a){var s=ko(i),l=ko(o),d=s?Ky:Yn(i),h=l?Ky:Yn(o);d=d==Wy?vp:d,h=h==Wy?vp:h;var m=d==vp,f=h==vp,b=d==h;if(b&&Gn(i)){if(!Gn(o))return!1;s=!0,m=!1}if(b&&!m)return a||(a=new Ci),s||hs(i)?bp(i,o,t,r,n,a):jy(i,o,d,t,r,n,a);if(!(t&sT)){var g=m&&Yy.call(i,"__wrapped__"),v=f&&Yy.call(o,"__wrapped__");if(g||v){var x=g?i.value():i,_=v?o.value():o;return a||(a=new Ci),n(x,_,t,r,a)}}return b?(a||(a=new Ci),Gy(i,o,t,r,n,a)):!1}var Xy=cT;function Qy(i,o,t,r,n){return i===o?!0:i==null||o==null||!cr(i)&&!cr(o)?i!==i&&o!==o:Xy(i,o,t,r,Qy,n)}var Jy=Qy;function dT(i){return function(o,t,r){for(var n=-1,a=Object(o),s=r(o),l=s.length;l--;){var d=s[i?l:++n];if(t(a[d],d,a)===!1)break}return o}}var Zy=dT;var pT=Zy(),tz=pT;function hT(i,o,t){(t!==void 0&&!vn(i[o],t)||t===void 0&&!(o in i))&&cs(i,o,t)}var Dl=hT;function uT(i){return cr(i)&&yi(i)}var ez=uT;function mT(i,o){if(!(o==="constructor"&&typeof i[o]=="function")&&o!="__proto__")return i[o]}var Nl=mT;function fT(i){return xn(i,yn(i))}var rz=fT;function gT(i,o,t,r,n,a,s){var l=Nl(i,t),d=Nl(o,t),h=s.get(d);if(h){Dl(i,t,h);return}var m=a?a(l,d,t+"",i,o,s):void 0,f=m===void 0;if(f){var b=ko(d),g=!b&&Gn(d),v=!b&&!g&&hs(d);m=d,b||g||v?ko(l)?m=l:ez(l)?m=Jd(l):g?(f=!1,m=ap(d,!0)):v?(f=!1,m=up(d,!0)):m=[]:Jx(d)||Ml(d)?(m=l,Ml(l)?m=rz(l):(!xr(l)||ss(l))&&(m=mp(d))):f=!1}f&&(s.set(d,m),n(m,d,r,a,s),s.delete(d)),Dl(i,t,m)}var oz=gT;function nz(i,o,t,r,n){i!==o&&tz(o,function(a,s){if(n||(n=new Ci),xr(a))oz(i,o,s,t,nz,r,n);else{var l=r?r(Nl(i,s),a,s+"",i,o,n):void 0;l===void 0&&(l=a),Dl(i,s,l)}},yn)}var iz=nz;function bT(i,o){return Jy(i,o)}var ya=bT;var vT=zx(function(i,o,t){iz(i,o,t)}),Gr=vT;var Pl={};P_(Pl,{Attributor:()=>Lr,AttributorStore:()=>Rl,BlockBlot:()=>za,ClassAttributor:()=>Ie,ContainerBlot:()=>Ss,EmbedBlot:()=>pe,InlineBlot:()=>xp,LeafBlot:()=>De,ParentBlot:()=>Wr,Registry:()=>Ti,Scope:()=>X,ScrollBlot:()=>Ol,StyleAttributor:()=>Kr,TextBlot:()=>Es});var X=(i=>(i[i.TYPE=3]="TYPE",i[i.LEVEL=12]="LEVEL",i[i.ATTRIBUTE=13]="ATTRIBUTE",i[i.BLOT=14]="BLOT",i[i.INLINE=7]="INLINE",i[i.BLOCK=11]="BLOCK",i[i.BLOCK_BLOT=10]="BLOCK_BLOT",i[i.INLINE_BLOT=6]="INLINE_BLOT",i[i.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",i[i.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",i[i.ANY=15]="ANY",i))(X||{}),Lr=class{constructor(o,t,r={}){this.attrName=o,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(o){return Array.from(o.attributes).map(t=>t.name)}add(o,t){return this.canAdd(o,t)?(o.setAttribute(this.keyName,t),!0):!1}canAdd(o,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(o){o.removeAttribute(this.keyName)}value(o){let t=o.getAttribute(this.keyName);return this.canAdd(o,t)&&t?t:""}},Ei=class extends Error{constructor(o){o="[Parchment] "+o,super(o),this.message=o,this.name=this.constructor.name}},lz=class hm{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(o,t=!1){if(o==null)return null;if(this.blots.has(o))return this.blots.get(o)||null;if(t){let r=null;try{r=o.parentNode}catch{return null}return this.find(r,t)}return null}create(o,t,r){let n=this.query(t);if(n==null)throw new Ei(`Unable to create ${t} blot`);let a=n,s=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:a.create(r),l=new a(o,s,r);return hm.blots.set(l.domNode,l),l}find(o,t=!1){return hm.find(o,t)}query(o,t=X.ANY){let r;return typeof o=="string"?r=this.types[o]||this.attributes[o]:o instanceof Text||o.nodeType===Node.TEXT_NODE?r=this.types.text:typeof o=="number"?o&X.LEVEL&X.BLOCK?r=this.types.block:o&X.LEVEL&X.INLINE&&(r=this.types.inline):o instanceof Element&&((o.getAttribute("class")||"").split(/\s+/).some(n=>(r=this.classes[n],!!r)),r=r||this.tags[o.tagName]),r==null?null:"scope"in r&&t&X.LEVEL&r.scope&&t&X.TYPE&r.scope?r:null}register(...o){return o.map(t=>{let r="blotName"in t,n="attrName"in t;if(!r&&!n)throw new Ei("Invalid definition");if(r&&t.blotName==="abstract")throw new Ei("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})}};lz.blots=new WeakMap;var Ti=lz;function az(i,o){return(i.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${o}-`)===0)}var um=class extends Lr{static keys(o){return(o.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(o,t){return this.canAdd(o,t)?(this.remove(o),o.classList.add(`${this.keyName}-${t}`),!0):!1}remove(o){az(o,this.keyName).forEach(t=>{o.classList.remove(t)}),o.classList.length===0&&o.removeAttribute("class")}value(o){let t=(az(o,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(o,t)?t:""}},Ie=um;function pm(i){let o=i.split("-"),t=o.slice(1).map(r=>r[0].toUpperCase()+r.slice(1)).join("");return o[0]+t}var mm=class extends Lr{static keys(o){return(o.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(o,t){return this.canAdd(o,t)?(o.style[pm(this.keyName)]=t,!0):!1}remove(o){o.style[pm(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")}value(o){let t=o.style[pm(this.keyName)];return this.canAdd(o,t)?t:""}},Kr=mm,fm=class{constructor(o){this.attributes={},this.domNode=o,this.build()}attribute(o,t){t?o.add(this.domNode,t)&&(o.value(this.domNode)!=null?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])}build(){this.attributes={};let o=Ti.find(this.domNode);if(o==null)return;let t=Lr.keys(this.domNode),r=Ie.keys(this.domNode),n=Kr.keys(this.domNode);t.concat(r).concat(n).forEach(a=>{let s=o.scroll.query(a,X.ATTRIBUTE);s instanceof Lr&&(this.attributes[s.attrName]=s)})}copy(o){Object.keys(this.attributes).forEach(t=>{let r=this.attributes[t].value(this.domNode);o.format(t,r)})}move(o){this.copy(o),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((o,t)=>(o[t]=this.attributes[t].value(this.domNode),o),{})}},Rl=fm,cz=class{constructor(o,t){this.scroll=o,this.domNode=t,Ti.blots.set(t,this),this.prev=null,this.next=null}static create(o){if(this.tagName==null)throw new Ei("Blot definition missing tagName");let t,r;return Array.isArray(this.tagName)?(typeof o=="string"?(r=o.toUpperCase(),parseInt(r,10).toString()===r&&(r=parseInt(r,10))):typeof o=="number"&&(r=o),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 o=this.domNode.cloneNode(!1);return this.scroll.create(o)}detach(){this.parent!=null&&this.parent.removeChild(this),Ti.blots.delete(this.domNode)}deleteAt(o,t){this.isolate(o,t).remove()}formatAt(o,t,r,n){let a=this.isolate(o,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(o,t,r){let n=r==null?this.scroll.create("text",t):this.scroll.create(t,r),a=this.split(o);this.parent.insertBefore(n,a||void 0)}isolate(o,t){let r=this.split(o);if(r==null)throw new Error("Attempt to isolate at end");return r.split(t),r}length(){return 1}offset(o=this.parent){return this.parent==null||this===o?0:this.parent.children.offset(this)+this.parent.offset(o)}optimize(o){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(o,t){let r=typeof o=="string"?this.scroll.create(o,t):o;return this.parent!=null&&(this.parent.insertBefore(r,this.next||void 0),this.remove()),r}split(o,t){return o===0?this:this.next}update(o,t){}wrap(o,t){let r=typeof o=="string"?this.scroll.create(o,t):o;if(this.parent!=null&&this.parent.insertBefore(r,this.next||void 0),typeof r.appendChild!="function")throw new Ei(`Cannot wrap ${o}`);return r.appendChild(this),r}};cz.blotName="abstract";var dz=cz,pz=class extends dz{static value(o){return!0}index(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(o,t){let r=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return o>0&&(r+=1),[this.parent.domNode,r]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};pz.scope=X.INLINE_BLOT;var xT=pz,De=xT,gm=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...o){if(this.insertBefore(o[0],null),o.length>1){let t=o.slice(1);this.append(...t)}}at(o){let t=this.iterator(),r=t();for(;r&&o>0;)o-=1,r=t();return r}contains(o){let t=this.iterator(),r=t();for(;r;){if(r===o)return!0;r=t()}return!1}indexOf(o){let t=this.iterator(),r=t(),n=0;for(;r;){if(r===o)return n;n+=1,r=t()}return-1}insertBefore(o,t){o!=null&&(this.remove(o),o.next=t,t!=null?(o.prev=t.prev,t.prev!=null&&(t.prev.next=o),t.prev=o,t===this.head&&(this.head=o)):this.tail!=null?(this.tail.next=o,o.prev=this.tail,this.tail=o):(o.prev=null,this.head=this.tail=o),this.length+=1)}offset(o){let t=0,r=this.head;for(;r!=null;){if(r===o)return t;t+=r.length(),r=r.next}return-1}remove(o){this.contains(o)&&(o.prev!=null&&(o.prev.next=o.next),o.next!=null&&(o.next.prev=o.prev),o===this.head&&(this.head=o.next),o===this.tail&&(this.tail=o.prev),this.length-=1)}iterator(o=this.head){return()=>{let t=o;return o!=null&&(o=o.next),t}}find(o,t=!1){let r=this.iterator(),n=r();for(;n;){let a=n.length();if(o<a||t&&o===a&&(n.next==null||n.next.length()!==0))return[n,o];o-=a,n=r()}return[null,0]}forEach(o){let t=this.iterator(),r=t();for(;r;)o(r),r=t()}forEachAt(o,t,r){if(t<=0)return;let[n,a]=this.find(o),s=o-a,l=this.iterator(n),d=l();for(;d&&s<o+t;){let h=d.length();o>s?r(d,o-s,Math.min(t,s+h-o)):r(d,0,Math.min(h,o+t-s)),s+=h,d=l()}}map(o){return this.reduce((t,r)=>(t.push(o(r)),t),[])}reduce(o,t){let r=this.iterator(),n=r();for(;n;)t=o(t,n),n=r();return t}};function sz(i,o){let t=o.find(i);if(t)return t;try{return o.create(i)}catch{let r=o.create(X.INLINE);return Array.from(i.childNodes).forEach(n=>{r.domNode.appendChild(n)}),i.parentNode&&i.parentNode.replaceChild(r.domNode,i),r.attach(),r}}var hz=class Si extends dz{constructor(o,t){super(o,t),this.uiNode=null,this.build()}appendChild(o){this.insertBefore(o)}attach(){super.attach(),this.children.forEach(o=>{o.attach()})}attachUI(o){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=o,Si.uiClass&&this.uiNode.classList.add(Si.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new gm,Array.from(this.domNode.childNodes).filter(o=>o!==this.uiNode).reverse().forEach(o=>{try{let t=sz(o,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof Ei)return;throw t}})}deleteAt(o,t){if(o===0&&t===this.length())return this.remove();this.children.forEachAt(o,t,(r,n,a)=>{r.deleteAt(n,a)})}descendant(o,t=0){let[r,n]=this.children.find(t);return o.blotName==null&&o(r)||o.blotName!=null&&r instanceof o?[r,n]:r instanceof Si?r.descendant(o,n):[null,-1]}descendants(o,t=0,r=Number.MAX_VALUE){let n=[],a=r;return this.children.forEachAt(t,r,(s,l,d)=>{(o.blotName==null&&o(s)||o.blotName!=null&&s instanceof o)&&n.push(s),s instanceof Si&&(n=n.concat(s.descendants(o,l,a))),a-=d}),n}detach(){this.children.forEach(o=>{o.detach()}),super.detach()}enforceAllowedChildren(){let o=!1;this.children.forEach(t=>{o||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(),o=!0):t instanceof Si?t.unwrap():t.remove())})}formatAt(o,t,r,n){this.children.forEachAt(o,t,(a,s,l)=>{a.formatAt(s,l,r,n)})}insertAt(o,t,r){let[n,a]=this.children.find(o);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(o,t){o.parent!=null&&o.parent.children.remove(o);let r=null;this.children.insertBefore(o,t||null),o.parent=this,t!=null&&(r=t.domNode),(this.domNode.parentNode!==o.domNode||this.domNode.nextSibling!==r)&&this.domNode.insertBefore(o.domNode,r),o.attach()}length(){return this.children.reduce((o,t)=>o+t.length(),0)}moveChildren(o,t){this.children.forEach(r=>{o.insertBefore(r,t)})}optimize(o){if(super.optimize(o),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(o,t=!1){let[r,n]=this.children.find(o,t),a=[[this,o]];return r instanceof Si?a.concat(r.path(n,t)):(r!=null&&a.push([r,n]),a)}removeChild(o){this.children.remove(o)}replaceWith(o,t){let r=typeof o=="string"?this.scroll.create(o,t):o;return r instanceof Si&&this.moveChildren(r),super.replaceWith(r)}split(o,t=!1){if(!t){if(o===0)return this;if(o===this.length())return this.next}let r=this.clone();return this.parent&&this.parent.insertBefore(r,this.next||void 0),this.children.forEachAt(o,this.length(),(n,a,s)=>{let l=n.split(a,t);l!=null&&r.appendChild(l)}),r}splitAfter(o){let t=this.clone();for(;o.next!=null;)t.appendChild(o.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(o,t){let r=[],n=[];o.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=sz(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};hz.uiClass="";var yT=hz,Wr=yT;function zT(i,o){if(Object.keys(i).length!==Object.keys(o).length)return!1;for(let t in i)if(i[t]!==o[t])return!1;return!0}var ws=class _s extends Wr{static create(o){return super.create(o)}static formats(o,t){let r=t.query(_s.blotName);if(!(r!=null&&o.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return o.tagName.toLowerCase()}}constructor(o,t){super(o,t),this.attributes=new Rl(this.domNode)}format(o,t){if(o===this.statics.blotName&&!t)this.children.forEach(r=>{r instanceof _s||(r=r.wrap(_s.blotName,!0)),this.attributes.copy(r)}),this.unwrap();else{let r=this.scroll.query(o,X.INLINE);if(r==null)return;r instanceof Lr?this.attributes.attribute(r,t):t&&(o!==this.statics.blotName||this.formats()[o]!==t)&&this.replaceWith(o,t)}}formats(){let o=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(o[this.statics.blotName]=t),o}formatAt(o,t,r,n){this.formats()[r]!=null||this.scroll.query(r,X.ATTRIBUTE)?this.isolate(o,t).format(r,n):super.formatAt(o,t,r,n)}optimize(o){super.optimize(o);let t=this.formats();if(Object.keys(t).length===0)return this.unwrap();let r=this.next;r instanceof _s&&r.prev===this&&zT(t,r.formats())&&(r.moveChildren(this),r.remove())}replaceWith(o,t){let r=super.replaceWith(o,t);return this.attributes.copy(r),r}update(o,t){super.update(o,t),o.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}wrap(o,t){let r=super.wrap(o,t);return r instanceof _s&&this.attributes.move(r),r}};ws.allowedChildren=[ws,De],ws.blotName="inline",ws.scope=X.INLINE_BLOT,ws.tagName="SPAN";var wT=ws,xp=wT,ks=class bm extends Wr{static create(o){return super.create(o)}static formats(o,t){let r=t.query(bm.blotName);if(!(r!=null&&o.tagName===r.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return o.tagName.toLowerCase()}}constructor(o,t){super(o,t),this.attributes=new Rl(this.domNode)}format(o,t){let r=this.scroll.query(o,X.BLOCK);r!=null&&(r instanceof Lr?this.attributes.attribute(r,t):o===this.statics.blotName&&!t?this.replaceWith(bm.blotName):t&&(o!==this.statics.blotName||this.formats()[o]!==t)&&this.replaceWith(o,t))}formats(){let o=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(o[this.statics.blotName]=t),o}formatAt(o,t,r,n){this.scroll.query(r,X.BLOCK)!=null?this.format(r,n):super.formatAt(o,t,r,n)}insertAt(o,t,r){if(r==null||this.scroll.query(t,X.INLINE)!=null)super.insertAt(o,t,r);else{let n=this.split(o);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(o,t){let r=super.replaceWith(o,t);return this.attributes.copy(r),r}update(o,t){super.update(o,t),o.some(r=>r.target===this.domNode&&r.type==="attributes")&&this.attributes.build()}};ks.blotName="block",ks.scope=X.BLOCK_BLOT,ks.tagName="P",ks.allowedChildren=[xp,ks,De];var _T=ks,za=_T,vm=class extends Wr{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(o,t){super.deleteAt(o,t),this.enforceAllowedChildren()}formatAt(o,t,r,n){super.formatAt(o,t,r,n),this.enforceAllowedChildren()}insertAt(o,t,r){super.insertAt(o,t,r),this.enforceAllowedChildren()}optimize(o){super.optimize(o),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};vm.blotName="container",vm.scope=X.BLOCK_BLOT;var kT=vm,Ss=kT,xm=class extends De{static formats(o,t){}format(o,t){super.formatAt(0,this.length(),o,t)}formatAt(o,t,r,n){o===0&&t===this.length()?this.format(r,n):super.formatAt(o,t,r,n)}formats(){return this.statics.formats(this.domNode,this.scroll)}},pe=xm,CT={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ST=100,Cs=class extends Wr{constructor(o,t){super(null,t),this.registry=o,this.scroll=this,this.build(),this.observer=new MutationObserver(r=>{this.update(r)}),this.observer.observe(this.domNode,CT),this.attach()}create(o,t){return this.registry.create(this,o,t)}find(o,t=!1){let r=this.registry.find(o,t);return r?r.scroll===this?r:t?this.find(r.scroll.domNode.parentNode,!0):null:null}query(o,t=X.ANY){return this.registry.query(o,t)}register(...o){return this.registry.register(...o)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(o,t){this.update(),o===0&&t===this.length()?this.children.forEach(r=>{r.remove()}):super.deleteAt(o,t)}formatAt(o,t,r,n){this.update(),super.formatAt(o,t,r,n)}insertAt(o,t,r){this.update(),super.insertAt(o,t,r)}optimize(o=[],t={}){super.optimize(t);let r=t.mutationsMap||new WeakMap,n=Array.from(this.observer.takeRecords());for(;n.length>0;)o.push(n.pop());let a=(d,h=!0)=>{d==null||d===this||d.domNode.parentNode!=null&&(r.has(d.domNode)||r.set(d.domNode,[]),h&&a(d.parent))},s=d=>{r.has(d.domNode)&&(d instanceof Wr&&d.children.forEach(s),r.delete(d.domNode),d.optimize(t))},l=o;for(let d=0;l.length>0;d+=1){if(d>=ST)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 Wr&&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;)o.push(n.pop())}}update(o,t={}){o=o||this.observer.takeRecords();let r=new WeakMap;o.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(o,t)}};Cs.blotName="scroll",Cs.defaultChild=za,Cs.allowedChildren=[za,Ss],Cs.scope=X.BLOCK_BLOT,Cs.tagName="DIV";var ET=Cs,Ol=ET,ym=class uz extends De{static create(o){return document.createTextNode(o)}static value(o){return o.data}constructor(o,t){super(o,t),this.text=this.statics.value(this.domNode)}deleteAt(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)}index(o,t){return this.domNode===o?t:-1}insertAt(o,t,r){r==null?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):super.insertAt(o,t,r)}length(){return this.text.length}optimize(o){super.optimize(o),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof uz&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(o,t=!1){return[this.domNode,o]}split(o,t=!1){if(!t){if(o===0)return this;if(o===this.length())return this.next}let r=this.scroll.create(this.domNode.splitText(o));return this.parent.insertBefore(r,this.next||void 0),this.text=this.statics.value(this.domNode),r}update(o,t){o.some(r=>r.type==="characterData"&&r.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ym.blotName="text",ym.scope=X.INLINE_BLOT;var TT=ym,Es=TT;var Ai=ur(Ur(),1);var he=ur(Ur(),1);var wm=ur(Ur(),1);var Hl=class extends pe{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};Hl.blotName="break";Hl.tagName="BR";var yr=Hl;var Te=class extends Es{},$T={"&":"&","<":"<",">":">",'"':""","'":"'"};function wa(i){return i.replace(/[&<>"']/g,o=>$T[o])}var wn=class wn extends xp{static compare(o,t){let r=wn.order.indexOf(o),n=wn.order.indexOf(t);return r>=0||n>=0?r-n:o===t?0:o<t?-1:1}formatAt(o,t,r,n){if(wn.compare(this.statics.blotName,r)<0&&this.scroll.query(r,X.BLOT)){let a=this.isolate(o,t);n&&a.wrap(r,n)}else super.formatAt(o,t,r,n)}optimize(o){if(super.optimize(o),this.parent instanceof wn&&wn.compare(this.statics.blotName,this.parent.statics.blotName)>0){let t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};B(wn,"allowedChildren",[wn,yr,pe,Te]),B(wn,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var zm=wn,zr=zm;var mz=1,Vt=class extends za{constructor(){super(...arguments);B(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=_m(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(`
|
|
2623
|
+
`),s=a.shift();s.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;a.reduce((d,h)=>(l=l.split(d,!0),l.insertAt(0,h),h.length),t+s.length)}insertBefore(t,r){let{head:n}=this.children;super.insertBefore(t,r),n instanceof yr&&n.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+mz),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()-mz)){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}};Vt.blotName="block";Vt.tagName="P";Vt.defaultChild=yr;Vt.allowedChildren=[yr,zr,pe,Te];var Ue=class extends pe{attach(){super.attach(),this.attributes=new Rl(this.domNode)}delta(){return new wm.default().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(o,t){let r=this.scroll.query(o,X.BLOCK_ATTRIBUTE);r!=null&&this.attributes.attribute(r,t)}formatAt(o,t,r,n){this.format(r,n)}insertAt(o,t,r){if(r!=null){super.insertAt(o,t,r);return}let n=t.split(`
|
|
2624
|
+
`),a=n.pop(),s=n.map(d=>{let h=this.scroll.create(Vt.blotName);return h.insertAt(0,d),h}),l=this.split(o);s.forEach(d=>{this.parent.insertBefore(d,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}};Ue.scope=X.BLOCK_BLOT;function _m(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return i.descendants(De).reduce((t,r)=>r.length()===0?t:t.insert(r.value(),Yr(r,{},o)),new wm.default).insert(`
|
|
2625
|
+
`,Yr(i))}function Yr(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return i==null||("formats"in i&&typeof i.formats=="function"&&(o={...o,...i.formats()},t&&delete o["code-token"]),i.parent==null||i.parent.statics.blotName==="scroll"||i.parent.statics.scope!==i.statics.scope)?o:Yr(i.parent,o,t)}var Co=class Co extends pe{static value(){}constructor(o,t,r){super(o,t),this.selection=r,this.textNode=document.createTextNode(Co.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(o,t){if(this.savedLength!==0){super.format(o,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=Co.CONTENTS.length,r.optimize(),r.formatAt(n,Co.CONTENTS.length,o,t),this.savedLength=0)}index(o,t){return o===this.textNode?0:super.index(o,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 o=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 Te?this.prev:null,r=t?t.length():0,n=this.next instanceof Te?this.next:null,a=n?n.text:"",{textNode:s}=this,l=s.data.split(Co.CONTENTS).join("");s.data=Co.CONTENTS;let d;if(t)d=t,(l||n)&&(t.insertAt(t.length(),l+a),n&&n.remove());else if(n)d=n,n.insertAt(0,l);else{let h=document.createTextNode(l);d=this.scroll.create(h),this.parent.insertBefore(d,this)}if(this.remove(),o){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(o.start.node,o.start.offset),f=h(o.end.node,o.end.offset);if(m!==null&&f!==null)return{startNode:d.domNode,startOffset:m,endNode:d.domNode,endOffset:f}}return null}update(o,t){if(o.some(r=>r.type==="characterData"&&r.target===this.textNode)){let r=this.restore();r&&(t.range=r)}}optimize(o){super.optimize(o);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Co.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};B(Co,"blotName","cursor"),B(Co,"className","ql-cursor"),B(Co,"tagName","span"),B(Co,"CONTENTS","\uFEFF");var km=Co,$i=km;var Sm=ur(gz(),1);var Bl=new WeakMap;var Em=["error","warn","log","info"],Tm="warn";function bz(i){if(Tm&&Em.indexOf(i)<=Em.indexOf(Tm)){for(var o=arguments.length,t=new Array(o>1?o-1:0),r=1;r<o;r++)t[r-1]=arguments[r];console[i](...t)}}function $m(i){return Em.reduce((o,t)=>(o[t]=bz.bind(console,t,i),o),{})}$m.level=i=>{Tm=i};bz.level=$m.level;var lo=$m;var Am=lo("quill:events"),MT=["selectionchange","mousedown","mouseup","click"];MT.forEach(i=>{document.addEventListener(i,function(){for(var o=arguments.length,t=new Array(o),r=0;r<o;r++)t[r]=arguments[r];Array.from(document.querySelectorAll(".ql-container")).forEach(n=>{let a=Bl.get(n);a&&a.emitter&&a.emitter.handleDOM(...t)})})});var Vl=class extends Sm.default{constructor(){super(),this.domListeners={},this.on("error",Am.error)}emit(){for(var o=arguments.length,t=new Array(o),r=0;r<o;r++)t[r]=arguments[r];return Am.log.call(Am,...t),super.emit(...t)}handleDOM(o){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[o.type]||[]).forEach(a=>{let{node:s,handler:l}=a;(o.target===s||s.contains(o.target))&&l(o,...r)})}listenDOM(o,t,r){this.domListeners[o]||(this.domListeners[o]=[]),this.domListeners[o].push({node:t,handler:r})}};B(Vl,"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"}),B(Vl,"sources",{API:"api",SILENT:"silent",USER:"user"});var J=Vl;var Lm=lo("quill:selection"),qr=class{constructor(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=o,this.length=t}},qm=class{constructor(o,t){this.emitter=t,this.scroll=o,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new qr(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,J.sources.USER),1)}),this.emitter.on(J.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;let r=this.getNativeRange();r!=null&&r.start.node!==this.cursor.textNode&&this.emitter.once(J.events.SCROLL_UPDATE,(n,a)=>{try{this.root.contains(r.start.node)&&this.root.contains(r.end.node)&&this.setNativeRange(r.start.node,r.start.offset,r.end.node,r.end.offset);let s=a.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(s?J.sources.SILENT:n)}catch{}})}),this.emitter.on(J.events.SCROLL_OPTIMIZE,(r,n)=>{if(n.range){let{startNode:a,startOffset:s,endNode:l,endOffset:d}=n.range;this.setNativeRange(a,s,l,d),this.update(J.sources.SILENT)}}),this.update(J.sources.SILENT)}handleComposition(){this.emitter.on(J.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(J.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){let o=this.cursor.restore();if(!o)return;setTimeout(()=>{this.setNativeRange(o.startNode,o.startOffset,o.endNode,o.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(o,t){this.scroll.update();let r=this.getNativeRange();if(!(r==null||!r.native.collapsed||this.scroll.query(o,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 De){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(o,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=this.scroll.length();o=Math.min(o,r-1),t=Math.min(o+t,r-1)-o;let n,[a,s]=this.scroll.leaf(o);if(a==null)return null;if(t>0&&s===a.length()){let[m]=this.scroll.leaf(o+1);if(m){let[f]=this.scroll.line(o),[b]=this.scroll.line(o+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(o+t),a==null?null:([n,s]=a.position(s,!0),l.setEnd(n,s),l.getBoundingClientRect());let d="left",h;if(n instanceof Text){if(!n.data.length)return null;s<n.data.length?(l.setStart(n,s),l.setEnd(n,s+1)):(l.setStart(n,s-1),l.setEnd(n,s),d="right"),h=l.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;h=a.domNode.getBoundingClientRect(),s>0&&(d="right")}return{bottom:h.top+h.height,height:h.height,left:h[d],right:h[d],top:h.top,width:0}}getNativeRange(){let o=document.getSelection();if(o==null||o.rangeCount<=0)return null;let t=o.getRangeAt(0);if(t==null)return null;let r=this.normalizeNative(t);return Lm.info("getNativeRange",r),r}getRange(){let o=this.scroll.domNode;if("isConnected"in o&&!o.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&&Mm(this.root,document.activeElement)}normalizedToRange(o){let t=[[o.start.node,o.start.offset]];o.native.collapsed||t.push([o.end.node,o.end.offset]);let r=t.map(s=>{let[l,d]=s,h=this.scroll.find(l,!0),m=h.offset(this.scroll);return d===0?m:h instanceof De?m+h.index(l,d):m+h.length()}),n=Math.min(Math.max(...r),this.scroll.length()-1),a=Math.min(n,...r);return new qr(a,n-a)}normalizeNative(o){if(!Mm(this.root,o.startContainer)||!o.collapsed&&!Mm(this.root,o.endContainer))return null;let t={start:{node:o.startContainer,offset:o.startOffset},end:{node:o.endContainer,offset:o.endOffset},native:o};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(o){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(o.index,!1),...r(o.index+o.length,!0)]}setNativeRange(o,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Lm.info("setNativeRange",o,t,r,n),o!=null&&(this.root.parentNode==null||o.parentNode==null||r.parentNode==null))return;let s=document.getSelection();if(s!=null)if(o!=null){this.hasFocus()||this.root.focus({preventScroll:!0});let{native:l}=this.getNativeRange()||{};if(l==null||a||o!==l.startContainer||t!==l.startOffset||r!==l.endContainer||n!==l.endOffset){o instanceof Element&&o.tagName==="BR"&&(t=Array.from(o.parentNode.childNodes).indexOf(o),o=o.parentNode),r instanceof Element&&r.tagName==="BR"&&(n=Array.from(r.parentNode.childNodes).indexOf(r),r=r.parentNode);let d=document.createRange();d.setStart(o,t),d.setEnd(r,n),s.removeAllRanges(),s.addRange(d)}}else s.removeAllRanges(),this.root.blur()}setRange(o){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),Lm.info("setRange",o),o!=null){let n=this.rangeToNative(o);this.setNativeRange(...n,t)}else this.setNativeRange(null);this.update(r)}update(){let o=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),!ya(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,zn(this.lastRange),zn(t),o];this.emitter.emit(J.events.EDITOR_CHANGE,...a),o!==J.sources.SILENT&&this.emitter.emit(...a)}}};function Mm(i,o){try{o.parentNode}catch{return!1}return i.contains(o)}var vz=qm;var qT=/^[ -~]*$/,Dm=class{constructor(o){this.scroll=o,this.delta=this.getDelta()}applyDelta(o){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();let r=xz(o),n=new he.default;return DT(r.ops.slice()).reduce((s,l)=>{let d=he.Op.length(l),h=l.attributes||{},m=!1,f=!1;if(l.insert!=null){if(n.retain(d),typeof l.insert=="string"){let v=l.insert;f=!v.endsWith(`
|
|
2626
|
+
`)&&(t<=s||!!this.scroll.descendant(Ue,s)[0]),this.scroll.insertAt(s,v);let[x,_]=this.scroll.line(s),k=Gr({},Yr(x));if(x instanceof Vt){let[N]=x.descendant(De,_);N&&(k=Gr(k,Yr(N)))}h=he.AttributeMap.diff(k,h)||{}}else if(typeof l.insert=="object"){let v=Object.keys(l.insert)[0];if(v==null)return s;let x=this.scroll.query(v,X.INLINE)!=null;if(x)(t<=s||this.scroll.descendant(Ue,s)[0])&&(f=!0);else if(s>0){let[_,k]=this.scroll.descendant(De,s-1);_ instanceof Te?_.value()[k]!==`
|
|
2627
|
+
`&&(m=!0):_ instanceof pe&&_.statics.scope===X.INLINE_BLOT&&(m=!0)}if(this.scroll.insertAt(s,v,l.insert[v]),x){let[_]=this.scroll.descendant(De,s);if(_){let k=Gr({},Yr(_));h=he.AttributeMap.diff(k,h)||{}}}}t+=d}else if(n.push(l),l.retain!==null&&typeof l.retain=="object"){let v=Object.keys(l.retain)[0];if(v==null)return s;this.scroll.updateEmbedAt(s,v,l.retain[v])}Object.keys(h).forEach(v=>{this.scroll.formatAt(s,d,v,h[v])});let b=m?1:0,g=f?1:0;return t+=b+g,n.retain(b),n.delete(g),s+d+b+g},0),n.reduce((s,l)=>typeof l.delete=="number"?(this.scroll.deleteAt(s,l.delete),s):s+he.Op.length(l),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(r)}deleteText(o,t){return this.scroll.deleteAt(o,t),this.update(new he.default().retain(o).delete(t))}formatLine(o,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(r).forEach(a=>{this.scroll.lines(o,Math.max(t,1)).forEach(s=>{s.format(a,r[a])})}),this.scroll.optimize();let n=new he.default().retain(o).retain(t,zn(r));return this.update(n)}formatText(o,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(r).forEach(a=>{this.scroll.formatAt(o,t,a,r[a])});let n=new he.default().retain(o).retain(t,zn(r));return this.update(n)}getContents(o,t){return this.delta.slice(o,o+t)}getDelta(){return this.scroll.lines().reduce((o,t)=>o.concat(t.delta()),new he.default)}getFormat(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=[],n=[];t===0?this.scroll.path(o).forEach(l=>{let[d]=l;d instanceof Vt?r.push(d):d instanceof De&&n.push(d)}):(r=this.scroll.lines(o,t),n=this.scroll.descendants(De,o,t));let[a,s]=[r,n].map(l=>{let d=l.shift();if(d==null)return{};let h=Yr(d);for(;Object.keys(h).length>0;){let m=l.shift();if(m==null)return h;h=IT(Yr(m),h)}return h});return{...a,...s}}getHTML(o,t){let[r,n]=this.scroll.line(o);if(r){let a=r.length();return r.length()>=n+t&&!(n===0&&t===a)?Ul(r,n,t,!0):Ul(this.scroll,o,t,!0)}return""}getText(o,t){return this.getContents(o,t).filter(r=>typeof r.insert=="string").map(r=>r.insert).join("")}insertContents(o,t){let r=xz(t),n=new he.default().retain(o).concat(r);return this.scroll.insertContents(o,r),this.update(n)}insertEmbed(o,t,r){return this.scroll.insertAt(o,t,r),this.update(new he.default().retain(o).insert({[t]:r}))}insertText(o,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
|
|
2626
2628
|
`).replace(/\r/g,`
|
|
2627
|
-
`),this.scroll.insertAt(o,t),Object.keys(r).forEach(n=>{this.scroll.formatAt(o,t.length,n,r[n])}),this.update(new he.default().retain(o).insert(t,zn(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;let o=this.scroll.children.head;if(o?.statics.blotName!==
|
|
2629
|
+
`),this.scroll.insertAt(o,t),Object.keys(r).forEach(n=>{this.scroll.formatAt(o,t.length,n,r[n])}),this.update(new he.default().retain(o).insert(t,zn(r)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;let o=this.scroll.children.head;if(o?.statics.blotName!==Vt.blotName)return!1;let t=o;return t.children.length>1?!1:t.children.head instanceof yr}removeFormat(o,t){let r=this.getText(o,t),[n,a]=this.scroll.line(o+t),s=0,l=new he.default;n!=null&&(s=n.length()-a,l=n.delta().slice(a,a+s-1).insert(`
|
|
2628
2630
|
`));let h=this.getContents(o,t+s).diff(new he.default().insert(r).concat(l)),m=new he.default().retain(o).concat(h);return this.applyDelta(m)}update(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,n=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(qT)&&this.scroll.find(t[0].target)){let a=this.scroll.find(t[0].target),s=Yr(a),l=a.offset(this.scroll),d=t[0].oldValue.replace($i.CONTENTS,""),h=new he.default().insert(d),m=new he.default().insert(a.value()),f=r&&{oldRange:yz(r.oldRange,-l),newRange:yz(r.newRange,-l)};o=new he.default().retain(l).concat(h.diff(m,f)).reduce((g,v)=>v.insert?g.insert(v.insert,s):g.push(v),new he.default),this.delta=n.compose(o)}else this.delta=this.getDelta(),(!o||!ya(n.compose(o),this.delta))&&(o=n.diff(this.delta,r));return o}};function Ts(i,o,t){if(i.length===0){let[g]=Im(t.pop());return o<=0?`</li></${g}>`:`</li></${g}>${Ts([],o-1,t)}`}let[{child:r,offset:n,length:a,indent:s,type:l},...d]=i,[h,m]=Im(l);if(s>o)return t.push(l),s===o+1?`<${h}><li${m}>${Ul(r,n,a)}${Ts(d,s,t)}`:`<${h}><li>${Ts(i,o+1,t)}`;let f=t[t.length-1];if(s===o&&l===f)return`</li><li${m}>${Ul(r,n,a)}${Ts(d,s,t)}`;let[b]=Im(t.pop());return`</li></${b}>${Ts(i,o-1,t)}`}function Ul(i,o,t){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in i&&typeof i.html=="function")return i.html(o,t);if(i instanceof Te)return wa(i.value().slice(o,o+t)).replaceAll(" "," ");if(i instanceof Wr){if(i.statics.blotName==="list-container"){let h=[];return i.children.forEachAt(o,t,(m,f,b)=>{let g="formats"in m&&typeof m.formats=="function"?m.formats():{};h.push({child:m,offset:f,length:b,indent:g.indent||0,type:g.list})}),Ts(h,-1,[])}let n=[];if(i.children.forEachAt(o,t,(h,m,f)=>{n.push(Ul(h,m,f))}),r||i.statics.blotName==="list")return n.join("");let{outerHTML:a,innerHTML:s}=i.domNode,[l,d]=a.split(`>${s}<`);return l==="<table"?`<table style="border: 1px solid #000;">${n.join("")}<${d}`:`${l}>${n.join("")}<${d}`}return i.domNode instanceof Element?i.domNode.outerHTML:""}function IT(i,o){return Object.keys(o).reduce((t,r)=>{if(i[r]==null)return t;let n=o[r];return n===i[r]?t[r]=n:Array.isArray(n)?n.indexOf(i[r])<0?t[r]=n.concat([i[r]]):t[r]=n:t[r]=[n,i[r]],t},{})}function Im(i){let o=i==="ordered"?"ol":"ul";switch(i){case"checked":return[o,' data-list="checked"'];case"unchecked":return[o,' data-list="unchecked"'];default:return[o,""]}}function xz(i){return i.reduce((o,t)=>{if(typeof t.insert=="string"){let r=t.insert.replace(/\r\n/g,`
|
|
2629
2631
|
`).replace(/\r/g,`
|
|
2630
2632
|
`);return o.insert(r,t.attributes)}return o.push(t)},new he.default)}function yz(i,o){let{index:t,length:r}=i;return new qr(t+o,r)}function DT(i){let o=[];return i.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
|
|
2631
2633
|
`).forEach((n,a)=>{a&&o.push({insert:`
|
|
2632
2634
|
`,attributes:t.attributes}),n&&o.push({insert:n,attributes:t.attributes})}):o.push(t)}),o}var zz=Dm;var zp=class{constructor(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=o,this.options=t}};B(zp,"DEFAULTS",{});var oe=zp;var wp="\uFEFF",Nm=class extends pe{constructor(o,t){super(o,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(r=>{this.contentNode.appendChild(r)}),this.leftGuard=document.createTextNode(wp),this.rightGuard=document.createTextNode(wp),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(o,t){return o===this.leftGuard?0:o===this.rightGuard?1:super.index(o,t)}restore(o){let t=null,r,n=o.data.split(wp).join("");if(o===this.leftGuard)if(this.prev instanceof Te){let a=this.prev.length();this.prev.insertAt(a,n),t={startNode:this.prev.domNode,startOffset:a+n.length}}else r=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(r),this),t={startNode:r,startOffset:n.length};else o===this.rightGuard&&(this.next instanceof Te?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(r=document.createTextNode(n),this.parent.insertBefore(this.scroll.create(r),this.next),t={startNode:r,startOffset:n.length}));return o.data=wp,t}update(o,t){o.forEach(r=>{if(r.type==="characterData"&&(r.target===this.leftGuard||r.target===this.rightGuard)){let n=this.restore(r.target);n&&(t.range=n)}})}},$s=Nm;var Rm=class{constructor(o,t){B(this,"isComposing",!1);this.scroll=o,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",o=>{this.isComposing||this.handleCompositionStart(o)}),this.scroll.domNode.addEventListener("compositionend",o=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(o)})})}handleCompositionStart(o){let t=o.target instanceof Node?this.scroll.find(o.target,!0):null;t&&!(t instanceof $s)&&(this.emitter.emit(J.events.COMPOSITION_BEFORE_START,o),this.scroll.batchStart(),this.emitter.emit(J.events.COMPOSITION_START,o),this.isComposing=!0)}handleCompositionEnd(o){this.emitter.emit(J.events.COMPOSITION_BEFORE_END,o),this.scroll.batchEnd(),this.emitter.emit(J.events.COMPOSITION_END,o),this.isComposing=!1}},wz=Rm;var jl=class jl{constructor(o,t){B(this,"modules",{});this.quill=o,this.options=t}init(){Object.keys(this.options.modules).forEach(o=>{this.modules[o]==null&&this.addModule(o)})}addModule(o){let t=this.quill.constructor.import(`modules/${o}`);return this.modules[o]=new t(this.quill,this.options.modules[o]||{}),this.modules[o]}};B(jl,"DEFAULTS",{modules:{}}),B(jl,"themes",{default:jl});var Om=jl,As=Om;var NT=i=>i.parentElement||i.getRootNode().host||null,RT=i=>{let o=i.getBoundingClientRect(),t="offsetWidth"in i&&Math.abs(o.width)/i.offsetWidth||1,r="offsetHeight"in i&&Math.abs(o.height)/i.offsetHeight||1;return{top:o.top,right:o.left+i.clientWidth*t,bottom:o.top+i.clientHeight*r,left:o.left}},_p=i=>{let o=parseInt(i,10);return Number.isNaN(o)?0:o},_z=(i,o,t,r,n,a)=>i<t&&o>r?0:i<t?-(t-i+n):o>r?o-i>r-t?i+n-t:o-r+a:0,OT=(i,o)=>{let t=i.ownerDocument,r=o,n=i;for(;n;){let a=n===t.body,s=a?{top:0,right:window.visualViewport?.width??t.documentElement.clientWidth,bottom:window.visualViewport?.height??t.documentElement.clientHeight,left:0}:RT(n),l=getComputedStyle(n),d=_z(r.left,r.right,s.left,s.right,_p(l.scrollPaddingLeft),_p(l.scrollPaddingRight)),h=_z(r.top,r.bottom,s.top,s.bottom,_p(l.scrollPaddingTop),_p(l.scrollPaddingBottom));if(d||h)if(a)t.defaultView?.scrollBy(d,h);else{let{scrollLeft:m,scrollTop:f}=n;h&&(n.scrollTop+=h),d&&(n.scrollLeft+=d);let b=n.scrollLeft-m,g=n.scrollTop-f;r={left:r.left-b,top:r.top-g,right:r.right-b,bottom:r.bottom-g}}n=a||l.position==="fixed"?null:NT(n)}},kz=OT;var PT=100,HT=["block","break","cursor","inline","scroll","text"],FT=(i,o,t)=>{let r=new Ti;return HT.forEach(n=>{let a=o.query(n);a&&r.register(a)}),i.forEach(n=>{let a=o.query(n);a||t.error(`Cannot register "${n}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;a;)if(r.register(a),a="blotName"in a?a.requiredContainer??null:null,s+=1,s>PT){t.error(`Cycle detected in registering blot requiredContainer: "${n}"`);break}}),r},Cz=FT;var Ls=lo("quill"),kp=new Ti;Wr.uiClass="ql-ui";var Jo=class Jo{static debug(o){o===!0&&(o="log"),lo.level(o)}static find(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Bl.get(o)||kp.find(o,t)}static import(o){return this.imports[o]==null&&Ls.error(`Cannot import ${o}. Are you sure it was registered?`),this.imports[o]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){let o=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),r="attrName"in o?o.attrName:o.blotName;typeof r=="string"?this.register(`formats/${r}`,o,t):Object.keys(o).forEach(n=>{this.register(n,o[n],t)})}else{let o=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=!!(!(arguments.length<=2)&&arguments[2]);this.imports[o]!=null&&!r&&Ls.warn(`Overwriting ${o} with`,t),this.imports[o]=t,(o.startsWith("blots/")||o.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&kp.register(t),typeof t.register=="function"&&t.register(kp)}}constructor(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=BT(o,t),this.container=this.options.container,this.container==null){Ls.error("Invalid Quill container",o);return}this.options.debug&&Jo.debug(this.options.debug);let r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Bl.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new J;let n=Ol.blotName,a=this.options.registry.query(n);if(!a||!("blotName"in a))throw new Error(`Cannot initialize Quill without "${n}" blot`);if(this.scroll=new a(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new zz(this.scroll),this.selection=new vz(this.scroll,this.emitter),this.composition=new wz(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(J.events.EDITOR_CHANGE,s=>{s===J.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(J.events.SCROLL_UPDATE,(s,l)=>{let d=this.selection.lastRange,[h]=this.selection.getRange(),m=d&&h?{oldRange:d,newRange:h}:void 0;Qo.call(this,()=>this.editor.update(null,l,m),s)}),this.emitter.on(J.events.SCROLL_EMBED_UPDATE,(s,l)=>{let d=this.selection.lastRange,[h]=this.selection.getRange(),m=d&&h?{oldRange:d,newRange:h}:void 0;Qo.call(this,()=>{let f=new Ai.default().retain(s.offset(this)).retain({[s.statics.blotName]:l});return this.editor.update(f,[],m)},Jo.sources.USER)}),r){let s=this.clipboard.convert({html:`${r}<p><br></p>`,text:`
|
|
2633
|
-
`});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof o=="string"){let r=o;o=document.createElement("div"),o.classList.add(r)}return this.container.insertBefore(o,t),o}blur(){this.selection.setRange(null)}deleteText(o,t,r){return[o,t,,r]=Xn(o,t,r),Qo.call(this,()=>this.editor.deleteText(o,t),r,o,-1*t)}disable(){this.enable(!1)}editReadOnly(o){this.allowReadOnlyEdits=!0;let t=o();return this.allowReadOnlyEdits=!1,t}enable(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(o),this.container.classList.toggle("ql-disabled",!o)}focus(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),o.preventScroll||this.scrollSelectionIntoView()}format(o,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:J.sources.API;return Qo.call(this,()=>{let n=this.getSelection(!0),a=new Ai.default;if(n==null)return a;if(this.scroll.query(o,X.BLOCK))a=this.editor.formatLine(n.index,n.length,{[o]:t});else{if(n.length===0)return this.selection.format(o,t),a;a=this.editor.formatText(n.index,n.length,{[o]:t})}return this.setSelection(n,J.sources.SILENT),a},r)}formatLine(o,t,r,n,a){let s;return[o,t,s,a]=Xn(o,t,r,n,a),Qo.call(this,()=>this.editor.formatLine(o,t,s),a,o,0)}formatText(o,t,r,n,a){let s;return[o,t,s,a]=Xn(o,t,r,n,a),Qo.call(this,()=>this.editor.formatText(o,t,s),a,o,0)}getBounds(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof o=="number"?r=this.selection.getBounds(o,t):r=this.selection.getBounds(o.index,o.length),!r)return null;let n=this.container.getBoundingClientRect();return{bottom:r.bottom-n.top,height:r.height,left:r.left-n.left,right:r.right-n.left,top:r.top-n.top,width:r.width}}getContents(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-o;return[o,t]=Xn(o,t),this.editor.getContents(o,t)}getFormat(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof o=="number"?this.editor.getFormat(o,t):this.editor.getFormat(o.index,o.length)}getIndex(o){return o.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(o){return this.scroll.leaf(o)}getLine(o){return this.scroll.line(o)}getLines(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof o!="number"?this.scroll.lines(o.index,o.length):this.scroll.lines(o,t)}getModule(o){return this.theme.modules[o]}getSelection(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof o=="number"&&(t=t??this.getLength()-o),[o,t]=Xn(o,t),this.editor.getHTML(o,t)}getText(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof o=="number"&&(t=t??this.getLength()-o),[o,t]=Xn(o,t),this.editor.getText(o,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(o,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Jo.sources.API;return Qo.call(this,()=>this.editor.insertEmbed(o,t,r),n,o)}insertText(o,t,r,n,a){let s;return[o,,s,a]=Xn(o,0,r,n,a),Qo.call(this,()=>this.editor.insertText(o,t,s),a,o,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(o,t,r){return[o,t,,r]=Xn(o,t,r),Qo.call(this,()=>this.editor.removeFormat(o,t),r,o)}scrollRectIntoView(o){kz(this.root,o)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){let o=this.selection.lastRange,t=o&&this.selection.getBounds(o.index,o.length);t&&this.scrollRectIntoView(t)}setContents(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:J.sources.API;return Qo.call(this,()=>{o=new Ai.default(o);let r=this.getLength(),n=this.editor.deleteText(0,r),a=this.editor.insertContents(0,o),s=this.editor.deleteText(this.getLength()-1,1);return n.compose(a).compose(s)},t)}setSelection(o,t,r){o==null?this.selection.setRange(null,t||Jo.sources.API):([o,t,,r]=Xn(o,t,r),this.selection.setRange(new qr(Math.max(0,o),t),r),r!==J.sources.SILENT&&this.scrollSelectionIntoView())}setText(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:J.sources.API,r=new Ai.default().insert(o);return this.setContents(r,t)}update(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J.sources.USER,t=this.scroll.update(o);return this.selection.update(o),t}updateContents(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:J.sources.API;return Qo.call(this,()=>(o=new Ai.default(o),this.editor.applyDelta(o)),t,!0)}};B(Jo,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:kp,theme:"default"}),B(Jo,"events",J.events),B(Jo,"sources",J.sources),B(Jo,"version","2.0.3"),B(Jo,"imports",{delta:Ai.default,parchment:Pl,"core/module":oe,"core/theme":As});var j=Jo;function Sz(i){return typeof i=="string"?document.querySelector(i):i}function Pm(i){return Object.entries(i??{}).reduce((o,t)=>{let[r,n]=t;return{...o,[r]:n===!0?{}:n}},{})}function Ez(i){return Object.fromEntries(Object.entries(i).filter(o=>o[1]!==void 0))}function BT(i,o){let t=Sz(i);if(!t)throw new Error("Invalid Quill container");let n=!o.theme||o.theme===j.DEFAULTS.theme?As:j.import(`themes/${o.theme}`);if(!n)throw new Error(`Invalid theme ${o.theme}. Did you register it?`);let{modules:a,...s}=j.DEFAULTS,{modules:l,...d}=n.DEFAULTS,h=Pm(o.modules);h!=null&&h.toolbar&&h.toolbar.constructor!==Object&&(h={...h,toolbar:{container:h.toolbar}});let m=Gr({},Pm(a),Pm(l),h),f={...s,...Ez(d),...Ez(o)},b=o.registry;return b?o.formats&&Ls.warn('Ignoring "formats" option because "registry" is specified'):b=o.formats?Cz(o.formats,f.registry,Ls):f.registry,{...f,registry:b,container:t,theme:n,modules:Object.entries(m).reduce((g,v)=>{let[x,_]=v;if(!_)return g;let k=j.import(`modules/${x}`);return k==null?(Ls.error(`Cannot load ${x} module. Are you sure you registered it?`),g):{...g,[x]:Gr({},k.DEFAULTS||{},_)}},{}),bounds:Sz(f.bounds)}}function Qo(i,o,t,r){if(!this.isEnabled()&&o===J.sources.USER&&!this.allowReadOnlyEdits)return new Ai.default;let n=t==null?null:this.getSelection(),a=this.editor.delta,s=i();if(n!=null&&(t===!0&&(t=n.index),r==null?n=Tz(n,s,o):r!==0&&(n=Tz(n,t,r,o)),this.setSelection(n,J.sources.SILENT)),s.length()>0){let l=[J.events.TEXT_CHANGE,s,a,o];this.emitter.emit(J.events.EDITOR_CHANGE,...l),o!==J.sources.SILENT&&this.emitter.emit(...l)}return s}function Xn(i,o,t,r,n){let a={};return typeof i.index=="number"&&typeof i.length=="number"?typeof o!="number"?(n=r,r=t,t=o,o=i.length,i=i.index):(o=i.length,i=i.index):typeof o!="number"&&(n=r,r=t,t=o,o=0),typeof t=="object"?(a=t,n=r):typeof t=="string"&&(r!=null?a[t]=r:n=t),n=n||J.sources.API,[i,o,a,n]}function Tz(i,o,t,r){let n=typeof t=="number"?t:0;if(i==null)return null;let a,s;return o&&typeof o.transformPosition=="function"?[a,s]=[i.index,i.index+i.length].map(l=>o.transformPosition(l,r!==J.sources.USER)):[a,s]=[i.index,i.index+i.length].map(l=>l<o||l===o&&r===J.sources.USER?l:n>=0?l+n:Math.max(o,l+n)),new qr(a,s-a)}var Hm=class extends Ss{},So=Hm;var Eo=ur(Ur(),1);function $z(i){return i instanceof
|
|
2635
|
+
`});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof o=="string"){let r=o;o=document.createElement("div"),o.classList.add(r)}return this.container.insertBefore(o,t),o}blur(){this.selection.setRange(null)}deleteText(o,t,r){return[o,t,,r]=Xn(o,t,r),Qo.call(this,()=>this.editor.deleteText(o,t),r,o,-1*t)}disable(){this.enable(!1)}editReadOnly(o){this.allowReadOnlyEdits=!0;let t=o();return this.allowReadOnlyEdits=!1,t}enable(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(o),this.container.classList.toggle("ql-disabled",!o)}focus(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),o.preventScroll||this.scrollSelectionIntoView()}format(o,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:J.sources.API;return Qo.call(this,()=>{let n=this.getSelection(!0),a=new Ai.default;if(n==null)return a;if(this.scroll.query(o,X.BLOCK))a=this.editor.formatLine(n.index,n.length,{[o]:t});else{if(n.length===0)return this.selection.format(o,t),a;a=this.editor.formatText(n.index,n.length,{[o]:t})}return this.setSelection(n,J.sources.SILENT),a},r)}formatLine(o,t,r,n,a){let s;return[o,t,s,a]=Xn(o,t,r,n,a),Qo.call(this,()=>this.editor.formatLine(o,t,s),a,o,0)}formatText(o,t,r,n,a){let s;return[o,t,s,a]=Xn(o,t,r,n,a),Qo.call(this,()=>this.editor.formatText(o,t,s),a,o,0)}getBounds(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=null;if(typeof o=="number"?r=this.selection.getBounds(o,t):r=this.selection.getBounds(o.index,o.length),!r)return null;let n=this.container.getBoundingClientRect();return{bottom:r.bottom-n.top,height:r.height,left:r.left-n.left,right:r.right-n.left,top:r.top-n.top,width:r.width}}getContents(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-o;return[o,t]=Xn(o,t),this.editor.getContents(o,t)}getFormat(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof o=="number"?this.editor.getFormat(o,t):this.editor.getFormat(o.index,o.length)}getIndex(o){return o.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(o){return this.scroll.leaf(o)}getLine(o){return this.scroll.line(o)}getLines(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof o!="number"?this.scroll.lines(o.index,o.length):this.scroll.lines(o,t)}getModule(o){return this.theme.modules[o]}getSelection(){return arguments.length>0&&arguments[0]!==void 0&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof o=="number"&&(t=t??this.getLength()-o),[o,t]=Xn(o,t),this.editor.getHTML(o,t)}getText(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof o=="number"&&(t=t??this.getLength()-o),[o,t]=Xn(o,t),this.editor.getText(o,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(o,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Jo.sources.API;return Qo.call(this,()=>this.editor.insertEmbed(o,t,r),n,o)}insertText(o,t,r,n,a){let s;return[o,,s,a]=Xn(o,0,r,n,a),Qo.call(this,()=>this.editor.insertText(o,t,s),a,o,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(o,t,r){return[o,t,,r]=Xn(o,t,r),Qo.call(this,()=>this.editor.removeFormat(o,t),r,o)}scrollRectIntoView(o){kz(this.root,o)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){let o=this.selection.lastRange,t=o&&this.selection.getBounds(o.index,o.length);t&&this.scrollRectIntoView(t)}setContents(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:J.sources.API;return Qo.call(this,()=>{o=new Ai.default(o);let r=this.getLength(),n=this.editor.deleteText(0,r),a=this.editor.insertContents(0,o),s=this.editor.deleteText(this.getLength()-1,1);return n.compose(a).compose(s)},t)}setSelection(o,t,r){o==null?this.selection.setRange(null,t||Jo.sources.API):([o,t,,r]=Xn(o,t,r),this.selection.setRange(new qr(Math.max(0,o),t),r),r!==J.sources.SILENT&&this.scrollSelectionIntoView())}setText(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:J.sources.API,r=new Ai.default().insert(o);return this.setContents(r,t)}update(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J.sources.USER,t=this.scroll.update(o);return this.selection.update(o),t}updateContents(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:J.sources.API;return Qo.call(this,()=>(o=new Ai.default(o),this.editor.applyDelta(o)),t,!0)}};B(Jo,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:kp,theme:"default"}),B(Jo,"events",J.events),B(Jo,"sources",J.sources),B(Jo,"version","2.0.3"),B(Jo,"imports",{delta:Ai.default,parchment:Pl,"core/module":oe,"core/theme":As});var j=Jo;function Sz(i){return typeof i=="string"?document.querySelector(i):i}function Pm(i){return Object.entries(i??{}).reduce((o,t)=>{let[r,n]=t;return{...o,[r]:n===!0?{}:n}},{})}function Ez(i){return Object.fromEntries(Object.entries(i).filter(o=>o[1]!==void 0))}function BT(i,o){let t=Sz(i);if(!t)throw new Error("Invalid Quill container");let n=!o.theme||o.theme===j.DEFAULTS.theme?As:j.import(`themes/${o.theme}`);if(!n)throw new Error(`Invalid theme ${o.theme}. Did you register it?`);let{modules:a,...s}=j.DEFAULTS,{modules:l,...d}=n.DEFAULTS,h=Pm(o.modules);h!=null&&h.toolbar&&h.toolbar.constructor!==Object&&(h={...h,toolbar:{container:h.toolbar}});let m=Gr({},Pm(a),Pm(l),h),f={...s,...Ez(d),...Ez(o)},b=o.registry;return b?o.formats&&Ls.warn('Ignoring "formats" option because "registry" is specified'):b=o.formats?Cz(o.formats,f.registry,Ls):f.registry,{...f,registry:b,container:t,theme:n,modules:Object.entries(m).reduce((g,v)=>{let[x,_]=v;if(!_)return g;let k=j.import(`modules/${x}`);return k==null?(Ls.error(`Cannot load ${x} module. Are you sure you registered it?`),g):{...g,[x]:Gr({},k.DEFAULTS||{},_)}},{}),bounds:Sz(f.bounds)}}function Qo(i,o,t,r){if(!this.isEnabled()&&o===J.sources.USER&&!this.allowReadOnlyEdits)return new Ai.default;let n=t==null?null:this.getSelection(),a=this.editor.delta,s=i();if(n!=null&&(t===!0&&(t=n.index),r==null?n=Tz(n,s,o):r!==0&&(n=Tz(n,t,r,o)),this.setSelection(n,J.sources.SILENT)),s.length()>0){let l=[J.events.TEXT_CHANGE,s,a,o];this.emitter.emit(J.events.EDITOR_CHANGE,...l),o!==J.sources.SILENT&&this.emitter.emit(...l)}return s}function Xn(i,o,t,r,n){let a={};return typeof i.index=="number"&&typeof i.length=="number"?typeof o!="number"?(n=r,r=t,t=o,o=i.length,i=i.index):(o=i.length,i=i.index):typeof o!="number"&&(n=r,r=t,t=o,o=0),typeof t=="object"?(a=t,n=r):typeof t=="string"&&(r!=null?a[t]=r:n=t),n=n||J.sources.API,[i,o,a,n]}function Tz(i,o,t,r){let n=typeof t=="number"?t:0;if(i==null)return null;let a,s;return o&&typeof o.transformPosition=="function"?[a,s]=[i.index,i.index+i.length].map(l=>o.transformPosition(l,r!==J.sources.USER)):[a,s]=[i.index,i.index+i.length].map(l=>l<o||l===o&&r===J.sources.USER?l:n>=0?l+n:Math.max(o,l+n)),new qr(a,s-a)}var Hm=class extends Ss{},So=Hm;var Eo=ur(Ur(),1);function $z(i){return i instanceof Vt||i instanceof Ue}function Az(i){return typeof i.updateContent=="function"}var Li=class extends Ol{constructor(o,t,r){let{emitter:n}=r;super(o,t),this.emitter=n,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",a=>this.handleDragStart(a))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;let o=this.batch;this.batch=!1,this.update(o)}emitMount(o){this.emitter.emit(J.events.SCROLL_BLOT_MOUNT,o)}emitUnmount(o){this.emitter.emit(J.events.SCROLL_BLOT_UNMOUNT,o)}emitEmbedUpdate(o,t){this.emitter.emit(J.events.SCROLL_EMBED_UPDATE,o,t)}deleteAt(o,t){let[r,n]=this.line(o),[a]=this.line(o+t);if(super.deleteAt(o,t),a!=null&&r!==a&&n>0){if(r instanceof Ue||a instanceof Ue){this.optimize();return}let s=a.children.head instanceof yr?null:a.children.head;r.moveChildren(a,s),r.remove()}this.optimize()}enable(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",o?"true":"false")}formatAt(o,t,r,n){super.formatAt(o,t,r,n),this.optimize()}insertAt(o,t,r){if(o>=this.length())if(r==null||this.scroll.query(t,X.BLOCK)==null){let n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n),r==null&&t.endsWith(`
|
|
2634
2636
|
`)?n.insertAt(0,t.slice(0,-1),r):n.insertAt(0,t,r)}else{let n=this.scroll.create(t,r);this.appendChild(n)}else super.insertAt(o,t,r);this.optimize()}insertBefore(o,t){if(o.statics.scope===X.INLINE_BLOT){let r=this.scroll.create(this.statics.defaultChild.blotName);r.appendChild(o),super.insertBefore(r,t)}else super.insertBefore(o,t)}insertContents(o,t){let r=this.deltaToRenderBlocks(t.concat(new Eo.default().insert(`
|
|
2635
2637
|
`))),n=r.pop();if(n==null)return;this.batchStart();let a=r.shift();if(a){let d=a.type==="block"&&(a.delta.length()===0||!this.descendant(Ue,o)[0]&&o<this.length()),h=a.type==="block"?a.delta:new Eo.default().insert({[a.key]:a.value});Fm(this,o,h);let m=a.type==="block"?1:0,f=o+h.length()+m;d&&this.insertAt(f-1,`
|
|
2636
|
-
`);let b=Yr(this.line(o)[0]),g=Eo.AttributeMap.diff(b,a.attributes)||{};Object.keys(g).forEach(v=>{this.formatAt(f-1,1,v,g[v])}),o=f}let[s,l]=this.children.find(o);if(r.length&&(s&&(s=s.split(l),l=0),r.forEach(d=>{if(d.type==="block"){let h=this.createBlock(d.attributes,s||void 0);Fm(h,0,d.delta)}else{let h=this.create(d.key,d.value);this.insertBefore(h,s||void 0),Object.keys(d.attributes).forEach(m=>{h.format(m,d.attributes[m])})}})),n.type==="block"&&n.delta.length()){let d=s?s.offset(s.scroll)+l:this.length();Fm(this,d,n.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(o){let t=this.path(o).pop();if(!t)return[null,-1];let[r,n]=t;return r instanceof
|
|
2637
|
-
`);s.slice(0,-1).forEach(d=>{r.insert(d,n.attributes),t.push({type:"block",delta:r,attributes:n.attributes??{}}),r=new Eo.default});let l=s[s.length-1];l&&r.insert(l,n.attributes)}else{let s=Object.keys(a)[0];if(!s)return;this.query(s,X.INLINE)?r.push(n):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Eo.default,t.push({type:"blockEmbed",key:s,value:a[s],attributes:n.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(o,t){let r,n={};Object.entries(o).forEach(l=>{let[d,h]=l;this.query(d,X.BLOCK&X.BLOT)!=null?r=d:n[d]=h});let a=this.create(r||this.statics.defaultChild.blotName,r?o[r]:void 0);this.insertBefore(a,t||void 0);let s=a.length();return Object.entries(n).forEach(l=>{let[d,h]=l;a.formatAt(0,s,d,h)}),a}};B(Li,"blotName","scroll"),B(Li,"className","ql-editor"),B(Li,"tagName","DIV"),B(Li,"defaultChild",
|
|
2638
|
+
`);let b=Yr(this.line(o)[0]),g=Eo.AttributeMap.diff(b,a.attributes)||{};Object.keys(g).forEach(v=>{this.formatAt(f-1,1,v,g[v])}),o=f}let[s,l]=this.children.find(o);if(r.length&&(s&&(s=s.split(l),l=0),r.forEach(d=>{if(d.type==="block"){let h=this.createBlock(d.attributes,s||void 0);Fm(h,0,d.delta)}else{let h=this.create(d.key,d.value);this.insertBefore(h,s||void 0),Object.keys(d.attributes).forEach(m=>{h.format(m,d.attributes[m])})}})),n.type==="block"&&n.delta.length()){let d=s?s.offset(s.scroll)+l:this.length();Fm(this,d,n.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(o){let t=this.path(o).pop();if(!t)return[null,-1];let[r,n]=t;return r instanceof De?[r,n]:[null,-1]}line(o){return o===this.length()?this.line(o-1):this.descendant($z,o)}lines(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,r=(n,a,s)=>{let l=[],d=s;return n.children.forEachAt(a,s,(h,m,f)=>{$z(h)?l.push(h):h instanceof Ss&&(l=l.concat(r(h,m,d))),d-=f}),l};return r(this,o,t)}optimize(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(o,t),o.length>0&&this.emitter.emit(J.events.SCROLL_OPTIMIZE,o,t))}path(o){return super.path(o).slice(1)}remove(){}update(o){if(this.batch){Array.isArray(o)&&(this.batch=this.batch.concat(o));return}let t=J.sources.USER;typeof o=="string"&&(t=o),Array.isArray(o)||(o=this.observer.takeRecords()),o=o.filter(r=>{let{target:n}=r,a=this.find(n,!0);return a&&!Az(a)}),o.length>0&&this.emitter.emit(J.events.SCROLL_BEFORE_UPDATE,t,o),super.update(o.concat([])),o.length>0&&this.emitter.emit(J.events.SCROLL_UPDATE,t,o)}updateEmbedAt(o,t,r){let[n]=this.descendant(a=>a instanceof Ue,o);n&&n.statics.blotName===t&&Az(n)&&n.updateContent(r)}handleDragStart(o){o.preventDefault()}deltaToRenderBlocks(o){let t=[],r=new Eo.default;return o.forEach(n=>{let a=n?.insert;if(a)if(typeof a=="string"){let s=a.split(`
|
|
2639
|
+
`);s.slice(0,-1).forEach(d=>{r.insert(d,n.attributes),t.push({type:"block",delta:r,attributes:n.attributes??{}}),r=new Eo.default});let l=s[s.length-1];l&&r.insert(l,n.attributes)}else{let s=Object.keys(a)[0];if(!s)return;this.query(s,X.INLINE)?r.push(n):(r.length()&&t.push({type:"block",delta:r,attributes:{}}),r=new Eo.default,t.push({type:"blockEmbed",key:s,value:a[s],attributes:n.attributes??{}}))}}),r.length()&&t.push({type:"block",delta:r,attributes:{}}),t}createBlock(o,t){let r,n={};Object.entries(o).forEach(l=>{let[d,h]=l;this.query(d,X.BLOCK&X.BLOT)!=null?r=d:n[d]=h});let a=this.create(r||this.statics.defaultChild.blotName,r?o[r]:void 0);this.insertBefore(a,t||void 0);let s=a.length();return Object.entries(n).forEach(l=>{let[d,h]=l;a.formatAt(0,s,d,h)}),a}};B(Li,"blotName","scroll"),B(Li,"className","ql-editor"),B(Li,"tagName","DIV"),B(Li,"defaultChild",Vt),B(Li,"allowedChildren",[Vt,Ue,So]);function Fm(i,o,t){t.reduce((r,n)=>{let a=Eo.Op.length(n),s=n.attributes||{};if(n.insert!=null){if(typeof n.insert=="string"){let l=n.insert;i.insertAt(r,l);let[d]=i.descendant(De,r),h=Yr(d);s=Eo.AttributeMap.diff(h,s)||{}}else if(typeof n.insert=="object"){let l=Object.keys(n.insert)[0];if(l==null)return r;if(i.insertAt(r,l,n.insert[l]),i.scroll.query(l,X.INLINE)!=null){let[h]=i.descendant(De,r),m=Yr(h);s=Eo.AttributeMap.diff(m,s)||{}}}}return Object.keys(s).forEach(l=>{i.formatAt(r,a,l,s[l])}),r+a},o)}var Lz=Li;var Xr=ur(Ur(),1);var Bm={scope:X.BLOCK,whitelist:["right","center","justify"]},Mz=new Lr("align","align",Bm),Vm=new Ie("align","ql-align",Bm),Cp=new Kr("align","text-align",Bm);var Gl=class extends Kr{value(o){let t=super.value(o);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(n=>`00${parseInt(n,10).toString(16)}`.slice(-2)).join("")}`):t}},qz=new Ie("color","ql-color",{scope:X.INLINE}),Wl=new Gl("color","color",{scope:X.INLINE});var Iz=new Ie("background","ql-bg",{scope:X.INLINE}),Kl=new Gl("background","background-color",{scope:X.INLINE});var _n=class extends So{static create(o){let t=super.create(o);return t.setAttribute("spellcheck","false"),t}code(o,t){return this.children.map(r=>r.length()<=1?"":r.domNode.innerText).join(`
|
|
2638
2640
|
`).slice(o,o+t)}html(o,t){return`<pre>
|
|
2639
2641
|
${wa(this.code(o,t))}
|
|
2640
|
-
</pre>`}},$e=class extends
|
|
2642
|
+
</pre>`}},$e=class extends Vt{static register(){j.register(_n)}};B($e,"TAB"," ");var Ms=class extends zr{};Ms.blotName="code";Ms.tagName="CODE";$e.blotName="code-block";$e.className="ql-code-block";$e.tagName="DIV";_n.blotName="code-block-container";_n.className="ql-code-block-container";_n.tagName="DIV";_n.allowedChildren=[$e];$e.allowedChildren=[Te,yr,$i];$e.requiredContainer=_n;var Um={scope:X.BLOCK,whitelist:["rtl"]},Sp=new Lr("direction","dir",Um),jm=new Ie("direction","ql-direction",Um),Ep=new Kr("direction","direction",Um);var Dz={scope:X.INLINE,whitelist:["serif","monospace"]},Wm=new Ie("font","ql-font",Dz),Gm=class extends Kr{value(o){return super.value(o).replace(/["']/g,"")}},Tp=new Gm("font","font-family",Dz);var Km=new Ie("size","ql-size",{scope:X.INLINE,whitelist:["small","large","huge"]}),$p=new Kr("size","font-size",{scope:X.INLINE,whitelist:["10px","18px","32px"]});var _r=ur(Ur(),1);var VT=lo("quill:keyboard"),UT=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",Yl=class i extends oe{static match(o,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(r=>!!t[r]!==o[r]&&t[r]!==null)?!1:t.key===o.key||t.key===o.which}constructor(o,t){super(o,t),this.bindings={},Object.keys(this.options.bindings).forEach(r=>{this.options.bindings[r]&&this.addBinding(this.options.bindings[r])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=GT(o);if(n==null){VT.warn("Attempted to add invalid keyboard binding",n);return}typeof t=="function"&&(t={handler:t}),typeof r=="function"&&(r={handler:r}),(Array.isArray(n.key)?n.key:[n.key]).forEach(s=>{let l={...n,key:s,...t,...r};this.bindings[l.key]=this.bindings[l.key]||[],this.bindings[l.key].push(l)})}listen(){this.quill.root.addEventListener("keydown",o=>{if(o.defaultPrevented||o.isComposing||o.keyCode===229&&(o.key==="Enter"||o.key==="Backspace"))return;let n=(this.bindings[o.key]||[]).concat(this.bindings[o.which]||[]).filter(k=>i.match(o,k));if(n.length===0)return;let a=j.find(o.target,!0);if(a&&a.scroll!==this.quill.scroll)return;let s=this.quill.getSelection();if(s==null||!this.quill.hasFocus())return;let[l,d]=this.quill.getLine(s.index),[h,m]=this.quill.getLeaf(s.index),[f,b]=s.length===0?[h,m]:this.quill.getLeaf(s.index+s.length),g=h instanceof Es?h.value().slice(0,m):"",v=f instanceof Es?f.value().slice(b):"",x={collapsed:s.length===0,empty:s.length===0&&l.length()<=1,format:this.quill.getFormat(s),line:l,offset:d,prefix:g,suffix:v,event:o};n.some(k=>{if(k.collapsed!=null&&k.collapsed!==x.collapsed||k.empty!=null&&k.empty!==x.empty||k.offset!=null&&k.offset!==x.offset)return!1;if(Array.isArray(k.format)){if(k.format.every(N=>x.format[N]==null))return!1}else if(typeof k.format=="object"&&!Object.keys(k.format).every(N=>k.format[N]===!0?x.format[N]!=null:k.format[N]===!1?x.format[N]==null:ya(k.format[N],x.format[N])))return!1;return k.prefix!=null&&!k.prefix.test(x.prefix)||k.suffix!=null&&!k.suffix.test(x.suffix)?!1:k.handler.call(this,s,x,k)!==!0})&&o.preventDefault()})}handleBackspace(o,t){let r=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(o.index===0||this.quill.getLength()<=1)return;let n={},[a]=this.quill.getLine(o.index),s=new _r.default().retain(o.index-r).delete(r);if(t.offset===0){let[l]=this.quill.getLine(o.index-1);if(l&&!(l.statics.blotName==="block"&&l.length()<=1)){let h=a.formats(),m=this.quill.getFormat(o.index-1,1);if(n=_r.AttributeMap.diff(h,m)||{},Object.keys(n).length>0){let f=new _r.default().retain(o.index+a.length()-2).retain(1,n);s=s.compose(f)}}}this.quill.updateContents(s,j.sources.USER),this.quill.focus()}handleDelete(o,t){let r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(o.index>=this.quill.getLength()-r)return;let n={},[a]=this.quill.getLine(o.index),s=new _r.default().retain(o.index).delete(r);if(t.offset>=a.length()-1){let[l]=this.quill.getLine(o.index+1);if(l){let d=a.formats(),h=this.quill.getFormat(o.index,1);n=_r.AttributeMap.diff(d,h)||{},Object.keys(n).length>0&&(s=s.retain(l.length()-1).retain(1,n))}}this.quill.updateContents(s,j.sources.USER),this.quill.focus()}handleDeleteRange(o){Xl({range:o,quill:this.quill}),this.quill.focus()}handleEnter(o,t){let r=Object.keys(t.format).reduce((a,s)=>(this.quill.scroll.query(s,X.BLOCK)&&!Array.isArray(t.format[s])&&(a[s]=t.format[s]),a),{}),n=new _r.default().retain(o.index).delete(o.length).insert(`
|
|
2641
2643
|
`,r);this.quill.updateContents(n,j.sources.USER),this.quill.setSelection(o.index+1,j.sources.SILENT),this.quill.focus()}},jT={bindings:{bold:Ym("bold"),italic:Ym("italic"),underline:Ym("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(i,o){return o.collapsed&&o.offset!==0?!0:(this.quill.format("indent","+1",j.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(i,o){return o.collapsed&&o.offset!==0?!0:(this.quill.format("indent","-1",j.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(i,o){o.format.indent!=null?this.quill.format("indent","-1",j.sources.USER):o.format.list!=null&&this.quill.format("list",!1,j.sources.USER)}},"indent code-block":Nz(!0),"outdent code-block":Nz(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(i){this.quill.deleteText(i.index-1,1,j.sources.USER)}},tab:{key:"Tab",handler(i,o){if(o.format.table)return!0;this.quill.history.cutoff();let t=new _r.default().retain(i.index).delete(i.length).insert(" ");return this.quill.updateContents(t,j.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(i.index+1,j.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,j.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(i,o){let t={list:!1};o.format.indent&&(t.indent=!1),this.quill.formatLine(i.index,i.length,t,j.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(i){let[o,t]=this.quill.getLine(i.index),r={...o.formats(),list:"checked"},n=new _r.default().retain(i.index).insert(`
|
|
2642
2644
|
`,r).retain(o.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(n,j.sources.USER),this.quill.setSelection(i.index+1,j.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(i,o){let[t,r]=this.quill.getLine(i.index),n=new _r.default().retain(i.index).insert(`
|
|
2643
2645
|
`,o.format).retain(t.length()-r-1).retain(1,{header:null});this.quill.updateContents(n,j.sources.USER),this.quill.setSelection(i.index+1,j.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(i){let o=this.quill.getModule("table");if(o){let[t,r,n,a]=o.getTable(i),s=WT(t,r,n,a);if(s==null)return;let l=t.offset();if(s<0){let d=new _r.default().retain(l).insert(`
|
|
2644
2646
|
`);this.quill.updateContents(d,j.sources.USER),this.quill.setSelection(i.index+1,i.length,j.sources.SILENT)}else if(s>0){l+=t.length();let d=new _r.default().retain(l).insert(`
|
|
2645
2647
|
`);this.quill.updateContents(d,j.sources.USER),this.quill.setSelection(l,j.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(i,o){let{event:t,line:r}=o,n=r.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(n-1,j.sources.USER):this.quill.setSelection(n+r.length(),j.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(i,o){if(this.quill.scroll.query("list")==null)return!0;let{length:t}=o.prefix,[r,n]=this.quill.getLine(i.index);if(n>t)return!0;let a;switch(o.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(i.index," ",j.sources.USER),this.quill.history.cutoff();let s=new _r.default().retain(i.index-n).delete(t+1).retain(r.length()-2-n).retain(1,{list:a});return this.quill.updateContents(s,j.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(i.index-t,j.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(i){let[o,t]=this.quill.getLine(i.index),r=2,n=o;for(;n!=null&&n.length()<=1&&n.formats()["code-block"];)if(n=n.prev,r-=1,r<=0){let a=new _r.default().retain(i.index+o.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,j.sources.USER),this.quill.setSelection(i.index-1,j.sources.SILENT),!1}return!0}},"embed left":Ap("ArrowLeft",!1),"embed left shift":Ap("ArrowLeft",!0),"embed right":Ap("ArrowRight",!1),"embed right shift":Ap("ArrowRight",!0),"table down":Rz(!1),"table up":Rz(!0)}};Yl.DEFAULTS=jT;function Nz(i){return{key:"Tab",shiftKey:!i,format:{"code-block":!0},handler(o,t){let{event:r}=t,n=this.quill.scroll.query("code-block"),{TAB:a}=n;if(o.length===0&&!r.shiftKey){this.quill.insertText(o.index,a,j.sources.USER),this.quill.setSelection(o.index+a.length,j.sources.SILENT);return}let s=o.length===0?this.quill.getLines(o.index,1):this.quill.getLines(o),{index:l,length:d}=o;s.forEach((h,m)=>{i?(h.insertAt(0,a),m===0?l+=a.length:d+=a.length):h.domNode.textContent.startsWith(a)&&(h.deleteAt(0,a.length),m===0?l-=a.length:d-=a.length)}),this.quill.update(j.sources.USER),this.quill.setSelection(l,d,j.sources.SILENT)}}}function Ap(i,o){return{key:i,shiftKey:o,altKey:null,[i==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(r){let{index:n}=r;i==="ArrowRight"&&(n+=r.length+1);let[a]=this.quill.getLeaf(n);return a instanceof pe?(i==="ArrowLeft"?o?this.quill.setSelection(r.index-1,r.length+1,j.sources.USER):this.quill.setSelection(r.index-1,j.sources.USER):o?this.quill.setSelection(r.index,r.length+1,j.sources.USER):this.quill.setSelection(r.index+r.length+1,j.sources.USER),!1):!0}}}function Ym(i){return{key:i[0],shortKey:!0,handler(o,t){this.quill.format(i,!t.format[i],j.sources.USER)}}}function Rz(i){return{key:i?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(o,t){let r=i?"prev":"next",n=t.line,a=n.parent[r];if(a!=null){if(a.statics.blotName==="table-row"){let s=a.children.head,l=n;for(;l.prev!=null;)l=l.prev,s=s.next;let d=s.offset(this.quill.scroll)+Math.min(t.offset,s.length()-1);this.quill.setSelection(d,0,j.sources.USER)}}else{let s=n.table()[r];s!=null&&(i?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,j.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,j.sources.USER))}return!1}}}function GT(i){if(typeof i=="string"||typeof i=="number")i={key:i};else if(typeof i=="object")i=zn(i);else return null;return i.shortKey&&(i[UT]=i.shortKey,delete i.shortKey),i}function Xl(i){let{quill:o,range:t}=i,r=o.getLines(t),n={};if(r.length>1){let a=r[0].formats(),s=r[r.length-1].formats();n=_r.AttributeMap.diff(s,a)||{}}o.deleteText(t,j.sources.USER),Object.keys(n).length>0&&o.formatLine(t.index,1,n,j.sources.USER),o.setSelection(t.index,j.sources.SILENT)}function WT(i,o,t,r){return o.prev==null&&o.next==null?t.prev==null&&t.next==null?r===0?-1:1:t.prev==null?-1:1:o.prev==null?-1:o.next==null?1:null}var KT=/font-weight:\s*normal/,YT=["P","OL","UL"],Oz=i=>i&&YT.includes(i.tagName),XT=i=>{Array.from(i.querySelectorAll("br")).filter(o=>Oz(o.previousElementSibling)&&Oz(o.nextElementSibling)).forEach(o=>{o.parentNode?.removeChild(o)})},QT=i=>{Array.from(i.querySelectorAll('b[style*="font-weight"]')).filter(o=>o.getAttribute("style")?.match(KT)).forEach(o=>{let t=i.createDocumentFragment();t.append(...o.childNodes),o.parentNode?.replaceChild(t,o)})};function Xm(i){i.querySelector('[id^="docs-internal-guid-"]')&&(QT(i),XT(i))}var JT=/\bmso-list:[^;]*ignore/i,ZT=/\bmso-list:[^;]*\bl(\d+)/i,t$=/\bmso-list:[^;]*\blevel(\d+)/i,e$=(i,o)=>{let t=i.getAttribute("style"),r=t?.match(ZT);if(!r)return null;let n=Number(r[1]),a=t?.match(t$),s=a?Number(a[1]):1,l=new RegExp(`@list l${n}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),d=o.match(l),h=d&&d[1]==="bullet"?"bullet":"ordered";return{id:n,indent:s,type:h,element:i}},r$=i=>{let o=Array.from(i.querySelectorAll("[style*=mso-list]")),t=[],r=[];o.forEach(s=>{(s.getAttribute("style")||"").match(JT)?t.push(s):r.push(s)}),t.forEach(s=>s.parentNode?.removeChild(s));let n=i.documentElement.innerHTML,a=r.map(s=>e$(s,n)).filter(s=>s);for(;a.length;){let s=[],l=a.shift();for(;l;)s.push(l),l=a.length&&a[0]?.element===l.element.nextElementSibling&&a[0].id===l.id?a.shift():null;let d=document.createElement("ul");s.forEach(f=>{let b=document.createElement("li");b.setAttribute("data-list",f.type),f.indent>1&&b.setAttribute("class",`ql-indent-${f.indent-1}`),b.innerHTML=f.element.innerHTML,d.appendChild(b)});let h=s[0]?.element,{parentNode:m}=h??{};h&&m?.replaceChild(d,h),s.slice(1).forEach(f=>{let{element:b}=f;m?.removeChild(b)})}};function Qm(i){i.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&r$(i)}var o$=[Qm,Xm],n$=i=>{i.documentElement&&o$.forEach(o=>{o(i)})},Pz=n$;var i$=lo("quill:clipboard"),a$=[[Node.TEXT_NODE,v$],[Node.TEXT_NODE,Fz],["br",p$],[Node.ELEMENT_NODE,Fz],[Node.ELEMENT_NODE,d$],[Node.ELEMENT_NODE,c$],[Node.ELEMENT_NODE,g$],["li",m$],["ol, ul",f$],["pre",h$],["tr",b$],["b",Jm("bold")],["i",Jm("italic")],["strike",Jm("strike")],["style",u$]],s$=[Mz,Sp].reduce((i,o)=>(i[o.keyName]=o,i),{}),Hz=[Cp,Kl,Wl,Ep,Tp,$p].reduce((i,o)=>(i[o.keyName]=o,i),{}),Ql=class extends oe{constructor(o,t){super(o,t),this.quill.root.addEventListener("copy",r=>this.onCaptureCopy(r,!1)),this.quill.root.addEventListener("cut",r=>this.onCaptureCopy(r,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],a$.concat(this.options.matchers??[]).forEach(r=>{let[n,a]=r;this.addMatcher(n,a)})}addMatcher(o,t){this.matchers.push([o,t])}convert(o){let{html:t,text:r}=o,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(n[$e.blotName])return new Xr.default().insert(r||"",{[$e.blotName]:n[$e.blotName]});if(!t)return new Xr.default().insert(r||"",n);let a=this.convertHTML(t);return Jl(a,`
|
|
2646
2648
|
`)&&(a.ops[a.ops.length-1].attributes==null||n.table)?a.compose(new Xr.default().retain(a.length()-1).delete(1)):a}normalizeHTML(o){Pz(o)}convertHTML(o){let t=new DOMParser().parseFromString(o,"text/html");this.normalizeHTML(t);let r=t.body,n=new WeakMap,[a,s]=this.prepareMatching(r,n);return Mp(this.quill.scroll,r,a,s,n)}dangerouslyPasteHTML(o,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:j.sources.API;if(typeof o=="string"){let n=this.convert({html:o,text:""});this.quill.setContents(n,t),this.quill.setSelection(0,j.sources.SILENT)}else{let n=this.convert({html:t,text:""});this.quill.updateContents(new Xr.default().retain(o).concat(n),r),this.quill.setSelection(o+n.length(),j.sources.SILENT)}}onCaptureCopy(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o.defaultPrevented)return;o.preventDefault();let[r]=this.quill.selection.getRange();if(r==null)return;let{html:n,text:a}=this.onCopy(r,t);o.clipboardData?.setData("text/plain",a),o.clipboardData?.setData("text/html",n),t&&Xl({range:r,quill:this.quill})}normalizeURIList(o){return o.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
|
|
2647
|
-
`)}onCapturePaste(o){if(o.defaultPrevented||!this.quill.isEnabled())return;o.preventDefault();let t=this.quill.getSelection(!0);if(t==null)return;let r=o.clipboardData?.getData("text/html"),n=o.clipboardData?.getData("text/plain");if(!r&&!n){let s=o.clipboardData?.getData("text/uri-list");s&&(n=this.normalizeURIList(s))}let a=Array.from(o.clipboardData?.files||[]);if(!r&&a.length>0){this.quill.uploader.upload(t,a);return}if(r&&a.length>0){let s=new DOMParser().parseFromString(r,"text/html");if(s.body.childElementCount===1&&s.body.firstElementChild?.tagName==="IMG"){this.quill.uploader.upload(t,a);return}}this.onPaste(t,{html:r,text:n})}onCopy(o){let t=this.quill.getText(o);return{html:this.quill.getSemanticHTML(o),text:t}}onPaste(o,t){let{text:r,html:n}=t,a=this.quill.getFormat(o.index),s=this.convert({text:r,html:n},a);i$.log("onPaste",s,{text:r,html:n});let l=new Xr.default().retain(o.index).delete(o.length).concat(s);this.quill.updateContents(l,j.sources.USER),this.quill.setSelection(l.length()-o.length,j.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(o,t){let r=[],n=[];return this.matchers.forEach(a=>{let[s,l]=a;switch(s){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:r.push(l);break;default:Array.from(o.querySelectorAll(s)).forEach(d=>{t.has(d)?t.get(d)?.push(l):t.set(d,[l])});break}}),[r,n]}};B(Ql,"DEFAULTS",{matchers:[]});function _a(i,o,t,r){return r.query(o)?i.reduce((n,a)=>{if(!a.insert)return n;if(a.attributes&&a.attributes[o])return n.push(a);let s=t?{[o]:t}:{};return n.insert(a.insert,{...s,...a.attributes})},new Xr.default):i}function Jl(i,o){let t="";for(let r=i.ops.length-1;r>=0&&t.length<o.length;--r){let n=i.ops[r];if(typeof n.insert!="string")break;t=n.insert+t}return t.slice(-1*o.length)===o}function Mi(i,o){if(!(i instanceof Element))return!1;let t=o.query(i);return t&&t.prototype instanceof pe?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(i.tagName.toLowerCase())}function l$(i,o){return i.previousElementSibling&&i.nextElementSibling&&!Mi(i.previousElementSibling,o)&&!Mi(i.nextElementSibling,o)}var Lp=new WeakMap;function Bz(i){return i==null?!1:(Lp.has(i)||(i.tagName==="PRE"?Lp.set(i,!0):Lp.set(i,Bz(i.parentNode))),Lp.get(i))}function Mp(i,o,t,r,n){return o.nodeType===o.TEXT_NODE?r.reduce((a,s)=>s(o,a,i),new Xr.default):o.nodeType===o.ELEMENT_NODE?Array.from(o.childNodes||[]).reduce((a,s)=>{let l=Mp(i,s,t,r,n);return s.nodeType===o.ELEMENT_NODE&&(l=t.reduce((d,h)=>h(s,d,i),l),l=(n.get(s)||[]).reduce((d,h)=>h(s,d,i),l)),a.concat(l)},new Xr.default):new Xr.default}function Jm(i){return(o,t,r)=>_a(t,i,!0,r)}function c$(i,o,t){let r=Lr.keys(i),n=
|
|
2649
|
+
`)}onCapturePaste(o){if(o.defaultPrevented||!this.quill.isEnabled())return;o.preventDefault();let t=this.quill.getSelection(!0);if(t==null)return;let r=o.clipboardData?.getData("text/html"),n=o.clipboardData?.getData("text/plain");if(!r&&!n){let s=o.clipboardData?.getData("text/uri-list");s&&(n=this.normalizeURIList(s))}let a=Array.from(o.clipboardData?.files||[]);if(!r&&a.length>0){this.quill.uploader.upload(t,a);return}if(r&&a.length>0){let s=new DOMParser().parseFromString(r,"text/html");if(s.body.childElementCount===1&&s.body.firstElementChild?.tagName==="IMG"){this.quill.uploader.upload(t,a);return}}this.onPaste(t,{html:r,text:n})}onCopy(o){let t=this.quill.getText(o);return{html:this.quill.getSemanticHTML(o),text:t}}onPaste(o,t){let{text:r,html:n}=t,a=this.quill.getFormat(o.index),s=this.convert({text:r,html:n},a);i$.log("onPaste",s,{text:r,html:n});let l=new Xr.default().retain(o.index).delete(o.length).concat(s);this.quill.updateContents(l,j.sources.USER),this.quill.setSelection(l.length()-o.length,j.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(o,t){let r=[],n=[];return this.matchers.forEach(a=>{let[s,l]=a;switch(s){case Node.TEXT_NODE:n.push(l);break;case Node.ELEMENT_NODE:r.push(l);break;default:Array.from(o.querySelectorAll(s)).forEach(d=>{t.has(d)?t.get(d)?.push(l):t.set(d,[l])});break}}),[r,n]}};B(Ql,"DEFAULTS",{matchers:[]});function _a(i,o,t,r){return r.query(o)?i.reduce((n,a)=>{if(!a.insert)return n;if(a.attributes&&a.attributes[o])return n.push(a);let s=t?{[o]:t}:{};return n.insert(a.insert,{...s,...a.attributes})},new Xr.default):i}function Jl(i,o){let t="";for(let r=i.ops.length-1;r>=0&&t.length<o.length;--r){let n=i.ops[r];if(typeof n.insert!="string")break;t=n.insert+t}return t.slice(-1*o.length)===o}function Mi(i,o){if(!(i instanceof Element))return!1;let t=o.query(i);return t&&t.prototype instanceof pe?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(i.tagName.toLowerCase())}function l$(i,o){return i.previousElementSibling&&i.nextElementSibling&&!Mi(i.previousElementSibling,o)&&!Mi(i.nextElementSibling,o)}var Lp=new WeakMap;function Bz(i){return i==null?!1:(Lp.has(i)||(i.tagName==="PRE"?Lp.set(i,!0):Lp.set(i,Bz(i.parentNode))),Lp.get(i))}function Mp(i,o,t,r,n){return o.nodeType===o.TEXT_NODE?r.reduce((a,s)=>s(o,a,i),new Xr.default):o.nodeType===o.ELEMENT_NODE?Array.from(o.childNodes||[]).reduce((a,s)=>{let l=Mp(i,s,t,r,n);return s.nodeType===o.ELEMENT_NODE&&(l=t.reduce((d,h)=>h(s,d,i),l),l=(n.get(s)||[]).reduce((d,h)=>h(s,d,i),l)),a.concat(l)},new Xr.default):new Xr.default}function Jm(i){return(o,t,r)=>_a(t,i,!0,r)}function c$(i,o,t){let r=Lr.keys(i),n=Ie.keys(i),a=Kr.keys(i),s={};return r.concat(n).concat(a).forEach(l=>{let d=t.query(l,X.ATTRIBUTE);d!=null&&(s[d.attrName]=d.value(i),s[d.attrName])||(d=s$[l],d!=null&&(d.attrName===l||d.keyName===l)&&(s[d.attrName]=d.value(i)||void 0),d=Hz[l],d!=null&&(d.attrName===l||d.keyName===l)&&(d=Hz[l],s[d.attrName]=d.value(i)||void 0))}),Object.entries(s).reduce((l,d)=>{let[h,m]=d;return _a(l,h,m,t)},o)}function d$(i,o,t){let r=t.query(i);if(r==null)return o;if(r.prototype instanceof pe){let n={},a=r.value(i);if(a!=null)return n[r.blotName]=a,new Xr.default().insert(n,r.formats(i,t))}else if(r.prototype instanceof za&&!Jl(o,`
|
|
2648
2650
|
`)&&o.insert(`
|
|
2649
2651
|
`),"blotName"in r&&"formats"in r&&typeof r.formats=="function")return _a(o,r.blotName,r.formats(i,t),t);return o}function p$(i,o){return Jl(o,`
|
|
2650
2652
|
`)||o.insert(`
|
|
@@ -2655,7 +2657,7 @@ ${wa(this.code(o,t))}
|
|
|
2655
2657
|
`);let n=t.query(r);if(n&&n.prototype instanceof Ue)return o.insert(`
|
|
2656
2658
|
`);r=r.firstChild}}}return o}function g$(i,o,t){let r={},n=i.style||{};return n.fontStyle==="italic"&&(r.italic=!0),n.textDecoration==="underline"&&(r.underline=!0),n.textDecoration==="line-through"&&(r.strike=!0),(n.fontWeight?.startsWith("bold")||parseInt(n.fontWeight,10)>=700)&&(r.bold=!0),o=Object.entries(r).reduce((a,s)=>{let[l,d]=s;return _a(a,l,d,t)},o),parseFloat(n.textIndent||0)>0?new Xr.default().insert(" ").concat(o):o}function b$(i,o,t){let r=i.parentElement?.tagName==="TABLE"?i.parentElement:i.parentElement?.parentElement;if(r!=null){let a=Array.from(r.querySelectorAll("tr")).indexOf(i)+1;return _a(o,"table",a,t)}return o}function v$(i,o,t){let r=i.data;if(i.parentElement?.tagName==="O:P")return o.insert(r.trim());if(!Bz(i)){if(r.trim().length===0&&r.includes(`
|
|
2657
2659
|
`)&&!l$(i,t))return o;r=r.replace(/[^\S\u00a0]/g," "),r=r.replace(/ {2,}/g," "),(i.previousSibling==null&&i.parentElement!=null&&Mi(i.parentElement,t)||i.previousSibling instanceof Element&&Mi(i.previousSibling,t))&&(r=r.replace(/^ /,"")),(i.nextSibling==null&&i.parentElement!=null&&Mi(i.parentElement,t)||i.nextSibling instanceof Element&&Mi(i.nextSibling,t))&&(r=r.replace(/ $/,"")),r=r.replaceAll("\xA0"," ")}return o.insert(r)}var Zl=class extends oe{constructor(t,r){super(t,r);B(this,"lastRecorded",0);B(this,"ignoreChange",!1);B(this,"stack",{undo:[],redo:[]});B(this,"currentRange",null);this.quill.on(j.events.EDITOR_CHANGE,(n,a,s,l)=>{n===j.events.SELECTION_CHANGE?a&&l!==j.sources.SILENT&&(this.currentRange=a):n===j.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||l===j.sources.USER?this.record(a,s):this.transform(a)),this.currentRange=Zm(this.currentRange,a))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",n=>{n.inputType==="historyUndo"?(this.undo(),n.preventDefault()):n.inputType==="historyRedo"&&(this.redo(),n.preventDefault())})}change(t,r){if(this.stack[t].length===0)return;let n=this.stack[t].pop();if(!n)return;let a=this.quill.getContents(),s=n.delta.invert(a);this.stack[r].push({delta:s,range:Zm(n.range,s)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n.delta,j.sources.USER),this.ignoreChange=!1,this.restoreSelection(n)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,r){if(t.ops.length===0)return;this.stack.redo=[];let n=t.invert(r),a=this.currentRange,s=Date.now();if(this.lastRecorded+this.options.delay>s&&this.stack.undo.length>0){let l=this.stack.undo.pop();l&&(n=n.compose(l.delta),a=l.range)}else this.lastRecorded=s;n.length()!==0&&(this.stack.undo.push({delta:n,range:a}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Vz(this.stack.undo,t),Vz(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,j.sources.USER);else{let r=y$(this.quill.scroll,t.delta);this.quill.setSelection(r,j.sources.USER)}}};B(Zl,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Vz(i,o){let t=o;for(let r=i.length-1;r>=0;r-=1){let n=i[r];i[r]={delta:t.transform(n.delta,!0),range:n.range&&Zm(n.range,t)},t=n.delta.transform(t),i[r].delta.length()===0&&i.splice(r,1)}}function x$(i,o){let t=o.ops[o.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
|
|
2658
|
-
`):t.attributes!=null?Object.keys(t.attributes).some(r=>i.query(r,X.BLOCK)!=null):!1}function y$(i,o){let t=o.reduce((n,a)=>n+(a.delete||0),0),r=o.length()-t;return x$(i,o)&&(r-=1),r}function Zm(i,o){if(!i)return i;let t=o.transformPosition(i.index),r=o.transformPosition(i.index+i.length);return{index:t,length:r-t}}var Uz=ur(Ur(),1);var qp=class extends oe{constructor(o,t){super(o,t),o.root.addEventListener("drop",r=>{r.preventDefault();let n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){let s=document.caretPositionFromPoint(r.clientX,r.clientY);n=document.createRange(),n.setStart(s.offsetNode,s.offset),n.setEnd(s.offsetNode,s.offset)}let a=n&&o.selection.normalizeNative(n);if(a){let s=o.selection.normalizedToRange(a);r.dataTransfer?.files&&this.upload(s,r.dataTransfer.files)}})}upload(o,t){let r=[];Array.from(t).forEach(n=>{n&&this.options.mimetypes?.includes(n.type)&&r.push(n)}),r.length>0&&this.options.handler.call(this,o,r)}};qp.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(i,o){if(!this.quill.scroll.query("image"))return;let t=o.map(r=>new Promise(n=>{let a=new FileReader;a.onload=()=>{n(a.result)},a.readAsDataURL(r)}));Promise.all(t).then(r=>{let n=r.reduce((a,s)=>a.insert({image:s}),new Uz.default().retain(i.index).delete(i.length));this.quill.updateContents(n,J.sources.USER),this.quill.setSelection(i.index+r.length,J.sources.SILENT)})}};var jz=qp;var qi=ur(Ur(),1);var Gz=ur(Ur(),1);var z$=["insertText","insertReplacementText"],tf=class extends oe{constructor(o,t){super(o,t),o.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||o.on(j.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(o){Xl({range:o,quill:this.quill})}replaceText(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(o.length===0)return!1;if(t){let r=this.quill.getFormat(o.index,1);this.deleteRange(o),this.quill.updateContents(new Gz.default().retain(o.index).insert(t,r),j.sources.USER)}else this.deleteRange(o);return this.quill.setSelection(o.index+t.length,0,j.sources.SILENT),!0}handleBeforeInput(o){if(this.quill.composition.isComposing||o.defaultPrevented||!z$.includes(o.inputType))return;let t=o.getTargetRanges?o.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;let r=w$(o);if(r==null)return;let n=this.quill.selection.normalizeNative(t),a=n?this.quill.selection.normalizedToRange(n):null;a&&this.replaceText(a,r)&&o.preventDefault()}handleCompositionStart(){let o=this.quill.getSelection();o&&this.replaceText(o)}};function w$(i){return typeof i.data=="string"?i.data:i.dataTransfer?.types.includes("text/plain")?i.dataTransfer.getData("text/plain"):null}var Wz=tf;var _$=/Mac/i.test(navigator.platform),k$=100,C$=i=>!!(i.key==="ArrowLeft"||i.key==="ArrowRight"||i.key==="ArrowUp"||i.key==="ArrowDown"||i.key==="Home"||_$&&i.key==="a"&&i.ctrlKey===!0),ef=class extends oe{constructor(t,r){super(t,r);B(this,"isListening",!1);B(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,r){let{line:n,event:a}=r;if(!(n instanceof Wr)||!n.uiNode)return!0;let s=getComputedStyle(n.domNode).direction==="rtl";return s&&a.key!=="ArrowRight"||!s&&a.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(a.shiftKey?1:0),j.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&C$(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+k$,this.isListening)return;this.isListening=!0;let t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){let t=document.getSelection();if(!t)return;let r=t.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)return;let n=this.quill.scroll.find(r.startContainer);if(!(n instanceof Wr)||!n.uiNode)return;let a=document.createRange();a.setStartAfter(n.uiNode),a.setEndAfter(n.uiNode),t.removeAllRanges(),t.addRange(a)}},Kz=ef;j.register({"blots/block":Bt,"blots/block/embed":Ue,"blots/break":yr,"blots/container":So,"blots/cursor":$i,"blots/embed":$s,"blots/inline":zr,"blots/scroll":Lz,"blots/text":Te,"modules/clipboard":Ql,"modules/history":Zl,"modules/keyboard":Yl,"modules/uploader":jz,"modules/input":Wz,"modules/uiNode":Kz});var Ip=j;var rf=class extends qe{add(o,t){let r=0;if(t==="+1"||t==="-1"){let n=this.value(o)||0;r=t==="+1"?n+1:n-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(o),!0):super.add(o,r.toString())}canAdd(o,t){return super.canAdd(o,t)||super.canAdd(o,parseInt(t,10))}value(o){return parseInt(super.value(o),10)||void 0}},S$=new rf("indent","ql-indent",{scope:X.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),Yz=S$;var tc=class extends Bt{};B(tc,"blotName","blockquote"),B(tc,"tagName","blockquote");var Xz=tc;var ec=class extends Bt{static formats(o){return this.tagName.indexOf(o.tagName)+1}};B(ec,"blotName","header"),B(ec,"tagName",["H1","H2","H3","H4","H5","H6"]);var Qz=ec;var ka=class extends So{};ka.blotName="list-container";ka.tagName="OL";var Ii=class extends Bt{static create(o){let t=super.create();return t.setAttribute("data-list",o),t}static formats(o){return o.getAttribute("data-list")||void 0}static register(){j.register(ka)}constructor(o,t){super(o,t);let r=t.ownerDocument.createElement("span"),n=a=>{if(!o.isEnabled())return;let s=this.statics.formats(t,o);s==="checked"?(this.format("list","unchecked"),a.preventDefault()):s==="unchecked"&&(this.format("list","checked"),a.preventDefault())};r.addEventListener("mousedown",n),r.addEventListener("touchstart",n),this.attachUI(r)}format(o,t){o===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(o,t)}};Ii.blotName="list";Ii.tagName="LI";ka.allowedChildren=[Ii];Ii.requiredContainer=ka;var rc=class extends zr{static create(){return super.create()}static formats(){return!0}optimize(o){super.optimize(o),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}};B(rc,"blotName","bold"),B(rc,"tagName",["STRONG","B"]);var qs=rc;var oc=class extends qs{};B(oc,"blotName","italic"),B(oc,"tagName",["EM","I"]);var Jz=oc;var co=class extends zr{static create(o){let t=super.create(o);return t.setAttribute("href",this.sanitize(o)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(o){return o.getAttribute("href")}static sanitize(o){return of(o,this.PROTOCOL_WHITELIST)?o:this.SANITIZED_URL}format(o,t){o!==this.statics.blotName||!t?super.format(o,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}};B(co,"blotName","link"),B(co,"tagName","A"),B(co,"SANITIZED_URL","about:blank"),B(co,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function of(i,o){let t=document.createElement("a");t.href=i;let r=t.href.slice(0,t.href.indexOf(":"));return o.indexOf(r)>-1}var nc=class extends zr{static create(o){return o==="super"?document.createElement("sup"):o==="sub"?document.createElement("sub"):super.create(o)}static formats(o){if(o.tagName==="SUB")return"sub";if(o.tagName==="SUP")return"super"}};B(nc,"blotName","script"),B(nc,"tagName",["SUB","SUP"]);var Zz=nc;var ic=class extends qs{};B(ic,"blotName","strike"),B(ic,"tagName",["S","STRIKE"]);var tw=ic;var ac=class extends zr{};B(ac,"blotName","underline"),B(ac,"tagName","U");var ew=ac;var Is=class extends $s{static create(o){if(window.katex==null)throw new Error("Formula module requires KaTeX.");let t=super.create(o);return typeof o=="string"&&(window.katex.render(o,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",o)),t}static value(o){return o.getAttribute("data-value")}html(){let{formula:o}=this.value();return`<span>${o}</span>`}};B(Is,"blotName","formula"),B(Is,"className","ql-formula"),B(Is,"tagName","SPAN");var rw=Is;var ow=["alt","height","width"],sc=class extends pe{static create(o){let t=super.create(o);return typeof o=="string"&&t.setAttribute("src",this.sanitize(o)),t}static formats(o){return ow.reduce((t,r)=>(o.hasAttribute(r)&&(t[r]=o.getAttribute(r)),t),{})}static match(o){return/\.(jpe?g|gif|png)$/.test(o)||/^data:image\/.+;base64/.test(o)}static sanitize(o){return of(o,["http","https","data"])?o:"//:0"}static value(o){return o.getAttribute("src")}format(o,t){ow.indexOf(o)>-1?t?this.domNode.setAttribute(o,t):this.domNode.removeAttribute(o):super.format(o,t)}};B(sc,"blotName","image"),B(sc,"tagName","IMG");var nw=sc;var iw=["height","width"],Ds=class extends Ue{static create(o){let t=super.create(o);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(o)),t}static formats(o){return iw.reduce((t,r)=>(o.hasAttribute(r)&&(t[r]=o.getAttribute(r)),t),{})}static sanitize(o){return co.sanitize(o)}static value(o){return o.getAttribute("src")}format(o,t){iw.indexOf(o)>-1?t?this.domNode.setAttribute(o,t):this.domNode.removeAttribute(o):super.format(o,t)}html(){let{video:o}=this.value();return`<a href="${o}">${o}</a>`}};B(Ds,"blotName","video"),B(Ds,"className","ql-video"),B(Ds,"tagName","IFRAME");var aw=Ds;var Dp=ur(Ur(),1);var lc=new qe("code-token","hljs",{scope:X.INLINE}),Qn=class i extends zr{static formats(o,t){for(;o!=null&&o!==t.domNode;){if(o.classList&&o.classList.contains($e.className))return super.formats(o,t);o=o.parentNode}}constructor(o,t,r){super(o,t,r),lc.add(this.domNode,r)}format(o,t){o!==i.blotName?super.format(o,t):t?lc.add(this.domNode,t):(lc.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),lc.value(this.domNode)||this.unwrap()}};Qn.blotName="code-token";Qn.className="ql-token";var Qr=class extends $e{static create(o){let t=super.create(o);return typeof o=="string"&&t.setAttribute("data-language",o),t}static formats(o){return o.getAttribute("data-language")||"plain"}static register(){}format(o,t){o===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(o,t)}replaceWith(o,t){return this.formatAt(0,this.length(),Qn.blotName,!1),super.replaceWith(o,t)}},Ca=class extends _n{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(o,t){o===Qr.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(o,t)}))}formatAt(o,t,r,n){r===Qr.blotName&&(this.forceNext=!0),super.formatAt(o,t,r,n)}highlight(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;let n=`${Array.from(this.domNode.childNodes).filter(s=>s!==this.uiNode).map(s=>s.textContent).join(`
|
|
2660
|
+
`):t.attributes!=null?Object.keys(t.attributes).some(r=>i.query(r,X.BLOCK)!=null):!1}function y$(i,o){let t=o.reduce((n,a)=>n+(a.delete||0),0),r=o.length()-t;return x$(i,o)&&(r-=1),r}function Zm(i,o){if(!i)return i;let t=o.transformPosition(i.index),r=o.transformPosition(i.index+i.length);return{index:t,length:r-t}}var Uz=ur(Ur(),1);var qp=class extends oe{constructor(o,t){super(o,t),o.root.addEventListener("drop",r=>{r.preventDefault();let n=null;if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(r.clientX,r.clientY);else if(document.caretPositionFromPoint){let s=document.caretPositionFromPoint(r.clientX,r.clientY);n=document.createRange(),n.setStart(s.offsetNode,s.offset),n.setEnd(s.offsetNode,s.offset)}let a=n&&o.selection.normalizeNative(n);if(a){let s=o.selection.normalizedToRange(a);r.dataTransfer?.files&&this.upload(s,r.dataTransfer.files)}})}upload(o,t){let r=[];Array.from(t).forEach(n=>{n&&this.options.mimetypes?.includes(n.type)&&r.push(n)}),r.length>0&&this.options.handler.call(this,o,r)}};qp.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(i,o){if(!this.quill.scroll.query("image"))return;let t=o.map(r=>new Promise(n=>{let a=new FileReader;a.onload=()=>{n(a.result)},a.readAsDataURL(r)}));Promise.all(t).then(r=>{let n=r.reduce((a,s)=>a.insert({image:s}),new Uz.default().retain(i.index).delete(i.length));this.quill.updateContents(n,J.sources.USER),this.quill.setSelection(i.index+r.length,J.sources.SILENT)})}};var jz=qp;var qi=ur(Ur(),1);var Gz=ur(Ur(),1);var z$=["insertText","insertReplacementText"],tf=class extends oe{constructor(o,t){super(o,t),o.root.addEventListener("beforeinput",r=>{this.handleBeforeInput(r)}),/Android/i.test(navigator.userAgent)||o.on(j.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(o){Xl({range:o,quill:this.quill})}replaceText(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(o.length===0)return!1;if(t){let r=this.quill.getFormat(o.index,1);this.deleteRange(o),this.quill.updateContents(new Gz.default().retain(o.index).insert(t,r),j.sources.USER)}else this.deleteRange(o);return this.quill.setSelection(o.index+t.length,0,j.sources.SILENT),!0}handleBeforeInput(o){if(this.quill.composition.isComposing||o.defaultPrevented||!z$.includes(o.inputType))return;let t=o.getTargetRanges?o.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;let r=w$(o);if(r==null)return;let n=this.quill.selection.normalizeNative(t),a=n?this.quill.selection.normalizedToRange(n):null;a&&this.replaceText(a,r)&&o.preventDefault()}handleCompositionStart(){let o=this.quill.getSelection();o&&this.replaceText(o)}};function w$(i){return typeof i.data=="string"?i.data:i.dataTransfer?.types.includes("text/plain")?i.dataTransfer.getData("text/plain"):null}var Wz=tf;var _$=/Mac/i.test(navigator.platform),k$=100,C$=i=>!!(i.key==="ArrowLeft"||i.key==="ArrowRight"||i.key==="ArrowUp"||i.key==="ArrowDown"||i.key==="Home"||_$&&i.key==="a"&&i.ctrlKey===!0),ef=class extends oe{constructor(t,r){super(t,r);B(this,"isListening",!1);B(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,r){let{line:n,event:a}=r;if(!(n instanceof Wr)||!n.uiNode)return!0;let s=getComputedStyle(n.domNode).direction==="rtl";return s&&a.key!=="ArrowRight"||!s&&a.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(a.shiftKey?1:0),j.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&C$(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+k$,this.isListening)return;this.isListening=!0;let t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){let t=document.getSelection();if(!t)return;let r=t.getRangeAt(0);if(r.collapsed!==!0||r.startOffset!==0)return;let n=this.quill.scroll.find(r.startContainer);if(!(n instanceof Wr)||!n.uiNode)return;let a=document.createRange();a.setStartAfter(n.uiNode),a.setEndAfter(n.uiNode),t.removeAllRanges(),t.addRange(a)}},Kz=ef;j.register({"blots/block":Vt,"blots/block/embed":Ue,"blots/break":yr,"blots/container":So,"blots/cursor":$i,"blots/embed":$s,"blots/inline":zr,"blots/scroll":Lz,"blots/text":Te,"modules/clipboard":Ql,"modules/history":Zl,"modules/keyboard":Yl,"modules/uploader":jz,"modules/input":Wz,"modules/uiNode":Kz});var Ip=j;var rf=class extends Ie{add(o,t){let r=0;if(t==="+1"||t==="-1"){let n=this.value(o)||0;r=t==="+1"?n+1:n-1}else typeof t=="number"&&(r=t);return r===0?(this.remove(o),!0):super.add(o,r.toString())}canAdd(o,t){return super.canAdd(o,t)||super.canAdd(o,parseInt(t,10))}value(o){return parseInt(super.value(o),10)||void 0}},S$=new rf("indent","ql-indent",{scope:X.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),Yz=S$;var tc=class extends Vt{};B(tc,"blotName","blockquote"),B(tc,"tagName","blockquote");var Xz=tc;var ec=class extends Vt{static formats(o){return this.tagName.indexOf(o.tagName)+1}};B(ec,"blotName","header"),B(ec,"tagName",["H1","H2","H3","H4","H5","H6"]);var Qz=ec;var ka=class extends So{};ka.blotName="list-container";ka.tagName="OL";var Ii=class extends Vt{static create(o){let t=super.create();return t.setAttribute("data-list",o),t}static formats(o){return o.getAttribute("data-list")||void 0}static register(){j.register(ka)}constructor(o,t){super(o,t);let r=t.ownerDocument.createElement("span"),n=a=>{if(!o.isEnabled())return;let s=this.statics.formats(t,o);s==="checked"?(this.format("list","unchecked"),a.preventDefault()):s==="unchecked"&&(this.format("list","checked"),a.preventDefault())};r.addEventListener("mousedown",n),r.addEventListener("touchstart",n),this.attachUI(r)}format(o,t){o===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(o,t)}};Ii.blotName="list";Ii.tagName="LI";ka.allowedChildren=[Ii];Ii.requiredContainer=ka;var rc=class extends zr{static create(){return super.create()}static formats(){return!0}optimize(o){super.optimize(o),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}};B(rc,"blotName","bold"),B(rc,"tagName",["STRONG","B"]);var qs=rc;var oc=class extends qs{};B(oc,"blotName","italic"),B(oc,"tagName",["EM","I"]);var Jz=oc;var co=class extends zr{static create(o){let t=super.create(o);return t.setAttribute("href",this.sanitize(o)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(o){return o.getAttribute("href")}static sanitize(o){return of(o,this.PROTOCOL_WHITELIST)?o:this.SANITIZED_URL}format(o,t){o!==this.statics.blotName||!t?super.format(o,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}};B(co,"blotName","link"),B(co,"tagName","A"),B(co,"SANITIZED_URL","about:blank"),B(co,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function of(i,o){let t=document.createElement("a");t.href=i;let r=t.href.slice(0,t.href.indexOf(":"));return o.indexOf(r)>-1}var nc=class extends zr{static create(o){return o==="super"?document.createElement("sup"):o==="sub"?document.createElement("sub"):super.create(o)}static formats(o){if(o.tagName==="SUB")return"sub";if(o.tagName==="SUP")return"super"}};B(nc,"blotName","script"),B(nc,"tagName",["SUB","SUP"]);var Zz=nc;var ic=class extends qs{};B(ic,"blotName","strike"),B(ic,"tagName",["S","STRIKE"]);var tw=ic;var ac=class extends zr{};B(ac,"blotName","underline"),B(ac,"tagName","U");var ew=ac;var Is=class extends $s{static create(o){if(window.katex==null)throw new Error("Formula module requires KaTeX.");let t=super.create(o);return typeof o=="string"&&(window.katex.render(o,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",o)),t}static value(o){return o.getAttribute("data-value")}html(){let{formula:o}=this.value();return`<span>${o}</span>`}};B(Is,"blotName","formula"),B(Is,"className","ql-formula"),B(Is,"tagName","SPAN");var rw=Is;var ow=["alt","height","width"],sc=class extends pe{static create(o){let t=super.create(o);return typeof o=="string"&&t.setAttribute("src",this.sanitize(o)),t}static formats(o){return ow.reduce((t,r)=>(o.hasAttribute(r)&&(t[r]=o.getAttribute(r)),t),{})}static match(o){return/\.(jpe?g|gif|png)$/.test(o)||/^data:image\/.+;base64/.test(o)}static sanitize(o){return of(o,["http","https","data"])?o:"//:0"}static value(o){return o.getAttribute("src")}format(o,t){ow.indexOf(o)>-1?t?this.domNode.setAttribute(o,t):this.domNode.removeAttribute(o):super.format(o,t)}};B(sc,"blotName","image"),B(sc,"tagName","IMG");var nw=sc;var iw=["height","width"],Ds=class extends Ue{static create(o){let t=super.create(o);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(o)),t}static formats(o){return iw.reduce((t,r)=>(o.hasAttribute(r)&&(t[r]=o.getAttribute(r)),t),{})}static sanitize(o){return co.sanitize(o)}static value(o){return o.getAttribute("src")}format(o,t){iw.indexOf(o)>-1?t?this.domNode.setAttribute(o,t):this.domNode.removeAttribute(o):super.format(o,t)}html(){let{video:o}=this.value();return`<a href="${o}">${o}</a>`}};B(Ds,"blotName","video"),B(Ds,"className","ql-video"),B(Ds,"tagName","IFRAME");var aw=Ds;var Dp=ur(Ur(),1);var lc=new Ie("code-token","hljs",{scope:X.INLINE}),Qn=class i extends zr{static formats(o,t){for(;o!=null&&o!==t.domNode;){if(o.classList&&o.classList.contains($e.className))return super.formats(o,t);o=o.parentNode}}constructor(o,t,r){super(o,t,r),lc.add(this.domNode,r)}format(o,t){o!==i.blotName?super.format(o,t):t?lc.add(this.domNode,t):(lc.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),lc.value(this.domNode)||this.unwrap()}};Qn.blotName="code-token";Qn.className="ql-token";var Qr=class extends $e{static create(o){let t=super.create(o);return typeof o=="string"&&t.setAttribute("data-language",o),t}static formats(o){return o.getAttribute("data-language")||"plain"}static register(){}format(o,t){o===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(o,t)}replaceWith(o,t){return this.formatAt(0,this.length(),Qn.blotName,!1),super.replaceWith(o,t)}},Ca=class extends _n{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(o,t){o===Qr.blotName&&(this.forceNext=!0,this.children.forEach(r=>{r.format(o,t)}))}formatAt(o,t,r,n){r===Qr.blotName&&(this.forceNext=!0),super.formatAt(o,t,r,n)}highlight(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;let n=`${Array.from(this.domNode.childNodes).filter(s=>s!==this.uiNode).map(s=>s.textContent).join(`
|
|
2659
2661
|
`)}
|
|
2660
2662
|
`,a=Qr.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==n){if(n.trim().length>0||this.cachedText==null){let s=this.children.reduce((d,h)=>d.concat(_m(h,!1)),new Dp.default),l=o(n,a);s.diff(l).reduce((d,h)=>{let{retain:m,attributes:f}=h;return m?(f&&Object.keys(f).forEach(b=>{[Qr.blotName,Qn.blotName].includes(b)&&this.formatAt(d,m,b,f[b])}),d+m):d},0)}this.cachedText=n,this.forceNext=!1}}html(o,t){let[r]=this.children.find(o);return`<pre data-language="${r?Qr.formats(r.domNode):"plain"}">
|
|
2661
2663
|
${wa(this.code(o,t))}
|
|
@@ -2663,7 +2665,7 @@ ${wa(this.code(o,t))}
|
|
|
2663
2665
|
`).reduce((n,a,s)=>(s!==0&&n.insert(`
|
|
2664
2666
|
`,{[$e.blotName]:t}),n.insert(a)),new Dp.default);let r=this.quill.root.ownerDocument.createElement("div");return r.classList.add($e.className),r.innerHTML=E$(this.options.hljs,t,o),Mp(this.quill.scroll,r,[(n,a)=>{let s=lc.value(n);return s?a.compose(new Dp.default().retain(a.length(),{[Qn.blotName]:s})):a}],[(n,a)=>n.data.split(`
|
|
2665
2667
|
`).reduce((s,l,d)=>(d!==0&&s.insert(`
|
|
2666
|
-
`,{[$e.blotName]:t}),s.insert(l)),a)],new WeakMap)}};cc.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};var sw=ur(Ur(),1);var dc=class dc extends
|
|
2668
|
+
`,{[$e.blotName]:t}),s.insert(l)),a)],new WeakMap)}};cc.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};var sw=ur(Ur(),1);var dc=class dc extends Vt{static create(o){let t=super.create();return o?t.setAttribute("data-row",o):t.setAttribute("data-row",Np()),t}static formats(o){if(o.hasAttribute("data-row"))return o.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(o,t){o===dc.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(o,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};B(dc,"blotName","table"),B(dc,"tagName","TD");var To=dc,$o=class extends So{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){let o=this.children.head.formats(),t=this.children.tail.formats(),r=this.next.children.head.formats(),n=this.next.children.tail.formats();return o.table===t.table&&o.table===r.table&&o.table===n.table}return!1}optimize(o){super.optimize(o),this.children.forEach(t=>{if(t.next==null)return;let r=t.formats(),n=t.next.formats();if(r.table!==n.table){let a=this.splitAfter(t);a&&a.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}};B($o,"blotName","table-row"),B($o,"tagName","TR");var po=class extends So{};B(po,"blotName","table-body"),B(po,"tagName","TBODY");var Jn=class extends So{balanceCells(){let o=this.descendants($o),t=o.reduce((r,n)=>Math.max(n.children.length,r),0);o.forEach(r=>{new Array(t-r.children.length).fill(0).forEach(()=>{let n;r.children.head!=null&&(n=To.formats(r.children.head.domNode));let a=this.scroll.create(To.blotName,n);r.appendChild(a),a.optimize()})})}cells(o){return this.rows().map(t=>t.children.at(o))}deleteColumn(o){let[t]=this.descendant(po);t==null||t.children.head==null||t.children.forEach(r=>{let n=r.children.at(o);n?.remove()})}insertColumn(o){let[t]=this.descendant(po);t==null||t.children.head==null||t.children.forEach(r=>{let n=r.children.at(o),a=To.formats(r.children.head.domNode),s=this.scroll.create(To.blotName,a);r.insertBefore(s,n)})}insertRow(o){let[t]=this.descendant(po);if(t==null||t.children.head==null)return;let r=Np(),n=this.scroll.create($o.blotName);t.children.head.children.forEach(()=>{let s=this.scroll.create(To.blotName,r);n.appendChild(s)});let a=t.children.at(o);t.insertBefore(n,a)}rows(){let o=this.children.head;return o==null?[]:o.children.map(t=>t)}};B(Jn,"blotName","table-container"),B(Jn,"tagName","TABLE");Jn.allowedChildren=[po];po.requiredContainer=Jn;po.allowedChildren=[$o];$o.requiredContainer=po;$o.allowedChildren=[To];To.requiredContainer=$o;function Np(){return`row-${Math.random().toString(36).slice(2,6)}`}var nf=class extends oe{static register(){j.register(To),j.register($o),j.register(po),j.register(Jn)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(Jn).forEach(o=>{o.balanceCells()})}deleteColumn(){let[o,,t]=this.getTable();t!=null&&(o.deleteColumn(t.cellOffset()),this.quill.update(j.sources.USER))}deleteRow(){let[,o]=this.getTable();o!=null&&(o.remove(),this.quill.update(j.sources.USER))}deleteTable(){let[o]=this.getTable();if(o==null)return;let t=o.offset();o.remove(),this.quill.update(j.sources.USER),this.quill.setSelection(t,j.sources.SILENT)}getTable(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(o==null)return[null,null,null,-1];let[t,r]=this.quill.getLine(o.index);if(t==null||t.statics.blotName!==To.blotName)return[null,null,null,-1];let n=t.parent;return[n.parent.parent,n,t,r]}insertColumn(o){let t=this.quill.getSelection();if(!t)return;let[r,n,a]=this.getTable(t);if(a==null)return;let s=a.cellOffset();r.insertColumn(s+o),this.quill.update(j.sources.USER);let l=n.rowOffset();o===0&&(l+=1),this.quill.setSelection(t.index+l,t.length,j.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(o){let t=this.quill.getSelection();if(!t)return;let[r,n,a]=this.getTable(t);if(a==null)return;let s=n.rowOffset();r.insertRow(s+o),this.quill.update(j.sources.USER),o>0?this.quill.setSelection(t,j.sources.SILENT):this.quill.setSelection(t.index+n.children.length,t.length,j.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(o,t){let r=this.quill.getSelection();if(r==null)return;let n=new Array(o).fill(0).reduce(a=>{let s=new Array(t).fill(`
|
|
2667
2669
|
`).join("");return a.insert(s,{table:Np()})},new sw.default().retain(r.index));this.quill.updateContents(n,j.sources.USER),this.quill.setSelection(r.index,j.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(j.events.SCROLL_OPTIMIZE,o=>{o.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(j.events.TEXT_CHANGE,(r,n,a)=>{a===j.sources.USER&&this.balanceTables()}),!0):!1)})}},lw=nf;var pw=ur(Ur(),1);var cw=lo("quill:toolbar"),Di=class extends oe{constructor(o,t){if(super(o,t),Array.isArray(this.options.container)){let r=document.createElement("div");r.setAttribute("role","toolbar"),T$(r,this.options.container),o.container?.parentNode?.insertBefore(r,o.container),this.container=r}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){cw.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(r=>{let n=this.options.handlers?.[r];n&&this.addHandler(r,n)}),Array.from(this.container.querySelectorAll("button, select")).forEach(r=>{this.attach(r)}),this.quill.on(j.events.EDITOR_CHANGE,()=>{let[r]=this.quill.selection.getRange();this.update(r)})}addHandler(o,t){this.handlers[o]=t}attach(o){let t=Array.from(o.classList).find(n=>n.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),o.tagName==="BUTTON"&&o.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){cw.warn("ignoring attaching to nonexistent format",t,o);return}let r=o.tagName==="SELECT"?"change":"click";o.addEventListener(r,n=>{let a;if(o.tagName==="SELECT"){if(o.selectedIndex<0)return;let l=o.options[o.selectedIndex];l.hasAttribute("selected")?a=!1:a=l.value||!1}else o.classList.contains("ql-active")?a=!1:a=o.value||!o.hasAttribute("value"),n.preventDefault();this.quill.focus();let[s]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,a);else if(this.quill.scroll.query(t).prototype instanceof pe){if(a=prompt(`Enter ${t}`),!a)return;this.quill.updateContents(new pw.default().retain(s.index).delete(s.length).insert({[t]:a}),j.sources.USER)}else this.quill.format(t,a,j.sources.USER);this.update(s)}),this.controls.push([t,o])}update(o){let t=o==null?{}:this.quill.getFormat(o);this.controls.forEach(r=>{let[n,a]=r;if(a.tagName==="SELECT"){let s=null;if(o==null)s=null;else if(t[n]==null)s=a.querySelector("option[selected]");else if(!Array.isArray(t[n])){let l=t[n];typeof l=="string"&&(l=l.replace(/"/g,'\\"')),s=a.querySelector(`option[value="${l}"]`)}s==null?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(o==null)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){let s=t[n],l=s===a.getAttribute("value")||s!=null&&s.toString()===a.getAttribute("value")||s==null&&!a.getAttribute("value");a.classList.toggle("ql-active",l),a.setAttribute("aria-pressed",l.toString())}else{let s=t[n]!=null;a.classList.toggle("ql-active",s),a.setAttribute("aria-pressed",s.toString())}})}};Di.DEFAULTS={};function dw(i,o,t){let r=document.createElement("button");r.setAttribute("type","button"),r.classList.add(`ql-${o}`),r.setAttribute("aria-pressed","false"),t!=null?(r.value=t,r.setAttribute("aria-label",`${o}: ${t}`)):r.setAttribute("aria-label",o),i.appendChild(r)}function T$(i,o){Array.isArray(o[0])||(o=[o]),o.forEach(t=>{let r=document.createElement("span");r.classList.add("ql-formats"),t.forEach(n=>{if(typeof n=="string")dw(r,n);else{let a=Object.keys(n)[0],s=n[a];Array.isArray(s)?$$(r,a,s):dw(r,a,s)}}),i.appendChild(r)})}function $$(i,o,t){let r=document.createElement("select");r.classList.add(`ql-${o}`),t.forEach(n=>{let a=document.createElement("option");n!==!1?a.setAttribute("value",String(n)):a.setAttribute("selected","selected"),r.appendChild(a)}),i.appendChild(r)}Di.DEFAULTS={container:null,handlers:{clean(){let i=this.quill.getSelection();if(i!=null)if(i.length===0){let o=this.quill.getFormat();Object.keys(o).forEach(t=>{this.quill.scroll.query(t,X.INLINE)!=null&&this.quill.format(t,!1,j.sources.USER)})}else this.quill.removeFormat(i.index,i.length,j.sources.USER)},direction(i){let{align:o}=this.quill.getFormat();i==="rtl"&&o==null?this.quill.format("align","right",j.sources.USER):!i&&o==="right"&&this.quill.format("align",!1,j.sources.USER),this.quill.format("direction",i,j.sources.USER)},indent(i){let o=this.quill.getSelection(),t=this.quill.getFormat(o),r=parseInt(t.indent||0,10);if(i==="+1"||i==="-1"){let n=i==="+1"?1:-1;t.direction==="rtl"&&(n*=-1),this.quill.format("indent",r+n,j.sources.USER)}},link(i){i===!0&&(i=prompt("Enter link URL:")),this.quill.format("link",i,j.sources.USER)},list(i){let o=this.quill.getSelection(),t=this.quill.getFormat(o);i==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,j.sources.USER):this.quill.format("list","unchecked",j.sources.USER):this.quill.format("list",i,j.sources.USER)}}};var A$='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',L$='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',M$='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',q$='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',I$='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',D$='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',N$='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',R$='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',hw='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',O$='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',P$='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',H$='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',F$='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',B$='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',V$='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',U$='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',j$='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',G$='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',W$='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',K$='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',Y$='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',X$='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',Q$='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',J$='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',Z$='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',tA='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',eA='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',rA='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',oA='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',nA='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',iA='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',aA='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',sA='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',Ni={align:{"":A$,center:L$,right:M$,justify:q$},background:I$,blockquote:D$,bold:N$,clean:R$,code:hw,"code-block":hw,color:O$,direction:{"":P$,rtl:H$},formula:F$,header:{1:B$,2:V$,3:U$,4:j$,5:G$,6:W$},italic:K$,image:Y$,indent:{"+1":X$,"-1":Q$},link:J$,list:{bullet:Z$,check:tA,ordered:eA},script:{sub:rA,super:oA},strike:nA,table:iA,underline:aA,video:sA};var lA='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>',uw=0;function mw(i,o){i.setAttribute(o,`${i.getAttribute(o)!=="true"}`)}var af=class{constructor(o){this.select=o,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break;default:}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),mw(this.label,"aria-expanded"),mw(this.options,"aria-hidden")}buildItem(o){let t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");let r=o.getAttribute("value");return r&&t.setAttribute("data-value",r),o.textContent&&t.setAttribute("data-label",o.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.selectItem(t,!0),n.preventDefault();break;case"Escape":this.escape(),n.preventDefault();break;default:}}),t}buildLabel(){let o=document.createElement("span");return o.classList.add("ql-picker-label"),o.innerHTML=lA,o.tabIndex="0",o.setAttribute("role","button"),o.setAttribute("aria-expanded","false"),this.container.appendChild(o),o}buildOptions(){let o=document.createElement("span");o.classList.add("ql-picker-options"),o.setAttribute("aria-hidden","true"),o.tabIndex="-1",o.id=`ql-picker-options-${uw}`,uw+=1,this.label.setAttribute("aria-controls",o.id),this.options=o,Array.from(this.select.options).forEach(t=>{let r=this.buildItem(t);o.appendChild(r),t.selected===!0&&this.selectItem(r)}),this.container.appendChild(o)}buildPicker(){Array.from(this.select.attributes).forEach(o=>{this.container.setAttribute(o.name,o.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.container.querySelector(".ql-selected");o!==r&&(r?.classList.remove("ql-selected"),o!=null&&(o.classList.add("ql-selected"),this.select.selectedIndex=Array.from(o.parentNode.children).indexOf(o),o.hasAttribute("data-value")?this.label.setAttribute("data-value",o.getAttribute("data-value")):this.label.removeAttribute("data-value"),o.hasAttribute("data-label")?this.label.setAttribute("data-label",o.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let o;if(this.select.selectedIndex>-1){let r=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];o=this.select.options[this.select.selectedIndex],this.selectItem(r)}else this.selectItem(null);let t=o!=null&&o!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}},Ri=af;var sf=class extends Ri{constructor(o,t){super(o),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(r=>{r.classList.add("ql-primary")})}buildItem(o){let t=super.buildItem(o);return t.style.backgroundColor=o.getAttribute("value")||"",t}selectItem(o,t){super.selectItem(o,t);let r=this.label.querySelector(".ql-color-label"),n=o&&o.getAttribute("data-value")||"";r&&(r.tagName==="line"?r.style.stroke=n:r.style.fill=n)}},Rp=sf;var lf=class extends Ri{constructor(o,t){super(o),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(r=>{r.innerHTML=t[r.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(o,t){super.selectItem(o,t);let r=o||this.defaultItem;if(r!=null){if(this.label.innerHTML===r.innerHTML)return;this.label.innerHTML=r.innerHTML}}},Op=lf;var cA=i=>{let{overflowY:o}=getComputedStyle(i,null);return o!=="visible"&&o!=="clip"},cf=class{constructor(o,t){this.quill=o,this.boundsContainer=t||document.body,this.root=o.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,cA(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(o){let t=o.left+o.width/2-this.root.offsetWidth/2,r=o.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${r}px`,this.root.classList.remove("ql-flip");let n=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect(),s=0;if(a.right>n.right&&(s=n.right-a.right,this.root.style.left=`${t+s}px`),a.left<n.left&&(s=n.left-a.left,this.root.style.left=`${t+s}px`),a.bottom>n.bottom){let l=a.bottom-a.top,d=o.bottom-o.top+l;this.root.style.top=`${r-d}px`,this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}},Pp=cf;var dA=[!1,"center","right","justify"],pA=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],hA=[!1,"serif","monospace"],uA=["1","2","3",!1],mA=["small",!1,"large","huge"],Zn=class extends As{constructor(o,t){super(o,t);let r=n=>{if(!document.body.contains(o.root)){document.body.removeEventListener("click",r);return}this.tooltip!=null&&!this.tooltip.root.contains(n.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(a=>{a.container.contains(n.target)||a.close()})};o.emitter.listenDOM("click",document.body,r)}addModule(o){let t=super.addModule(o);return o==="toolbar"&&this.extendToolbar(t),t}buildButtons(o,t){Array.from(o).forEach(r=>{(r.getAttribute("class")||"").split(/\s+/).forEach(a=>{if(a.startsWith("ql-")&&(a=a.slice(3),t[a]!=null))if(a==="direction")r.innerHTML=t[a][""]+t[a].rtl;else if(typeof t[a]=="string")r.innerHTML=t[a];else{let s=r.value||"";s!=null&&t[a][s]&&(r.innerHTML=t[a][s])}})})}buildPickers(o,t){this.pickers=Array.from(o).map(n=>{if(n.classList.contains("ql-align")&&(n.querySelector("option")==null&&pc(n,dA),typeof t.align=="object"))return new Op(n,t.align);if(n.classList.contains("ql-background")||n.classList.contains("ql-color")){let a=n.classList.contains("ql-background")?"background":"color";return n.querySelector("option")==null&&pc(n,pA,a==="background"?"#ffffff":"#000000"),new Rp(n,t[a])}return n.querySelector("option")==null&&(n.classList.contains("ql-font")?pc(n,hA):n.classList.contains("ql-header")?pc(n,uA):n.classList.contains("ql-size")&&pc(n,mA)),new Ri(n)});let r=()=>{this.pickers.forEach(n=>{n.update()})};this.quill.on(J.events.EDITOR_CHANGE,r)}};Zn.DEFAULTS=Gr({},As.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let i=this.container.querySelector("input.ql-image[type=file]");i==null&&(i=document.createElement("input"),i.setAttribute("type","file"),i.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),i.classList.add("ql-image"),i.addEventListener("change",()=>{let o=this.quill.getSelection(!0);this.quill.uploader.upload(o,i.files),i.value=""}),this.container.appendChild(i)),i.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});var Ns=class extends Pp{constructor(o,t){super(o,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",o=>{o.key==="Enter"?(this.save(),o.preventDefault()):o.key==="Escape"&&(this.cancel(),o.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:o!==this.root.getAttribute("data-mode")&&(this.textbox.value="");let r=this.quill.getBounds(this.quill.selection.savedRange);r!=null&&this.position(r),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${o}`)||""),this.root.setAttribute("data-mode",o)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:o}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{let{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",o,J.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",o,J.sources.USER)),this.quill.root.scrollTop=t;break}case"video":o=fA(o);case"formula":{if(!o)break;let t=this.quill.getSelection(!0);if(t!=null){let r=t.index+t.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),o,J.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(r+1," ",J.sources.USER),this.quill.setSelection(r+2,J.sources.USER)}break}default:}this.textbox.value="",this.hide()}};function fA(i){let o=i.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||i.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return o?`${o[1]||"https"}://www.youtube.com/embed/${o[2]}?showinfo=0`:(o=i.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${o[1]||"https"}://player.vimeo.com/video/${o[2]}/`:i}function pc(i,o){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;o.forEach(r=>{let n=document.createElement("option");r===t?n.setAttribute("selected","selected"):n.setAttribute("value",String(r)),i.appendChild(n)})}var gA=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],Hp=class extends Ns{constructor(o,t){super(o,t),this.quill.on(J.events.EDITOR_CHANGE,(r,n,a,s)=>{if(r===J.events.SELECTION_CHANGE)if(n!=null&&n.length>0&&s===J.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;let l=this.quill.getLines(n.index,n.length);if(l.length===1){let d=this.quill.getBounds(n);d!=null&&this.position(d)}else{let d=l[l.length-1],h=this.quill.getIndex(d),m=Math.min(d.length()-1,n.index+n.length-h),f=this.quill.getBounds(new qr(h,m));f!=null&&this.position(f)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(J.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;let o=this.quill.getSelection();if(o!=null){let t=this.quill.getBounds(o);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(o){let t=super.position(o),r=this.root.querySelector(".ql-tooltip-arrow");return r.style.marginLeft="",t!==0&&(r.style.marginLeft=`${-1*t-r.offsetWidth/2}px`),t}};B(Hp,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));var hc=class extends Zn{constructor(o,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=gA),super(o,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(o){this.tooltip=new Hp(this.quill,this.options.bounds),o.container!=null&&(this.tooltip.root.appendChild(o.container),this.buildButtons(o.container.querySelectorAll("button"),Ni),this.buildPickers(o.container.querySelectorAll("select"),Ni))}};hc.DEFAULTS=Gr({},Zn.DEFAULTS,{modules:{toolbar:{handlers:{link(i){i?this.quill.theme.tooltip.edit():this.quill.format("link",!1,j.sources.USER)}}}}});var bA=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],Fp=class extends Ns{constructor(){super(...arguments);B(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){let r=this.linkRange;this.restoreFocus(),this.quill.formatText(r,"link",!1,J.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(J.events.SELECTION_CHANGE,(t,r,n)=>{if(t!=null){if(t.length===0&&n===J.sources.USER){let[a,s]=this.quill.scroll.descendant(co,t.index);if(a!=null){this.linkRange=new qr(t.index-s,a.length());let l=co.formats(a.domNode);this.preview.textContent=l,this.preview.setAttribute("href",l),this.show();let d=this.quill.getBounds(this.linkRange);d!=null&&this.position(d);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}};B(Fp,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));var Bp=class extends Zn{constructor(o,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=bA),super(o,t),this.quill.container.classList.add("ql-snow")}extendToolbar(o){o.container!=null&&(o.container.classList.add("ql-snow"),this.buildButtons(o.container.querySelectorAll("button"),Ni),this.buildPickers(o.container.querySelectorAll("select"),Ni),this.tooltip=new Fp(this.quill,this.options.bounds),o.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,r)=>{o.handlers.link.call(o,!r.format.link)}))}};Bp.DEFAULTS=Gr({},Zn.DEFAULTS,{modules:{toolbar:{handlers:{link(i){if(i){let o=this.quill.getSelection();if(o==null||o.length===0)return;let t=this.quill.getText(o);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);let{tooltip:r}=this.quill.theme;r.edit("link",t)}else this.quill.format("link",!1,j.sources.USER)}}}}});var fw=Bp;Ip.register({"attributors/attribute/direction":Sp,"attributors/class/align":Vm,"attributors/class/background":Iz,"attributors/class/color":qz,"attributors/class/direction":jm,"attributors/class/font":Wm,"attributors/class/size":Km,"attributors/style/align":Cp,"attributors/style/background":Kl,"attributors/style/color":Wl,"attributors/style/direction":Ep,"attributors/style/font":Tp,"attributors/style/size":$p},!0);Ip.register({"formats/align":Vm,"formats/direction":jm,"formats/indent":Yz,"formats/background":Kl,"formats/color":Wl,"formats/font":Wm,"formats/size":Km,"formats/blockquote":Xz,"formats/code-block":$e,"formats/header":Qz,"formats/list":Ii,"formats/bold":qs,"formats/code":Ms,"formats/italic":Jz,"formats/link":co,"formats/script":Zz,"formats/strike":tw,"formats/underline":ew,"formats/formula":rw,"formats/image":nw,"formats/video":aw,"modules/syntax":cc,"modules/table":lw,"modules/toolbar":Di,"themes/bubble":hc,"themes/snow":fw,"ui/icons":Ni,"ui/picker":Ri,"ui/icon-picker":Op,"ui/color-picker":Rp,"ui/tooltip":Pp},!0);var lt=Ip;var ho=class extends C{render(){return u`
|
|
2668
2670
|
<div style="display: none;"></div>`}};c([p()],ho.prototype,"uri",2),c([p()],ho.prototype,"label",2),c([p()],ho.prototype,"content",2),c([p()],ho.prototype,"key",2),c([p()],ho.prototype,"icon",2),c([p({type:Number})],ho.prototype,"order",2);ho.define("zn-editor-quick-action");var df=ho;ho.define("zn-editor-quick-action");var Jr=class extends C{constructor(){super(...arguments);this.handler="dialog";this.contextMenu=!1}render(){return u`
|
|
2669
2671
|
<zn-button class="tool-action"
|
|
@@ -2755,7 +2757,7 @@ ${wa(this.code(o,t))}
|
|
|
2755
2757
|
<button type="button" class="ai-tooltip">
|
|
2756
2758
|
<zn-icon src="stylus" size="18"></zn-icon>
|
|
2757
2759
|
<span class="label">Refine</span>
|
|
2758
|
-
</button>`}};Oi.styles=T(Ew),c([p({type:Boolean,reflect:!0})],Oi.prototype,"open",2);Oi.define("zn-ai-tooltip");var Tw=E`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{display:block}.form-control{display:flex;flex-direction:column;height:100%}.textarea{display:flex;align-items:center;position:relative;width:100%;box-shadow:var(--zn-shadow-x-small);font-family:var(--zn-input-font-family);font-weight:var(--zn-input-font-weight);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-input-letter-spacing);vertical-align:middle;transition:var(--zn-transition-fast) color,var(--zn-transition-fast) border,var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;cursor:text}.textarea--standard{background-color:var(--zn-input-background-color);border:solid var(--zn-input-border-width) var(--zn-input-border-color)}.textarea--standard:hover:not(.textarea--disabled){background-color:var(--zn-input-background-color-hover);border-color:var(--zn-input-border-color-hover)}.textarea--standard:hover:not(.textarea--disabled) .textarea__control{color:var(--zn-input-color-hover)}.textarea--standard.textarea--focused:not(.textarea--disabled){background-color:var(--zn-input-background-color-focus);border-color:var(--zn-input-border-color-focus);color:var(--zn-input-color-focus);box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.textarea--standard.textarea--focused:not(.textarea--disabled) .textarea__control{color:var(--zn-input-color-focus)}.textarea--standard.textarea--disabled{background-color:var(--zn-input-background-color-disabled);border-color:var(--zn-input-border-color-disabled);opacity:0.5;cursor:not-allowed}.textarea--standard.textarea--disabled .textarea__control{color:var(--zn-input-color-disabled)}.textarea--standard.textarea--disabled .textarea__control::-moz-placeholder{color:var(--zn-input-placeholder-color-disabled)}.textarea--standard.textarea--disabled .textarea__control::placeholder{color:var(--zn-input-placeholder-color-disabled)}.textarea__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.4;color:var(--zn-input-color);border:none;background:none;box-shadow:var(--zn-shadow-x-small);cursor:inherit;-webkit-appearance:none;height:100%}.textarea__control::-webkit-search-decoration,.textarea__control::-webkit-search-cancel-button,.textarea__control::-webkit-search-results-button,.textarea__control::-webkit-search-results-decoration{-webkit-appearance:none}.textarea__control::-moz-placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.textarea__control::placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.textarea__control:focus{outline:none}.textarea--small{border-radius:var(--zn-input-border-radius-small);font-size:var(--zn-input-font-size-small)}.textarea--small .textarea__control{padding:0.5em var(--zn-input-spacing-small)}.textarea--medium{border-radius:var(--zn-input-border-radius-medium);font-size:var(--zn-input-font-size-medium)}.textarea--medium .textarea__control{padding:var(--zn-input-spacing-small)}.textarea--large{border-radius:var(--zn-input-border-radius-large);font-size:var(--zn-input-font-size-large)}.textarea--large .textarea__control{padding:0.75em var(--zn-input-spacing-large)}.textarea--resize-none .textarea__control{resize:none}.textarea--resize-vertical .textarea__control{resize:vertical}.textarea--resize-auto .textarea__control{height:auto;resize:none;overflow-y:hidden}.textarea--transparent{background-color:transparent;box-shadow:none !important;border:none !important}.textarea--transparent:hover{background-color:transparent !important}.textarea--transparent.textarea--focused{border:none !important;background-color:transparent !important}.textarea--transparent .textarea__control{background-color:transparent;box-shadow:none;border:none}`;var pt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Q(this,"help-text","label");this.resizeObserver=new te(this,{target:null,callback:()=>this.setTextareaHeight()});this._didInitFromContent=!1;this.slashController=new hi(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.title="";this.name="";this.value="";this.size="medium";this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.placeholder="";this.rows=4;this.resize="vertical";this.disabled=!1;this.readonly=!1;this.form="";this.flush=!1;this.required=!1;this.spellcheck=!0;this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.defaultValue="";this.transparent=!1}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){if(super.connectedCallback(),!this._didInitFromContent){this._didInitFromContent=!0;let t=this.hasAttribute("value"),r=typeof this.value=="string"&&this.value.length>0;if(!t&&!r){let n=Array.from(this.childNodes).filter(l=>l.nodeType===Node.TEXT_NODE),s=n.map(l=>l.textContent??"").join("").replace(/\r\n/g,`
|
|
2760
|
+
</button>`}};Oi.styles=T(Ew),c([p({type:Boolean,reflect:!0})],Oi.prototype,"open",2);Oi.define("zn-ai-tooltip");var Tw=E`@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}:host *,:host *::before,:host *::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)}.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{height:100%}:host{display:block}.form-control{display:flex;flex-direction:column;height:100%}.textarea{display:flex;align-items:center;position:relative;width:100%;box-shadow:var(--zn-shadow-x-small);font-family:var(--zn-input-font-family);font-weight:var(--zn-input-font-weight);line-height:var(--zn-line-height-normal);letter-spacing:var(--zn-input-letter-spacing);vertical-align:middle;transition:var(--zn-transition-fast) color,var(--zn-transition-fast) border,var(--zn-transition-fast) box-shadow,var(--zn-transition-fast) background-color;cursor:text}.textarea--standard{background-color:var(--zn-input-background-color);border:solid var(--zn-input-border-width) var(--zn-input-border-color)}.textarea--standard:hover:not(.textarea--disabled){background-color:var(--zn-input-background-color-hover);border-color:var(--zn-input-border-color-hover)}.textarea--standard:hover:not(.textarea--disabled) .textarea__control{color:var(--zn-input-color-hover)}.textarea--standard.textarea--focused:not(.textarea--disabled){background-color:var(--zn-input-background-color-focus);border-color:var(--zn-input-border-color-focus);color:var(--zn-input-color-focus);box-shadow:0 0 0 var(--zn-focus-ring-width) var(--zn-input-focus-ring-color)}.textarea--standard.textarea--focused:not(.textarea--disabled) .textarea__control{color:var(--zn-input-color-focus)}.textarea--standard.textarea--disabled{background-color:var(--zn-input-background-color-disabled);border-color:var(--zn-input-border-color-disabled);opacity:0.5;cursor:not-allowed}.textarea--standard.textarea--disabled .textarea__control{color:var(--zn-input-color-disabled)}.textarea--standard.textarea--disabled .textarea__control::-moz-placeholder{color:var(--zn-input-placeholder-color-disabled)}.textarea--standard.textarea--disabled .textarea__control::placeholder{color:var(--zn-input-placeholder-color-disabled)}.textarea__control{flex:1 1 auto;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.4;color:var(--zn-input-color);border:none;background:none;box-shadow:var(--zn-shadow-x-small);cursor:inherit;-webkit-appearance:none;height:100%}.textarea__control::-webkit-search-decoration,.textarea__control::-webkit-search-cancel-button,.textarea__control::-webkit-search-results-button,.textarea__control::-webkit-search-results-decoration{-webkit-appearance:none}.textarea__control::-moz-placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.textarea__control::placeholder{color:var(--zn-input-placeholder-color);-moz-user-select:none;user-select:none;-webkit-user-select:none}.textarea__control:focus{outline:none}.textarea--small{border-radius:var(--zn-input-border-radius-small);font-size:var(--zn-input-font-size-small)}.textarea--small .textarea__control{padding:0.5em var(--zn-input-spacing-small)}.textarea--medium{border-radius:var(--zn-input-border-radius-medium);font-size:var(--zn-input-font-size-medium)}.textarea--medium .textarea__control{padding:var(--zn-input-spacing-small)}.textarea--large{border-radius:var(--zn-input-border-radius-large);font-size:var(--zn-input-font-size-large)}.textarea--large .textarea__control{padding:0.75em var(--zn-input-spacing-large)}.textarea--resize-none .textarea__control{resize:none}.textarea--resize-vertical .textarea__control{resize:vertical}.textarea--resize-auto .textarea__control{height:auto;resize:none;overflow-y:hidden}.textarea--transparent{background-color:transparent;box-shadow:none !important;border:none !important}.textarea--transparent:hover{background-color:transparent !important}.textarea--transparent.textarea--focused{border:none !important;background-color:transparent !important}.textarea--transparent .textarea__control{background-color:transparent;box-shadow:none;border:none}`;var pt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hasSlotController=new Q(this,"help-text","label");this.resizeObserver=new te(this,{target:null,callback:()=>this.setTextareaHeight()});this._didInitFromContent=!1;this.slashController=new hi(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.title="";this.name="";this.value="";this.size="medium";this.label="";this.labelTooltip="";this.contextNote="";this.helpText="";this.placeholder="";this.rows=4;this.resize="vertical";this.disabled=!1;this.readonly=!1;this.form="";this.flush=!1;this.required=!1;this.spellcheck=!0;this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.defaultValue="";this.transparent=!1}get validity(){return this.input?.validity}get validationMessage(){return this.input.validationMessage}connectedCallback(){if(super.connectedCallback(),!this._didInitFromContent){this._didInitFromContent=!0;let t=this.hasAttribute("value"),r=typeof this.value=="string"&&this.value.length>0;if(!t&&!r){let n=Array.from(this.childNodes).filter(l=>l.nodeType===Node.TEXT_NODE),s=n.map(l=>l.textContent??"").join("").replace(/\r\n/g,`
|
|
2759
2761
|
`).trim();s.length>0&&(this.value=s,this.defaultValue=s,n.forEach(l=>{(l.textContent??"").trim().length>0&&l.parentNode?.removeChild(l)}))}}this.updateComplete.then(()=>{this.resizeObserver.observe(this.input),this.formControl.style.display="flex",this.formControl.style.flexGrow="1"})}firstUpdated(){this.formControlController.updateValidity(),this.slashController.attach(this.input)}async resolveSlashItems(t=""){let r=[...hd(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)}handleBlur(){this.hasFocus=!1,this.emit("zn-blur")}handleChange(){this.value=this.input.value,this.setTextareaHeight(),this.emit("zn-change")}handleFocus(){this.hasFocus=!0,this.emit("zn-focus")}handleInput(){this.value=this.input.value,this.emit("zn-input")}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}handleKeyDown(t){this.slashController.open||t.key==="Escape"&&(this.input.blur(),t.stopPropagation())}setTextareaHeight(){this.resize==="auto"?(this.input.style.height="auto",this.input.style.height=`${this.input.scrollHeight}px`):this.input.style.height=void 0,this.formControl.style.height=this.input.style.height,this.formControl.style.height!==""&&(this.formControl.style.flexGrow="0")}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(t){this.input.focus(t)}blur(){this.input.blur()}select(){this.input.select()}scrollPosition(t){if(t){typeof t.top=="number"&&(this.input.scrollTop=t.top),typeof t.left=="number"&&(this.input.scrollLeft=t.left);return}return{top:this.input.scrollTop,left:this.input.scrollLeft}}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,this.setTextareaHeight())}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.label?!0:t,l=this.labelTooltip?!0:r,d=this.contextNote?!0:n,h=this.helpText?!0:a;return u`
|
|
2760
2762
|
<div
|
|
2761
2763
|
part="form-control"
|
|
@@ -2813,7 +2815,7 @@ ${wa(this.code(o,t))}
|
|
|
2813
2815
|
></textarea>
|
|
2814
2816
|
</div>
|
|
2815
2817
|
${this.hasSlashMenu?u`
|
|
2816
|
-
<zn-slash-menu part="slash-menu" heading=${this.slashHeading}></zn-slash-menu>`:""}
|
|
2818
|
+
<zn-slash-menu part="slash-menu" heading=${this.slashHeading} ?hide-keys=${this.slashHideKeys}></zn-slash-menu>`:""}
|
|
2817
2819
|
<slot name="slash-menu"></slot>
|
|
2818
2820
|
<slot name="slash-items" hidden></slot>
|
|
2819
2821
|
</div>
|
|
@@ -2825,7 +2827,7 @@ ${wa(this.code(o,t))}
|
|
|
2825
2827
|
aria-hidden=${h?"false":"true"}>
|
|
2826
2828
|
<slot name="help-text">${this.helpText}</slot>
|
|
2827
2829
|
</div>
|
|
2828
|
-
</div>`}};pt.styles=T(Tw),pt.dependencies={"zn-slash-item":xl,"zn-slash-menu":ca},c([F(".form-control-input")],pt.prototype,"formControl",2),c([F(".textarea__control")],pt.prototype,"input",2),c([F("zn-slash-menu")],pt.prototype,"slashMenuElement",2),c([O()],pt.prototype,"hasFocus",2),c([O()],pt.prototype,"hasSlashMenu",2),c([p()],pt.prototype,"title",2),c([p()],pt.prototype,"name",2),c([p()],pt.prototype,"value",2),c([p({reflect:!0})],pt.prototype,"size",2),c([p()],pt.prototype,"label",2),c([p({attribute:"label-tooltip"})],pt.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],pt.prototype,"contextNote",2),c([p({attribute:"help-text"})],pt.prototype,"helpText",2),c([p()],pt.prototype,"placeholder",2),c([p({attribute:"rows",type:Number})],pt.prototype,"rows",2),c([p()],pt.prototype,"resize",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"readonly",2),c([p({reflect:!0})],pt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"flush",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"required",2),c([p({type:Number})],pt.prototype,"minlength",2),c([p({type:Number})],pt.prototype,"maxlength",2),c([p()],pt.prototype,"autocapitalize",2),c([p()],pt.prototype,"autocorrect",2),c([p()],pt.prototype,"autocomplete",2),c([p({type:Boolean})],pt.prototype,"autofocus",2),c([p()],pt.prototype,"enterkeyhint",2),c([p({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],pt.prototype,"spellcheck",2),c([p()],pt.prototype,"inputmode",2),c([p({attribute:"slash-items",converter:{fromAttribute:t=>pi(t),toAttribute:t=>JSON.stringify(t)}})],pt.prototype,"slashItems",2),c([p({attribute:"slash-preset"})],pt.prototype,"slashPreset",2),c([p({attribute:"slash-trigger"})],pt.prototype,"slashTrigger",2),c([p({attribute:"slash-heading"})],pt.prototype,"slashHeading",2),c([p({attribute:!1})],pt.prototype,"slashItemsProvider",2),c([re()],pt.prototype,"defaultValue",2),c([p({type:Boolean})],pt.prototype,"transparent",2),c([K("disabled",{waitUntilFirstUpdate:!0})],pt.prototype,"handleDisabledChange",1),c([K("rows",{waitUntilFirstUpdate:!0})],pt.prototype,"handleRowsChange",1),c([K("value",{waitUntilFirstUpdate:!0})],pt.prototype,"handleValueChange",1);var gc=pt;pt.define("zn-textarea");var vf=class{constructor(o,t){this._path="";this._selectedText="";this._prompt="";this._aiResponseContent="";this._onEscapeKey=o=>{o.key==="Escape"&&(this._hide(),this._component.remove(),this._initComponent())};this._quill=o,this._path=t.path,this._initComponent(),this._attachEvents()}_initComponent(){this._component=this._createTooltipComponent(),this._component.addEventListener("click",o=>this._replaceTooltip(o)),this._quill.container.ownerDocument.body.appendChild(this._component)}_attachEvents(){this._quill.on(lt.events.SELECTION_CHANGE,o=>this._updateFromEditor(o))}_latestContent(o){if(o==null&&(o=this._component.shadowRoot?.querySelector(".ai-panel")),o){let t=o.querySelector('[name="editor-response-text"]');if(t instanceof HTMLInputElement||t instanceof gc)return t.value}return this._aiResponseContent}async processAIRequest(){let o=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:o,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 o=u`
|
|
2830
|
+
</div>`}};pt.styles=T(Tw),pt.dependencies={"zn-slash-item":xl,"zn-slash-menu":ca},c([F(".form-control-input")],pt.prototype,"formControl",2),c([F(".textarea__control")],pt.prototype,"input",2),c([F("zn-slash-menu")],pt.prototype,"slashMenuElement",2),c([O()],pt.prototype,"hasFocus",2),c([O()],pt.prototype,"hasSlashMenu",2),c([p()],pt.prototype,"title",2),c([p()],pt.prototype,"name",2),c([p()],pt.prototype,"value",2),c([p({reflect:!0})],pt.prototype,"size",2),c([p()],pt.prototype,"label",2),c([p({attribute:"label-tooltip"})],pt.prototype,"labelTooltip",2),c([p({attribute:"context-note"})],pt.prototype,"contextNote",2),c([p({attribute:"help-text"})],pt.prototype,"helpText",2),c([p()],pt.prototype,"placeholder",2),c([p({attribute:"rows",type:Number})],pt.prototype,"rows",2),c([p()],pt.prototype,"resize",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"readonly",2),c([p({reflect:!0})],pt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"flush",2),c([p({type:Boolean,reflect:!0})],pt.prototype,"required",2),c([p({type:Number})],pt.prototype,"minlength",2),c([p({type:Number})],pt.prototype,"maxlength",2),c([p()],pt.prototype,"autocapitalize",2),c([p()],pt.prototype,"autocorrect",2),c([p()],pt.prototype,"autocomplete",2),c([p({type:Boolean})],pt.prototype,"autofocus",2),c([p()],pt.prototype,"enterkeyhint",2),c([p({type:Boolean,converter:{fromAttribute:t=>!(!t||t==="false"),toAttribute:t=>t?"true":"false"}})],pt.prototype,"spellcheck",2),c([p()],pt.prototype,"inputmode",2),c([p({attribute:"slash-items",converter:{fromAttribute:t=>pi(t),toAttribute:t=>JSON.stringify(t)}})],pt.prototype,"slashItems",2),c([p({attribute:"slash-preset"})],pt.prototype,"slashPreset",2),c([p({attribute:"slash-trigger"})],pt.prototype,"slashTrigger",2),c([p({attribute:"slash-heading"})],pt.prototype,"slashHeading",2),c([p({attribute:"slash-hide-keys",type:Boolean})],pt.prototype,"slashHideKeys",2),c([p({attribute:!1})],pt.prototype,"slashItemsProvider",2),c([re()],pt.prototype,"defaultValue",2),c([p({type:Boolean})],pt.prototype,"transparent",2),c([K("disabled",{waitUntilFirstUpdate:!0})],pt.prototype,"handleDisabledChange",1),c([K("rows",{waitUntilFirstUpdate:!0})],pt.prototype,"handleRowsChange",1),c([K("value",{waitUntilFirstUpdate:!0})],pt.prototype,"handleValueChange",1);var gc=pt;pt.define("zn-textarea");var vf=class{constructor(o,t){this._path="";this._selectedText="";this._prompt="";this._aiResponseContent="";this._onEscapeKey=o=>{o.key==="Escape"&&(this._hide(),this._component.remove(),this._initComponent())};this._quill=o,this._path=t.path,this._initComponent(),this._attachEvents()}_initComponent(){this._component=this._createTooltipComponent(),this._component.addEventListener("click",o=>this._replaceTooltip(o)),this._quill.container.ownerDocument.body.appendChild(this._component)}_attachEvents(){this._quill.on(lt.events.SELECTION_CHANGE,o=>this._updateFromEditor(o))}_latestContent(o){if(o==null&&(o=this._component.shadowRoot?.querySelector(".ai-panel")),o){let t=o.querySelector('[name="editor-response-text"]');if(t instanceof HTMLInputElement||t instanceof gc)return t.value}return this._aiResponseContent}async processAIRequest(){let o=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:o,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 o=u`
|
|
2829
2831
|
<zn-ai-tooltip></zn-ai-tooltip>`;return Ee(o)}_createPanelComponent(){let o=u`
|
|
2830
2832
|
<zn-ai-panel></zn-ai-panel>`;return Ee(o)}_replaceTooltip(o){o.preventDefault(),o.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(o){let t=o.composedPath?o.composedPath():[o.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){o.preventDefault(),o.stopPropagation();return}!r&&!n&&!a&&this.resetComponent()}_updateFromEditor(o){this._component instanceof Zo||(o?.length>25?(this._selectedText=this._quill.getText(o.index,o.length),this._show(),this._positionComponent()):this.resetComponent())}_positionComponent(){if(!this._component||!this._component.open)return;let o=this._quill.getSelection();if(!o)return;if(this._component instanceof Oi){let r=this._quill.container.getBoundingClientRect(),n=o.index+o.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(o.length===this._quill.getLength()-1)n=this._quill.getBounds(o.index,o.length);else{let l=o.index+o.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(o,t){this._component.style.right=`${Math.max(0,window.innerWidth-o)}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",o=>this._onDocumentClick(o)),this._quill.container.ownerDocument.addEventListener("keydown",this._onEscapeKey))}_hide(){this._component.hide(),this._quill.container.ownerDocument.removeEventListener("click",o=>this._onDocumentClick(o)),this._quill.container.ownerDocument.removeEventListener("keydown",this._onEscapeKey)}_attachPanelEvents(o){o.refine=this._enterCustomPrompt.bind(this),o.refineBuiltIn=this._clickPreDefinedEvent.bind(this)}_clickPreDefinedEvent(o){if(o instanceof PointerEvent){let t=o.target;if(this._prompt=t.getAttribute("data-ai-option")||"",this._prompt===""){for(let r of o.composedPath())if(r instanceof HTMLElement&&(this._prompt=r.getAttribute("data-ai-option")||"",this._prompt))break}this.processAIRequest().then(r=>r)}}_enterCustomPrompt(o){this._prompt=o,this.processAIRequest().then(t=>t)}},$w=vf;var bc=class{constructor(o,t){this._quill=o,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 xf=["Red","Blue","Orange","Yellow","Indigo","Violet","Green","Pink","Gray"],jp={getName:"color",getData:Object.entries(xf).map(([,i])=>({key:i.toLowerCase(),value:i,prefix:u`<div class="color-icon color-icon--${i.toLowerCase()}"></div>`}))};var Aw=E`@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-input-height-x-small:24px;--zn-input-height-small:30px;--zn-input-height-medium:36px;--zn-input-height-large:40px;--zn-input-background-color:var(--zn-color-neutral-50);--zn-input-background-color-hover:var(--zn-color-neutral-100);--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}[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-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}[t=aura],.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-border-color:218,212,246;--zn-input-focus-ring-color:hsl(255 82% 68%/40%)}: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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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}@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}[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-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,[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)}[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}[t=light] .zn-primary,.theme-light .zn-primary{color:rgb(var(--zn-color-primary))}[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}[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}[t=aura],.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:blur(2px)}[t=aura] .zn-primary,.theme-aura .zn-primary{color:rgb(var(--zn-color-primary))}: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)}[t=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 !important}.zn-bt{border-top-style:solid;border-top-width:1px !important}.zn-bb{border-bottom-style:solid;border-bottom-width:1px !important}.zn-bl{border-left-style:solid;border-left-width:1px !important}.zn-br{border-right-style:solid;border-right-width:1px !important}.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-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(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 !important;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-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(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-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(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)}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);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}}.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 kn=class extends C{constructor(){super(...arguments);this._featureConfig={};this._resizeId=null;this._resizeObserver=new te(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 d=r.slice(s);this.populateOverflowMenu(d),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(x=>v.setAttribute(x,g[x])),f){let x=document.createElement("zn-icon");x.setAttribute("src",f),x.setAttribute("size","18"),x.setAttribute("slot","prefix"),v.appendChild(x)}return b&&v.addEventListener("click",x=>{x.preventDefault(),x.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"},d={"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 G in d)if(g.classList.contains(G)){v=d[G];break}v||(v=g.getAttribute("aria-label")||g.getAttribute("title")||"More");let x=s(g)||"",_=n(r,v,x);g.classList.contains("toolbar__date-dropdown")&&_.setAttribute("data-overflow-source","date");let k=document.createElement("zn-menu");k.setAttribute("slot","submenu"),k.setAttribute("variant","shell");let N=g.querySelectorAll("zn-menu-item");if(N.length)N.forEach(G=>{let I=a(G);k.appendChild(I)});else{let G=Array.from(g.children).filter(w=>{let $=w.getAttribute("slot")==="trigger"||w instanceof Ct,L=w instanceof Vo||w instanceof Rn;return!$&&!L}),I=document.createElement("div");I.className="toolbar__submenu-content",G.forEach(w=>this.moveContentTo(w,I)),k.appendChild(I)}_.appendChild(k)}),h.querySelectorAll("zn-button.toolbar__format-button, zn-button.toolbar__action-button").forEach(g=>{let v=g.getAttribute("icon")??"",x=g.getAttribute("data-format")??"",_=g.getAttribute("data-text")??l[x]??(x?x.charAt(0).toUpperCase()+x.slice(1):g.getAttribute("aria-label")??g.textContent?.trim()??"Action"),k={"data-format":x},N=g.getAttribute("data-format-type")??"";N&&(k["data-format-type"]=N),v&&(k["data-icon"]=v),_&&(k["data-text"]=_),n(r,_,v,void 0,k)}),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(x=>{if(x instanceof uc){let _=x.icon,k=x.label,N=x.handler||"dialog",G=x.uri||"",I=x.key||"",w={"data-format":N};G&&(w["data-format-type"]=G),I&&(w["data-toolbar-key"]=I),_&&(w["data-icon"]=_),k&&(w["data-text"]=k),n(r,k,_,void 0,w)}})}})}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`
|
|
2831
2833
|
<div class="toolbar">
|
|
@@ -3096,7 +3098,7 @@ ${wa(this.code(o,t))}
|
|
|
3096
3098
|
* Copyright (c) 2017-2024, Slab
|
|
3097
3099
|
* Copyright (c) 2014, Jason Chen
|
|
3098
3100
|
* Copyright (c) 2013, salesforce.com
|
|
3099
|
-
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:0.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:0.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:0.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:0.83em}.ql-snow .ql-editor h6{font-size:0.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label::before,.ql-snow .ql-picker.ql-header .ql-picker-item::before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{font-size:0.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{font-size:0.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label::before,.ql-snow .ql-picker.ql-font .ql-picker-item::before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label::before,.ql-snow .ql-picker.ql-size .ql-picker-item::before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:"Helvetica Neue","Helvetica","Arial",sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,0.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]::before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host,zn-editor{--editor-gutter:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));width:100%;padding-inline:var(--editor-gutter)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:170px;container-type:inline-size;display:flex;flex-direction:column;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));margin:0;padding:0;max-height:100%;flex:1;overflow:hidden}:host .ql-container{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;resize:none;padding:20px 20px 0}:host .ql-toolbar{border:0 solid rgb(var(--zn-border-color));color:rgb(var(--zn-text-heading));display:flex;flex-wrap:wrap;gap:5px}:host .ql-toolbar>span.ql-formats{margin:0}:host .ql-toolbar>span{padding-top:2px;padding-bottom:2px}:host .ql-toolbar:after{display:none}:host .ql-editor{position:relative;width:100%;height:100%;max-height:100%;overflow-y:auto;flex-grow:1;color:rgb(var(--zn-text));background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));font-size:15px;padding-inline:var(--editor-gutter)}:host .ql-editor img{height:auto}:host .ql-editor.ql-blank:before{right:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));left:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));color:rgb(var(--zn-text))}:host #editor{flex:1;height:0;padding:0}:host #toolbar-container,:host #action-container{justify-content:space-between;align-items:center;padding-inline:var(--editor-gutter)}:host #toolbar-container .wrap,:host #action-container .wrap{flex-grow:1}:host #action-container.ql-toolbar{border-bottom-width:0}:host .ql-stroke{stroke:rgb(var(--zn-text-heading))}:host .ql-fill{fill:rgb(var(--zn-text-heading))}:host .ql-picker-label:before{color:rgb(var(--zn-text-heading))}:host .ql-image svg{fill:currentColor}.ql-placeholder{width:110px}.ql-placeholder .ql-picker-label::before{content:"Placeholder"}.ql-code-block-container .ql-ui{color:rgb(var(--zn-text))}.ql-code-block{font-size:90%}:host #toolbar zn-button.ql-active .button{background-color:rgba(var(--zn-primary),0.2)}:host #toolbar zn-dropdown zn-menu zn-menu-item[checked] .menu-item{background-color:rgba(var(--zn-panel-highlight),var(--zn-panel-highlight-opacity));color:rgb(var(--zn-primary))}:host .ql-editor hr,:host .ql-editor .ql-hr{border:none;border-top:1px solid rgb(var(--zn-border-color));height:0;margin:var(--zn-spacing-small) 0;opacity:1}#toolbar{padding-inline:var(--editor-gutter)}`;var qt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(this,{});this.interactionType="chat";this.codeBlocksEnabled=!1;this.dividersEnabled=!1;this.linksEnabled=!1;this.attachmentsEnabled=!1;this.imagesEnabled=!1;this.videosEnabled=!1;this.datesEnabled=!1;this.emojisEnabled=!1;this.codeEnabled=!1;this.aiEnabled=!1;this.aiPath="";this.storeKey="";this.storeTtl=86400;this._content="";this._selectionRange={index:0,length:0};this._handleEditorInsert=t=>{let r=t.detail??{},n=r.mode;if(!(n!=="insert"&&n!=="replace")){if(t.stopPropagation(),r.html){this._insertHtml(n,r.html);return}r.text&&(this._content=r.text.trim(),n==="replace"?this._replaceTextAtSelection():this._insertTextAtSelection())}}}get validity(){return this.editorHtml.validity}get validationMessage(){return this.editorHtml.validationMessage}checkValidity(){return this.editorHtml.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.editorHtml.reportValidity()}setCustomValidity(t){this.editorHtml.setCustomValidity(t),this.formControlController.updateValidity()}connectedCallback(){super.connectedCallback(),this._store=new mr(this.localStorage?window.localStorage:window.sessionStorage,"zned:",this.storeTtl)}firstUpdated(t){this.formControlController.updateValidity();let r=this._getQuillKeyboardBindings(),n=this.id;if(n||(n="abc"),kd(document,"click",'[editor-id="'+n+'"]',g=>{this._handleEditorChange(g)}),lt.register({"modules/toolbar":Lw},!0),this.datesEnabled&<.register({"modules/datePicker":xw},!0),this.emojisEnabled&&(lt.register({"modules/emoji":ww},!0),lt.register({"modules/headlessEmoji":kw},!0)),this.attachmentsEnabled&<.register({"modules/attachment":zl},!0),lt.register({"modules/timeTracking":bc},!0),lt.register({"modules/dragAndDrop":fc},!0),lt.register({"modules/imageResize":Cw},!0),lt.register({"modules/contextMenu":bw},!0),lt.register({"modules/dialog":yw},!0),this.aiEnabled&<.register("modules/ai",$w,!0),this.dividersEnabled){let g=lt.import("blots/block/embed");class v extends g{static create(){let _=document.createElement("hr");return _.classList.add("ql-hr"),_}}v.blotName="hr",v.tagName="HR",v.className="ql-hr",lt.register({"formats/hr":v},!0)}let a=this.getForm()?.querySelector('input[name="startTime"]'),s=this.getForm()?.querySelector('input[name="openTime"]'),l={codeBlocksEnabled:this.codeBlocksEnabled,dividersEnabled:this.dividersEnabled,linksEnabled:this.linksEnabled,attachmentsEnabled:this.attachmentsEnabled,imagesEnabled:this.imagesEnabled,videosEnabled:this.videosEnabled,datesEnabled:this.datesEnabled,emojisEnabled:this.emojisEnabled,codeEnabled:this.codeEnabled},d=new lt(this.editor,{modules:{toolbar:{container:this.toolbar,config:l},contextMenu:{config:l},keyboard:{bindings:r},dialog:{editorId:this.id},...this.datesEnabled&&{datePicker:{}},...this.emojisEnabled&&{emoji:{},headlessEmoji:{}},...this.aiEnabled&&{ai:{path:this.aiPath}},timeTracking:{startTimeInput:a,openTimeInput:s},...this.attachmentsEnabled&&{attachment:{attachmentInput:this.getForm()?.querySelector('input[name="attachments"]'),onFileUploaded:()=>{window.onbeforeunload=()=>null},upload:async g=>{window.onbeforeunload=()=>"You have unsaved changes. Are you sure you want to leave?";let v=new FormData;v.append("filename",g.name),v.append("size",g.size.toString()),v.append("mimeType",g.type);let x=await fetch(this.uploadAttachmentUrl,{method:"POST",body:v});if(!x.ok)throw new Error(`Upload request failed: ${x.status}`);let _=await x.json(),k=new URL(_.uploadUrl,new URL(this.uploadAttachmentUrl,window.location.href)).toString();return{path:_.uploadPath,url:k,filename:_.originalFilename}}}},imageResize:{},history:{}},placeholder:"Compose your reply...",theme:"snow",bounds:this.editor});this.quillElement=d,d.getModule("dialog")?.component?.addEventListener("zn-editor-insert",this._handleEditorInsert),this.getForm()?.addEventListener("submit",()=>{this._clearCachedContent(),setTimeout(()=>{this.quillElement.getModule("attachment")?.reset()},0)});let m=!!document.createElement("div").attachShadow({mode:"open"}).getSelection,f=g=>{try{if(m)return g?.getSelection()?.getRangeAt(0);{let v=window.getSelection();return v&&"getComposedRanges"in v&&typeof v.getComposedRanges=="function"?Array.isArray(v.getComposedRanges(g))?v.getComposedRanges(g)[0]:void 0:v?.getRangeAt(0)}}catch{return null}};if(d.selection.hasFocus=function(){return d.root.getRootNode().activeElement===d.root},d.selection.getNativeRange=function(){let g=d.root.getRootNode(),v=f(g);return v?d.selection.normalizeNative(v):null},d.selection.setNativeRange=function(g,v){let x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(g!==null&&(d.selection.root.parentNode===null||g.parentNode===null||x.parentNode===null))return;let N=document.getSelection();if(N!==null)if(g!==null){d.selection.hasFocus()||d.selection.root.focus();let G=d.selection.getNativeRange()?.native;(G===null||k||g!==G?.startContainer||v!==G.startOffset||x!==G.endContainer||_!==G.endOffset)&&(g.tagName==="BR"&&(v=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode),x.tagName==="BR"&&(_=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode),N.setBaseAndExtent(g,v,x,_))}else N.removeAllRanges(),d.selection.root.blur(),document.body.focus()},document.addEventListener("selectionchange",()=>{this.quillElement.selection.update()}),document.addEventListener("zn-editor-update",this._handleTextChange.bind(this)),d.on("text-change",this._handleTextChange.bind(this)),d.on(lt.events.SELECTION_CHANGE,(g,v)=>{this._selectionRange=g??v}),this.storeKey&&this._isEmpty(this.value??"")){let g=this._store.get(this.storeKey);g&&(this.value=g,this.editorHtml.value=g)}let b=d.clipboard.convert({html:this.value});d.setContents(b,lt.sources.SILENT),this.emit("zn-element-added",{detail:{element:this.editor}}),super.firstUpdated(t)}_handleTextChange(){this.value=this.quillElement.getSemanticHTML(),this.editorHtml.value=this.value,this._cacheContent(),this.emit("zn-change")}_isEmpty(t){return t.match(/[^<pbr\s>/]/)===null}_cacheContent(){!this.storeKey||!this._store||(this._isEmpty(this.value)?this._store.remove(this.storeKey):this._store.set(this.storeKey,this.value))}_clearCachedContent(){this.storeKey&&this._store&&this._store.remove(this.storeKey)}_getQuillKeyboardBindings(){return{enter:{key:"Enter",shiftKey:!1,handler:()=>{let t=this.quillElement.getModule("headlessEmoji"),r=this.quillElement.getModule("contextMenu"),n=this.quillElement.getModule("dialog");if(t?.isOpen()||r?.isOpen()||n?.isOpen())return!1;if(this.interactionType==="chat"){let a=this.closest("form"),s=!!this.value&&this.value.trim().length>0&&!this._isEmpty(this.value),l=a?.querySelector('input[name="attachments"]'),d=!!l?.value&&l.value!=="[]";return a&&(s||d)?(this.emit("zn-submit",{detail:{value:this.value,element:this}}),a.requestSubmit(),this.quillElement.setText(""),!1):!0}return!0}}}}_handleEditorChange(t){let r=t.selectedTarget;if(!r.hasAttribute("editor-mode"))return;let n=r.getAttribute("editor-mode");if(n!=="replace"&&n!=="insert")return;t.preventDefault();let a=r.getAttribute("editor-content-id");if(!a)return;let s=t.currentTarget instanceof Element&&t.currentTarget.closest("#"+a)||t.selectedTarget instanceof Element&&t.selectedTarget.closest("#"+a)||t.target instanceof Element&&t.target.closest("#"+a)||t.composedPath()[0]?.closest("#"+a)||Ot(`#${a}`,document.documentElement,"")[0];if(!s)return;let l=s.textContent;(s instanceof HTMLInputElement||s instanceof gc)&&(l=s.value),!(!l||l==="")&&(this._content=l.trim(),n==="replace"?this._replaceTextAtSelection():n==="insert"&&this._insertTextAtSelection())}_insertHtml(t,r){let n=this.quillElement,a=n.getSelection(),s;t==="replace"?a&&a.length>0?(n.deleteText(a.index,a.length),s=a.index):(n.setText(""),s=0):s=a?a.index:this._selectionRange.index;let l=n.getLength();n.clipboard.dangerouslyPasteHTML(s,r,lt.sources.USER),n.setSelection(s+Math.max(0,n.getLength()-l),0),this._closePopups()}_replaceTextAtSelection(){let t=this.quillElement.getSelection();t?t.length===0?(this.quillElement.setText(this._content||""),this.quillElement.setSelection(this._content?.length||0,0)):(this.quillElement.deleteText(t.index,t.length),this.quillElement.insertText(t.index,this._content||""),this.quillElement.setSelection(t.index+(this._content.length||0),0)):(this.quillElement.setText(this._content||""),this.quillElement.setSelection(this._content?.length||0,0)),this._closePopups()}_insertTextAtSelection(){let t=this.quillElement.getSelection(),r=t?t.index:this._selectionRange.index;this.quillElement.insertText(r,this._content||""),this.quillElement.setSelection(r+(this._content.length||0),0),this._closePopups()}_closePopups(){this._closeAiPanel(),this._closeDialog()}_closeAiPanel(){let t=this.quillElement.getModule("ai");t&&t.resetComponent()}_closeDialog(){let t=this.quillElement.getModule("dialog");t&&t.close()}render(){return u`
|
|
3101
|
+
*/.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked]>.ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked]>.ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;-o-tab-size:4;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li>.ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked]>.ql-ui,.ql-editor li[data-list=unchecked]>.ql-ui{color:#777}.ql-editor li[data-list=bullet]>.ql-ui:before{content:"•"}.ql-editor li[data-list=checked]>.ql-ui:before{content:"☑"}.ql-editor li[data-list=unchecked]>.ql-ui:before{content:"☐"}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered]>.ql-ui:before{content:counter(list-0,decimal) ". "}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1>.ql-ui:before{content:counter(list-1,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2>.ql-ui:before{content:counter(list-2,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3>.ql-ui:before{content:counter(list-3,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4>.ql-ui:before{content:counter(list-4,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5>.ql-ui:before{content:counter(list-5,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6>.ql-ui:before{content:counter(list-6,decimal) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7>.ql-ui:before{content:counter(list-7,lower-alpha) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8>.ql-ui:before{content:counter(list-8,lower-roman) ". "}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9>.ql-ui:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl>.ql-ui:before{margin-left:0.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:0.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:0.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:0.83em}.ql-snow .ql-editor h6{font-size:0.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label::before,.ql-snow .ql-picker.ql-header .ql-picker-item::before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{font-size:0.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{font-size:0.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label::before,.ql-snow .ql-picker.ql-font .ql-picker-item::before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label::before,.ql-snow .ql-picker.ql-size .ql-picker-item::before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:"Helvetica Neue","Helvetica","Arial",sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,0.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]::before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-transform:none}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}@container (width > 1024px){:host{--zn-gutter:16px}}@container (width > 1400px){:host{--zn-gutter:24px}}@container (width > 1500px){:host{--zn-gutter:32px}}:host,zn-editor{--editor-gutter:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));width:100%;padding-inline:var(--editor-gutter)}:host ::-webkit-scrollbar{width:5px;height:5px}:host{}:host ::-webkit-scrollbar-track{background:transparent}:host{}:host ::-webkit-scrollbar-thumb{background:rgba(var(--inverse-base),0.2);border-radius:5px}:host{}:host ::-webkit-scrollbar-thumb:hover{background:rgba(var(--inverse-base),0.6)}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:170px;container-type:inline-size;display:flex;flex-direction:column;background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));margin:0;padding:0;max-height:100%;flex:1;overflow:hidden}:host .ql-container{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;resize:none;padding:20px 20px 0}:host .ql-toolbar{border:0 solid rgb(var(--zn-border-color));color:rgb(var(--zn-text-heading));display:flex;flex-wrap:wrap;gap:5px}:host .ql-toolbar>span.ql-formats{margin:0}:host .ql-toolbar>span{padding-top:2px;padding-bottom:2px}:host .ql-toolbar:after{display:none}:host .ql-editor{position:relative;width:100%;height:100%;max-height:100%;overflow-y:auto;flex-grow:1;color:rgb(var(--zn-text));background-color:rgba(var(--zn-panel),var(--zn-panel-opacity));font-size:15px;padding-inline:var(--editor-gutter)}:host .ql-editor img{height:auto}:host .ql-editor.ql-blank:before{right:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));left:calc(var(--zn-gutter,0) + var(--zn-base-gap,0));color:rgb(var(--zn-text))}:host #editor{flex:1;height:0;padding:0}:host #toolbar-container,:host #action-container{justify-content:space-between;align-items:center;padding-inline:var(--editor-gutter)}:host #toolbar-container .wrap,:host #action-container .wrap{flex-grow:1}:host #action-container.ql-toolbar{border-bottom-width:0}:host .ql-stroke{stroke:rgb(var(--zn-text-heading))}:host .ql-fill{fill:rgb(var(--zn-text-heading))}:host .ql-picker-label:before{color:rgb(var(--zn-text-heading))}:host .ql-image svg{fill:currentColor}.ql-placeholder{width:110px}.ql-placeholder .ql-picker-label::before{content:"Placeholder"}.ql-code-block-container .ql-ui{color:rgb(var(--zn-text))}.ql-code-block{font-size:90%}:host #toolbar zn-button.ql-active .button{background-color:rgba(var(--zn-primary),0.2)}:host #toolbar zn-dropdown zn-menu zn-menu-item[checked] .menu-item{background-color:rgba(var(--zn-panel-highlight),var(--zn-panel-highlight-opacity));color:rgb(var(--zn-primary))}:host .ql-editor hr,:host .ql-editor .ql-hr{border:none;border-top:1px solid rgb(var(--zn-border-color));height:0;margin:var(--zn-spacing-small) 0;opacity:1}#toolbar{padding-inline:var(--editor-gutter)}`;var qt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(this,{});this.interactionType="chat";this.codeBlocksEnabled=!1;this.dividersEnabled=!1;this.linksEnabled=!1;this.attachmentsEnabled=!1;this.imagesEnabled=!1;this.videosEnabled=!1;this.datesEnabled=!1;this.emojisEnabled=!1;this.codeEnabled=!1;this.aiEnabled=!1;this.aiPath="";this.storeKey="";this.storeTtl=86400;this._content="";this._selectionRange={index:0,length:0};this._handleEditorInsert=t=>{let r=t.detail??{},n=r.mode;if(!(n!=="insert"&&n!=="replace")){if(t.stopPropagation(),r.html){this._insertHtml(n,r.html);return}r.text&&(this._content=r.text.trim(),n==="replace"?this._replaceTextAtSelection():this._insertTextAtSelection())}}}get validity(){return this.editorHtml.validity}get validationMessage(){return this.editorHtml.validationMessage}checkValidity(){return this.editorHtml.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.editorHtml.reportValidity()}setCustomValidity(t){this.editorHtml.setCustomValidity(t),this.formControlController.updateValidity()}connectedCallback(){super.connectedCallback(),this._store=new mr(this.localStorage?window.localStorage:window.sessionStorage,"zned:",this.storeTtl)}firstUpdated(t){this.formControlController.updateValidity();let r=this._getQuillKeyboardBindings(),n=this.id;if(n||(n="abc"),kd(document,"click",'[editor-id="'+n+'"]',g=>{this._handleEditorChange(g)}),lt.register({"modules/toolbar":Lw},!0),this.datesEnabled&<.register({"modules/datePicker":xw},!0),this.emojisEnabled&&(lt.register({"modules/emoji":ww},!0),lt.register({"modules/headlessEmoji":kw},!0)),this.attachmentsEnabled&<.register({"modules/attachment":zl},!0),lt.register({"modules/timeTracking":bc},!0),lt.register({"modules/dragAndDrop":fc},!0),lt.register({"modules/imageResize":Cw},!0),lt.register({"modules/contextMenu":bw},!0),lt.register({"modules/dialog":yw},!0),this.aiEnabled&<.register("modules/ai",$w,!0),this.dividersEnabled){let g=lt.import("blots/block/embed");class v extends g{static create(){let _=document.createElement("hr");return _.classList.add("ql-hr"),_}}v.blotName="hr",v.tagName="HR",v.className="ql-hr",lt.register({"formats/hr":v},!0)}let a=this.getForm()?.querySelector('input[name="startTime"]'),s=this.getForm()?.querySelector('input[name="openTime"]'),l={codeBlocksEnabled:this.codeBlocksEnabled,dividersEnabled:this.dividersEnabled,linksEnabled:this.linksEnabled,attachmentsEnabled:this.attachmentsEnabled,imagesEnabled:this.imagesEnabled,videosEnabled:this.videosEnabled,datesEnabled:this.datesEnabled,emojisEnabled:this.emojisEnabled,codeEnabled:this.codeEnabled},d=new lt(this.editor,{modules:{toolbar:{container:this.toolbar,config:l},contextMenu:{config:l},keyboard:{bindings:r},dialog:{editorId:this.id},...this.datesEnabled&&{datePicker:{}},...this.emojisEnabled&&{emoji:{},headlessEmoji:{}},...this.aiEnabled&&{ai:{path:this.aiPath}},timeTracking:{startTimeInput:a,openTimeInput:s},...this.attachmentsEnabled&&{attachment:{attachmentInput:this.getForm()?.querySelector('input[name="attachments"]'),onFileUploaded:()=>{window.onbeforeunload=()=>null},upload:async g=>{window.onbeforeunload=()=>"You have unsaved changes. Are you sure you want to leave?";let v=new FormData;v.append("filename",g.name),v.append("size",g.size.toString()),v.append("mimeType",g.type);let x=await fetch(this.uploadAttachmentUrl,{method:"POST",body:v});if(!x.ok)throw new Error(`Upload request failed: ${x.status}`);let _=await x.json(),k=new URL(_.uploadUrl,new URL(this.uploadAttachmentUrl,window.location.href)).toString();return{path:_.uploadPath,url:k,filename:_.originalFilename}}}},imageResize:{},history:{}},placeholder:"Compose your reply...",theme:"snow",bounds:this.editor});this.quillElement=d,d.getModule("dialog")?.component?.addEventListener("zn-editor-insert",this._handleEditorInsert),this.getForm()?.addEventListener("submit",()=>{this._clearCachedContent(),setTimeout(()=>{this.quillElement.getModule("attachment")?.reset()},0)});let m=!!document.createElement("div").attachShadow({mode:"open"}).getSelection,f=g=>{try{if(m)return g?.getSelection()?.getRangeAt(0);{let v=window.getSelection();return v&&"getComposedRanges"in v&&typeof v.getComposedRanges=="function"?Array.isArray(v.getComposedRanges(g))?v.getComposedRanges(g)[0]:void 0:v?.getRangeAt(0)}}catch{return null}};if(d.selection.hasFocus=function(){return d.root.getRootNode().activeElement===d.root},d.selection.getNativeRange=function(){let g=d.root.getRootNode(),v=f(g);return v?d.selection.normalizeNative(v):null},d.selection.setNativeRange=function(g,v){let x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:g,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:v,k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(g!==null&&(d.selection.root.parentNode===null||g.parentNode===null||x.parentNode===null))return;let N=document.getSelection();if(N!==null)if(g!==null){d.selection.hasFocus()||d.selection.root.focus();let G=d.selection.getNativeRange()?.native;(G===null||k||g!==G?.startContainer||v!==G.startOffset||x!==G.endContainer||_!==G.endOffset)&&(g.tagName==="BR"&&(v=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode),x.tagName==="BR"&&(_=[].indexOf.call(x.parentNode.childNodes,x),x=x.parentNode),N.setBaseAndExtent(g,v,x,_))}else N.removeAllRanges(),d.selection.root.blur(),document.body.focus()},document.addEventListener("selectionchange",()=>{this.quillElement.selection.update()}),document.addEventListener("zn-editor-update",this._handleTextChange.bind(this)),d.on("text-change",this._handleTextChange.bind(this)),d.on(lt.events.SELECTION_CHANGE,(g,v)=>{this._selectionRange=g??v}),this.storeKey&&this._isEmpty(this.value??"")){let g=this._store.get(this.storeKey);g&&(this.value=g,this.editorHtml.value=g)}let b=d.clipboard.convert({html:this.value});d.setContents(b,lt.sources.SILENT),this.emit("zn-element-added",{detail:{element:this.editor}}),super.firstUpdated(t)}_handleTextChange(){this.value=this.quillElement.getSemanticHTML(),this.editorHtml.value=this.value,this._cacheContent(),this.emit("zn-change")}_isEmpty(t){return t.match(/[^<pbr\s>/]/)===null}_cacheContent(){!this.storeKey||!this._store||(this._isEmpty(this.value)?this._store.remove(this.storeKey):this._store.set(this.storeKey,this.value))}_clearCachedContent(){this.storeKey&&this._store&&this._store.remove(this.storeKey)}_getQuillKeyboardBindings(){return{enter:{key:"Enter",shiftKey:!1,handler:()=>{let t=this.quillElement.getModule("headlessEmoji"),r=this.quillElement.getModule("contextMenu"),n=this.quillElement.getModule("dialog");if(t?.isOpen()||r?.isOpen()||n?.isOpen())return!1;if(this.interactionType==="chat"){let a=this.closest("form"),s=!!this.value&&this.value.trim().length>0&&!this._isEmpty(this.value),l=a?.querySelector('input[name="attachments"]'),d=!!l?.value&&l.value!=="[]";return a&&(s||d)?(this.emit("zn-submit",{detail:{value:this.value,element:this}}),a.requestSubmit(),this.quillElement.setText(""),!1):!0}return!0}}}}_handleEditorChange(t){let r=t.selectedTarget;if(!r.hasAttribute("editor-mode"))return;let n=r.getAttribute("editor-mode");if(n!=="replace"&&n!=="insert")return;t.preventDefault();let a=r.getAttribute("editor-content-id");if(!a)return;let s=t.currentTarget instanceof Element&&t.currentTarget.closest("#"+a)||t.selectedTarget instanceof Element&&t.selectedTarget.closest("#"+a)||t.target instanceof Element&&t.target.closest("#"+a)||t.composedPath()[0]?.closest("#"+a)||Pt(`#${a}`,document.documentElement,"")[0];if(!s)return;let l=s.textContent;(s instanceof HTMLInputElement||s instanceof gc)&&(l=s.value),!(!l||l==="")&&(this._content=l.trim(),n==="replace"?this._replaceTextAtSelection():n==="insert"&&this._insertTextAtSelection())}_insertHtml(t,r){let n=this.quillElement,a=n.getSelection(),s;t==="replace"?a&&a.length>0?(n.deleteText(a.index,a.length),s=a.index):(n.setText(""),s=0):s=a?a.index:this._selectionRange.index;let l=n.getLength();n.clipboard.dangerouslyPasteHTML(s,r,lt.sources.USER),n.setSelection(s+Math.max(0,n.getLength()-l),0),this._closePopups()}_replaceTextAtSelection(){let t=this.quillElement.getSelection();t?t.length===0?(this.quillElement.setText(this._content||""),this.quillElement.setSelection(this._content?.length||0,0)):(this.quillElement.deleteText(t.index,t.length),this.quillElement.insertText(t.index,this._content||""),this.quillElement.setSelection(t.index+(this._content.length||0),0)):(this.quillElement.setText(this._content||""),this.quillElement.setSelection(this._content?.length||0,0)),this._closePopups()}_insertTextAtSelection(){let t=this.quillElement.getSelection(),r=t?t.index:this._selectionRange.index;this.quillElement.insertText(r,this._content||""),this.quillElement.setSelection(r+(this._content.length||0),0),this._closePopups()}_closePopups(){this._closeAiPanel(),this._closeDialog()}_closeAiPanel(){let t=this.quillElement.getModule("ai");t&&t.resetComponent()}_closeDialog(){let t=this.quillElement.getModule("dialog");t&&t.close()}render(){return u`
|
|
3100
3102
|
<zn-toolbar id="toolbar">
|
|
3101
3103
|
<slot name="tools"></slot>
|
|
3102
3104
|
</zn-toolbar>
|
|
@@ -3129,7 +3131,7 @@ ${wa(this.code(o,t))}
|
|
|
3129
3131
|
<slot>${this._getLoadingState()}</slot>
|
|
3130
3132
|
</div>
|
|
3131
3133
|
</dialog>
|
|
3132
|
-
`}};Ao.styles=T(qw),c([O()],Ao.prototype,"hasFocus",2),c([O()],Ao.prototype,"hasContentHeader",2),c([F("dialog")],Ao.prototype,"dialogEl",2),c([p({type:Boolean,reflect:!0})],Ao.prototype,"open",2),c([p()],Ao.prototype,"uri",2),c([K("open",{waitUntilFirstUpdate:!0})],Ao.prototype,"handleOpenChange",1);Ao.define("zn-editor-dialog");var Iw=E`@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}:host *,:host *::before,:host *::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)}.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{height:100%}: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-color-tab));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)}.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);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);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;box-shadow:0 2px 4px 0 rgba(var(--zn-color-text),0.1);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
|
|
3134
|
+
`}};Ao.styles=T(qw),c([O()],Ao.prototype,"hasFocus",2),c([O()],Ao.prototype,"hasContentHeader",2),c([F("dialog")],Ao.prototype,"dialogEl",2),c([p({type:Boolean,reflect:!0})],Ao.prototype,"open",2),c([p()],Ao.prototype,"uri",2),c([K("open",{waitUntilFirstUpdate:!0})],Ao.prototype,"handleOpenChange",1);Ao.define("zn-editor-dialog");var Iw=E`@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}:host *,:host *::before,:host *::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)}.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{height:100%}: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-color-tab));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)}.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);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);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;box-shadow:0 2px 4px 0 rgba(var(--zn-color-text),0.1);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 Ut=class extends C{constructor(){super(...arguments);this.hasSlotController=new Q(this,"help-text","description");this.formControlController=new nt(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`
|
|
3133
3135
|
<div class="switch__input-wrapper" part="base">
|
|
3134
3136
|
<input
|
|
3135
3137
|
class="switch__input"
|
|
@@ -3176,7 +3178,7 @@ ${wa(this.code(o,t))}
|
|
|
3176
3178
|
aria-hidden=${n?"false":"true"}>
|
|
3177
3179
|
<slot name="help-text">${this.helpText}</slot>
|
|
3178
3180
|
</div>
|
|
3179
|
-
</div>`}};Vt.styles=T(Iw),c([F('input[type="checkbox"]')],Vt.prototype,"input",2),c([O()],Vt.prototype,"hasFocus",2),c([p()],Vt.prototype,"title",2),c([p()],Vt.prototype,"name",2),c([p()],Vt.prototype,"value",2),c([p({attribute:"fallback"})],Vt.prototype,"fallbackValue",2),c([p({reflect:!0})],Vt.prototype,"size",2),c([p({type:Boolean,reflect:!0})],Vt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],Vt.prototype,"checked",2),c([re("checked")],Vt.prototype,"defaultChecked",2),c([p({reflect:!0})],Vt.prototype,"form",2),c([p({type:Boolean,reflect:!0})],Vt.prototype,"required",2),c([p({attribute:"help-text"})],Vt.prototype,"helpText",2),c([p({type:Boolean,attribute:"trigger-submit"})],Vt.prototype,"triggerSubmit",2),c([p({attribute:"on-text"})],Vt.prototype,"onText",2),c([p({attribute:"off-text"})],Vt.prototype,"offText",2),c([p()],Vt.prototype,"label",2),c([p()],Vt.prototype,"description",2),c([p({attribute:"label-position",reflect:!0})],Vt.prototype,"labelPosition",2),c([p({type:Boolean})],Vt.prototype,"inline",2);var wA=Vt;Vt.define("zn-toggle");var Dw=E`@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}:host *,:host *::before,:host *::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)}.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{height:100%}: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);box-shadow:var(--zn-shadow-x-small);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 wt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(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 Q(this,"description");this.hasFocus=!1;this.title="";this.name="";this.size="medium";this.disabled=!1;this.checked=!1;this.indeterminate=!1;this.contained=!1;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.hasSlotController.test("label"),a=this.hasSlotController.test("label-tooltip"),s=this.label||n,l=this.checked||this.indeterminate?this.checkedColor||this.color:this.uncheckedColor||this.color;return u`
|
|
3181
|
+
</div>`}};Ut.styles=T(Iw),c([F('input[type="checkbox"]')],Ut.prototype,"input",2),c([O()],Ut.prototype,"hasFocus",2),c([p()],Ut.prototype,"title",2),c([p()],Ut.prototype,"name",2),c([p()],Ut.prototype,"value",2),c([p({attribute:"fallback"})],Ut.prototype,"fallbackValue",2),c([p({reflect:!0})],Ut.prototype,"size",2),c([p({type:Boolean,reflect:!0})],Ut.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],Ut.prototype,"checked",2),c([re("checked")],Ut.prototype,"defaultChecked",2),c([p({reflect:!0})],Ut.prototype,"form",2),c([p({type:Boolean,reflect:!0})],Ut.prototype,"required",2),c([p({attribute:"help-text"})],Ut.prototype,"helpText",2),c([p({type:Boolean,attribute:"trigger-submit"})],Ut.prototype,"triggerSubmit",2),c([p({attribute:"on-text"})],Ut.prototype,"onText",2),c([p({attribute:"off-text"})],Ut.prototype,"offText",2),c([p()],Ut.prototype,"label",2),c([p()],Ut.prototype,"description",2),c([p({attribute:"label-position",reflect:!0})],Ut.prototype,"labelPosition",2),c([p({type:Boolean})],Ut.prototype,"inline",2);var wA=Ut;Ut.define("zn-toggle");var Dw=E`@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}:host *,:host *::before,:host *::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)}.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{height:100%}: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);box-shadow:var(--zn-shadow-x-small);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 wt=class extends C{constructor(){super(...arguments);this.formControlController=new nt(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 Q(this,"description");this.hasFocus=!1;this.title="";this.name="";this.size="medium";this.disabled=!1;this.checked=!1;this.indeterminate=!1;this.contained=!1;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.hasSlotController.test("label"),a=this.hasSlotController.test("label-tooltip"),s=this.label||n,l=this.checked||this.indeterminate?this.checkedColor||this.color:this.uncheckedColor||this.color;return u`
|
|
3180
3182
|
<div
|
|
3181
3183
|
class=${D({"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":s})}>
|
|
3182
3184
|
|
|
@@ -3853,7 +3855,7 @@ ${wa(this.code(o,t))}
|
|
|
3853
3855
|
<div slot="prefix" class="color-swatch color-swatch--${t.toLowerCase()}"></div>
|
|
3854
3856
|
${t}
|
|
3855
3857
|
</zn-option>`)}
|
|
3856
|
-
</zn-select>`}};dr.styles=T(l2),dr.dependencies={"zn-select":ce,"zn-option":Oe},c([F("#select")],dr.prototype,"select",2),c([p()],dr.prototype,"name",2),c([p()],dr.prototype,"value",2),c([p()],dr.prototype,"label",2),c([p({attribute:"help-text"})],dr.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],dr.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],dr.prototype,"required",2),c([p({type:Boolean})],dr.prototype,"clearable",2),c([K("value",{waitUntilFirstUpdate:!0})],dr.prototype,"handleValueChange",1);var GA=dr;dr.define("zn-color-select");var c2=E`@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}:host *,:host *::before,:host *::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 Dr=class extends C{constructor(){super(...arguments);this.limit=-1;this.maxLevel=2;this.iconSize=20;this._buttons=[];this._originalButtons=[];this._resizeRafId=0;this.resizeObserver=new te(this,{target:null,callback:()=>{this._resizeRafId||(this._resizeRafId=requestAnimationFrame(()=>{this._resizeRafId=0,this.containerWidth=this.offsetWidth}))}})}async firstUpdated(t){super.firstUpdated(t);let r=this.querySelectorAll("zn-button");for(let n of r)await n.updateComplete;this._originalButtons=Array.from(r).map(n=>({button:n,width:Math.max(n.offsetWidth,150)})),this.querySelectorAll("zn-button").forEach(n=>{n.remove()}),this.containerWidth=this.parentNode?this.parentNode.offsetWidth:0,this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth))}watchContainerMaxWidth(){this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth)),this.calculateVisibleButtons()}connectedCallback(){super.connectedCallback(),this.containerWidth=this.offsetWidth,this.parentNode&&this.resizeObserver.observe(this.parentNode)}calculateVisibleButtons(){let t=this.containerWidth,r=0,n=0,a=0,s=0,l=t;this._buttons=[...this._originalButtons],l-=50,this._buttons.sort((m,f)=>{let b=m.button.hasAttribute("primary")?1:m.button.hasAttribute("secondary")?2:3,g=f.button.hasAttribute("primary")?1:f.button.hasAttribute("secondary")?2:3;return b-g}),this._buttons.forEach(m=>{s++,m.button.hasAttribute("primary")?r++:m.button.hasAttribute("secondary")&&n++,l-m.width>0?(l-=m.width,a++):l=0}),this.maxLevel<2?this.limit=this.limit>0?Math.min(this.limit,r):r:this.maxLevel<3&&(this.limit=this.limit>0?Math.min(this.limit,r+n):r+n),this.limit>-1&&(a=Math.min(a,this.limit));let d=this.shadowRoot?.querySelector(".button-menu__container");d&&(d.innerHTML="");let h=this.shadowRoot?.querySelector("zn-menu");h&&(h.innerHTML=""),this._buttons.forEach((m,f)=>{f<a&&(this.shadowRoot?.querySelector(".button-menu__container")?.appendChild(m.button),(m.button.hasAttribute("primary")||m.button.hasAttribute("secondary"))&&m.button.setAttribute("text",""))}),this.calculateMenuButtons(s,a,this._buttons)}calculateMenuButtons(t,r,n){let a=this.shadowRoot?.querySelector("zn-menu"),s=this.shadowRoot?.querySelector("zn-dropdown");if(a&&s){let d=new Set,h={};s.toggleAttribute("hidden",n.length===0||n.length<=r),r!==n.length&&t>0&&(n.forEach((m,f)=>{if(f>=r){let b=document.createElement("zn-menu-item");b.textContent=this.getButtonLabel(m.button),b.setAttribute("id",m.button.id||`zn-button-menu-item-${f}`),b.setAttribute("role","menuitem");let g=m.button.attributes;for(let _ of Array.from(g))_.name!=="icon"&&_.name!=="category"&&b.setAttribute(_.name,_.value);let v=m.button.getAttribute("icon");if(v){let _=document.createElement("zn-icon");_.setAttribute("src",v);let k=m.button.getAttribute("icon-library");k&&_.setAttribute("library",k),_.setAttribute("size","18"),_.setAttribute("slot","prefix"),b.appendChild(_)}let x=m.button.getAttribute("category")||"default";d.add(x),h[x]||(h[x]=[]),h[x].push(b)}}),d.forEach(m=>{if(m==="default")h[m].forEach(f=>{a.appendChild(f)});else if(h[m].length===1){let f=h[m][0];a.appendChild(f)}else{let f=document.createElement("zn-menu-item");f.innerText=m.charAt(0).toUpperCase()+m.slice(1);let b=document.createElement("zn-menu");b.setAttribute("slot","submenu"),b.setAttribute("variant",a.variant),h[m].forEach(g=>{b.appendChild(g)}),f.appendChild(b),a.appendChild(f)}}))}
|
|
3858
|
+
</zn-select>`}};dr.styles=T(l2),dr.dependencies={"zn-select":ce,"zn-option":Oe},c([F("#select")],dr.prototype,"select",2),c([p()],dr.prototype,"name",2),c([p()],dr.prototype,"value",2),c([p()],dr.prototype,"label",2),c([p({attribute:"help-text"})],dr.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],dr.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],dr.prototype,"required",2),c([p({type:Boolean})],dr.prototype,"clearable",2),c([K("value",{waitUntilFirstUpdate:!0})],dr.prototype,"handleValueChange",1);var GA=dr;dr.define("zn-color-select");var c2=E`@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}:host *,:host *::before,:host *::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 Dr=class extends C{constructor(){super(...arguments);this.limit=-1;this.maxLevel=2;this.iconSize=20;this._buttons=[];this._originalButtons=[];this._resizeRafId=0;this.resizeObserver=new te(this,{target:null,callback:()=>{this._resizeRafId||(this._resizeRafId=requestAnimationFrame(()=>{this._resizeRafId=0,this.containerWidth=this.offsetWidth}))}})}async firstUpdated(t){super.firstUpdated(t);let r=this.querySelectorAll("zn-button");for(let n of r)await n.updateComplete;this._originalButtons=Array.from(r).map(n=>({button:n,width:Math.max(n.offsetWidth,150)})),this.querySelectorAll("zn-button").forEach(n=>{n.remove()}),this.containerWidth=this.parentNode?this.parentNode.offsetWidth:0,this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth))}watchContainerMaxWidth(){this.maxWidth&&(this.containerWidth=Math.min(this.containerWidth,this.maxWidth)),this.calculateVisibleButtons()}connectedCallback(){super.connectedCallback(),this.containerWidth=this.offsetWidth,this.parentNode&&this.resizeObserver.observe(this.parentNode)}calculateVisibleButtons(){let t=this.containerWidth,r=0,n=0,a=0,s=0,l=t;this._buttons=[...this._originalButtons],l-=50,this._buttons.sort((m,f)=>{let b=m.button.hasAttribute("primary")?1:m.button.hasAttribute("secondary")?2:3,g=f.button.hasAttribute("primary")?1:f.button.hasAttribute("secondary")?2:3;return b-g}),this._buttons.forEach(m=>{s++,m.button.hasAttribute("primary")?r++:m.button.hasAttribute("secondary")&&n++,l-m.width>0?(l-=m.width,a++):l=0}),this.maxLevel<2?this.limit=this.limit>0?Math.min(this.limit,r):r:this.maxLevel<3&&(this.limit=this.limit>0?Math.min(this.limit,r+n):r+n),this.limit>-1&&(a=Math.min(a,this.limit));let d=this.shadowRoot?.querySelector(".button-menu__container");d&&(d.innerHTML="");let h=this.shadowRoot?.querySelector("zn-menu");h&&(h.innerHTML=""),this._buttons.forEach((m,f)=>{f<a&&(this.shadowRoot?.querySelector(".button-menu__container")?.appendChild(m.button),(m.button.hasAttribute("primary")||m.button.hasAttribute("secondary"))&&m.button.setAttribute("text",""))}),this.calculateMenuButtons(s,a,this._buttons)}calculateMenuButtons(t,r,n){let a=this.shadowRoot?.querySelector("zn-menu"),s=this.shadowRoot?.querySelector("zn-dropdown");if(a&&s){let d=new Set,h={};s.toggleAttribute("hidden",n.length===0||n.length<=r),r!==n.length&&t>0&&(n.forEach((m,f)=>{if(f>=r){let b=document.createElement("zn-menu-item");b.textContent=this.getButtonLabel(m.button),b.setAttribute("id",m.button.id||`zn-button-menu-item-${f}`),b.setAttribute("role","menuitem");let g=m.button.attributes;for(let _ of Array.from(g))_.name!=="icon"&&_.name!=="category"&&b.setAttribute(_.name,_.value);let v=m.button.getAttribute("icon");if(v){let _=document.createElement("zn-icon");_.setAttribute("src",v);let k=m.button.getAttribute("icon-library");k&&_.setAttribute("library",k),_.setAttribute("size","18"),_.setAttribute("slot","prefix"),b.appendChild(_)}let x=m.button.getAttribute("category")||"default";d.add(x),h[x]||(h[x]=[]),h[x].push(b)}}),d.forEach(m=>{if(m==="default")h[m].forEach(f=>{a.appendChild(f)});else if(h[m].length===1){let f=h[m][0];a.appendChild(f)}else{let f=document.createElement("zn-menu-item");f.innerText=m.charAt(0).toUpperCase()+m.slice(1);let b=document.createElement("zn-menu");b.setAttribute("slot","submenu"),b.setAttribute("variant",a.variant),h[m].forEach(g=>{b.appendChild(g)}),f.appendChild(b),a.appendChild(f)}}))}Pt("zn-confirm",this,"").forEach(d=>{d.updateTriggers()})}getButtonLabel(t){let r=t.shadowRoot?.querySelector('slot[part="label"]');return((r?[...r.assignedNodes({flatten:!0})].map(s=>s.textContent??"").join("").trim():"")||t.content||t.getAttribute("content")||t.caption||t.getAttribute("caption")||t.tooltip||t.getAttribute("tooltip")||t.getAttribute("aria-label")||t.button?.innerText||t.textContent||"").trim()}render(){return u`
|
|
3857
3859
|
<div class="${D({"button-menu":!0,"button-menu--no-padding":this.noPadding,"button-menu--no-gap":this.noGap})}">
|
|
3858
3860
|
<div class="button-menu__container"></div>
|
|
3859
3861
|
<zn-dropdown placement="bottom-end">
|
|
@@ -4056,7 +4058,7 @@ ${wa(this.code(o,t))}
|
|
|
4056
4058
|
${r?u`
|
|
4057
4059
|
<slot slot="footer" name="footer" @slotchange="${this._handleSlotChange}"></slot>`:""}
|
|
4058
4060
|
</div>
|
|
4059
|
-
`}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=
|
|
4061
|
+
`}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=Pt("a[href]",r,"");if(n.length===0)return;let a=t.innerHTML,s=new Set(["png","jpg","jpeg","gif","bmp","webp","svg","heic","tiff","tif","avif"]);n.forEach(l=>{let d=new Set,h=l.querySelector("zn-tile"),m=(h?.caption??h?.getAttribute?.("caption")??"").trim();m&&d.add(m);let f=(l.getAttribute("download")||"").trim();f&&d.add(f);let b=l.getAttribute("href")||"";d.forEach(g=>{let v=(g||"").trim();if(!v)return;let x=v.includes("/")?v.split("/").pop():v,_=x.toLowerCase(),k=_.includes(".")?_.split(".").pop():"";if(k&&!s.has(k))return;let N=x.replace(/"/g,""");a=a.replace(`[image: ${x}]`,()=>`<img src="${b}" alt="${N}" style="max-height: 500px; max-width: 100%">`)})}),t.innerHTML=a}getTextSections(){let t=this.querySelector('[slot="text"]'),r=[];if(t){let a=t.innerText.replace(/<br\s*\/?>/gi,`
|
|
4060
4062
|
`).split(`
|
|
4061
4063
|
`),s=null,l=!1,d="text",h=a.some(m=>m.startsWith(">"));a.forEach(m=>{let f=m;if((f.startsWith("On")&&f.endsWith("wrote:")||f.startsWith("From:"))&&!h&&(l=!0),f.startsWith("--")&&(l=!1),d=l||f.startsWith(">")?"reply":"text",f.startsWith("Sent from")&&(d="reply"),f.trim()===""&&s==="reply"&&(d="reply"),d==="reply"&&f.startsWith(">")&&(f=f.substring(1).trim()),s===d){if(r.length===0){r.push({lines:[f],type:d}),s=d;return}r[r.length-1].lines.push(f)}else r.push({lines:[f],type:d}),s=d})}return this._textRows=r,this._textRows}showReply(t){let n=t.target.nextElementSibling;n&&n.classList.toggle("hidden")}};je.styles=T(g2),c([p()],je.prototype,"time",2),c([p()],je.prototype,"sender",2),c([p()],je.prototype,"avatar",2),c([p()],je.prototype,"subject",2),c([p({attribute:"subject-placeholder"})],je.prototype,"subjectPlaceholder",2),c([p({type:Boolean,reflect:!0})],je.prototype,"outbound",2),c([p({type:Boolean,attribute:"no-collapse"})],je.prototype,"noCollapse",2),c([p({type:Boolean,reflect:!0})],je.prototype,"short",2),c([p({attribute:"default-display",reflect:!0})],je.prototype,"defaultDisplay",2),c([Fg({slot:"html",flatten:!0})],je.prototype,"htmlNodes",2),c([Hg("iframe")],je.prototype,"iframe",2),c([O()],je.prototype,"attachmentCount",2);var tL=je;je.define("zn-content-block");var b2=E`@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}:host *,:host *::before,:host *::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 Hi=class extends C{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`
|
|
4062
4064
|
<zn-button part="search-button"
|
|
@@ -4068,7 +4070,7 @@ ${wa(this.code(o,t))}
|
|
|
4068
4070
|
`}render(){return u`
|
|
4069
4071
|
<slot></slot>
|
|
4070
4072
|
${this.hasSubmitButton?"":this.renderDefaultButton()}
|
|
4071
|
-
`}};Hi.styles=T(b2),c([p()],Hi.prototype,"button",2);var eL=Hi;Hi.define("zn-filter-wrapper");var v2=E`@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}:host *,:host *::before,:host *::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}.container{padding-bottom:50px}.container--scroll{height:100%;width:100%;overflow:hidden;position:relative}.container--scroll .scroll-content{height:100%;width:100%;overflow:auto;box-sizing:border-box}.setting-container__dropdown{z-index:10;position:absolute;border-radius:50%;width:32px;height:32px;padding:4px;background:rgba(var(--zn-panel,0.8));box-shadow:var(--zn-shadow-small);opacity:0.7;transition-duration:0.3s;transition-property:opacity}.setting-container__dropdown:hover{background:rgba(var(--zn-panel,1))}.setting-container__dropdown--top-end{top:var(--zn-base-gap);right:calc(var(--zn-base-gap) + var(--zn-gutter));bottom:auto}.setting-container__dropdown--top-start{top:var(--zn-base-gap);right:auto;left:calc(var(--zn-base-gap) + var(--zn-gutter));bottom:auto}.setting-container__dropdown--bottom-end{bottom:calc(var(--zn-base-gap) + var(--zn-scroll-footer-height,0px));right:calc(var(--zn-base-gap) + var(--zn-gutter));top:auto}.setting-container__dropdown--bottom-start{bottom:calc(var(--zn-base-gap) + var(--zn-scroll-footer-height,0px));left:calc(var(--zn-base-gap) + var(--zn-gutter));top:auto}.setting-container__dropdown[open],.setting-container__dropdown:hover{opacity:1}.setting-container__toggle-button::part(icon){rotate:0deg;transition:rotate 0.9s ease-in-out,color 0.9s ease-in-out}.setting-container__dropdown[open] .setting-container__toggle-button::part(icon),.setting-container__toggle-button:hover::part(icon){color:rgb(var(--zn-primary));cursor:pointer;rotate:380deg}zn-button{border-radius:var(--zn-border-radius)}.pull-tab{position:absolute;top:0;right:calc(var(--zn-base-gap) + var(--zn-gutter));z-index:20;display:flex;flex-direction:column;align-items:flex-end;max-height:100%}.pull-tab__panel{display:grid;grid-template-rows:0fr;min-height:0;overflow:hidden;background-color:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-top:none;border-bottom-width:0;border-radius:0 0 0 var(--zn-border-radius);transition:grid-template-rows 0.22s ease,border-bottom-width 0s linear 0.22s;will-change:grid-template-rows}.pull-tab--open .pull-tab__panel{grid-template-rows:1fr;border-bottom-width:1px;transition:grid-template-rows 0.22s ease,border-bottom-width 0s linear 0s}.pull-tab__panel-content{min-height:0;overflow:hidden}.pull-tab__panel-content .settings-container__dropdown-content{border:none;box-shadow:none;border-radius:0;margin-bottom:0;max-width:none;width:auto}.pull-tab--expanded .pull-tab__panel-content{overflow-y:auto}.pull-tab__tab{flex-shrink:0;background-color:rgb(var(--zn-panel));color:rgb(var(--zn-text-heading));border:1px solid rgb(var(--zn-border-color));border-top:none;border-radius:0 0 10px 10px;padding:var(--zn-spacing-x-small);cursor:pointer;display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);max-height:36px;overflow:hidden;margin-top:-1px}.pull-tab__tab:hover{background-color:rgb(var(--zn-shadow))}.pull-tab__tab:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:-2px}.settings-container__dropdown-content{display:flex;flex-direction:column;gap:var(--zn-spacing-small);background-color:rgb(var(--zn-panel));padding:var(--zn-spacing-small);box-shadow:var(--zn-shadow-small);border-radius:var(--zn-border-radius);max-width:var(--zn-size-mpanel);width:-moz-fit-content;width:fit-content;z-index:20;border:1px solid rgb(var(--zn-border-color));margin-bottom:10px}`;var to=class extends C{constructor(){super(...arguments);this.filters=[];this.position="bottom-start";this.pullTab=!1;this.open=!1;this.panelExpanded=!1;this._mutationObserver=new Lt(this,{target:null,config:{childList:!0,subtree:!0,attributes:!0},callback:t=>{for(let r of t)if(!(r.type==="attributes"&&(r.attributeName==="hidden"||this.filters.some(n=>n.toggleAttribute===r.attributeName)))){this.scheduleUpdateFilters();break}}});this._updateFiltersScheduled=!1;this._hiddenElements=new Set;this.handleDocumentMouseDown=t=>{if(!this.open)return;let r=this.shadowRoot?.querySelector(".pull-tab");r&&t.composedPath().includes(r)||this.hidePullTab()};this.togglePullTab=()=>{this.open?this.hidePullTab():(this.open=!0,document.addEventListener("mousedown",this.handleDocumentMouseDown,!0),this.emit("zn-show"))};this.handlePanelTransitionEnd=t=>{t.propertyName==="grid-template-rows"&&(this.panelExpanded=this.open)};this.handleContentSlotChange=()=>{this.updateFilters()};this.handleFiltersSlotChange=()=>{this.recomputeFiltersFromSlot(),this.updateFilters()}}connectedCallback(){if(super.connectedCallback(),this._store=new mr(window.sessionStorage,this.storeKey),this.recomputeFiltersFromSlot(),this.storeKey){let t=this._store.get("filters");if(t){let r=JSON.parse(t);this.filters=this.filters.map(n=>({...n,checked:Object.prototype.hasOwnProperty.call(r,n.attribute)?r[n.attribute]:n.checked}))}}this.updateFilters(),this._mutationObserver.observe(this)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0),super.disconnectedCallback()}hidePullTab(){this.open=!1,this.panelExpanded=!1,document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0),this.emit("zn-hide")}scheduleUpdateFilters(){this._updateFiltersScheduled||(this._updateFiltersScheduled=!0,Promise.resolve().then(()=>{this._updateFiltersScheduled=!1,this.updateFilters()}))}recomputeFiltersFromSlot(){let t=new Map(this.filters.map(a=>[a.attribute,a.checked])),r=this.querySelectorAll('[slot="filter"]'),n=[];r.forEach(a=>{let s=a.getAttribute("attribute");if(!s)return;let l=a.getAttribute("default")==="true",d=t.has(s)?!!t.get(s):l,h=a.textContent||"Unnamed Filter",m=a.getAttribute("item-selector")||"*",f=a.getAttribute("toggle-attribute")||void 0;n.push({attribute:s,checked:d,label:h,itemSelector:m,toggleAttribute:f})}),this.filters=n}updateSingleFilter(t,r){let n,a=t.attribute==="*"?"":`[${t.attribute}]`;t.itemSelector&&t.itemSelector.startsWith(">")?n=
|
|
4073
|
+
`}};Hi.styles=T(b2),c([p()],Hi.prototype,"button",2);var eL=Hi;Hi.define("zn-filter-wrapper");var v2=E`@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}:host *,:host *::before,:host *::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}.container{padding-bottom:50px}.container--scroll{height:100%;width:100%;overflow:hidden;position:relative}.container--scroll .scroll-content{height:100%;width:100%;overflow:auto;box-sizing:border-box}.setting-container__dropdown{z-index:10;position:absolute;border-radius:50%;width:32px;height:32px;padding:4px;background:rgba(var(--zn-panel,0.8));box-shadow:var(--zn-shadow-small);opacity:0.7;transition-duration:0.3s;transition-property:opacity}.setting-container__dropdown:hover{background:rgba(var(--zn-panel,1))}.setting-container__dropdown--top-end{top:var(--zn-base-gap);right:calc(var(--zn-base-gap) + var(--zn-gutter));bottom:auto}.setting-container__dropdown--top-start{top:var(--zn-base-gap);right:auto;left:calc(var(--zn-base-gap) + var(--zn-gutter));bottom:auto}.setting-container__dropdown--bottom-end{bottom:calc(var(--zn-base-gap) + var(--zn-scroll-footer-height,0px));right:calc(var(--zn-base-gap) + var(--zn-gutter));top:auto}.setting-container__dropdown--bottom-start{bottom:calc(var(--zn-base-gap) + var(--zn-scroll-footer-height,0px));left:calc(var(--zn-base-gap) + var(--zn-gutter));top:auto}.setting-container__dropdown[open],.setting-container__dropdown:hover{opacity:1}.setting-container__toggle-button::part(icon){rotate:0deg;transition:rotate 0.9s ease-in-out,color 0.9s ease-in-out}.setting-container__dropdown[open] .setting-container__toggle-button::part(icon),.setting-container__toggle-button:hover::part(icon){color:rgb(var(--zn-primary));cursor:pointer;rotate:380deg}zn-button{border-radius:var(--zn-border-radius)}.pull-tab{position:absolute;top:0;right:calc(var(--zn-base-gap) + var(--zn-gutter));z-index:20;display:flex;flex-direction:column;align-items:flex-end;max-height:100%}.pull-tab__panel{display:grid;grid-template-rows:0fr;min-height:0;overflow:hidden;background-color:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-top:none;border-bottom-width:0;border-radius:0 0 0 var(--zn-border-radius);transition:grid-template-rows 0.22s ease,border-bottom-width 0s linear 0.22s;will-change:grid-template-rows}.pull-tab--open .pull-tab__panel{grid-template-rows:1fr;border-bottom-width:1px;transition:grid-template-rows 0.22s ease,border-bottom-width 0s linear 0s}.pull-tab__panel-content{min-height:0;overflow:hidden}.pull-tab__panel-content .settings-container__dropdown-content{border:none;box-shadow:none;border-radius:0;margin-bottom:0;max-width:none;width:auto}.pull-tab--expanded .pull-tab__panel-content{overflow-y:auto}.pull-tab__tab{flex-shrink:0;background-color:rgb(var(--zn-panel));color:rgb(var(--zn-text-heading));border:1px solid rgb(var(--zn-border-color));border-top:none;border-radius:0 0 10px 10px;padding:var(--zn-spacing-x-small);cursor:pointer;display:inline-flex;align-items:center;gap:var(--zn-spacing-x-small);max-height:36px;overflow:hidden;margin-top:-1px}.pull-tab__tab:hover{background-color:rgb(var(--zn-shadow))}.pull-tab__tab:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:-2px}.settings-container__dropdown-content{display:flex;flex-direction:column;gap:var(--zn-spacing-small);background-color:rgb(var(--zn-panel));padding:var(--zn-spacing-small);box-shadow:var(--zn-shadow-small);border-radius:var(--zn-border-radius);max-width:var(--zn-size-mpanel);width:-moz-fit-content;width:fit-content;z-index:20;border:1px solid rgb(var(--zn-border-color));margin-bottom:10px}`;var to=class extends C{constructor(){super(...arguments);this.filters=[];this.position="bottom-start";this.pullTab=!1;this.open=!1;this.panelExpanded=!1;this._mutationObserver=new Lt(this,{target:null,config:{childList:!0,subtree:!0,attributes:!0},callback:t=>{for(let r of t)if(!(r.type==="attributes"&&(r.attributeName==="hidden"||this.filters.some(n=>n.toggleAttribute===r.attributeName)))){this.scheduleUpdateFilters();break}}});this._updateFiltersScheduled=!1;this._hiddenElements=new Set;this.handleDocumentMouseDown=t=>{if(!this.open)return;let r=this.shadowRoot?.querySelector(".pull-tab");r&&t.composedPath().includes(r)||this.hidePullTab()};this.togglePullTab=()=>{this.open?this.hidePullTab():(this.open=!0,document.addEventListener("mousedown",this.handleDocumentMouseDown,!0),this.emit("zn-show"))};this.handlePanelTransitionEnd=t=>{t.propertyName==="grid-template-rows"&&(this.panelExpanded=this.open)};this.handleContentSlotChange=()=>{this.updateFilters()};this.handleFiltersSlotChange=()=>{this.recomputeFiltersFromSlot(),this.updateFilters()}}connectedCallback(){if(super.connectedCallback(),this._store=new mr(window.sessionStorage,this.storeKey),this.recomputeFiltersFromSlot(),this.storeKey){let t=this._store.get("filters");if(t){let r=JSON.parse(t);this.filters=this.filters.map(n=>({...n,checked:Object.prototype.hasOwnProperty.call(r,n.attribute)?r[n.attribute]:n.checked}))}}this.updateFilters(),this._mutationObserver.observe(this)}disconnectedCallback(){document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0),super.disconnectedCallback()}hidePullTab(){this.open=!1,this.panelExpanded=!1,document.removeEventListener("mousedown",this.handleDocumentMouseDown,!0),this.emit("zn-hide")}scheduleUpdateFilters(){this._updateFiltersScheduled||(this._updateFiltersScheduled=!0,Promise.resolve().then(()=>{this._updateFiltersScheduled=!1,this.updateFilters()}))}recomputeFiltersFromSlot(){let t=new Map(this.filters.map(a=>[a.attribute,a.checked])),r=this.querySelectorAll('[slot="filter"]'),n=[];r.forEach(a=>{let s=a.getAttribute("attribute");if(!s)return;let l=a.getAttribute("default")==="true",d=t.has(s)?!!t.get(s):l,h=a.textContent||"Unnamed Filter",m=a.getAttribute("item-selector")||"*",f=a.getAttribute("toggle-attribute")||void 0;n.push({attribute:s,checked:d,label:h,itemSelector:m,toggleAttribute:f})}),this.filters=n}updateSingleFilter(t,r){let n,a=t.attribute==="*"?"":`[${t.attribute}]`;t.itemSelector&&t.itemSelector.startsWith(">")?n=Pt(t.itemSelector.substring(1)+a,this,""):n=this.querySelectorAll(t.itemSelector+a),n.forEach(s=>{if(t.toggleAttribute){r?s.removeAttribute(t.toggleAttribute):s.setAttribute(t.toggleAttribute,"true");return}r?this.filters.some(d=>{if(d.attribute===t.attribute||d.checked||d.toggleAttribute)return!1;let h=d.attribute==="*"?"":`[${d.attribute}]`,m;return d.itemSelector&&d.itemSelector.startsWith(">")?m=Pt(d.itemSelector.substring(1)+h,this,""):m=this.querySelectorAll(d.itemSelector+h),Array.from(m).includes(s)})||(s.removeAttribute("hidden"),this._hiddenElements.delete(s)):(s.setAttribute("hidden","true"),this._hiddenElements.add(s))})}updateFilters(){this._hiddenElements.forEach(t=>t.removeAttribute("hidden")),this._hiddenElements.clear(),this.filters.forEach(t=>{this.updateSingleFilter(t,t.checked)})}updateFilter(t){let r=t.target.getAttribute("data-attribute"),n=t.target.isChecked,a=this.filters.find(s=>s.attribute===r);if(a){if(this.filters=this.filters.map(s=>s.attribute===r?{...s,checked:n}:s),this.storeKey){let s=this.filters.reduce((l,d)=>(l[d.attribute]=d.checked,l),{});this._store.set("filters",JSON.stringify(s))}this.updateSingleFilter(a,n)}}render(){let t="top-start";switch(this.position){case"top-end":t="bottom-end";break;case"top-start":t="bottom-start";break;case"bottom-end":t="top-end";break;case"bottom-start":t="top-start";break}return u`
|
|
4072
4074
|
<div class="${D({container:!0,"container--scroll":!this.noScroll})}">
|
|
4073
4075
|
<div class="scroll-content">
|
|
4074
4076
|
<slot @slotchange="${this.handleContentSlotChange}"></slot>
|
|
@@ -4139,7 +4141,7 @@ ${wa(this.code(o,t))}
|
|
|
4139
4141
|
<zn-option value="${t.url}">${t.name}</zn-option>
|
|
4140
4142
|
`)}
|
|
4141
4143
|
</zn-select>
|
|
4142
|
-
`}};Mo.styles=T(z2),c([O()],Mo.prototype,"_isPlaying",2),c([p()],Mo.prototype,"value",2),c([p()],Mo.prototype,"label",2),c([p()],Mo.prototype,"placeholder",2),c([p({type:Object})],Mo.prototype,"files",2);var iL=Mo;Mo.define("zn-audio-select");var w2=se(class extends Xe{constructor(){super(...arguments),this.key=V}render(i,o){return this.key=i,o}update(i,[o,t]){return o!==this.key&&(Fa(i),this.key=o),t}});var _2=E`.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{height:100%}:host{display:block}.translations{padding:var(--zn-spacing-small) var(--zn-spacing-medium)}.translations__header{display:flex;align-items:center;justify-content:space-between;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-2x-small);min-height:var(--zn-input-height-small)}.translations__actions{display:flex;align-items:center;gap:var(--zn-spacing-x-small);margin-left:auto}.translations__body{display:block}.form-control__label{margin-bottom:0 !important;white-space:nowrap}.translations--flush,.translations--grouped{padding:0}.translations--grouped .translations__header{margin-bottom:0}`;var
|
|
4144
|
+
`}};Mo.styles=T(z2),c([O()],Mo.prototype,"_isPlaying",2),c([p()],Mo.prototype,"value",2),c([p()],Mo.prototype,"label",2),c([p()],Mo.prototype,"placeholder",2),c([p({type:Object})],Mo.prototype,"files",2);var iL=Mo;Mo.define("zn-audio-select");var w2=se(class extends Xe{constructor(){super(...arguments),this.key=V}render(i,o){return this.key=i,o}update(i,[o,t]){return o!==this.key&&(Fa(i),this.key=o),t}});var _2=E`.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{height:100%}:host{display:block}.translations{padding:var(--zn-spacing-small) var(--zn-spacing-medium)}.translations__header{display:flex;align-items:center;justify-content:space-between;gap:var(--zn-spacing-small);margin-bottom:var(--zn-spacing-2x-small);min-height:var(--zn-input-height-small)}.translations__actions{display:flex;align-items:center;gap:var(--zn-spacing-x-small);margin-left:auto}.translations__body{display:block}.form-control__label{margin-bottom:0 !important;white-space:nowrap}.translations--flush,.translations--grouped{padding:0}.translations--grouped .translations__header{margin-bottom:0}`;var Rt=class extends C{constructor(){super();this.formControlController=new nt(this);this.hasSlotController=new Q(this,"label","expand","help-text");this.name="";this.value='{"en":""}';this.label="";this.helpText="";this.disabled=!1;this.required=!1;this.flush=!1;this.inputType="text";this.slashItems=[];this.slashPreset="";this.slashTrigger="/";this.slashHeading="Insert";this.slashHideKeys=!1;this.grouped=!1;this.languages={en:"EN"};this.values={};this._activeLanguage="en";this._overflowIndex=-1;this._lastObservedWidth=0;this._measureRafId=0;this.handleLanguageAdd=t=>{t.stopPropagation();let n=t.detail.element.getAttribute("data-path");n&&(this.values={...this.values,[n]:""},this._activeLanguage=n,this.updateValue())};this.handleOverflowSelect=t=>{t.stopPropagation();let n=t.detail.element.getAttribute("data-path");n&&this.switchLanguage(n)};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 _d)return;!(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)&&!t.defaultPrevented&&!t.isComposing&&this.formControlController.submit()}};this.handleSubmit=()=>{this.formControlController.submit()};new te(this,{callback:t=>{let r=t[0]?.contentRect.width??0;Math.abs(r-this._lastObservedWidth)<1||(this._lastObservedWidth=r,this._overflowIndex!==-1?this._overflowIndex=-1:this._scheduleLangOverflow())}})}get validity(){return ge}get validationMessage(){return""}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(){}setActiveLanguage(t){this.addLanguageKey(t),this._activeLanguage=t,this.requestUpdate()}getActiveLanguage(){return this._activeLanguage}addLanguageKey(t){Object.prototype.hasOwnProperty.call(this.values,t)||(this.values={...this.values,[t]:""},this.updateValue())}getValueLanguages(){return Object.keys(this.values)}disconnectedCallback(){super.disconnectedCallback(),this._measureRafId&&(cancelAnimationFrame(this._measureRafId),this._measureRafId=0)}firstUpdated(){this.formControlController.updateValidity()}updated(t){super.updated(t),this._scheduleLangOverflow()}_scheduleLangOverflow(){this._measureRafId||(this._measureRafId=requestAnimationFrame(()=>{this._measureRafId=0,this._computeLangOverflow()}))}_computeLangOverflow(){let t=this.shadowRoot?.querySelector(".translations__language-group");if(!t)return;let r=Array.from(t.querySelectorAll("zn-button[data-lang-btn]"));if(r.length<2){this._overflowIndex!==-1&&(this._overflowIndex=-1);return}let n=r[0].getBoundingClientRect().top,a=-1;for(let l=1;l<r.length;l++)if(r[l].getBoundingClientRect().top>n+1){a=l;break}if(a===-1){let l=t.querySelector("[data-lang-overflow], [data-lang-add]");l&&l.getBoundingClientRect().top>n+1&&(a=r.length)}if(a===-1)return;let s=this._overflowIndex===-1?a:Math.max(1,Math.min(a,this._overflowIndex-1));s!==this._overflowIndex&&(this._overflowIndex=s)}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&&(!this._activeLanguage||!Object.prototype.hasOwnProperty.call(this.values,this._activeLanguage)&&this._activeLanguage!=="en"))){let a=Object.keys(this.values);a.length>0?this._activeLanguage=a[0]:this._activeLanguage="en"}}updateValue(){this.value=JSON.stringify(this.values),this.emit("zn-change"),this.emit("zn-input")}isRTLLanguage(t){return t.startsWith("ar")||t==="he"||t==="iw"}render(){let t=Object.entries(this.languages).filter(([k])=>k!=="en"&&!Object.prototype.hasOwnProperty.call(this.values,k)).map(([k,N])=>({title:N,type:"dropdown",path:k})),r=Object.keys(this.values);r.includes("en")||r.unshift("en");let n=this._overflowIndex===-1?r.length:this._overflowIndex,a=r.slice(0,n),s=r.slice(n),l=s.map(k=>({title:k.toUpperCase(),type:"dropdown",path:k,icon:k===this._activeLanguage?"check":""})),d=this.values[this._activeLanguage]??"",h=this.isRTLLanguage(this._activeLanguage),m=this.hasSlotController.test("label"),f=this.label?!0:m,b=this.hasSlotController.test("expand"),g=this.hasSlotController.test("help-text"),v=this.helpText?!0:g,x=Object.keys(this.languages).length>1,_=!this.grouped&&(x||b);return u`
|
|
4143
4145
|
<div part="form-control"
|
|
4144
4146
|
class="${D({translations:!0,"translations--grouped":this.grouped,"translations--flush":this.flush,"form-control":!0,"form-control--medium":!0,"form-control--has-label":f,"form-control--has-help-text":v})}"
|
|
4145
4147
|
@keydown="${this.handleKeyDown}">
|
|
@@ -4208,6 +4210,7 @@ ${wa(this.code(o,t))}
|
|
|
4208
4210
|
slash-trigger="${this.slashTrigger}"
|
|
4209
4211
|
slash-heading="${this.slashHeading}"
|
|
4210
4212
|
slash-preset="${this.slashPreset}"
|
|
4213
|
+
?slash-hide-keys="${this.slashHideKeys}"
|
|
4211
4214
|
.slashItems="${this.slashItems}"
|
|
4212
4215
|
.slashItemsProvider="${this.slashItemsProvider}"
|
|
4213
4216
|
@zn-change="${this.handleValueUpdate}"
|
|
@@ -4223,7 +4226,7 @@ ${wa(this.code(o,t))}
|
|
|
4223
4226
|
</div>
|
|
4224
4227
|
`:V}
|
|
4225
4228
|
</div>
|
|
4226
|
-
`}};
|
|
4229
|
+
`}};Rt.styles=T(_2),Rt.dependencies={"zn-button":Ct,"zn-button-group":In,"zn-dropdown":ir,"zn-inline-edit":_d,"zn-input":Ce,"zn-menu":Vo},c([p()],Rt.prototype,"name",2),c([p()],Rt.prototype,"value",2),c([p()],Rt.prototype,"label",2),c([p({attribute:"help-text"})],Rt.prototype,"helpText",2),c([p({type:Boolean,reflect:!0})],Rt.prototype,"disabled",2),c([p({type:Boolean,reflect:!0})],Rt.prototype,"required",2),c([p({type:Boolean,reflect:!0})],Rt.prototype,"flush",2),c([p({attribute:"input-type"})],Rt.prototype,"inputType",2),c([p({attribute:"textarea-rows",type:Number})],Rt.prototype,"textareaRows",2),c([p({attribute:"slash-items",converter:{fromAttribute:t=>pi(t),toAttribute:t=>JSON.stringify(t)}})],Rt.prototype,"slashItems",2),c([p({attribute:"slash-preset"})],Rt.prototype,"slashPreset",2),c([p({attribute:"slash-trigger"})],Rt.prototype,"slashTrigger",2),c([p({attribute:"slash-heading"})],Rt.prototype,"slashHeading",2),c([p({attribute:"slash-hide-keys",type:Boolean})],Rt.prototype,"slashHideKeys",2),c([p({attribute:!1})],Rt.prototype,"slashItemsProvider",2),c([p({type:Boolean,reflect:!0})],Rt.prototype,"grouped",2),c([p({type:Object})],Rt.prototype,"languages",2),c([p({type:Object})],Rt.prototype,"values",2),c([O()],Rt.prototype,"_activeLanguage",2),c([O()],Rt.prototype,"_overflowIndex",2);var aL=Rt;Rt.define("zn-translations");var k2=E`@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}:host *,:host *::before,:host *::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 mo=class extends C{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`
|
|
4227
4230
|
<div class="key" @click="${this._handleClick}">
|
|
4228
4231
|
<zn-chip
|
|
4229
4232
|
.icon="${this.icon}"
|
|
@@ -4235,7 +4238,7 @@ ${wa(this.code(o,t))}
|
|
|
4235
4238
|
<slot></slot>
|
|
4236
4239
|
</div>
|
|
4237
4240
|
</div>
|
|
4238
|
-
`}};mo.styles=T(k2),c([p()],mo.prototype,"icon",2),c([p()],mo.prototype,"attribute",2),c([p()],mo.prototype,"value",2),c([p()],mo.prototype,"color",2),c([p({type:Boolean,reflect:!0})],mo.prototype,"active",2),c([p({attribute:"icon-size",type:Number})],mo.prototype,"iconSize",2);var sL=mo;mo.define("zn-key");var C2=E`@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}:host *,:host *::before,:host *::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}.key-container--scroll{height:100%;width:100%;overflow:hidden;position:relative}.key-container__content{height:100%;width:100%;overflow:auto;box-sizing:border-box}.key-container__keys{display:flex;flex-direction:column;gap:var(--zn-spacing-medium)}::slotted(zn-key){flex:0 0 auto}::slotted([hidden]){display:none !important}`;var eo=class extends C{constructor(){super(...arguments);this.position="bottom-start";this.target="";this.itemSelector="[data-type]";this.filterAttribute="";this.noScroll=!1;this._hiddenElements=new Set;this._targetElement=null}connectedCallback(){super.connectedCallback(),this.updateFilters()}firstUpdated(){if(this.target){let t=this.getRootNode();this._targetElement=t.getElementById?t.getElementById(this.target):document.getElementById(this.target)}this.updateFilters()}_handleKeyChange(){this.updateFilters(),this.emit("zn-change")}getKeys(){let t=[];return this.keysSlot&&t.push(...this.keysSlot.assignedElements({flatten:!0})),this.defaultSlot&&t.push(...this.defaultSlot.assignedElements({flatten:!0})),t.filter(r=>r.tagName.toLowerCase()==="zn-key")}updateFilters(){let t=this.getKeys();if(!t||t.length===0)return;if(this._hiddenElements.forEach(s=>s.removeAttribute("hidden")),this._hiddenElements.clear(),this.target&&!this._targetElement){let s=this.getRootNode();this._targetElement=s.getElementById?.(this.target)??document.getElementById(this.target)}let r=this._targetElement??null;if(r||(r=(this.defaultSlot?.assignedElements({flatten:!0})??[]).some(l=>l.tagName!=="ZN-KEY")?this:this.parentElement??this.parentNode),!r)return;let n=this.filterAttribute?`[${this.filterAttribute}]`:this.itemSelector;
|
|
4241
|
+
`}};mo.styles=T(k2),c([p()],mo.prototype,"icon",2),c([p()],mo.prototype,"attribute",2),c([p()],mo.prototype,"value",2),c([p()],mo.prototype,"color",2),c([p({type:Boolean,reflect:!0})],mo.prototype,"active",2),c([p({attribute:"icon-size",type:Number})],mo.prototype,"iconSize",2);var sL=mo;mo.define("zn-key");var C2=E`@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}:host *,:host *::before,:host *::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}.key-container--scroll{height:100%;width:100%;overflow:hidden;position:relative}.key-container__content{height:100%;width:100%;overflow:auto;box-sizing:border-box}.key-container__keys{display:flex;flex-direction:column;gap:var(--zn-spacing-medium)}::slotted(zn-key){flex:0 0 auto}::slotted([hidden]){display:none !important}`;var eo=class extends C{constructor(){super(...arguments);this.position="bottom-start";this.target="";this.itemSelector="[data-type]";this.filterAttribute="";this.noScroll=!1;this._hiddenElements=new Set;this._targetElement=null}connectedCallback(){super.connectedCallback(),this.updateFilters()}firstUpdated(){if(this.target){let t=this.getRootNode();this._targetElement=t.getElementById?t.getElementById(this.target):document.getElementById(this.target)}this.updateFilters()}_handleKeyChange(){this.updateFilters(),this.emit("zn-change")}getKeys(){let t=[];return this.keysSlot&&t.push(...this.keysSlot.assignedElements({flatten:!0})),this.defaultSlot&&t.push(...this.defaultSlot.assignedElements({flatten:!0})),t.filter(r=>r.tagName.toLowerCase()==="zn-key")}updateFilters(){let t=this.getKeys();if(!t||t.length===0)return;if(this._hiddenElements.forEach(s=>s.removeAttribute("hidden")),this._hiddenElements.clear(),this.target&&!this._targetElement){let s=this.getRootNode();this._targetElement=s.getElementById?.(this.target)??document.getElementById(this.target)}let r=this._targetElement??null;if(r||(r=(this.defaultSlot?.assignedElements({flatten:!0})??[]).some(l=>l.tagName!=="ZN-KEY")?this:this.parentElement??this.parentNode),!r)return;let n=this.filterAttribute?`[${this.filterAttribute}]`:this.itemSelector;Pt(n,r,"").forEach(s=>{if(s===this)return;t.some(d=>!d.active&&this.itemMatchesKey(s,d))&&(s.setAttribute("hidden",""),this._hiddenElements.add(s))})}itemMatchesKey(t,r){if(this.filterAttribute){let n=t.getAttribute(this.filterAttribute);if(!n)return!1;let a=r.attribute;return a?n.split(/\s+/).includes(a):!1}if(r.attribute&&r.value){let n=t.getAttribute(r.attribute);return n?n.split(/\s+/).includes(r.value):!1}return r.attribute?t.hasAttribute(r.attribute):!1}render(){return u`
|
|
4239
4242
|
<div class="${D({"key-container":!0,"key-container--scroll":!this.noScroll})}" @zn-change="${this._handleKeyChange}">
|
|
4240
4243
|
${this.target?"":u`
|
|
4241
4244
|
<div class="key-container__content">
|
|
@@ -4243,7 +4246,7 @@ ${wa(this.code(o,t))}
|
|
|
4243
4246
|
</div>
|
|
4244
4247
|
`}
|
|
4245
4248
|
</div>
|
|
4246
|
-
`}};eo.styles=T(C2),c([F('slot[name="keys"]')],eo.prototype,"keysSlot",2),c([F("slot:not([name])")],eo.prototype,"defaultSlot",2),c([p()],eo.prototype,"position",2),c([p()],eo.prototype,"target",2),c([p({attribute:"item-selector"})],eo.prototype,"itemSelector",2),c([p({attribute:"filter-attribute"})],eo.prototype,"filterAttribute",2),c([p({attribute:"no-scroll",type:Boolean})],eo.prototype,"noScroll",2);var lL=eo;eo.define("zn-key-container");var S2=E`: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)}[t=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 !important}.zn-bt{border-top-style:solid;border-top-width:1px !important}.zn-bb{border-bottom-style:solid;border-bottom-width:1px !important}.zn-bl{border-left-style:solid;border-left-width:1px !important}.zn-br{border-right-style:solid;border-right-width:1px !important}.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}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}button,.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(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 !important;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-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(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-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(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)}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);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}:host{display:inline-block;cursor:pointer}:host([disabled]){cursor:wait}.animated-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(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}.animated-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}.animated-button{position:relative;overflow:hidden;min-width:150px;min-height:40px;gap:8px;transition:transform var(--zn-transition-fast) ease,opacity var(--zn-transition-fast) ease;border:none;font-size:1rem;font-family:inherit;cursor:pointer}.animated-button:hover:not(:disabled){opacity:0.9}.animated-button:active:not(:disabled){transform:scale(0.98)}.animated-button:disabled{cursor:wait}.animated-button:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:2px}.animated-button__content{display:inline-flex;align-items:center;justify-content:center;gap:8px;position:relative;z-index:1}.animated-button__text{font-weight:600;line-height:1}.animated-button__icon{display:inline-flex;flex-shrink:0}.animated-button__spinner{display:inline-flex;flex-shrink:0;animation:spin 1s linear infinite}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.animated-button__shimmer{position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.3) 50%,rgba(255,255,255,0) 100%);animation:shimmer 1.5s infinite}@keyframes shimmer{0%{left:-100%}100%{left:100%}}.animated-button--idle{background-color:rgb(var(--zn-primary)) !important}.animated-button--processing{background-color:rgb(var(--zn-primary)) !important;cursor:wait}.animated-button--success{background-color:rgb(var(--zn-primary)) !important;cursor:default}.animated-button--success::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgb(var(--zn-color-success));animation:successFill var(--zn-transition-slow) ease-out forwards;z-index:0}.animated-button--success .animated-button__content{z-index:1}.animated-button--success .animated-button__icon--success{opacity:0;animation:iconFadeIn 0.3s ease-out 0.4s forwards}.animated-button--success .animated-button__tick{stroke-dasharray:30;stroke-dashoffset:30;animation:tickSwoosh 0.5s ease-out 0.4s forwards}@keyframes successFill{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@keyframes iconFadeIn{to{opacity:1}}@keyframes tickSwoosh{0%{stroke-dashoffset:30}100%{stroke-dashoffset:0}}.animated-button--failure{background-color:rgb(var(--zn-color-error)) !important;cursor:not-allowed}.animated-button--failure .animated-button__icon--failure{animation:failureShake var(--zn-transition-medium) ease-out}@keyframes failureShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@media (prefers-reduced-motion:reduce){.animated-button{transition:none}.animated-button--success::before{animation:none;transform:translateY(0)}.animated-button__shimmer{animation:none;display:none}.animated-button__spinner{animation:none}.animated-button__icon--success{animation:none;opacity:1}.animated-button__tick{animation:none;stroke-dashoffset:0}.animated-button__icon--failure{animation:none}}`;var De=class extends C{constructor(){super(...arguments);this.currentState="idle";this.errorMessage="";this.idleText="Purchase";this.processingText="Purchasing";this.successText="Success";this.failureText="Failed";this.redirectUrl="";this.redirectDelay=1500;this.failureResetDelay=2e3;this.disabled=!1;this.name="";this.value=""}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeouts()}clearTimeouts(){this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=void 0),this.redirectTimeout&&(clearTimeout(this.redirectTimeout),this.redirectTimeout=void 0)}purchase(){this.currentState!=="idle"||this.disabled||this.handlePurchase()}setSuccess(){this.clearTimeouts(),this.currentState="success",this.scheduleRedirect()}setFailure(t=""){this.clearTimeouts(),this.errorMessage=t,this.currentState="failure",this.scheduleReset()}reset(){this.clearTimeouts(),this.currentState="idle",this.errorMessage=""}handlePurchase(){this.clearTimeouts(),this.currentState="processing",this.emit("zn-purchase",{cancelable:!0,detail:{value:this.value,setSuccess:()=>this.setSuccess(),setFailure:r=>this.setFailure(r)}}).defaultPrevented&&(this.currentState="idle")}scheduleRedirect(){this.redirectTimeout=window.setTimeout(()=>{this.redirectUrl&&(window.location.href=this.redirectUrl),this.emit("zn-redirect",{detail:{url:this.redirectUrl}})},this.redirectDelay)}scheduleReset(){this.resetTimeout=window.setTimeout(()=>{this.reset()},this.failureResetDelay)}handleClick(){this.currentState==="idle"&&!this.disabled&&this.handlePurchase()}render(){let t=this.disabled||this.currentState!=="idle",r=this.currentState==="processing",n=this.currentState==="success",a=this.currentState==="failure",s={"animated-button":!0,"animated-button--idle":this.currentState==="idle","animated-button--processing":this.currentState==="processing","animated-button--success":this.currentState==="success","animated-button--failure":this.currentState==="failure"},l=this.idleText;return this.currentState==="processing"&&(l=this.processingText),this.currentState==="success"&&(l=this.successText),this.currentState==="failure"&&(l=this.failureText),u`
|
|
4249
|
+
`}};eo.styles=T(C2),c([F('slot[name="keys"]')],eo.prototype,"keysSlot",2),c([F("slot:not([name])")],eo.prototype,"defaultSlot",2),c([p()],eo.prototype,"position",2),c([p()],eo.prototype,"target",2),c([p({attribute:"item-selector"})],eo.prototype,"itemSelector",2),c([p({attribute:"filter-attribute"})],eo.prototype,"filterAttribute",2),c([p({attribute:"no-scroll",type:Boolean})],eo.prototype,"noScroll",2);var lL=eo;eo.define("zn-key-container");var S2=E`: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)}[t=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 !important}.zn-bt{border-top-style:solid;border-top-width:1px !important}.zn-bb{border-bottom-style:solid;border-bottom-width:1px !important}.zn-bl{border-left-style:solid;border-left-width:1px !important}.zn-br{border-right-style:solid;border-right-width:1px !important}.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}@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}button,.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(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 !important;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-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(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-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(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)}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);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}:host{display:inline-block;cursor:pointer}:host([disabled]){cursor:wait}.animated-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(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}.animated-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}.animated-button{position:relative;overflow:hidden;min-width:150px;min-height:40px;gap:8px;transition:transform var(--zn-transition-fast) ease,opacity var(--zn-transition-fast) ease;border:none;font-size:1rem;font-family:inherit;cursor:pointer}.animated-button:hover:not(:disabled){opacity:0.9}.animated-button:active:not(:disabled){transform:scale(0.98)}.animated-button:disabled{cursor:wait}.animated-button:focus-visible{outline:2px solid rgb(var(--zn-primary));outline-offset:2px}.animated-button__content{display:inline-flex;align-items:center;justify-content:center;gap:8px;position:relative;z-index:1}.animated-button__text{font-weight:600;line-height:1}.animated-button__icon{display:inline-flex;flex-shrink:0}.animated-button__spinner{display:inline-flex;flex-shrink:0;animation:spin 1s linear infinite}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.animated-button__shimmer{position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.3) 50%,rgba(255,255,255,0) 100%);animation:shimmer 1.5s infinite}@keyframes shimmer{0%{left:-100%}100%{left:100%}}.animated-button--idle{background-color:rgb(var(--zn-primary)) !important}.animated-button--processing{background-color:rgb(var(--zn-primary)) !important;cursor:wait}.animated-button--success{background-color:rgb(var(--zn-primary)) !important;cursor:default}.animated-button--success::before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgb(var(--zn-color-success));animation:successFill var(--zn-transition-slow) ease-out forwards;z-index:0}.animated-button--success .animated-button__content{z-index:1}.animated-button--success .animated-button__icon--success{opacity:0;animation:iconFadeIn 0.3s ease-out 0.4s forwards}.animated-button--success .animated-button__tick{stroke-dasharray:30;stroke-dashoffset:30;animation:tickSwoosh 0.5s ease-out 0.4s forwards}@keyframes successFill{0%{transform:translateY(100%)}100%{transform:translateY(0)}}@keyframes iconFadeIn{to{opacity:1}}@keyframes tickSwoosh{0%{stroke-dashoffset:30}100%{stroke-dashoffset:0}}.animated-button--failure{background-color:rgb(var(--zn-color-error)) !important;cursor:not-allowed}.animated-button--failure .animated-button__icon--failure{animation:failureShake var(--zn-transition-medium) ease-out}@keyframes failureShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@media (prefers-reduced-motion:reduce){.animated-button{transition:none}.animated-button--success::before{animation:none;transform:translateY(0)}.animated-button__shimmer{animation:none;display:none}.animated-button__spinner{animation:none}.animated-button__icon--success{animation:none;opacity:1}.animated-button__tick{animation:none;stroke-dashoffset:0}.animated-button__icon--failure{animation:none}}`;var Ne=class extends C{constructor(){super(...arguments);this.currentState="idle";this.errorMessage="";this.idleText="Purchase";this.processingText="Purchasing";this.successText="Success";this.failureText="Failed";this.redirectUrl="";this.redirectDelay=1500;this.failureResetDelay=2e3;this.disabled=!1;this.name="";this.value=""}disconnectedCallback(){super.disconnectedCallback(),this.clearTimeouts()}clearTimeouts(){this.resetTimeout&&(clearTimeout(this.resetTimeout),this.resetTimeout=void 0),this.redirectTimeout&&(clearTimeout(this.redirectTimeout),this.redirectTimeout=void 0)}purchase(){this.currentState!=="idle"||this.disabled||this.handlePurchase()}setSuccess(){this.clearTimeouts(),this.currentState="success",this.scheduleRedirect()}setFailure(t=""){this.clearTimeouts(),this.errorMessage=t,this.currentState="failure",this.scheduleReset()}reset(){this.clearTimeouts(),this.currentState="idle",this.errorMessage=""}handlePurchase(){this.clearTimeouts(),this.currentState="processing",this.emit("zn-purchase",{cancelable:!0,detail:{value:this.value,setSuccess:()=>this.setSuccess(),setFailure:r=>this.setFailure(r)}}).defaultPrevented&&(this.currentState="idle")}scheduleRedirect(){this.redirectTimeout=window.setTimeout(()=>{this.redirectUrl&&(window.location.href=this.redirectUrl),this.emit("zn-redirect",{detail:{url:this.redirectUrl}})},this.redirectDelay)}scheduleReset(){this.resetTimeout=window.setTimeout(()=>{this.reset()},this.failureResetDelay)}handleClick(){this.currentState==="idle"&&!this.disabled&&this.handlePurchase()}render(){let t=this.disabled||this.currentState!=="idle",r=this.currentState==="processing",n=this.currentState==="success",a=this.currentState==="failure",s={"animated-button":!0,"animated-button--idle":this.currentState==="idle","animated-button--processing":this.currentState==="processing","animated-button--success":this.currentState==="success","animated-button--failure":this.currentState==="failure"},l=this.idleText;return this.currentState==="processing"&&(l=this.processingText),this.currentState==="success"&&(l=this.successText),this.currentState==="failure"&&(l=this.failureText),u`
|
|
4247
4250
|
<button
|
|
4248
4251
|
class=${D(s)}
|
|
4249
4252
|
?disabled=${t}
|
|
@@ -4302,7 +4305,7 @@ ${wa(this.code(o,t))}
|
|
|
4302
4305
|
</span>
|
|
4303
4306
|
`}
|
|
4304
4307
|
</button>
|
|
4305
|
-
`}};
|
|
4308
|
+
`}};Ne.styles=T(S2),Ne.dependencies={"zn-icon":li},c([O()],Ne.prototype,"currentState",2),c([O()],Ne.prototype,"errorMessage",2),c([p({attribute:"idle-text"})],Ne.prototype,"idleText",2),c([p({attribute:"processing-text"})],Ne.prototype,"processingText",2),c([p({attribute:"success-text"})],Ne.prototype,"successText",2),c([p({attribute:"failure-text"})],Ne.prototype,"failureText",2),c([p({attribute:"redirect-url"})],Ne.prototype,"redirectUrl",2),c([p({type:Number,attribute:"redirect-delay"})],Ne.prototype,"redirectDelay",2),c([p({type:Number,attribute:"failure-reset-delay"})],Ne.prototype,"failureResetDelay",2),c([p({type:Boolean,reflect:!0})],Ne.prototype,"disabled",2),c([p()],Ne.prototype,"name",2),c([p()],Ne.prototype,"value",2);var cL=Ne;Ne.define("zn-animated-button");var E2=E`:host{display:block}.translation-group__languages{display:flex;align-items:center}`;var fo=class extends Xt{constructor(){super();this._slotController=new Q(this,"actions","footer");this.label="";this.languages={en:"EN"};this._activeLanguage="en";this._activatedLanguages=["en"];this._overflowIndex=-1;this._lastObservedWidth=0;this._measureRafId=0;this.handleSlotChange=()=>{this.syncChildren()};this.handleLanguageAdd=t=>{t.stopPropagation();let n=t.detail.element.getAttribute("data-path");n&&(this._activatedLanguages.includes(n)||(this._activatedLanguages=[...this._activatedLanguages,n]),this.getAllTranslations().forEach(a=>a.addLanguageKey(n)),this.switchLanguage(n))};this.handleOverflowSelect=t=>{t.stopPropagation();let n=t.detail.element.getAttribute("data-path");n&&this.switchLanguage(n)};new te(this,{callback:t=>{let r=t[0]?.contentRect.width??0;Math.abs(r-this._lastObservedWidth)<1||(this._lastObservedWidth=r,this._overflowIndex!==-1?this._overflowIndex=-1:this._scheduleLangOverflow())}})}disconnectedCallback(){super.disconnectedCallback(),this._measureRafId&&(cancelAnimationFrame(this._measureRafId),this._measureRafId=0)}firstUpdated(t){super.firstUpdated(t),this.syncChildren()}updated(t){super.updated(t),t.has("languages")&&this.syncChildLanguages(),this._scheduleLangOverflow()}_scheduleLangOverflow(){this._measureRafId||(this._measureRafId=requestAnimationFrame(()=>{this._measureRafId=0,this._computeLangOverflow()}))}_computeLangOverflow(){let t=this.shadowRoot?.querySelector(".translation-group__languages zn-button-group");if(!t)return;let r=Array.from(t.querySelectorAll("zn-button[data-lang-btn]"));if(r.length<2){this._overflowIndex!==-1&&(this._overflowIndex=-1);return}let n=r[0].getBoundingClientRect().top,a=-1;for(let l=1;l<r.length;l++)if(r[l].getBoundingClientRect().top>n+1){a=l;break}if(a===-1){let l=t.querySelector("[data-lang-overflow], [data-lang-add]");l&&l.getBoundingClientRect().top>n+1&&(a=r.length)}if(a===-1)return;let s=this._overflowIndex===-1?a:Math.max(1,Math.min(a,this._overflowIndex-1));s!==this._overflowIndex&&(this._overflowIndex=s)}getAllTranslations(){return[...this.querySelectorAll("zn-translations")]}syncChildren(){let t=this.getAllTranslations(),r=new Set(this._activatedLanguages);t.forEach(n=>{n.getValueLanguages().forEach(a=>r.add(a))}),this._activatedLanguages=[...r],t.forEach(n=>{n.grouped=!0,n.languages=this.languages;for(let a of this._activatedLanguages)n.addLanguageKey(a);n.setActiveLanguage(this._activeLanguage)})}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=Object.entries(this.languages).filter(([g])=>g!=="en"&&!this._activatedLanguages.includes(g)).map(([g,v])=>({title:v,type:"dropdown",path:g})),s=[...this._activatedLanguages];s.includes("en")||s.unshift("en");let l=this._overflowIndex===-1?s.length:this._overflowIndex,d=s.slice(0,l),h=s.slice(l),m=h.map(g=>({title:g.toUpperCase(),type:"dropdown",path:g,icon:g===this._activeLanguage?"check":""})),f=Object.keys(this.languages).length>1,b=n||f||t;return u`
|
|
4306
4309
|
<div class="${D({panel:!0,"panel--flush":this.flush,"panel--transparent":this.transparent,"panel--has-header":b,"panel--has-actions":f||t,"panel--has-footer":r})}">
|
|
4307
4310
|
|
|
4308
4311
|
<div class="panel__inner">
|
|
@@ -4503,7 +4506,7 @@ ${this.parser.parse(i)}</blockquote>
|
|
|
4503
4506
|
${i}</tr>
|
|
4504
4507
|
`}tablecell(i){let o=this.parser.parseInline(i.tokens),t=i.header?"th":"td";return(i.align?`<${t} align="${i.align}">`:`<${t}>`)+o+`</${t}>
|
|
4505
4508
|
`}strong({tokens:i}){return`<strong>${this.parser.parseInline(i)}</strong>`}em({tokens:i}){return`<em>${this.parser.parseInline(i)}</em>`}codespan({text:i}){return`<code>${En(i,!0)}</code>`}br(i){return"<br>"}del({tokens:i}){return`<del>${this.parser.parseInline(i)}</del>`}link({href:i,title:o,tokens:t}){let r=this.parser.parseInline(t),n=M2(i);if(n===null)return r;i=n;let a='<a href="'+i+'"';return o&&(a+=' title="'+En(o)+'"'),a+=">"+r+"</a>",a}image({href:i,title:o,text:t,tokens:r}){r&&(t=this.parser.parseInline(r,this.parser.textRenderer));let n=M2(i);if(n===null)return En(t);i=n;let a=`<img src="${i}" alt="${En(t)}"`;return o&&(a+=` title="${En(o)}"`),a+=">",a}text(i){return"tokens"in i&&i.tokens?this.parser.parseInline(i.tokens):"escaped"in i&&i.escaped?i.text:En(i.text)}},qf=class{strong({text:i}){return i}em({text:i}){return i}codespan({text:i}){return i}del({text:i}){return i}html({text:i}){return i}text({text:i}){return i}link({text:i}){return""+i}image({text:i}){return""+i}br(){return""}checkbox({raw:i}){return i}},en=class kf{constructor(o){B(this,"options");B(this,"renderer");B(this,"textRenderer");this.options=o||Aa,this.options.renderer=this.options.renderer||new Qp,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qf}static parse(o,t){return new kf(t).parse(o)}static parseInline(o,t){return new kf(t).parseInline(o)}parse(o){this.renderer.parser=this;let t="";for(let r=0;r<o.length;r++){let n=o[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(o,t=this.renderer){this.renderer.parser=this;let r="";for(let n=0;n<o.length;n++){let a=o[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}},Kp,xc=(Kp=class{constructor(i){B(this,"options");B(this,"block");this.options=i||Aa}preprocess(i){return i}postprocess(i){return i}processAllTokens(i){return i}emStrongMask(i){return i}provideLexer(i=this.block){return i?tn.lex:tn.lexInline}provideParser(i=this.block){return i?en.parse:en.parseInline}},B(Kp,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),B(Kp,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Kp),tM=class{constructor(...i){B(this,"defaults",Cf());B(this,"options",this.setOptions);B(this,"parse",this.parseMarkdown(!0));B(this,"parseInline",this.parseMarkdown(!1));B(this,"Parser",en);B(this,"Renderer",Qp);B(this,"TextRenderer",qf);B(this,"Lexer",tn);B(this,"Tokenizer",Xp);B(this,"Hooks",xc);this.use(...i)}walkTokens(i,o){let t=[];for(let r of i)switch(t=t.concat(o.call(this,r)),r.type){case"table":{let n=r;for(let a of n.header)t=t.concat(this.walkTokens(a.tokens,o));for(let a of n.rows)for(let s of a)t=t.concat(this.walkTokens(s.tokens,o));break}case"list":{let n=r;t=t.concat(this.walkTokens(n.items,o));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,o))}):n.tokens&&(t=t.concat(this.walkTokens(n.tokens,o)))}}return t}use(...i){let o=this.defaults.extensions||{renderers:{},childTokens:{}};return i.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=o.renderers[n.name];a?o.renderers[n.name]=function(...s){let l=n.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:o.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=o[n.level];a?a.unshift(n.tokenizer):o[n.level]=[n.tokenizer],n.start&&(n.level==="block"?o.startBlock?o.startBlock.push(n.start):o.startBlock=[n.start]:n.level==="inline"&&(o.startInline?o.startInline.push(n.start):o.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(o.childTokens[n.name]=n.childTokens)}),r.extensions=o),t.renderer){let n=this.defaults.renderer||new Qp(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],d=n[s];n[s]=(...h)=>{let m=l.apply(n,h);return m===!1&&(m=d.apply(n,h)),m||""}}r.renderer=n}if(t.tokenizer){let n=this.defaults.tokenizer||new Xp(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],d=n[s];n[s]=(...h)=>{let m=l.apply(n,h);return m===!1&&(m=d.apply(n,h)),m}}r.tokenizer=n}if(t.hooks){let n=this.defaults.hooks||new xc;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],d=n[s];xc.passThroughHooks.has(a)?n[s]=h=>{if(this.defaults.async&&xc.passThroughHooksRespectAsync.has(a))return(async()=>{let f=await l.call(n,h);return d.call(n,f)})();let m=l.call(n,h);return d.call(n,m)}:n[s]=(...h)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(n,h);return f===!1&&(f=await d.apply(n,h)),f})();let m=l.apply(n,h);return m===!1&&(m=d.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(i){return this.defaults={...this.defaults,...i},this}lexer(i,o){return tn.lex(i,o??this.defaults)}parser(i,o){return en.parse(i,o??this.defaults)}parseMarkdown(i){return(o,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 o>"u"||o===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof o!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(o)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=i),n.async)return(async()=>{let s=n.hooks?await n.hooks.preprocess(o):o,l=await(n.hooks?await n.hooks.provideLexer(i):i?tn.lex:tn.lexInline)(s,n),d=n.hooks?await n.hooks.processAllTokens(l):l;n.walkTokens&&await Promise.all(this.walkTokens(d,n.walkTokens));let h=await(n.hooks?await n.hooks.provideParser(i):i?en.parse:en.parseInline)(d,n);return n.hooks?await n.hooks.postprocess(h):h})().catch(a);try{n.hooks&&(o=n.hooks.preprocess(o));let s=(n.hooks?n.hooks.provideLexer(i):i?tn.lex:tn.lexInline)(o,n);n.hooks&&(s=n.hooks.processAllTokens(s)),n.walkTokens&&this.walkTokens(s,n.walkTokens);let l=(n.hooks?n.hooks.provideParser(i):i?en.parse:en.parseInline)(s,n);return n.hooks&&(l=n.hooks.postprocess(l)),l}catch(s){return a(s)}}}onError(i,o){return t=>{if(t.message+=`
|
|
4506
|
-
Please report this to https://github.com/markedjs/marked.`,i){let r="<p>An error occurred:</p><pre>"+En(t.message+"",!0)+"</pre>";return o?Promise.resolve(r):r}if(o)return Promise.reject(t);throw t}}},$a=new tM;function Mt(i,o){return $a.parse(i,o)}Mt.options=Mt.setOptions=function(i){return $a.setOptions(i),Mt.defaults=$a.defaults,N2(Mt.defaults),Mt};Mt.getDefaults=Cf;Mt.defaults=Aa;Mt.use=function(...i){return $a.use(...i),Mt.defaults=$a.defaults,N2(Mt.defaults),Mt};Mt.walkTokens=function(i,o){return $a.walkTokens(i,o)};Mt.parseInline=$a.parseInline;Mt.Parser=en;Mt.parser=en.parse;Mt.Renderer=Qp;Mt.TextRenderer=qf;Mt.Lexer=tn;Mt.lexer=tn.lex;Mt.Tokenizer=Xp;Mt.Hooks=xc;Mt.parse=Mt;var
|
|
4509
|
+
Please report this to https://github.com/markedjs/marked.`,i){let r="<p>An error occurred:</p><pre>"+En(t.message+"",!0)+"</pre>";return o?Promise.resolve(r):r}if(o)return Promise.reject(t);throw t}}},$a=new tM;function Mt(i,o){return $a.parse(i,o)}Mt.options=Mt.setOptions=function(i){return $a.setOptions(i),Mt.defaults=$a.defaults,N2(Mt.defaults),Mt};Mt.getDefaults=Cf;Mt.defaults=Aa;Mt.use=function(...i){return $a.use(...i),Mt.defaults=$a.defaults,N2(Mt.defaults),Mt};Mt.walkTokens=function(i,o){return $a.walkTokens(i,o)};Mt.parseInline=$a.parseInline;Mt.Parser=en;Mt.parser=en.parse;Mt.Renderer=Qp;Mt.TextRenderer=qf;Mt.Lexer=tn;Mt.lexer=tn.lex;Mt.Tokenizer=Xp;Mt.Hooks=xc;Mt.parse=Mt;var P2t=Mt.options,H2t=Mt.setOptions,F2t=Mt.use,B2t=Mt.walkTokens,V2t=Mt.parseInline;var U2t=en.parse,j2t=tn.lex;var G2=E`@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}:host *,:host *::before,:host *::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 eM=[{mode:"editor",icon:"edit_note",label:"Editor"},{mode:"split",icon:"vertical_split",label:"Split"},{mode:"preview",icon:"visibility",label:"Preview"}],Zt=class extends Xt{constructor(){super(...arguments);this.formControlController=new nt(this,{assumeInteractionOn:["zn-input","zn-change"]});this.markdownSlotController=new Q(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,`
|
|
4507
4510
|
`).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=Mt.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,d=!!this.caption||n,h=this.viewMode==="editor"||this.viewMode==="split",m=this.viewMode==="preview"||this.viewMode==="split";return u`
|
|
4508
4511
|
<div part="base" class=${D({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":d,"panel--cosmic":this.cosmic,"panel--shadow":this.shadow})}>
|
|
4509
4512
|
|
|
@@ -4934,7 +4937,7 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(o,t){this.index++;let r=[],n=[];for
|
|
|
4934
4937
|
</div>
|
|
4935
4938
|
</div>`:""}
|
|
4936
4939
|
</div>
|
|
4937
|
-
`}};ro.styles=T(u_),ro.dependencies={"zn-icon":ct,"zn-button":Ct,"zn-dropdown":ir,"zn-menu":Vo,"zn-menu-item":Rn},c([p({attribute:!1})],ro.prototype,"node",2),c([p({attribute:!1})],ro.prototype,"type",2),c([p({type:Boolean,reflect:!0})],ro.prototype,"selected",2),c([p({type:Boolean,reflect:!0})],ro.prototype,"error",2),c([p({type:Boolean,reflect:!0})],ro.prototype,"dragging",2),c([p({type:Boolean,reflect:!0,attribute:"link-target"})],ro.prototype,"linkTarget",2);var m_=ro;ro.define("zn-flow-node");var f_=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;position:relative;width:100%;height:100%;overflow:hidden}.viewport{position:absolute;inset:0;overflow:hidden;background-color:rgb(var(--zn-color-body));background-image:radial-gradient(rgb(var(--zn-color-border)) 1px,transparent 1px);background-size:20px 20px;cursor:grab;touch-action:none}.viewport.grabbing,.viewport.grabbing *{cursor:grabbing !important}.viewport.connecting,.viewport.connecting *{cursor:crosshair !important}.viewport.resizing,.viewport.resizing *{cursor:nwse-resize !important}.viewport.linking{cursor:crosshair}.viewport.step-dragging .add-point{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid;box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 22%,transparent)}.connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.connections .wire{fill:none;stroke:rgb(var(--zn-color-primary));stroke-width:2}.connections .wire--stub{stroke:rgb(var(--zn-color-border-active));stroke-dasharray:4 4}.connections .wire--preview{stroke-dasharray:6 4}.connections .wire--loop{stroke:rgb(var(--zn-color-warning))}.connections marker path{fill:rgb(var(--zn-color-primary))}.connections marker#flow-arrow-loop path{fill:rgb(var(--zn-color-warning))}.add-point{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:-12px;padding:0;border-radius:50%;color:rgb(var(--zn-color-primary));background:rgb(var(--zn-panel));border:1px dashed rgb(var(--zn-color-border-active));cursor:pointer;transition:background 0.12s ease,color 0.12s ease}.add-point:hover{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid}.add-point--target{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid;box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 25%,transparent)}.add-point--wire{width:20px;height:20px;margin:-10px}.layer{position:absolute;top:0;left:0;transform-origin:0 0;width:0;height:0}.node-pos{position:absolute;top:0;left:0}.branch-pill{display:flex;align-items:center;justify-content:center;width:-moz-max-content;width:max-content;max-width:240px;box-sizing:border-box;text-align:center;overflow-wrap:anywhere;overflow:hidden;padding:0 18px;border-radius:10px;font:inherit;font-size:0.8125rem;font-weight:600;line-height:20px;color:rgb(var(--zn-text));background:color-mix(in srgb,rgb(var(--zn-color-primary)) 8%,rgb(var(--zn-panel)));border:1px solid color-mix(in srgb,rgb(var(--zn-color-primary)) 45%,transparent);cursor:pointer;transition:border-color 0.12s ease,box-shadow 0.12s ease}.branch-pill:hover{border-color:rgb(var(--zn-color-primary));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4)}.branch-pill--selected{border-color:rgb(var(--zn-color-primary));background:color-mix(in srgb,rgb(var(--zn-color-primary)) 16%,rgb(var(--zn-panel)))}.branch-pill--loop{background:color-mix(in srgb,rgb(var(--zn-color-warning)) 10%,rgb(var(--zn-panel)));border-color:color-mix(in srgb,rgb(var(--zn-color-warning)) 55%,transparent)}.branch-pill--loop:hover{border-color:rgb(var(--zn-color-warning))}.branch-pill--loop.branch-pill--selected{border-color:rgb(var(--zn-color-warning));background:color-mix(in srgb,rgb(var(--zn-color-warning)) 18%,rgb(var(--zn-panel)))}.branch-pill-wrap{position:absolute;top:0;left:0;transform:translateX(-50%);display:flex;align-items:stretch}.branch-pill-wrap::after{content:"";position:absolute;left:100%;top:0;width:40px;height:100%}.branch-pill-wrap:hover .branch-pill-delete{opacity:1;transform:translate(0,-50%);pointer-events:auto;transition-delay:0.15s}.branch-pill-port{position:absolute;z-index:1;left:50%;bottom:0;transform:translate(-50%,50%);width:11px;height:11px;box-sizing:border-box;border-radius:50%;background:rgb(var(--zn-panel));border:2px solid rgb(var(--zn-color-primary));cursor:pointer;transition:transform 0.12s ease,box-shadow 0.12s ease}.branch-pill-port:hover{transform:translate(-50%,50%) scale(1.35);box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 20%,transparent)}.branch-pill-delete{position:absolute;z-index:1;left:calc(100% + 8px);top:50%;transform:translate(-10px,-50%);display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:50%;background:rgb(var(--zn-color-error));color:white;cursor:pointer;opacity:0;pointer-events:none;transition:opacity 0.15s ease,transform 0.15s ease}.branch-pill-delete:hover{filter:brightness(1.1)}.drop-ghost{position:absolute;top:0;left:0;display:flex;align-items:center;gap:10px;padding:0 12px;border:2px dashed rgb(var(--zn-color-primary));border-radius:10px;background:color-mix(in srgb,rgb(var(--zn-color-primary)) 10%,rgb(var(--zn-panel)));opacity:0.9;pointer-events:none}.drop-ghost__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:8px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 16%,rgb(var(--zn-panel)))}.drop-ghost__label{font-size:0.8125rem;font-weight:600;color:rgb(var(--zn-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar{position:absolute;top:16px;display:flex;align-items:center;gap:2px;padding:3px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);z-index:2}.toolbar--history{left:16px}.toolbar--zoom{right:16px}.bin{position:absolute;right:16px;bottom:16px;z-index:2;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-panel));border:1px dashed rgb(var(--zn-color-border-active));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);transition:background 0.12s ease,color 0.12s ease,transform 0.12s ease}.bin--over{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-error));border-style:solid;border-color:rgb(var(--zn-color-error));transform:scale(1.12)}.note{position:absolute;display:flex;flex-direction:column;background:#fef9c3;border:1px solid #fde68a;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,0.12)}.note__resize{position:absolute;right:0;bottom:0;width:16px;height:16px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 0 50%,#d9c64a 50% 60%,transparent 60% 70%,#d9c64a 70% 80%,transparent 80%)}.note__bar{display:flex;justify-content:flex-end;height:20px;cursor:grab}.note__close{width:20px;height:20px;padding:0;font-size:14px;line-height:1;color:#92400e;background:transparent;cursor:pointer}.note__text{flex:1;margin:0;padding:0 10px 10px;resize:none;border:none;outline:none;background:transparent;font:inherit;font-size:0.8125rem;color:#713f12}`;var Gf=.25,g_=2,b_=.15,Wf=40,_M=20,Kf=20,v_=10,kM=8,ah=40,CM=20,Sc=Hs,me=class me extends C{constructor(){super(...arguments);this.nodes=[];this.connections=[];this.notes=[];this.selectedNodeId=null;this.errorNodes=new Set;this.movingNodeId=null;this.dragType=null;this.selectedBranch=null;this.zoom=1;this.panX=0;this.panY=0;this.drag=null;this._overBin=!1;this._dropGhost=null;this._linking=null;this._linkPos=null;this._linkTarget=null;this._linkClient=null;this._linkScrollRaf=null;this._dragMoved=!1;this._viewInitialised=!1;this._onWheel=t=>{if(t.composedPath().some(d=>d instanceof HTMLTextAreaElement))return;t.preventDefault(),this._viewInitialised=!0;let r=t.deltaMode===1?16:t.deltaMode===2?100:1,n=t.deltaX*r,a=t.deltaY*r;if(t.ctrlKey||t.metaKey){let d=Math.min(g_,Math.max(Gf,this.zoom*Math.exp(-a*.0015)));if(d===this.zoom)return;let h=this.getBoundingClientRect(),m=t.clientX-h.left,f=t.clientY-h.top,b=(m-this.panX)/this.zoom,g=(f-this.panY)/this.zoom;this.zoom=+d.toFixed(3),this.panX=Math.round(m-b*this.zoom),this.panY=Math.round(f-g*this.zoom);return}let s=t.shiftKey&&!n?a:n,l=t.shiftKey&&!n?0:a;this.panX-=Math.round(s),this.panY-=Math.round(l)};this._onBackgroundPointerDown=t=>{if(t.button===1){t.preventDefault(),this._viewInitialised=!0,this.drag={kind:"pan",ox:t.clientX,oy:t.clientY,px:this.panX,py:this.panY},this._setupWindow("grabbing");return}if(t.button===0){if(this._viewInitialised=!0,this._linking){let r=this._linking,n=this._linkTarget;if(this._cancelLink(),n){this._emit("flow-link-assign",{nodeId:r.nodeId,port:r.port,targetId:n});return}}this._emit("flow-node-select",{nodeId:null}),this.drag={kind:"pan",ox:t.clientX,oy:t.clientY,px:this.panX,py:this.panY},this._setupWindow("grabbing")}};this._onNodeGrab=t=>{if(this._linking){let a=this._linking;this._cancelLink(),a.nodeId!==t.detail.nodeId&&this._emit("flow-link-assign",{nodeId:a.nodeId,port:a.port,targetId:t.detail.nodeId});return}let r=this.nodes.find(a=>a.id===t.detail.nodeId);if(!r)return;let n=this.screenToCanvas(t.detail.clientX,t.detail.clientY);this.drag={kind:"node",id:r.id,offX:n.x-r.x,offY:n.y-r.y,startX:r.x,startY:r.y},this._dragMoved=!1,this._setupWindow("grabbing")};this._onNodeSelect=t=>{this._linking&&t.detail.nodeId&&t.stopPropagation()};this._onPortClick=t=>{let{nodeId:r}=t.detail;if(this._linking&&this._linking.nodeId!==r){let s=this._linking;this._cancelLink(),this._emit("flow-link-assign",{nodeId:s.nodeId,port:s.port,targetId:r});return}let n=this.nodes.find(s=>s.id===r);if(!n)return;let a=We(n,this._typeFor(n)).find(s=>!this.connections.some(l=>l.source.node===r&&l.source.port===s.id));this._startLink(r,a?.id??rh)};this._onLinkPointerMove=t=>{this._linkClient={x:t.clientX,y:t.clientY},this._updateLinkFromClient(t.clientX,t.clientY)};this._linkEdgeScroll=()=>{if(this._linkScrollRaf=null,!!this._linking){if(this._linkClient){let t=this.getBoundingClientRect(),r=48,n=14,a=m=>Math.min(n,Math.ceil((r-m)/r*n)),{x:s,y:l}=this._linkClient,d=0,h=0;s<t.left+r?d=a(s-t.left):s>t.right-r&&(d=-a(t.right-s)),l<t.top+r?h=a(l-t.top):l>t.bottom-r&&(h=-a(t.bottom-l)),(d||h)&&(this.panX+=d,this.panY+=h,this._updateLinkFromClient(s,l))}this._linkScrollRaf=requestAnimationFrame(this._linkEdgeScroll)}};this._onLinkKeyDown=t=>{t.key==="Escape"&&this._cancelLink()};this._cancelLink=()=>{this._linking&&(this._linking=null,this._linkPos=null,this._linkTarget=null,this._linkClient=null,this._linkScrollRaf!==null&&(cancelAnimationFrame(this._linkScrollRaf),this._linkScrollRaf=null),window.removeEventListener("pointermove",this._onLinkPointerMove),window.removeEventListener("keydown",this._onLinkKeyDown),window.removeEventListener("blur",this._cancelLink))};this._onPointerMove=t=>{if(!this.drag)return;if(this.drag.kind==="pan"){this.panX=this.drag.px+(t.clientX-this.drag.ox),this.panY=this.drag.py+(t.clientY-this.drag.oy);return}let r=this.screenToCanvas(t.clientX,t.clientY);if(this.drag.kind==="node"){this._overBin=this._binHit(t.clientX,t.clientY);let n=this.nodes.find(a=>a.id===this.drag.id);if(n){let a={x:Rr(r.x-this.drag.offX),y:Rr(r.y-this.drag.offY)},s=new Set(this.connections.filter(h=>h.target.node===n.id&&h.source.node!==n.id).map(h=>h.source.node)),l=h=>{let m={...n,...h},f=this.nodes.map(g=>g.id===n.id?m:g),b=g=>this.registry?.get(g);return f.some(g=>g!==m&&i_(m,g,b,f,this.connections))?!1:![...s].some(g=>{let v=f.find(x=>x.id===g);return!!v&&nh(v,b,f,this.connections)})},d=l(a)?a:l({x:a.x,y:n.y})?{x:a.x,y:n.y}:l({x:n.x,y:a.y})?{x:n.x,y:a.y}:null;d&&(d.x!==n.x||d.y!==n.y)&&(this._dragMoved||this._beginMove(),n.x=d.x,n.y=d.y,this.requestUpdate())}}else if(this.drag.kind==="note"){let n=this.notes.find(a=>a.id===this.drag.id);n&&(this._dragMoved||this._beginMove(),n.x=Rr(r.x-this.drag.offX),n.y=Rr(r.y-this.drag.offY),this.requestUpdate())}else if(this.drag.kind==="note-resize"){let n=this.notes.find(a=>a.id===this.drag.id);n&&(this._dragMoved||this._beginMove(),n.width=Math.max(s_,Rr(r.x-n.x)),n.height=Math.max(l_,Rr(r.y-n.y)),this.requestUpdate())}};this._onPointerUp=()=>{let t=this.drag,r=this._overBin;if(this.drag=null,this._overBin=!1,this._teardownWindow(),!!t){if(t.kind==="node"&&this._dragMoved&&r){let n=this.nodes.find(a=>a.id===t.id);n&&(n.x=t.startX,n.y=t.startY),this._emit("flow-node-action",{nodeId:t.id,action:"delete"});return}(t.kind==="node"||t.kind==="note"||t.kind==="note-resize")&&this._dragMoved&&this._emit("flow-change-commit")}};this._onViewportDragOver=t=>{if(!t.dataTransfer?.types.includes(Sc))return;this._viewInitialised=!0,t.preventDefault();let r=t.composedPath().some(a=>a instanceof Element&&a.classList.contains("add-point"));t.dataTransfer.dropEffect=r?"copy":"move";let n=this.screenToCanvas(t.clientX,t.clientY);this._dropGhost={x:Rr(n.x-ie/2),y:Rr(n.y-rr/2)}};this._onViewportDragLeave=t=>{let r=this.getBoundingClientRect();(t.clientX<r.left||t.clientX>r.right||t.clientY<r.top||t.clientY>r.bottom)&&(this._dropGhost=null)};this._clearDropGhost=()=>{this._dropGhost=null};this._onAddPointDragOver=t=>{t.dataTransfer?.types.includes(Sc)&&(t.preventDefault(),t.dataTransfer.dropEffect="copy")};this._onBinDragOver=t=>{t.dataTransfer?.types.includes(Sc)&&(t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="move",this._overBin=!0,this._dropGhost=null)};this._onBinDragLeave=()=>{this._overBin=!1};this._onBinDrop=t=>{t.preventDefault(),t.stopPropagation(),this._overBin=!1,this._dropGhost=null}}connectedCallback(){super.connectedCallback(),this.addEventListener("flow-node-grab",this._onNodeGrab),this.addEventListener("flow-node-select",this._onNodeSelect),this.addEventListener("flow-port-click",this._onPortClick),this.addEventListener("wheel",this._onWheel,{passive:!1})}disconnectedCallback(){this.removeEventListener("flow-node-grab",this._onNodeGrab),this.removeEventListener("flow-node-select",this._onNodeSelect),this.removeEventListener("flow-port-click",this._onPortClick),this.removeEventListener("wheel",this._onWheel),this._cancelLink(),this._teardownWindow(),super.disconnectedCallback()}updated(t){if(super.updated(t),this.style.setProperty("--flow-zoom",String(this.zoom)),t.has("dragType")&&!this.dragType&&(this._dropGhost=null),!this._viewInitialised&&this.nodes.length){let r=this.getBoundingClientRect();r.width&&r.height&&(this._viewInitialised=!0,this._resetView())}}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}screenToCanvas(t,r){let n=this.getBoundingClientRect();return{x:(t-n.left-this.panX)/this.zoom,y:(r-n.top-this.panY)/this.zoom}}_typeFor(t){return this.registry?.get(t.type)}_setupWindow(t=""){window.addEventListener("pointermove",this._onPointerMove),window.addEventListener("pointerup",this._onPointerUp),t&&(document.body.style.cursor=t)}_teardownWindow(){window.removeEventListener("pointermove",this._onPointerMove),window.removeEventListener("pointerup",this._onPointerUp),document.body.style.cursor=""}_onBranchPortClick(t,r){if(this._linking){let n=this._linking;this._cancelLink(),n.nodeId!==t&&this._emit("flow-link-assign",{nodeId:n.nodeId,port:n.port,targetId:t});return}this._startLink(t,r)}_startLink(t,r){this._linking={nodeId:t,port:r},this._linkPos=null,this._linkClient=null,window.addEventListener("pointermove",this._onLinkPointerMove),window.addEventListener("keydown",this._onLinkKeyDown),window.addEventListener("blur",this._cancelLink),this._linkScrollRaf=requestAnimationFrame(this._linkEdgeScroll)}_updateLinkFromClient(t,r){let n=this.screenToCanvas(t,r);this._linkPos=n;let a=this._linking;if(!a)return;let s=12,l=this.nodes.find(d=>d.id!==a.nodeId&&n.x>=d.x-s&&n.x<=d.x+ie+s&&n.y>=d.y-s&&n.y<=d.y+rr+s&&Vi(d,this._typeFor(d)).length>0);this._linkTarget=l?.id??null}_binHit(t,r){let n=this.shadowRoot?.querySelector(".bin")?.getBoundingClientRect();return!!n&&t>=n.left&&t<=n.right&&r>=n.top&&r<=n.bottom}_beginMove(){this._dragMoved=!0,this._emit("flow-interaction-start")}_outputLayout(t){let r=We(t,this._typeFor(t)),n=t.x+ie/2,a=t.y+rr,s=a+Of,l=kc(t,h=>this.registry?.get(h)),d=r.map((h,m)=>{let f=this.connections.find(k=>k.source.node===t.id&&k.source.port===h.id),b=f?this.nodes.find(k=>k.id===f.target.node):void 0,g=l[m],v=h.label?Hf(h.label).h:0,x=h.label?Pf(t,v,b,r.length===1):null,_=x===null?s:x+v;return{port:h,conn:f,child:b,x:g,pillTop:x,pillH:v,exitY:_}});return{cx:n,by:a,busY:s,branches:d}}_inputAnchor(t,r){let n=Vi(t,this._typeFor(t)),a=Math.max(n.findIndex(s=>s.id===r),0);return{x:c_(t,"in",a,n.length).x,y:t.y}}_elbowMidOffsets(){let t=new Map;for(let n of this.nodes){let{branches:a}=this._outputLayout(n);for(let s of a){if(!s.conn||!s.child)continue;let{x:l,y:d}=this._inputAnchor(s.child,s.conn.target.port);if(l===s.x||d-Kf<s.exitY)continue;let h=Rr((s.exitY+d)/2),m=`${s.conn.target.node}:${s.conn.target.port}`,f=t.get(h)??new Map;t.set(h,f),f.set(m,[...f.get(m)??[],s.conn.id])}}let r=new Map;for(let n of t.values()){if(n.size<2)continue;let a=[...n.keys()].sort();a.forEach((s,l)=>{let d=(l-Math.floor((a.length-1)/2))*CM;n.get(s).forEach(h=>r.set(h,d))})}return r}_segmentBlocked(t,r,n){let l=Math.min(t.x,r.x),d=Math.max(t.x,r.x),h=Math.min(t.y,r.y),m=Math.max(t.y,r.y);return this.nodes.some(f=>!n.has(f.id)&&l<f.x+ie+8&&d>f.x-8&&h<f.y+rr+8&&m>f.y-48)}_routeClear(t,r){for(let n=0;n<t.length-1;n++)if(this._segmentBlocked(t[n],t[n+1],r))return!1;return!0}_routePoints(t,r,n,a=0,s,l=!1){let{x:d,y:h}=this._inputAnchor(r,n),m=new Set(s?[r.id,s]:[r.id]);if(h-Kf>=t.y){let _=Math.round((t.y+h)/2)+a,k=h-t.y,N=Math.min(h-12,Math.ceil((t.y+k/4)/Ge)*Ge),G=Math.max(N,Math.floor((h-k/4)/Ge)*Ge),I=W=>Math.max(N,Math.min(G,W)),w=null;if(d===t.x){let W=[t,{x:d,y:h}];if(this._routeClear(W,m))return W;w=W}else for(let W=0;W<=20;W++)for(let tt of W===0?[_]:[_+W*Ge,_-W*Ge]){let ht=I(tt);if(ht!==tt&&W>0)continue;let gt=[t,{x:t.x,y:ht},{x:d,y:ht},{x:d,y:h}];if(w??(w=gt),this._routeClear(gt,m))return gt}let $=Math.floor(k/2/10)*10,L=Math.max(10,Math.round(k/4/10)*10);for(let W=0;W<=12;W++)for(let tt of W===0?[L]:[L+W*10,L-W*10]){if(tt<10||tt>$)continue;let ht=t.y+tt,gt=h-tt;if(!(gt<ht))for(let _t=1;_t<=14;_t++)for(let Rt of[1,-1]){let we=t.x+Rt*_t*Ge,Ke=[t,{x:t.x,y:ht},{x:we,y:ht},{x:we,y:gt},{x:d,y:gt},{x:d,y:h}];if(this._routeClear(Ke,m))return Ke}}return w}let f=t.y+_M,b=h-Kf,g,v;if(l){let _=this.nodes.filter(w=>w.y+rr>b-Ge&&w.y<f+Ge),k=Math.max(..._.map(w=>w.x+ie))+ah,N=Math.min(..._.map(w=>w.x))-ah,G=Math.abs(k-t.x)+Math.abs(k-d),I=Math.abs(t.x-N)+Math.abs(d-N);g=G<=I,v=g?k:N}else g=t.x>=r.x+ie/2,v=g?r.x+ie+ah:r.x-ah;let x=null;for(let _=0;_<=20;_++){let k=v+(g?1:-1)*_*Ge,N=[t,{x:t.x,y:f},{x:k,y:f},{x:k,y:b},{x:d,y:b},{x:d,y:h}];if(x??(x=N),this._routeClear(N,m))return N}return x}static _pathFrom(t){return t.map((r,n)=>`${n===0?"M":"L"} ${r.x} ${r.y}`).join(" ")}_addPoints(){if(!this.movingNodeId&&!this.dragType)return[];let t=[];for(let r of this.nodes){let{branches:n}=this._outputLayout(r);n.forEach(a=>{a.conn||t.push({nodeId:r.id,port:a.port.id,px:a.x,py:a.exitY+Wf})})}return t}_wirePoints(){if(this.movingNodeId)return[];let t=this._elbowMidOffsets(),r=Ui(this.nodes,this.connections),n=[];for(let d of this.nodes){let{branches:h}=this._outputLayout(d);h.forEach(m=>{if(!m.conn||!m.child)return;let f=t.get(m.conn.id)??0,b=this._routePoints({x:m.x,y:m.exitY},m.child,m.conn.target.port,f,d.id,r.has(m.conn)),g=0,v=-1;for(let $=0;$<b.length-1;$++){let L=Math.abs(b[$+1].x-b[$].x)+Math.abs(b[$+1].y-b[$].y);L>v&&(v=L,g=$)}let x=b[g],_=b[g+1],k=Math.abs(_.x-x.x)+Math.abs(_.y-x.y),N=Math.sign(_.x-x.x),G=Math.sign(_.y-x.y),I=$=>({px:x.x+N*$,py:x.y+G*$}),w=Math.max(0,(g===b.length-2?k-kM:k)/2);n.push({connectionId:m.conn.id,at:I,d:w,len:k})})}let a=v_,s=(d,h)=>this.nodes.some(m=>d>m.x-a&&d<m.x+ie+a&&h>m.y-a&&h<m.y+rr+a),l=[];for(let d of n){let h=f=>s(f.px,f.py)||l.some(b=>Math.hypot(b.px-f.px,b.py-f.py)<v_*2+6),m=d.at(d.d);if(h(m))t:for(let f=Ge/2;f<=d.len;f+=Ge/2)for(let b of[d.d-f,d.d+f]){if(b<0||b>d.len)continue;let g=d.at(b);if(!h(g)){m=g;break t}}l.push({connectionId:d.connectionId,...m})}return l}_screenFromCanvas(t,r){let n=this.getBoundingClientRect();return{clientX:n.left+this.panX+t*this.zoom,clientY:n.top+this.panY+r*this.zoom}}_onAddClick(t,r,n){if(t.stopPropagation(),this.movingNodeId){this._emit("flow-output-move-target",{nodeId:r,port:n});return}this._startLink(r,n)}_onWireAddClick(t,r,n,a){t.stopPropagation(),this._emit("flow-wire-pick",{connectionId:r,...this._screenFromCanvas(n,a)})}_onAddDrop(t,r,n){let a=t.dataTransfer?.getData(Sc);a&&(t.preventDefault(),t.stopPropagation(),this._emit("flow-output-assign",{nodeId:r,port:n,type:a}))}_onWireDrop(t,r){let n=t.dataTransfer?.getData(Sc);n&&(t.preventDefault(),t.stopPropagation(),this._emit("flow-wire-assign",{connectionId:r,type:n}))}_zoomBy(t){this._viewInitialised=!0,this.zoom=Math.min(g_,Math.max(Gf,+(this.zoom+t).toFixed(2)))}_contentBounds(){if(!this.nodes.length&&!this.notes.length)return null;let t=1/0,r=1/0,n=-1/0,a=-1/0;for(let s of this.nodes){t=Math.min(t,s.x),n=Math.max(n,s.x+ie),r=Math.min(r,s.y),a=Math.max(a,s.y+rr);for(let l of this._outputLayout(s).branches)t=Math.min(t,l.x-70),n=Math.max(n,l.x+70),a=Math.max(a,l.exitY+Wf+14)}for(let s of this.notes)t=Math.min(t,s.x),n=Math.max(n,s.x+(s.width??Bf)),r=Math.min(r,s.y),a=Math.max(a,s.y+(s.height??Vf));return{x:t,y:r,width:n-t,height:a-r}}_resetView(){let t=this.getBoundingClientRect(),r=this._contentBounds();if(!r||!t.width||!t.height){this.zoom=1,this.panX=0,this.panY=0;return}let n=60,a=Math.min(1,(t.width-n*2)/r.width,(t.height-n*2)/r.height);this.zoom=Math.max(Gf,+a.toFixed(2)),this.panX=Math.round((t.width-r.width*this.zoom)/2-r.x*this.zoom),this.panY=Math.round((t.height-r.height*this.zoom)/2-r.y*this.zoom)}_viewportCursorClass(){return this.drag?this.drag.kind==="note-resize"?"resizing":"grabbing":""}_renderConnections(){let t=`translate(${this.panX} ${this.panY}) scale(${this.zoom})`,r=this._elbowMidOffsets(),n=Ui(this.nodes,this.connections),a=[],s=!!(this.movingNodeId||this.dragType);for(let l of this.nodes){let{cx:d,by:h,busY:m,branches:f}=this._outputLayout(l),b=f.filter(_=>_.conn&&_.child||_.pillTop!==null||s);if(!b.length)continue;a.push(No`<path class="wire" d="M ${d} ${h} L ${d} ${m}"></path>`);let g=[d,...b.map(_=>_.x)],v=Math.min(...g),x=Math.max(...g);x-v>.5&&a.push(No`<path class="wire" d="M ${v} ${m} L ${x} ${m}"></path>`),b.forEach(_=>{if(_.pillTop!==null&&a.push(No`<path class="wire" d="M ${_.x} ${Math.min(m,_.pillTop-10)} L ${_.x} ${_.pillTop}" marker-end="url(#flow-arrow)"></path>`),_.conn&&_.child){let k=r.get(_.conn.id)??0,N=n.has(_.conn),G=this._routePoints({x:_.x,y:_.exitY},_.child,_.conn.target.port,k,l.id,N);a.push(No`<path
|
|
4940
|
+
`}};ro.styles=T(u_),ro.dependencies={"zn-icon":ct,"zn-button":Ct,"zn-dropdown":ir,"zn-menu":Vo,"zn-menu-item":Rn},c([p({attribute:!1})],ro.prototype,"node",2),c([p({attribute:!1})],ro.prototype,"type",2),c([p({type:Boolean,reflect:!0})],ro.prototype,"selected",2),c([p({type:Boolean,reflect:!0})],ro.prototype,"error",2),c([p({type:Boolean,reflect:!0})],ro.prototype,"dragging",2),c([p({type:Boolean,reflect:!0,attribute:"link-target"})],ro.prototype,"linkTarget",2);var m_=ro;ro.define("zn-flow-node");var f_=E`@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}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}[hidden]{display:none !important}.width-container,.form-container,.wide-form-container{height:100%;width:100%;margin:var(--zn-default-margin,0 auto)}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:block;position:relative;width:100%;height:100%;overflow:hidden}.viewport{position:absolute;inset:0;overflow:hidden;background-color:rgb(var(--zn-color-body));background-image:radial-gradient(rgb(var(--zn-color-border)) 1px,transparent 1px);background-size:20px 20px;cursor:grab;touch-action:none}.viewport.grabbing,.viewport.grabbing *{cursor:grabbing !important}.viewport.connecting,.viewport.connecting *{cursor:crosshair !important}.viewport.resizing,.viewport.resizing *{cursor:nwse-resize !important}.viewport.linking{cursor:crosshair}.viewport.step-dragging .add-point{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid;box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 22%,transparent)}.connections{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.connections .wire{fill:none;stroke:rgb(var(--zn-color-primary));stroke-width:2}.connections .wire--stub{stroke:rgb(var(--zn-color-border-active));stroke-dasharray:4 4}.connections .wire--preview{stroke-dasharray:6 4}.connections .wire--loop{stroke:rgb(var(--zn-color-warning))}.connections marker path{fill:rgb(var(--zn-color-primary))}.connections marker#flow-arrow-loop path{fill:rgb(var(--zn-color-warning))}.add-point{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin:-12px;padding:0;border-radius:50%;color:rgb(var(--zn-color-primary));background:rgb(var(--zn-panel));border:1px dashed rgb(var(--zn-color-border-active));cursor:pointer;transition:background 0.12s ease,color 0.12s ease}.add-point:hover{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid}.add-point--target{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-primary));border-style:solid;box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 25%,transparent)}.add-point--wire{width:20px;height:20px;margin:-10px}.layer{position:absolute;top:0;left:0;transform-origin:0 0;width:0;height:0}.node-pos{position:absolute;top:0;left:0}.branch-pill{display:flex;align-items:center;justify-content:center;width:-moz-max-content;width:max-content;max-width:240px;box-sizing:border-box;text-align:center;overflow-wrap:anywhere;overflow:hidden;padding:0 18px;border-radius:10px;font:inherit;font-size:0.8125rem;font-weight:600;line-height:20px;color:rgb(var(--zn-text));background:color-mix(in srgb,rgb(var(--zn-color-primary)) 8%,rgb(var(--zn-panel)));border:1px solid color-mix(in srgb,rgb(var(--zn-color-primary)) 45%,transparent);cursor:pointer;transition:border-color 0.12s ease,box-shadow 0.12s ease}.branch-pill:hover{border-color:rgb(var(--zn-color-primary));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4)}.branch-pill--selected{border-color:rgb(var(--zn-color-primary));background:color-mix(in srgb,rgb(var(--zn-color-primary)) 16%,rgb(var(--zn-panel)))}.branch-pill--loop{background:color-mix(in srgb,rgb(var(--zn-color-warning)) 10%,rgb(var(--zn-panel)));border-color:color-mix(in srgb,rgb(var(--zn-color-warning)) 55%,transparent)}.branch-pill--loop:hover{border-color:rgb(var(--zn-color-warning))}.branch-pill--loop.branch-pill--selected{border-color:rgb(var(--zn-color-warning));background:color-mix(in srgb,rgb(var(--zn-color-warning)) 18%,rgb(var(--zn-panel)))}.branch-pill-wrap{position:absolute;top:0;left:0;transform:translateX(-50%);display:flex;align-items:stretch}.branch-pill-wrap::after{content:"";position:absolute;left:100%;top:0;width:40px;height:100%}.branch-pill-wrap:hover .branch-pill-delete{opacity:1;transform:translate(0,-50%);pointer-events:auto;transition-delay:0.15s}.branch-pill-port{position:absolute;z-index:1;left:50%;bottom:0;transform:translate(-50%,50%);width:11px;height:11px;box-sizing:border-box;border-radius:50%;background:rgb(var(--zn-panel));border:2px solid rgb(var(--zn-color-primary));cursor:pointer;transition:transform 0.12s ease,box-shadow 0.12s ease}.branch-pill-port:hover{transform:translate(-50%,50%) scale(1.35);box-shadow:0 0 0 4px color-mix(in srgb,rgb(var(--zn-color-primary)) 20%,transparent)}.branch-pill-delete{position:absolute;z-index:1;left:calc(100% + 8px);top:50%;transform:translate(-10px,-50%);display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:50%;background:rgb(var(--zn-color-error));color:white;cursor:pointer;opacity:0;pointer-events:none;transition:opacity 0.15s ease,transform 0.15s ease}.branch-pill-delete:hover{filter:brightness(1.1)}.drop-ghost{position:absolute;top:0;left:0;display:flex;align-items:center;gap:10px;padding:0 12px;border:2px dashed rgb(var(--zn-color-primary));border-radius:10px;background:color-mix(in srgb,rgb(var(--zn-color-primary)) 10%,rgb(var(--zn-panel)));opacity:0.9;pointer-events:none}.drop-ghost__icon{--node-accent:rgb(var(--zn-color-primary));display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;border-radius:8px;color:var(--node-accent);background:color-mix(in srgb,var(--node-accent) 16%,rgb(var(--zn-panel)))}.drop-ghost__label{font-size:0.8125rem;font-weight:600;color:rgb(var(--zn-text));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.toolbar{position:absolute;top:16px;display:flex;align-items:center;gap:2px;padding:3px;background:rgb(var(--zn-panel));border:1px solid rgb(var(--zn-border-color));border-radius:8px;box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);z-index:2}.toolbar--history{left:16px}.toolbar--zoom{right:16px}.bin{position:absolute;right:16px;bottom:16px;z-index:2;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:12px;color:rgb(var(--zn-color-muted-text));background:rgb(var(--zn-panel));border:1px dashed rgb(var(--zn-color-border-active));box-shadow:0 1px 3px rgba(var(--zn-shadow),0.4);transition:background 0.12s ease,color 0.12s ease,transform 0.12s ease}.bin--over{color:rgb(var(--zn-panel));background:rgb(var(--zn-color-error));border-style:solid;border-color:rgb(var(--zn-color-error));transform:scale(1.12)}.note{position:absolute;display:flex;flex-direction:column;background:#fef9c3;border:1px solid #fde68a;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,0.12)}.note__resize{position:absolute;right:0;bottom:0;width:16px;height:16px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 0 50%,#d9c64a 50% 60%,transparent 60% 70%,#d9c64a 70% 80%,transparent 80%)}.note__bar{display:flex;justify-content:flex-end;height:20px;cursor:grab}.note__close{width:20px;height:20px;padding:0;font-size:14px;line-height:1;color:#92400e;background:transparent;cursor:pointer}.note__text{flex:1;margin:0;padding:0 10px 10px;resize:none;border:none;outline:none;background:transparent;font:inherit;font-size:0.8125rem;color:#713f12}`;var Gf=.25,g_=2,b_=.15,Wf=40,_M=20,Kf=20,v_=10,kM=8,ah=40,CM=20,Sc=Hs,me=class me extends C{constructor(){super(...arguments);this.nodes=[];this.connections=[];this.notes=[];this.selectedNodeId=null;this.errorNodes=new Set;this.movingNodeId=null;this.dragType=null;this.selectedBranch=null;this.zoom=1;this.panX=0;this.panY=0;this.drag=null;this._overBin=!1;this._dropGhost=null;this._linking=null;this._linkPos=null;this._linkTarget=null;this._linkClient=null;this._linkScrollRaf=null;this._dragMoved=!1;this._viewInitialised=!1;this._onWheel=t=>{if(t.composedPath().some(d=>d instanceof HTMLTextAreaElement))return;t.preventDefault(),this._viewInitialised=!0;let r=t.deltaMode===1?16:t.deltaMode===2?100:1,n=t.deltaX*r,a=t.deltaY*r;if(t.ctrlKey||t.metaKey){let d=Math.min(g_,Math.max(Gf,this.zoom*Math.exp(-a*.0015)));if(d===this.zoom)return;let h=this.getBoundingClientRect(),m=t.clientX-h.left,f=t.clientY-h.top,b=(m-this.panX)/this.zoom,g=(f-this.panY)/this.zoom;this.zoom=+d.toFixed(3),this.panX=Math.round(m-b*this.zoom),this.panY=Math.round(f-g*this.zoom);return}let s=t.shiftKey&&!n?a:n,l=t.shiftKey&&!n?0:a;this.panX-=Math.round(s),this.panY-=Math.round(l)};this._onBackgroundPointerDown=t=>{if(t.button===1){t.preventDefault(),this._viewInitialised=!0,this.drag={kind:"pan",ox:t.clientX,oy:t.clientY,px:this.panX,py:this.panY},this._setupWindow("grabbing");return}if(t.button===0){if(this._viewInitialised=!0,this._linking){let r=this._linking,n=this._linkTarget;if(this._cancelLink(),n){this._emit("flow-link-assign",{nodeId:r.nodeId,port:r.port,targetId:n});return}}this._emit("flow-node-select",{nodeId:null}),this.drag={kind:"pan",ox:t.clientX,oy:t.clientY,px:this.panX,py:this.panY},this._setupWindow("grabbing")}};this._onNodeGrab=t=>{if(this._linking){let a=this._linking;this._cancelLink(),a.nodeId!==t.detail.nodeId&&this._emit("flow-link-assign",{nodeId:a.nodeId,port:a.port,targetId:t.detail.nodeId});return}let r=this.nodes.find(a=>a.id===t.detail.nodeId);if(!r)return;let n=this.screenToCanvas(t.detail.clientX,t.detail.clientY);this.drag={kind:"node",id:r.id,offX:n.x-r.x,offY:n.y-r.y,startX:r.x,startY:r.y},this._dragMoved=!1,this._setupWindow("grabbing")};this._onNodeSelect=t=>{this._linking&&t.detail.nodeId&&t.stopPropagation()};this._onPortClick=t=>{let{nodeId:r}=t.detail;if(this._linking&&this._linking.nodeId!==r){let s=this._linking;this._cancelLink(),this._emit("flow-link-assign",{nodeId:s.nodeId,port:s.port,targetId:r});return}let n=this.nodes.find(s=>s.id===r);if(!n)return;let a=We(n,this._typeFor(n)).find(s=>!this.connections.some(l=>l.source.node===r&&l.source.port===s.id));this._startLink(r,a?.id??rh)};this._onLinkPointerMove=t=>{this._linkClient={x:t.clientX,y:t.clientY},this._updateLinkFromClient(t.clientX,t.clientY)};this._linkEdgeScroll=()=>{if(this._linkScrollRaf=null,!!this._linking){if(this._linkClient){let t=this.getBoundingClientRect(),r=48,n=14,a=m=>Math.min(n,Math.ceil((r-m)/r*n)),{x:s,y:l}=this._linkClient,d=0,h=0;s<t.left+r?d=a(s-t.left):s>t.right-r&&(d=-a(t.right-s)),l<t.top+r?h=a(l-t.top):l>t.bottom-r&&(h=-a(t.bottom-l)),(d||h)&&(this.panX+=d,this.panY+=h,this._updateLinkFromClient(s,l))}this._linkScrollRaf=requestAnimationFrame(this._linkEdgeScroll)}};this._onLinkKeyDown=t=>{t.key==="Escape"&&this._cancelLink()};this._cancelLink=()=>{this._linking&&(this._linking=null,this._linkPos=null,this._linkTarget=null,this._linkClient=null,this._linkScrollRaf!==null&&(cancelAnimationFrame(this._linkScrollRaf),this._linkScrollRaf=null),window.removeEventListener("pointermove",this._onLinkPointerMove),window.removeEventListener("keydown",this._onLinkKeyDown),window.removeEventListener("blur",this._cancelLink))};this._onPointerMove=t=>{if(!this.drag)return;if(this.drag.kind==="pan"){this.panX=this.drag.px+(t.clientX-this.drag.ox),this.panY=this.drag.py+(t.clientY-this.drag.oy);return}let r=this.screenToCanvas(t.clientX,t.clientY);if(this.drag.kind==="node"){this._overBin=this._binHit(t.clientX,t.clientY);let n=this.nodes.find(a=>a.id===this.drag.id);if(n){let a={x:Rr(r.x-this.drag.offX),y:Rr(r.y-this.drag.offY)},s=new Set(this.connections.filter(h=>h.target.node===n.id&&h.source.node!==n.id).map(h=>h.source.node)),l=h=>{let m={...n,...h},f=this.nodes.map(g=>g.id===n.id?m:g),b=g=>this.registry?.get(g);return f.some(g=>g!==m&&i_(m,g,b,f,this.connections))?!1:![...s].some(g=>{let v=f.find(x=>x.id===g);return!!v&&nh(v,b,f,this.connections)})},d=l(a)?a:l({x:a.x,y:n.y})?{x:a.x,y:n.y}:l({x:n.x,y:a.y})?{x:n.x,y:a.y}:null;d&&(d.x!==n.x||d.y!==n.y)&&(this._dragMoved||this._beginMove(),n.x=d.x,n.y=d.y,this.requestUpdate())}}else if(this.drag.kind==="note"){let n=this.notes.find(a=>a.id===this.drag.id);n&&(this._dragMoved||this._beginMove(),n.x=Rr(r.x-this.drag.offX),n.y=Rr(r.y-this.drag.offY),this.requestUpdate())}else if(this.drag.kind==="note-resize"){let n=this.notes.find(a=>a.id===this.drag.id);n&&(this._dragMoved||this._beginMove(),n.width=Math.max(s_,Rr(r.x-n.x)),n.height=Math.max(l_,Rr(r.y-n.y)),this.requestUpdate())}};this._onPointerUp=()=>{let t=this.drag,r=this._overBin;if(this.drag=null,this._overBin=!1,this._teardownWindow(),!!t){if(t.kind==="node"&&this._dragMoved&&r){let n=this.nodes.find(a=>a.id===t.id);n&&(n.x=t.startX,n.y=t.startY),this._emit("flow-node-action",{nodeId:t.id,action:"delete"});return}(t.kind==="node"||t.kind==="note"||t.kind==="note-resize")&&this._dragMoved&&this._emit("flow-change-commit")}};this._onViewportDragOver=t=>{if(!t.dataTransfer?.types.includes(Sc))return;this._viewInitialised=!0,t.preventDefault();let r=t.composedPath().some(a=>a instanceof Element&&a.classList.contains("add-point"));t.dataTransfer.dropEffect=r?"copy":"move";let n=this.screenToCanvas(t.clientX,t.clientY);this._dropGhost={x:Rr(n.x-ie/2),y:Rr(n.y-rr/2)}};this._onViewportDragLeave=t=>{let r=this.getBoundingClientRect();(t.clientX<r.left||t.clientX>r.right||t.clientY<r.top||t.clientY>r.bottom)&&(this._dropGhost=null)};this._clearDropGhost=()=>{this._dropGhost=null};this._onAddPointDragOver=t=>{t.dataTransfer?.types.includes(Sc)&&(t.preventDefault(),t.dataTransfer.dropEffect="copy")};this._onBinDragOver=t=>{t.dataTransfer?.types.includes(Sc)&&(t.preventDefault(),t.stopPropagation(),t.dataTransfer.dropEffect="move",this._overBin=!0,this._dropGhost=null)};this._onBinDragLeave=()=>{this._overBin=!1};this._onBinDrop=t=>{t.preventDefault(),t.stopPropagation(),this._overBin=!1,this._dropGhost=null}}connectedCallback(){super.connectedCallback(),this.addEventListener("flow-node-grab",this._onNodeGrab),this.addEventListener("flow-node-select",this._onNodeSelect),this.addEventListener("flow-port-click",this._onPortClick),this.addEventListener("wheel",this._onWheel,{passive:!1})}disconnectedCallback(){this.removeEventListener("flow-node-grab",this._onNodeGrab),this.removeEventListener("flow-node-select",this._onNodeSelect),this.removeEventListener("flow-port-click",this._onPortClick),this.removeEventListener("wheel",this._onWheel),this._cancelLink(),this._teardownWindow(),super.disconnectedCallback()}updated(t){if(super.updated(t),this.style.setProperty("--flow-zoom",String(this.zoom)),t.has("dragType")&&!this.dragType&&(this._dropGhost=null),!this._viewInitialised&&this.nodes.length){let r=this.getBoundingClientRect();r.width&&r.height&&(this._viewInitialised=!0,this._resetView())}}_emit(t,r){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:r}))}screenToCanvas(t,r){let n=this.getBoundingClientRect();return{x:(t-n.left-this.panX)/this.zoom,y:(r-n.top-this.panY)/this.zoom}}_typeFor(t){return this.registry?.get(t.type)}_setupWindow(t=""){window.addEventListener("pointermove",this._onPointerMove),window.addEventListener("pointerup",this._onPointerUp),t&&(document.body.style.cursor=t)}_teardownWindow(){window.removeEventListener("pointermove",this._onPointerMove),window.removeEventListener("pointerup",this._onPointerUp),document.body.style.cursor=""}_onBranchPortClick(t,r){if(this._linking){let n=this._linking;this._cancelLink(),n.nodeId!==t&&this._emit("flow-link-assign",{nodeId:n.nodeId,port:n.port,targetId:t});return}this._startLink(t,r)}_startLink(t,r){this._linking={nodeId:t,port:r},this._linkPos=null,this._linkClient=null,window.addEventListener("pointermove",this._onLinkPointerMove),window.addEventListener("keydown",this._onLinkKeyDown),window.addEventListener("blur",this._cancelLink),this._linkScrollRaf=requestAnimationFrame(this._linkEdgeScroll)}_updateLinkFromClient(t,r){let n=this.screenToCanvas(t,r);this._linkPos=n;let a=this._linking;if(!a)return;let s=12,l=this.nodes.find(d=>d.id!==a.nodeId&&n.x>=d.x-s&&n.x<=d.x+ie+s&&n.y>=d.y-s&&n.y<=d.y+rr+s&&Vi(d,this._typeFor(d)).length>0);this._linkTarget=l?.id??null}_binHit(t,r){let n=this.shadowRoot?.querySelector(".bin")?.getBoundingClientRect();return!!n&&t>=n.left&&t<=n.right&&r>=n.top&&r<=n.bottom}_beginMove(){this._dragMoved=!0,this._emit("flow-interaction-start")}_outputLayout(t){let r=We(t,this._typeFor(t)),n=t.x+ie/2,a=t.y+rr,s=a+Of,l=kc(t,h=>this.registry?.get(h)),d=r.map((h,m)=>{let f=this.connections.find(k=>k.source.node===t.id&&k.source.port===h.id),b=f?this.nodes.find(k=>k.id===f.target.node):void 0,g=l[m],v=h.label?Hf(h.label).h:0,x=h.label?Pf(t,v,b,r.length===1):null,_=x===null?s:x+v;return{port:h,conn:f,child:b,x:g,pillTop:x,pillH:v,exitY:_}});return{cx:n,by:a,busY:s,branches:d}}_inputAnchor(t,r){let n=Vi(t,this._typeFor(t)),a=Math.max(n.findIndex(s=>s.id===r),0);return{x:c_(t,"in",a,n.length).x,y:t.y}}_elbowMidOffsets(){let t=new Map;for(let n of this.nodes){let{branches:a}=this._outputLayout(n);for(let s of a){if(!s.conn||!s.child)continue;let{x:l,y:d}=this._inputAnchor(s.child,s.conn.target.port);if(l===s.x||d-Kf<s.exitY)continue;let h=Rr((s.exitY+d)/2),m=`${s.conn.target.node}:${s.conn.target.port}`,f=t.get(h)??new Map;t.set(h,f),f.set(m,[...f.get(m)??[],s.conn.id])}}let r=new Map;for(let n of t.values()){if(n.size<2)continue;let a=[...n.keys()].sort();a.forEach((s,l)=>{let d=(l-Math.floor((a.length-1)/2))*CM;n.get(s).forEach(h=>r.set(h,d))})}return r}_segmentBlocked(t,r,n){let l=Math.min(t.x,r.x),d=Math.max(t.x,r.x),h=Math.min(t.y,r.y),m=Math.max(t.y,r.y);return this.nodes.some(f=>!n.has(f.id)&&l<f.x+ie+8&&d>f.x-8&&h<f.y+rr+8&&m>f.y-48)}_routeClear(t,r){for(let n=0;n<t.length-1;n++)if(this._segmentBlocked(t[n],t[n+1],r))return!1;return!0}_routePoints(t,r,n,a=0,s,l=!1){let{x:d,y:h}=this._inputAnchor(r,n),m=new Set(s?[r.id,s]:[r.id]);if(h-Kf>=t.y){let _=Math.round((t.y+h)/2)+a,k=h-t.y,N=Math.min(h-12,Math.ceil((t.y+k/4)/Ge)*Ge),G=Math.max(N,Math.floor((h-k/4)/Ge)*Ge),I=W=>Math.max(N,Math.min(G,W)),w=null;if(d===t.x){let W=[t,{x:d,y:h}];if(this._routeClear(W,m))return W;w=W}else for(let W=0;W<=20;W++)for(let tt of W===0?[_]:[_+W*Ge,_-W*Ge]){let ht=I(tt);if(ht!==tt&&W>0)continue;let gt=[t,{x:t.x,y:ht},{x:d,y:ht},{x:d,y:h}];if(w??(w=gt),this._routeClear(gt,m))return gt}let $=Math.floor(k/2/10)*10,L=Math.max(10,Math.round(k/4/10)*10);for(let W=0;W<=12;W++)for(let tt of W===0?[L]:[L+W*10,L-W*10]){if(tt<10||tt>$)continue;let ht=t.y+tt,gt=h-tt;if(!(gt<ht))for(let _t=1;_t<=14;_t++)for(let Ot of[1,-1]){let we=t.x+Ot*_t*Ge,Ke=[t,{x:t.x,y:ht},{x:we,y:ht},{x:we,y:gt},{x:d,y:gt},{x:d,y:h}];if(this._routeClear(Ke,m))return Ke}}return w}let f=t.y+_M,b=h-Kf,g,v;if(l){let _=this.nodes.filter(w=>w.y+rr>b-Ge&&w.y<f+Ge),k=Math.max(..._.map(w=>w.x+ie))+ah,N=Math.min(..._.map(w=>w.x))-ah,G=Math.abs(k-t.x)+Math.abs(k-d),I=Math.abs(t.x-N)+Math.abs(d-N);g=G<=I,v=g?k:N}else g=t.x>=r.x+ie/2,v=g?r.x+ie+ah:r.x-ah;let x=null;for(let _=0;_<=20;_++){let k=v+(g?1:-1)*_*Ge,N=[t,{x:t.x,y:f},{x:k,y:f},{x:k,y:b},{x:d,y:b},{x:d,y:h}];if(x??(x=N),this._routeClear(N,m))return N}return x}static _pathFrom(t){return t.map((r,n)=>`${n===0?"M":"L"} ${r.x} ${r.y}`).join(" ")}_addPoints(){if(!this.movingNodeId&&!this.dragType)return[];let t=[];for(let r of this.nodes){let{branches:n}=this._outputLayout(r);n.forEach(a=>{a.conn||t.push({nodeId:r.id,port:a.port.id,px:a.x,py:a.exitY+Wf})})}return t}_wirePoints(){if(this.movingNodeId)return[];let t=this._elbowMidOffsets(),r=Ui(this.nodes,this.connections),n=[];for(let d of this.nodes){let{branches:h}=this._outputLayout(d);h.forEach(m=>{if(!m.conn||!m.child)return;let f=t.get(m.conn.id)??0,b=this._routePoints({x:m.x,y:m.exitY},m.child,m.conn.target.port,f,d.id,r.has(m.conn)),g=0,v=-1;for(let $=0;$<b.length-1;$++){let L=Math.abs(b[$+1].x-b[$].x)+Math.abs(b[$+1].y-b[$].y);L>v&&(v=L,g=$)}let x=b[g],_=b[g+1],k=Math.abs(_.x-x.x)+Math.abs(_.y-x.y),N=Math.sign(_.x-x.x),G=Math.sign(_.y-x.y),I=$=>({px:x.x+N*$,py:x.y+G*$}),w=Math.max(0,(g===b.length-2?k-kM:k)/2);n.push({connectionId:m.conn.id,at:I,d:w,len:k})})}let a=v_,s=(d,h)=>this.nodes.some(m=>d>m.x-a&&d<m.x+ie+a&&h>m.y-a&&h<m.y+rr+a),l=[];for(let d of n){let h=f=>s(f.px,f.py)||l.some(b=>Math.hypot(b.px-f.px,b.py-f.py)<v_*2+6),m=d.at(d.d);if(h(m))t:for(let f=Ge/2;f<=d.len;f+=Ge/2)for(let b of[d.d-f,d.d+f]){if(b<0||b>d.len)continue;let g=d.at(b);if(!h(g)){m=g;break t}}l.push({connectionId:d.connectionId,...m})}return l}_screenFromCanvas(t,r){let n=this.getBoundingClientRect();return{clientX:n.left+this.panX+t*this.zoom,clientY:n.top+this.panY+r*this.zoom}}_onAddClick(t,r,n){if(t.stopPropagation(),this.movingNodeId){this._emit("flow-output-move-target",{nodeId:r,port:n});return}this._startLink(r,n)}_onWireAddClick(t,r,n,a){t.stopPropagation(),this._emit("flow-wire-pick",{connectionId:r,...this._screenFromCanvas(n,a)})}_onAddDrop(t,r,n){let a=t.dataTransfer?.getData(Sc);a&&(t.preventDefault(),t.stopPropagation(),this._emit("flow-output-assign",{nodeId:r,port:n,type:a}))}_onWireDrop(t,r){let n=t.dataTransfer?.getData(Sc);n&&(t.preventDefault(),t.stopPropagation(),this._emit("flow-wire-assign",{connectionId:r,type:n}))}_zoomBy(t){this._viewInitialised=!0,this.zoom=Math.min(g_,Math.max(Gf,+(this.zoom+t).toFixed(2)))}_contentBounds(){if(!this.nodes.length&&!this.notes.length)return null;let t=1/0,r=1/0,n=-1/0,a=-1/0;for(let s of this.nodes){t=Math.min(t,s.x),n=Math.max(n,s.x+ie),r=Math.min(r,s.y),a=Math.max(a,s.y+rr);for(let l of this._outputLayout(s).branches)t=Math.min(t,l.x-70),n=Math.max(n,l.x+70),a=Math.max(a,l.exitY+Wf+14)}for(let s of this.notes)t=Math.min(t,s.x),n=Math.max(n,s.x+(s.width??Bf)),r=Math.min(r,s.y),a=Math.max(a,s.y+(s.height??Vf));return{x:t,y:r,width:n-t,height:a-r}}_resetView(){let t=this.getBoundingClientRect(),r=this._contentBounds();if(!r||!t.width||!t.height){this.zoom=1,this.panX=0,this.panY=0;return}let n=60,a=Math.min(1,(t.width-n*2)/r.width,(t.height-n*2)/r.height);this.zoom=Math.max(Gf,+a.toFixed(2)),this.panX=Math.round((t.width-r.width*this.zoom)/2-r.x*this.zoom),this.panY=Math.round((t.height-r.height*this.zoom)/2-r.y*this.zoom)}_viewportCursorClass(){return this.drag?this.drag.kind==="note-resize"?"resizing":"grabbing":""}_renderConnections(){let t=`translate(${this.panX} ${this.panY}) scale(${this.zoom})`,r=this._elbowMidOffsets(),n=Ui(this.nodes,this.connections),a=[],s=!!(this.movingNodeId||this.dragType);for(let l of this.nodes){let{cx:d,by:h,busY:m,branches:f}=this._outputLayout(l),b=f.filter(_=>_.conn&&_.child||_.pillTop!==null||s);if(!b.length)continue;a.push(No`<path class="wire" d="M ${d} ${h} L ${d} ${m}"></path>`);let g=[d,...b.map(_=>_.x)],v=Math.min(...g),x=Math.max(...g);x-v>.5&&a.push(No`<path class="wire" d="M ${v} ${m} L ${x} ${m}"></path>`),b.forEach(_=>{if(_.pillTop!==null&&a.push(No`<path class="wire" d="M ${_.x} ${Math.min(m,_.pillTop-10)} L ${_.x} ${_.pillTop}" marker-end="url(#flow-arrow)"></path>`),_.conn&&_.child){let k=r.get(_.conn.id)??0,N=n.has(_.conn),G=this._routePoints({x:_.x,y:_.exitY},_.child,_.conn.target.port,k,l.id,N);a.push(No`<path
|
|
4938
4941
|
class="wire ${N?"wire--loop":""}"
|
|
4939
4942
|
d="${me._pathFrom(G)}"
|
|
4940
4943
|
marker-end="url(#${N?"flow-arrow-loop":"flow-arrow"})"
|
|
@@ -5700,4 +5703,4 @@ ${n}`:""}</li></ol>`};return t(0)}parseTable(o,t){this.index++;let r=[],n=[];for
|
|
|
5700
5703
|
@zn-error="${this._onFrameError}"></zn-preview-frame>
|
|
5701
5704
|
</div>
|
|
5702
5705
|
</div>
|
|
5703
|
-
</div>`}};Et.styles=T(N_),Et.dependencies={"zn-collapsible":sa,"zn-preview-frame":rg,"zn-icon":ct,"zn-button":Ct,"zn-button-group":In,"zn-tabs":Wo,"zn-navbar":da,"zn-select":ce,"zn-option":Oe},c([p()],Et.prototype,"src",2),c([p({attribute:"frame-origin"})],Et.prototype,"frameOrigin",2),c([p({attribute:"data-uri"})],Et.prototype,"dataUri",2),c([p({reflect:!0})],Et.prototype,"mode",2),c([p({reflect:!0})],Et.prototype,"device",2),c([p({type:Number,attribute:"min-height"})],Et.prototype,"minHeight",2),c([p({type:Number})],Et.prototype,"debounce",2),c([p()],Et.prototype,"action",2),c([p({type:Number,attribute:"save-debounce"})],Et.prototype,"saveDebounce",2),c([p({type:Array})],Et.prototype,"sections",2),c([p({attribute:"section-layout"})],Et.prototype,"sectionLayout",2),c([p({type:Array})],Et.prototype,"sources",2),c([p({type:Boolean,reflect:!0,attribute:"controls-collapsed"})],Et.prototype,"controlsCollapsed",2),c([p({type:Boolean,reflect:!0})],Et.prototype,"standalone",2),c([p({attribute:"controls-caption"})],Et.prototype,"controlsCaption",2),c([p({attribute:"preview-caption"})],Et.prototype,"previewCaption",2),c([p({attribute:"submit-label"})],Et.prototype,"submitLabel",2),c([p({type:Boolean})],Et.prototype,"manual",2),c([F("zn-preview-frame")],Et.prototype,"frame",2),c([F("slot:not([name])")],Et.prototype,"controlsSlot",2),c([Ra(".editor__section-slot")],Et.prototype,"sectionSlots",2),c([O()],Et.prototype,"error",2),c([O()],Et.prototype,"_submitting",2),c([O()],Et.prototype,"_sourceIndex",2);var BM=Et;Et.define("zn-theme-editor");export{Wk as AbsoluteContainer,XA as ActionBar,Wh as Alert,cL as AnimatedButton,iL as AudioSelect,L5 as BulkActions,Ct as Button,In as ButtonGroup,WA as ButtonMenu,Q3 as ChannelTile,e5 as Chart,C3 as ChatMessage,S3 as ChatMessageAttachment,_A as Checkbox,qA as CheckboxGroup,ml as Chip,sa as Collapsible,GA as ColorSelect,B3 as Cols,bl as Confirm,tL as ContentBlock,Kh as CopyButton,jA as DataSelect,H3 as DataTable,Qh as DataTableFilter,ou as DataTableSearch,YA as DataTableSort,CA as Datepicker,G3 as DefinedLabel,la as Dialog,ir as Dropdown,zA as Editor,Ao as EditorDialog,df as EditorQuickAction,uc as EditorTool,nu as EmptyState,bu as ExpandingAction,MA as File,oL as FilterContainer,eL as FilterWrapper,jf as FlowBranchConditions,$M as FlowBuilder,LM as FlowStep,Yf as FlowStepGroup,AM as FlowSteps,SA as FormGroup,gu as Header,iu as HoverContainer,ct as Icon,p5 as IconPicker,_d as InlineEdit,Ce as Input,EA as InputGroup,IA as Item,sL as Key,lL as KeyContainer,TA as LinkedSelect,rM as MarkdownEditor,Vo as Menu,Rn as MenuItem,da as Navbar,W3 as Note,du as OptGroup,Oe as Option,A5 as OrderTable,d5 as Page,RM as PageBuilder,QA as PageNav,Jf as PagePaletteItem,Zf as PageSectionCard,h5 as Pagination,b5 as Pane,f5 as Panel,ul as Popup,rg as PreviewFrame,pL as PriorityList,$5 as ProgressBar,T5 as ProgressTile,E5 as QueryBuilder,$A as Radio,LA as RadioGroup,AA as Rating,hM as RemarkdEditor,nL as Reveal,C5 as ScrollContainer,ce as Select,rL as SettingsContainer,y5 as Sidebar,n5 as SimpleChart,au as Skeleton,xl as SlashItem,ca as SlashMenu,KA as Slideout,w5 as Sp,ZA as SplitButton,x5 as SplitPane,k5 as Stat,JA as StatusIndicator,_5 as Stepper,su as Style,vu as Tab,g5 as Table,Wo as Tabs,gc as Textarea,BM as ThemeEditor,K3 as Tile,Y3 as TileGroup,X3 as TileProperty,m5 as Timer,wA as Toggle,Oo as Tooltip,dL as TranslationGroup,aL as Translations,u5 as VerticalStepper,E3 as Well,C as ZincElement,ru as caretRectFrom,lk as clearFormStoreValues,$3 as deepQuery,A3 as deepQueryAll,
|
|
5706
|
+
</div>`}};Et.styles=T(N_),Et.dependencies={"zn-collapsible":sa,"zn-preview-frame":rg,"zn-icon":ct,"zn-button":Ct,"zn-button-group":In,"zn-tabs":Wo,"zn-navbar":da,"zn-select":ce,"zn-option":Oe},c([p()],Et.prototype,"src",2),c([p({attribute:"frame-origin"})],Et.prototype,"frameOrigin",2),c([p({attribute:"data-uri"})],Et.prototype,"dataUri",2),c([p({reflect:!0})],Et.prototype,"mode",2),c([p({reflect:!0})],Et.prototype,"device",2),c([p({type:Number,attribute:"min-height"})],Et.prototype,"minHeight",2),c([p({type:Number})],Et.prototype,"debounce",2),c([p()],Et.prototype,"action",2),c([p({type:Number,attribute:"save-debounce"})],Et.prototype,"saveDebounce",2),c([p({type:Array})],Et.prototype,"sections",2),c([p({attribute:"section-layout"})],Et.prototype,"sectionLayout",2),c([p({type:Array})],Et.prototype,"sources",2),c([p({type:Boolean,reflect:!0,attribute:"controls-collapsed"})],Et.prototype,"controlsCollapsed",2),c([p({type:Boolean,reflect:!0})],Et.prototype,"standalone",2),c([p({attribute:"controls-caption"})],Et.prototype,"controlsCaption",2),c([p({attribute:"preview-caption"})],Et.prototype,"previewCaption",2),c([p({attribute:"submit-label"})],Et.prototype,"submitLabel",2),c([p({type:Boolean})],Et.prototype,"manual",2),c([F("zn-preview-frame")],Et.prototype,"frame",2),c([F("slot:not([name])")],Et.prototype,"controlsSlot",2),c([Ra(".editor__section-slot")],Et.prototype,"sectionSlots",2),c([O()],Et.prototype,"error",2),c([O()],Et.prototype,"_submitting",2),c([O()],Et.prototype,"_sourceIndex",2);var BM=Et;Et.define("zn-theme-editor");export{Wk as AbsoluteContainer,XA as ActionBar,Wh as Alert,cL as AnimatedButton,iL as AudioSelect,L5 as BulkActions,Ct as Button,In as ButtonGroup,WA as ButtonMenu,Q3 as ChannelTile,e5 as Chart,C3 as ChatMessage,S3 as ChatMessageAttachment,_A as Checkbox,qA as CheckboxGroup,ml as Chip,sa as Collapsible,GA as ColorSelect,B3 as Cols,bl as Confirm,tL as ContentBlock,Kh as CopyButton,jA as DataSelect,H3 as DataTable,Qh as DataTableFilter,ou as DataTableSearch,YA as DataTableSort,CA as Datepicker,G3 as DefinedLabel,la as Dialog,ir as Dropdown,zA as Editor,Ao as EditorDialog,df as EditorQuickAction,uc as EditorTool,nu as EmptyState,bu as ExpandingAction,MA as File,oL as FilterContainer,eL as FilterWrapper,jf as FlowBranchConditions,$M as FlowBuilder,LM as FlowStep,Yf as FlowStepGroup,AM as FlowSteps,SA as FormGroup,gu as Header,iu as HoverContainer,ct as Icon,p5 as IconPicker,_d as InlineEdit,Ce as Input,EA as InputGroup,IA as Item,sL as Key,lL as KeyContainer,TA as LinkedSelect,rM as MarkdownEditor,Vo as Menu,Rn as MenuItem,da as Navbar,W3 as Note,du as OptGroup,Oe as Option,A5 as OrderTable,d5 as Page,RM as PageBuilder,QA as PageNav,Jf as PagePaletteItem,Zf as PageSectionCard,h5 as Pagination,b5 as Pane,f5 as Panel,ul as Popup,rg as PreviewFrame,pL as PriorityList,$5 as ProgressBar,T5 as ProgressTile,E5 as QueryBuilder,$A as Radio,LA as RadioGroup,AA as Rating,hM as RemarkdEditor,nL as Reveal,C5 as ScrollContainer,ce as Select,rL as SettingsContainer,y5 as Sidebar,n5 as SimpleChart,au as Skeleton,xl as SlashItem,ca as SlashMenu,KA as Slideout,w5 as Sp,ZA as SplitButton,x5 as SplitPane,k5 as Stat,JA as StatusIndicator,_5 as Stepper,su as Style,vu as Tab,g5 as Table,Wo as Tabs,gc as Textarea,BM as ThemeEditor,K3 as Tile,Y3 as TileGroup,X3 as TileProperty,m5 as Timer,wA as Toggle,Oo as Tooltip,dL as TranslationGroup,aL as Translations,u5 as VerticalStepper,E3 as Well,C as ZincElement,ru as caretRectFrom,lk as clearFormStoreValues,$3 as deepQuery,A3 as deepQueryAll,Pt as deepQuerySelectorAll,eu as getCaretCoordinates,OH as getCaretRect,Ee as litToHTML,kd as on};
|