@kubex/zinc 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/zn.min.js CHANGED
@@ -1,6 +1,6 @@
1
- "use strict";(()=>{var AF=Object.create;var zh=Object.defineProperty,EF=Object.defineProperties,x3=Object.getOwnPropertyDescriptor,TF=Object.getOwnPropertyDescriptors,MF=Object.getOwnPropertyNames,Hm=Object.getOwnPropertySymbols,LF=Object.getPrototypeOf,L1=Object.prototype.hasOwnProperty,w3=Object.prototype.propertyIsEnumerable;var M1=(o,t,i)=>t in o?zh(o,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[t]=i,Ce=(o,t)=>{for(var i in t||(t={}))L1.call(t,i)&&M1(o,i,t[i]);if(Hm)for(var i of Hm(t))w3.call(t,i)&&M1(o,i,t[i]);return o},et=(o,t)=>EF(o,TF(t));var Yl=(o,t)=>{var i={};for(var n in o)L1.call(o,n)&&t.indexOf(n)<0&&(i[n]=o[n]);if(o!=null&&Hm)for(var n of Hm(o))t.indexOf(n)<0&&w3.call(o,n)&&(i[n]=o[n]);return i};var Jo=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports),qF=(o,t)=>{for(var i in t)zh(o,i,{get:t[i],enumerable:!0})},PF=(o,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of MF(t))!L1.call(o,r)&&r!==i&&zh(o,r,{get:()=>t[r],enumerable:!(n=x3(t,r))||n.enumerable});return o};var sn=(o,t,i)=>(i=o!=null?AF(LF(o)):{},PF(t||!o||!o.__esModule?zh(i,"default",{value:o,enumerable:!0}):i,o));var y=(o,t,i,n)=>{for(var r=n>1?void 0:n?x3(t,i):t,a=o.length-1,s;a>=0;a--)(s=o[a])&&(r=(n?s(t,i,r):s(r))||r);return n&&r&&zh(t,i,r),r};var ie=(o,t,i)=>M1(o,typeof t!="symbol"?t+"":t,i);var _w=Jo((vf,Xu)=>{(function(){var o,t="4.17.21",i=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,c="__lodash_placeholder__",d=1,f=2,h=4,p=1,m=2,v=1,b=2,x=4,k=8,z=16,E=32,A=64,C=128,L=256,M=512,P=30,I="...",N=800,B=16,U=1,ee=2,ae=3,oe=1/0,se=9007199254740991,de=17976931348623157e292,_e=NaN,ve=4294967295,Ae=ve-1,Le=ve>>>1,Se=[["ary",C],["bind",v],["bindKey",b],["curry",k],["curryRight",z],["flip",M],["partial",E],["partialRight",A],["rearg",L]],Ze="[object Arguments]",Ne="[object Array]",Re="[object AsyncFunction]",xe="[object Boolean]",Te="[object Date]",X="[object DOMException]",R="[object Error]",F="[object Function]",D="[object GeneratorFunction]",G="[object Map]",V="[object Number]",W="[object Null]",re="[object Object]",fe="[object Promise]",Ee="[object Proxy]",Ie="[object RegExp]",qe="[object Set]",je="[object String]",Pt="[object Symbol]",on="[object Undefined]",ri="[object WeakMap]",rd="[object WeakSet]",zo="[object ArrayBuffer]",Qn="[object DataView]",Co="[object Float32Array]",So="[object Float64Array]",Il="[object Int8Array]",qs="[object Int16Array]",sh="[object Int32Array]",lh="[object Uint8Array]",m0="[object Uint8ClampedArray]",g0="[object Uint16Array]",b0="[object Uint32Array]",Y7=/\b__p \+= '';/g,X7=/\b(__p \+=) '' \+/g,K7=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V_=/&(?:amp|lt|gt|quot|#39);/g,U_=/[&<>"']/g,J7=RegExp(V_.source),Q7=RegExp(U_.source),Z7=/<%-([\s\S]+?)%>/g,eq=/<%([\s\S]+?)%>/g,G_=/<%=([\s\S]+?)%>/g,tq=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iq=/^\w*$/,nq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v0=/[\\^$.*+?()[\]{}|]/g,rq=RegExp(v0.source),y0=/^\s+/,oq=/\s/,aq=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sq=/\{\n\/\* \[wrapped with (.+)\] \*/,lq=/,? & /,cq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dq=/[()=,{}\[\]\/\s]/,fq=/\\(\\)?/g,hq=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Y_=/\w*$/,uq=/^[-+]0x[0-9a-f]+$/i,pq=/^0b[01]+$/i,mq=/^\[object .+?Constructor\]$/,gq=/^0o[0-7]+$/i,bq=/^(?:0|[1-9]\d*)$/,vq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zp=/($^)/,yq=/['\n\r\u2028\u2029\\]/g,em="\\ud800-\\udfff",xq="\\u0300-\\u036f",wq="\\ufe20-\\ufe2f",kq="\\u20d0-\\u20ff",X_=xq+wq+kq,K_="\\u2700-\\u27bf",J_="a-z\\xdf-\\xf6\\xf8-\\xff",_q="\\xac\\xb1\\xd7\\xf7",zq="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cq="\\u2000-\\u206f",Sq=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Q_="A-Z\\xc0-\\xd6\\xd8-\\xde",Z_="\\ufe0e\\ufe0f",ez=_q+zq+Cq+Sq,x0="['\u2019]",Aq="["+em+"]",tz="["+ez+"]",tm="["+X_+"]",iz="\\d+",Eq="["+K_+"]",nz="["+J_+"]",rz="[^"+em+ez+iz+K_+J_+Q_+"]",w0="\\ud83c[\\udffb-\\udfff]",Tq="(?:"+tm+"|"+w0+")",oz="[^"+em+"]",k0="(?:\\ud83c[\\udde6-\\uddff]){2}",_0="[\\ud800-\\udbff][\\udc00-\\udfff]",od="["+Q_+"]",az="\\u200d",sz="(?:"+nz+"|"+rz+")",Mq="(?:"+od+"|"+rz+")",lz="(?:"+x0+"(?:d|ll|m|re|s|t|ve))?",cz="(?:"+x0+"(?:D|LL|M|RE|S|T|VE))?",dz=Tq+"?",fz="["+Z_+"]?",Lq="(?:"+az+"(?:"+[oz,k0,_0].join("|")+")"+fz+dz+")*",qq="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pq="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hz=fz+dz+Lq,Rq="(?:"+[Eq,k0,_0].join("|")+")"+hz,Oq="(?:"+[oz+tm+"?",tm,k0,_0,Aq].join("|")+")",Dq=RegExp(x0,"g"),$q=RegExp(tm,"g"),z0=RegExp(w0+"(?="+w0+")|"+Oq+hz,"g"),Iq=RegExp([od+"?"+nz+"+"+lz+"(?="+[tz,od,"$"].join("|")+")",Mq+"+"+cz+"(?="+[tz,od+sz,"$"].join("|")+")",od+"?"+sz+"+"+lz,od+"+"+cz,Pq,qq,iz,Rq].join("|"),"g"),Fq=RegExp("["+az+em+X_+Z_+"]"),Nq=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hq=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bq=-1,ei={};ei[Co]=ei[So]=ei[Il]=ei[qs]=ei[sh]=ei[lh]=ei[m0]=ei[g0]=ei[b0]=!0,ei[Ze]=ei[Ne]=ei[zo]=ei[xe]=ei[Qn]=ei[Te]=ei[R]=ei[F]=ei[G]=ei[V]=ei[re]=ei[Ie]=ei[qe]=ei[je]=ei[ri]=!1;var jt={};jt[Ze]=jt[Ne]=jt[zo]=jt[Qn]=jt[xe]=jt[Te]=jt[Co]=jt[So]=jt[Il]=jt[qs]=jt[sh]=jt[G]=jt[V]=jt[re]=jt[Ie]=jt[qe]=jt[je]=jt[Pt]=jt[lh]=jt[m0]=jt[g0]=jt[b0]=!0,jt[R]=jt[F]=jt[ri]=!1;var Wq={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},jq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Vq={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Uq={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gq=parseFloat,Yq=parseInt,uz=typeof global=="object"&&global&&global.Object===Object&&global,Xq=typeof self=="object"&&self&&self.Object===Object&&self,Ji=uz||Xq||Function("return this")(),C0=typeof vf=="object"&&vf&&!vf.nodeType&&vf,Fl=C0&&typeof Xu=="object"&&Xu&&!Xu.nodeType&&Xu,pz=Fl&&Fl.exports===C0,S0=pz&&uz.process,Wr=function(){try{var Q=Fl&&Fl.require&&Fl.require("util").types;return Q||S0&&S0.binding&&S0.binding("util")}catch(ue){}}(),mz=Wr&&Wr.isArrayBuffer,gz=Wr&&Wr.isDate,bz=Wr&&Wr.isMap,vz=Wr&&Wr.isRegExp,yz=Wr&&Wr.isSet,xz=Wr&&Wr.isTypedArray;function vr(Q,ue,le){switch(le.length){case 0:return Q.call(ue);case 1:return Q.call(ue,le[0]);case 2:return Q.call(ue,le[0],le[1]);case 3:return Q.call(ue,le[0],le[1],le[2])}return Q.apply(ue,le)}function Kq(Q,ue,le,Fe){for(var ot=-1,St=Q==null?0:Q.length;++ot<St;){var Ni=Q[ot];ue(Fe,Ni,le(Ni),Q)}return Fe}function jr(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length;++le<Fe&&ue(Q[le],le,Q)!==!1;);return Q}function Jq(Q,ue){for(var le=Q==null?0:Q.length;le--&&ue(Q[le],le,Q)!==!1;);return Q}function wz(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length;++le<Fe;)if(!ue(Q[le],le,Q))return!1;return!0}function Ps(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length,ot=0,St=[];++le<Fe;){var Ni=Q[le];ue(Ni,le,Q)&&(St[ot++]=Ni)}return St}function im(Q,ue){var le=Q==null?0:Q.length;return!!le&&ad(Q,ue,0)>-1}function A0(Q,ue,le){for(var Fe=-1,ot=Q==null?0:Q.length;++Fe<ot;)if(le(ue,Q[Fe]))return!0;return!1}function oi(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length,ot=Array(Fe);++le<Fe;)ot[le]=ue(Q[le],le,Q);return ot}function Rs(Q,ue){for(var le=-1,Fe=ue.length,ot=Q.length;++le<Fe;)Q[ot+le]=ue[le];return Q}function E0(Q,ue,le,Fe){var ot=-1,St=Q==null?0:Q.length;for(Fe&&St&&(le=Q[++ot]);++ot<St;)le=ue(le,Q[ot],ot,Q);return le}function Qq(Q,ue,le,Fe){var ot=Q==null?0:Q.length;for(Fe&&ot&&(le=Q[--ot]);ot--;)le=ue(le,Q[ot],ot,Q);return le}function T0(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length;++le<Fe;)if(ue(Q[le],le,Q))return!0;return!1}var Zq=M0("length");function eP(Q){return Q.split("")}function tP(Q){return Q.match(cq)||[]}function kz(Q,ue,le){var Fe;return le(Q,function(ot,St,Ni){if(ue(ot,St,Ni))return Fe=St,!1}),Fe}function nm(Q,ue,le,Fe){for(var ot=Q.length,St=le+(Fe?1:-1);Fe?St--:++St<ot;)if(ue(Q[St],St,Q))return St;return-1}function ad(Q,ue,le){return ue===ue?uP(Q,ue,le):nm(Q,_z,le)}function iP(Q,ue,le,Fe){for(var ot=le-1,St=Q.length;++ot<St;)if(Fe(Q[ot],ue))return ot;return-1}function _z(Q){return Q!==Q}function zz(Q,ue){var le=Q==null?0:Q.length;return le?q0(Q,ue)/le:_e}function M0(Q){return function(ue){return ue==null?o:ue[Q]}}function L0(Q){return function(ue){return Q==null?o:Q[ue]}}function Cz(Q,ue,le,Fe,ot){return ot(Q,function(St,Ni,Ft){le=Fe?(Fe=!1,St):ue(le,St,Ni,Ft)}),le}function nP(Q,ue){var le=Q.length;for(Q.sort(ue);le--;)Q[le]=Q[le].value;return Q}function q0(Q,ue){for(var le,Fe=-1,ot=Q.length;++Fe<ot;){var St=ue(Q[Fe]);St!==o&&(le=le===o?St:le+St)}return le}function P0(Q,ue){for(var le=-1,Fe=Array(Q);++le<Q;)Fe[le]=ue(le);return Fe}function rP(Q,ue){return oi(ue,function(le){return[le,Q[le]]})}function Sz(Q){return Q&&Q.slice(0,Mz(Q)+1).replace(y0,"")}function yr(Q){return function(ue){return Q(ue)}}function R0(Q,ue){return oi(ue,function(le){return Q[le]})}function ch(Q,ue){return Q.has(ue)}function Az(Q,ue){for(var le=-1,Fe=Q.length;++le<Fe&&ad(ue,Q[le],0)>-1;);return le}function Ez(Q,ue){for(var le=Q.length;le--&&ad(ue,Q[le],0)>-1;);return le}function oP(Q,ue){for(var le=Q.length,Fe=0;le--;)Q[le]===ue&&++Fe;return Fe}var aP=L0(Wq),sP=L0(jq);function lP(Q){return"\\"+Uq[Q]}function cP(Q,ue){return Q==null?o:Q[ue]}function sd(Q){return Fq.test(Q)}function dP(Q){return Nq.test(Q)}function fP(Q){for(var ue,le=[];!(ue=Q.next()).done;)le.push(ue.value);return le}function O0(Q){var ue=-1,le=Array(Q.size);return Q.forEach(function(Fe,ot){le[++ue]=[ot,Fe]}),le}function Tz(Q,ue){return function(le){return Q(ue(le))}}function Os(Q,ue){for(var le=-1,Fe=Q.length,ot=0,St=[];++le<Fe;){var Ni=Q[le];(Ni===ue||Ni===c)&&(Q[le]=c,St[ot++]=le)}return St}function rm(Q){var ue=-1,le=Array(Q.size);return Q.forEach(function(Fe){le[++ue]=Fe}),le}function hP(Q){var ue=-1,le=Array(Q.size);return Q.forEach(function(Fe){le[++ue]=[Fe,Fe]}),le}function uP(Q,ue,le){for(var Fe=le-1,ot=Q.length;++Fe<ot;)if(Q[Fe]===ue)return Fe;return-1}function pP(Q,ue,le){for(var Fe=le+1;Fe--;)if(Q[Fe]===ue)return Fe;return Fe}function ld(Q){return sd(Q)?gP(Q):Zq(Q)}function Ao(Q){return sd(Q)?bP(Q):eP(Q)}function Mz(Q){for(var ue=Q.length;ue--&&oq.test(Q.charAt(ue)););return ue}var mP=L0(Vq);function gP(Q){for(var ue=z0.lastIndex=0;z0.test(Q);)++ue;return ue}function bP(Q){return Q.match(z0)||[]}function vP(Q){return Q.match(Iq)||[]}var yP=function Q(ue){ue=ue==null?Ji:Ds.defaults(Ji.Object(),ue,Ds.pick(Ji,Hq));var le=ue.Array,Fe=ue.Date,ot=ue.Error,St=ue.Function,Ni=ue.Math,Ft=ue.Object,D0=ue.RegExp,xP=ue.String,Vr=ue.TypeError,om=le.prototype,wP=St.prototype,cd=Ft.prototype,am=ue["__core-js_shared__"],sm=wP.toString,qt=cd.hasOwnProperty,kP=0,Lz=function(){var u=/[^.]+$/.exec(am&&am.keys&&am.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),lm=cd.toString,_P=sm.call(Ft),zP=Ji._,CP=D0("^"+sm.call(qt).replace(v0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cm=pz?ue.Buffer:o,$s=ue.Symbol,dm=ue.Uint8Array,qz=cm?cm.allocUnsafe:o,fm=Tz(Ft.getPrototypeOf,Ft),Pz=Ft.create,Rz=cd.propertyIsEnumerable,hm=om.splice,Oz=$s?$s.isConcatSpreadable:o,dh=$s?$s.iterator:o,Nl=$s?$s.toStringTag:o,um=function(){try{var u=Vl(Ft,"defineProperty");return u({},"",{}),u}catch(g){}}(),SP=ue.clearTimeout!==Ji.clearTimeout&&ue.clearTimeout,AP=Fe&&Fe.now!==Ji.Date.now&&Fe.now,EP=ue.setTimeout!==Ji.setTimeout&&ue.setTimeout,pm=Ni.ceil,mm=Ni.floor,$0=Ft.getOwnPropertySymbols,TP=cm?cm.isBuffer:o,Dz=ue.isFinite,MP=om.join,LP=Tz(Ft.keys,Ft),Hi=Ni.max,xn=Ni.min,qP=Fe.now,PP=ue.parseInt,$z=Ni.random,RP=om.reverse,I0=Vl(ue,"DataView"),fh=Vl(ue,"Map"),F0=Vl(ue,"Promise"),dd=Vl(ue,"Set"),hh=Vl(ue,"WeakMap"),uh=Vl(Ft,"create"),gm=hh&&new hh,fd={},OP=Ul(I0),DP=Ul(fh),$P=Ul(F0),IP=Ul(dd),FP=Ul(hh),bm=$s?$s.prototype:o,ph=bm?bm.valueOf:o,Iz=bm?bm.toString:o;function O(u){if(vi(u)&&!at(u)&&!(u instanceof vt)){if(u instanceof Ur)return u;if(qt.call(u,"__wrapped__"))return F2(u)}return new Ur(u)}var hd=function(){function u(){}return function(g){if(!di(g))return{};if(Pz)return Pz(g);u.prototype=g;var w=new u;return u.prototype=o,w}}();function vm(){}function Ur(u,g){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=o}O.templateSettings={escape:Z7,evaluate:eq,interpolate:G_,variable:"",imports:{_:O}},O.prototype=vm.prototype,O.prototype.constructor=O,Ur.prototype=hd(vm.prototype),Ur.prototype.constructor=Ur;function vt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ve,this.__views__=[]}function NP(){var u=new vt(this.__wrapped__);return u.__actions__=Zn(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Zn(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Zn(this.__views__),u}function HP(){if(this.__filtered__){var u=new vt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function BP(){var u=this.__wrapped__.value(),g=this.__dir__,w=at(u),S=g<0,q=w?u.length:0,$=eO(0,q,this.__views__),H=$.start,Y=$.end,ne=Y-H,pe=S?Y:H-1,me=this.__iteratees__,we=me.length,Pe=0,Be=xn(ne,this.__takeCount__);if(!w||!S&&q==ne&&Be==ne)return l2(u,this.__actions__);var Je=[];e:for(;ne--&&Pe<Be;){pe+=g;for(var dt=-1,Qe=u[pe];++dt<we;){var mt=me[dt],yt=mt.iteratee,kr=mt.type,In=yt(Qe);if(kr==ee)Qe=In;else if(!In){if(kr==U)continue e;break e}}Je[Pe++]=Qe}return Je}vt.prototype=hd(vm.prototype),vt.prototype.constructor=vt;function Hl(u){var g=-1,w=u==null?0:u.length;for(this.clear();++g<w;){var S=u[g];this.set(S[0],S[1])}}function WP(){this.__data__=uh?uh(null):{},this.size=0}function jP(u){var g=this.has(u)&&delete this.__data__[u];return this.size-=g?1:0,g}function VP(u){var g=this.__data__;if(uh){var w=g[u];return w===s?o:w}return qt.call(g,u)?g[u]:o}function UP(u){var g=this.__data__;return uh?g[u]!==o:qt.call(g,u)}function GP(u,g){var w=this.__data__;return this.size+=this.has(u)?0:1,w[u]=uh&&g===o?s:g,this}Hl.prototype.clear=WP,Hl.prototype.delete=jP,Hl.prototype.get=VP,Hl.prototype.has=UP,Hl.prototype.set=GP;function Ea(u){var g=-1,w=u==null?0:u.length;for(this.clear();++g<w;){var S=u[g];this.set(S[0],S[1])}}function YP(){this.__data__=[],this.size=0}function XP(u){var g=this.__data__,w=ym(g,u);if(w<0)return!1;var S=g.length-1;return w==S?g.pop():hm.call(g,w,1),--this.size,!0}function KP(u){var g=this.__data__,w=ym(g,u);return w<0?o:g[w][1]}function JP(u){return ym(this.__data__,u)>-1}function QP(u,g){var w=this.__data__,S=ym(w,u);return S<0?(++this.size,w.push([u,g])):w[S][1]=g,this}Ea.prototype.clear=YP,Ea.prototype.delete=XP,Ea.prototype.get=KP,Ea.prototype.has=JP,Ea.prototype.set=QP;function Ta(u){var g=-1,w=u==null?0:u.length;for(this.clear();++g<w;){var S=u[g];this.set(S[0],S[1])}}function ZP(){this.size=0,this.__data__={hash:new Hl,map:new(fh||Ea),string:new Hl}}function eR(u){var g=Lm(this,u).delete(u);return this.size-=g?1:0,g}function tR(u){return Lm(this,u).get(u)}function iR(u){return Lm(this,u).has(u)}function nR(u,g){var w=Lm(this,u),S=w.size;return w.set(u,g),this.size+=w.size==S?0:1,this}Ta.prototype.clear=ZP,Ta.prototype.delete=eR,Ta.prototype.get=tR,Ta.prototype.has=iR,Ta.prototype.set=nR;function Bl(u){var g=-1,w=u==null?0:u.length;for(this.__data__=new Ta;++g<w;)this.add(u[g])}function rR(u){return this.__data__.set(u,s),this}function oR(u){return this.__data__.has(u)}Bl.prototype.add=Bl.prototype.push=rR,Bl.prototype.has=oR;function Eo(u){var g=this.__data__=new Ea(u);this.size=g.size}function aR(){this.__data__=new Ea,this.size=0}function sR(u){var g=this.__data__,w=g.delete(u);return this.size=g.size,w}function lR(u){return this.__data__.get(u)}function cR(u){return this.__data__.has(u)}function dR(u,g){var w=this.__data__;if(w instanceof Ea){var S=w.__data__;if(!fh||S.length<i-1)return S.push([u,g]),this.size=++w.size,this;w=this.__data__=new Ta(S)}return w.set(u,g),this.size=w.size,this}Eo.prototype.clear=aR,Eo.prototype.delete=sR,Eo.prototype.get=lR,Eo.prototype.has=cR,Eo.prototype.set=dR;function Fz(u,g){var w=at(u),S=!w&&Gl(u),q=!w&&!S&&Bs(u),$=!w&&!S&&!q&&gd(u),H=w||S||q||$,Y=H?P0(u.length,xP):[],ne=Y.length;for(var pe in u)(g||qt.call(u,pe))&&!(H&&(pe=="length"||q&&(pe=="offset"||pe=="parent")||$&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Pa(pe,ne)))&&Y.push(pe);return Y}function Nz(u){var g=u.length;return g?u[K0(0,g-1)]:o}function fR(u,g){return qm(Zn(u),Wl(g,0,u.length))}function hR(u){return qm(Zn(u))}function N0(u,g,w){(w!==o&&!To(u[g],w)||w===o&&!(g in u))&&Ma(u,g,w)}function mh(u,g,w){var S=u[g];(!(qt.call(u,g)&&To(S,w))||w===o&&!(g in u))&&Ma(u,g,w)}function ym(u,g){for(var w=u.length;w--;)if(To(u[w][0],g))return w;return-1}function uR(u,g,w,S){return Is(u,function(q,$,H){g(S,q,w(q),H)}),S}function Hz(u,g){return u&&Xo(g,Qi(g),u)}function pR(u,g){return u&&Xo(g,tr(g),u)}function Ma(u,g,w){g=="__proto__"&&um?um(u,g,{configurable:!0,enumerable:!0,value:w,writable:!0}):u[g]=w}function H0(u,g){for(var w=-1,S=g.length,q=le(S),$=u==null;++w<S;)q[w]=$?o:w1(u,g[w]);return q}function Wl(u,g,w){return u===u&&(w!==o&&(u=u<=w?u:w),g!==o&&(u=u>=g?u:g)),u}function Gr(u,g,w,S,q,$){var H,Y=g&d,ne=g&f,pe=g&h;if(w&&(H=q?w(u,S,q,$):w(u)),H!==o)return H;if(!di(u))return u;var me=at(u);if(me){if(H=iO(u),!Y)return Zn(u,H)}else{var we=wn(u),Pe=we==F||we==D;if(Bs(u))return f2(u,Y);if(we==re||we==Ze||Pe&&!q){if(H=ne||Pe?{}:M2(u),!Y)return ne?VR(u,pR(H,u)):jR(u,Hz(H,u))}else{if(!jt[we])return q?u:{};H=nO(u,we,Y)}}$||($=new Eo);var Be=$.get(u);if(Be)return Be;$.set(u,H),o3(u)?u.forEach(function(Qe){H.add(Gr(Qe,g,w,Qe,u,$))}):n3(u)&&u.forEach(function(Qe,mt){H.set(mt,Gr(Qe,g,w,mt,u,$))});var Je=pe?ne?s1:a1:ne?tr:Qi,dt=me?o:Je(u);return jr(dt||u,function(Qe,mt){dt&&(mt=Qe,Qe=u[mt]),mh(H,mt,Gr(Qe,g,w,mt,u,$))}),H}function mR(u){var g=Qi(u);return function(w){return Bz(w,u,g)}}function Bz(u,g,w){var S=w.length;if(u==null)return!S;for(u=Ft(u);S--;){var q=w[S],$=g[q],H=u[q];if(H===o&&!(q in u)||!$(H))return!1}return!0}function Wz(u,g,w){if(typeof u!="function")throw new Vr(r);return kh(function(){u.apply(o,w)},g)}function gh(u,g,w,S){var q=-1,$=im,H=!0,Y=u.length,ne=[],pe=g.length;if(!Y)return ne;w&&(g=oi(g,yr(w))),S?($=A0,H=!1):g.length>=i&&($=ch,H=!1,g=new Bl(g));e:for(;++q<Y;){var me=u[q],we=w==null?me:w(me);if(me=S||me!==0?me:0,H&&we===we){for(var Pe=pe;Pe--;)if(g[Pe]===we)continue e;ne.push(me)}else $(g,we,S)||ne.push(me)}return ne}var Is=g2(Yo),jz=g2(W0,!0);function gR(u,g){var w=!0;return Is(u,function(S,q,$){return w=!!g(S,q,$),w}),w}function xm(u,g,w){for(var S=-1,q=u.length;++S<q;){var $=u[S],H=g($);if(H!=null&&(Y===o?H===H&&!wr(H):w(H,Y)))var Y=H,ne=$}return ne}function bR(u,g,w,S){var q=u.length;for(w=lt(w),w<0&&(w=-w>q?0:q+w),S=S===o||S>q?q:lt(S),S<0&&(S+=q),S=w>S?0:s3(S);w<S;)u[w++]=g;return u}function Vz(u,g){var w=[];return Is(u,function(S,q,$){g(S,q,$)&&w.push(S)}),w}function an(u,g,w,S,q){var $=-1,H=u.length;for(w||(w=oO),q||(q=[]);++$<H;){var Y=u[$];g>0&&w(Y)?g>1?an(Y,g-1,w,S,q):Rs(q,Y):S||(q[q.length]=Y)}return q}var B0=b2(),Uz=b2(!0);function Yo(u,g){return u&&B0(u,g,Qi)}function W0(u,g){return u&&Uz(u,g,Qi)}function wm(u,g){return Ps(g,function(w){return Ra(u[w])})}function jl(u,g){g=Ns(g,u);for(var w=0,S=g.length;u!=null&&w<S;)u=u[Ko(g[w++])];return w&&w==S?u:o}function Gz(u,g,w){var S=g(u);return at(u)?S:Rs(S,w(u))}function Dn(u){return u==null?u===o?on:W:Nl&&Nl in Ft(u)?ZR(u):hO(u)}function j0(u,g){return u>g}function vR(u,g){return u!=null&&qt.call(u,g)}function yR(u,g){return u!=null&&g in Ft(u)}function xR(u,g,w){return u>=xn(g,w)&&u<Hi(g,w)}function V0(u,g,w){for(var S=w?A0:im,q=u[0].length,$=u.length,H=$,Y=le($),ne=1/0,pe=[];H--;){var me=u[H];H&&g&&(me=oi(me,yr(g))),ne=xn(me.length,ne),Y[H]=!w&&(g||q>=120&&me.length>=120)?new Bl(H&&me):o}me=u[0];var we=-1,Pe=Y[0];e:for(;++we<q&&pe.length<ne;){var Be=me[we],Je=g?g(Be):Be;if(Be=w||Be!==0?Be:0,!(Pe?ch(Pe,Je):S(pe,Je,w))){for(H=$;--H;){var dt=Y[H];if(!(dt?ch(dt,Je):S(u[H],Je,w)))continue e}Pe&&Pe.push(Je),pe.push(Be)}}return pe}function wR(u,g,w,S){return Yo(u,function(q,$,H){g(S,w(q),$,H)}),S}function bh(u,g,w){g=Ns(g,u),u=R2(u,g);var S=u==null?u:u[Ko(Xr(g))];return S==null?o:vr(S,u,w)}function Yz(u){return vi(u)&&Dn(u)==Ze}function kR(u){return vi(u)&&Dn(u)==zo}function _R(u){return vi(u)&&Dn(u)==Te}function vh(u,g,w,S,q){return u===g?!0:u==null||g==null||!vi(u)&&!vi(g)?u!==u&&g!==g:zR(u,g,w,S,vh,q)}function zR(u,g,w,S,q,$){var H=at(u),Y=at(g),ne=H?Ne:wn(u),pe=Y?Ne:wn(g);ne=ne==Ze?re:ne,pe=pe==Ze?re:pe;var me=ne==re,we=pe==re,Pe=ne==pe;if(Pe&&Bs(u)){if(!Bs(g))return!1;H=!0,me=!1}if(Pe&&!me)return $||($=new Eo),H||gd(u)?A2(u,g,w,S,q,$):JR(u,g,ne,w,S,q,$);if(!(w&p)){var Be=me&&qt.call(u,"__wrapped__"),Je=we&&qt.call(g,"__wrapped__");if(Be||Je){var dt=Be?u.value():u,Qe=Je?g.value():g;return $||($=new Eo),q(dt,Qe,w,S,$)}}return Pe?($||($=new Eo),QR(u,g,w,S,q,$)):!1}function CR(u){return vi(u)&&wn(u)==G}function U0(u,g,w,S){var q=w.length,$=q,H=!S;if(u==null)return!$;for(u=Ft(u);q--;){var Y=w[q];if(H&&Y[2]?Y[1]!==u[Y[0]]:!(Y[0]in u))return!1}for(;++q<$;){Y=w[q];var ne=Y[0],pe=u[ne],me=Y[1];if(H&&Y[2]){if(pe===o&&!(ne in u))return!1}else{var we=new Eo;if(S)var Pe=S(pe,me,ne,u,g,we);if(!(Pe===o?vh(me,pe,p|m,S,we):Pe))return!1}}return!0}function Xz(u){if(!di(u)||sO(u))return!1;var g=Ra(u)?CP:mq;return g.test(Ul(u))}function SR(u){return vi(u)&&Dn(u)==Ie}function AR(u){return vi(u)&&wn(u)==qe}function ER(u){return vi(u)&&Im(u.length)&&!!ei[Dn(u)]}function Kz(u){return typeof u=="function"?u:u==null?ir:typeof u=="object"?at(u)?Zz(u[0],u[1]):Qz(u):v3(u)}function G0(u){if(!wh(u))return LP(u);var g=[];for(var w in Ft(u))qt.call(u,w)&&w!="constructor"&&g.push(w);return g}function TR(u){if(!di(u))return fO(u);var g=wh(u),w=[];for(var S in u)S=="constructor"&&(g||!qt.call(u,S))||w.push(S);return w}function Y0(u,g){return u<g}function Jz(u,g){var w=-1,S=er(u)?le(u.length):[];return Is(u,function(q,$,H){S[++w]=g(q,$,H)}),S}function Qz(u){var g=c1(u);return g.length==1&&g[0][2]?q2(g[0][0],g[0][1]):function(w){return w===u||U0(w,u,g)}}function Zz(u,g){return f1(u)&&L2(g)?q2(Ko(u),g):function(w){var S=w1(w,u);return S===o&&S===g?k1(w,u):vh(g,S,p|m)}}function km(u,g,w,S,q){u!==g&&B0(g,function($,H){if(q||(q=new Eo),di($))MR(u,g,H,w,km,S,q);else{var Y=S?S(u1(u,H),$,H+"",u,g,q):o;Y===o&&(Y=$),N0(u,H,Y)}},tr)}function MR(u,g,w,S,q,$,H){var Y=u1(u,w),ne=u1(g,w),pe=H.get(ne);if(pe){N0(u,w,pe);return}var me=$?$(Y,ne,w+"",u,g,H):o,we=me===o;if(we){var Pe=at(ne),Be=!Pe&&Bs(ne),Je=!Pe&&!Be&&gd(ne);me=ne,Pe||Be||Je?at(Y)?me=Y:_i(Y)?me=Zn(Y):Be?(we=!1,me=f2(ne,!0)):Je?(we=!1,me=h2(ne,!0)):me=[]:_h(ne)||Gl(ne)?(me=Y,Gl(Y)?me=l3(Y):(!di(Y)||Ra(Y))&&(me=M2(ne))):we=!1}we&&(H.set(ne,me),q(me,ne,S,$,H),H.delete(ne)),N0(u,w,me)}function e2(u,g){var w=u.length;if(w)return g+=g<0?w:0,Pa(g,w)?u[g]:o}function t2(u,g,w){g.length?g=oi(g,function($){return at($)?function(H){return jl(H,$.length===1?$[0]:$)}:$}):g=[ir];var S=-1;g=oi(g,yr(Xe()));var q=Jz(u,function($,H,Y){var ne=oi(g,function(pe){return pe($)});return{criteria:ne,index:++S,value:$}});return nP(q,function($,H){return WR($,H,w)})}function LR(u,g){return i2(u,g,function(w,S){return k1(u,S)})}function i2(u,g,w){for(var S=-1,q=g.length,$={};++S<q;){var H=g[S],Y=jl(u,H);w(Y,H)&&yh($,Ns(H,u),Y)}return $}function qR(u){return function(g){return jl(g,u)}}function X0(u,g,w,S){var q=S?iP:ad,$=-1,H=g.length,Y=u;for(u===g&&(g=Zn(g)),w&&(Y=oi(u,yr(w)));++$<H;)for(var ne=0,pe=g[$],me=w?w(pe):pe;(ne=q(Y,me,ne,S))>-1;)Y!==u&&hm.call(Y,ne,1),hm.call(u,ne,1);return u}function n2(u,g){for(var w=u?g.length:0,S=w-1;w--;){var q=g[w];if(w==S||q!==$){var $=q;Pa(q)?hm.call(u,q,1):Z0(u,q)}}return u}function K0(u,g){return u+mm($z()*(g-u+1))}function PR(u,g,w,S){for(var q=-1,$=Hi(pm((g-u)/(w||1)),0),H=le($);$--;)H[S?$:++q]=u,u+=w;return H}function J0(u,g){var w="";if(!u||g<1||g>se)return w;do g%2&&(w+=u),g=mm(g/2),g&&(u+=u);while(g);return w}function ut(u,g){return p1(P2(u,g,ir),u+"")}function RR(u){return Nz(bd(u))}function OR(u,g){var w=bd(u);return qm(w,Wl(g,0,w.length))}function yh(u,g,w,S){if(!di(u))return u;g=Ns(g,u);for(var q=-1,$=g.length,H=$-1,Y=u;Y!=null&&++q<$;){var ne=Ko(g[q]),pe=w;if(ne==="__proto__"||ne==="constructor"||ne==="prototype")return u;if(q!=H){var me=Y[ne];pe=S?S(me,ne,Y):o,pe===o&&(pe=di(me)?me:Pa(g[q+1])?[]:{})}mh(Y,ne,pe),Y=Y[ne]}return u}var r2=gm?function(u,g){return gm.set(u,g),u}:ir,DR=um?function(u,g){return um(u,"toString",{configurable:!0,enumerable:!1,value:z1(g),writable:!0})}:ir;function $R(u){return qm(bd(u))}function Yr(u,g,w){var S=-1,q=u.length;g<0&&(g=-g>q?0:q+g),w=w>q?q:w,w<0&&(w+=q),q=g>w?0:w-g>>>0,g>>>=0;for(var $=le(q);++S<q;)$[S]=u[S+g];return $}function IR(u,g){var w;return Is(u,function(S,q,$){return w=g(S,q,$),!w}),!!w}function _m(u,g,w){var S=0,q=u==null?S:u.length;if(typeof g=="number"&&g===g&&q<=Le){for(;S<q;){var $=S+q>>>1,H=u[$];H!==null&&!wr(H)&&(w?H<=g:H<g)?S=$+1:q=$}return q}return Q0(u,g,ir,w)}function Q0(u,g,w,S){var q=0,$=u==null?0:u.length;if($===0)return 0;g=w(g);for(var H=g!==g,Y=g===null,ne=wr(g),pe=g===o;q<$;){var me=mm((q+$)/2),we=w(u[me]),Pe=we!==o,Be=we===null,Je=we===we,dt=wr(we);if(H)var Qe=S||Je;else pe?Qe=Je&&(S||Pe):Y?Qe=Je&&Pe&&(S||!Be):ne?Qe=Je&&Pe&&!Be&&(S||!dt):Be||dt?Qe=!1:Qe=S?we<=g:we<g;Qe?q=me+1:$=me}return xn($,Ae)}function o2(u,g){for(var w=-1,S=u.length,q=0,$=[];++w<S;){var H=u[w],Y=g?g(H):H;if(!w||!To(Y,ne)){var ne=Y;$[q++]=H===0?0:H}}return $}function a2(u){return typeof u=="number"?u:wr(u)?_e:+u}function xr(u){if(typeof u=="string")return u;if(at(u))return oi(u,xr)+"";if(wr(u))return Iz?Iz.call(u):"";var g=u+"";return g=="0"&&1/u==-oe?"-0":g}function Fs(u,g,w){var S=-1,q=im,$=u.length,H=!0,Y=[],ne=Y;if(w)H=!1,q=A0;else if($>=i){var pe=g?null:XR(u);if(pe)return rm(pe);H=!1,q=ch,ne=new Bl}else ne=g?[]:Y;e:for(;++S<$;){var me=u[S],we=g?g(me):me;if(me=w||me!==0?me:0,H&&we===we){for(var Pe=ne.length;Pe--;)if(ne[Pe]===we)continue e;g&&ne.push(we),Y.push(me)}else q(ne,we,w)||(ne!==Y&&ne.push(we),Y.push(me))}return Y}function Z0(u,g){return g=Ns(g,u),u=R2(u,g),u==null||delete u[Ko(Xr(g))]}function s2(u,g,w,S){return yh(u,g,w(jl(u,g)),S)}function zm(u,g,w,S){for(var q=u.length,$=S?q:-1;(S?$--:++$<q)&&g(u[$],$,u););return w?Yr(u,S?0:$,S?$+1:q):Yr(u,S?$+1:0,S?q:$)}function l2(u,g){var w=u;return w instanceof vt&&(w=w.value()),E0(g,function(S,q){return q.func.apply(q.thisArg,Rs([S],q.args))},w)}function e1(u,g,w){var S=u.length;if(S<2)return S?Fs(u[0]):[];for(var q=-1,$=le(S);++q<S;)for(var H=u[q],Y=-1;++Y<S;)Y!=q&&($[q]=gh($[q]||H,u[Y],g,w));return Fs(an($,1),g,w)}function c2(u,g,w){for(var S=-1,q=u.length,$=g.length,H={};++S<q;){var Y=S<$?g[S]:o;w(H,u[S],Y)}return H}function t1(u){return _i(u)?u:[]}function i1(u){return typeof u=="function"?u:ir}function Ns(u,g){return at(u)?u:f1(u,g)?[u]:I2(Tt(u))}var FR=ut;function Hs(u,g,w){var S=u.length;return w=w===o?S:w,!g&&w>=S?u:Yr(u,g,w)}var d2=SP||function(u){return Ji.clearTimeout(u)};function f2(u,g){if(g)return u.slice();var w=u.length,S=qz?qz(w):new u.constructor(w);return u.copy(S),S}function n1(u){var g=new u.constructor(u.byteLength);return new dm(g).set(new dm(u)),g}function NR(u,g){var w=g?n1(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.byteLength)}function HR(u){var g=new u.constructor(u.source,Y_.exec(u));return g.lastIndex=u.lastIndex,g}function BR(u){return ph?Ft(ph.call(u)):{}}function h2(u,g){var w=g?n1(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.length)}function u2(u,g){if(u!==g){var w=u!==o,S=u===null,q=u===u,$=wr(u),H=g!==o,Y=g===null,ne=g===g,pe=wr(g);if(!Y&&!pe&&!$&&u>g||$&&H&&ne&&!Y&&!pe||S&&H&&ne||!w&&ne||!q)return 1;if(!S&&!$&&!pe&&u<g||pe&&w&&q&&!S&&!$||Y&&w&&q||!H&&q||!ne)return-1}return 0}function WR(u,g,w){for(var S=-1,q=u.criteria,$=g.criteria,H=q.length,Y=w.length;++S<H;){var ne=u2(q[S],$[S]);if(ne){if(S>=Y)return ne;var pe=w[S];return ne*(pe=="desc"?-1:1)}}return u.index-g.index}function p2(u,g,w,S){for(var q=-1,$=u.length,H=w.length,Y=-1,ne=g.length,pe=Hi($-H,0),me=le(ne+pe),we=!S;++Y<ne;)me[Y]=g[Y];for(;++q<H;)(we||q<$)&&(me[w[q]]=u[q]);for(;pe--;)me[Y++]=u[q++];return me}function m2(u,g,w,S){for(var q=-1,$=u.length,H=-1,Y=w.length,ne=-1,pe=g.length,me=Hi($-Y,0),we=le(me+pe),Pe=!S;++q<me;)we[q]=u[q];for(var Be=q;++ne<pe;)we[Be+ne]=g[ne];for(;++H<Y;)(Pe||q<$)&&(we[Be+w[H]]=u[q++]);return we}function Zn(u,g){var w=-1,S=u.length;for(g||(g=le(S));++w<S;)g[w]=u[w];return g}function Xo(u,g,w,S){var q=!w;w||(w={});for(var $=-1,H=g.length;++$<H;){var Y=g[$],ne=S?S(w[Y],u[Y],Y,w,u):o;ne===o&&(ne=u[Y]),q?Ma(w,Y,ne):mh(w,Y,ne)}return w}function jR(u,g){return Xo(u,d1(u),g)}function VR(u,g){return Xo(u,E2(u),g)}function Cm(u,g){return function(w,S){var q=at(w)?Kq:uR,$=g?g():{};return q(w,u,Xe(S,2),$)}}function ud(u){return ut(function(g,w){var S=-1,q=w.length,$=q>1?w[q-1]:o,H=q>2?w[2]:o;for($=u.length>3&&typeof $=="function"?(q--,$):o,H&&$n(w[0],w[1],H)&&($=q<3?o:$,q=1),g=Ft(g);++S<q;){var Y=w[S];Y&&u(g,Y,S,$)}return g})}function g2(u,g){return function(w,S){if(w==null)return w;if(!er(w))return u(w,S);for(var q=w.length,$=g?q:-1,H=Ft(w);(g?$--:++$<q)&&S(H[$],$,H)!==!1;);return w}}function b2(u){return function(g,w,S){for(var q=-1,$=Ft(g),H=S(g),Y=H.length;Y--;){var ne=H[u?Y:++q];if(w($[ne],ne,$)===!1)break}return g}}function UR(u,g,w){var S=g&v,q=xh(u);function $(){var H=this&&this!==Ji&&this instanceof $?q:u;return H.apply(S?w:this,arguments)}return $}function v2(u){return function(g){g=Tt(g);var w=sd(g)?Ao(g):o,S=w?w[0]:g.charAt(0),q=w?Hs(w,1).join(""):g.slice(1);return S[u]()+q}}function pd(u){return function(g){return E0(g3(m3(g).replace(Dq,"")),u,"")}}function xh(u){return function(){var g=arguments;switch(g.length){case 0:return new u;case 1:return new u(g[0]);case 2:return new u(g[0],g[1]);case 3:return new u(g[0],g[1],g[2]);case 4:return new u(g[0],g[1],g[2],g[3]);case 5:return new u(g[0],g[1],g[2],g[3],g[4]);case 6:return new u(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new u(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var w=hd(u.prototype),S=u.apply(w,g);return di(S)?S:w}}function GR(u,g,w){var S=xh(u);function q(){for(var $=arguments.length,H=le($),Y=$,ne=md(q);Y--;)H[Y]=arguments[Y];var pe=$<3&&H[0]!==ne&&H[$-1]!==ne?[]:Os(H,ne);if($-=pe.length,$<w)return _2(u,g,Sm,q.placeholder,o,H,pe,o,o,w-$);var me=this&&this!==Ji&&this instanceof q?S:u;return vr(me,this,H)}return q}function y2(u){return function(g,w,S){var q=Ft(g);if(!er(g)){var $=Xe(w,3);g=Qi(g),w=function(Y){return $(q[Y],Y,q)}}var H=u(g,w,S);return H>-1?q[$?g[H]:H]:o}}function x2(u){return qa(function(g){var w=g.length,S=w,q=Ur.prototype.thru;for(u&&g.reverse();S--;){var $=g[S];if(typeof $!="function")throw new Vr(r);if(q&&!H&&Mm($)=="wrapper")var H=new Ur([],!0)}for(S=H?S:w;++S<w;){$=g[S];var Y=Mm($),ne=Y=="wrapper"?l1($):o;ne&&h1(ne[0])&&ne[1]==(C|k|E|L)&&!ne[4].length&&ne[9]==1?H=H[Mm(ne[0])].apply(H,ne[3]):H=$.length==1&&h1($)?H[Y]():H.thru($)}return function(){var pe=arguments,me=pe[0];if(H&&pe.length==1&&at(me))return H.plant(me).value();for(var we=0,Pe=w?g[we].apply(this,pe):me;++we<w;)Pe=g[we].call(this,Pe);return Pe}})}function Sm(u,g,w,S,q,$,H,Y,ne,pe){var me=g&C,we=g&v,Pe=g&b,Be=g&(k|z),Je=g&M,dt=Pe?o:xh(u);function Qe(){for(var mt=arguments.length,yt=le(mt),kr=mt;kr--;)yt[kr]=arguments[kr];if(Be)var In=md(Qe),_r=oP(yt,In);if(S&&(yt=p2(yt,S,q,Be)),$&&(yt=m2(yt,$,H,Be)),mt-=_r,Be&&mt<pe){var zi=Os(yt,In);return _2(u,g,Sm,Qe.placeholder,w,yt,zi,Y,ne,pe-mt)}var Mo=we?w:this,Da=Pe?Mo[u]:u;return mt=yt.length,Y?yt=uO(yt,Y):Je&&mt>1&&yt.reverse(),me&&ne<mt&&(yt.length=ne),this&&this!==Ji&&this instanceof Qe&&(Da=dt||xh(Da)),Da.apply(Mo,yt)}return Qe}function w2(u,g){return function(w,S){return wR(w,u,g(S),{})}}function Am(u,g){return function(w,S){var q;if(w===o&&S===o)return g;if(w!==o&&(q=w),S!==o){if(q===o)return S;typeof w=="string"||typeof S=="string"?(w=xr(w),S=xr(S)):(w=a2(w),S=a2(S)),q=u(w,S)}return q}}function r1(u){return qa(function(g){return g=oi(g,yr(Xe())),ut(function(w){var S=this;return u(g,function(q){return vr(q,S,w)})})})}function Em(u,g){g=g===o?" ":xr(g);var w=g.length;if(w<2)return w?J0(g,u):g;var S=J0(g,pm(u/ld(g)));return sd(g)?Hs(Ao(S),0,u).join(""):S.slice(0,u)}function YR(u,g,w,S){var q=g&v,$=xh(u);function H(){for(var Y=-1,ne=arguments.length,pe=-1,me=S.length,we=le(me+ne),Pe=this&&this!==Ji&&this instanceof H?$:u;++pe<me;)we[pe]=S[pe];for(;ne--;)we[pe++]=arguments[++Y];return vr(Pe,q?w:this,we)}return H}function k2(u){return function(g,w,S){return S&&typeof S!="number"&&$n(g,w,S)&&(w=S=o),g=Oa(g),w===o?(w=g,g=0):w=Oa(w),S=S===o?g<w?1:-1:Oa(S),PR(g,w,S,u)}}function Tm(u){return function(g,w){return typeof g=="string"&&typeof w=="string"||(g=Kr(g),w=Kr(w)),u(g,w)}}function _2(u,g,w,S,q,$,H,Y,ne,pe){var me=g&k,we=me?H:o,Pe=me?o:H,Be=me?$:o,Je=me?o:$;g|=me?E:A,g&=~(me?A:E),g&x||(g&=~(v|b));var dt=[u,g,q,Be,we,Je,Pe,Y,ne,pe],Qe=w.apply(o,dt);return h1(u)&&O2(Qe,dt),Qe.placeholder=S,D2(Qe,u,g)}function o1(u){var g=Ni[u];return function(w,S){if(w=Kr(w),S=S==null?0:xn(lt(S),292),S&&Dz(w)){var q=(Tt(w)+"e").split("e"),$=g(q[0]+"e"+(+q[1]+S));return q=(Tt($)+"e").split("e"),+(q[0]+"e"+(+q[1]-S))}return g(w)}}var XR=dd&&1/rm(new dd([,-0]))[1]==oe?function(u){return new dd(u)}:A1;function z2(u){return function(g){var w=wn(g);return w==G?O0(g):w==qe?hP(g):rP(g,u(g))}}function La(u,g,w,S,q,$,H,Y){var ne=g&b;if(!ne&&typeof u!="function")throw new Vr(r);var pe=S?S.length:0;if(pe||(g&=~(E|A),S=q=o),H=H===o?H:Hi(lt(H),0),Y=Y===o?Y:lt(Y),pe-=q?q.length:0,g&A){var me=S,we=q;S=q=o}var Pe=ne?o:l1(u),Be=[u,g,w,S,q,me,we,$,H,Y];if(Pe&&dO(Be,Pe),u=Be[0],g=Be[1],w=Be[2],S=Be[3],q=Be[4],Y=Be[9]=Be[9]===o?ne?0:u.length:Hi(Be[9]-pe,0),!Y&&g&(k|z)&&(g&=~(k|z)),!g||g==v)var Je=UR(u,g,w);else g==k||g==z?Je=GR(u,g,Y):(g==E||g==(v|E))&&!q.length?Je=YR(u,g,w,S):Je=Sm.apply(o,Be);var dt=Pe?r2:O2;return D2(dt(Je,Be),u,g)}function C2(u,g,w,S){return u===o||To(u,cd[w])&&!qt.call(S,w)?g:u}function S2(u,g,w,S,q,$){return di(u)&&di(g)&&($.set(g,u),km(u,g,o,S2,$),$.delete(g)),u}function KR(u){return _h(u)?o:u}function A2(u,g,w,S,q,$){var H=w&p,Y=u.length,ne=g.length;if(Y!=ne&&!(H&&ne>Y))return!1;var pe=$.get(u),me=$.get(g);if(pe&&me)return pe==g&&me==u;var we=-1,Pe=!0,Be=w&m?new Bl:o;for($.set(u,g),$.set(g,u);++we<Y;){var Je=u[we],dt=g[we];if(S)var Qe=H?S(dt,Je,we,g,u,$):S(Je,dt,we,u,g,$);if(Qe!==o){if(Qe)continue;Pe=!1;break}if(Be){if(!T0(g,function(mt,yt){if(!ch(Be,yt)&&(Je===mt||q(Je,mt,w,S,$)))return Be.push(yt)})){Pe=!1;break}}else if(!(Je===dt||q(Je,dt,w,S,$))){Pe=!1;break}}return $.delete(u),$.delete(g),Pe}function JR(u,g,w,S,q,$,H){switch(w){case Qn:if(u.byteLength!=g.byteLength||u.byteOffset!=g.byteOffset)return!1;u=u.buffer,g=g.buffer;case zo:return!(u.byteLength!=g.byteLength||!$(new dm(u),new dm(g)));case xe:case Te:case V:return To(+u,+g);case R:return u.name==g.name&&u.message==g.message;case Ie:case je:return u==g+"";case G:var Y=O0;case qe:var ne=S&p;if(Y||(Y=rm),u.size!=g.size&&!ne)return!1;var pe=H.get(u);if(pe)return pe==g;S|=m,H.set(u,g);var me=A2(Y(u),Y(g),S,q,$,H);return H.delete(u),me;case Pt:if(ph)return ph.call(u)==ph.call(g)}return!1}function QR(u,g,w,S,q,$){var H=w&p,Y=a1(u),ne=Y.length,pe=a1(g),me=pe.length;if(ne!=me&&!H)return!1;for(var we=ne;we--;){var Pe=Y[we];if(!(H?Pe in g:qt.call(g,Pe)))return!1}var Be=$.get(u),Je=$.get(g);if(Be&&Je)return Be==g&&Je==u;var dt=!0;$.set(u,g),$.set(g,u);for(var Qe=H;++we<ne;){Pe=Y[we];var mt=u[Pe],yt=g[Pe];if(S)var kr=H?S(yt,mt,Pe,g,u,$):S(mt,yt,Pe,u,g,$);if(!(kr===o?mt===yt||q(mt,yt,w,S,$):kr)){dt=!1;break}Qe||(Qe=Pe=="constructor")}if(dt&&!Qe){var In=u.constructor,_r=g.constructor;In!=_r&&"constructor"in u&&"constructor"in g&&!(typeof In=="function"&&In instanceof In&&typeof _r=="function"&&_r instanceof _r)&&(dt=!1)}return $.delete(u),$.delete(g),dt}function qa(u){return p1(P2(u,o,B2),u+"")}function a1(u){return Gz(u,Qi,d1)}function s1(u){return Gz(u,tr,E2)}var l1=gm?function(u){return gm.get(u)}:A1;function Mm(u){for(var g=u.name+"",w=fd[g],S=qt.call(fd,g)?w.length:0;S--;){var q=w[S],$=q.func;if($==null||$==u)return q.name}return g}function md(u){var g=qt.call(O,"placeholder")?O:u;return g.placeholder}function Xe(){var u=O.iteratee||C1;return u=u===C1?Kz:u,arguments.length?u(arguments[0],arguments[1]):u}function Lm(u,g){var w=u.__data__;return aO(g)?w[typeof g=="string"?"string":"hash"]:w.map}function c1(u){for(var g=Qi(u),w=g.length;w--;){var S=g[w],q=u[S];g[w]=[S,q,L2(q)]}return g}function Vl(u,g){var w=cP(u,g);return Xz(w)?w:o}function ZR(u){var g=qt.call(u,Nl),w=u[Nl];try{u[Nl]=o;var S=!0}catch($){}var q=lm.call(u);return S&&(g?u[Nl]=w:delete u[Nl]),q}var d1=$0?function(u){return u==null?[]:(u=Ft(u),Ps($0(u),function(g){return Rz.call(u,g)}))}:E1,E2=$0?function(u){for(var g=[];u;)Rs(g,d1(u)),u=fm(u);return g}:E1,wn=Dn;(I0&&wn(new I0(new ArrayBuffer(1)))!=Qn||fh&&wn(new fh)!=G||F0&&wn(F0.resolve())!=fe||dd&&wn(new dd)!=qe||hh&&wn(new hh)!=ri)&&(wn=function(u){var g=Dn(u),w=g==re?u.constructor:o,S=w?Ul(w):"";if(S)switch(S){case OP:return Qn;case DP:return G;case $P:return fe;case IP:return qe;case FP:return ri}return g});function eO(u,g,w){for(var S=-1,q=w.length;++S<q;){var $=w[S],H=$.size;switch($.type){case"drop":u+=H;break;case"dropRight":g-=H;break;case"take":g=xn(g,u+H);break;case"takeRight":u=Hi(u,g-H);break}}return{start:u,end:g}}function tO(u){var g=u.match(sq);return g?g[1].split(lq):[]}function T2(u,g,w){g=Ns(g,u);for(var S=-1,q=g.length,$=!1;++S<q;){var H=Ko(g[S]);if(!($=u!=null&&w(u,H)))break;u=u[H]}return $||++S!=q?$:(q=u==null?0:u.length,!!q&&Im(q)&&Pa(H,q)&&(at(u)||Gl(u)))}function iO(u){var g=u.length,w=new u.constructor(g);return g&&typeof u[0]=="string"&&qt.call(u,"index")&&(w.index=u.index,w.input=u.input),w}function M2(u){return typeof u.constructor=="function"&&!wh(u)?hd(fm(u)):{}}function nO(u,g,w){var S=u.constructor;switch(g){case zo:return n1(u);case xe:case Te:return new S(+u);case Qn:return NR(u,w);case Co:case So:case Il:case qs:case sh:case lh:case m0:case g0:case b0:return h2(u,w);case G:return new S;case V:case je:return new S(u);case Ie:return HR(u);case qe:return new S;case Pt:return BR(u)}}function rO(u,g){var w=g.length;if(!w)return u;var S=w-1;return g[S]=(w>1?"& ":"")+g[S],g=g.join(w>2?", ":" "),u.replace(aq,`{
1
+ "use strict";(()=>{var AF=Object.create;var zh=Object.defineProperty,EF=Object.defineProperties,x3=Object.getOwnPropertyDescriptor,TF=Object.getOwnPropertyDescriptors,MF=Object.getOwnPropertyNames,Hm=Object.getOwnPropertySymbols,LF=Object.getPrototypeOf,L1=Object.prototype.hasOwnProperty,w3=Object.prototype.propertyIsEnumerable;var M1=(o,t,i)=>t in o?zh(o,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):o[t]=i,Ce=(o,t)=>{for(var i in t||(t={}))L1.call(t,i)&&M1(o,i,t[i]);if(Hm)for(var i of Hm(t))w3.call(t,i)&&M1(o,i,t[i]);return o},et=(o,t)=>EF(o,TF(t));var Yl=(o,t)=>{var i={};for(var n in o)L1.call(o,n)&&t.indexOf(n)<0&&(i[n]=o[n]);if(o!=null&&Hm)for(var n of Hm(o))t.indexOf(n)<0&&w3.call(o,n)&&(i[n]=o[n]);return i};var Jo=(o,t)=>()=>(t||o((t={exports:{}}).exports,t),t.exports),qF=(o,t)=>{for(var i in t)zh(o,i,{get:t[i],enumerable:!0})},PF=(o,t,i,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of MF(t))!L1.call(o,r)&&r!==i&&zh(o,r,{get:()=>t[r],enumerable:!(n=x3(t,r))||n.enumerable});return o};var sn=(o,t,i)=>(i=o!=null?AF(LF(o)):{},PF(t||!o||!o.__esModule?zh(i,"default",{value:o,enumerable:!0}):i,o));var y=(o,t,i,n)=>{for(var r=n>1?void 0:n?x3(t,i):t,a=o.length-1,s;a>=0;a--)(s=o[a])&&(r=(n?s(t,i,r):s(r))||r);return n&&r&&zh(t,i,r),r};var ie=(o,t,i)=>M1(o,typeof t!="symbol"?t+"":t,i);var _w=Jo((vf,Xu)=>{(function(){var o,t="4.17.21",i=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,c="__lodash_placeholder__",d=1,f=2,h=4,p=1,m=2,v=1,b=2,x=4,k=8,z=16,E=32,A=64,C=128,L=256,M=512,P=30,I="...",N=800,B=16,U=1,ee=2,ae=3,oe=1/0,se=9007199254740991,de=17976931348623157e292,_e=NaN,ve=4294967295,Ae=ve-1,Le=ve>>>1,Se=[["ary",C],["bind",v],["bindKey",b],["curry",k],["curryRight",z],["flip",M],["partial",E],["partialRight",A],["rearg",L]],Ze="[object Arguments]",Ne="[object Array]",Re="[object AsyncFunction]",xe="[object Boolean]",Te="[object Date]",X="[object DOMException]",R="[object Error]",F="[object Function]",D="[object GeneratorFunction]",G="[object Map]",V="[object Number]",W="[object Null]",re="[object Object]",fe="[object Promise]",Ee="[object Proxy]",Ie="[object RegExp]",qe="[object Set]",je="[object String]",Pt="[object Symbol]",on="[object Undefined]",ri="[object WeakMap]",rd="[object WeakSet]",zo="[object ArrayBuffer]",Qn="[object DataView]",Co="[object Float32Array]",So="[object Float64Array]",Il="[object Int8Array]",qs="[object Int16Array]",sh="[object Int32Array]",lh="[object Uint8Array]",m0="[object Uint8ClampedArray]",g0="[object Uint16Array]",b0="[object Uint32Array]",Y7=/\b__p \+= '';/g,X7=/\b(__p \+=) '' \+/g,K7=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V_=/&(?:amp|lt|gt|quot|#39);/g,U_=/[&<>"']/g,J7=RegExp(V_.source),Q7=RegExp(U_.source),Z7=/<%-([\s\S]+?)%>/g,eq=/<%([\s\S]+?)%>/g,G_=/<%=([\s\S]+?)%>/g,tq=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iq=/^\w*$/,nq=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,v0=/[\\^$.*+?()[\]{}|]/g,rq=RegExp(v0.source),y0=/^\s+/,oq=/\s/,aq=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sq=/\{\n\/\* \[wrapped with (.+)\] \*/,lq=/,? & /,cq=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,dq=/[()=,{}\[\]\/\s]/,fq=/\\(\\)?/g,hq=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Y_=/\w*$/,uq=/^[-+]0x[0-9a-f]+$/i,pq=/^0b[01]+$/i,mq=/^\[object .+?Constructor\]$/,gq=/^0o[0-7]+$/i,bq=/^(?:0|[1-9]\d*)$/,vq=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zp=/($^)/,yq=/['\n\r\u2028\u2029\\]/g,em="\\ud800-\\udfff",xq="\\u0300-\\u036f",wq="\\ufe20-\\ufe2f",kq="\\u20d0-\\u20ff",X_=xq+wq+kq,K_="\\u2700-\\u27bf",J_="a-z\\xdf-\\xf6\\xf8-\\xff",_q="\\xac\\xb1\\xd7\\xf7",zq="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Cq="\\u2000-\\u206f",Sq=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Q_="A-Z\\xc0-\\xd6\\xd8-\\xde",Z_="\\ufe0e\\ufe0f",ez=_q+zq+Cq+Sq,x0="['\u2019]",Aq="["+em+"]",tz="["+ez+"]",tm="["+X_+"]",iz="\\d+",Eq="["+K_+"]",nz="["+J_+"]",rz="[^"+em+ez+iz+K_+J_+Q_+"]",w0="\\ud83c[\\udffb-\\udfff]",Tq="(?:"+tm+"|"+w0+")",oz="[^"+em+"]",k0="(?:\\ud83c[\\udde6-\\uddff]){2}",_0="[\\ud800-\\udbff][\\udc00-\\udfff]",od="["+Q_+"]",az="\\u200d",sz="(?:"+nz+"|"+rz+")",Mq="(?:"+od+"|"+rz+")",lz="(?:"+x0+"(?:d|ll|m|re|s|t|ve))?",cz="(?:"+x0+"(?:D|LL|M|RE|S|T|VE))?",dz=Tq+"?",fz="["+Z_+"]?",Lq="(?:"+az+"(?:"+[oz,k0,_0].join("|")+")"+fz+dz+")*",qq="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pq="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",hz=fz+dz+Lq,Rq="(?:"+[Eq,k0,_0].join("|")+")"+hz,Oq="(?:"+[oz+tm+"?",tm,k0,_0,Aq].join("|")+")",Dq=RegExp(x0,"g"),$q=RegExp(tm,"g"),z0=RegExp(w0+"(?="+w0+")|"+Oq+hz,"g"),Iq=RegExp([od+"?"+nz+"+"+lz+"(?="+[tz,od,"$"].join("|")+")",Mq+"+"+cz+"(?="+[tz,od+sz,"$"].join("|")+")",od+"?"+sz+"+"+lz,od+"+"+cz,Pq,qq,iz,Rq].join("|"),"g"),Fq=RegExp("["+az+em+X_+Z_+"]"),Nq=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hq=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Bq=-1,ei={};ei[Co]=ei[So]=ei[Il]=ei[qs]=ei[sh]=ei[lh]=ei[m0]=ei[g0]=ei[b0]=!0,ei[Ze]=ei[Ne]=ei[zo]=ei[xe]=ei[Qn]=ei[Te]=ei[R]=ei[F]=ei[G]=ei[V]=ei[re]=ei[Ie]=ei[qe]=ei[je]=ei[ri]=!1;var jt={};jt[Ze]=jt[Ne]=jt[zo]=jt[Qn]=jt[xe]=jt[Te]=jt[Co]=jt[So]=jt[Il]=jt[qs]=jt[sh]=jt[G]=jt[V]=jt[re]=jt[Ie]=jt[qe]=jt[je]=jt[Pt]=jt[lh]=jt[m0]=jt[g0]=jt[b0]=!0,jt[R]=jt[F]=jt[ri]=!1;var Wq={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},jq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Vq={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Uq={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Gq=parseFloat,Yq=parseInt,uz=typeof global=="object"&&global&&global.Object===Object&&global,Xq=typeof self=="object"&&self&&self.Object===Object&&self,Ji=uz||Xq||Function("return this")(),C0=typeof vf=="object"&&vf&&!vf.nodeType&&vf,Fl=C0&&typeof Xu=="object"&&Xu&&!Xu.nodeType&&Xu,pz=Fl&&Fl.exports===C0,S0=pz&&uz.process,Wr=function(){try{var Q=Fl&&Fl.require&&Fl.require("util").types;return Q||S0&&S0.binding&&S0.binding("util")}catch(ue){}}(),mz=Wr&&Wr.isArrayBuffer,gz=Wr&&Wr.isDate,bz=Wr&&Wr.isMap,vz=Wr&&Wr.isRegExp,yz=Wr&&Wr.isSet,xz=Wr&&Wr.isTypedArray;function vr(Q,ue,le){switch(le.length){case 0:return Q.call(ue);case 1:return Q.call(ue,le[0]);case 2:return Q.call(ue,le[0],le[1]);case 3:return Q.call(ue,le[0],le[1],le[2])}return Q.apply(ue,le)}function Kq(Q,ue,le,Fe){for(var ot=-1,St=Q==null?0:Q.length;++ot<St;){var Ni=Q[ot];ue(Fe,Ni,le(Ni),Q)}return Fe}function jr(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length;++le<Fe&&ue(Q[le],le,Q)!==!1;);return Q}function Jq(Q,ue){for(var le=Q==null?0:Q.length;le--&&ue(Q[le],le,Q)!==!1;);return Q}function wz(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length;++le<Fe;)if(!ue(Q[le],le,Q))return!1;return!0}function Ps(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length,ot=0,St=[];++le<Fe;){var Ni=Q[le];ue(Ni,le,Q)&&(St[ot++]=Ni)}return St}function im(Q,ue){var le=Q==null?0:Q.length;return!!le&&ad(Q,ue,0)>-1}function A0(Q,ue,le){for(var Fe=-1,ot=Q==null?0:Q.length;++Fe<ot;)if(le(ue,Q[Fe]))return!0;return!1}function oi(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length,ot=Array(Fe);++le<Fe;)ot[le]=ue(Q[le],le,Q);return ot}function Rs(Q,ue){for(var le=-1,Fe=ue.length,ot=Q.length;++le<Fe;)Q[ot+le]=ue[le];return Q}function E0(Q,ue,le,Fe){var ot=-1,St=Q==null?0:Q.length;for(Fe&&St&&(le=Q[++ot]);++ot<St;)le=ue(le,Q[ot],ot,Q);return le}function Qq(Q,ue,le,Fe){var ot=Q==null?0:Q.length;for(Fe&&ot&&(le=Q[--ot]);ot--;)le=ue(le,Q[ot],ot,Q);return le}function T0(Q,ue){for(var le=-1,Fe=Q==null?0:Q.length;++le<Fe;)if(ue(Q[le],le,Q))return!0;return!1}var Zq=M0("length");function eP(Q){return Q.split("")}function tP(Q){return Q.match(cq)||[]}function kz(Q,ue,le){var Fe;return le(Q,function(ot,St,Ni){if(ue(ot,St,Ni))return Fe=St,!1}),Fe}function nm(Q,ue,le,Fe){for(var ot=Q.length,St=le+(Fe?1:-1);Fe?St--:++St<ot;)if(ue(Q[St],St,Q))return St;return-1}function ad(Q,ue,le){return ue===ue?uP(Q,ue,le):nm(Q,_z,le)}function iP(Q,ue,le,Fe){for(var ot=le-1,St=Q.length;++ot<St;)if(Fe(Q[ot],ue))return ot;return-1}function _z(Q){return Q!==Q}function zz(Q,ue){var le=Q==null?0:Q.length;return le?q0(Q,ue)/le:_e}function M0(Q){return function(ue){return ue==null?o:ue[Q]}}function L0(Q){return function(ue){return Q==null?o:Q[ue]}}function Cz(Q,ue,le,Fe,ot){return ot(Q,function(St,Ni,Ft){le=Fe?(Fe=!1,St):ue(le,St,Ni,Ft)}),le}function nP(Q,ue){var le=Q.length;for(Q.sort(ue);le--;)Q[le]=Q[le].value;return Q}function q0(Q,ue){for(var le,Fe=-1,ot=Q.length;++Fe<ot;){var St=ue(Q[Fe]);St!==o&&(le=le===o?St:le+St)}return le}function P0(Q,ue){for(var le=-1,Fe=Array(Q);++le<Q;)Fe[le]=ue(le);return Fe}function rP(Q,ue){return oi(ue,function(le){return[le,Q[le]]})}function Sz(Q){return Q&&Q.slice(0,Mz(Q)+1).replace(y0,"")}function yr(Q){return function(ue){return Q(ue)}}function R0(Q,ue){return oi(ue,function(le){return Q[le]})}function ch(Q,ue){return Q.has(ue)}function Az(Q,ue){for(var le=-1,Fe=Q.length;++le<Fe&&ad(ue,Q[le],0)>-1;);return le}function Ez(Q,ue){for(var le=Q.length;le--&&ad(ue,Q[le],0)>-1;);return le}function oP(Q,ue){for(var le=Q.length,Fe=0;le--;)Q[le]===ue&&++Fe;return Fe}var aP=L0(Wq),sP=L0(jq);function lP(Q){return"\\"+Uq[Q]}function cP(Q,ue){return Q==null?o:Q[ue]}function sd(Q){return Fq.test(Q)}function dP(Q){return Nq.test(Q)}function fP(Q){for(var ue,le=[];!(ue=Q.next()).done;)le.push(ue.value);return le}function O0(Q){var ue=-1,le=Array(Q.size);return Q.forEach(function(Fe,ot){le[++ue]=[ot,Fe]}),le}function Tz(Q,ue){return function(le){return Q(ue(le))}}function Os(Q,ue){for(var le=-1,Fe=Q.length,ot=0,St=[];++le<Fe;){var Ni=Q[le];(Ni===ue||Ni===c)&&(Q[le]=c,St[ot++]=le)}return St}function rm(Q){var ue=-1,le=Array(Q.size);return Q.forEach(function(Fe){le[++ue]=Fe}),le}function hP(Q){var ue=-1,le=Array(Q.size);return Q.forEach(function(Fe){le[++ue]=[Fe,Fe]}),le}function uP(Q,ue,le){for(var Fe=le-1,ot=Q.length;++Fe<ot;)if(Q[Fe]===ue)return Fe;return-1}function pP(Q,ue,le){for(var Fe=le+1;Fe--;)if(Q[Fe]===ue)return Fe;return Fe}function ld(Q){return sd(Q)?gP(Q):Zq(Q)}function Ao(Q){return sd(Q)?bP(Q):eP(Q)}function Mz(Q){for(var ue=Q.length;ue--&&oq.test(Q.charAt(ue)););return ue}var mP=L0(Vq);function gP(Q){for(var ue=z0.lastIndex=0;z0.test(Q);)++ue;return ue}function bP(Q){return Q.match(z0)||[]}function vP(Q){return Q.match(Iq)||[]}var yP=function Q(ue){ue=ue==null?Ji:Ds.defaults(Ji.Object(),ue,Ds.pick(Ji,Hq));var le=ue.Array,Fe=ue.Date,ot=ue.Error,St=ue.Function,Ni=ue.Math,Ft=ue.Object,D0=ue.RegExp,xP=ue.String,Vr=ue.TypeError,om=le.prototype,wP=St.prototype,cd=Ft.prototype,am=ue["__core-js_shared__"],sm=wP.toString,qt=cd.hasOwnProperty,kP=0,Lz=function(){var u=/[^.]+$/.exec(am&&am.keys&&am.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),lm=cd.toString,_P=sm.call(Ft),zP=Ji._,CP=D0("^"+sm.call(qt).replace(v0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cm=pz?ue.Buffer:o,$s=ue.Symbol,dm=ue.Uint8Array,qz=cm?cm.allocUnsafe:o,fm=Tz(Ft.getPrototypeOf,Ft),Pz=Ft.create,Rz=cd.propertyIsEnumerable,hm=om.splice,Oz=$s?$s.isConcatSpreadable:o,dh=$s?$s.iterator:o,Nl=$s?$s.toStringTag:o,um=function(){try{var u=Vl(Ft,"defineProperty");return u({},"",{}),u}catch(g){}}(),SP=ue.clearTimeout!==Ji.clearTimeout&&ue.clearTimeout,AP=Fe&&Fe.now!==Ji.Date.now&&Fe.now,EP=ue.setTimeout!==Ji.setTimeout&&ue.setTimeout,pm=Ni.ceil,mm=Ni.floor,$0=Ft.getOwnPropertySymbols,TP=cm?cm.isBuffer:o,Dz=ue.isFinite,MP=om.join,LP=Tz(Ft.keys,Ft),Hi=Ni.max,wn=Ni.min,qP=Fe.now,PP=ue.parseInt,$z=Ni.random,RP=om.reverse,I0=Vl(ue,"DataView"),fh=Vl(ue,"Map"),F0=Vl(ue,"Promise"),dd=Vl(ue,"Set"),hh=Vl(ue,"WeakMap"),uh=Vl(Ft,"create"),gm=hh&&new hh,fd={},OP=Ul(I0),DP=Ul(fh),$P=Ul(F0),IP=Ul(dd),FP=Ul(hh),bm=$s?$s.prototype:o,ph=bm?bm.valueOf:o,Iz=bm?bm.toString:o;function O(u){if(vi(u)&&!at(u)&&!(u instanceof vt)){if(u instanceof Ur)return u;if(qt.call(u,"__wrapped__"))return F2(u)}return new Ur(u)}var hd=function(){function u(){}return function(g){if(!di(g))return{};if(Pz)return Pz(g);u.prototype=g;var w=new u;return u.prototype=o,w}}();function vm(){}function Ur(u,g){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=o}O.templateSettings={escape:Z7,evaluate:eq,interpolate:G_,variable:"",imports:{_:O}},O.prototype=vm.prototype,O.prototype.constructor=O,Ur.prototype=hd(vm.prototype),Ur.prototype.constructor=Ur;function vt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ve,this.__views__=[]}function NP(){var u=new vt(this.__wrapped__);return u.__actions__=Zn(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Zn(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Zn(this.__views__),u}function HP(){if(this.__filtered__){var u=new vt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function BP(){var u=this.__wrapped__.value(),g=this.__dir__,w=at(u),S=g<0,q=w?u.length:0,$=eO(0,q,this.__views__),H=$.start,Y=$.end,ne=Y-H,pe=S?Y:H-1,me=this.__iteratees__,we=me.length,Pe=0,Be=wn(ne,this.__takeCount__);if(!w||!S&&q==ne&&Be==ne)return l2(u,this.__actions__);var Je=[];e:for(;ne--&&Pe<Be;){pe+=g;for(var dt=-1,Qe=u[pe];++dt<we;){var mt=me[dt],yt=mt.iteratee,kr=mt.type,In=yt(Qe);if(kr==ee)Qe=In;else if(!In){if(kr==U)continue e;break e}}Je[Pe++]=Qe}return Je}vt.prototype=hd(vm.prototype),vt.prototype.constructor=vt;function Hl(u){var g=-1,w=u==null?0:u.length;for(this.clear();++g<w;){var S=u[g];this.set(S[0],S[1])}}function WP(){this.__data__=uh?uh(null):{},this.size=0}function jP(u){var g=this.has(u)&&delete this.__data__[u];return this.size-=g?1:0,g}function VP(u){var g=this.__data__;if(uh){var w=g[u];return w===s?o:w}return qt.call(g,u)?g[u]:o}function UP(u){var g=this.__data__;return uh?g[u]!==o:qt.call(g,u)}function GP(u,g){var w=this.__data__;return this.size+=this.has(u)?0:1,w[u]=uh&&g===o?s:g,this}Hl.prototype.clear=WP,Hl.prototype.delete=jP,Hl.prototype.get=VP,Hl.prototype.has=UP,Hl.prototype.set=GP;function Ea(u){var g=-1,w=u==null?0:u.length;for(this.clear();++g<w;){var S=u[g];this.set(S[0],S[1])}}function YP(){this.__data__=[],this.size=0}function XP(u){var g=this.__data__,w=ym(g,u);if(w<0)return!1;var S=g.length-1;return w==S?g.pop():hm.call(g,w,1),--this.size,!0}function KP(u){var g=this.__data__,w=ym(g,u);return w<0?o:g[w][1]}function JP(u){return ym(this.__data__,u)>-1}function QP(u,g){var w=this.__data__,S=ym(w,u);return S<0?(++this.size,w.push([u,g])):w[S][1]=g,this}Ea.prototype.clear=YP,Ea.prototype.delete=XP,Ea.prototype.get=KP,Ea.prototype.has=JP,Ea.prototype.set=QP;function Ta(u){var g=-1,w=u==null?0:u.length;for(this.clear();++g<w;){var S=u[g];this.set(S[0],S[1])}}function ZP(){this.size=0,this.__data__={hash:new Hl,map:new(fh||Ea),string:new Hl}}function eR(u){var g=Lm(this,u).delete(u);return this.size-=g?1:0,g}function tR(u){return Lm(this,u).get(u)}function iR(u){return Lm(this,u).has(u)}function nR(u,g){var w=Lm(this,u),S=w.size;return w.set(u,g),this.size+=w.size==S?0:1,this}Ta.prototype.clear=ZP,Ta.prototype.delete=eR,Ta.prototype.get=tR,Ta.prototype.has=iR,Ta.prototype.set=nR;function Bl(u){var g=-1,w=u==null?0:u.length;for(this.__data__=new Ta;++g<w;)this.add(u[g])}function rR(u){return this.__data__.set(u,s),this}function oR(u){return this.__data__.has(u)}Bl.prototype.add=Bl.prototype.push=rR,Bl.prototype.has=oR;function Eo(u){var g=this.__data__=new Ea(u);this.size=g.size}function aR(){this.__data__=new Ea,this.size=0}function sR(u){var g=this.__data__,w=g.delete(u);return this.size=g.size,w}function lR(u){return this.__data__.get(u)}function cR(u){return this.__data__.has(u)}function dR(u,g){var w=this.__data__;if(w instanceof Ea){var S=w.__data__;if(!fh||S.length<i-1)return S.push([u,g]),this.size=++w.size,this;w=this.__data__=new Ta(S)}return w.set(u,g),this.size=w.size,this}Eo.prototype.clear=aR,Eo.prototype.delete=sR,Eo.prototype.get=lR,Eo.prototype.has=cR,Eo.prototype.set=dR;function Fz(u,g){var w=at(u),S=!w&&Gl(u),q=!w&&!S&&Bs(u),$=!w&&!S&&!q&&gd(u),H=w||S||q||$,Y=H?P0(u.length,xP):[],ne=Y.length;for(var pe in u)(g||qt.call(u,pe))&&!(H&&(pe=="length"||q&&(pe=="offset"||pe=="parent")||$&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||Pa(pe,ne)))&&Y.push(pe);return Y}function Nz(u){var g=u.length;return g?u[K0(0,g-1)]:o}function fR(u,g){return qm(Zn(u),Wl(g,0,u.length))}function hR(u){return qm(Zn(u))}function N0(u,g,w){(w!==o&&!To(u[g],w)||w===o&&!(g in u))&&Ma(u,g,w)}function mh(u,g,w){var S=u[g];(!(qt.call(u,g)&&To(S,w))||w===o&&!(g in u))&&Ma(u,g,w)}function ym(u,g){for(var w=u.length;w--;)if(To(u[w][0],g))return w;return-1}function uR(u,g,w,S){return Is(u,function(q,$,H){g(S,q,w(q),H)}),S}function Hz(u,g){return u&&Xo(g,Qi(g),u)}function pR(u,g){return u&&Xo(g,tr(g),u)}function Ma(u,g,w){g=="__proto__"&&um?um(u,g,{configurable:!0,enumerable:!0,value:w,writable:!0}):u[g]=w}function H0(u,g){for(var w=-1,S=g.length,q=le(S),$=u==null;++w<S;)q[w]=$?o:w1(u,g[w]);return q}function Wl(u,g,w){return u===u&&(w!==o&&(u=u<=w?u:w),g!==o&&(u=u>=g?u:g)),u}function Gr(u,g,w,S,q,$){var H,Y=g&d,ne=g&f,pe=g&h;if(w&&(H=q?w(u,S,q,$):w(u)),H!==o)return H;if(!di(u))return u;var me=at(u);if(me){if(H=iO(u),!Y)return Zn(u,H)}else{var we=kn(u),Pe=we==F||we==D;if(Bs(u))return f2(u,Y);if(we==re||we==Ze||Pe&&!q){if(H=ne||Pe?{}:M2(u),!Y)return ne?VR(u,pR(H,u)):jR(u,Hz(H,u))}else{if(!jt[we])return q?u:{};H=nO(u,we,Y)}}$||($=new Eo);var Be=$.get(u);if(Be)return Be;$.set(u,H),o3(u)?u.forEach(function(Qe){H.add(Gr(Qe,g,w,Qe,u,$))}):n3(u)&&u.forEach(function(Qe,mt){H.set(mt,Gr(Qe,g,w,mt,u,$))});var Je=pe?ne?s1:a1:ne?tr:Qi,dt=me?o:Je(u);return jr(dt||u,function(Qe,mt){dt&&(mt=Qe,Qe=u[mt]),mh(H,mt,Gr(Qe,g,w,mt,u,$))}),H}function mR(u){var g=Qi(u);return function(w){return Bz(w,u,g)}}function Bz(u,g,w){var S=w.length;if(u==null)return!S;for(u=Ft(u);S--;){var q=w[S],$=g[q],H=u[q];if(H===o&&!(q in u)||!$(H))return!1}return!0}function Wz(u,g,w){if(typeof u!="function")throw new Vr(r);return kh(function(){u.apply(o,w)},g)}function gh(u,g,w,S){var q=-1,$=im,H=!0,Y=u.length,ne=[],pe=g.length;if(!Y)return ne;w&&(g=oi(g,yr(w))),S?($=A0,H=!1):g.length>=i&&($=ch,H=!1,g=new Bl(g));e:for(;++q<Y;){var me=u[q],we=w==null?me:w(me);if(me=S||me!==0?me:0,H&&we===we){for(var Pe=pe;Pe--;)if(g[Pe]===we)continue e;ne.push(me)}else $(g,we,S)||ne.push(me)}return ne}var Is=g2(Yo),jz=g2(W0,!0);function gR(u,g){var w=!0;return Is(u,function(S,q,$){return w=!!g(S,q,$),w}),w}function xm(u,g,w){for(var S=-1,q=u.length;++S<q;){var $=u[S],H=g($);if(H!=null&&(Y===o?H===H&&!wr(H):w(H,Y)))var Y=H,ne=$}return ne}function bR(u,g,w,S){var q=u.length;for(w=lt(w),w<0&&(w=-w>q?0:q+w),S=S===o||S>q?q:lt(S),S<0&&(S+=q),S=w>S?0:s3(S);w<S;)u[w++]=g;return u}function Vz(u,g){var w=[];return Is(u,function(S,q,$){g(S,q,$)&&w.push(S)}),w}function an(u,g,w,S,q){var $=-1,H=u.length;for(w||(w=oO),q||(q=[]);++$<H;){var Y=u[$];g>0&&w(Y)?g>1?an(Y,g-1,w,S,q):Rs(q,Y):S||(q[q.length]=Y)}return q}var B0=b2(),Uz=b2(!0);function Yo(u,g){return u&&B0(u,g,Qi)}function W0(u,g){return u&&Uz(u,g,Qi)}function wm(u,g){return Ps(g,function(w){return Ra(u[w])})}function jl(u,g){g=Ns(g,u);for(var w=0,S=g.length;u!=null&&w<S;)u=u[Ko(g[w++])];return w&&w==S?u:o}function Gz(u,g,w){var S=g(u);return at(u)?S:Rs(S,w(u))}function Dn(u){return u==null?u===o?on:W:Nl&&Nl in Ft(u)?ZR(u):hO(u)}function j0(u,g){return u>g}function vR(u,g){return u!=null&&qt.call(u,g)}function yR(u,g){return u!=null&&g in Ft(u)}function xR(u,g,w){return u>=wn(g,w)&&u<Hi(g,w)}function V0(u,g,w){for(var S=w?A0:im,q=u[0].length,$=u.length,H=$,Y=le($),ne=1/0,pe=[];H--;){var me=u[H];H&&g&&(me=oi(me,yr(g))),ne=wn(me.length,ne),Y[H]=!w&&(g||q>=120&&me.length>=120)?new Bl(H&&me):o}me=u[0];var we=-1,Pe=Y[0];e:for(;++we<q&&pe.length<ne;){var Be=me[we],Je=g?g(Be):Be;if(Be=w||Be!==0?Be:0,!(Pe?ch(Pe,Je):S(pe,Je,w))){for(H=$;--H;){var dt=Y[H];if(!(dt?ch(dt,Je):S(u[H],Je,w)))continue e}Pe&&Pe.push(Je),pe.push(Be)}}return pe}function wR(u,g,w,S){return Yo(u,function(q,$,H){g(S,w(q),$,H)}),S}function bh(u,g,w){g=Ns(g,u),u=R2(u,g);var S=u==null?u:u[Ko(Xr(g))];return S==null?o:vr(S,u,w)}function Yz(u){return vi(u)&&Dn(u)==Ze}function kR(u){return vi(u)&&Dn(u)==zo}function _R(u){return vi(u)&&Dn(u)==Te}function vh(u,g,w,S,q){return u===g?!0:u==null||g==null||!vi(u)&&!vi(g)?u!==u&&g!==g:zR(u,g,w,S,vh,q)}function zR(u,g,w,S,q,$){var H=at(u),Y=at(g),ne=H?Ne:kn(u),pe=Y?Ne:kn(g);ne=ne==Ze?re:ne,pe=pe==Ze?re:pe;var me=ne==re,we=pe==re,Pe=ne==pe;if(Pe&&Bs(u)){if(!Bs(g))return!1;H=!0,me=!1}if(Pe&&!me)return $||($=new Eo),H||gd(u)?A2(u,g,w,S,q,$):JR(u,g,ne,w,S,q,$);if(!(w&p)){var Be=me&&qt.call(u,"__wrapped__"),Je=we&&qt.call(g,"__wrapped__");if(Be||Je){var dt=Be?u.value():u,Qe=Je?g.value():g;return $||($=new Eo),q(dt,Qe,w,S,$)}}return Pe?($||($=new Eo),QR(u,g,w,S,q,$)):!1}function CR(u){return vi(u)&&kn(u)==G}function U0(u,g,w,S){var q=w.length,$=q,H=!S;if(u==null)return!$;for(u=Ft(u);q--;){var Y=w[q];if(H&&Y[2]?Y[1]!==u[Y[0]]:!(Y[0]in u))return!1}for(;++q<$;){Y=w[q];var ne=Y[0],pe=u[ne],me=Y[1];if(H&&Y[2]){if(pe===o&&!(ne in u))return!1}else{var we=new Eo;if(S)var Pe=S(pe,me,ne,u,g,we);if(!(Pe===o?vh(me,pe,p|m,S,we):Pe))return!1}}return!0}function Xz(u){if(!di(u)||sO(u))return!1;var g=Ra(u)?CP:mq;return g.test(Ul(u))}function SR(u){return vi(u)&&Dn(u)==Ie}function AR(u){return vi(u)&&kn(u)==qe}function ER(u){return vi(u)&&Im(u.length)&&!!ei[Dn(u)]}function Kz(u){return typeof u=="function"?u:u==null?ir:typeof u=="object"?at(u)?Zz(u[0],u[1]):Qz(u):v3(u)}function G0(u){if(!wh(u))return LP(u);var g=[];for(var w in Ft(u))qt.call(u,w)&&w!="constructor"&&g.push(w);return g}function TR(u){if(!di(u))return fO(u);var g=wh(u),w=[];for(var S in u)S=="constructor"&&(g||!qt.call(u,S))||w.push(S);return w}function Y0(u,g){return u<g}function Jz(u,g){var w=-1,S=er(u)?le(u.length):[];return Is(u,function(q,$,H){S[++w]=g(q,$,H)}),S}function Qz(u){var g=c1(u);return g.length==1&&g[0][2]?q2(g[0][0],g[0][1]):function(w){return w===u||U0(w,u,g)}}function Zz(u,g){return f1(u)&&L2(g)?q2(Ko(u),g):function(w){var S=w1(w,u);return S===o&&S===g?k1(w,u):vh(g,S,p|m)}}function km(u,g,w,S,q){u!==g&&B0(g,function($,H){if(q||(q=new Eo),di($))MR(u,g,H,w,km,S,q);else{var Y=S?S(u1(u,H),$,H+"",u,g,q):o;Y===o&&(Y=$),N0(u,H,Y)}},tr)}function MR(u,g,w,S,q,$,H){var Y=u1(u,w),ne=u1(g,w),pe=H.get(ne);if(pe){N0(u,w,pe);return}var me=$?$(Y,ne,w+"",u,g,H):o,we=me===o;if(we){var Pe=at(ne),Be=!Pe&&Bs(ne),Je=!Pe&&!Be&&gd(ne);me=ne,Pe||Be||Je?at(Y)?me=Y:_i(Y)?me=Zn(Y):Be?(we=!1,me=f2(ne,!0)):Je?(we=!1,me=h2(ne,!0)):me=[]:_h(ne)||Gl(ne)?(me=Y,Gl(Y)?me=l3(Y):(!di(Y)||Ra(Y))&&(me=M2(ne))):we=!1}we&&(H.set(ne,me),q(me,ne,S,$,H),H.delete(ne)),N0(u,w,me)}function e2(u,g){var w=u.length;if(w)return g+=g<0?w:0,Pa(g,w)?u[g]:o}function t2(u,g,w){g.length?g=oi(g,function($){return at($)?function(H){return jl(H,$.length===1?$[0]:$)}:$}):g=[ir];var S=-1;g=oi(g,yr(Xe()));var q=Jz(u,function($,H,Y){var ne=oi(g,function(pe){return pe($)});return{criteria:ne,index:++S,value:$}});return nP(q,function($,H){return WR($,H,w)})}function LR(u,g){return i2(u,g,function(w,S){return k1(u,S)})}function i2(u,g,w){for(var S=-1,q=g.length,$={};++S<q;){var H=g[S],Y=jl(u,H);w(Y,H)&&yh($,Ns(H,u),Y)}return $}function qR(u){return function(g){return jl(g,u)}}function X0(u,g,w,S){var q=S?iP:ad,$=-1,H=g.length,Y=u;for(u===g&&(g=Zn(g)),w&&(Y=oi(u,yr(w)));++$<H;)for(var ne=0,pe=g[$],me=w?w(pe):pe;(ne=q(Y,me,ne,S))>-1;)Y!==u&&hm.call(Y,ne,1),hm.call(u,ne,1);return u}function n2(u,g){for(var w=u?g.length:0,S=w-1;w--;){var q=g[w];if(w==S||q!==$){var $=q;Pa(q)?hm.call(u,q,1):Z0(u,q)}}return u}function K0(u,g){return u+mm($z()*(g-u+1))}function PR(u,g,w,S){for(var q=-1,$=Hi(pm((g-u)/(w||1)),0),H=le($);$--;)H[S?$:++q]=u,u+=w;return H}function J0(u,g){var w="";if(!u||g<1||g>se)return w;do g%2&&(w+=u),g=mm(g/2),g&&(u+=u);while(g);return w}function ut(u,g){return p1(P2(u,g,ir),u+"")}function RR(u){return Nz(bd(u))}function OR(u,g){var w=bd(u);return qm(w,Wl(g,0,w.length))}function yh(u,g,w,S){if(!di(u))return u;g=Ns(g,u);for(var q=-1,$=g.length,H=$-1,Y=u;Y!=null&&++q<$;){var ne=Ko(g[q]),pe=w;if(ne==="__proto__"||ne==="constructor"||ne==="prototype")return u;if(q!=H){var me=Y[ne];pe=S?S(me,ne,Y):o,pe===o&&(pe=di(me)?me:Pa(g[q+1])?[]:{})}mh(Y,ne,pe),Y=Y[ne]}return u}var r2=gm?function(u,g){return gm.set(u,g),u}:ir,DR=um?function(u,g){return um(u,"toString",{configurable:!0,enumerable:!1,value:z1(g),writable:!0})}:ir;function $R(u){return qm(bd(u))}function Yr(u,g,w){var S=-1,q=u.length;g<0&&(g=-g>q?0:q+g),w=w>q?q:w,w<0&&(w+=q),q=g>w?0:w-g>>>0,g>>>=0;for(var $=le(q);++S<q;)$[S]=u[S+g];return $}function IR(u,g){var w;return Is(u,function(S,q,$){return w=g(S,q,$),!w}),!!w}function _m(u,g,w){var S=0,q=u==null?S:u.length;if(typeof g=="number"&&g===g&&q<=Le){for(;S<q;){var $=S+q>>>1,H=u[$];H!==null&&!wr(H)&&(w?H<=g:H<g)?S=$+1:q=$}return q}return Q0(u,g,ir,w)}function Q0(u,g,w,S){var q=0,$=u==null?0:u.length;if($===0)return 0;g=w(g);for(var H=g!==g,Y=g===null,ne=wr(g),pe=g===o;q<$;){var me=mm((q+$)/2),we=w(u[me]),Pe=we!==o,Be=we===null,Je=we===we,dt=wr(we);if(H)var Qe=S||Je;else pe?Qe=Je&&(S||Pe):Y?Qe=Je&&Pe&&(S||!Be):ne?Qe=Je&&Pe&&!Be&&(S||!dt):Be||dt?Qe=!1:Qe=S?we<=g:we<g;Qe?q=me+1:$=me}return wn($,Ae)}function o2(u,g){for(var w=-1,S=u.length,q=0,$=[];++w<S;){var H=u[w],Y=g?g(H):H;if(!w||!To(Y,ne)){var ne=Y;$[q++]=H===0?0:H}}return $}function a2(u){return typeof u=="number"?u:wr(u)?_e:+u}function xr(u){if(typeof u=="string")return u;if(at(u))return oi(u,xr)+"";if(wr(u))return Iz?Iz.call(u):"";var g=u+"";return g=="0"&&1/u==-oe?"-0":g}function Fs(u,g,w){var S=-1,q=im,$=u.length,H=!0,Y=[],ne=Y;if(w)H=!1,q=A0;else if($>=i){var pe=g?null:XR(u);if(pe)return rm(pe);H=!1,q=ch,ne=new Bl}else ne=g?[]:Y;e:for(;++S<$;){var me=u[S],we=g?g(me):me;if(me=w||me!==0?me:0,H&&we===we){for(var Pe=ne.length;Pe--;)if(ne[Pe]===we)continue e;g&&ne.push(we),Y.push(me)}else q(ne,we,w)||(ne!==Y&&ne.push(we),Y.push(me))}return Y}function Z0(u,g){return g=Ns(g,u),u=R2(u,g),u==null||delete u[Ko(Xr(g))]}function s2(u,g,w,S){return yh(u,g,w(jl(u,g)),S)}function zm(u,g,w,S){for(var q=u.length,$=S?q:-1;(S?$--:++$<q)&&g(u[$],$,u););return w?Yr(u,S?0:$,S?$+1:q):Yr(u,S?$+1:0,S?q:$)}function l2(u,g){var w=u;return w instanceof vt&&(w=w.value()),E0(g,function(S,q){return q.func.apply(q.thisArg,Rs([S],q.args))},w)}function e1(u,g,w){var S=u.length;if(S<2)return S?Fs(u[0]):[];for(var q=-1,$=le(S);++q<S;)for(var H=u[q],Y=-1;++Y<S;)Y!=q&&($[q]=gh($[q]||H,u[Y],g,w));return Fs(an($,1),g,w)}function c2(u,g,w){for(var S=-1,q=u.length,$=g.length,H={};++S<q;){var Y=S<$?g[S]:o;w(H,u[S],Y)}return H}function t1(u){return _i(u)?u:[]}function i1(u){return typeof u=="function"?u:ir}function Ns(u,g){return at(u)?u:f1(u,g)?[u]:I2(Tt(u))}var FR=ut;function Hs(u,g,w){var S=u.length;return w=w===o?S:w,!g&&w>=S?u:Yr(u,g,w)}var d2=SP||function(u){return Ji.clearTimeout(u)};function f2(u,g){if(g)return u.slice();var w=u.length,S=qz?qz(w):new u.constructor(w);return u.copy(S),S}function n1(u){var g=new u.constructor(u.byteLength);return new dm(g).set(new dm(u)),g}function NR(u,g){var w=g?n1(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.byteLength)}function HR(u){var g=new u.constructor(u.source,Y_.exec(u));return g.lastIndex=u.lastIndex,g}function BR(u){return ph?Ft(ph.call(u)):{}}function h2(u,g){var w=g?n1(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.length)}function u2(u,g){if(u!==g){var w=u!==o,S=u===null,q=u===u,$=wr(u),H=g!==o,Y=g===null,ne=g===g,pe=wr(g);if(!Y&&!pe&&!$&&u>g||$&&H&&ne&&!Y&&!pe||S&&H&&ne||!w&&ne||!q)return 1;if(!S&&!$&&!pe&&u<g||pe&&w&&q&&!S&&!$||Y&&w&&q||!H&&q||!ne)return-1}return 0}function WR(u,g,w){for(var S=-1,q=u.criteria,$=g.criteria,H=q.length,Y=w.length;++S<H;){var ne=u2(q[S],$[S]);if(ne){if(S>=Y)return ne;var pe=w[S];return ne*(pe=="desc"?-1:1)}}return u.index-g.index}function p2(u,g,w,S){for(var q=-1,$=u.length,H=w.length,Y=-1,ne=g.length,pe=Hi($-H,0),me=le(ne+pe),we=!S;++Y<ne;)me[Y]=g[Y];for(;++q<H;)(we||q<$)&&(me[w[q]]=u[q]);for(;pe--;)me[Y++]=u[q++];return me}function m2(u,g,w,S){for(var q=-1,$=u.length,H=-1,Y=w.length,ne=-1,pe=g.length,me=Hi($-Y,0),we=le(me+pe),Pe=!S;++q<me;)we[q]=u[q];for(var Be=q;++ne<pe;)we[Be+ne]=g[ne];for(;++H<Y;)(Pe||q<$)&&(we[Be+w[H]]=u[q++]);return we}function Zn(u,g){var w=-1,S=u.length;for(g||(g=le(S));++w<S;)g[w]=u[w];return g}function Xo(u,g,w,S){var q=!w;w||(w={});for(var $=-1,H=g.length;++$<H;){var Y=g[$],ne=S?S(w[Y],u[Y],Y,w,u):o;ne===o&&(ne=u[Y]),q?Ma(w,Y,ne):mh(w,Y,ne)}return w}function jR(u,g){return Xo(u,d1(u),g)}function VR(u,g){return Xo(u,E2(u),g)}function Cm(u,g){return function(w,S){var q=at(w)?Kq:uR,$=g?g():{};return q(w,u,Xe(S,2),$)}}function ud(u){return ut(function(g,w){var S=-1,q=w.length,$=q>1?w[q-1]:o,H=q>2?w[2]:o;for($=u.length>3&&typeof $=="function"?(q--,$):o,H&&$n(w[0],w[1],H)&&($=q<3?o:$,q=1),g=Ft(g);++S<q;){var Y=w[S];Y&&u(g,Y,S,$)}return g})}function g2(u,g){return function(w,S){if(w==null)return w;if(!er(w))return u(w,S);for(var q=w.length,$=g?q:-1,H=Ft(w);(g?$--:++$<q)&&S(H[$],$,H)!==!1;);return w}}function b2(u){return function(g,w,S){for(var q=-1,$=Ft(g),H=S(g),Y=H.length;Y--;){var ne=H[u?Y:++q];if(w($[ne],ne,$)===!1)break}return g}}function UR(u,g,w){var S=g&v,q=xh(u);function $(){var H=this&&this!==Ji&&this instanceof $?q:u;return H.apply(S?w:this,arguments)}return $}function v2(u){return function(g){g=Tt(g);var w=sd(g)?Ao(g):o,S=w?w[0]:g.charAt(0),q=w?Hs(w,1).join(""):g.slice(1);return S[u]()+q}}function pd(u){return function(g){return E0(g3(m3(g).replace(Dq,"")),u,"")}}function xh(u){return function(){var g=arguments;switch(g.length){case 0:return new u;case 1:return new u(g[0]);case 2:return new u(g[0],g[1]);case 3:return new u(g[0],g[1],g[2]);case 4:return new u(g[0],g[1],g[2],g[3]);case 5:return new u(g[0],g[1],g[2],g[3],g[4]);case 6:return new u(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new u(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var w=hd(u.prototype),S=u.apply(w,g);return di(S)?S:w}}function GR(u,g,w){var S=xh(u);function q(){for(var $=arguments.length,H=le($),Y=$,ne=md(q);Y--;)H[Y]=arguments[Y];var pe=$<3&&H[0]!==ne&&H[$-1]!==ne?[]:Os(H,ne);if($-=pe.length,$<w)return _2(u,g,Sm,q.placeholder,o,H,pe,o,o,w-$);var me=this&&this!==Ji&&this instanceof q?S:u;return vr(me,this,H)}return q}function y2(u){return function(g,w,S){var q=Ft(g);if(!er(g)){var $=Xe(w,3);g=Qi(g),w=function(Y){return $(q[Y],Y,q)}}var H=u(g,w,S);return H>-1?q[$?g[H]:H]:o}}function x2(u){return qa(function(g){var w=g.length,S=w,q=Ur.prototype.thru;for(u&&g.reverse();S--;){var $=g[S];if(typeof $!="function")throw new Vr(r);if(q&&!H&&Mm($)=="wrapper")var H=new Ur([],!0)}for(S=H?S:w;++S<w;){$=g[S];var Y=Mm($),ne=Y=="wrapper"?l1($):o;ne&&h1(ne[0])&&ne[1]==(C|k|E|L)&&!ne[4].length&&ne[9]==1?H=H[Mm(ne[0])].apply(H,ne[3]):H=$.length==1&&h1($)?H[Y]():H.thru($)}return function(){var pe=arguments,me=pe[0];if(H&&pe.length==1&&at(me))return H.plant(me).value();for(var we=0,Pe=w?g[we].apply(this,pe):me;++we<w;)Pe=g[we].call(this,Pe);return Pe}})}function Sm(u,g,w,S,q,$,H,Y,ne,pe){var me=g&C,we=g&v,Pe=g&b,Be=g&(k|z),Je=g&M,dt=Pe?o:xh(u);function Qe(){for(var mt=arguments.length,yt=le(mt),kr=mt;kr--;)yt[kr]=arguments[kr];if(Be)var In=md(Qe),_r=oP(yt,In);if(S&&(yt=p2(yt,S,q,Be)),$&&(yt=m2(yt,$,H,Be)),mt-=_r,Be&&mt<pe){var zi=Os(yt,In);return _2(u,g,Sm,Qe.placeholder,w,yt,zi,Y,ne,pe-mt)}var Mo=we?w:this,Da=Pe?Mo[u]:u;return mt=yt.length,Y?yt=uO(yt,Y):Je&&mt>1&&yt.reverse(),me&&ne<mt&&(yt.length=ne),this&&this!==Ji&&this instanceof Qe&&(Da=dt||xh(Da)),Da.apply(Mo,yt)}return Qe}function w2(u,g){return function(w,S){return wR(w,u,g(S),{})}}function Am(u,g){return function(w,S){var q;if(w===o&&S===o)return g;if(w!==o&&(q=w),S!==o){if(q===o)return S;typeof w=="string"||typeof S=="string"?(w=xr(w),S=xr(S)):(w=a2(w),S=a2(S)),q=u(w,S)}return q}}function r1(u){return qa(function(g){return g=oi(g,yr(Xe())),ut(function(w){var S=this;return u(g,function(q){return vr(q,S,w)})})})}function Em(u,g){g=g===o?" ":xr(g);var w=g.length;if(w<2)return w?J0(g,u):g;var S=J0(g,pm(u/ld(g)));return sd(g)?Hs(Ao(S),0,u).join(""):S.slice(0,u)}function YR(u,g,w,S){var q=g&v,$=xh(u);function H(){for(var Y=-1,ne=arguments.length,pe=-1,me=S.length,we=le(me+ne),Pe=this&&this!==Ji&&this instanceof H?$:u;++pe<me;)we[pe]=S[pe];for(;ne--;)we[pe++]=arguments[++Y];return vr(Pe,q?w:this,we)}return H}function k2(u){return function(g,w,S){return S&&typeof S!="number"&&$n(g,w,S)&&(w=S=o),g=Oa(g),w===o?(w=g,g=0):w=Oa(w),S=S===o?g<w?1:-1:Oa(S),PR(g,w,S,u)}}function Tm(u){return function(g,w){return typeof g=="string"&&typeof w=="string"||(g=Kr(g),w=Kr(w)),u(g,w)}}function _2(u,g,w,S,q,$,H,Y,ne,pe){var me=g&k,we=me?H:o,Pe=me?o:H,Be=me?$:o,Je=me?o:$;g|=me?E:A,g&=~(me?A:E),g&x||(g&=~(v|b));var dt=[u,g,q,Be,we,Je,Pe,Y,ne,pe],Qe=w.apply(o,dt);return h1(u)&&O2(Qe,dt),Qe.placeholder=S,D2(Qe,u,g)}function o1(u){var g=Ni[u];return function(w,S){if(w=Kr(w),S=S==null?0:wn(lt(S),292),S&&Dz(w)){var q=(Tt(w)+"e").split("e"),$=g(q[0]+"e"+(+q[1]+S));return q=(Tt($)+"e").split("e"),+(q[0]+"e"+(+q[1]-S))}return g(w)}}var XR=dd&&1/rm(new dd([,-0]))[1]==oe?function(u){return new dd(u)}:A1;function z2(u){return function(g){var w=kn(g);return w==G?O0(g):w==qe?hP(g):rP(g,u(g))}}function La(u,g,w,S,q,$,H,Y){var ne=g&b;if(!ne&&typeof u!="function")throw new Vr(r);var pe=S?S.length:0;if(pe||(g&=~(E|A),S=q=o),H=H===o?H:Hi(lt(H),0),Y=Y===o?Y:lt(Y),pe-=q?q.length:0,g&A){var me=S,we=q;S=q=o}var Pe=ne?o:l1(u),Be=[u,g,w,S,q,me,we,$,H,Y];if(Pe&&dO(Be,Pe),u=Be[0],g=Be[1],w=Be[2],S=Be[3],q=Be[4],Y=Be[9]=Be[9]===o?ne?0:u.length:Hi(Be[9]-pe,0),!Y&&g&(k|z)&&(g&=~(k|z)),!g||g==v)var Je=UR(u,g,w);else g==k||g==z?Je=GR(u,g,Y):(g==E||g==(v|E))&&!q.length?Je=YR(u,g,w,S):Je=Sm.apply(o,Be);var dt=Pe?r2:O2;return D2(dt(Je,Be),u,g)}function C2(u,g,w,S){return u===o||To(u,cd[w])&&!qt.call(S,w)?g:u}function S2(u,g,w,S,q,$){return di(u)&&di(g)&&($.set(g,u),km(u,g,o,S2,$),$.delete(g)),u}function KR(u){return _h(u)?o:u}function A2(u,g,w,S,q,$){var H=w&p,Y=u.length,ne=g.length;if(Y!=ne&&!(H&&ne>Y))return!1;var pe=$.get(u),me=$.get(g);if(pe&&me)return pe==g&&me==u;var we=-1,Pe=!0,Be=w&m?new Bl:o;for($.set(u,g),$.set(g,u);++we<Y;){var Je=u[we],dt=g[we];if(S)var Qe=H?S(dt,Je,we,g,u,$):S(Je,dt,we,u,g,$);if(Qe!==o){if(Qe)continue;Pe=!1;break}if(Be){if(!T0(g,function(mt,yt){if(!ch(Be,yt)&&(Je===mt||q(Je,mt,w,S,$)))return Be.push(yt)})){Pe=!1;break}}else if(!(Je===dt||q(Je,dt,w,S,$))){Pe=!1;break}}return $.delete(u),$.delete(g),Pe}function JR(u,g,w,S,q,$,H){switch(w){case Qn:if(u.byteLength!=g.byteLength||u.byteOffset!=g.byteOffset)return!1;u=u.buffer,g=g.buffer;case zo:return!(u.byteLength!=g.byteLength||!$(new dm(u),new dm(g)));case xe:case Te:case V:return To(+u,+g);case R:return u.name==g.name&&u.message==g.message;case Ie:case je:return u==g+"";case G:var Y=O0;case qe:var ne=S&p;if(Y||(Y=rm),u.size!=g.size&&!ne)return!1;var pe=H.get(u);if(pe)return pe==g;S|=m,H.set(u,g);var me=A2(Y(u),Y(g),S,q,$,H);return H.delete(u),me;case Pt:if(ph)return ph.call(u)==ph.call(g)}return!1}function QR(u,g,w,S,q,$){var H=w&p,Y=a1(u),ne=Y.length,pe=a1(g),me=pe.length;if(ne!=me&&!H)return!1;for(var we=ne;we--;){var Pe=Y[we];if(!(H?Pe in g:qt.call(g,Pe)))return!1}var Be=$.get(u),Je=$.get(g);if(Be&&Je)return Be==g&&Je==u;var dt=!0;$.set(u,g),$.set(g,u);for(var Qe=H;++we<ne;){Pe=Y[we];var mt=u[Pe],yt=g[Pe];if(S)var kr=H?S(yt,mt,Pe,g,u,$):S(mt,yt,Pe,u,g,$);if(!(kr===o?mt===yt||q(mt,yt,w,S,$):kr)){dt=!1;break}Qe||(Qe=Pe=="constructor")}if(dt&&!Qe){var In=u.constructor,_r=g.constructor;In!=_r&&"constructor"in u&&"constructor"in g&&!(typeof In=="function"&&In instanceof In&&typeof _r=="function"&&_r instanceof _r)&&(dt=!1)}return $.delete(u),$.delete(g),dt}function qa(u){return p1(P2(u,o,B2),u+"")}function a1(u){return Gz(u,Qi,d1)}function s1(u){return Gz(u,tr,E2)}var l1=gm?function(u){return gm.get(u)}:A1;function Mm(u){for(var g=u.name+"",w=fd[g],S=qt.call(fd,g)?w.length:0;S--;){var q=w[S],$=q.func;if($==null||$==u)return q.name}return g}function md(u){var g=qt.call(O,"placeholder")?O:u;return g.placeholder}function Xe(){var u=O.iteratee||C1;return u=u===C1?Kz:u,arguments.length?u(arguments[0],arguments[1]):u}function Lm(u,g){var w=u.__data__;return aO(g)?w[typeof g=="string"?"string":"hash"]:w.map}function c1(u){for(var g=Qi(u),w=g.length;w--;){var S=g[w],q=u[S];g[w]=[S,q,L2(q)]}return g}function Vl(u,g){var w=cP(u,g);return Xz(w)?w:o}function ZR(u){var g=qt.call(u,Nl),w=u[Nl];try{u[Nl]=o;var S=!0}catch($){}var q=lm.call(u);return S&&(g?u[Nl]=w:delete u[Nl]),q}var d1=$0?function(u){return u==null?[]:(u=Ft(u),Ps($0(u),function(g){return Rz.call(u,g)}))}:E1,E2=$0?function(u){for(var g=[];u;)Rs(g,d1(u)),u=fm(u);return g}:E1,kn=Dn;(I0&&kn(new I0(new ArrayBuffer(1)))!=Qn||fh&&kn(new fh)!=G||F0&&kn(F0.resolve())!=fe||dd&&kn(new dd)!=qe||hh&&kn(new hh)!=ri)&&(kn=function(u){var g=Dn(u),w=g==re?u.constructor:o,S=w?Ul(w):"";if(S)switch(S){case OP:return Qn;case DP:return G;case $P:return fe;case IP:return qe;case FP:return ri}return g});function eO(u,g,w){for(var S=-1,q=w.length;++S<q;){var $=w[S],H=$.size;switch($.type){case"drop":u+=H;break;case"dropRight":g-=H;break;case"take":g=wn(g,u+H);break;case"takeRight":u=Hi(u,g-H);break}}return{start:u,end:g}}function tO(u){var g=u.match(sq);return g?g[1].split(lq):[]}function T2(u,g,w){g=Ns(g,u);for(var S=-1,q=g.length,$=!1;++S<q;){var H=Ko(g[S]);if(!($=u!=null&&w(u,H)))break;u=u[H]}return $||++S!=q?$:(q=u==null?0:u.length,!!q&&Im(q)&&Pa(H,q)&&(at(u)||Gl(u)))}function iO(u){var g=u.length,w=new u.constructor(g);return g&&typeof u[0]=="string"&&qt.call(u,"index")&&(w.index=u.index,w.input=u.input),w}function M2(u){return typeof u.constructor=="function"&&!wh(u)?hd(fm(u)):{}}function nO(u,g,w){var S=u.constructor;switch(g){case zo:return n1(u);case xe:case Te:return new S(+u);case Qn:return NR(u,w);case Co:case So:case Il:case qs:case sh:case lh:case m0:case g0:case b0:return h2(u,w);case G:return new S;case V:case je:return new S(u);case Ie:return HR(u);case qe:return new S;case Pt:return BR(u)}}function rO(u,g){var w=g.length;if(!w)return u;var S=w-1;return g[S]=(w>1?"& ":"")+g[S],g=g.join(w>2?", ":" "),u.replace(aq,`{
2
2
  /* [wrapped with `+g+`] */
3
- `)}function oO(u){return at(u)||Gl(u)||!!(Oz&&u&&u[Oz])}function Pa(u,g){var w=typeof u;return g=g==null?se:g,!!g&&(w=="number"||w!="symbol"&&bq.test(u))&&u>-1&&u%1==0&&u<g}function $n(u,g,w){if(!di(w))return!1;var S=typeof g;return(S=="number"?er(w)&&Pa(g,w.length):S=="string"&&g in w)?To(w[g],u):!1}function f1(u,g){if(at(u))return!1;var w=typeof u;return w=="number"||w=="symbol"||w=="boolean"||u==null||wr(u)?!0:iq.test(u)||!tq.test(u)||g!=null&&u in Ft(g)}function aO(u){var g=typeof u;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?u!=="__proto__":u===null}function h1(u){var g=Mm(u),w=O[g];if(typeof w!="function"||!(g in vt.prototype))return!1;if(u===w)return!0;var S=l1(w);return!!S&&u===S[0]}function sO(u){return!!Lz&&Lz in u}var lO=am?Ra:T1;function wh(u){var g=u&&u.constructor,w=typeof g=="function"&&g.prototype||cd;return u===w}function L2(u){return u===u&&!di(u)}function q2(u,g){return function(w){return w==null?!1:w[u]===g&&(g!==o||u in Ft(w))}}function cO(u){var g=Dm(u,function(S){return w.size===l&&w.clear(),S}),w=g.cache;return g}function dO(u,g){var w=u[1],S=g[1],q=w|S,$=q<(v|b|C),H=S==C&&w==k||S==C&&w==L&&u[7].length<=g[8]||S==(C|L)&&g[7].length<=g[8]&&w==k;if(!($||H))return u;S&v&&(u[2]=g[2],q|=w&v?0:x);var Y=g[3];if(Y){var ne=u[3];u[3]=ne?p2(ne,Y,g[4]):Y,u[4]=ne?Os(u[3],c):g[4]}return Y=g[5],Y&&(ne=u[5],u[5]=ne?m2(ne,Y,g[6]):Y,u[6]=ne?Os(u[5],c):g[6]),Y=g[7],Y&&(u[7]=Y),S&C&&(u[8]=u[8]==null?g[8]:xn(u[8],g[8])),u[9]==null&&(u[9]=g[9]),u[0]=g[0],u[1]=q,u}function fO(u){var g=[];if(u!=null)for(var w in Ft(u))g.push(w);return g}function hO(u){return lm.call(u)}function P2(u,g,w){return g=Hi(g===o?u.length-1:g,0),function(){for(var S=arguments,q=-1,$=Hi(S.length-g,0),H=le($);++q<$;)H[q]=S[g+q];q=-1;for(var Y=le(g+1);++q<g;)Y[q]=S[q];return Y[g]=w(H),vr(u,this,Y)}}function R2(u,g){return g.length<2?u:jl(u,Yr(g,0,-1))}function uO(u,g){for(var w=u.length,S=xn(g.length,w),q=Zn(u);S--;){var $=g[S];u[S]=Pa($,w)?q[$]:o}return u}function u1(u,g){if(!(g==="constructor"&&typeof u[g]=="function")&&g!="__proto__")return u[g]}var O2=$2(r2),kh=EP||function(u,g){return Ji.setTimeout(u,g)},p1=$2(DR);function D2(u,g,w){var S=g+"";return p1(u,rO(S,pO(tO(S),w)))}function $2(u){var g=0,w=0;return function(){var S=qP(),q=B-(S-w);if(w=S,q>0){if(++g>=N)return arguments[0]}else g=0;return u.apply(o,arguments)}}function qm(u,g){var w=-1,S=u.length,q=S-1;for(g=g===o?S:g;++w<g;){var $=K0(w,q),H=u[$];u[$]=u[w],u[w]=H}return u.length=g,u}var I2=cO(function(u){var g=[];return u.charCodeAt(0)===46&&g.push(""),u.replace(nq,function(w,S,q,$){g.push(q?$.replace(fq,"$1"):S||w)}),g});function Ko(u){if(typeof u=="string"||wr(u))return u;var g=u+"";return g=="0"&&1/u==-oe?"-0":g}function Ul(u){if(u!=null){try{return sm.call(u)}catch(g){}try{return u+""}catch(g){}}return""}function pO(u,g){return jr(Se,function(w){var S="_."+w[0];g&w[1]&&!im(u,S)&&u.push(S)}),u.sort()}function F2(u){if(u instanceof vt)return u.clone();var g=new Ur(u.__wrapped__,u.__chain__);return g.__actions__=Zn(u.__actions__),g.__index__=u.__index__,g.__values__=u.__values__,g}function mO(u,g,w){(w?$n(u,g,w):g===o)?g=1:g=Hi(lt(g),0);var S=u==null?0:u.length;if(!S||g<1)return[];for(var q=0,$=0,H=le(pm(S/g));q<S;)H[$++]=Yr(u,q,q+=g);return H}function gO(u){for(var g=-1,w=u==null?0:u.length,S=0,q=[];++g<w;){var $=u[g];$&&(q[S++]=$)}return q}function bO(){var u=arguments.length;if(!u)return[];for(var g=le(u-1),w=arguments[0],S=u;S--;)g[S-1]=arguments[S];return Rs(at(w)?Zn(w):[w],an(g,1))}var vO=ut(function(u,g){return _i(u)?gh(u,an(g,1,_i,!0)):[]}),yO=ut(function(u,g){var w=Xr(g);return _i(w)&&(w=o),_i(u)?gh(u,an(g,1,_i,!0),Xe(w,2)):[]}),xO=ut(function(u,g){var w=Xr(g);return _i(w)&&(w=o),_i(u)?gh(u,an(g,1,_i,!0),o,w):[]});function wO(u,g,w){var S=u==null?0:u.length;return S?(g=w||g===o?1:lt(g),Yr(u,g<0?0:g,S)):[]}function kO(u,g,w){var S=u==null?0:u.length;return S?(g=w||g===o?1:lt(g),g=S-g,Yr(u,0,g<0?0:g)):[]}function _O(u,g){return u&&u.length?zm(u,Xe(g,3),!0,!0):[]}function zO(u,g){return u&&u.length?zm(u,Xe(g,3),!0):[]}function CO(u,g,w,S){var q=u==null?0:u.length;return q?(w&&typeof w!="number"&&$n(u,g,w)&&(w=0,S=q),bR(u,g,w,S)):[]}function N2(u,g,w){var S=u==null?0:u.length;if(!S)return-1;var q=w==null?0:lt(w);return q<0&&(q=Hi(S+q,0)),nm(u,Xe(g,3),q)}function H2(u,g,w){var S=u==null?0:u.length;if(!S)return-1;var q=S-1;return w!==o&&(q=lt(w),q=w<0?Hi(S+q,0):xn(q,S-1)),nm(u,Xe(g,3),q,!0)}function B2(u){var g=u==null?0:u.length;return g?an(u,1):[]}function SO(u){var g=u==null?0:u.length;return g?an(u,oe):[]}function AO(u,g){var w=u==null?0:u.length;return w?(g=g===o?1:lt(g),an(u,g)):[]}function EO(u){for(var g=-1,w=u==null?0:u.length,S={};++g<w;){var q=u[g];S[q[0]]=q[1]}return S}function W2(u){return u&&u.length?u[0]:o}function TO(u,g,w){var S=u==null?0:u.length;if(!S)return-1;var q=w==null?0:lt(w);return q<0&&(q=Hi(S+q,0)),ad(u,g,q)}function MO(u){var g=u==null?0:u.length;return g?Yr(u,0,-1):[]}var LO=ut(function(u){var g=oi(u,t1);return g.length&&g[0]===u[0]?V0(g):[]}),qO=ut(function(u){var g=Xr(u),w=oi(u,t1);return g===Xr(w)?g=o:w.pop(),w.length&&w[0]===u[0]?V0(w,Xe(g,2)):[]}),PO=ut(function(u){var g=Xr(u),w=oi(u,t1);return g=typeof g=="function"?g:o,g&&w.pop(),w.length&&w[0]===u[0]?V0(w,o,g):[]});function RO(u,g){return u==null?"":MP.call(u,g)}function Xr(u){var g=u==null?0:u.length;return g?u[g-1]:o}function OO(u,g,w){var S=u==null?0:u.length;if(!S)return-1;var q=S;return w!==o&&(q=lt(w),q=q<0?Hi(S+q,0):xn(q,S-1)),g===g?pP(u,g,q):nm(u,_z,q,!0)}function DO(u,g){return u&&u.length?e2(u,lt(g)):o}var $O=ut(j2);function j2(u,g){return u&&u.length&&g&&g.length?X0(u,g):u}function IO(u,g,w){return u&&u.length&&g&&g.length?X0(u,g,Xe(w,2)):u}function FO(u,g,w){return u&&u.length&&g&&g.length?X0(u,g,o,w):u}var NO=qa(function(u,g){var w=u==null?0:u.length,S=H0(u,g);return n2(u,oi(g,function(q){return Pa(q,w)?+q:q}).sort(u2)),S});function HO(u,g){var w=[];if(!(u&&u.length))return w;var S=-1,q=[],$=u.length;for(g=Xe(g,3);++S<$;){var H=u[S];g(H,S,u)&&(w.push(H),q.push(S))}return n2(u,q),w}function m1(u){return u==null?u:RP.call(u)}function BO(u,g,w){var S=u==null?0:u.length;return S?(w&&typeof w!="number"&&$n(u,g,w)?(g=0,w=S):(g=g==null?0:lt(g),w=w===o?S:lt(w)),Yr(u,g,w)):[]}function WO(u,g){return _m(u,g)}function jO(u,g,w){return Q0(u,g,Xe(w,2))}function VO(u,g){var w=u==null?0:u.length;if(w){var S=_m(u,g);if(S<w&&To(u[S],g))return S}return-1}function UO(u,g){return _m(u,g,!0)}function GO(u,g,w){return Q0(u,g,Xe(w,2),!0)}function YO(u,g){var w=u==null?0:u.length;if(w){var S=_m(u,g,!0)-1;if(To(u[S],g))return S}return-1}function XO(u){return u&&u.length?o2(u):[]}function KO(u,g){return u&&u.length?o2(u,Xe(g,2)):[]}function JO(u){var g=u==null?0:u.length;return g?Yr(u,1,g):[]}function QO(u,g,w){return u&&u.length?(g=w||g===o?1:lt(g),Yr(u,0,g<0?0:g)):[]}function ZO(u,g,w){var S=u==null?0:u.length;return S?(g=w||g===o?1:lt(g),g=S-g,Yr(u,g<0?0:g,S)):[]}function eD(u,g){return u&&u.length?zm(u,Xe(g,3),!1,!0):[]}function tD(u,g){return u&&u.length?zm(u,Xe(g,3)):[]}var iD=ut(function(u){return Fs(an(u,1,_i,!0))}),nD=ut(function(u){var g=Xr(u);return _i(g)&&(g=o),Fs(an(u,1,_i,!0),Xe(g,2))}),rD=ut(function(u){var g=Xr(u);return g=typeof g=="function"?g:o,Fs(an(u,1,_i,!0),o,g)});function oD(u){return u&&u.length?Fs(u):[]}function aD(u,g){return u&&u.length?Fs(u,Xe(g,2)):[]}function sD(u,g){return g=typeof g=="function"?g:o,u&&u.length?Fs(u,o,g):[]}function g1(u){if(!(u&&u.length))return[];var g=0;return u=Ps(u,function(w){if(_i(w))return g=Hi(w.length,g),!0}),P0(g,function(w){return oi(u,M0(w))})}function V2(u,g){if(!(u&&u.length))return[];var w=g1(u);return g==null?w:oi(w,function(S){return vr(g,o,S)})}var lD=ut(function(u,g){return _i(u)?gh(u,g):[]}),cD=ut(function(u){return e1(Ps(u,_i))}),dD=ut(function(u){var g=Xr(u);return _i(g)&&(g=o),e1(Ps(u,_i),Xe(g,2))}),fD=ut(function(u){var g=Xr(u);return g=typeof g=="function"?g:o,e1(Ps(u,_i),o,g)}),hD=ut(g1);function uD(u,g){return c2(u||[],g||[],mh)}function pD(u,g){return c2(u||[],g||[],yh)}var mD=ut(function(u){var g=u.length,w=g>1?u[g-1]:o;return w=typeof w=="function"?(u.pop(),w):o,V2(u,w)});function U2(u){var g=O(u);return g.__chain__=!0,g}function gD(u,g){return g(u),u}function Pm(u,g){return g(u)}var bD=qa(function(u){var g=u.length,w=g?u[0]:0,S=this.__wrapped__,q=function($){return H0($,u)};return g>1||this.__actions__.length||!(S instanceof vt)||!Pa(w)?this.thru(q):(S=S.slice(w,+w+(g?1:0)),S.__actions__.push({func:Pm,args:[q],thisArg:o}),new Ur(S,this.__chain__).thru(function($){return g&&!$.length&&$.push(o),$}))});function vD(){return U2(this)}function yD(){return new Ur(this.value(),this.__chain__)}function xD(){this.__values__===o&&(this.__values__=a3(this.value()));var u=this.__index__>=this.__values__.length,g=u?o:this.__values__[this.__index__++];return{done:u,value:g}}function wD(){return this}function kD(u){for(var g,w=this;w instanceof vm;){var S=F2(w);S.__index__=0,S.__values__=o,g?q.__wrapped__=S:g=S;var q=S;w=w.__wrapped__}return q.__wrapped__=u,g}function _D(){var u=this.__wrapped__;if(u instanceof vt){var g=u;return this.__actions__.length&&(g=new vt(this)),g=g.reverse(),g.__actions__.push({func:Pm,args:[m1],thisArg:o}),new Ur(g,this.__chain__)}return this.thru(m1)}function zD(){return l2(this.__wrapped__,this.__actions__)}var CD=Cm(function(u,g,w){qt.call(u,w)?++u[w]:Ma(u,w,1)});function SD(u,g,w){var S=at(u)?wz:gR;return w&&$n(u,g,w)&&(g=o),S(u,Xe(g,3))}function AD(u,g){var w=at(u)?Ps:Vz;return w(u,Xe(g,3))}var ED=y2(N2),TD=y2(H2);function MD(u,g){return an(Rm(u,g),1)}function LD(u,g){return an(Rm(u,g),oe)}function qD(u,g,w){return w=w===o?1:lt(w),an(Rm(u,g),w)}function G2(u,g){var w=at(u)?jr:Is;return w(u,Xe(g,3))}function Y2(u,g){var w=at(u)?Jq:jz;return w(u,Xe(g,3))}var PD=Cm(function(u,g,w){qt.call(u,w)?u[w].push(g):Ma(u,w,[g])});function RD(u,g,w,S){u=er(u)?u:bd(u),w=w&&!S?lt(w):0;var q=u.length;return w<0&&(w=Hi(q+w,0)),Fm(u)?w<=q&&u.indexOf(g,w)>-1:!!q&&ad(u,g,w)>-1}var OD=ut(function(u,g,w){var S=-1,q=typeof g=="function",$=er(u)?le(u.length):[];return Is(u,function(H){$[++S]=q?vr(g,H,w):bh(H,g,w)}),$}),DD=Cm(function(u,g,w){Ma(u,w,g)});function Rm(u,g){var w=at(u)?oi:Jz;return w(u,Xe(g,3))}function $D(u,g,w,S){return u==null?[]:(at(g)||(g=g==null?[]:[g]),w=S?o:w,at(w)||(w=w==null?[]:[w]),t2(u,g,w))}var ID=Cm(function(u,g,w){u[w?0:1].push(g)},function(){return[[],[]]});function FD(u,g,w){var S=at(u)?E0:Cz,q=arguments.length<3;return S(u,Xe(g,4),w,q,Is)}function ND(u,g,w){var S=at(u)?Qq:Cz,q=arguments.length<3;return S(u,Xe(g,4),w,q,jz)}function HD(u,g){var w=at(u)?Ps:Vz;return w(u,$m(Xe(g,3)))}function BD(u){var g=at(u)?Nz:RR;return g(u)}function WD(u,g,w){(w?$n(u,g,w):g===o)?g=1:g=lt(g);var S=at(u)?fR:OR;return S(u,g)}function jD(u){var g=at(u)?hR:$R;return g(u)}function VD(u){if(u==null)return 0;if(er(u))return Fm(u)?ld(u):u.length;var g=wn(u);return g==G||g==qe?u.size:G0(u).length}function UD(u,g,w){var S=at(u)?T0:IR;return w&&$n(u,g,w)&&(g=o),S(u,Xe(g,3))}var GD=ut(function(u,g){if(u==null)return[];var w=g.length;return w>1&&$n(u,g[0],g[1])?g=[]:w>2&&$n(g[0],g[1],g[2])&&(g=[g[0]]),t2(u,an(g,1),[])}),Om=AP||function(){return Ji.Date.now()};function YD(u,g){if(typeof g!="function")throw new Vr(r);return u=lt(u),function(){if(--u<1)return g.apply(this,arguments)}}function X2(u,g,w){return g=w?o:g,g=u&&g==null?u.length:g,La(u,C,o,o,o,o,g)}function K2(u,g){var w;if(typeof g!="function")throw new Vr(r);return u=lt(u),function(){return--u>0&&(w=g.apply(this,arguments)),u<=1&&(g=o),w}}var b1=ut(function(u,g,w){var S=v;if(w.length){var q=Os(w,md(b1));S|=E}return La(u,S,g,w,q)}),J2=ut(function(u,g,w){var S=v|b;if(w.length){var q=Os(w,md(J2));S|=E}return La(g,S,u,w,q)});function Q2(u,g,w){g=w?o:g;var S=La(u,k,o,o,o,o,o,g);return S.placeholder=Q2.placeholder,S}function Z2(u,g,w){g=w?o:g;var S=La(u,z,o,o,o,o,o,g);return S.placeholder=Z2.placeholder,S}function e3(u,g,w){var S,q,$,H,Y,ne,pe=0,me=!1,we=!1,Pe=!0;if(typeof u!="function")throw new Vr(r);g=Kr(g)||0,di(w)&&(me=!!w.leading,we="maxWait"in w,$=we?Hi(Kr(w.maxWait)||0,g):$,Pe="trailing"in w?!!w.trailing:Pe);function Be(zi){var Mo=S,Da=q;return S=q=o,pe=zi,H=u.apply(Da,Mo),H}function Je(zi){return pe=zi,Y=kh(mt,g),me?Be(zi):H}function dt(zi){var Mo=zi-ne,Da=zi-pe,y3=g-Mo;return we?xn(y3,$-Da):y3}function Qe(zi){var Mo=zi-ne,Da=zi-pe;return ne===o||Mo>=g||Mo<0||we&&Da>=$}function mt(){var zi=Om();if(Qe(zi))return yt(zi);Y=kh(mt,dt(zi))}function yt(zi){return Y=o,Pe&&S?Be(zi):(S=q=o,H)}function kr(){Y!==o&&d2(Y),pe=0,S=ne=q=Y=o}function In(){return Y===o?H:yt(Om())}function _r(){var zi=Om(),Mo=Qe(zi);if(S=arguments,q=this,ne=zi,Mo){if(Y===o)return Je(ne);if(we)return d2(Y),Y=kh(mt,g),Be(ne)}return Y===o&&(Y=kh(mt,g)),H}return _r.cancel=kr,_r.flush=In,_r}var XD=ut(function(u,g){return Wz(u,1,g)}),KD=ut(function(u,g,w){return Wz(u,Kr(g)||0,w)});function JD(u){return La(u,M)}function Dm(u,g){if(typeof u!="function"||g!=null&&typeof g!="function")throw new Vr(r);var w=function(){var S=arguments,q=g?g.apply(this,S):S[0],$=w.cache;if($.has(q))return $.get(q);var H=u.apply(this,S);return w.cache=$.set(q,H)||$,H};return w.cache=new(Dm.Cache||Ta),w}Dm.Cache=Ta;function $m(u){if(typeof u!="function")throw new Vr(r);return function(){var g=arguments;switch(g.length){case 0:return!u.call(this);case 1:return!u.call(this,g[0]);case 2:return!u.call(this,g[0],g[1]);case 3:return!u.call(this,g[0],g[1],g[2])}return!u.apply(this,g)}}function QD(u){return K2(2,u)}var ZD=FR(function(u,g){g=g.length==1&&at(g[0])?oi(g[0],yr(Xe())):oi(an(g,1),yr(Xe()));var w=g.length;return ut(function(S){for(var q=-1,$=xn(S.length,w);++q<$;)S[q]=g[q].call(this,S[q]);return vr(u,this,S)})}),v1=ut(function(u,g){var w=Os(g,md(v1));return La(u,E,o,g,w)}),t3=ut(function(u,g){var w=Os(g,md(t3));return La(u,A,o,g,w)}),e$=qa(function(u,g){return La(u,L,o,o,o,g)});function t$(u,g){if(typeof u!="function")throw new Vr(r);return g=g===o?g:lt(g),ut(u,g)}function i$(u,g){if(typeof u!="function")throw new Vr(r);return g=g==null?0:Hi(lt(g),0),ut(function(w){var S=w[g],q=Hs(w,0,g);return S&&Rs(q,S),vr(u,this,q)})}function n$(u,g,w){var S=!0,q=!0;if(typeof u!="function")throw new Vr(r);return di(w)&&(S="leading"in w?!!w.leading:S,q="trailing"in w?!!w.trailing:q),e3(u,g,{leading:S,maxWait:g,trailing:q})}function r$(u){return X2(u,1)}function o$(u,g){return v1(i1(g),u)}function a$(){if(!arguments.length)return[];var u=arguments[0];return at(u)?u:[u]}function s$(u){return Gr(u,h)}function l$(u,g){return g=typeof g=="function"?g:o,Gr(u,h,g)}function c$(u){return Gr(u,d|h)}function d$(u,g){return g=typeof g=="function"?g:o,Gr(u,d|h,g)}function f$(u,g){return g==null||Bz(u,g,Qi(g))}function To(u,g){return u===g||u!==u&&g!==g}var h$=Tm(j0),u$=Tm(function(u,g){return u>=g}),Gl=Yz(function(){return arguments}())?Yz:function(u){return vi(u)&&qt.call(u,"callee")&&!Rz.call(u,"callee")},at=le.isArray,p$=mz?yr(mz):kR;function er(u){return u!=null&&Im(u.length)&&!Ra(u)}function _i(u){return vi(u)&&er(u)}function m$(u){return u===!0||u===!1||vi(u)&&Dn(u)==xe}var Bs=TP||T1,g$=gz?yr(gz):_R;function b$(u){return vi(u)&&u.nodeType===1&&!_h(u)}function v$(u){if(u==null)return!0;if(er(u)&&(at(u)||typeof u=="string"||typeof u.splice=="function"||Bs(u)||gd(u)||Gl(u)))return!u.length;var g=wn(u);if(g==G||g==qe)return!u.size;if(wh(u))return!G0(u).length;for(var w in u)if(qt.call(u,w))return!1;return!0}function y$(u,g){return vh(u,g)}function x$(u,g,w){w=typeof w=="function"?w:o;var S=w?w(u,g):o;return S===o?vh(u,g,o,w):!!S}function y1(u){if(!vi(u))return!1;var g=Dn(u);return g==R||g==X||typeof u.message=="string"&&typeof u.name=="string"&&!_h(u)}function w$(u){return typeof u=="number"&&Dz(u)}function Ra(u){if(!di(u))return!1;var g=Dn(u);return g==F||g==D||g==Re||g==Ee}function i3(u){return typeof u=="number"&&u==lt(u)}function Im(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=se}function di(u){var g=typeof u;return u!=null&&(g=="object"||g=="function")}function vi(u){return u!=null&&typeof u=="object"}var n3=bz?yr(bz):CR;function k$(u,g){return u===g||U0(u,g,c1(g))}function _$(u,g,w){return w=typeof w=="function"?w:o,U0(u,g,c1(g),w)}function z$(u){return r3(u)&&u!=+u}function C$(u){if(lO(u))throw new ot(n);return Xz(u)}function S$(u){return u===null}function A$(u){return u==null}function r3(u){return typeof u=="number"||vi(u)&&Dn(u)==V}function _h(u){if(!vi(u)||Dn(u)!=re)return!1;var g=fm(u);if(g===null)return!0;var w=qt.call(g,"constructor")&&g.constructor;return typeof w=="function"&&w instanceof w&&sm.call(w)==_P}var x1=vz?yr(vz):SR;function E$(u){return i3(u)&&u>=-se&&u<=se}var o3=yz?yr(yz):AR;function Fm(u){return typeof u=="string"||!at(u)&&vi(u)&&Dn(u)==je}function wr(u){return typeof u=="symbol"||vi(u)&&Dn(u)==Pt}var gd=xz?yr(xz):ER;function T$(u){return u===o}function M$(u){return vi(u)&&wn(u)==ri}function L$(u){return vi(u)&&Dn(u)==rd}var q$=Tm(Y0),P$=Tm(function(u,g){return u<=g});function a3(u){if(!u)return[];if(er(u))return Fm(u)?Ao(u):Zn(u);if(dh&&u[dh])return fP(u[dh]());var g=wn(u),w=g==G?O0:g==qe?rm:bd;return w(u)}function Oa(u){if(!u)return u===0?u:0;if(u=Kr(u),u===oe||u===-oe){var g=u<0?-1:1;return g*de}return u===u?u:0}function lt(u){var g=Oa(u),w=g%1;return g===g?w?g-w:g:0}function s3(u){return u?Wl(lt(u),0,ve):0}function Kr(u){if(typeof u=="number")return u;if(wr(u))return _e;if(di(u)){var g=typeof u.valueOf=="function"?u.valueOf():u;u=di(g)?g+"":g}if(typeof u!="string")return u===0?u:+u;u=Sz(u);var w=pq.test(u);return w||gq.test(u)?Yq(u.slice(2),w?2:8):uq.test(u)?_e:+u}function l3(u){return Xo(u,tr(u))}function R$(u){return u?Wl(lt(u),-se,se):u===0?u:0}function Tt(u){return u==null?"":xr(u)}var O$=ud(function(u,g){if(wh(g)||er(g)){Xo(g,Qi(g),u);return}for(var w in g)qt.call(g,w)&&mh(u,w,g[w])}),c3=ud(function(u,g){Xo(g,tr(g),u)}),Nm=ud(function(u,g,w,S){Xo(g,tr(g),u,S)}),D$=ud(function(u,g,w,S){Xo(g,Qi(g),u,S)}),$$=qa(H0);function I$(u,g){var w=hd(u);return g==null?w:Hz(w,g)}var F$=ut(function(u,g){u=Ft(u);var w=-1,S=g.length,q=S>2?g[2]:o;for(q&&$n(g[0],g[1],q)&&(S=1);++w<S;)for(var $=g[w],H=tr($),Y=-1,ne=H.length;++Y<ne;){var pe=H[Y],me=u[pe];(me===o||To(me,cd[pe])&&!qt.call(u,pe))&&(u[pe]=$[pe])}return u}),N$=ut(function(u){return u.push(o,S2),vr(d3,o,u)});function H$(u,g){return kz(u,Xe(g,3),Yo)}function B$(u,g){return kz(u,Xe(g,3),W0)}function W$(u,g){return u==null?u:B0(u,Xe(g,3),tr)}function j$(u,g){return u==null?u:Uz(u,Xe(g,3),tr)}function V$(u,g){return u&&Yo(u,Xe(g,3))}function U$(u,g){return u&&W0(u,Xe(g,3))}function G$(u){return u==null?[]:wm(u,Qi(u))}function Y$(u){return u==null?[]:wm(u,tr(u))}function w1(u,g,w){var S=u==null?o:jl(u,g);return S===o?w:S}function X$(u,g){return u!=null&&T2(u,g,vR)}function k1(u,g){return u!=null&&T2(u,g,yR)}var K$=w2(function(u,g,w){g!=null&&typeof g.toString!="function"&&(g=lm.call(g)),u[g]=w},z1(ir)),J$=w2(function(u,g,w){g!=null&&typeof g.toString!="function"&&(g=lm.call(g)),qt.call(u,g)?u[g].push(w):u[g]=[w]},Xe),Q$=ut(bh);function Qi(u){return er(u)?Fz(u):G0(u)}function tr(u){return er(u)?Fz(u,!0):TR(u)}function Z$(u,g){var w={};return g=Xe(g,3),Yo(u,function(S,q,$){Ma(w,g(S,q,$),S)}),w}function eI(u,g){var w={};return g=Xe(g,3),Yo(u,function(S,q,$){Ma(w,q,g(S,q,$))}),w}var tI=ud(function(u,g,w){km(u,g,w)}),d3=ud(function(u,g,w,S){km(u,g,w,S)}),iI=qa(function(u,g){var w={};if(u==null)return w;var S=!1;g=oi(g,function($){return $=Ns($,u),S||(S=$.length>1),$}),Xo(u,s1(u),w),S&&(w=Gr(w,d|f|h,KR));for(var q=g.length;q--;)Z0(w,g[q]);return w});function nI(u,g){return f3(u,$m(Xe(g)))}var rI=qa(function(u,g){return u==null?{}:LR(u,g)});function f3(u,g){if(u==null)return{};var w=oi(s1(u),function(S){return[S]});return g=Xe(g),i2(u,w,function(S,q){return g(S,q[0])})}function oI(u,g,w){g=Ns(g,u);var S=-1,q=g.length;for(q||(q=1,u=o);++S<q;){var $=u==null?o:u[Ko(g[S])];$===o&&(S=q,$=w),u=Ra($)?$.call(u):$}return u}function aI(u,g,w){return u==null?u:yh(u,g,w)}function sI(u,g,w,S){return S=typeof S=="function"?S:o,u==null?u:yh(u,g,w,S)}var h3=z2(Qi),u3=z2(tr);function lI(u,g,w){var S=at(u),q=S||Bs(u)||gd(u);if(g=Xe(g,4),w==null){var $=u&&u.constructor;q?w=S?new $:[]:di(u)?w=Ra($)?hd(fm(u)):{}:w={}}return(q?jr:Yo)(u,function(H,Y,ne){return g(w,H,Y,ne)}),w}function cI(u,g){return u==null?!0:Z0(u,g)}function dI(u,g,w){return u==null?u:s2(u,g,i1(w))}function fI(u,g,w,S){return S=typeof S=="function"?S:o,u==null?u:s2(u,g,i1(w),S)}function bd(u){return u==null?[]:R0(u,Qi(u))}function hI(u){return u==null?[]:R0(u,tr(u))}function uI(u,g,w){return w===o&&(w=g,g=o),w!==o&&(w=Kr(w),w=w===w?w:0),g!==o&&(g=Kr(g),g=g===g?g:0),Wl(Kr(u),g,w)}function pI(u,g,w){return g=Oa(g),w===o?(w=g,g=0):w=Oa(w),u=Kr(u),xR(u,g,w)}function mI(u,g,w){if(w&&typeof w!="boolean"&&$n(u,g,w)&&(g=w=o),w===o&&(typeof g=="boolean"?(w=g,g=o):typeof u=="boolean"&&(w=u,u=o)),u===o&&g===o?(u=0,g=1):(u=Oa(u),g===o?(g=u,u=0):g=Oa(g)),u>g){var S=u;u=g,g=S}if(w||u%1||g%1){var q=$z();return xn(u+q*(g-u+Gq("1e-"+((q+"").length-1))),g)}return K0(u,g)}var gI=pd(function(u,g,w){return g=g.toLowerCase(),u+(w?p3(g):g)});function p3(u){return _1(Tt(u).toLowerCase())}function m3(u){return u=Tt(u),u&&u.replace(vq,aP).replace($q,"")}function bI(u,g,w){u=Tt(u),g=xr(g);var S=u.length;w=w===o?S:Wl(lt(w),0,S);var q=w;return w-=g.length,w>=0&&u.slice(w,q)==g}function vI(u){return u=Tt(u),u&&Q7.test(u)?u.replace(U_,sP):u}function yI(u){return u=Tt(u),u&&rq.test(u)?u.replace(v0,"\\$&"):u}var xI=pd(function(u,g,w){return u+(w?"-":"")+g.toLowerCase()}),wI=pd(function(u,g,w){return u+(w?" ":"")+g.toLowerCase()}),kI=v2("toLowerCase");function _I(u,g,w){u=Tt(u),g=lt(g);var S=g?ld(u):0;if(!g||S>=g)return u;var q=(g-S)/2;return Em(mm(q),w)+u+Em(pm(q),w)}function zI(u,g,w){u=Tt(u),g=lt(g);var S=g?ld(u):0;return g&&S<g?u+Em(g-S,w):u}function CI(u,g,w){u=Tt(u),g=lt(g);var S=g?ld(u):0;return g&&S<g?Em(g-S,w)+u:u}function SI(u,g,w){return w||g==null?g=0:g&&(g=+g),PP(Tt(u).replace(y0,""),g||0)}function AI(u,g,w){return(w?$n(u,g,w):g===o)?g=1:g=lt(g),J0(Tt(u),g)}function EI(){var u=arguments,g=Tt(u[0]);return u.length<3?g:g.replace(u[1],u[2])}var TI=pd(function(u,g,w){return u+(w?"_":"")+g.toLowerCase()});function MI(u,g,w){return w&&typeof w!="number"&&$n(u,g,w)&&(g=w=o),w=w===o?ve:w>>>0,w?(u=Tt(u),u&&(typeof g=="string"||g!=null&&!x1(g))&&(g=xr(g),!g&&sd(u))?Hs(Ao(u),0,w):u.split(g,w)):[]}var LI=pd(function(u,g,w){return u+(w?" ":"")+_1(g)});function qI(u,g,w){return u=Tt(u),w=w==null?0:Wl(lt(w),0,u.length),g=xr(g),u.slice(w,w+g.length)==g}function PI(u,g,w){var S=O.templateSettings;w&&$n(u,g,w)&&(g=o),u=Tt(u),g=Nm({},g,S,C2);var q=Nm({},g.imports,S.imports,C2),$=Qi(q),H=R0(q,$),Y,ne,pe=0,me=g.interpolate||Zp,we="__p += '",Pe=D0((g.escape||Zp).source+"|"+me.source+"|"+(me===G_?hq:Zp).source+"|"+(g.evaluate||Zp).source+"|$","g"),Be="//# sourceURL="+(qt.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bq+"]")+`
3
+ `)}function oO(u){return at(u)||Gl(u)||!!(Oz&&u&&u[Oz])}function Pa(u,g){var w=typeof u;return g=g==null?se:g,!!g&&(w=="number"||w!="symbol"&&bq.test(u))&&u>-1&&u%1==0&&u<g}function $n(u,g,w){if(!di(w))return!1;var S=typeof g;return(S=="number"?er(w)&&Pa(g,w.length):S=="string"&&g in w)?To(w[g],u):!1}function f1(u,g){if(at(u))return!1;var w=typeof u;return w=="number"||w=="symbol"||w=="boolean"||u==null||wr(u)?!0:iq.test(u)||!tq.test(u)||g!=null&&u in Ft(g)}function aO(u){var g=typeof u;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?u!=="__proto__":u===null}function h1(u){var g=Mm(u),w=O[g];if(typeof w!="function"||!(g in vt.prototype))return!1;if(u===w)return!0;var S=l1(w);return!!S&&u===S[0]}function sO(u){return!!Lz&&Lz in u}var lO=am?Ra:T1;function wh(u){var g=u&&u.constructor,w=typeof g=="function"&&g.prototype||cd;return u===w}function L2(u){return u===u&&!di(u)}function q2(u,g){return function(w){return w==null?!1:w[u]===g&&(g!==o||u in Ft(w))}}function cO(u){var g=Dm(u,function(S){return w.size===l&&w.clear(),S}),w=g.cache;return g}function dO(u,g){var w=u[1],S=g[1],q=w|S,$=q<(v|b|C),H=S==C&&w==k||S==C&&w==L&&u[7].length<=g[8]||S==(C|L)&&g[7].length<=g[8]&&w==k;if(!($||H))return u;S&v&&(u[2]=g[2],q|=w&v?0:x);var Y=g[3];if(Y){var ne=u[3];u[3]=ne?p2(ne,Y,g[4]):Y,u[4]=ne?Os(u[3],c):g[4]}return Y=g[5],Y&&(ne=u[5],u[5]=ne?m2(ne,Y,g[6]):Y,u[6]=ne?Os(u[5],c):g[6]),Y=g[7],Y&&(u[7]=Y),S&C&&(u[8]=u[8]==null?g[8]:wn(u[8],g[8])),u[9]==null&&(u[9]=g[9]),u[0]=g[0],u[1]=q,u}function fO(u){var g=[];if(u!=null)for(var w in Ft(u))g.push(w);return g}function hO(u){return lm.call(u)}function P2(u,g,w){return g=Hi(g===o?u.length-1:g,0),function(){for(var S=arguments,q=-1,$=Hi(S.length-g,0),H=le($);++q<$;)H[q]=S[g+q];q=-1;for(var Y=le(g+1);++q<g;)Y[q]=S[q];return Y[g]=w(H),vr(u,this,Y)}}function R2(u,g){return g.length<2?u:jl(u,Yr(g,0,-1))}function uO(u,g){for(var w=u.length,S=wn(g.length,w),q=Zn(u);S--;){var $=g[S];u[S]=Pa($,w)?q[$]:o}return u}function u1(u,g){if(!(g==="constructor"&&typeof u[g]=="function")&&g!="__proto__")return u[g]}var O2=$2(r2),kh=EP||function(u,g){return Ji.setTimeout(u,g)},p1=$2(DR);function D2(u,g,w){var S=g+"";return p1(u,rO(S,pO(tO(S),w)))}function $2(u){var g=0,w=0;return function(){var S=qP(),q=B-(S-w);if(w=S,q>0){if(++g>=N)return arguments[0]}else g=0;return u.apply(o,arguments)}}function qm(u,g){var w=-1,S=u.length,q=S-1;for(g=g===o?S:g;++w<g;){var $=K0(w,q),H=u[$];u[$]=u[w],u[w]=H}return u.length=g,u}var I2=cO(function(u){var g=[];return u.charCodeAt(0)===46&&g.push(""),u.replace(nq,function(w,S,q,$){g.push(q?$.replace(fq,"$1"):S||w)}),g});function Ko(u){if(typeof u=="string"||wr(u))return u;var g=u+"";return g=="0"&&1/u==-oe?"-0":g}function Ul(u){if(u!=null){try{return sm.call(u)}catch(g){}try{return u+""}catch(g){}}return""}function pO(u,g){return jr(Se,function(w){var S="_."+w[0];g&w[1]&&!im(u,S)&&u.push(S)}),u.sort()}function F2(u){if(u instanceof vt)return u.clone();var g=new Ur(u.__wrapped__,u.__chain__);return g.__actions__=Zn(u.__actions__),g.__index__=u.__index__,g.__values__=u.__values__,g}function mO(u,g,w){(w?$n(u,g,w):g===o)?g=1:g=Hi(lt(g),0);var S=u==null?0:u.length;if(!S||g<1)return[];for(var q=0,$=0,H=le(pm(S/g));q<S;)H[$++]=Yr(u,q,q+=g);return H}function gO(u){for(var g=-1,w=u==null?0:u.length,S=0,q=[];++g<w;){var $=u[g];$&&(q[S++]=$)}return q}function bO(){var u=arguments.length;if(!u)return[];for(var g=le(u-1),w=arguments[0],S=u;S--;)g[S-1]=arguments[S];return Rs(at(w)?Zn(w):[w],an(g,1))}var vO=ut(function(u,g){return _i(u)?gh(u,an(g,1,_i,!0)):[]}),yO=ut(function(u,g){var w=Xr(g);return _i(w)&&(w=o),_i(u)?gh(u,an(g,1,_i,!0),Xe(w,2)):[]}),xO=ut(function(u,g){var w=Xr(g);return _i(w)&&(w=o),_i(u)?gh(u,an(g,1,_i,!0),o,w):[]});function wO(u,g,w){var S=u==null?0:u.length;return S?(g=w||g===o?1:lt(g),Yr(u,g<0?0:g,S)):[]}function kO(u,g,w){var S=u==null?0:u.length;return S?(g=w||g===o?1:lt(g),g=S-g,Yr(u,0,g<0?0:g)):[]}function _O(u,g){return u&&u.length?zm(u,Xe(g,3),!0,!0):[]}function zO(u,g){return u&&u.length?zm(u,Xe(g,3),!0):[]}function CO(u,g,w,S){var q=u==null?0:u.length;return q?(w&&typeof w!="number"&&$n(u,g,w)&&(w=0,S=q),bR(u,g,w,S)):[]}function N2(u,g,w){var S=u==null?0:u.length;if(!S)return-1;var q=w==null?0:lt(w);return q<0&&(q=Hi(S+q,0)),nm(u,Xe(g,3),q)}function H2(u,g,w){var S=u==null?0:u.length;if(!S)return-1;var q=S-1;return w!==o&&(q=lt(w),q=w<0?Hi(S+q,0):wn(q,S-1)),nm(u,Xe(g,3),q,!0)}function B2(u){var g=u==null?0:u.length;return g?an(u,1):[]}function SO(u){var g=u==null?0:u.length;return g?an(u,oe):[]}function AO(u,g){var w=u==null?0:u.length;return w?(g=g===o?1:lt(g),an(u,g)):[]}function EO(u){for(var g=-1,w=u==null?0:u.length,S={};++g<w;){var q=u[g];S[q[0]]=q[1]}return S}function W2(u){return u&&u.length?u[0]:o}function TO(u,g,w){var S=u==null?0:u.length;if(!S)return-1;var q=w==null?0:lt(w);return q<0&&(q=Hi(S+q,0)),ad(u,g,q)}function MO(u){var g=u==null?0:u.length;return g?Yr(u,0,-1):[]}var LO=ut(function(u){var g=oi(u,t1);return g.length&&g[0]===u[0]?V0(g):[]}),qO=ut(function(u){var g=Xr(u),w=oi(u,t1);return g===Xr(w)?g=o:w.pop(),w.length&&w[0]===u[0]?V0(w,Xe(g,2)):[]}),PO=ut(function(u){var g=Xr(u),w=oi(u,t1);return g=typeof g=="function"?g:o,g&&w.pop(),w.length&&w[0]===u[0]?V0(w,o,g):[]});function RO(u,g){return u==null?"":MP.call(u,g)}function Xr(u){var g=u==null?0:u.length;return g?u[g-1]:o}function OO(u,g,w){var S=u==null?0:u.length;if(!S)return-1;var q=S;return w!==o&&(q=lt(w),q=q<0?Hi(S+q,0):wn(q,S-1)),g===g?pP(u,g,q):nm(u,_z,q,!0)}function DO(u,g){return u&&u.length?e2(u,lt(g)):o}var $O=ut(j2);function j2(u,g){return u&&u.length&&g&&g.length?X0(u,g):u}function IO(u,g,w){return u&&u.length&&g&&g.length?X0(u,g,Xe(w,2)):u}function FO(u,g,w){return u&&u.length&&g&&g.length?X0(u,g,o,w):u}var NO=qa(function(u,g){var w=u==null?0:u.length,S=H0(u,g);return n2(u,oi(g,function(q){return Pa(q,w)?+q:q}).sort(u2)),S});function HO(u,g){var w=[];if(!(u&&u.length))return w;var S=-1,q=[],$=u.length;for(g=Xe(g,3);++S<$;){var H=u[S];g(H,S,u)&&(w.push(H),q.push(S))}return n2(u,q),w}function m1(u){return u==null?u:RP.call(u)}function BO(u,g,w){var S=u==null?0:u.length;return S?(w&&typeof w!="number"&&$n(u,g,w)?(g=0,w=S):(g=g==null?0:lt(g),w=w===o?S:lt(w)),Yr(u,g,w)):[]}function WO(u,g){return _m(u,g)}function jO(u,g,w){return Q0(u,g,Xe(w,2))}function VO(u,g){var w=u==null?0:u.length;if(w){var S=_m(u,g);if(S<w&&To(u[S],g))return S}return-1}function UO(u,g){return _m(u,g,!0)}function GO(u,g,w){return Q0(u,g,Xe(w,2),!0)}function YO(u,g){var w=u==null?0:u.length;if(w){var S=_m(u,g,!0)-1;if(To(u[S],g))return S}return-1}function XO(u){return u&&u.length?o2(u):[]}function KO(u,g){return u&&u.length?o2(u,Xe(g,2)):[]}function JO(u){var g=u==null?0:u.length;return g?Yr(u,1,g):[]}function QO(u,g,w){return u&&u.length?(g=w||g===o?1:lt(g),Yr(u,0,g<0?0:g)):[]}function ZO(u,g,w){var S=u==null?0:u.length;return S?(g=w||g===o?1:lt(g),g=S-g,Yr(u,g<0?0:g,S)):[]}function eD(u,g){return u&&u.length?zm(u,Xe(g,3),!1,!0):[]}function tD(u,g){return u&&u.length?zm(u,Xe(g,3)):[]}var iD=ut(function(u){return Fs(an(u,1,_i,!0))}),nD=ut(function(u){var g=Xr(u);return _i(g)&&(g=o),Fs(an(u,1,_i,!0),Xe(g,2))}),rD=ut(function(u){var g=Xr(u);return g=typeof g=="function"?g:o,Fs(an(u,1,_i,!0),o,g)});function oD(u){return u&&u.length?Fs(u):[]}function aD(u,g){return u&&u.length?Fs(u,Xe(g,2)):[]}function sD(u,g){return g=typeof g=="function"?g:o,u&&u.length?Fs(u,o,g):[]}function g1(u){if(!(u&&u.length))return[];var g=0;return u=Ps(u,function(w){if(_i(w))return g=Hi(w.length,g),!0}),P0(g,function(w){return oi(u,M0(w))})}function V2(u,g){if(!(u&&u.length))return[];var w=g1(u);return g==null?w:oi(w,function(S){return vr(g,o,S)})}var lD=ut(function(u,g){return _i(u)?gh(u,g):[]}),cD=ut(function(u){return e1(Ps(u,_i))}),dD=ut(function(u){var g=Xr(u);return _i(g)&&(g=o),e1(Ps(u,_i),Xe(g,2))}),fD=ut(function(u){var g=Xr(u);return g=typeof g=="function"?g:o,e1(Ps(u,_i),o,g)}),hD=ut(g1);function uD(u,g){return c2(u||[],g||[],mh)}function pD(u,g){return c2(u||[],g||[],yh)}var mD=ut(function(u){var g=u.length,w=g>1?u[g-1]:o;return w=typeof w=="function"?(u.pop(),w):o,V2(u,w)});function U2(u){var g=O(u);return g.__chain__=!0,g}function gD(u,g){return g(u),u}function Pm(u,g){return g(u)}var bD=qa(function(u){var g=u.length,w=g?u[0]:0,S=this.__wrapped__,q=function($){return H0($,u)};return g>1||this.__actions__.length||!(S instanceof vt)||!Pa(w)?this.thru(q):(S=S.slice(w,+w+(g?1:0)),S.__actions__.push({func:Pm,args:[q],thisArg:o}),new Ur(S,this.__chain__).thru(function($){return g&&!$.length&&$.push(o),$}))});function vD(){return U2(this)}function yD(){return new Ur(this.value(),this.__chain__)}function xD(){this.__values__===o&&(this.__values__=a3(this.value()));var u=this.__index__>=this.__values__.length,g=u?o:this.__values__[this.__index__++];return{done:u,value:g}}function wD(){return this}function kD(u){for(var g,w=this;w instanceof vm;){var S=F2(w);S.__index__=0,S.__values__=o,g?q.__wrapped__=S:g=S;var q=S;w=w.__wrapped__}return q.__wrapped__=u,g}function _D(){var u=this.__wrapped__;if(u instanceof vt){var g=u;return this.__actions__.length&&(g=new vt(this)),g=g.reverse(),g.__actions__.push({func:Pm,args:[m1],thisArg:o}),new Ur(g,this.__chain__)}return this.thru(m1)}function zD(){return l2(this.__wrapped__,this.__actions__)}var CD=Cm(function(u,g,w){qt.call(u,w)?++u[w]:Ma(u,w,1)});function SD(u,g,w){var S=at(u)?wz:gR;return w&&$n(u,g,w)&&(g=o),S(u,Xe(g,3))}function AD(u,g){var w=at(u)?Ps:Vz;return w(u,Xe(g,3))}var ED=y2(N2),TD=y2(H2);function MD(u,g){return an(Rm(u,g),1)}function LD(u,g){return an(Rm(u,g),oe)}function qD(u,g,w){return w=w===o?1:lt(w),an(Rm(u,g),w)}function G2(u,g){var w=at(u)?jr:Is;return w(u,Xe(g,3))}function Y2(u,g){var w=at(u)?Jq:jz;return w(u,Xe(g,3))}var PD=Cm(function(u,g,w){qt.call(u,w)?u[w].push(g):Ma(u,w,[g])});function RD(u,g,w,S){u=er(u)?u:bd(u),w=w&&!S?lt(w):0;var q=u.length;return w<0&&(w=Hi(q+w,0)),Fm(u)?w<=q&&u.indexOf(g,w)>-1:!!q&&ad(u,g,w)>-1}var OD=ut(function(u,g,w){var S=-1,q=typeof g=="function",$=er(u)?le(u.length):[];return Is(u,function(H){$[++S]=q?vr(g,H,w):bh(H,g,w)}),$}),DD=Cm(function(u,g,w){Ma(u,w,g)});function Rm(u,g){var w=at(u)?oi:Jz;return w(u,Xe(g,3))}function $D(u,g,w,S){return u==null?[]:(at(g)||(g=g==null?[]:[g]),w=S?o:w,at(w)||(w=w==null?[]:[w]),t2(u,g,w))}var ID=Cm(function(u,g,w){u[w?0:1].push(g)},function(){return[[],[]]});function FD(u,g,w){var S=at(u)?E0:Cz,q=arguments.length<3;return S(u,Xe(g,4),w,q,Is)}function ND(u,g,w){var S=at(u)?Qq:Cz,q=arguments.length<3;return S(u,Xe(g,4),w,q,jz)}function HD(u,g){var w=at(u)?Ps:Vz;return w(u,$m(Xe(g,3)))}function BD(u){var g=at(u)?Nz:RR;return g(u)}function WD(u,g,w){(w?$n(u,g,w):g===o)?g=1:g=lt(g);var S=at(u)?fR:OR;return S(u,g)}function jD(u){var g=at(u)?hR:$R;return g(u)}function VD(u){if(u==null)return 0;if(er(u))return Fm(u)?ld(u):u.length;var g=kn(u);return g==G||g==qe?u.size:G0(u).length}function UD(u,g,w){var S=at(u)?T0:IR;return w&&$n(u,g,w)&&(g=o),S(u,Xe(g,3))}var GD=ut(function(u,g){if(u==null)return[];var w=g.length;return w>1&&$n(u,g[0],g[1])?g=[]:w>2&&$n(g[0],g[1],g[2])&&(g=[g[0]]),t2(u,an(g,1),[])}),Om=AP||function(){return Ji.Date.now()};function YD(u,g){if(typeof g!="function")throw new Vr(r);return u=lt(u),function(){if(--u<1)return g.apply(this,arguments)}}function X2(u,g,w){return g=w?o:g,g=u&&g==null?u.length:g,La(u,C,o,o,o,o,g)}function K2(u,g){var w;if(typeof g!="function")throw new Vr(r);return u=lt(u),function(){return--u>0&&(w=g.apply(this,arguments)),u<=1&&(g=o),w}}var b1=ut(function(u,g,w){var S=v;if(w.length){var q=Os(w,md(b1));S|=E}return La(u,S,g,w,q)}),J2=ut(function(u,g,w){var S=v|b;if(w.length){var q=Os(w,md(J2));S|=E}return La(g,S,u,w,q)});function Q2(u,g,w){g=w?o:g;var S=La(u,k,o,o,o,o,o,g);return S.placeholder=Q2.placeholder,S}function Z2(u,g,w){g=w?o:g;var S=La(u,z,o,o,o,o,o,g);return S.placeholder=Z2.placeholder,S}function e3(u,g,w){var S,q,$,H,Y,ne,pe=0,me=!1,we=!1,Pe=!0;if(typeof u!="function")throw new Vr(r);g=Kr(g)||0,di(w)&&(me=!!w.leading,we="maxWait"in w,$=we?Hi(Kr(w.maxWait)||0,g):$,Pe="trailing"in w?!!w.trailing:Pe);function Be(zi){var Mo=S,Da=q;return S=q=o,pe=zi,H=u.apply(Da,Mo),H}function Je(zi){return pe=zi,Y=kh(mt,g),me?Be(zi):H}function dt(zi){var Mo=zi-ne,Da=zi-pe,y3=g-Mo;return we?wn(y3,$-Da):y3}function Qe(zi){var Mo=zi-ne,Da=zi-pe;return ne===o||Mo>=g||Mo<0||we&&Da>=$}function mt(){var zi=Om();if(Qe(zi))return yt(zi);Y=kh(mt,dt(zi))}function yt(zi){return Y=o,Pe&&S?Be(zi):(S=q=o,H)}function kr(){Y!==o&&d2(Y),pe=0,S=ne=q=Y=o}function In(){return Y===o?H:yt(Om())}function _r(){var zi=Om(),Mo=Qe(zi);if(S=arguments,q=this,ne=zi,Mo){if(Y===o)return Je(ne);if(we)return d2(Y),Y=kh(mt,g),Be(ne)}return Y===o&&(Y=kh(mt,g)),H}return _r.cancel=kr,_r.flush=In,_r}var XD=ut(function(u,g){return Wz(u,1,g)}),KD=ut(function(u,g,w){return Wz(u,Kr(g)||0,w)});function JD(u){return La(u,M)}function Dm(u,g){if(typeof u!="function"||g!=null&&typeof g!="function")throw new Vr(r);var w=function(){var S=arguments,q=g?g.apply(this,S):S[0],$=w.cache;if($.has(q))return $.get(q);var H=u.apply(this,S);return w.cache=$.set(q,H)||$,H};return w.cache=new(Dm.Cache||Ta),w}Dm.Cache=Ta;function $m(u){if(typeof u!="function")throw new Vr(r);return function(){var g=arguments;switch(g.length){case 0:return!u.call(this);case 1:return!u.call(this,g[0]);case 2:return!u.call(this,g[0],g[1]);case 3:return!u.call(this,g[0],g[1],g[2])}return!u.apply(this,g)}}function QD(u){return K2(2,u)}var ZD=FR(function(u,g){g=g.length==1&&at(g[0])?oi(g[0],yr(Xe())):oi(an(g,1),yr(Xe()));var w=g.length;return ut(function(S){for(var q=-1,$=wn(S.length,w);++q<$;)S[q]=g[q].call(this,S[q]);return vr(u,this,S)})}),v1=ut(function(u,g){var w=Os(g,md(v1));return La(u,E,o,g,w)}),t3=ut(function(u,g){var w=Os(g,md(t3));return La(u,A,o,g,w)}),e$=qa(function(u,g){return La(u,L,o,o,o,g)});function t$(u,g){if(typeof u!="function")throw new Vr(r);return g=g===o?g:lt(g),ut(u,g)}function i$(u,g){if(typeof u!="function")throw new Vr(r);return g=g==null?0:Hi(lt(g),0),ut(function(w){var S=w[g],q=Hs(w,0,g);return S&&Rs(q,S),vr(u,this,q)})}function n$(u,g,w){var S=!0,q=!0;if(typeof u!="function")throw new Vr(r);return di(w)&&(S="leading"in w?!!w.leading:S,q="trailing"in w?!!w.trailing:q),e3(u,g,{leading:S,maxWait:g,trailing:q})}function r$(u){return X2(u,1)}function o$(u,g){return v1(i1(g),u)}function a$(){if(!arguments.length)return[];var u=arguments[0];return at(u)?u:[u]}function s$(u){return Gr(u,h)}function l$(u,g){return g=typeof g=="function"?g:o,Gr(u,h,g)}function c$(u){return Gr(u,d|h)}function d$(u,g){return g=typeof g=="function"?g:o,Gr(u,d|h,g)}function f$(u,g){return g==null||Bz(u,g,Qi(g))}function To(u,g){return u===g||u!==u&&g!==g}var h$=Tm(j0),u$=Tm(function(u,g){return u>=g}),Gl=Yz(function(){return arguments}())?Yz:function(u){return vi(u)&&qt.call(u,"callee")&&!Rz.call(u,"callee")},at=le.isArray,p$=mz?yr(mz):kR;function er(u){return u!=null&&Im(u.length)&&!Ra(u)}function _i(u){return vi(u)&&er(u)}function m$(u){return u===!0||u===!1||vi(u)&&Dn(u)==xe}var Bs=TP||T1,g$=gz?yr(gz):_R;function b$(u){return vi(u)&&u.nodeType===1&&!_h(u)}function v$(u){if(u==null)return!0;if(er(u)&&(at(u)||typeof u=="string"||typeof u.splice=="function"||Bs(u)||gd(u)||Gl(u)))return!u.length;var g=kn(u);if(g==G||g==qe)return!u.size;if(wh(u))return!G0(u).length;for(var w in u)if(qt.call(u,w))return!1;return!0}function y$(u,g){return vh(u,g)}function x$(u,g,w){w=typeof w=="function"?w:o;var S=w?w(u,g):o;return S===o?vh(u,g,o,w):!!S}function y1(u){if(!vi(u))return!1;var g=Dn(u);return g==R||g==X||typeof u.message=="string"&&typeof u.name=="string"&&!_h(u)}function w$(u){return typeof u=="number"&&Dz(u)}function Ra(u){if(!di(u))return!1;var g=Dn(u);return g==F||g==D||g==Re||g==Ee}function i3(u){return typeof u=="number"&&u==lt(u)}function Im(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=se}function di(u){var g=typeof u;return u!=null&&(g=="object"||g=="function")}function vi(u){return u!=null&&typeof u=="object"}var n3=bz?yr(bz):CR;function k$(u,g){return u===g||U0(u,g,c1(g))}function _$(u,g,w){return w=typeof w=="function"?w:o,U0(u,g,c1(g),w)}function z$(u){return r3(u)&&u!=+u}function C$(u){if(lO(u))throw new ot(n);return Xz(u)}function S$(u){return u===null}function A$(u){return u==null}function r3(u){return typeof u=="number"||vi(u)&&Dn(u)==V}function _h(u){if(!vi(u)||Dn(u)!=re)return!1;var g=fm(u);if(g===null)return!0;var w=qt.call(g,"constructor")&&g.constructor;return typeof w=="function"&&w instanceof w&&sm.call(w)==_P}var x1=vz?yr(vz):SR;function E$(u){return i3(u)&&u>=-se&&u<=se}var o3=yz?yr(yz):AR;function Fm(u){return typeof u=="string"||!at(u)&&vi(u)&&Dn(u)==je}function wr(u){return typeof u=="symbol"||vi(u)&&Dn(u)==Pt}var gd=xz?yr(xz):ER;function T$(u){return u===o}function M$(u){return vi(u)&&kn(u)==ri}function L$(u){return vi(u)&&Dn(u)==rd}var q$=Tm(Y0),P$=Tm(function(u,g){return u<=g});function a3(u){if(!u)return[];if(er(u))return Fm(u)?Ao(u):Zn(u);if(dh&&u[dh])return fP(u[dh]());var g=kn(u),w=g==G?O0:g==qe?rm:bd;return w(u)}function Oa(u){if(!u)return u===0?u:0;if(u=Kr(u),u===oe||u===-oe){var g=u<0?-1:1;return g*de}return u===u?u:0}function lt(u){var g=Oa(u),w=g%1;return g===g?w?g-w:g:0}function s3(u){return u?Wl(lt(u),0,ve):0}function Kr(u){if(typeof u=="number")return u;if(wr(u))return _e;if(di(u)){var g=typeof u.valueOf=="function"?u.valueOf():u;u=di(g)?g+"":g}if(typeof u!="string")return u===0?u:+u;u=Sz(u);var w=pq.test(u);return w||gq.test(u)?Yq(u.slice(2),w?2:8):uq.test(u)?_e:+u}function l3(u){return Xo(u,tr(u))}function R$(u){return u?Wl(lt(u),-se,se):u===0?u:0}function Tt(u){return u==null?"":xr(u)}var O$=ud(function(u,g){if(wh(g)||er(g)){Xo(g,Qi(g),u);return}for(var w in g)qt.call(g,w)&&mh(u,w,g[w])}),c3=ud(function(u,g){Xo(g,tr(g),u)}),Nm=ud(function(u,g,w,S){Xo(g,tr(g),u,S)}),D$=ud(function(u,g,w,S){Xo(g,Qi(g),u,S)}),$$=qa(H0);function I$(u,g){var w=hd(u);return g==null?w:Hz(w,g)}var F$=ut(function(u,g){u=Ft(u);var w=-1,S=g.length,q=S>2?g[2]:o;for(q&&$n(g[0],g[1],q)&&(S=1);++w<S;)for(var $=g[w],H=tr($),Y=-1,ne=H.length;++Y<ne;){var pe=H[Y],me=u[pe];(me===o||To(me,cd[pe])&&!qt.call(u,pe))&&(u[pe]=$[pe])}return u}),N$=ut(function(u){return u.push(o,S2),vr(d3,o,u)});function H$(u,g){return kz(u,Xe(g,3),Yo)}function B$(u,g){return kz(u,Xe(g,3),W0)}function W$(u,g){return u==null?u:B0(u,Xe(g,3),tr)}function j$(u,g){return u==null?u:Uz(u,Xe(g,3),tr)}function V$(u,g){return u&&Yo(u,Xe(g,3))}function U$(u,g){return u&&W0(u,Xe(g,3))}function G$(u){return u==null?[]:wm(u,Qi(u))}function Y$(u){return u==null?[]:wm(u,tr(u))}function w1(u,g,w){var S=u==null?o:jl(u,g);return S===o?w:S}function X$(u,g){return u!=null&&T2(u,g,vR)}function k1(u,g){return u!=null&&T2(u,g,yR)}var K$=w2(function(u,g,w){g!=null&&typeof g.toString!="function"&&(g=lm.call(g)),u[g]=w},z1(ir)),J$=w2(function(u,g,w){g!=null&&typeof g.toString!="function"&&(g=lm.call(g)),qt.call(u,g)?u[g].push(w):u[g]=[w]},Xe),Q$=ut(bh);function Qi(u){return er(u)?Fz(u):G0(u)}function tr(u){return er(u)?Fz(u,!0):TR(u)}function Z$(u,g){var w={};return g=Xe(g,3),Yo(u,function(S,q,$){Ma(w,g(S,q,$),S)}),w}function eI(u,g){var w={};return g=Xe(g,3),Yo(u,function(S,q,$){Ma(w,q,g(S,q,$))}),w}var tI=ud(function(u,g,w){km(u,g,w)}),d3=ud(function(u,g,w,S){km(u,g,w,S)}),iI=qa(function(u,g){var w={};if(u==null)return w;var S=!1;g=oi(g,function($){return $=Ns($,u),S||(S=$.length>1),$}),Xo(u,s1(u),w),S&&(w=Gr(w,d|f|h,KR));for(var q=g.length;q--;)Z0(w,g[q]);return w});function nI(u,g){return f3(u,$m(Xe(g)))}var rI=qa(function(u,g){return u==null?{}:LR(u,g)});function f3(u,g){if(u==null)return{};var w=oi(s1(u),function(S){return[S]});return g=Xe(g),i2(u,w,function(S,q){return g(S,q[0])})}function oI(u,g,w){g=Ns(g,u);var S=-1,q=g.length;for(q||(q=1,u=o);++S<q;){var $=u==null?o:u[Ko(g[S])];$===o&&(S=q,$=w),u=Ra($)?$.call(u):$}return u}function aI(u,g,w){return u==null?u:yh(u,g,w)}function sI(u,g,w,S){return S=typeof S=="function"?S:o,u==null?u:yh(u,g,w,S)}var h3=z2(Qi),u3=z2(tr);function lI(u,g,w){var S=at(u),q=S||Bs(u)||gd(u);if(g=Xe(g,4),w==null){var $=u&&u.constructor;q?w=S?new $:[]:di(u)?w=Ra($)?hd(fm(u)):{}:w={}}return(q?jr:Yo)(u,function(H,Y,ne){return g(w,H,Y,ne)}),w}function cI(u,g){return u==null?!0:Z0(u,g)}function dI(u,g,w){return u==null?u:s2(u,g,i1(w))}function fI(u,g,w,S){return S=typeof S=="function"?S:o,u==null?u:s2(u,g,i1(w),S)}function bd(u){return u==null?[]:R0(u,Qi(u))}function hI(u){return u==null?[]:R0(u,tr(u))}function uI(u,g,w){return w===o&&(w=g,g=o),w!==o&&(w=Kr(w),w=w===w?w:0),g!==o&&(g=Kr(g),g=g===g?g:0),Wl(Kr(u),g,w)}function pI(u,g,w){return g=Oa(g),w===o?(w=g,g=0):w=Oa(w),u=Kr(u),xR(u,g,w)}function mI(u,g,w){if(w&&typeof w!="boolean"&&$n(u,g,w)&&(g=w=o),w===o&&(typeof g=="boolean"?(w=g,g=o):typeof u=="boolean"&&(w=u,u=o)),u===o&&g===o?(u=0,g=1):(u=Oa(u),g===o?(g=u,u=0):g=Oa(g)),u>g){var S=u;u=g,g=S}if(w||u%1||g%1){var q=$z();return wn(u+q*(g-u+Gq("1e-"+((q+"").length-1))),g)}return K0(u,g)}var gI=pd(function(u,g,w){return g=g.toLowerCase(),u+(w?p3(g):g)});function p3(u){return _1(Tt(u).toLowerCase())}function m3(u){return u=Tt(u),u&&u.replace(vq,aP).replace($q,"")}function bI(u,g,w){u=Tt(u),g=xr(g);var S=u.length;w=w===o?S:Wl(lt(w),0,S);var q=w;return w-=g.length,w>=0&&u.slice(w,q)==g}function vI(u){return u=Tt(u),u&&Q7.test(u)?u.replace(U_,sP):u}function yI(u){return u=Tt(u),u&&rq.test(u)?u.replace(v0,"\\$&"):u}var xI=pd(function(u,g,w){return u+(w?"-":"")+g.toLowerCase()}),wI=pd(function(u,g,w){return u+(w?" ":"")+g.toLowerCase()}),kI=v2("toLowerCase");function _I(u,g,w){u=Tt(u),g=lt(g);var S=g?ld(u):0;if(!g||S>=g)return u;var q=(g-S)/2;return Em(mm(q),w)+u+Em(pm(q),w)}function zI(u,g,w){u=Tt(u),g=lt(g);var S=g?ld(u):0;return g&&S<g?u+Em(g-S,w):u}function CI(u,g,w){u=Tt(u),g=lt(g);var S=g?ld(u):0;return g&&S<g?Em(g-S,w)+u:u}function SI(u,g,w){return w||g==null?g=0:g&&(g=+g),PP(Tt(u).replace(y0,""),g||0)}function AI(u,g,w){return(w?$n(u,g,w):g===o)?g=1:g=lt(g),J0(Tt(u),g)}function EI(){var u=arguments,g=Tt(u[0]);return u.length<3?g:g.replace(u[1],u[2])}var TI=pd(function(u,g,w){return u+(w?"_":"")+g.toLowerCase()});function MI(u,g,w){return w&&typeof w!="number"&&$n(u,g,w)&&(g=w=o),w=w===o?ve:w>>>0,w?(u=Tt(u),u&&(typeof g=="string"||g!=null&&!x1(g))&&(g=xr(g),!g&&sd(u))?Hs(Ao(u),0,w):u.split(g,w)):[]}var LI=pd(function(u,g,w){return u+(w?" ":"")+_1(g)});function qI(u,g,w){return u=Tt(u),w=w==null?0:Wl(lt(w),0,u.length),g=xr(g),u.slice(w,w+g.length)==g}function PI(u,g,w){var S=O.templateSettings;w&&$n(u,g,w)&&(g=o),u=Tt(u),g=Nm({},g,S,C2);var q=Nm({},g.imports,S.imports,C2),$=Qi(q),H=R0(q,$),Y,ne,pe=0,me=g.interpolate||Zp,we="__p += '",Pe=D0((g.escape||Zp).source+"|"+me.source+"|"+(me===G_?hq:Zp).source+"|"+(g.evaluate||Zp).source+"|$","g"),Be="//# sourceURL="+(qt.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Bq+"]")+`
4
4
  `;u.replace(Pe,function(Qe,mt,yt,kr,In,_r){return yt||(yt=kr),we+=u.slice(pe,_r).replace(yq,lP),mt&&(Y=!0,we+=`' +
5
5
  __e(`+mt+`) +
6
6
  '`),In&&(ne=!0,we+=`';
@@ -17,12 +17,12 @@ __p += '`),yt&&(we+=`' +
17
17
  function print() { __p += __j.call(arguments, '') }
18
18
  `:`;
19
19
  `)+we+`return __p
20
- }`;var dt=b3(function(){return St($,Be+"return "+we).apply(o,H)});if(dt.source=we,y1(dt))throw dt;return dt}function RI(u){return Tt(u).toLowerCase()}function OI(u){return Tt(u).toUpperCase()}function DI(u,g,w){if(u=Tt(u),u&&(w||g===o))return Sz(u);if(!u||!(g=xr(g)))return u;var S=Ao(u),q=Ao(g),$=Az(S,q),H=Ez(S,q)+1;return Hs(S,$,H).join("")}function $I(u,g,w){if(u=Tt(u),u&&(w||g===o))return u.slice(0,Mz(u)+1);if(!u||!(g=xr(g)))return u;var S=Ao(u),q=Ez(S,Ao(g))+1;return Hs(S,0,q).join("")}function II(u,g,w){if(u=Tt(u),u&&(w||g===o))return u.replace(y0,"");if(!u||!(g=xr(g)))return u;var S=Ao(u),q=Az(S,Ao(g));return Hs(S,q).join("")}function FI(u,g){var w=P,S=I;if(di(g)){var q="separator"in g?g.separator:q;w="length"in g?lt(g.length):w,S="omission"in g?xr(g.omission):S}u=Tt(u);var $=u.length;if(sd(u)){var H=Ao(u);$=H.length}if(w>=$)return u;var Y=w-ld(S);if(Y<1)return S;var ne=H?Hs(H,0,Y).join(""):u.slice(0,Y);if(q===o)return ne+S;if(H&&(Y+=ne.length-Y),x1(q)){if(u.slice(Y).search(q)){var pe,me=ne;for(q.global||(q=D0(q.source,Tt(Y_.exec(q))+"g")),q.lastIndex=0;pe=q.exec(me);)var we=pe.index;ne=ne.slice(0,we===o?Y:we)}}else if(u.indexOf(xr(q),Y)!=Y){var Pe=ne.lastIndexOf(q);Pe>-1&&(ne=ne.slice(0,Pe))}return ne+S}function NI(u){return u=Tt(u),u&&J7.test(u)?u.replace(V_,mP):u}var HI=pd(function(u,g,w){return u+(w?" ":"")+g.toUpperCase()}),_1=v2("toUpperCase");function g3(u,g,w){return u=Tt(u),g=w?o:g,g===o?dP(u)?vP(u):tP(u):u.match(g)||[]}var b3=ut(function(u,g){try{return vr(u,o,g)}catch(w){return y1(w)?w:new ot(w)}}),BI=qa(function(u,g){return jr(g,function(w){w=Ko(w),Ma(u,w,b1(u[w],u))}),u});function WI(u){var g=u==null?0:u.length,w=Xe();return u=g?oi(u,function(S){if(typeof S[1]!="function")throw new Vr(r);return[w(S[0]),S[1]]}):[],ut(function(S){for(var q=-1;++q<g;){var $=u[q];if(vr($[0],this,S))return vr($[1],this,S)}})}function jI(u){return mR(Gr(u,d))}function z1(u){return function(){return u}}function VI(u,g){return u==null||u!==u?g:u}var UI=x2(),GI=x2(!0);function ir(u){return u}function C1(u){return Kz(typeof u=="function"?u:Gr(u,d))}function YI(u){return Qz(Gr(u,d))}function XI(u,g){return Zz(u,Gr(g,d))}var KI=ut(function(u,g){return function(w){return bh(w,u,g)}}),JI=ut(function(u,g){return function(w){return bh(u,w,g)}});function S1(u,g,w){var S=Qi(g),q=wm(g,S);w==null&&!(di(g)&&(q.length||!S.length))&&(w=g,g=u,u=this,q=wm(g,Qi(g)));var $=!(di(w)&&"chain"in w)||!!w.chain,H=Ra(u);return jr(q,function(Y){var ne=g[Y];u[Y]=ne,H&&(u.prototype[Y]=function(){var pe=this.__chain__;if($||pe){var me=u(this.__wrapped__),we=me.__actions__=Zn(this.__actions__);return we.push({func:ne,args:arguments,thisArg:u}),me.__chain__=pe,me}return ne.apply(u,Rs([this.value()],arguments))})}),u}function QI(){return Ji._===this&&(Ji._=zP),this}function A1(){}function ZI(u){return u=lt(u),ut(function(g){return e2(g,u)})}var eF=r1(oi),tF=r1(wz),iF=r1(T0);function v3(u){return f1(u)?M0(Ko(u)):qR(u)}function nF(u){return function(g){return u==null?o:jl(u,g)}}var rF=k2(),oF=k2(!0);function E1(){return[]}function T1(){return!1}function aF(){return{}}function sF(){return""}function lF(){return!0}function cF(u,g){if(u=lt(u),u<1||u>se)return[];var w=ve,S=xn(u,ve);g=Xe(g),u-=ve;for(var q=P0(S,g);++w<u;)g(w);return q}function dF(u){return at(u)?oi(u,Ko):wr(u)?[u]:Zn(I2(Tt(u)))}function fF(u){var g=++kP;return Tt(u)+g}var hF=Am(function(u,g){return u+g},0),uF=o1("ceil"),pF=Am(function(u,g){return u/g},1),mF=o1("floor");function gF(u){return u&&u.length?xm(u,ir,j0):o}function bF(u,g){return u&&u.length?xm(u,Xe(g,2),j0):o}function vF(u){return zz(u,ir)}function yF(u,g){return zz(u,Xe(g,2))}function xF(u){return u&&u.length?xm(u,ir,Y0):o}function wF(u,g){return u&&u.length?xm(u,Xe(g,2),Y0):o}var kF=Am(function(u,g){return u*g},1),_F=o1("round"),zF=Am(function(u,g){return u-g},0);function CF(u){return u&&u.length?q0(u,ir):0}function SF(u,g){return u&&u.length?q0(u,Xe(g,2)):0}return O.after=YD,O.ary=X2,O.assign=O$,O.assignIn=c3,O.assignInWith=Nm,O.assignWith=D$,O.at=$$,O.before=K2,O.bind=b1,O.bindAll=BI,O.bindKey=J2,O.castArray=a$,O.chain=U2,O.chunk=mO,O.compact=gO,O.concat=bO,O.cond=WI,O.conforms=jI,O.constant=z1,O.countBy=CD,O.create=I$,O.curry=Q2,O.curryRight=Z2,O.debounce=e3,O.defaults=F$,O.defaultsDeep=N$,O.defer=XD,O.delay=KD,O.difference=vO,O.differenceBy=yO,O.differenceWith=xO,O.drop=wO,O.dropRight=kO,O.dropRightWhile=_O,O.dropWhile=zO,O.fill=CO,O.filter=AD,O.flatMap=MD,O.flatMapDeep=LD,O.flatMapDepth=qD,O.flatten=B2,O.flattenDeep=SO,O.flattenDepth=AO,O.flip=JD,O.flow=UI,O.flowRight=GI,O.fromPairs=EO,O.functions=G$,O.functionsIn=Y$,O.groupBy=PD,O.initial=MO,O.intersection=LO,O.intersectionBy=qO,O.intersectionWith=PO,O.invert=K$,O.invertBy=J$,O.invokeMap=OD,O.iteratee=C1,O.keyBy=DD,O.keys=Qi,O.keysIn=tr,O.map=Rm,O.mapKeys=Z$,O.mapValues=eI,O.matches=YI,O.matchesProperty=XI,O.memoize=Dm,O.merge=tI,O.mergeWith=d3,O.method=KI,O.methodOf=JI,O.mixin=S1,O.negate=$m,O.nthArg=ZI,O.omit=iI,O.omitBy=nI,O.once=QD,O.orderBy=$D,O.over=eF,O.overArgs=ZD,O.overEvery=tF,O.overSome=iF,O.partial=v1,O.partialRight=t3,O.partition=ID,O.pick=rI,O.pickBy=f3,O.property=v3,O.propertyOf=nF,O.pull=$O,O.pullAll=j2,O.pullAllBy=IO,O.pullAllWith=FO,O.pullAt=NO,O.range=rF,O.rangeRight=oF,O.rearg=e$,O.reject=HD,O.remove=HO,O.rest=t$,O.reverse=m1,O.sampleSize=WD,O.set=aI,O.setWith=sI,O.shuffle=jD,O.slice=BO,O.sortBy=GD,O.sortedUniq=XO,O.sortedUniqBy=KO,O.split=MI,O.spread=i$,O.tail=JO,O.take=QO,O.takeRight=ZO,O.takeRightWhile=eD,O.takeWhile=tD,O.tap=gD,O.throttle=n$,O.thru=Pm,O.toArray=a3,O.toPairs=h3,O.toPairsIn=u3,O.toPath=dF,O.toPlainObject=l3,O.transform=lI,O.unary=r$,O.union=iD,O.unionBy=nD,O.unionWith=rD,O.uniq=oD,O.uniqBy=aD,O.uniqWith=sD,O.unset=cI,O.unzip=g1,O.unzipWith=V2,O.update=dI,O.updateWith=fI,O.values=bd,O.valuesIn=hI,O.without=lD,O.words=g3,O.wrap=o$,O.xor=cD,O.xorBy=dD,O.xorWith=fD,O.zip=hD,O.zipObject=uD,O.zipObjectDeep=pD,O.zipWith=mD,O.entries=h3,O.entriesIn=u3,O.extend=c3,O.extendWith=Nm,S1(O,O),O.add=hF,O.attempt=b3,O.camelCase=gI,O.capitalize=p3,O.ceil=uF,O.clamp=uI,O.clone=s$,O.cloneDeep=c$,O.cloneDeepWith=d$,O.cloneWith=l$,O.conformsTo=f$,O.deburr=m3,O.defaultTo=VI,O.divide=pF,O.endsWith=bI,O.eq=To,O.escape=vI,O.escapeRegExp=yI,O.every=SD,O.find=ED,O.findIndex=N2,O.findKey=H$,O.findLast=TD,O.findLastIndex=H2,O.findLastKey=B$,O.floor=mF,O.forEach=G2,O.forEachRight=Y2,O.forIn=W$,O.forInRight=j$,O.forOwn=V$,O.forOwnRight=U$,O.get=w1,O.gt=h$,O.gte=u$,O.has=X$,O.hasIn=k1,O.head=W2,O.identity=ir,O.includes=RD,O.indexOf=TO,O.inRange=pI,O.invoke=Q$,O.isArguments=Gl,O.isArray=at,O.isArrayBuffer=p$,O.isArrayLike=er,O.isArrayLikeObject=_i,O.isBoolean=m$,O.isBuffer=Bs,O.isDate=g$,O.isElement=b$,O.isEmpty=v$,O.isEqual=y$,O.isEqualWith=x$,O.isError=y1,O.isFinite=w$,O.isFunction=Ra,O.isInteger=i3,O.isLength=Im,O.isMap=n3,O.isMatch=k$,O.isMatchWith=_$,O.isNaN=z$,O.isNative=C$,O.isNil=A$,O.isNull=S$,O.isNumber=r3,O.isObject=di,O.isObjectLike=vi,O.isPlainObject=_h,O.isRegExp=x1,O.isSafeInteger=E$,O.isSet=o3,O.isString=Fm,O.isSymbol=wr,O.isTypedArray=gd,O.isUndefined=T$,O.isWeakMap=M$,O.isWeakSet=L$,O.join=RO,O.kebabCase=xI,O.last=Xr,O.lastIndexOf=OO,O.lowerCase=wI,O.lowerFirst=kI,O.lt=q$,O.lte=P$,O.max=gF,O.maxBy=bF,O.mean=vF,O.meanBy=yF,O.min=xF,O.minBy=wF,O.stubArray=E1,O.stubFalse=T1,O.stubObject=aF,O.stubString=sF,O.stubTrue=lF,O.multiply=kF,O.nth=DO,O.noConflict=QI,O.noop=A1,O.now=Om,O.pad=_I,O.padEnd=zI,O.padStart=CI,O.parseInt=SI,O.random=mI,O.reduce=FD,O.reduceRight=ND,O.repeat=AI,O.replace=EI,O.result=oI,O.round=_F,O.runInContext=Q,O.sample=BD,O.size=VD,O.snakeCase=TI,O.some=UD,O.sortedIndex=WO,O.sortedIndexBy=jO,O.sortedIndexOf=VO,O.sortedLastIndex=UO,O.sortedLastIndexBy=GO,O.sortedLastIndexOf=YO,O.startCase=LI,O.startsWith=qI,O.subtract=zF,O.sum=CF,O.sumBy=SF,O.template=PI,O.times=cF,O.toFinite=Oa,O.toInteger=lt,O.toLength=s3,O.toLower=RI,O.toNumber=Kr,O.toSafeInteger=R$,O.toString=Tt,O.toUpper=OI,O.trim=DI,O.trimEnd=$I,O.trimStart=II,O.truncate=FI,O.unescape=NI,O.uniqueId=fF,O.upperCase=HI,O.upperFirst=_1,O.each=G2,O.eachRight=Y2,O.first=W2,S1(O,function(){var u={};return Yo(O,function(g,w){qt.call(O.prototype,w)||(u[w]=g)}),u}(),{chain:!1}),O.VERSION=t,jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){O[u].placeholder=O}),jr(["drop","take"],function(u,g){vt.prototype[u]=function(w){w=w===o?1:Hi(lt(w),0);var S=this.__filtered__&&!g?new vt(this):this.clone();return S.__filtered__?S.__takeCount__=xn(w,S.__takeCount__):S.__views__.push({size:xn(w,ve),type:u+(S.__dir__<0?"Right":"")}),S},vt.prototype[u+"Right"]=function(w){return this.reverse()[u](w).reverse()}}),jr(["filter","map","takeWhile"],function(u,g){var w=g+1,S=w==U||w==ae;vt.prototype[u]=function(q){var $=this.clone();return $.__iteratees__.push({iteratee:Xe(q,3),type:w}),$.__filtered__=$.__filtered__||S,$}}),jr(["head","last"],function(u,g){var w="take"+(g?"Right":"");vt.prototype[u]=function(){return this[w](1).value()[0]}}),jr(["initial","tail"],function(u,g){var w="drop"+(g?"":"Right");vt.prototype[u]=function(){return this.__filtered__?new vt(this):this[w](1)}}),vt.prototype.compact=function(){return this.filter(ir)},vt.prototype.find=function(u){return this.filter(u).head()},vt.prototype.findLast=function(u){return this.reverse().find(u)},vt.prototype.invokeMap=ut(function(u,g){return typeof u=="function"?new vt(this):this.map(function(w){return bh(w,u,g)})}),vt.prototype.reject=function(u){return this.filter($m(Xe(u)))},vt.prototype.slice=function(u,g){u=lt(u);var w=this;return w.__filtered__&&(u>0||g<0)?new vt(w):(u<0?w=w.takeRight(-u):u&&(w=w.drop(u)),g!==o&&(g=lt(g),w=g<0?w.dropRight(-g):w.take(g-u)),w)},vt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},vt.prototype.toArray=function(){return this.take(ve)},Yo(vt.prototype,function(u,g){var w=/^(?:filter|find|map|reject)|While$/.test(g),S=/^(?:head|last)$/.test(g),q=O[S?"take"+(g=="last"?"Right":""):g],$=S||/^find/.test(g);q&&(O.prototype[g]=function(){var H=this.__wrapped__,Y=S?[1]:arguments,ne=H instanceof vt,pe=Y[0],me=ne||at(H),we=function(mt){var yt=q.apply(O,Rs([mt],Y));return S&&Pe?yt[0]:yt};me&&w&&typeof pe=="function"&&pe.length!=1&&(ne=me=!1);var Pe=this.__chain__,Be=!!this.__actions__.length,Je=$&&!Pe,dt=ne&&!Be;if(!$&&me){H=dt?H:new vt(this);var Qe=u.apply(H,Y);return Qe.__actions__.push({func:Pm,args:[we],thisArg:o}),new Ur(Qe,Pe)}return Je&&dt?u.apply(this,Y):(Qe=this.thru(we),Je?S?Qe.value()[0]:Qe.value():Qe)})}),jr(["pop","push","shift","sort","splice","unshift"],function(u){var g=om[u],w=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",S=/^(?:pop|shift)$/.test(u);O.prototype[u]=function(){var q=arguments;if(S&&!this.__chain__){var $=this.value();return g.apply(at($)?$:[],q)}return this[w](function(H){return g.apply(at(H)?H:[],q)})}}),Yo(vt.prototype,function(u,g){var w=O[g];if(w){var S=w.name+"";qt.call(fd,S)||(fd[S]=[]),fd[S].push({name:g,func:w})}}),fd[Sm(o,b).name]=[{name:"wrapper",func:o}],vt.prototype.clone=NP,vt.prototype.reverse=HP,vt.prototype.value=BP,O.prototype.at=bD,O.prototype.chain=vD,O.prototype.commit=yD,O.prototype.next=xD,O.prototype.plant=kD,O.prototype.reverse=_D,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=zD,O.prototype.first=O.prototype.head,dh&&(O.prototype[dh]=wD),O},Ds=yP();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ji._=Ds,define(function(){return Ds})):Fl?((Fl.exports=Ds)._=Ds,C0._=Ds):Ji._=Ds}).call(vf)});var cT=Jo((H5e,lT)=>{var Dr=-1,Gn=1,Gi=0;function ap(o,t,i,n,r){if(o===t)return o?[[Gi,o]]:[];if(i!=null){var a=GQ(o,t,i);if(a)return a}var s=Fw(o,t),l=o.substring(0,s);o=o.substring(s),t=t.substring(s),s=rv(o,t);var c=o.substring(o.length-s);o=o.substring(0,o.length-s),t=t.substring(0,t.length-s);var d=FQ(o,t);return l&&d.unshift([Gi,l]),c&&d.push([Gi,c]),Nw(d,r),n&&BQ(d),d}function FQ(o,t){var i;if(!o)return[[Gn,t]];if(!t)return[[Dr,o]];var n=o.length>t.length?o:t,r=o.length>t.length?t:o,a=n.indexOf(r);if(a!==-1)return i=[[Gn,n.substring(0,a)],[Gi,r],[Gn,n.substring(a+r.length)]],o.length>t.length&&(i[0][0]=i[2][0]=Dr),i;if(r.length===1)return[[Dr,o],[Gn,t]];var s=HQ(o,t);if(s){var l=s[0],c=s[1],d=s[2],f=s[3],h=s[4],p=ap(l,d),m=ap(c,f);return p.concat([[Gi,h]],m)}return NQ(o,t)}function NQ(o,t){for(var i=o.length,n=t.length,r=Math.ceil((i+n)/2),a=r,s=2*r,l=new Array(s),c=new Array(s),d=0;d<s;d++)l[d]=-1,c[d]=-1;l[a+1]=0,c[a+1]=0;for(var f=i-n,h=f%2!==0,p=0,m=0,v=0,b=0,x=0;x<r;x++){for(var k=-x+p;k<=x-m;k+=2){var z=a+k,E;k===-x||k!==x&&l[z-1]<l[z+1]?E=l[z+1]:E=l[z-1]+1;for(var A=E-k;E<i&&A<n&&o.charAt(E)===t.charAt(A);)E++,A++;if(l[z]=E,E>i)m+=2;else if(A>n)p+=2;else if(h){var C=a+f-k;if(C>=0&&C<s&&c[C]!==-1){var L=i-c[C];if(E>=L)return ZE(o,t,E,A)}}}for(var M=-x+v;M<=x-b;M+=2){var C=a+M,L;M===-x||M!==x&&c[C-1]<c[C+1]?L=c[C+1]:L=c[C-1]+1;for(var P=L-M;L<i&&P<n&&o.charAt(i-L-1)===t.charAt(n-P-1);)L++,P++;if(c[C]=L,L>i)b+=2;else if(P>n)v+=2;else if(!h){var z=a+f-M;if(z>=0&&z<s&&l[z]!==-1){var E=l[z],A=a+E-z;if(L=i-L,E>=L)return ZE(o,t,E,A)}}}}return[[Dr,o],[Gn,t]]}function ZE(o,t,i,n){var r=o.substring(0,i),a=t.substring(0,n),s=o.substring(i),l=t.substring(n),c=ap(r,a),d=ap(s,l);return c.concat(d)}function Fw(o,t){if(!o||!t||o.charAt(0)!==t.charAt(0))return 0;for(var i=0,n=Math.min(o.length,t.length),r=n,a=0;i<r;)o.substring(a,r)==t.substring(a,r)?(i=r,a=i):n=r,r=Math.floor((n-i)/2+i);return rT(o.charCodeAt(r-1))&&r--,r}function eT(o,t){var i=o.length,n=t.length;if(i==0||n==0)return 0;i>n?o=o.substring(i-n):i<n&&(t=t.substring(0,i));var r=Math.min(i,n);if(o==t)return r;for(var a=0,s=1;;){var l=o.substring(r-s),c=t.indexOf(l);if(c==-1)return a;s+=c,(c==0||o.substring(r-s)==t.substring(0,s))&&(a=s,s++)}}function rv(o,t){if(!o||!t||o.slice(-1)!==t.slice(-1))return 0;for(var i=0,n=Math.min(o.length,t.length),r=n,a=0;i<r;)o.substring(o.length-r,o.length-a)==t.substring(t.length-r,t.length-a)?(i=r,a=i):n=r,r=Math.floor((n-i)/2+i);return oT(o.charCodeAt(o.length-r))&&r--,r}function HQ(o,t){var i=o.length>t.length?o:t,n=o.length>t.length?t:o;if(i.length<4||n.length*2<i.length)return null;function r(m,v,b){for(var x=m.substring(b,b+Math.floor(m.length/4)),k=-1,z="",E,A,C,L;(k=v.indexOf(x,k+1))!==-1;){var M=Fw(m.substring(b),v.substring(k)),P=rv(m.substring(0,b),v.substring(0,k));z.length<P+M&&(z=v.substring(k-P,k)+v.substring(k,k+M),E=m.substring(0,b-P),A=m.substring(b+M),C=v.substring(0,k-P),L=v.substring(k+M))}return z.length*2>=m.length?[E,A,C,L,z]:null}var a=r(i,n,Math.ceil(i.length/4)),s=r(i,n,Math.ceil(i.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var c,d,f,h;o.length>t.length?(c=l[0],d=l[1],f=l[2],h=l[3]):(f=l[0],h=l[1],c=l[2],d=l[3]);var p=l[4];return[c,d,f,h,p]}function BQ(o){for(var t=!1,i=[],n=0,r=null,a=0,s=0,l=0,c=0,d=0;a<o.length;)o[a][0]==Gi?(i[n++]=a,s=c,l=d,c=0,d=0,r=o[a][1]):(o[a][0]==Gn?c+=o[a][1].length:d+=o[a][1].length,r&&r.length<=Math.max(s,l)&&r.length<=Math.max(c,d)&&(o.splice(i[n-1],0,[Dr,r]),o[i[n-1]+1][0]=Gn,n--,n--,a=n>0?i[n-1]:-1,s=0,l=0,c=0,d=0,r=null,t=!0)),a++;for(t&&Nw(o),VQ(o),a=1;a<o.length;){if(o[a-1][0]==Dr&&o[a][0]==Gn){var f=o[a-1][1],h=o[a][1],p=eT(f,h),m=eT(h,f);p>=m?(p>=f.length/2||p>=h.length/2)&&(o.splice(a,0,[Gi,h.substring(0,p)]),o[a-1][1]=f.substring(0,f.length-p),o[a+1][1]=h.substring(p),a++):(m>=f.length/2||m>=h.length/2)&&(o.splice(a,0,[Gi,f.substring(0,m)]),o[a-1][0]=Gn,o[a-1][1]=h.substring(0,h.length-m),o[a+1][0]=Dr,o[a+1][1]=f.substring(m),a++),a++}a++}}var tT=/[^a-zA-Z0-9]/,iT=/\s/,nT=/[\r\n]/,WQ=/\n\r?\n$/,jQ=/^\r?\n\r?\n/;function VQ(o){function t(m,v){if(!m||!v)return 6;var b=m.charAt(m.length-1),x=v.charAt(0),k=b.match(tT),z=x.match(tT),E=k&&b.match(iT),A=z&&x.match(iT),C=E&&b.match(nT),L=A&&x.match(nT),M=C&&m.match(WQ),P=L&&v.match(jQ);return M||P?5:C||L?4:k&&!E&&A?3:E||A?2:k||z?1:0}for(var i=1;i<o.length-1;){if(o[i-1][0]==Gi&&o[i+1][0]==Gi){var n=o[i-1][1],r=o[i][1],a=o[i+1][1],s=rv(n,r);if(s){var l=r.substring(r.length-s);n=n.substring(0,n.length-s),r=l+r.substring(0,r.length-s),a=l+a}for(var c=n,d=r,f=a,h=t(n,r)+t(r,a);r.charAt(0)===a.charAt(0);){n+=r.charAt(0),r=r.substring(1)+a.charAt(0),a=a.substring(1);var p=t(n,r)+t(r,a);p>=h&&(h=p,c=n,d=r,f=a)}o[i-1][1]!=c&&(c?o[i-1][1]=c:(o.splice(i-1,1),i--),o[i][1]=d,f?o[i+1][1]=f:(o.splice(i+1,1),i--))}i++}}function Nw(o,t){o.push([Gi,""]);for(var i=0,n=0,r=0,a="",s="",l;i<o.length;){if(i<o.length-1&&!o[i][1]){o.splice(i,1);continue}switch(o[i][0]){case Gn:r++,s+=o[i][1],i++;break;case Dr:n++,a+=o[i][1],i++;break;case Gi:var c=i-r-n-1;if(t){if(c>=0&&sT(o[c][1])){var d=o[c][1].slice(-1);if(o[c][1]=o[c][1].slice(0,-1),a=d+a,s=d+s,!o[c][1]){o.splice(c,1),i--;var f=c-1;o[f]&&o[f][0]===Gn&&(r++,s=o[f][1]+s,f--),o[f]&&o[f][0]===Dr&&(n++,a=o[f][1]+a,f--),c=f}}if(aT(o[i][1])){var d=o[i][1].charAt(0);o[i][1]=o[i][1].slice(1),a+=d,s+=d}}if(i<o.length-1&&!o[i][1]){o.splice(i,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=Fw(s,a),l!==0&&(c>=0?o[c][1]+=s.substring(0,l):(o.splice(0,0,[Gi,s.substring(0,l)]),i++),s=s.substring(l),a=a.substring(l)),l=rv(s,a),l!==0&&(o[i][1]=s.substring(s.length-l)+o[i][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var h=r+n;a.length===0&&s.length===0?(o.splice(i-h,h),i=i-h):a.length===0?(o.splice(i-h,h,[Gn,s]),i=i-h+1):s.length===0?(o.splice(i-h,h,[Dr,a]),i=i-h+1):(o.splice(i-h,h,[Dr,a],[Gn,s]),i=i-h+2)}i!==0&&o[i-1][0]===Gi?(o[i-1][1]+=o[i][1],o.splice(i,1)):i++,r=0,n=0,a="",s="";break}}o[o.length-1][1]===""&&o.pop();var p=!1;for(i=1;i<o.length-1;)o[i-1][0]===Gi&&o[i+1][0]===Gi&&(o[i][1].substring(o[i][1].length-o[i-1][1].length)===o[i-1][1]?(o[i][1]=o[i-1][1]+o[i][1].substring(0,o[i][1].length-o[i-1][1].length),o[i+1][1]=o[i-1][1]+o[i+1][1],o.splice(i-1,1),p=!0):o[i][1].substring(0,o[i+1][1].length)==o[i+1][1]&&(o[i-1][1]+=o[i+1][1],o[i][1]=o[i][1].substring(o[i+1][1].length)+o[i+1][1],o.splice(i+1,1),p=!0)),i++;p&&Nw(o,t)}function rT(o){return o>=55296&&o<=56319}function oT(o){return o>=56320&&o<=57343}function aT(o){return oT(o.charCodeAt(0))}function sT(o){return rT(o.charCodeAt(o.length-1))}function UQ(o){for(var t=[],i=0;i<o.length;i++)o[i][1].length>0&&t.push(o[i]);return t}function Iw(o,t,i,n){return sT(o)||aT(n)?null:UQ([[Gi,o],[Dr,t],[Gn,i],[Gi,n]])}function GQ(o,t,i){var n=typeof i=="number"?{index:i,length:0}:i.oldRange,r=typeof i=="number"?null:i.newRange,a=o.length,s=t.length;if(n.length===0&&(r===null||r.length===0)){var l=n.index,c=o.slice(0,l),d=o.slice(l),f=r?r.index:null;e:{var h=l+s-a;if(f!==null&&f!==h||h<0||h>s)break e;var p=t.slice(0,h),m=t.slice(h);if(m!==d)break e;var v=Math.min(l,h),b=c.slice(0,v),x=p.slice(0,v);if(b!==x)break e;var k=c.slice(v),z=p.slice(v);return Iw(b,k,z,d)}e:{if(f!==null&&f!==l)break e;var E=l,p=t.slice(0,E),m=t.slice(E);if(p!==c)break e;var A=Math.min(a-E,s-E),C=d.slice(d.length-A),L=m.slice(m.length-A);if(C!==L)break e;var k=d.slice(0,d.length-A),z=m.slice(0,m.length-A);return Iw(c,k,z,C)}}if(n.length>0&&r&&r.length===0)e:{var b=o.slice(0,n.index),C=o.slice(n.index+n.length),v=b.length,A=C.length;if(s<v+A)break e;var x=t.slice(0,v),L=t.slice(s-A);if(b!==x||C!==L)break e;var k=o.slice(v,a-A),z=t.slice(v,s-A);return Iw(b,k,z,C)}return null}function ov(o,t,i,n){return ap(o,t,i,n,!0)}ov.INSERT=Gn;ov.DELETE=Dr;ov.EQUAL=Gi;lT.exports=ov});var tk=Jo((sp,Nf)=>{var YQ=200,wT="__lodash_hash_undefined__",kT=9007199254740991,Yw="[object Arguments]",XQ="[object Array]",_T="[object Boolean]",zT="[object Date]",KQ="[object Error]",Xw="[object Function]",CT="[object GeneratorFunction]",av="[object Map]",ST="[object Number]",Kw="[object Object]",dT="[object Promise]",AT="[object RegExp]",sv="[object Set]",ET="[object String]",TT="[object Symbol]",Bw="[object WeakMap]",MT="[object ArrayBuffer]",lv="[object DataView]",LT="[object Float32Array]",qT="[object Float64Array]",PT="[object Int8Array]",RT="[object Int16Array]",OT="[object Int32Array]",DT="[object Uint8Array]",$T="[object Uint8ClampedArray]",IT="[object Uint16Array]",FT="[object Uint32Array]",JQ=/[\\^$.*+?()[\]{}|]/g,QQ=/\w*$/,ZQ=/^\[object .+?Constructor\]$/,eZ=/^(?:0|[1-9]\d*)$/,Kt={};Kt[Yw]=Kt[XQ]=Kt[MT]=Kt[lv]=Kt[_T]=Kt[zT]=Kt[LT]=Kt[qT]=Kt[PT]=Kt[RT]=Kt[OT]=Kt[av]=Kt[ST]=Kt[Kw]=Kt[AT]=Kt[sv]=Kt[ET]=Kt[TT]=Kt[DT]=Kt[$T]=Kt[IT]=Kt[FT]=!0;Kt[KQ]=Kt[Xw]=Kt[Bw]=!1;var tZ=typeof global=="object"&&global&&global.Object===Object&&global,iZ=typeof self=="object"&&self&&self.Object===Object&&self,gs=tZ||iZ||Function("return this")(),NT=typeof sp=="object"&&sp&&!sp.nodeType&&sp,fT=NT&&typeof Nf=="object"&&Nf&&!Nf.nodeType&&Nf,nZ=fT&&fT.exports===NT;function rZ(o,t){return o.set(t[0],t[1]),o}function oZ(o,t){return o.add(t),o}function aZ(o,t){for(var i=-1,n=o?o.length:0;++i<n&&t(o[i],i,o)!==!1;);return o}function sZ(o,t){for(var i=-1,n=t.length,r=o.length;++i<n;)o[r+i]=t[i];return o}function HT(o,t,i,n){var r=-1,a=o?o.length:0;for(n&&a&&(i=o[++r]);++r<a;)i=t(i,o[r],r,o);return i}function lZ(o,t){for(var i=-1,n=Array(o);++i<o;)n[i]=t(i);return n}function cZ(o,t){return o==null?void 0:o[t]}function BT(o){var t=!1;if(o!=null&&typeof o.toString!="function")try{t=!!(o+"")}catch(i){}return t}function hT(o){var t=-1,i=Array(o.size);return o.forEach(function(n,r){i[++t]=[r,n]}),i}function Jw(o,t){return function(i){return o(t(i))}}function uT(o){var t=-1,i=Array(o.size);return o.forEach(function(n){i[++t]=n}),i}var dZ=Array.prototype,fZ=Function.prototype,cv=Object.prototype,Hw=gs["__core-js_shared__"],pT=function(){var o=/[^.]+$/.exec(Hw&&Hw.keys&&Hw.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),WT=fZ.toString,vl=cv.hasOwnProperty,dv=cv.toString,hZ=RegExp("^"+WT.call(vl).replace(JQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mT=nZ?gs.Buffer:void 0,gT=gs.Symbol,bT=gs.Uint8Array,uZ=Jw(Object.getPrototypeOf,Object),pZ=Object.create,mZ=cv.propertyIsEnumerable,gZ=dZ.splice,vT=Object.getOwnPropertySymbols,bZ=mT?mT.isBuffer:void 0,vZ=Jw(Object.keys,Object),Ww=Wf(gs,"DataView"),lp=Wf(gs,"Map"),jw=Wf(gs,"Promise"),Vw=Wf(gs,"Set"),Uw=Wf(gs,"WeakMap"),cp=Wf(Object,"create"),yZ=Hc(Ww),xZ=Hc(lp),wZ=Hc(jw),kZ=Hc(Vw),_Z=Hc(Uw),yT=gT?gT.prototype:void 0,xT=yT?yT.valueOf:void 0;function Nc(o){var t=-1,i=o?o.length:0;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function zZ(){this.__data__=cp?cp(null):{}}function CZ(o){return this.has(o)&&delete this.__data__[o]}function SZ(o){var t=this.__data__;if(cp){var i=t[o];return i===wT?void 0:i}return vl.call(t,o)?t[o]:void 0}function AZ(o){var t=this.__data__;return cp?t[o]!==void 0:vl.call(t,o)}function EZ(o,t){var i=this.__data__;return i[o]=cp&&t===void 0?wT:t,this}Nc.prototype.clear=zZ;Nc.prototype.delete=CZ;Nc.prototype.get=SZ;Nc.prototype.has=AZ;Nc.prototype.set=EZ;function bs(o){var t=-1,i=o?o.length:0;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function TZ(){this.__data__=[]}function MZ(o){var t=this.__data__,i=fv(t,o);if(i<0)return!1;var n=t.length-1;return i==n?t.pop():gZ.call(t,i,1),!0}function LZ(o){var t=this.__data__,i=fv(t,o);return i<0?void 0:t[i][1]}function qZ(o){return fv(this.__data__,o)>-1}function PZ(o,t){var i=this.__data__,n=fv(i,o);return n<0?i.push([o,t]):i[n][1]=t,this}bs.prototype.clear=TZ;bs.prototype.delete=MZ;bs.prototype.get=LZ;bs.prototype.has=qZ;bs.prototype.set=PZ;function Hf(o){var t=-1,i=o?o.length:0;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function RZ(){this.__data__={hash:new Nc,map:new(lp||bs),string:new Nc}}function OZ(o){return hv(this,o).delete(o)}function DZ(o){return hv(this,o).get(o)}function $Z(o){return hv(this,o).has(o)}function IZ(o,t){return hv(this,o).set(o,t),this}Hf.prototype.clear=RZ;Hf.prototype.delete=OZ;Hf.prototype.get=DZ;Hf.prototype.has=$Z;Hf.prototype.set=IZ;function Bf(o){this.__data__=new bs(o)}function FZ(){this.__data__=new bs}function NZ(o){return this.__data__.delete(o)}function HZ(o){return this.__data__.get(o)}function BZ(o){return this.__data__.has(o)}function WZ(o,t){var i=this.__data__;if(i instanceof bs){var n=i.__data__;if(!lp||n.length<YQ-1)return n.push([o,t]),this;i=this.__data__=new Hf(n)}return i.set(o,t),this}Bf.prototype.clear=FZ;Bf.prototype.delete=NZ;Bf.prototype.get=HZ;Bf.prototype.has=BZ;Bf.prototype.set=WZ;function jZ(o,t){var i=Zw(o)||pee(o)?lZ(o.length,String):[],n=i.length,r=!!n;for(var a in o)(t||vl.call(o,a))&&!(r&&(a=="length"||dee(a,n)))&&i.push(a);return i}function jT(o,t,i){var n=o[t];(!(vl.call(o,t)&&YT(n,i))||i===void 0&&!(t in o))&&(o[t]=i)}function fv(o,t){for(var i=o.length;i--;)if(YT(o[i][0],t))return i;return-1}function VZ(o,t){return o&&VT(t,ek(t),o)}function Gw(o,t,i,n,r,a,s){var l;if(n&&(l=a?n(o,r,a,s):n(o)),l!==void 0)return l;if(!uv(o))return o;var c=Zw(o);if(c){if(l=see(o),!t)return ree(o,l)}else{var d=Fc(o),f=d==Xw||d==CT;if(gee(o))return JZ(o,t);if(d==Kw||d==Yw||f&&!a){if(BT(o))return a?o:{};if(l=lee(f?{}:o),!t)return oee(o,VZ(l,o))}else{if(!Kt[d])return a?o:{};l=cee(o,d,Gw,t)}}s||(s=new Bf);var h=s.get(o);if(h)return h;if(s.set(o,l),!c)var p=i?aee(o):ek(o);return aZ(p||o,function(m,v){p&&(v=m,m=o[v]),jT(l,v,Gw(m,t,i,n,v,o,s))}),l}function UZ(o){return uv(o)?pZ(o):{}}function GZ(o,t,i){var n=t(o);return Zw(o)?n:sZ(n,i(o))}function YZ(o){return dv.call(o)}function XZ(o){if(!uv(o)||hee(o))return!1;var t=KT(o)||BT(o)?hZ:ZQ;return t.test(Hc(o))}function KZ(o){if(!GT(o))return vZ(o);var t=[];for(var i in Object(o))vl.call(o,i)&&i!="constructor"&&t.push(i);return t}function JZ(o,t){if(t)return o.slice();var i=new o.constructor(o.length);return o.copy(i),i}function Qw(o){var t=new o.constructor(o.byteLength);return new bT(t).set(new bT(o)),t}function QZ(o,t){var i=t?Qw(o.buffer):o.buffer;return new o.constructor(i,o.byteOffset,o.byteLength)}function ZZ(o,t,i){var n=t?i(hT(o),!0):hT(o);return HT(n,rZ,new o.constructor)}function eee(o){var t=new o.constructor(o.source,QQ.exec(o));return t.lastIndex=o.lastIndex,t}function tee(o,t,i){var n=t?i(uT(o),!0):uT(o);return HT(n,oZ,new o.constructor)}function iee(o){return xT?Object(xT.call(o)):{}}function nee(o,t){var i=t?Qw(o.buffer):o.buffer;return new o.constructor(i,o.byteOffset,o.length)}function ree(o,t){var i=-1,n=o.length;for(t||(t=Array(n));++i<n;)t[i]=o[i];return t}function VT(o,t,i,n){i||(i={});for(var r=-1,a=t.length;++r<a;){var s=t[r],l=n?n(i[s],o[s],s,i,o):void 0;jT(i,s,l===void 0?o[s]:l)}return i}function oee(o,t){return VT(o,UT(o),t)}function aee(o){return GZ(o,ek,UT)}function hv(o,t){var i=o.__data__;return fee(t)?i[typeof t=="string"?"string":"hash"]:i.map}function Wf(o,t){var i=cZ(o,t);return XZ(i)?i:void 0}var UT=vT?Jw(vT,Object):yee,Fc=YZ;(Ww&&Fc(new Ww(new ArrayBuffer(1)))!=lv||lp&&Fc(new lp)!=av||jw&&Fc(jw.resolve())!=dT||Vw&&Fc(new Vw)!=sv||Uw&&Fc(new Uw)!=Bw)&&(Fc=function(o){var t=dv.call(o),i=t==Kw?o.constructor:void 0,n=i?Hc(i):void 0;if(n)switch(n){case yZ:return lv;case xZ:return av;case wZ:return dT;case kZ:return sv;case _Z:return Bw}return t});function see(o){var t=o.length,i=o.constructor(t);return t&&typeof o[0]=="string"&&vl.call(o,"index")&&(i.index=o.index,i.input=o.input),i}function lee(o){return typeof o.constructor=="function"&&!GT(o)?UZ(uZ(o)):{}}function cee(o,t,i,n){var r=o.constructor;switch(t){case MT:return Qw(o);case _T:case zT:return new r(+o);case lv:return QZ(o,n);case LT:case qT:case PT:case RT:case OT:case DT:case $T:case IT:case FT:return nee(o,n);case av:return ZZ(o,n,i);case ST:case ET:return new r(o);case AT:return eee(o);case sv:return tee(o,n,i);case TT:return iee(o)}}function dee(o,t){return t=t==null?kT:t,!!t&&(typeof o=="number"||eZ.test(o))&&o>-1&&o%1==0&&o<t}function fee(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null}function hee(o){return!!pT&&pT in o}function GT(o){var t=o&&o.constructor,i=typeof t=="function"&&t.prototype||cv;return o===i}function Hc(o){if(o!=null){try{return WT.call(o)}catch(t){}try{return o+""}catch(t){}}return""}function uee(o){return Gw(o,!0,!0)}function YT(o,t){return o===t||o!==o&&t!==t}function pee(o){return mee(o)&&vl.call(o,"callee")&&(!mZ.call(o,"callee")||dv.call(o)==Yw)}var Zw=Array.isArray;function XT(o){return o!=null&&bee(o.length)&&!KT(o)}function mee(o){return vee(o)&&XT(o)}var gee=bZ||xee;function KT(o){var t=uv(o)?dv.call(o):"";return t==Xw||t==CT}function bee(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=kT}function uv(o){var t=typeof o;return!!o&&(t=="object"||t=="function")}function vee(o){return!!o&&typeof o=="object"}function ek(o){return XT(o)?jZ(o):KZ(o)}function yee(){return[]}function xee(){return!1}Nf.exports=uee});var uk=Jo((dp,Vf)=>{var wee=200,hk="__lodash_hash_undefined__",wv=1,lM=2,cM=9007199254740991,pv="[object Arguments]",ok="[object Array]",kee="[object AsyncFunction]",dM="[object Boolean]",fM="[object Date]",hM="[object Error]",uM="[object Function]",_ee="[object GeneratorFunction]",mv="[object Map]",pM="[object Number]",zee="[object Null]",jf="[object Object]",JT="[object Promise]",Cee="[object Proxy]",mM="[object RegExp]",gv="[object Set]",gM="[object String]",See="[object Symbol]",Aee="[object Undefined]",ak="[object WeakMap]",bM="[object ArrayBuffer]",bv="[object DataView]",Eee="[object Float32Array]",Tee="[object Float64Array]",Mee="[object Int8Array]",Lee="[object Int16Array]",qee="[object Int32Array]",Pee="[object Uint8Array]",Ree="[object Uint8ClampedArray]",Oee="[object Uint16Array]",Dee="[object Uint32Array]",$ee=/[\\^$.*+?()[\]{}|]/g,Iee=/^\[object .+?Constructor\]$/,Fee=/^(?:0|[1-9]\d*)$/,ni={};ni[Eee]=ni[Tee]=ni[Mee]=ni[Lee]=ni[qee]=ni[Pee]=ni[Ree]=ni[Oee]=ni[Dee]=!0;ni[pv]=ni[ok]=ni[bM]=ni[dM]=ni[bv]=ni[fM]=ni[hM]=ni[uM]=ni[mv]=ni[pM]=ni[jf]=ni[mM]=ni[gv]=ni[gM]=ni[ak]=!1;var vM=typeof global=="object"&&global&&global.Object===Object&&global,Nee=typeof self=="object"&&self&&self.Object===Object&&self,vs=vM||Nee||Function("return this")(),yM=typeof dp=="object"&&dp&&!dp.nodeType&&dp,QT=yM&&typeof Vf=="object"&&Vf&&!Vf.nodeType&&Vf,xM=QT&&QT.exports===yM,ik=xM&&vM.process,ZT=function(){try{return ik&&ik.binding&&ik.binding("util")}catch(o){}}(),eM=ZT&&ZT.isTypedArray;function Hee(o,t){for(var i=-1,n=o==null?0:o.length,r=0,a=[];++i<n;){var s=o[i];t(s,i,o)&&(a[r++]=s)}return a}function Bee(o,t){for(var i=-1,n=t.length,r=o.length;++i<n;)o[r+i]=t[i];return o}function Wee(o,t){for(var i=-1,n=o==null?0:o.length;++i<n;)if(t(o[i],i,o))return!0;return!1}function jee(o,t){for(var i=-1,n=Array(o);++i<o;)n[i]=t(i);return n}function Vee(o){return function(t){return o(t)}}function Uee(o,t){return o.has(t)}function Gee(o,t){return o==null?void 0:o[t]}function Yee(o){var t=-1,i=Array(o.size);return o.forEach(function(n,r){i[++t]=[r,n]}),i}function Xee(o,t){return function(i){return o(t(i))}}function Kee(o){var t=-1,i=Array(o.size);return o.forEach(function(n){i[++t]=n}),i}var Jee=Array.prototype,Qee=Function.prototype,kv=Object.prototype,nk=vs["__core-js_shared__"],wM=Qee.toString,xa=kv.hasOwnProperty,tM=function(){var o=/[^.]+$/.exec(nk&&nk.keys&&nk.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),kM=kv.toString,Zee=RegExp("^"+wM.call(xa).replace($ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iM=xM?vs.Buffer:void 0,vv=vs.Symbol,nM=vs.Uint8Array,_M=kv.propertyIsEnumerable,ete=Jee.splice,Bc=vv?vv.toStringTag:void 0,rM=Object.getOwnPropertySymbols,tte=iM?iM.isBuffer:void 0,ite=Xee(Object.keys,Object),sk=Uf(vs,"DataView"),fp=Uf(vs,"Map"),lk=Uf(vs,"Promise"),ck=Uf(vs,"Set"),dk=Uf(vs,"WeakMap"),hp=Uf(Object,"create"),nte=Vc(sk),rte=Vc(fp),ote=Vc(lk),ate=Vc(ck),ste=Vc(dk),oM=vv?vv.prototype:void 0,rk=oM?oM.valueOf:void 0;function Wc(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function lte(){this.__data__=hp?hp(null):{},this.size=0}function cte(o){var t=this.has(o)&&delete this.__data__[o];return this.size-=t?1:0,t}function dte(o){var t=this.__data__;if(hp){var i=t[o];return i===hk?void 0:i}return xa.call(t,o)?t[o]:void 0}function fte(o){var t=this.__data__;return hp?t[o]!==void 0:xa.call(t,o)}function hte(o,t){var i=this.__data__;return this.size+=this.has(o)?0:1,i[o]=hp&&t===void 0?hk:t,this}Wc.prototype.clear=lte;Wc.prototype.delete=cte;Wc.prototype.get=dte;Wc.prototype.has=fte;Wc.prototype.set=hte;function ys(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function ute(){this.__data__=[],this.size=0}function pte(o){var t=this.__data__,i=_v(t,o);if(i<0)return!1;var n=t.length-1;return i==n?t.pop():ete.call(t,i,1),--this.size,!0}function mte(o){var t=this.__data__,i=_v(t,o);return i<0?void 0:t[i][1]}function gte(o){return _v(this.__data__,o)>-1}function bte(o,t){var i=this.__data__,n=_v(i,o);return n<0?(++this.size,i.push([o,t])):i[n][1]=t,this}ys.prototype.clear=ute;ys.prototype.delete=pte;ys.prototype.get=mte;ys.prototype.has=gte;ys.prototype.set=bte;function jc(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function vte(){this.size=0,this.__data__={hash:new Wc,map:new(fp||ys),string:new Wc}}function yte(o){var t=zv(this,o).delete(o);return this.size-=t?1:0,t}function xte(o){return zv(this,o).get(o)}function wte(o){return zv(this,o).has(o)}function kte(o,t){var i=zv(this,o),n=i.size;return i.set(o,t),this.size+=i.size==n?0:1,this}jc.prototype.clear=vte;jc.prototype.delete=yte;jc.prototype.get=xte;jc.prototype.has=wte;jc.prototype.set=kte;function yv(o){var t=-1,i=o==null?0:o.length;for(this.__data__=new jc;++t<i;)this.add(o[t])}function _te(o){return this.__data__.set(o,hk),this}function zte(o){return this.__data__.has(o)}yv.prototype.add=yv.prototype.push=_te;yv.prototype.has=zte;function xl(o){var t=this.__data__=new ys(o);this.size=t.size}function Cte(){this.__data__=new ys,this.size=0}function Ste(o){var t=this.__data__,i=t.delete(o);return this.size=t.size,i}function Ate(o){return this.__data__.get(o)}function Ete(o){return this.__data__.has(o)}function Tte(o,t){var i=this.__data__;if(i instanceof ys){var n=i.__data__;if(!fp||n.length<wee-1)return n.push([o,t]),this.size=++i.size,this;i=this.__data__=new jc(n)}return i.set(o,t),this.size=i.size,this}xl.prototype.clear=Cte;xl.prototype.delete=Ste;xl.prototype.get=Ate;xl.prototype.has=Ete;xl.prototype.set=Tte;function Mte(o,t){var i=xv(o),n=!i&&Vte(o),r=!i&&!n&&fk(o),a=!i&&!n&&!r&&MM(o),s=i||n||r||a,l=s?jee(o.length,String):[],c=l.length;for(var d in o)(t||xa.call(o,d))&&!(s&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Nte(d,c)))&&l.push(d);return l}function _v(o,t){for(var i=o.length;i--;)if(SM(o[i][0],t))return i;return-1}function Lte(o,t,i){var n=t(o);return xv(o)?n:Bee(n,i(o))}function pp(o){return o==null?o===void 0?Aee:zee:Bc&&Bc in Object(o)?Ite(o):jte(o)}function aM(o){return up(o)&&pp(o)==pv}function zM(o,t,i,n,r){return o===t?!0:o==null||t==null||!up(o)&&!up(t)?o!==o&&t!==t:qte(o,t,i,n,zM,r)}function qte(o,t,i,n,r,a){var s=xv(o),l=xv(t),c=s?ok:yl(o),d=l?ok:yl(t);c=c==pv?jf:c,d=d==pv?jf:d;var f=c==jf,h=d==jf,p=c==d;if(p&&fk(o)){if(!fk(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new xl),s||MM(o)?CM(o,t,i,n,r,a):Dte(o,t,c,i,n,r,a);if(!(i&wv)){var m=f&&xa.call(o,"__wrapped__"),v=h&&xa.call(t,"__wrapped__");if(m||v){var b=m?o.value():o,x=v?t.value():t;return a||(a=new xl),r(b,x,i,n,a)}}return p?(a||(a=new xl),$te(o,t,i,n,r,a)):!1}function Pte(o){if(!TM(o)||Bte(o))return!1;var t=AM(o)?Zee:Iee;return t.test(Vc(o))}function Rte(o){return up(o)&&EM(o.length)&&!!ni[pp(o)]}function Ote(o){if(!Wte(o))return ite(o);var t=[];for(var i in Object(o))xa.call(o,i)&&i!="constructor"&&t.push(i);return t}function CM(o,t,i,n,r,a){var s=i&wv,l=o.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=a.get(o);if(d&&a.get(t))return d==t;var f=-1,h=!0,p=i&lM?new yv:void 0;for(a.set(o,t),a.set(t,o);++f<l;){var m=o[f],v=t[f];if(n)var b=s?n(v,m,f,t,o,a):n(m,v,f,o,t,a);if(b!==void 0){if(b)continue;h=!1;break}if(p){if(!Wee(t,function(x,k){if(!Uee(p,k)&&(m===x||r(m,x,i,n,a)))return p.push(k)})){h=!1;break}}else if(!(m===v||r(m,v,i,n,a))){h=!1;break}}return a.delete(o),a.delete(t),h}function Dte(o,t,i,n,r,a,s){switch(i){case bv:if(o.byteLength!=t.byteLength||o.byteOffset!=t.byteOffset)return!1;o=o.buffer,t=t.buffer;case bM:return!(o.byteLength!=t.byteLength||!a(new nM(o),new nM(t)));case dM:case fM:case pM:return SM(+o,+t);case hM:return o.name==t.name&&o.message==t.message;case mM:case gM:return o==t+"";case mv:var l=Yee;case gv:var c=n&wv;if(l||(l=Kee),o.size!=t.size&&!c)return!1;var d=s.get(o);if(d)return d==t;n|=lM,s.set(o,t);var f=CM(l(o),l(t),n,r,a,s);return s.delete(o),f;case See:if(rk)return rk.call(o)==rk.call(t)}return!1}function $te(o,t,i,n,r,a){var s=i&wv,l=sM(o),c=l.length,d=sM(t),f=d.length;if(c!=f&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in t:xa.call(t,p)))return!1}var m=a.get(o);if(m&&a.get(t))return m==t;var v=!0;a.set(o,t),a.set(t,o);for(var b=s;++h<c;){p=l[h];var x=o[p],k=t[p];if(n)var z=s?n(k,x,p,t,o,a):n(x,k,p,o,t,a);if(!(z===void 0?x===k||r(x,k,i,n,a):z)){v=!1;break}b||(b=p=="constructor")}if(v&&!b){var E=o.constructor,A=t.constructor;E!=A&&"constructor"in o&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof A=="function"&&A instanceof A)&&(v=!1)}return a.delete(o),a.delete(t),v}function sM(o){return Lte(o,Yte,Fte)}function zv(o,t){var i=o.__data__;return Hte(t)?i[typeof t=="string"?"string":"hash"]:i.map}function Uf(o,t){var i=Gee(o,t);return Pte(i)?i:void 0}function Ite(o){var t=xa.call(o,Bc),i=o[Bc];try{o[Bc]=void 0;var n=!0}catch(a){}var r=kM.call(o);return n&&(t?o[Bc]=i:delete o[Bc]),r}var Fte=rM?function(o){return o==null?[]:(o=Object(o),Hee(rM(o),function(t){return _M.call(o,t)}))}:Xte,yl=pp;(sk&&yl(new sk(new ArrayBuffer(1)))!=bv||fp&&yl(new fp)!=mv||lk&&yl(lk.resolve())!=JT||ck&&yl(new ck)!=gv||dk&&yl(new dk)!=ak)&&(yl=function(o){var t=pp(o),i=t==jf?o.constructor:void 0,n=i?Vc(i):"";if(n)switch(n){case nte:return bv;case rte:return mv;case ote:return JT;case ate:return gv;case ste:return ak}return t});function Nte(o,t){return t=t==null?cM:t,!!t&&(typeof o=="number"||Fee.test(o))&&o>-1&&o%1==0&&o<t}function Hte(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null}function Bte(o){return!!tM&&tM in o}function Wte(o){var t=o&&o.constructor,i=typeof t=="function"&&t.prototype||kv;return o===i}function jte(o){return kM.call(o)}function Vc(o){if(o!=null){try{return wM.call(o)}catch(t){}try{return o+""}catch(t){}}return""}function SM(o,t){return o===t||o!==o&&t!==t}var Vte=aM(function(){return arguments}())?aM:function(o){return up(o)&&xa.call(o,"callee")&&!_M.call(o,"callee")},xv=Array.isArray;function Ute(o){return o!=null&&EM(o.length)&&!AM(o)}var fk=tte||Kte;function Gte(o,t){return zM(o,t)}function AM(o){if(!TM(o))return!1;var t=pp(o);return t==uM||t==_ee||t==kee||t==Cee}function EM(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=cM}function TM(o){var t=typeof o;return o!=null&&(t=="object"||t=="function")}function up(o){return o!=null&&typeof o=="object"}var MM=eM?Vee(eM):Rte;function Yte(o){return Ute(o)?Mte(o):Ote(o)}function Xte(){return[]}function Kte(){return!1}Vf.exports=Gte});var LM=Jo(mk=>{"use strict";Object.defineProperty(mk,"__esModule",{value:!0});var Jte=tk(),Qte=uk(),pk;(function(o){function t(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let c=Jte(s);l||(c=Object.keys(c).reduce((d,f)=>(c[f]!=null&&(d[f]=c[f]),d),{}));for(let d in a)a[d]!==void 0&&s[d]===void 0&&(c[d]=a[d]);return Object.keys(c).length>0?c:void 0}o.compose=t;function i(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((c,d)=>(Qte(a[d],s[d])||(c[d]=s[d]===void 0?null:s[d]),c),{});return Object.keys(l).length>0?l:void 0}o.diff=i;function n(a={},s={}){a=a||{};let l=Object.keys(s).reduce((c,d)=>(s[d]!==a[d]&&a[d]!==void 0&&(c[d]=s[d]),c),{});return Object.keys(a).reduce((c,d)=>(a[d]!==s[d]&&s[d]===void 0&&(c[d]=null),c),l)}o.invert=n;function r(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let c=Object.keys(s).reduce((d,f)=>(a[f]===void 0&&(d[f]=s[f]),d),{});return Object.keys(c).length>0?c:void 0}o.transform=r})(pk||(pk={}));mk.default=pk});var vk=Jo(bk=>{"use strict";Object.defineProperty(bk,"__esModule",{value:!0});var gk;(function(o){function t(i){return typeof i.delete=="number"?i.delete:typeof i.retain=="number"?i.retain:typeof i.retain=="object"&&i.retain!==null?1:typeof i.insert=="string"?i.insert.length:1}o.length=t})(gk||(gk={}));bk.default=gk});var PM=Jo(xk=>{"use strict";Object.defineProperty(xk,"__esModule",{value:!0});var qM=vk(),yk=class{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);let i=this.ops[this.index];if(i){let n=this.offset,r=qM.default.length(i);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,typeof i.delete=="number")return{delete:t};{let a={};return i.attributes&&(a.attributes=i.attributes),typeof i.retain=="number"?a.retain=t:typeof i.retain=="object"&&i.retain!==null?a.retain=i.retain:typeof i.insert=="string"?a.insert=i.insert.substr(n,t):a.insert=i.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?qM.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let t=this.offset,i=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=i,[n].concat(r)}}else return[]}};xk.default=yk});var $r=Jo((ws,Sv)=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.AttributeMap=ws.OpIterator=ws.Op=void 0;var Cv=cT(),Zte=tk(),wk=uk(),Uc=LM();ws.AttributeMap=Uc.default;var xs=vk();ws.Op=xs.default;var go=PM();ws.OpIterator=go.default;var eie="\0",RM=(o,t)=>{if(typeof o!="object"||o===null)throw new Error(`cannot retain a ${typeof o}`);if(typeof t!="object"||t===null)throw new Error(`cannot retain a ${typeof t}`);let i=Object.keys(o)[0];if(!i||i!==Object.keys(t)[0])throw new Error(`embed types not matched: ${i} != ${Object.keys(t)[0]}`);return[i,o[i],t[i]]},ks=class o{constructor(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}static registerEmbed(t,i){this.handlers[t]=i}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){let i=this.handlers[t];if(!i)throw new Error(`no handlers for embed type "${t}"`);return i}insert(t,i){let n={};return typeof t=="string"&&t.length===0?this:(n.insert=t,i!=null&&typeof i=="object"&&Object.keys(i).length>0&&(n.attributes=i),this.push(n))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,i){if(typeof t=="number"&&t<=0)return this;let n={retain:t};return i!=null&&typeof i=="object"&&Object.keys(i).length>0&&(n.attributes=i),this.push(n)}push(t){let i=this.ops.length,n=this.ops[i-1];if(t=Zte(t),typeof n=="object"){if(typeof t.delete=="number"&&typeof n.delete=="number")return this.ops[i-1]={delete:n.delete+t.delete},this;if(typeof n.delete=="number"&&t.insert!=null&&(i-=1,n=this.ops[i-1],typeof n!="object"))return this.ops.unshift(t),this;if(wk(t.attributes,n.attributes)){if(typeof t.insert=="string"&&typeof n.insert=="string")return this.ops[i-1]={insert:n.insert+t.insert},typeof t.attributes=="object"&&(this.ops[i-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof n.retain=="number")return this.ops[i-1]={retain:n.retain+t.retain},typeof t.attributes=="object"&&(this.ops[i-1].attributes=t.attributes),this}}return i===this.ops.length?this.ops.push(t):this.ops.splice(i,0,t),this}chop(){let t=this.ops[this.ops.length-1];return t&&typeof t.retain=="number"&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){let i=[],n=[];return this.forEach(r=>{(t(r)?i:n).push(r)}),[i,n]}reduce(t,i){return this.ops.reduce(t,i)}changeLength(){return this.reduce((t,i)=>i.insert?t+xs.default.length(i):i.delete?t-i.delete:t,0)}length(){return this.reduce((t,i)=>t+xs.default.length(i),0)}slice(t=0,i=1/0){let n=[],r=new go.default(this.ops),a=0;for(;a<i&&r.hasNext();){let s;a<t?s=r.next(t-a):(s=r.next(i-a),n.push(s)),a+=xs.default.length(s)}return new o(n)}compose(t){let i=new go.default(this.ops),n=new go.default(t.ops),r=[],a=n.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){let l=a.retain;for(;i.peekType()==="insert"&&i.peekLength()<=l;)l-=i.peekLength(),r.push(i.next());a.retain-l>0&&n.next(a.retain-l)}let s=new o(r);for(;i.hasNext()||n.hasNext();)if(n.peekType()==="insert")s.push(n.next());else if(i.peekType()==="delete")s.push(i.next());else{let l=Math.min(i.peekLength(),n.peekLength()),c=i.next(l),d=n.next(l);if(d.retain){let f={};if(typeof c.retain=="number")f.retain=typeof d.retain=="number"?l:d.retain;else if(typeof d.retain=="number")c.retain==null?f.insert=c.insert:f.retain=c.retain;else{let p=c.retain==null?"insert":"retain",[m,v,b]=RM(c[p],d.retain),x=o.getHandler(m);f[p]={[m]:x.compose(v,b,p==="retain")}}let h=Uc.default.compose(c.attributes,d.attributes,typeof c.retain=="number");if(h&&(f.attributes=h),s.push(f),!n.hasNext()&&wk(s.ops[s.ops.length-1],f)){let p=new o(i.rest());return s.concat(p).chop()}}else typeof d.delete=="number"&&(typeof c.retain=="number"||typeof c.retain=="object"&&c.retain!==null)&&s.push(d)}return s.chop()}concat(t){let i=new o(this.ops.slice());return t.ops.length>0&&(i.push(t.ops[0]),i.ops=i.ops.concat(t.ops.slice(1))),i}diff(t,i){if(this.ops===t.ops)return new o;let n=[this,t].map(c=>c.map(d=>{if(d.insert!=null)return typeof d.insert=="string"?d.insert:eie;let f=c===t?"on":"with";throw new Error("diff() called "+f+" non-document")}).join("")),r=new o,a=Cv(n[0],n[1],i,!0),s=new go.default(this.ops),l=new go.default(t.ops);return a.forEach(c=>{let d=c[1].length;for(;d>0;){let f=0;switch(c[0]){case Cv.INSERT:f=Math.min(l.peekLength(),d),r.push(l.next(f));break;case Cv.DELETE:f=Math.min(d,s.peekLength()),s.next(f),r.delete(f);break;case Cv.EQUAL:f=Math.min(s.peekLength(),l.peekLength(),d);let h=s.next(f),p=l.next(f);wk(h.insert,p.insert)?r.retain(f,Uc.default.diff(h.attributes,p.attributes)):r.push(p).delete(f);break}d-=f}}),r.chop()}eachLine(t,i=`
21
- `){let n=new go.default(this.ops),r=new o,a=0;for(;n.hasNext();){if(n.peekType()!=="insert")return;let s=n.peek(),l=xs.default.length(s)-n.peekLength(),c=typeof s.insert=="string"?s.insert.indexOf(i,l)-l:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(t(r,n.next(1).attributes||{},a)===!1)return;a+=1,r=new o}}r.length()>0&&t(r,{},a)}invert(t){let i=new o;return this.reduce((n,r)=>{if(r.insert)i.delete(xs.default.length(r));else{if(typeof r.retain=="number"&&r.attributes==null)return i.retain(r.retain),n+r.retain;if(r.delete||typeof r.retain=="number"){let a=r.delete||r.retain;return t.slice(n,n+a).forEach(l=>{r.delete?i.push(l):r.retain&&r.attributes&&i.retain(xs.default.length(l),Uc.default.invert(r.attributes,l.attributes))}),n+a}else if(typeof r.retain=="object"&&r.retain!==null){let a=t.slice(n,n+1),s=new go.default(a.ops).next(),[l,c,d]=RM(r.retain,s.insert),f=o.getHandler(l);return i.retain({[l]:f.invert(c,d)},Uc.default.invert(r.attributes,s.attributes)),n+1}}return n},0),i.chop()}transform(t,i=!1){if(i=!!i,typeof t=="number")return this.transformPosition(t,i);let n=t,r=new go.default(this.ops),a=new go.default(n.ops),s=new o;for(;r.hasNext()||a.hasNext();)if(r.peekType()==="insert"&&(i||a.peekType()!=="insert"))s.retain(xs.default.length(r.next()));else if(a.peekType()==="insert")s.push(a.next());else{let l=Math.min(r.peekLength(),a.peekLength()),c=r.next(l),d=a.next(l);if(c.delete)continue;if(d.delete)s.push(d);else{let f=c.retain,h=d.retain,p=typeof h=="object"&&h!==null?h:l;if(typeof f=="object"&&f!==null&&typeof h=="object"&&h!==null){let m=Object.keys(f)[0];if(m===Object.keys(h)[0]){let v=o.getHandler(m);v&&(p={[m]:v.transform(f[m],h[m],i)})}}s.retain(p,Uc.default.transform(c.attributes,d.attributes,i))}}return s.chop()}transformPosition(t,i=!1){i=!!i;let n=new go.default(this.ops),r=0;for(;n.hasNext()&&r<=t;){let a=n.peekLength(),s=n.peekType();if(n.next(),s==="delete"){t-=Math.min(a,t-r);continue}else s==="insert"&&(r<t||!i)&&(t+=a);r+=a}return t}};ks.Op=xs.default;ks.OpIterator=go.default;ks.AttributeMap=Uc.default;ks.handlers={};ws.default=ks;typeof Sv=="object"&&(Sv.exports=ks,Sv.exports.default=ks)});var $M=Jo((dCe,Sk)=>{"use strict";var iie=Object.prototype.hasOwnProperty,Yn="~";function gp(){}Object.create&&(gp.prototype=Object.create(null),new gp().__proto__||(Yn=!1));function nie(o,t,i){this.fn=o,this.context=t,this.once=i||!1}function DM(o,t,i,n,r){if(typeof i!="function")throw new TypeError("The listener must be a function");var a=new nie(i,n||o,r),s=Yn?Yn+t:t;return o._events[s]?o._events[s].fn?o._events[s]=[o._events[s],a]:o._events[s].push(a):(o._events[s]=a,o._eventsCount++),o}function Av(o,t){--o._eventsCount===0?o._events=new gp:delete o._events[t]}function Mn(){this._events=new gp,this._eventsCount=0}Mn.prototype.eventNames=function(){var t=[],i,n;if(this._eventsCount===0)return t;for(n in i=this._events)iie.call(i,n)&&t.push(Yn?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(i)):t};Mn.prototype.listeners=function(t){var i=Yn?Yn+t:t,n=this._events[i];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,a=n.length,s=new Array(a);r<a;r++)s[r]=n[r].fn;return s};Mn.prototype.listenerCount=function(t){var i=Yn?Yn+t:t,n=this._events[i];return n?n.fn?1:n.length:0};Mn.prototype.emit=function(t,i,n,r,a,s){var l=Yn?Yn+t:t;if(!this._events[l])return!1;var c=this._events[l],d=arguments.length,f,h;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,i),!0;case 3:return c.fn.call(c.context,i,n),!0;case 4:return c.fn.call(c.context,i,n,r),!0;case 5:return c.fn.call(c.context,i,n,r,a),!0;case 6:return c.fn.call(c.context,i,n,r,a,s),!0}for(h=1,f=new Array(d-1);h<d;h++)f[h-1]=arguments[h];c.fn.apply(c.context,f)}else{var p=c.length,m;for(h=0;h<p;h++)switch(c[h].once&&this.removeListener(t,c[h].fn,void 0,!0),d){case 1:c[h].fn.call(c[h].context);break;case 2:c[h].fn.call(c[h].context,i);break;case 3:c[h].fn.call(c[h].context,i,n);break;case 4:c[h].fn.call(c[h].context,i,n,r);break;default:if(!f)for(m=1,f=new Array(d-1);m<d;m++)f[m-1]=arguments[m];c[h].fn.apply(c[h].context,f)}}return!0};Mn.prototype.on=function(t,i,n){return DM(this,t,i,n,!1)};Mn.prototype.once=function(t,i,n){return DM(this,t,i,n,!0)};Mn.prototype.removeListener=function(t,i,n,r){var a=Yn?Yn+t:t;if(!this._events[a])return this;if(!i)return Av(this,a),this;var s=this._events[a];if(s.fn)s.fn===i&&(!r||s.once)&&(!n||s.context===n)&&Av(this,a);else{for(var l=0,c=[],d=s.length;l<d;l++)(s[l].fn!==i||r&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=c.length===1?c[0]:c:Av(this,a)}return this};Mn.prototype.removeAllListeners=function(t){var i;return t?(i=Yn?Yn+t:t,this._events[i]&&Av(this,i)):(this._events=new gp,this._eventsCount=0),this};Mn.prototype.off=Mn.prototype.removeListener;Mn.prototype.addListener=Mn.prototype.on;Mn.prefixed=Yn;Mn.EventEmitter=Mn;typeof Sk!="undefined"&&(Sk.exports=Mn)});var u_=Jo((Bp,h_)=>{(function(o,t){typeof Bp=="object"&&typeof h_=="object"?h_.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Bp=="object"?Bp.AirDatepicker=t():o.AirDatepicker=t()})(Bp,function(){return function(){"use strict";var o={d:function(X,R){for(var F in R)o.o(R,F)&&!o.o(X,F)&&Object.defineProperty(X,F,{enumerable:!0,get:R[F]})},o:function(X,R){return Object.prototype.hasOwnProperty.call(X,R)}},t={};o.d(t,{default:function(){return xe}});var i={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-"},n={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:i.days,minView:i.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 r(X){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof X=="string"?R.querySelector(X):X}function a(){let{tagName:X="div",className:R="",innerHtml:F="",id:D="",attrs:G={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=document.createElement(X);return R&&V.classList.add(...R.split(" ")),D&&(V.id=D),F&&(V.innerHTML=F),G&&s(V,G),V}function s(X,R){for(let[F,D]of Object.entries(R))D!==void 0&&X.setAttribute(F,D);return X}function l(X){return new Date(X.getFullYear(),X.getMonth()+1,0).getDate()}function c(X){let R=X.getHours(),{hours:F,dayPeriod:D}=d(R);return{year:X.getFullYear(),month:X.getMonth(),fullMonth:X.getMonth()+1<10?"0"+(X.getMonth()+1):X.getMonth()+1,date:X.getDate(),fullDate:X.getDate()<10?"0"+X.getDate():X.getDate(),day:X.getDay(),hours:R,fullHours:f(R),hours12:F,dayPeriod:D,fullHours12:f(F),minutes:X.getMinutes(),fullMinutes:X.getMinutes()<10?"0"+X.getMinutes():X.getMinutes()}}function d(X){return{dayPeriod:X>11?"pm":"am",hours:X%12==0?12:X%12}}function f(X){return X<10?"0"+X:X}function h(X){let R=10*Math.floor(X.getFullYear()/10);return[R,R+9]}function p(){let X=[];for(var R=arguments.length,F=new Array(R),D=0;D<R;D++)F[D]=arguments[D];return F.forEach(G=>{if(typeof G=="object")for(let V in G)G[V]&&X.push(V);else G&&X.push(G)}),X.join(" ")}function m(X,R){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i.days;if(!X||!R)return!1;let D=c(X),G=c(R);return{[i.days]:D.date===G.date&&D.month===G.month&&D.year===G.year,[i.months]:D.month===G.month&&D.year===G.year,[i.years]:D.year===G.year}[F]}function v(X,R,F){let D=x(X,!1).getTime(),G=x(R,!1).getTime();return F?D>=G:D>G}function b(X,R){return!v(X,R,!0)}function x(X){let R=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=new Date(X.getTime());return typeof R!="boolean"||R||function(D){D.setHours(0,0,0,0)}(F),F}function k(X,R,F){X.length?X.forEach(D=>{D.addEventListener(R,F)}):X.addEventListener(R,F)}function z(X,R){return!(!X||X===document||X instanceof DocumentFragment)&&(X.matches(R)?X:z(X.parentNode,R))}function E(X,R,F){return X>F?F:X<R?R:X}function A(X){for(var R=arguments.length,F=new Array(R>1?R-1:0),D=1;D<R;D++)F[D-1]=arguments[D];return F.filter(G=>G).forEach(G=>{for(let[V,W]of Object.entries(G))if(W!==void 0&&W.toString()==="[object Object]"){let re=X[V]!==void 0?X[V].toString():void 0,fe=W.toString(),Ee=Array.isArray(W)?[]:{};X[V]=X[V]?re!==fe?Ee:X[V]:Ee,A(X[V],W)}else X[V]=W}),X}function C(X){let R=X;return X instanceof Date||(typeof X=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(X)&&(X+="T00:00:00"),R=new Date(X)),isNaN(R.getTime())&&(console.log(`Unable to convert value "${X}" to Date object`),R=!1),R}function L(X){let R="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+R+")("+X+")($|<|"+R+")","g")}function M(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}class P{constructor(){let{type:R,date:F,dp:D,opts:G,body:V}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};M(this,"focus",()=>{this.$cell.classList.add("-focus-"),this.focused=!0}),M(this,"removeFocus",()=>{this.$cell.classList.remove("-focus-"),this.focused=!1}),M(this,"select",()=>{this.$cell.classList.add("-selected-"),this.selected=!0}),M(this,"removeSelect",()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1}),M(this,"onChangeSelectedDate",()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())}),M(this,"onChangeFocusDate",W=>{if(!W)return void(this.focused&&this.removeFocus());let re=m(W,this.date,this.type);re?this.focus():!re&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()}),M(this,"render",()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell)),this.type=R,this.singleType=this.type.slice(0,-1),this.date=F,this.dp=D,this.opts=G,this.body=V,this.customData=!1,this.init()}init(){var R;let{onRenderCell:F}=this.opts;F&&(this.customData=F({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(R=this.customData)!==null&&R!==void 0&&R.disabled&&this.dp.disableDate(this.date)}_bindDatepickerEvents(){this.dp.on(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(i.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(i.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var R;let{year:F,month:D,date:G}=c(this.date),V=((R=this.customData)===null||R===void 0?void 0:R.attrs)||{};this.$cell=a({attrs:Ce({"data-year":F,"data-month":D,"data-date":G},V)}),this.$cell.adpCell=this}_getClassName(){var R;let F=new Date,{selectOtherMonths:D,selectOtherYears:G}=this.opts,{minDate:V,maxDate:W,isDateDisabled:re}=this.dp,{day:fe}=c(this.date),Ee=this._isOutOfMinMaxRange(),Ie=re(this.date),qe=p("air-datepicker-cell",`-${this.singleType}-`,{"-current-":m(F,this.date,this.type),"-min-date-":V&&m(V,this.date,this.type),"-max-date-":W&&m(W,this.date,this.type)}),je="";switch(this.type){case i.days:je=p({"-weekend-":this.dp.isWeekend(fe),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!D||Ee||Ie});break;case i.months:je=p({"-disabled-":Ee});break;case i.years:je=p({"-other-decade-":this.isOtherDecade,"-disabled-":Ee||this.isOtherDecade&&!G})}return p(qe,je,(R=this.customData)===null||R===void 0?void 0:R.classes).split(" ")}_getHtml(){var R;let{year:F,month:D,date:G}=c(this.date),{showOtherMonths:V,showOtherYears:W}=this.opts;if((R=this.customData)!==null&&R!==void 0&&R.html)return this.customData.html;switch(this.type){case i.days:return!V&&this.isOtherMonth?"":G;case i.months:return this.dp.locale[this.opts.monthsField][D];case i.years:return!W&&this.isOtherDecade?"":F}}_isOutOfMinMaxRange(){let{minDate:R,maxDate:F}=this.dp,{type:D,date:G}=this,{month:V,year:W,date:re}=c(G),fe=D===i.days,Ee=D===i.years,Ie=!!R&&new Date(W,Ee?R.getMonth():V,fe?re:R.getDate()),qe=!!F&&new Date(W,Ee?F.getMonth():V,fe?re:F.getDate());return R&&F?b(Ie,R)||v(qe,F):R?b(Ie,R):F?v(qe,F):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:R,focusDate:F,rangeDateTo:D,rangeDateFrom:G}=this.dp,V=R.length;if(!V)return;let W=G,re=D;if(V===1&&F){let je=v(F,R[0]);W=je?R[0]:F,re=je?F:R[0]}let fe=p({"-in-range-":W&&re&&(Ee=this.date,Ie=W,qe=re,v(Ee,Ie)&&b(Ee,qe)),"-range-from-":W&&m(this.date,W,this.type),"-range-to-":re&&m(this.date,re,this.type)});var Ee,Ie,qe;this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),fe&&this.$cell.classList.add(...fe.split(" "))}_handleSelectedStatus(){let R=this.dp._checkIfDateIsSelected(this.date,this.type);R?this.select():!R&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){m(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 I(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}let N={[i.days]:`<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -${i.days}-"></div>`,[i.months]:`<div class="air-datepicker-body--cells -${i.months}-"></div>`,[i.years]:`<div class="air-datepicker-body--cells -${i.years}-"></div>`},B=".air-datepicker-cell";class U{constructor(R){let{dp:F,type:D,opts:G}=R;I(this,"handleClick",V=>{let W=V.target.closest(B).adpCell;if(W.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let re=this.dp._checkIfDateIsSelected(W.date,W.type);re?this.dp._handleAlreadySelectedDates(re,W.date):this.dp.selectDate(W.date)}),I(this,"handleDayNameClick",V=>{let W=V.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(W),datepicker:this.dp})}),I(this,"onChangeCurrentView",V=>{V!==this.type?this.hide():(this.show(),this.render())}),I(this,"onMouseOverCell",V=>{let W=z(V.target,B);this.dp.setFocusDate(!!W&&W.adpCell.date)}),I(this,"onMouseOutCell",()=>{this.dp.setFocusDate(!1)}),I(this,"onClickBody",V=>{let{onClickDayName:W}=this.opts,re=V.target;re.closest(B)&&this.handleClick(V),W&&re.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(V)}),I(this,"onMouseDown",V=>{this.pressed=!0;let W=z(V.target,B),re=W&&W.adpCell;m(re.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),m(re.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)}),I(this,"onMouseMove",V=>{if(!this.pressed||!this.dp.isMinViewReached)return;V.preventDefault();let W=z(V.target,B),re=W&&W.adpCell,{selectedDates:fe,rangeDateTo:Ee,rangeDateFrom:Ie}=this.dp;if(!re||re.isDisabled)return;let{date:qe}=re;if(fe.length===2){if(this.rangeFromFocused&&!v(qe,Ee)){let{hours:je,minutes:Pt}=c(Ie);qe.setHours(je),qe.setMinutes(Pt),this.dp.rangeDateFrom=qe,this.dp.replaceDate(Ie,qe)}if(this.rangeToFocused&&!b(qe,Ie)){let{hours:je,minutes:Pt}=c(Ee);qe.setHours(je),qe.setMinutes(Pt),this.dp.rangeDateTo=qe,this.dp.replaceDate(Ee,qe)}}}),I(this,"onMouseUp",()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1}),I(this,"onChangeViewDate",(V,W)=>{if(!this.isVisible)return;let re=h(V),fe=h(W);switch(this.dp.currentView){case i.days:if(m(V,W,i.months))return;break;case i.months:if(m(V,W,i.years))return;break;case i.years:if(re[0]===fe[0]&&re[1]===fe[1])return}this.render()}),I(this,"render",()=>{this.destroyCells(),this._generateCells(),this.cells.forEach(V=>{this.$cells.appendChild(V.render())})}),this.dp=F,this.type=D,this.opts=G,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===i.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:R,dynamicRange:F}=this.opts;k(this.$el,"mouseover",this.onMouseOverCell),k(this.$el,"mouseout",this.onMouseOutCell),k(this.$el,"click",this.onClickBody),R&&F&&(k(this.$el,"mousedown",this.onMouseDown),k(this.$el,"mousemove",this.onMouseMove),k(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(i.eventChangeViewDate,this.onChangeViewDate),this.dp.on(i.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=a({className:`air-datepicker-body -${this.type}-`,innerHtml:N[this.type]}),this.$names=r(".air-datepicker-body--day-names",this.$el),this.$cells=r(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,F="",D=this.dp.isWeekend,{onClickDayName:G}=this.opts,V=R,W=0;for(;W<7;){let re=V%7;F+=`<div class="${p("air-datepicker-body--day-name",{[i.cssClassWeekend]:D(re),"-clickable-":!!G})}" data-day-index='${re}'>${this.dp.locale.daysMin[re]}</div>`,W++,V++}return F}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(R){let{type:F,dp:D,opts:G}=this;return new P({type:F,dp:D,opts:G,date:R,body:this})}_generateCells(){U.getDatesFunction(this.type)(this.dp,R=>{this.cells.push(this._generateCell(R))})}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach(R=>R.destroy()),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(i.eventChangeViewDate,this.onChangeViewDate),this.dp.off(i.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(R,F){let{viewDate:D,opts:{fixedHeight:G},locale:{firstDay:V}}=R,W=l(D),{year:re,month:fe}=c(D),Ee=new Date(re,fe,1),Ie=new Date(re,fe,W),qe=Ee.getDay()-V,je=6-Ie.getDay()+V;qe=qe<0?qe+7:qe,je=je>6?je-7:je;let Pt=function(So,Il){let{year:qs,month:sh,date:lh}=c(So);return new Date(qs,sh,lh-Il)}(Ee,qe),on=W+qe+je,ri=Pt.getDate(),{year:rd,month:zo}=c(Pt),Qn=0;G&&(on=42);let Co=[];for(;Qn<on;){let So=new Date(rd,zo,ri+Qn);F&&F(So),Co.push(So),Qn++}return Co}static getMonthsDates(R,F){let{year:D}=R.parsedViewDate,G=0,V=[];for(;G<12;){let W=new Date(D,G);V.push(W),F&&F(W),G++}return V}static getYearsDates(R,F){let D=h(R.viewDate),G=D[0]-1,V=D[1]+1,W=G,re=[];for(;W<=V;){let fe=new Date(W,0);re.push(fe),F&&F(fe),W++}return re}static getDatesFunction(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.days;return{[i.days]:U.getDaysDates,[i.months]:U.getMonthsDates,[i.years]:U.getYearsDates}[R]}}function ee(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}class ae{constructor(R){let{dp:F,opts:D}=R;ee(this,"onClickNav",G=>{let V=z(G.target,".air-datepicker-nav--action");if(!V)return;let W=V.dataset.action;this.dp[W]()}),ee(this,"onChangeViewDate",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),ee(this,"onChangeCurrentView",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),ee(this,"onClickNavTitle",()=>{this.dp.isFinalView||this.dp.up()}),ee(this,"update",()=>{let{prevHtml:G,nextHtml:V}=this.opts;this.$prev.innerHTML=G,this.$next.innerHTML=V,this._resetNavStatus(),this.render(),this.handleNavStatus()}),ee(this,"renderDelay",()=>{setTimeout(this.render)}),ee(this,"render",()=>{this.$title.innerHTML=this._getTitle(),function(G,V){for(let W in V)V[W]?G.classList.add(W):G.classList.remove(W)}(this.$title,{"-disabled-":this.dp.isFinalView})}),this.dp=F,this.opts=D,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=r(".air-datepicker-nav--title",this.$el),this.$prev=r('[data-action="prev"]',this.$el),this.$next=r('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(i.eventChangeViewDate,this.onChangeViewDate),this.dp.on(i.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(i.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(i.eventChangeTime,this.render))}destroy(){this.dp.off(i.eventChangeViewDate,this.onChangeViewDate),this.dp.off(i.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(i.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(i.eventChangeTime,this.render))}_createElement(){this.$el=a({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:R,opts:F}=this,D=F.navTitles[R.currentView];return typeof D=="function"?D(R):R.formatDate(R.viewDate,D)}handleNavStatus(){let{disableNavWhenOutOfRange:R}=this.opts,{minDate:F,maxDate:D}=this.dp;if(!F&&!D||!R)return;let{year:G,month:V}=this.dp.parsedViewDate,W=!!F&&c(F),re=!!D&&c(D);switch(this.dp.currentView){case i.days:F&&W.month>=V&&W.year>=G&&this._disableNav("prev"),D&&re.month<=V&&re.year<=G&&this._disableNav("next");break;case i.months:F&&W.year>=G&&this._disableNav("prev"),D&&re.year<=G&&this._disableNav("next");break;case i.years:{let fe=h(this.dp.viewDate);F&&W.year>=fe[0]&&this._disableNav("prev"),D&&re.year<=fe[1]&&this._disableNav("next");break}}}_disableNav(R){r('[data-action="'+R+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(R){for(var F=arguments.length,D=new Array(F>1?F-1:0),G=1;G<F;G++)D[G-1]=arguments[G];R.length?R.forEach(V=>{V.classList.remove(...D)}):R.classList.remove(...D)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:R,nextHtml:F}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${R}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${F}</div>`}get isNavIsFunction(){let{navTitles:R}=this.opts;return Object.keys(R).find(F=>typeof R[F]=="function")}}var oe={today:{content:X=>X.locale.today,onClick:X=>X.setViewDate(new Date)},clear:{content:X=>X.locale.clear,onClick:X=>X.clear()}};class se{constructor(R){let{dp:F,opts:D}=R;this.dp=F,this.opts=D,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:R}=this.opts;Array.isArray(R)||(R=[R]),R.forEach(F=>{let D=F;typeof F=="string"&&oe[F]&&(D=oe[F]);let G=this.createButton(D);D.onClick&&this.attachEventToButton(G,D.onClick),this.$el.appendChild(G)})}attachEventToButton(R,F){R.addEventListener("click",()=>{F(this.dp)})}createButton(R){let{content:F,className:D,tagName:G="button",attrs:V={}}=R;return a({tagName:G,innerHtml:`<span tabindex='-1'>${typeof F=="function"?F(this.dp):F}</span>`,className:p("air-datepicker-button",D),attrs:V})}render(){this.generateButtons()}}function de(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}class _e{constructor(){let{opts:R,dp:F}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(this,"toggleTimepickerIsActive",G=>{this.dp.timepickerIsActive=G}),de(this,"onChangeSelectedDate",G=>{let{date:V,updateTime:W=!1}=G;V&&(this.setMinMaxTime(V),this.setCurrentTime(!!W&&V),this.addTimeToDate(V))}),de(this,"onChangeLastSelectedDate",G=>{G&&(this.setTime(G),this.render())}),de(this,"onChangeInputRange",G=>{let V=G.target;this[V.getAttribute("name")]=V.value,this.updateText(),this.dp.trigger(i.eventChangeTime,{hours:this.hours,minutes:this.minutes})}),de(this,"onMouseEnterLeave",G=>{let V=G.target.getAttribute("name"),W=this.$minutesText;V==="hours"&&(W=this.$hoursText),W.classList.toggle("-focus-")}),de(this,"onFocus",()=>{this.toggleTimepickerIsActive(!0)}),de(this,"onBlur",()=>{this.toggleTimepickerIsActive(!1)}),this.opts=R,this.dp=F;let{timeFormat:D}=this.dp.locale;D&&(D.match(L("h"))||D.match(L("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(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(i.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let R="input";navigator.userAgent.match(/trident/gi)&&(R="change"),k(this.$ranges,R,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:p("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(i.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:R,hours:F,displayHours:D,minutes:G,minHours:V,minMinutes:W,maxHours:re,maxMinutes:fe,dayPeriod:Ee,opts:{hoursStep:Ie,minutesStep:qe}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">${f(D)}</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">${f(G)}</span> `+(R?`<span class='air-datepicker-time--current-ampm'>${Ee}</span>`:"")+`</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row"> <input type="range" name="hours" value="${F}" min="${V}" max="${re}" step="${Ie}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${G}" min="${W}" max="${fe}" step="${qe}"/> </div></div>`}defineDOM(){let R=F=>r(F,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=R('[name="hours"]'),this.$minutes=R('[name="minutes"]'),this.$hoursText=R(".air-datepicker-time--current-hours"),this.$minutesText=R(".air-datepicker-time--current-minutes"),this.$ampm=R(".air-datepicker-time--current-ampm")}setTime(R){this.setMinMaxTime(R),this.setCurrentTime(R)}addTimeToDate(R){R&&(R.setHours(this.hours),R.setMinutes(this.minutes))}setMinMaxTime(R){if(this.setMinMaxTimeFromOptions(),R){let{minDate:F,maxDate:D}=this.dp;F&&m(R,F)&&this.setMinTimeFromMinDate(F),D&&m(R,D)&&this.setMaxTimeFromMaxDate(D)}}setCurrentTime(R){let{hours:F,minutes:D}=R?c(R):this;this.hours=E(F,this.minHours,this.maxHours),this.minutes=E(D,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:R,minMinutes:F,maxHours:D,maxMinutes:G}=this.opts;this.minHours=E(R,0,23),this.minMinutes=E(F,0,59),this.maxHours=E(D,0,23),this.maxMinutes=E(G,0,59)}setMinTimeFromMinDate(R){let{lastSelectedDate:F}=this.dp;this.minHours=R.getHours(),F&&F.getHours()>R.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=R.getMinutes()}setMaxTimeFromMaxDate(R){let{lastSelectedDate:F}=this.dp;this.maxHours=R.getHours(),F&&F.getHours()<R.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=R.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=f(this.displayHours),this.$minutesText.innerHTML=f(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)}set hours(R){this._hours=R;let{hours:F,dayPeriod:D}=d(R);this.displayHours=this.ampm?F:R,this.dayPeriod=D}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function ve(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}class Ae{constructor(R){let{dp:F,opts:D}=R;ve(this,"pressedKeys",new Set),ve(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],G=>G.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],G=>G.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],G=>G.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],G=>G.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],G=>G.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],G=>G.year-=10],[["Control","Shift","ArrowUp"],(G,V)=>V.up()]])),ve(this,"handleHotKey",G=>{let V=this.hotKeys.get(G),W=c(this.getInitialFocusDate());V(W,this.dp);let{year:re,month:fe,date:Ee}=W,Ie=l(new Date(re,fe));Ie<Ee&&(Ee=Ie);let qe=this.dp.getClampedDate(new Date(re,fe,Ee));this.dp.setFocusDate(qe,{viewDateTransition:!0})}),ve(this,"isHotKeyPressed",()=>{let G=!1,V=this.pressedKeys.size,W=re=>this.pressedKeys.has(re);for(let[re]of this.hotKeys){if(G)break;if(Array.isArray(re[0]))re.forEach(fe=>{G||V!==fe.length||(G=fe.every(W)&&re)});else{if(V!==re.length)continue;G=re.every(W)&&re}}return G}),ve(this,"isArrow",G=>G>=37&&G<=40),ve(this,"onKeyDown",G=>{let{key:V,which:W}=G,{dp:re,dp:{focusDate:fe},opts:Ee}=this;this.registerKey(V);let Ie=this.isHotKeyPressed();if(Ie)return G.preventDefault(),void this.handleHotKey(Ie);if(this.isArrow(W))return G.preventDefault(),void this.focusNextCell(V);if(V==="Enter"){if(re.currentView!==Ee.minView)return void re.down();if(fe){let qe=re._checkIfDateIsSelected(fe);return void(qe?re._handleAlreadySelectedDates(qe,fe):re.selectDate(fe))}}V==="Escape"&&this.dp.hide()}),ve(this,"onKeyUp",G=>{this.removeKey(G.key)}),this.dp=F,this.opts=D,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:R}=this.dp;R.addEventListener("keydown",this.onKeyDown),R.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:R}=this.dp;R.removeEventListener("keydown",this.onKeyDown),R.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:R,currentView:F,selectedDates:D,parsedViewDate:{year:G,month:V}}=this.dp,W=R||D[D.length-1];if(!W)switch(F){case i.days:W=new Date(G,V,new Date().getDate());break;case i.months:W=new Date(G,V,1);break;case i.years:W=new Date(G,0,1)}return W}focusNextCell(R){let F=this.getInitialFocusDate(),{currentView:D}=this.dp,{days:G,months:V,years:W}=i,re=c(F),fe=re.year,Ee=re.month,Ie=re.date;switch(R){case"ArrowLeft":D===G&&(Ie-=1),D===V&&(Ee-=1),D===W&&(fe-=1);break;case"ArrowUp":D===G&&(Ie-=7),D===V&&(Ee-=3),D===W&&(fe-=4);break;case"ArrowRight":D===G&&(Ie+=1),D===V&&(Ee+=1),D===W&&(fe+=1);break;case"ArrowDown":D===G&&(Ie+=7),D===V&&(Ee+=3),D===W&&(fe+=4)}let qe=this.dp.getClampedDate(new Date(fe,Ee,Ie));this.dp.setFocusDate(qe,{viewDateTransition:!0})}registerKey(R){this.pressedKeys.add(R)}removeKey(R){this.pressedKeys.delete(R)}}let Le={on(X,R){this.__events||(this.__events={}),this.__events[X]?this.__events[X].push(R):this.__events[X]=[R]},off(X,R){this.__events&&this.__events[X]&&(this.__events[X]=this.__events[X].filter(F=>F!==R))},removeAllEvents(){this.__events={}},trigger(X){for(var R=arguments.length,F=new Array(R>1?R-1:0),D=1;D<R;D++)F[D-1]=arguments[D];this.__events&&this.__events[X]&&this.__events[X].forEach(G=>{G(...F)})}};function Se(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}let Ze="",Ne="",Re=!1;class xe{static buildGlobalContainer(R){Re=!0,Ze=a({className:R,id:R}),r("body").appendChild(Ze)}constructor(R,F){var D=this;if(Se(this,"viewIndexes",[i.days,i.months,i.years]),Se(this,"next",()=>{let{year:W,month:re}=this.parsedViewDate;switch(this.currentView){case i.days:this.setViewDate(new Date(W,re+1,1));break;case i.months:this.setViewDate(new Date(W+1,re,1));break;case i.years:this.setViewDate(new Date(W+10,0,1))}}),Se(this,"prev",()=>{let{year:W,month:re}=this.parsedViewDate;switch(this.currentView){case i.days:this.setViewDate(new Date(W,re-1,1));break;case i.months:this.setViewDate(new Date(W-1,re,1));break;case i.years:this.setViewDate(new Date(W-10,0,1))}}),Se(this,"_finishHide",()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)}),Se(this,"setPosition",function(W){let re=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(W=W||D.opts.position)=="function")return void(D.customHide=W({$datepicker:D.$datepicker,$target:D.$el,$pointer:D.$pointer,isViewChange:re,done:D._finishHide}));let fe,Ee,{isMobile:Ie}=D.opts,qe=D.$el.getBoundingClientRect(),je=D.$el.getBoundingClientRect(),Pt=D.$datepicker.offsetParent,on=D.$el.offsetParent,ri=D.$datepicker.getBoundingClientRect(),rd=W.split(" "),zo=window.scrollY,Qn=window.scrollX,Co=D.opts.offset,So=rd[0],Il=rd[1];if(Ie)D.$datepicker.style.cssText="left: 50%; top: 50%";else{if(Pt===on&&Pt!==document.body&&(je={top:D.$el.offsetTop,left:D.$el.offsetLeft,width:qe.width,height:D.$el.offsetHeight},zo=0,Qn=0),Pt!==on&&Pt!==document.body){let qs=Pt.getBoundingClientRect();je={top:qe.top-qs.top,left:qe.left-qs.left,width:qe.width,height:qe.height},zo=0,Qn=0}switch(So){case"top":fe=je.top-ri.height-Co;break;case"right":Ee=je.left+je.width+Co;break;case"bottom":fe=je.top+je.height+Co;break;case"left":Ee=je.left-ri.width-Co}switch(Il){case"top":fe=je.top;break;case"right":Ee=je.left+je.width-ri.width;break;case"bottom":fe=je.top+je.height-ri.height;break;case"left":Ee=je.left;break;case"center":/left|right/.test(So)?fe=je.top+je.height/2-ri.height/2:Ee=je.left+je.width/2-ri.width/2}D.$datepicker.style.cssText=`left: ${Ee+Qn}px; top: ${fe+zo}px`}}),Se(this,"_setInputValue",()=>{let{opts:W,$altField:re,locale:{dateFormat:fe}}=this,{altFieldDateFormat:Ee,altField:Ie}=W;Ie&&re&&(re.value=this._getInputValue(Ee)),this.$el.value=this._getInputValue(fe)}),Se(this,"_getInputValue",W=>{let{selectedDates:re,opts:fe}=this,{multipleDates:Ee,multipleDatesSeparator:Ie}=fe;if(!re.length)return"";let qe=typeof W=="function",je=qe?W(Ee?re:re[0]):re.map(Pt=>this.formatDate(Pt,W));return je=qe?je:je.join(Ie),je}),Se(this,"_checkIfDateIsSelected",function(W){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.days,fe=!1;return D.selectedDates.some(Ee=>{let Ie=m(W,Ee,re);return fe=Ie&&Ee,Ie}),fe}),Se(this,"_scheduleCallAfterTransition",W=>{this._cancelScheduledCall(),W&&W(!1),this._onTransitionEnd=()=>{W&&W(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})}),Se(this,"_cancelScheduledCall",()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)}),Se(this,"setViewDate",W=>{if(!((W=C(W))instanceof Date)||m(W,this.viewDate))return;let re=this.viewDate;this.viewDate=W;let{onChangeViewDate:fe}=this.opts;if(fe){let{month:Ee,year:Ie}=this.parsedViewDate;fe({month:Ee,year:Ie,decade:this.curDecade})}this.trigger(i.eventChangeViewDate,W,re)}),Se(this,"setFocusDate",function(W){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!W||(W=C(W))instanceof Date)&&(D.focusDate=W,D.trigger(i.eventChangeFocusDate,W,re))}),Se(this,"setCurrentView",function(W){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.viewIndexes.includes(W)){if(D.currentView=W,D.elIsInput&&D.visible&&D.setPosition(void 0,!0),D.trigger(i.eventChangeCurrentView,W),!D.views[W]){let fe=D.views[W]=new U({dp:D,opts:D.opts,type:W});D.shouldUpdateDOM&&D.$content.appendChild(fe.$el)}D.opts.onChangeView&&!re.silent&&D.opts.onChangeView(W)}}),Se(this,"_updateLastSelectedDate",W=>{this.lastSelectedDate=W,this.trigger(i.eventChangeLastSelectedDate,W)}),Se(this,"destroy",()=>{if(this.isDestroyed)return;let{showEvent:W,isMobile:re}=this.opts,fe=this.$datepicker.parentNode;fe&&fe.removeChild(this.$datepicker),this.$el.removeEventListener(W,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),re&&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}),Se(this,"update",function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=A({},D.opts),{silent:Ee}=re;A(D.opts,W);let{timepicker:Ie,buttons:qe,range:je,selectedDates:Pt,isMobile:on}=D.opts,ri=D.visible||D.treatAsInline;D._createMinMaxDates(),D._limitViewDateByMaxMinDates(),D._handleLocale(),Pt&&(D.selectedDates=[],D.selectDate(Pt,{silent:Ee})),W.view&&D.setCurrentView(W.view,{silent:Ee}),D._setInputValue(),fe.range&&!je?(D.rangeDateTo=!1,D.rangeDateFrom=!1):!fe.range&&je&&D.selectedDates.length&&(D.rangeDateFrom=D.selectedDates[0],D.rangeDateTo=D.selectedDates[1]),fe.timepicker&&!Ie?(ri&&D.timepicker.destroy(),D.timepicker=!1,D.$timepicker.parentNode.removeChild(D.$timepicker)):!fe.timepicker&&Ie&&D._addTimepicker(),!fe.buttons&&qe?D._addButtons():fe.buttons&&!qe?(D.buttons.destroy(),D.$buttons.parentNode.removeChild(D.$buttons)):ri&&fe.buttons&&qe&&D.buttons.clearHtml().render(),!fe.isMobile&&on?(D.treatAsInline||Ne||D._createMobileOverlay(),D._addMobileAttributes(),D.visible&&D._showMobileOverlay()):fe.isMobile&&!on&&(D._removeMobileAttributes(),D.visible&&(Ne.classList.remove("-active-"),typeof D.opts.position!="function"&&D.setPosition())),ri&&(D.nav.update(),D.views[D.currentView].render(),D.currentView===i.days&&D.views[D.currentView].renderDayNames())}),Se(this,"disableDate",(W,re)=>{(Array.isArray(W)?W:[W]).forEach(fe=>{let Ee=C(fe);if(!Ee)return;let Ie=re?"delete":"add";this.disabledDates[Ie](this.formatDate(Ee,"yyyy-MM-dd"));let qe=this.getCell(Ee,this.currentViewSingular);qe&&qe.adpCell.render()},[])}),Se(this,"enableDate",W=>{this.disableDate(W,!0)}),Se(this,"isDateDisabled",W=>{let re=C(W);return this.disabledDates.has(this.formatDate(re,"yyyy-MM-dd"))}),Se(this,"isOtherMonth",W=>{let{month:re}=c(W);return re!==this.parsedViewDate.month}),Se(this,"isOtherYear",W=>{let{year:re}=c(W);return re!==this.parsedViewDate.year}),Se(this,"isOtherDecade",W=>{let{year:re}=c(W),[fe,Ee]=h(this.viewDate);return re<fe||re>Ee}),Se(this,"_onChangeSelectedDate",W=>{let{silent:re}=W;setTimeout(()=>{this._setInputValue(),this.opts.onSelect&&!re&&this._triggerOnSelect()})}),Se(this,"_onChangeFocusedDate",function(W){let{viewDateTransition:re}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!W)return;let fe=!1;re&&(fe=D.isOtherMonth(W)||D.isOtherYear(W)||D.isOtherDecade(W)),fe&&D.setViewDate(W),D.opts.onFocus&&D.opts.onFocus({datepicker:D,date:W})}),Se(this,"_onChangeTime",W=>{let{hours:re,minutes:fe}=W,Ee=new Date,{lastSelectedDate:Ie,opts:{onSelect:qe}}=this,je=Ie;Ie||(je=Ee);let Pt=this.getCell(je,this.currentViewSingular),on=Pt&&Pt.adpCell;on&&on.isDisabled||(je.setHours(re),je.setMinutes(fe),Ie?(this._setInputValue(),qe&&this._triggerOnSelect()):this.selectDate(je))}),Se(this,"_onFocus",W=>{this.visible||this.show()}),Se(this,"_onBlur",W=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()}),Se(this,"_onMouseDown",W=>{this.inFocus=!0}),Se(this,"_onMouseUp",W=>{this.inFocus=!1,this.$el.focus()}),Se(this,"_onResize",()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()}),Se(this,"_onClickOverlay",()=>{this.visible&&this.hide()}),Se(this,"getViewDates",function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.days;return U.getDatesFunction(W)(D)}),Se(this,"isWeekend",W=>this.opts.weekends.includes(W)),Se(this,"getClampedDate",W=>{let{minDate:re,maxDate:fe}=this,Ee=W;return fe&&v(W,fe)?Ee=fe:re&&b(W,re)&&(Ee=re),Ee}),this.$el=r(R),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=A({},n,F),this.$customContainer=!!this.opts.container&&r(this.opts.container),this.$altField=r(this.opts.altField||!1);let{view:G,startDate:V}=this.opts;V||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=C(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=G,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:R,treatAsInline:F,opts:{inline:D,isMobile:G,selectedDates:V,keyboardNav:W,onlyTimepicker:re}}=this,fe=r("body");(!Re||Re&&Ze&&!fe.contains(Ze))&&!D&&this.elIsInput&&!this.$customContainer&&xe.buildGlobalContainer(xe.defaultGlobalContainerId),!G||Ne||F||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(D||this._bindEvents(),W&&!re&&(this.keyboardNav=new Ae({dp:this,opts:R}))),V&&this.selectDate(V,{silent:!0}),this.opts.visible&&!F&&this.show(),G&&!F&&this.$el.setAttribute("readonly",!0),F&&this._createComponents()}_createMobileOverlay(){Ne=a({className:"air-datepicker-overlay"}),Ze.appendChild(Ne)}_createComponents(){let{opts:R,treatAsInline:F,opts:{inline:D,buttons:G,timepicker:V,position:W,classes:re,onlyTimepicker:fe,isMobile:Ee}}=this;this._buildBaseHtml(),this.elIsInput&&(D||this._setPositionClasses(W)),!D&&this.elIsInput||this.$datepicker.classList.add("-inline-"),re&&this.$datepicker.classList.add(...re.split(" ")),fe&&this.$datepicker.classList.add("-only-timepicker-"),Ee&&!F&&this._addMobileAttributes(),this.views[this.currentView]=new U({dp:this,type:this.currentView,opts:R}),this.nav=new ae({dp:this,opts:R}),V&&this._addTimepicker(),G&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let R in this.views)this.views[R].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){Ne.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Ne.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:R,maxDate:F}=this.opts;this.minDate=!!R&&C(R),this.maxDate=!!F&&C(F)}_addTimepicker(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new _e({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 se({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(i.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(i.eventChangeFocusDate,this._onChangeFocusedDate),this.on(i.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:R}=this.opts;var F,D;this.elIsInput?R?(F=this.$datepicker,(D=this.$el).parentNode.insertBefore(F,D.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=r(".air-datepicker--content",this.$datepicker),this.$pointer=r(".air-datepicker--pointer",this.$datepicker),this.$nav=r(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:R,dateFormat:F,firstDay:D,timepicker:G,onlyTimepicker:V,timeFormat:W,dateTimeSeparator:re}=this.opts;var fe;this.locale=(fe=R,JSON.parse(JSON.stringify(fe))),F&&(this.locale.dateFormat=F),W!==void 0&&W!==""&&(this.locale.timeFormat=W);let{timeFormat:Ee}=this.locale;if(D!==""&&(this.locale.firstDay=D),G&&typeof F!="function"){let Ie=Ee?re:"";this.locale.dateFormat=[this.locale.dateFormat,Ee||""].join(Ie)}V&&typeof F!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(R){if(typeof R=="function")return void this.$datepicker.classList.add("-custom-position-");let F=(R=R.split(" "))[0],D=`air-datepicker -${F}-${R[1]}- -from-${F}-`;this.$datepicker.classList.add(...D.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:R,minDate:F,maxDate:D}=this;D&&v(R,D)&&this.setViewDate(D),F&&b(R,F)&&this.setViewDate(F)}formatDate(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,F=arguments.length>1?arguments[1]:void 0;if(R=C(R),!(R instanceof Date))return;let D=F,G=this.locale,V=c(R),W=V.dayPeriod,re=h(R),fe=xe.replacer,Ee={T:R.getTime(),m:V.minutes,mm:V.fullMinutes,h:V.hours12,hh:V.fullHours12,H:V.hours,HH:V.fullHours,aa:W,AA:W.toUpperCase(),E:G.daysShort[V.day],EEEE:G.days[V.day],d:V.date,dd:V.fullDate,M:V.month+1,MM:V.fullMonth,MMM:G.monthsShort[V.month],MMMM:G.months[V.month],yy:V.year.toString().slice(-2),yyyy:V.year,yyyy1:re[0],yyyy2:re[1]};for(let[Ie,qe]of Object.entries(Ee))D=fe(D,L(Ie),qe);return D}down(R){this._handleUpDownActions(R,"down")}up(R){this._handleUpDownActions(R,"up")}selectDate(R){let F,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:G,parsedViewDate:V,selectedDates:W}=this,{updateTime:re}=D,{moveToOtherMonthsOnSelect:fe,moveToOtherYearsOnSelect:Ee,multipleDates:Ie,range:qe,autoClose:je,onBeforeSelect:Pt}=this.opts,on=W.length;if(Array.isArray(R))return R.forEach(ri=>{this.selectDate(ri,D)}),new Promise(ri=>{setTimeout(ri)});if((R=C(R))instanceof Date){if(Pt&&!Pt({date:R,datepicker:this}))return Promise.resolve();if(G===i.days&&R.getMonth()!==V.month&&fe&&(F=new Date(R.getFullYear(),R.getMonth(),1)),G===i.years&&R.getFullYear()!==V.year&&Ee&&(F=new Date(R.getFullYear(),0,1)),F&&this.setViewDate(F),Ie&&!qe){if(on===Ie)return;this._checkIfDateIsSelected(R)||W.push(R)}else if(qe)switch(on){case 1:W.push(R),this.rangeDateTo||(this.rangeDateTo=R),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=R),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[R],this.rangeDateFrom=R,this.rangeDateTo="";break;default:this.selectedDates=[R],this.rangeDateFrom=R}else this.selectedDates=[R];return this.trigger(i.eventChangeSelectedDate,{action:i.actionSelectDate,silent:D==null?void 0:D.silent,date:R,updateTime:re}),this._updateLastSelectedDate(R),je&&!this.timepickerIsActive&&this.visible&&(Ie||qe?qe&&on===1&&this.hide():this.hide()),new Promise(ri=>{setTimeout(ri)})}}unselectDate(R){let F=this.selectedDates,D=this;if((R=C(R))instanceof Date)return F.some((G,V)=>{if(m(G,R))return F.splice(V,1),D.selectedDates.length?(D.rangeDateTo="",D.rangeDateFrom=F[0],D._updateLastSelectedDate(D.selectedDates[D.selectedDates.length-1])):(D.rangeDateFrom="",D.rangeDateTo="",D._updateLastSelectedDate(!1)),this.trigger(i.eventChangeSelectedDate,{action:i.actionUnselectDate,date:R}),!0})}replaceDate(R,F){let D=this.selectedDates.find(V=>m(V,R,this.currentView)),G=this.selectedDates.indexOf(D);G<0||m(this.selectedDates[G],F,this.currentView)||(this.selectedDates[G]=F,this.trigger(i.eventChangeSelectedDate,{action:i.actionSelectDate,date:F,updateTime:!0}),this._updateLastSelectedDate(F))}clear(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(i.eventChangeSelectedDate,{action:i.actionUnselectDate,silent:R.silent}),new Promise(F=>{setTimeout(F)})}show(){let{onShow:R,isMobile:F}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,R&&this._scheduleCallAfterTransition(R),F&&this._showMobileOverlay()}hide(){let{onHide:R,isMobile:F}=this.opts,D=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition(G=>{!this.customHide&&(G&&D||!G&&!D)&&this._finishHide(),R&&R(G)}),F&&Ne.classList.remove("-active-")}_triggerOnSelect(){let R=[],F=[],{selectedDates:D,locale:G,opts:{onSelect:V,multipleDates:W,range:re}}=this,fe=W||re,Ee=typeof G.dateFormat=="function";D.length&&(R=D.map(x),F=Ee?W?G.dateFormat(R):R.map(Ie=>G.dateFormat(Ie)):R.map(Ie=>this.formatDate(Ie,G.dateFormat))),V({date:fe?R:R[0],formattedDate:fe?F:F[0],datepicker:this})}_handleAlreadySelectedDates(R,F){let{selectedDates:D,rangeDateFrom:G,rangeDateTo:V}=this,{range:W,toggleSelected:re}=this.opts,fe=D.length,Ee=typeof re=="function"?re({datepicker:this,date:F}):re,Ie=!!(W&&fe===1&&R),qe=Ie?x(F):F;W&&!Ee&&(fe!==2&&this.selectDate(qe),fe===2&&m(G,V))||(Ee?this.unselectDate(qe):this._updateLastSelectedDate(Ie?qe:R))}_handleUpDownActions(R,F){if(!((R=C(R||this.focusDate||this.viewDate))instanceof Date))return;let D=F==="up"?this.viewIndex+1:this.viewIndex-1;D>2&&(D=2),D<0&&(D=0),this.setViewDate(new Date(R.getFullYear(),R.getMonth(),1)),this.setCurrentView(this.viewIndexes[D])}getCell(R){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.day;if(!((R=C(R))instanceof Date))return;let{year:D,month:G,date:V}=c(R),W=`[data-year="${D}"]`,re=`[data-month="${G}"]`,fe={[i.day]:`${W}${re}[data-date="${V}"]`,[i.month]:`${W}${re}`,[i.year]:`${W}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(fe[F]):void 0}_showMobileOverlay(){Ne.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((R,F)=>parseFloat(F)+R,0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return c(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return h(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===i.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===i.days}get $container(){return this.$customContainer||Ze}static replacer(R,F,D){return R.replace(F,function(G,V,W,re){return V+D+re})}}var Te;return Se(xe,"defaults",n),Se(xe,"version","3.5.3"),Se(xe,"defaultGlobalContainerId","air-datepicker-global-container"),Te=xe.prototype,Object.assign(Te,Le),t.default}()})});var q1,Bm=window,vd=Bm.trustedTypes,k3=vd?vd.createPolicy("lit-html",{createHTML:o=>o}):void 0,Wm="$lit$",$a=`lit$${(Math.random()+"").slice(9)}$`,R1="?"+$a,RF=`<${R1}>`,Jl=document,jm=()=>Jl.createComment(""),Sh=o=>o===null||typeof o!="object"&&typeof o!="function",T3=Array.isArray,M3=o=>T3(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",P1=`[
20
+ }`;var dt=b3(function(){return St($,Be+"return "+we).apply(o,H)});if(dt.source=we,y1(dt))throw dt;return dt}function RI(u){return Tt(u).toLowerCase()}function OI(u){return Tt(u).toUpperCase()}function DI(u,g,w){if(u=Tt(u),u&&(w||g===o))return Sz(u);if(!u||!(g=xr(g)))return u;var S=Ao(u),q=Ao(g),$=Az(S,q),H=Ez(S,q)+1;return Hs(S,$,H).join("")}function $I(u,g,w){if(u=Tt(u),u&&(w||g===o))return u.slice(0,Mz(u)+1);if(!u||!(g=xr(g)))return u;var S=Ao(u),q=Ez(S,Ao(g))+1;return Hs(S,0,q).join("")}function II(u,g,w){if(u=Tt(u),u&&(w||g===o))return u.replace(y0,"");if(!u||!(g=xr(g)))return u;var S=Ao(u),q=Az(S,Ao(g));return Hs(S,q).join("")}function FI(u,g){var w=P,S=I;if(di(g)){var q="separator"in g?g.separator:q;w="length"in g?lt(g.length):w,S="omission"in g?xr(g.omission):S}u=Tt(u);var $=u.length;if(sd(u)){var H=Ao(u);$=H.length}if(w>=$)return u;var Y=w-ld(S);if(Y<1)return S;var ne=H?Hs(H,0,Y).join(""):u.slice(0,Y);if(q===o)return ne+S;if(H&&(Y+=ne.length-Y),x1(q)){if(u.slice(Y).search(q)){var pe,me=ne;for(q.global||(q=D0(q.source,Tt(Y_.exec(q))+"g")),q.lastIndex=0;pe=q.exec(me);)var we=pe.index;ne=ne.slice(0,we===o?Y:we)}}else if(u.indexOf(xr(q),Y)!=Y){var Pe=ne.lastIndexOf(q);Pe>-1&&(ne=ne.slice(0,Pe))}return ne+S}function NI(u){return u=Tt(u),u&&J7.test(u)?u.replace(V_,mP):u}var HI=pd(function(u,g,w){return u+(w?" ":"")+g.toUpperCase()}),_1=v2("toUpperCase");function g3(u,g,w){return u=Tt(u),g=w?o:g,g===o?dP(u)?vP(u):tP(u):u.match(g)||[]}var b3=ut(function(u,g){try{return vr(u,o,g)}catch(w){return y1(w)?w:new ot(w)}}),BI=qa(function(u,g){return jr(g,function(w){w=Ko(w),Ma(u,w,b1(u[w],u))}),u});function WI(u){var g=u==null?0:u.length,w=Xe();return u=g?oi(u,function(S){if(typeof S[1]!="function")throw new Vr(r);return[w(S[0]),S[1]]}):[],ut(function(S){for(var q=-1;++q<g;){var $=u[q];if(vr($[0],this,S))return vr($[1],this,S)}})}function jI(u){return mR(Gr(u,d))}function z1(u){return function(){return u}}function VI(u,g){return u==null||u!==u?g:u}var UI=x2(),GI=x2(!0);function ir(u){return u}function C1(u){return Kz(typeof u=="function"?u:Gr(u,d))}function YI(u){return Qz(Gr(u,d))}function XI(u,g){return Zz(u,Gr(g,d))}var KI=ut(function(u,g){return function(w){return bh(w,u,g)}}),JI=ut(function(u,g){return function(w){return bh(u,w,g)}});function S1(u,g,w){var S=Qi(g),q=wm(g,S);w==null&&!(di(g)&&(q.length||!S.length))&&(w=g,g=u,u=this,q=wm(g,Qi(g)));var $=!(di(w)&&"chain"in w)||!!w.chain,H=Ra(u);return jr(q,function(Y){var ne=g[Y];u[Y]=ne,H&&(u.prototype[Y]=function(){var pe=this.__chain__;if($||pe){var me=u(this.__wrapped__),we=me.__actions__=Zn(this.__actions__);return we.push({func:ne,args:arguments,thisArg:u}),me.__chain__=pe,me}return ne.apply(u,Rs([this.value()],arguments))})}),u}function QI(){return Ji._===this&&(Ji._=zP),this}function A1(){}function ZI(u){return u=lt(u),ut(function(g){return e2(g,u)})}var eF=r1(oi),tF=r1(wz),iF=r1(T0);function v3(u){return f1(u)?M0(Ko(u)):qR(u)}function nF(u){return function(g){return u==null?o:jl(u,g)}}var rF=k2(),oF=k2(!0);function E1(){return[]}function T1(){return!1}function aF(){return{}}function sF(){return""}function lF(){return!0}function cF(u,g){if(u=lt(u),u<1||u>se)return[];var w=ve,S=wn(u,ve);g=Xe(g),u-=ve;for(var q=P0(S,g);++w<u;)g(w);return q}function dF(u){return at(u)?oi(u,Ko):wr(u)?[u]:Zn(I2(Tt(u)))}function fF(u){var g=++kP;return Tt(u)+g}var hF=Am(function(u,g){return u+g},0),uF=o1("ceil"),pF=Am(function(u,g){return u/g},1),mF=o1("floor");function gF(u){return u&&u.length?xm(u,ir,j0):o}function bF(u,g){return u&&u.length?xm(u,Xe(g,2),j0):o}function vF(u){return zz(u,ir)}function yF(u,g){return zz(u,Xe(g,2))}function xF(u){return u&&u.length?xm(u,ir,Y0):o}function wF(u,g){return u&&u.length?xm(u,Xe(g,2),Y0):o}var kF=Am(function(u,g){return u*g},1),_F=o1("round"),zF=Am(function(u,g){return u-g},0);function CF(u){return u&&u.length?q0(u,ir):0}function SF(u,g){return u&&u.length?q0(u,Xe(g,2)):0}return O.after=YD,O.ary=X2,O.assign=O$,O.assignIn=c3,O.assignInWith=Nm,O.assignWith=D$,O.at=$$,O.before=K2,O.bind=b1,O.bindAll=BI,O.bindKey=J2,O.castArray=a$,O.chain=U2,O.chunk=mO,O.compact=gO,O.concat=bO,O.cond=WI,O.conforms=jI,O.constant=z1,O.countBy=CD,O.create=I$,O.curry=Q2,O.curryRight=Z2,O.debounce=e3,O.defaults=F$,O.defaultsDeep=N$,O.defer=XD,O.delay=KD,O.difference=vO,O.differenceBy=yO,O.differenceWith=xO,O.drop=wO,O.dropRight=kO,O.dropRightWhile=_O,O.dropWhile=zO,O.fill=CO,O.filter=AD,O.flatMap=MD,O.flatMapDeep=LD,O.flatMapDepth=qD,O.flatten=B2,O.flattenDeep=SO,O.flattenDepth=AO,O.flip=JD,O.flow=UI,O.flowRight=GI,O.fromPairs=EO,O.functions=G$,O.functionsIn=Y$,O.groupBy=PD,O.initial=MO,O.intersection=LO,O.intersectionBy=qO,O.intersectionWith=PO,O.invert=K$,O.invertBy=J$,O.invokeMap=OD,O.iteratee=C1,O.keyBy=DD,O.keys=Qi,O.keysIn=tr,O.map=Rm,O.mapKeys=Z$,O.mapValues=eI,O.matches=YI,O.matchesProperty=XI,O.memoize=Dm,O.merge=tI,O.mergeWith=d3,O.method=KI,O.methodOf=JI,O.mixin=S1,O.negate=$m,O.nthArg=ZI,O.omit=iI,O.omitBy=nI,O.once=QD,O.orderBy=$D,O.over=eF,O.overArgs=ZD,O.overEvery=tF,O.overSome=iF,O.partial=v1,O.partialRight=t3,O.partition=ID,O.pick=rI,O.pickBy=f3,O.property=v3,O.propertyOf=nF,O.pull=$O,O.pullAll=j2,O.pullAllBy=IO,O.pullAllWith=FO,O.pullAt=NO,O.range=rF,O.rangeRight=oF,O.rearg=e$,O.reject=HD,O.remove=HO,O.rest=t$,O.reverse=m1,O.sampleSize=WD,O.set=aI,O.setWith=sI,O.shuffle=jD,O.slice=BO,O.sortBy=GD,O.sortedUniq=XO,O.sortedUniqBy=KO,O.split=MI,O.spread=i$,O.tail=JO,O.take=QO,O.takeRight=ZO,O.takeRightWhile=eD,O.takeWhile=tD,O.tap=gD,O.throttle=n$,O.thru=Pm,O.toArray=a3,O.toPairs=h3,O.toPairsIn=u3,O.toPath=dF,O.toPlainObject=l3,O.transform=lI,O.unary=r$,O.union=iD,O.unionBy=nD,O.unionWith=rD,O.uniq=oD,O.uniqBy=aD,O.uniqWith=sD,O.unset=cI,O.unzip=g1,O.unzipWith=V2,O.update=dI,O.updateWith=fI,O.values=bd,O.valuesIn=hI,O.without=lD,O.words=g3,O.wrap=o$,O.xor=cD,O.xorBy=dD,O.xorWith=fD,O.zip=hD,O.zipObject=uD,O.zipObjectDeep=pD,O.zipWith=mD,O.entries=h3,O.entriesIn=u3,O.extend=c3,O.extendWith=Nm,S1(O,O),O.add=hF,O.attempt=b3,O.camelCase=gI,O.capitalize=p3,O.ceil=uF,O.clamp=uI,O.clone=s$,O.cloneDeep=c$,O.cloneDeepWith=d$,O.cloneWith=l$,O.conformsTo=f$,O.deburr=m3,O.defaultTo=VI,O.divide=pF,O.endsWith=bI,O.eq=To,O.escape=vI,O.escapeRegExp=yI,O.every=SD,O.find=ED,O.findIndex=N2,O.findKey=H$,O.findLast=TD,O.findLastIndex=H2,O.findLastKey=B$,O.floor=mF,O.forEach=G2,O.forEachRight=Y2,O.forIn=W$,O.forInRight=j$,O.forOwn=V$,O.forOwnRight=U$,O.get=w1,O.gt=h$,O.gte=u$,O.has=X$,O.hasIn=k1,O.head=W2,O.identity=ir,O.includes=RD,O.indexOf=TO,O.inRange=pI,O.invoke=Q$,O.isArguments=Gl,O.isArray=at,O.isArrayBuffer=p$,O.isArrayLike=er,O.isArrayLikeObject=_i,O.isBoolean=m$,O.isBuffer=Bs,O.isDate=g$,O.isElement=b$,O.isEmpty=v$,O.isEqual=y$,O.isEqualWith=x$,O.isError=y1,O.isFinite=w$,O.isFunction=Ra,O.isInteger=i3,O.isLength=Im,O.isMap=n3,O.isMatch=k$,O.isMatchWith=_$,O.isNaN=z$,O.isNative=C$,O.isNil=A$,O.isNull=S$,O.isNumber=r3,O.isObject=di,O.isObjectLike=vi,O.isPlainObject=_h,O.isRegExp=x1,O.isSafeInteger=E$,O.isSet=o3,O.isString=Fm,O.isSymbol=wr,O.isTypedArray=gd,O.isUndefined=T$,O.isWeakMap=M$,O.isWeakSet=L$,O.join=RO,O.kebabCase=xI,O.last=Xr,O.lastIndexOf=OO,O.lowerCase=wI,O.lowerFirst=kI,O.lt=q$,O.lte=P$,O.max=gF,O.maxBy=bF,O.mean=vF,O.meanBy=yF,O.min=xF,O.minBy=wF,O.stubArray=E1,O.stubFalse=T1,O.stubObject=aF,O.stubString=sF,O.stubTrue=lF,O.multiply=kF,O.nth=DO,O.noConflict=QI,O.noop=A1,O.now=Om,O.pad=_I,O.padEnd=zI,O.padStart=CI,O.parseInt=SI,O.random=mI,O.reduce=FD,O.reduceRight=ND,O.repeat=AI,O.replace=EI,O.result=oI,O.round=_F,O.runInContext=Q,O.sample=BD,O.size=VD,O.snakeCase=TI,O.some=UD,O.sortedIndex=WO,O.sortedIndexBy=jO,O.sortedIndexOf=VO,O.sortedLastIndex=UO,O.sortedLastIndexBy=GO,O.sortedLastIndexOf=YO,O.startCase=LI,O.startsWith=qI,O.subtract=zF,O.sum=CF,O.sumBy=SF,O.template=PI,O.times=cF,O.toFinite=Oa,O.toInteger=lt,O.toLength=s3,O.toLower=RI,O.toNumber=Kr,O.toSafeInteger=R$,O.toString=Tt,O.toUpper=OI,O.trim=DI,O.trimEnd=$I,O.trimStart=II,O.truncate=FI,O.unescape=NI,O.uniqueId=fF,O.upperCase=HI,O.upperFirst=_1,O.each=G2,O.eachRight=Y2,O.first=W2,S1(O,function(){var u={};return Yo(O,function(g,w){qt.call(O.prototype,w)||(u[w]=g)}),u}(),{chain:!1}),O.VERSION=t,jr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){O[u].placeholder=O}),jr(["drop","take"],function(u,g){vt.prototype[u]=function(w){w=w===o?1:Hi(lt(w),0);var S=this.__filtered__&&!g?new vt(this):this.clone();return S.__filtered__?S.__takeCount__=wn(w,S.__takeCount__):S.__views__.push({size:wn(w,ve),type:u+(S.__dir__<0?"Right":"")}),S},vt.prototype[u+"Right"]=function(w){return this.reverse()[u](w).reverse()}}),jr(["filter","map","takeWhile"],function(u,g){var w=g+1,S=w==U||w==ae;vt.prototype[u]=function(q){var $=this.clone();return $.__iteratees__.push({iteratee:Xe(q,3),type:w}),$.__filtered__=$.__filtered__||S,$}}),jr(["head","last"],function(u,g){var w="take"+(g?"Right":"");vt.prototype[u]=function(){return this[w](1).value()[0]}}),jr(["initial","tail"],function(u,g){var w="drop"+(g?"":"Right");vt.prototype[u]=function(){return this.__filtered__?new vt(this):this[w](1)}}),vt.prototype.compact=function(){return this.filter(ir)},vt.prototype.find=function(u){return this.filter(u).head()},vt.prototype.findLast=function(u){return this.reverse().find(u)},vt.prototype.invokeMap=ut(function(u,g){return typeof u=="function"?new vt(this):this.map(function(w){return bh(w,u,g)})}),vt.prototype.reject=function(u){return this.filter($m(Xe(u)))},vt.prototype.slice=function(u,g){u=lt(u);var w=this;return w.__filtered__&&(u>0||g<0)?new vt(w):(u<0?w=w.takeRight(-u):u&&(w=w.drop(u)),g!==o&&(g=lt(g),w=g<0?w.dropRight(-g):w.take(g-u)),w)},vt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},vt.prototype.toArray=function(){return this.take(ve)},Yo(vt.prototype,function(u,g){var w=/^(?:filter|find|map|reject)|While$/.test(g),S=/^(?:head|last)$/.test(g),q=O[S?"take"+(g=="last"?"Right":""):g],$=S||/^find/.test(g);q&&(O.prototype[g]=function(){var H=this.__wrapped__,Y=S?[1]:arguments,ne=H instanceof vt,pe=Y[0],me=ne||at(H),we=function(mt){var yt=q.apply(O,Rs([mt],Y));return S&&Pe?yt[0]:yt};me&&w&&typeof pe=="function"&&pe.length!=1&&(ne=me=!1);var Pe=this.__chain__,Be=!!this.__actions__.length,Je=$&&!Pe,dt=ne&&!Be;if(!$&&me){H=dt?H:new vt(this);var Qe=u.apply(H,Y);return Qe.__actions__.push({func:Pm,args:[we],thisArg:o}),new Ur(Qe,Pe)}return Je&&dt?u.apply(this,Y):(Qe=this.thru(we),Je?S?Qe.value()[0]:Qe.value():Qe)})}),jr(["pop","push","shift","sort","splice","unshift"],function(u){var g=om[u],w=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",S=/^(?:pop|shift)$/.test(u);O.prototype[u]=function(){var q=arguments;if(S&&!this.__chain__){var $=this.value();return g.apply(at($)?$:[],q)}return this[w](function(H){return g.apply(at(H)?H:[],q)})}}),Yo(vt.prototype,function(u,g){var w=O[g];if(w){var S=w.name+"";qt.call(fd,S)||(fd[S]=[]),fd[S].push({name:g,func:w})}}),fd[Sm(o,b).name]=[{name:"wrapper",func:o}],vt.prototype.clone=NP,vt.prototype.reverse=HP,vt.prototype.value=BP,O.prototype.at=bD,O.prototype.chain=vD,O.prototype.commit=yD,O.prototype.next=xD,O.prototype.plant=kD,O.prototype.reverse=_D,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=zD,O.prototype.first=O.prototype.head,dh&&(O.prototype[dh]=wD),O},Ds=yP();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ji._=Ds,define(function(){return Ds})):Fl?((Fl.exports=Ds)._=Ds,C0._=Ds):Ji._=Ds}).call(vf)});var cT=Jo((H5e,lT)=>{var Dr=-1,Gn=1,Gi=0;function ap(o,t,i,n,r){if(o===t)return o?[[Gi,o]]:[];if(i!=null){var a=GQ(o,t,i);if(a)return a}var s=Fw(o,t),l=o.substring(0,s);o=o.substring(s),t=t.substring(s),s=rv(o,t);var c=o.substring(o.length-s);o=o.substring(0,o.length-s),t=t.substring(0,t.length-s);var d=FQ(o,t);return l&&d.unshift([Gi,l]),c&&d.push([Gi,c]),Nw(d,r),n&&BQ(d),d}function FQ(o,t){var i;if(!o)return[[Gn,t]];if(!t)return[[Dr,o]];var n=o.length>t.length?o:t,r=o.length>t.length?t:o,a=n.indexOf(r);if(a!==-1)return i=[[Gn,n.substring(0,a)],[Gi,r],[Gn,n.substring(a+r.length)]],o.length>t.length&&(i[0][0]=i[2][0]=Dr),i;if(r.length===1)return[[Dr,o],[Gn,t]];var s=HQ(o,t);if(s){var l=s[0],c=s[1],d=s[2],f=s[3],h=s[4],p=ap(l,d),m=ap(c,f);return p.concat([[Gi,h]],m)}return NQ(o,t)}function NQ(o,t){for(var i=o.length,n=t.length,r=Math.ceil((i+n)/2),a=r,s=2*r,l=new Array(s),c=new Array(s),d=0;d<s;d++)l[d]=-1,c[d]=-1;l[a+1]=0,c[a+1]=0;for(var f=i-n,h=f%2!==0,p=0,m=0,v=0,b=0,x=0;x<r;x++){for(var k=-x+p;k<=x-m;k+=2){var z=a+k,E;k===-x||k!==x&&l[z-1]<l[z+1]?E=l[z+1]:E=l[z-1]+1;for(var A=E-k;E<i&&A<n&&o.charAt(E)===t.charAt(A);)E++,A++;if(l[z]=E,E>i)m+=2;else if(A>n)p+=2;else if(h){var C=a+f-k;if(C>=0&&C<s&&c[C]!==-1){var L=i-c[C];if(E>=L)return ZE(o,t,E,A)}}}for(var M=-x+v;M<=x-b;M+=2){var C=a+M,L;M===-x||M!==x&&c[C-1]<c[C+1]?L=c[C+1]:L=c[C-1]+1;for(var P=L-M;L<i&&P<n&&o.charAt(i-L-1)===t.charAt(n-P-1);)L++,P++;if(c[C]=L,L>i)b+=2;else if(P>n)v+=2;else if(!h){var z=a+f-M;if(z>=0&&z<s&&l[z]!==-1){var E=l[z],A=a+E-z;if(L=i-L,E>=L)return ZE(o,t,E,A)}}}}return[[Dr,o],[Gn,t]]}function ZE(o,t,i,n){var r=o.substring(0,i),a=t.substring(0,n),s=o.substring(i),l=t.substring(n),c=ap(r,a),d=ap(s,l);return c.concat(d)}function Fw(o,t){if(!o||!t||o.charAt(0)!==t.charAt(0))return 0;for(var i=0,n=Math.min(o.length,t.length),r=n,a=0;i<r;)o.substring(a,r)==t.substring(a,r)?(i=r,a=i):n=r,r=Math.floor((n-i)/2+i);return rT(o.charCodeAt(r-1))&&r--,r}function eT(o,t){var i=o.length,n=t.length;if(i==0||n==0)return 0;i>n?o=o.substring(i-n):i<n&&(t=t.substring(0,i));var r=Math.min(i,n);if(o==t)return r;for(var a=0,s=1;;){var l=o.substring(r-s),c=t.indexOf(l);if(c==-1)return a;s+=c,(c==0||o.substring(r-s)==t.substring(0,s))&&(a=s,s++)}}function rv(o,t){if(!o||!t||o.slice(-1)!==t.slice(-1))return 0;for(var i=0,n=Math.min(o.length,t.length),r=n,a=0;i<r;)o.substring(o.length-r,o.length-a)==t.substring(t.length-r,t.length-a)?(i=r,a=i):n=r,r=Math.floor((n-i)/2+i);return oT(o.charCodeAt(o.length-r))&&r--,r}function HQ(o,t){var i=o.length>t.length?o:t,n=o.length>t.length?t:o;if(i.length<4||n.length*2<i.length)return null;function r(m,v,b){for(var x=m.substring(b,b+Math.floor(m.length/4)),k=-1,z="",E,A,C,L;(k=v.indexOf(x,k+1))!==-1;){var M=Fw(m.substring(b),v.substring(k)),P=rv(m.substring(0,b),v.substring(0,k));z.length<P+M&&(z=v.substring(k-P,k)+v.substring(k,k+M),E=m.substring(0,b-P),A=m.substring(b+M),C=v.substring(0,k-P),L=v.substring(k+M))}return z.length*2>=m.length?[E,A,C,L,z]:null}var a=r(i,n,Math.ceil(i.length/4)),s=r(i,n,Math.ceil(i.length/2)),l;if(!a&&!s)return null;s?a?l=a[4].length>s[4].length?a:s:l=s:l=a;var c,d,f,h;o.length>t.length?(c=l[0],d=l[1],f=l[2],h=l[3]):(f=l[0],h=l[1],c=l[2],d=l[3]);var p=l[4];return[c,d,f,h,p]}function BQ(o){for(var t=!1,i=[],n=0,r=null,a=0,s=0,l=0,c=0,d=0;a<o.length;)o[a][0]==Gi?(i[n++]=a,s=c,l=d,c=0,d=0,r=o[a][1]):(o[a][0]==Gn?c+=o[a][1].length:d+=o[a][1].length,r&&r.length<=Math.max(s,l)&&r.length<=Math.max(c,d)&&(o.splice(i[n-1],0,[Dr,r]),o[i[n-1]+1][0]=Gn,n--,n--,a=n>0?i[n-1]:-1,s=0,l=0,c=0,d=0,r=null,t=!0)),a++;for(t&&Nw(o),VQ(o),a=1;a<o.length;){if(o[a-1][0]==Dr&&o[a][0]==Gn){var f=o[a-1][1],h=o[a][1],p=eT(f,h),m=eT(h,f);p>=m?(p>=f.length/2||p>=h.length/2)&&(o.splice(a,0,[Gi,h.substring(0,p)]),o[a-1][1]=f.substring(0,f.length-p),o[a+1][1]=h.substring(p),a++):(m>=f.length/2||m>=h.length/2)&&(o.splice(a,0,[Gi,f.substring(0,m)]),o[a-1][0]=Gn,o[a-1][1]=h.substring(0,h.length-m),o[a+1][0]=Dr,o[a+1][1]=f.substring(m),a++),a++}a++}}var tT=/[^a-zA-Z0-9]/,iT=/\s/,nT=/[\r\n]/,WQ=/\n\r?\n$/,jQ=/^\r?\n\r?\n/;function VQ(o){function t(m,v){if(!m||!v)return 6;var b=m.charAt(m.length-1),x=v.charAt(0),k=b.match(tT),z=x.match(tT),E=k&&b.match(iT),A=z&&x.match(iT),C=E&&b.match(nT),L=A&&x.match(nT),M=C&&m.match(WQ),P=L&&v.match(jQ);return M||P?5:C||L?4:k&&!E&&A?3:E||A?2:k||z?1:0}for(var i=1;i<o.length-1;){if(o[i-1][0]==Gi&&o[i+1][0]==Gi){var n=o[i-1][1],r=o[i][1],a=o[i+1][1],s=rv(n,r);if(s){var l=r.substring(r.length-s);n=n.substring(0,n.length-s),r=l+r.substring(0,r.length-s),a=l+a}for(var c=n,d=r,f=a,h=t(n,r)+t(r,a);r.charAt(0)===a.charAt(0);){n+=r.charAt(0),r=r.substring(1)+a.charAt(0),a=a.substring(1);var p=t(n,r)+t(r,a);p>=h&&(h=p,c=n,d=r,f=a)}o[i-1][1]!=c&&(c?o[i-1][1]=c:(o.splice(i-1,1),i--),o[i][1]=d,f?o[i+1][1]=f:(o.splice(i+1,1),i--))}i++}}function Nw(o,t){o.push([Gi,""]);for(var i=0,n=0,r=0,a="",s="",l;i<o.length;){if(i<o.length-1&&!o[i][1]){o.splice(i,1);continue}switch(o[i][0]){case Gn:r++,s+=o[i][1],i++;break;case Dr:n++,a+=o[i][1],i++;break;case Gi:var c=i-r-n-1;if(t){if(c>=0&&sT(o[c][1])){var d=o[c][1].slice(-1);if(o[c][1]=o[c][1].slice(0,-1),a=d+a,s=d+s,!o[c][1]){o.splice(c,1),i--;var f=c-1;o[f]&&o[f][0]===Gn&&(r++,s=o[f][1]+s,f--),o[f]&&o[f][0]===Dr&&(n++,a=o[f][1]+a,f--),c=f}}if(aT(o[i][1])){var d=o[i][1].charAt(0);o[i][1]=o[i][1].slice(1),a+=d,s+=d}}if(i<o.length-1&&!o[i][1]){o.splice(i,1);break}if(a.length>0||s.length>0){a.length>0&&s.length>0&&(l=Fw(s,a),l!==0&&(c>=0?o[c][1]+=s.substring(0,l):(o.splice(0,0,[Gi,s.substring(0,l)]),i++),s=s.substring(l),a=a.substring(l)),l=rv(s,a),l!==0&&(o[i][1]=s.substring(s.length-l)+o[i][1],s=s.substring(0,s.length-l),a=a.substring(0,a.length-l)));var h=r+n;a.length===0&&s.length===0?(o.splice(i-h,h),i=i-h):a.length===0?(o.splice(i-h,h,[Gn,s]),i=i-h+1):s.length===0?(o.splice(i-h,h,[Dr,a]),i=i-h+1):(o.splice(i-h,h,[Dr,a],[Gn,s]),i=i-h+2)}i!==0&&o[i-1][0]===Gi?(o[i-1][1]+=o[i][1],o.splice(i,1)):i++,r=0,n=0,a="",s="";break}}o[o.length-1][1]===""&&o.pop();var p=!1;for(i=1;i<o.length-1;)o[i-1][0]===Gi&&o[i+1][0]===Gi&&(o[i][1].substring(o[i][1].length-o[i-1][1].length)===o[i-1][1]?(o[i][1]=o[i-1][1]+o[i][1].substring(0,o[i][1].length-o[i-1][1].length),o[i+1][1]=o[i-1][1]+o[i+1][1],o.splice(i-1,1),p=!0):o[i][1].substring(0,o[i+1][1].length)==o[i+1][1]&&(o[i-1][1]+=o[i+1][1],o[i][1]=o[i][1].substring(o[i+1][1].length)+o[i+1][1],o.splice(i+1,1),p=!0)),i++;p&&Nw(o,t)}function rT(o){return o>=55296&&o<=56319}function oT(o){return o>=56320&&o<=57343}function aT(o){return oT(o.charCodeAt(0))}function sT(o){return rT(o.charCodeAt(o.length-1))}function UQ(o){for(var t=[],i=0;i<o.length;i++)o[i][1].length>0&&t.push(o[i]);return t}function Iw(o,t,i,n){return sT(o)||aT(n)?null:UQ([[Gi,o],[Dr,t],[Gn,i],[Gi,n]])}function GQ(o,t,i){var n=typeof i=="number"?{index:i,length:0}:i.oldRange,r=typeof i=="number"?null:i.newRange,a=o.length,s=t.length;if(n.length===0&&(r===null||r.length===0)){var l=n.index,c=o.slice(0,l),d=o.slice(l),f=r?r.index:null;e:{var h=l+s-a;if(f!==null&&f!==h||h<0||h>s)break e;var p=t.slice(0,h),m=t.slice(h);if(m!==d)break e;var v=Math.min(l,h),b=c.slice(0,v),x=p.slice(0,v);if(b!==x)break e;var k=c.slice(v),z=p.slice(v);return Iw(b,k,z,d)}e:{if(f!==null&&f!==l)break e;var E=l,p=t.slice(0,E),m=t.slice(E);if(p!==c)break e;var A=Math.min(a-E,s-E),C=d.slice(d.length-A),L=m.slice(m.length-A);if(C!==L)break e;var k=d.slice(0,d.length-A),z=m.slice(0,m.length-A);return Iw(c,k,z,C)}}if(n.length>0&&r&&r.length===0)e:{var b=o.slice(0,n.index),C=o.slice(n.index+n.length),v=b.length,A=C.length;if(s<v+A)break e;var x=t.slice(0,v),L=t.slice(s-A);if(b!==x||C!==L)break e;var k=o.slice(v,a-A),z=t.slice(v,s-A);return Iw(b,k,z,C)}return null}function ov(o,t,i,n){return ap(o,t,i,n,!0)}ov.INSERT=Gn;ov.DELETE=Dr;ov.EQUAL=Gi;lT.exports=ov});var tk=Jo((sp,Nf)=>{var YQ=200,wT="__lodash_hash_undefined__",kT=9007199254740991,Yw="[object Arguments]",XQ="[object Array]",_T="[object Boolean]",zT="[object Date]",KQ="[object Error]",Xw="[object Function]",CT="[object GeneratorFunction]",av="[object Map]",ST="[object Number]",Kw="[object Object]",dT="[object Promise]",AT="[object RegExp]",sv="[object Set]",ET="[object String]",TT="[object Symbol]",Bw="[object WeakMap]",MT="[object ArrayBuffer]",lv="[object DataView]",LT="[object Float32Array]",qT="[object Float64Array]",PT="[object Int8Array]",RT="[object Int16Array]",OT="[object Int32Array]",DT="[object Uint8Array]",$T="[object Uint8ClampedArray]",IT="[object Uint16Array]",FT="[object Uint32Array]",JQ=/[\\^$.*+?()[\]{}|]/g,QQ=/\w*$/,ZQ=/^\[object .+?Constructor\]$/,eZ=/^(?:0|[1-9]\d*)$/,Kt={};Kt[Yw]=Kt[XQ]=Kt[MT]=Kt[lv]=Kt[_T]=Kt[zT]=Kt[LT]=Kt[qT]=Kt[PT]=Kt[RT]=Kt[OT]=Kt[av]=Kt[ST]=Kt[Kw]=Kt[AT]=Kt[sv]=Kt[ET]=Kt[TT]=Kt[DT]=Kt[$T]=Kt[IT]=Kt[FT]=!0;Kt[KQ]=Kt[Xw]=Kt[Bw]=!1;var tZ=typeof global=="object"&&global&&global.Object===Object&&global,iZ=typeof self=="object"&&self&&self.Object===Object&&self,gs=tZ||iZ||Function("return this")(),NT=typeof sp=="object"&&sp&&!sp.nodeType&&sp,fT=NT&&typeof Nf=="object"&&Nf&&!Nf.nodeType&&Nf,nZ=fT&&fT.exports===NT;function rZ(o,t){return o.set(t[0],t[1]),o}function oZ(o,t){return o.add(t),o}function aZ(o,t){for(var i=-1,n=o?o.length:0;++i<n&&t(o[i],i,o)!==!1;);return o}function sZ(o,t){for(var i=-1,n=t.length,r=o.length;++i<n;)o[r+i]=t[i];return o}function HT(o,t,i,n){var r=-1,a=o?o.length:0;for(n&&a&&(i=o[++r]);++r<a;)i=t(i,o[r],r,o);return i}function lZ(o,t){for(var i=-1,n=Array(o);++i<o;)n[i]=t(i);return n}function cZ(o,t){return o==null?void 0:o[t]}function BT(o){var t=!1;if(o!=null&&typeof o.toString!="function")try{t=!!(o+"")}catch(i){}return t}function hT(o){var t=-1,i=Array(o.size);return o.forEach(function(n,r){i[++t]=[r,n]}),i}function Jw(o,t){return function(i){return o(t(i))}}function uT(o){var t=-1,i=Array(o.size);return o.forEach(function(n){i[++t]=n}),i}var dZ=Array.prototype,fZ=Function.prototype,cv=Object.prototype,Hw=gs["__core-js_shared__"],pT=function(){var o=/[^.]+$/.exec(Hw&&Hw.keys&&Hw.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),WT=fZ.toString,vl=cv.hasOwnProperty,dv=cv.toString,hZ=RegExp("^"+WT.call(vl).replace(JQ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mT=nZ?gs.Buffer:void 0,gT=gs.Symbol,bT=gs.Uint8Array,uZ=Jw(Object.getPrototypeOf,Object),pZ=Object.create,mZ=cv.propertyIsEnumerable,gZ=dZ.splice,vT=Object.getOwnPropertySymbols,bZ=mT?mT.isBuffer:void 0,vZ=Jw(Object.keys,Object),Ww=Wf(gs,"DataView"),lp=Wf(gs,"Map"),jw=Wf(gs,"Promise"),Vw=Wf(gs,"Set"),Uw=Wf(gs,"WeakMap"),cp=Wf(Object,"create"),yZ=Hc(Ww),xZ=Hc(lp),wZ=Hc(jw),kZ=Hc(Vw),_Z=Hc(Uw),yT=gT?gT.prototype:void 0,xT=yT?yT.valueOf:void 0;function Nc(o){var t=-1,i=o?o.length:0;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function zZ(){this.__data__=cp?cp(null):{}}function CZ(o){return this.has(o)&&delete this.__data__[o]}function SZ(o){var t=this.__data__;if(cp){var i=t[o];return i===wT?void 0:i}return vl.call(t,o)?t[o]:void 0}function AZ(o){var t=this.__data__;return cp?t[o]!==void 0:vl.call(t,o)}function EZ(o,t){var i=this.__data__;return i[o]=cp&&t===void 0?wT:t,this}Nc.prototype.clear=zZ;Nc.prototype.delete=CZ;Nc.prototype.get=SZ;Nc.prototype.has=AZ;Nc.prototype.set=EZ;function bs(o){var t=-1,i=o?o.length:0;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function TZ(){this.__data__=[]}function MZ(o){var t=this.__data__,i=fv(t,o);if(i<0)return!1;var n=t.length-1;return i==n?t.pop():gZ.call(t,i,1),!0}function LZ(o){var t=this.__data__,i=fv(t,o);return i<0?void 0:t[i][1]}function qZ(o){return fv(this.__data__,o)>-1}function PZ(o,t){var i=this.__data__,n=fv(i,o);return n<0?i.push([o,t]):i[n][1]=t,this}bs.prototype.clear=TZ;bs.prototype.delete=MZ;bs.prototype.get=LZ;bs.prototype.has=qZ;bs.prototype.set=PZ;function Hf(o){var t=-1,i=o?o.length:0;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function RZ(){this.__data__={hash:new Nc,map:new(lp||bs),string:new Nc}}function OZ(o){return hv(this,o).delete(o)}function DZ(o){return hv(this,o).get(o)}function $Z(o){return hv(this,o).has(o)}function IZ(o,t){return hv(this,o).set(o,t),this}Hf.prototype.clear=RZ;Hf.prototype.delete=OZ;Hf.prototype.get=DZ;Hf.prototype.has=$Z;Hf.prototype.set=IZ;function Bf(o){this.__data__=new bs(o)}function FZ(){this.__data__=new bs}function NZ(o){return this.__data__.delete(o)}function HZ(o){return this.__data__.get(o)}function BZ(o){return this.__data__.has(o)}function WZ(o,t){var i=this.__data__;if(i instanceof bs){var n=i.__data__;if(!lp||n.length<YQ-1)return n.push([o,t]),this;i=this.__data__=new Hf(n)}return i.set(o,t),this}Bf.prototype.clear=FZ;Bf.prototype.delete=NZ;Bf.prototype.get=HZ;Bf.prototype.has=BZ;Bf.prototype.set=WZ;function jZ(o,t){var i=Zw(o)||pee(o)?lZ(o.length,String):[],n=i.length,r=!!n;for(var a in o)(t||vl.call(o,a))&&!(r&&(a=="length"||dee(a,n)))&&i.push(a);return i}function jT(o,t,i){var n=o[t];(!(vl.call(o,t)&&YT(n,i))||i===void 0&&!(t in o))&&(o[t]=i)}function fv(o,t){for(var i=o.length;i--;)if(YT(o[i][0],t))return i;return-1}function VZ(o,t){return o&&VT(t,ek(t),o)}function Gw(o,t,i,n,r,a,s){var l;if(n&&(l=a?n(o,r,a,s):n(o)),l!==void 0)return l;if(!uv(o))return o;var c=Zw(o);if(c){if(l=see(o),!t)return ree(o,l)}else{var d=Fc(o),f=d==Xw||d==CT;if(gee(o))return JZ(o,t);if(d==Kw||d==Yw||f&&!a){if(BT(o))return a?o:{};if(l=lee(f?{}:o),!t)return oee(o,VZ(l,o))}else{if(!Kt[d])return a?o:{};l=cee(o,d,Gw,t)}}s||(s=new Bf);var h=s.get(o);if(h)return h;if(s.set(o,l),!c)var p=i?aee(o):ek(o);return aZ(p||o,function(m,v){p&&(v=m,m=o[v]),jT(l,v,Gw(m,t,i,n,v,o,s))}),l}function UZ(o){return uv(o)?pZ(o):{}}function GZ(o,t,i){var n=t(o);return Zw(o)?n:sZ(n,i(o))}function YZ(o){return dv.call(o)}function XZ(o){if(!uv(o)||hee(o))return!1;var t=KT(o)||BT(o)?hZ:ZQ;return t.test(Hc(o))}function KZ(o){if(!GT(o))return vZ(o);var t=[];for(var i in Object(o))vl.call(o,i)&&i!="constructor"&&t.push(i);return t}function JZ(o,t){if(t)return o.slice();var i=new o.constructor(o.length);return o.copy(i),i}function Qw(o){var t=new o.constructor(o.byteLength);return new bT(t).set(new bT(o)),t}function QZ(o,t){var i=t?Qw(o.buffer):o.buffer;return new o.constructor(i,o.byteOffset,o.byteLength)}function ZZ(o,t,i){var n=t?i(hT(o),!0):hT(o);return HT(n,rZ,new o.constructor)}function eee(o){var t=new o.constructor(o.source,QQ.exec(o));return t.lastIndex=o.lastIndex,t}function tee(o,t,i){var n=t?i(uT(o),!0):uT(o);return HT(n,oZ,new o.constructor)}function iee(o){return xT?Object(xT.call(o)):{}}function nee(o,t){var i=t?Qw(o.buffer):o.buffer;return new o.constructor(i,o.byteOffset,o.length)}function ree(o,t){var i=-1,n=o.length;for(t||(t=Array(n));++i<n;)t[i]=o[i];return t}function VT(o,t,i,n){i||(i={});for(var r=-1,a=t.length;++r<a;){var s=t[r],l=n?n(i[s],o[s],s,i,o):void 0;jT(i,s,l===void 0?o[s]:l)}return i}function oee(o,t){return VT(o,UT(o),t)}function aee(o){return GZ(o,ek,UT)}function hv(o,t){var i=o.__data__;return fee(t)?i[typeof t=="string"?"string":"hash"]:i.map}function Wf(o,t){var i=cZ(o,t);return XZ(i)?i:void 0}var UT=vT?Jw(vT,Object):yee,Fc=YZ;(Ww&&Fc(new Ww(new ArrayBuffer(1)))!=lv||lp&&Fc(new lp)!=av||jw&&Fc(jw.resolve())!=dT||Vw&&Fc(new Vw)!=sv||Uw&&Fc(new Uw)!=Bw)&&(Fc=function(o){var t=dv.call(o),i=t==Kw?o.constructor:void 0,n=i?Hc(i):void 0;if(n)switch(n){case yZ:return lv;case xZ:return av;case wZ:return dT;case kZ:return sv;case _Z:return Bw}return t});function see(o){var t=o.length,i=o.constructor(t);return t&&typeof o[0]=="string"&&vl.call(o,"index")&&(i.index=o.index,i.input=o.input),i}function lee(o){return typeof o.constructor=="function"&&!GT(o)?UZ(uZ(o)):{}}function cee(o,t,i,n){var r=o.constructor;switch(t){case MT:return Qw(o);case _T:case zT:return new r(+o);case lv:return QZ(o,n);case LT:case qT:case PT:case RT:case OT:case DT:case $T:case IT:case FT:return nee(o,n);case av:return ZZ(o,n,i);case ST:case ET:return new r(o);case AT:return eee(o);case sv:return tee(o,n,i);case TT:return iee(o)}}function dee(o,t){return t=t==null?kT:t,!!t&&(typeof o=="number"||eZ.test(o))&&o>-1&&o%1==0&&o<t}function fee(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null}function hee(o){return!!pT&&pT in o}function GT(o){var t=o&&o.constructor,i=typeof t=="function"&&t.prototype||cv;return o===i}function Hc(o){if(o!=null){try{return WT.call(o)}catch(t){}try{return o+""}catch(t){}}return""}function uee(o){return Gw(o,!0,!0)}function YT(o,t){return o===t||o!==o&&t!==t}function pee(o){return mee(o)&&vl.call(o,"callee")&&(!mZ.call(o,"callee")||dv.call(o)==Yw)}var Zw=Array.isArray;function XT(o){return o!=null&&bee(o.length)&&!KT(o)}function mee(o){return vee(o)&&XT(o)}var gee=bZ||xee;function KT(o){var t=uv(o)?dv.call(o):"";return t==Xw||t==CT}function bee(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=kT}function uv(o){var t=typeof o;return!!o&&(t=="object"||t=="function")}function vee(o){return!!o&&typeof o=="object"}function ek(o){return XT(o)?jZ(o):KZ(o)}function yee(){return[]}function xee(){return!1}Nf.exports=uee});var uk=Jo((dp,Vf)=>{var wee=200,hk="__lodash_hash_undefined__",wv=1,lM=2,cM=9007199254740991,pv="[object Arguments]",ok="[object Array]",kee="[object AsyncFunction]",dM="[object Boolean]",fM="[object Date]",hM="[object Error]",uM="[object Function]",_ee="[object GeneratorFunction]",mv="[object Map]",pM="[object Number]",zee="[object Null]",jf="[object Object]",JT="[object Promise]",Cee="[object Proxy]",mM="[object RegExp]",gv="[object Set]",gM="[object String]",See="[object Symbol]",Aee="[object Undefined]",ak="[object WeakMap]",bM="[object ArrayBuffer]",bv="[object DataView]",Eee="[object Float32Array]",Tee="[object Float64Array]",Mee="[object Int8Array]",Lee="[object Int16Array]",qee="[object Int32Array]",Pee="[object Uint8Array]",Ree="[object Uint8ClampedArray]",Oee="[object Uint16Array]",Dee="[object Uint32Array]",$ee=/[\\^$.*+?()[\]{}|]/g,Iee=/^\[object .+?Constructor\]$/,Fee=/^(?:0|[1-9]\d*)$/,ni={};ni[Eee]=ni[Tee]=ni[Mee]=ni[Lee]=ni[qee]=ni[Pee]=ni[Ree]=ni[Oee]=ni[Dee]=!0;ni[pv]=ni[ok]=ni[bM]=ni[dM]=ni[bv]=ni[fM]=ni[hM]=ni[uM]=ni[mv]=ni[pM]=ni[jf]=ni[mM]=ni[gv]=ni[gM]=ni[ak]=!1;var vM=typeof global=="object"&&global&&global.Object===Object&&global,Nee=typeof self=="object"&&self&&self.Object===Object&&self,vs=vM||Nee||Function("return this")(),yM=typeof dp=="object"&&dp&&!dp.nodeType&&dp,QT=yM&&typeof Vf=="object"&&Vf&&!Vf.nodeType&&Vf,xM=QT&&QT.exports===yM,ik=xM&&vM.process,ZT=function(){try{return ik&&ik.binding&&ik.binding("util")}catch(o){}}(),eM=ZT&&ZT.isTypedArray;function Hee(o,t){for(var i=-1,n=o==null?0:o.length,r=0,a=[];++i<n;){var s=o[i];t(s,i,o)&&(a[r++]=s)}return a}function Bee(o,t){for(var i=-1,n=t.length,r=o.length;++i<n;)o[r+i]=t[i];return o}function Wee(o,t){for(var i=-1,n=o==null?0:o.length;++i<n;)if(t(o[i],i,o))return!0;return!1}function jee(o,t){for(var i=-1,n=Array(o);++i<o;)n[i]=t(i);return n}function Vee(o){return function(t){return o(t)}}function Uee(o,t){return o.has(t)}function Gee(o,t){return o==null?void 0:o[t]}function Yee(o){var t=-1,i=Array(o.size);return o.forEach(function(n,r){i[++t]=[r,n]}),i}function Xee(o,t){return function(i){return o(t(i))}}function Kee(o){var t=-1,i=Array(o.size);return o.forEach(function(n){i[++t]=n}),i}var Jee=Array.prototype,Qee=Function.prototype,kv=Object.prototype,nk=vs["__core-js_shared__"],wM=Qee.toString,xa=kv.hasOwnProperty,tM=function(){var o=/[^.]+$/.exec(nk&&nk.keys&&nk.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),kM=kv.toString,Zee=RegExp("^"+wM.call(xa).replace($ee,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),iM=xM?vs.Buffer:void 0,vv=vs.Symbol,nM=vs.Uint8Array,_M=kv.propertyIsEnumerable,ete=Jee.splice,Bc=vv?vv.toStringTag:void 0,rM=Object.getOwnPropertySymbols,tte=iM?iM.isBuffer:void 0,ite=Xee(Object.keys,Object),sk=Uf(vs,"DataView"),fp=Uf(vs,"Map"),lk=Uf(vs,"Promise"),ck=Uf(vs,"Set"),dk=Uf(vs,"WeakMap"),hp=Uf(Object,"create"),nte=Vc(sk),rte=Vc(fp),ote=Vc(lk),ate=Vc(ck),ste=Vc(dk),oM=vv?vv.prototype:void 0,rk=oM?oM.valueOf:void 0;function Wc(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function lte(){this.__data__=hp?hp(null):{},this.size=0}function cte(o){var t=this.has(o)&&delete this.__data__[o];return this.size-=t?1:0,t}function dte(o){var t=this.__data__;if(hp){var i=t[o];return i===hk?void 0:i}return xa.call(t,o)?t[o]:void 0}function fte(o){var t=this.__data__;return hp?t[o]!==void 0:xa.call(t,o)}function hte(o,t){var i=this.__data__;return this.size+=this.has(o)?0:1,i[o]=hp&&t===void 0?hk:t,this}Wc.prototype.clear=lte;Wc.prototype.delete=cte;Wc.prototype.get=dte;Wc.prototype.has=fte;Wc.prototype.set=hte;function ys(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function ute(){this.__data__=[],this.size=0}function pte(o){var t=this.__data__,i=_v(t,o);if(i<0)return!1;var n=t.length-1;return i==n?t.pop():ete.call(t,i,1),--this.size,!0}function mte(o){var t=this.__data__,i=_v(t,o);return i<0?void 0:t[i][1]}function gte(o){return _v(this.__data__,o)>-1}function bte(o,t){var i=this.__data__,n=_v(i,o);return n<0?(++this.size,i.push([o,t])):i[n][1]=t,this}ys.prototype.clear=ute;ys.prototype.delete=pte;ys.prototype.get=mte;ys.prototype.has=gte;ys.prototype.set=bte;function jc(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}function vte(){this.size=0,this.__data__={hash:new Wc,map:new(fp||ys),string:new Wc}}function yte(o){var t=zv(this,o).delete(o);return this.size-=t?1:0,t}function xte(o){return zv(this,o).get(o)}function wte(o){return zv(this,o).has(o)}function kte(o,t){var i=zv(this,o),n=i.size;return i.set(o,t),this.size+=i.size==n?0:1,this}jc.prototype.clear=vte;jc.prototype.delete=yte;jc.prototype.get=xte;jc.prototype.has=wte;jc.prototype.set=kte;function yv(o){var t=-1,i=o==null?0:o.length;for(this.__data__=new jc;++t<i;)this.add(o[t])}function _te(o){return this.__data__.set(o,hk),this}function zte(o){return this.__data__.has(o)}yv.prototype.add=yv.prototype.push=_te;yv.prototype.has=zte;function xl(o){var t=this.__data__=new ys(o);this.size=t.size}function Cte(){this.__data__=new ys,this.size=0}function Ste(o){var t=this.__data__,i=t.delete(o);return this.size=t.size,i}function Ate(o){return this.__data__.get(o)}function Ete(o){return this.__data__.has(o)}function Tte(o,t){var i=this.__data__;if(i instanceof ys){var n=i.__data__;if(!fp||n.length<wee-1)return n.push([o,t]),this.size=++i.size,this;i=this.__data__=new jc(n)}return i.set(o,t),this.size=i.size,this}xl.prototype.clear=Cte;xl.prototype.delete=Ste;xl.prototype.get=Ate;xl.prototype.has=Ete;xl.prototype.set=Tte;function Mte(o,t){var i=xv(o),n=!i&&Vte(o),r=!i&&!n&&fk(o),a=!i&&!n&&!r&&MM(o),s=i||n||r||a,l=s?jee(o.length,String):[],c=l.length;for(var d in o)(t||xa.call(o,d))&&!(s&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Nte(d,c)))&&l.push(d);return l}function _v(o,t){for(var i=o.length;i--;)if(SM(o[i][0],t))return i;return-1}function Lte(o,t,i){var n=t(o);return xv(o)?n:Bee(n,i(o))}function pp(o){return o==null?o===void 0?Aee:zee:Bc&&Bc in Object(o)?Ite(o):jte(o)}function aM(o){return up(o)&&pp(o)==pv}function zM(o,t,i,n,r){return o===t?!0:o==null||t==null||!up(o)&&!up(t)?o!==o&&t!==t:qte(o,t,i,n,zM,r)}function qte(o,t,i,n,r,a){var s=xv(o),l=xv(t),c=s?ok:yl(o),d=l?ok:yl(t);c=c==pv?jf:c,d=d==pv?jf:d;var f=c==jf,h=d==jf,p=c==d;if(p&&fk(o)){if(!fk(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new xl),s||MM(o)?CM(o,t,i,n,r,a):Dte(o,t,c,i,n,r,a);if(!(i&wv)){var m=f&&xa.call(o,"__wrapped__"),v=h&&xa.call(t,"__wrapped__");if(m||v){var b=m?o.value():o,x=v?t.value():t;return a||(a=new xl),r(b,x,i,n,a)}}return p?(a||(a=new xl),$te(o,t,i,n,r,a)):!1}function Pte(o){if(!TM(o)||Bte(o))return!1;var t=AM(o)?Zee:Iee;return t.test(Vc(o))}function Rte(o){return up(o)&&EM(o.length)&&!!ni[pp(o)]}function Ote(o){if(!Wte(o))return ite(o);var t=[];for(var i in Object(o))xa.call(o,i)&&i!="constructor"&&t.push(i);return t}function CM(o,t,i,n,r,a){var s=i&wv,l=o.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=a.get(o);if(d&&a.get(t))return d==t;var f=-1,h=!0,p=i&lM?new yv:void 0;for(a.set(o,t),a.set(t,o);++f<l;){var m=o[f],v=t[f];if(n)var b=s?n(v,m,f,t,o,a):n(m,v,f,o,t,a);if(b!==void 0){if(b)continue;h=!1;break}if(p){if(!Wee(t,function(x,k){if(!Uee(p,k)&&(m===x||r(m,x,i,n,a)))return p.push(k)})){h=!1;break}}else if(!(m===v||r(m,v,i,n,a))){h=!1;break}}return a.delete(o),a.delete(t),h}function Dte(o,t,i,n,r,a,s){switch(i){case bv:if(o.byteLength!=t.byteLength||o.byteOffset!=t.byteOffset)return!1;o=o.buffer,t=t.buffer;case bM:return!(o.byteLength!=t.byteLength||!a(new nM(o),new nM(t)));case dM:case fM:case pM:return SM(+o,+t);case hM:return o.name==t.name&&o.message==t.message;case mM:case gM:return o==t+"";case mv:var l=Yee;case gv:var c=n&wv;if(l||(l=Kee),o.size!=t.size&&!c)return!1;var d=s.get(o);if(d)return d==t;n|=lM,s.set(o,t);var f=CM(l(o),l(t),n,r,a,s);return s.delete(o),f;case See:if(rk)return rk.call(o)==rk.call(t)}return!1}function $te(o,t,i,n,r,a){var s=i&wv,l=sM(o),c=l.length,d=sM(t),f=d.length;if(c!=f&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in t:xa.call(t,p)))return!1}var m=a.get(o);if(m&&a.get(t))return m==t;var v=!0;a.set(o,t),a.set(t,o);for(var b=s;++h<c;){p=l[h];var x=o[p],k=t[p];if(n)var z=s?n(k,x,p,t,o,a):n(x,k,p,o,t,a);if(!(z===void 0?x===k||r(x,k,i,n,a):z)){v=!1;break}b||(b=p=="constructor")}if(v&&!b){var E=o.constructor,A=t.constructor;E!=A&&"constructor"in o&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof A=="function"&&A instanceof A)&&(v=!1)}return a.delete(o),a.delete(t),v}function sM(o){return Lte(o,Yte,Fte)}function zv(o,t){var i=o.__data__;return Hte(t)?i[typeof t=="string"?"string":"hash"]:i.map}function Uf(o,t){var i=Gee(o,t);return Pte(i)?i:void 0}function Ite(o){var t=xa.call(o,Bc),i=o[Bc];try{o[Bc]=void 0;var n=!0}catch(a){}var r=kM.call(o);return n&&(t?o[Bc]=i:delete o[Bc]),r}var Fte=rM?function(o){return o==null?[]:(o=Object(o),Hee(rM(o),function(t){return _M.call(o,t)}))}:Xte,yl=pp;(sk&&yl(new sk(new ArrayBuffer(1)))!=bv||fp&&yl(new fp)!=mv||lk&&yl(lk.resolve())!=JT||ck&&yl(new ck)!=gv||dk&&yl(new dk)!=ak)&&(yl=function(o){var t=pp(o),i=t==jf?o.constructor:void 0,n=i?Vc(i):"";if(n)switch(n){case nte:return bv;case rte:return mv;case ote:return JT;case ate:return gv;case ste:return ak}return t});function Nte(o,t){return t=t==null?cM:t,!!t&&(typeof o=="number"||Fee.test(o))&&o>-1&&o%1==0&&o<t}function Hte(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null}function Bte(o){return!!tM&&tM in o}function Wte(o){var t=o&&o.constructor,i=typeof t=="function"&&t.prototype||kv;return o===i}function jte(o){return kM.call(o)}function Vc(o){if(o!=null){try{return wM.call(o)}catch(t){}try{return o+""}catch(t){}}return""}function SM(o,t){return o===t||o!==o&&t!==t}var Vte=aM(function(){return arguments}())?aM:function(o){return up(o)&&xa.call(o,"callee")&&!_M.call(o,"callee")},xv=Array.isArray;function Ute(o){return o!=null&&EM(o.length)&&!AM(o)}var fk=tte||Kte;function Gte(o,t){return zM(o,t)}function AM(o){if(!TM(o))return!1;var t=pp(o);return t==uM||t==_ee||t==kee||t==Cee}function EM(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=cM}function TM(o){var t=typeof o;return o!=null&&(t=="object"||t=="function")}function up(o){return o!=null&&typeof o=="object"}var MM=eM?Vee(eM):Rte;function Yte(o){return Ute(o)?Mte(o):Ote(o)}function Xte(){return[]}function Kte(){return!1}Vf.exports=Gte});var LM=Jo(mk=>{"use strict";Object.defineProperty(mk,"__esModule",{value:!0});var Jte=tk(),Qte=uk(),pk;(function(o){function t(a={},s={},l=!1){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let c=Jte(s);l||(c=Object.keys(c).reduce((d,f)=>(c[f]!=null&&(d[f]=c[f]),d),{}));for(let d in a)a[d]!==void 0&&s[d]===void 0&&(c[d]=a[d]);return Object.keys(c).length>0?c:void 0}o.compose=t;function i(a={},s={}){typeof a!="object"&&(a={}),typeof s!="object"&&(s={});let l=Object.keys(a).concat(Object.keys(s)).reduce((c,d)=>(Qte(a[d],s[d])||(c[d]=s[d]===void 0?null:s[d]),c),{});return Object.keys(l).length>0?l:void 0}o.diff=i;function n(a={},s={}){a=a||{};let l=Object.keys(s).reduce((c,d)=>(s[d]!==a[d]&&a[d]!==void 0&&(c[d]=s[d]),c),{});return Object.keys(a).reduce((c,d)=>(a[d]!==s[d]&&s[d]===void 0&&(c[d]=null),c),l)}o.invert=n;function r(a,s,l=!1){if(typeof a!="object")return s;if(typeof s!="object")return;if(!l)return s;let c=Object.keys(s).reduce((d,f)=>(a[f]===void 0&&(d[f]=s[f]),d),{});return Object.keys(c).length>0?c:void 0}o.transform=r})(pk||(pk={}));mk.default=pk});var vk=Jo(bk=>{"use strict";Object.defineProperty(bk,"__esModule",{value:!0});var gk;(function(o){function t(i){return typeof i.delete=="number"?i.delete:typeof i.retain=="number"?i.retain:typeof i.retain=="object"&&i.retain!==null?1:typeof i.insert=="string"?i.insert.length:1}o.length=t})(gk||(gk={}));bk.default=gk});var PM=Jo(xk=>{"use strict";Object.defineProperty(xk,"__esModule",{value:!0});var qM=vk(),yk=class{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);let i=this.ops[this.index];if(i){let n=this.offset,r=qM.default.length(i);if(t>=r-n?(t=r-n,this.index+=1,this.offset=0):this.offset+=t,typeof i.delete=="number")return{delete:t};{let a={};return i.attributes&&(a.attributes=i.attributes),typeof i.retain=="number"?a.retain=t:typeof i.retain=="object"&&i.retain!==null?a.retain=i.retain:typeof i.insert=="string"?a.insert=i.insert.substr(n,t):a.insert=i.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?qM.default.length(this.ops[this.index])-this.offset:1/0}peekType(){let t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{let t=this.offset,i=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=i,[n].concat(r)}}else return[]}};xk.default=yk});var $r=Jo((ws,Sv)=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.AttributeMap=ws.OpIterator=ws.Op=void 0;var Cv=cT(),Zte=tk(),wk=uk(),Uc=LM();ws.AttributeMap=Uc.default;var xs=vk();ws.Op=xs.default;var go=PM();ws.OpIterator=go.default;var eie="\0",RM=(o,t)=>{if(typeof o!="object"||o===null)throw new Error(`cannot retain a ${typeof o}`);if(typeof t!="object"||t===null)throw new Error(`cannot retain a ${typeof t}`);let i=Object.keys(o)[0];if(!i||i!==Object.keys(t)[0])throw new Error(`embed types not matched: ${i} != ${Object.keys(t)[0]}`);return[i,o[i],t[i]]},ks=class o{constructor(t){Array.isArray(t)?this.ops=t:t!=null&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]}static registerEmbed(t,i){this.handlers[t]=i}static unregisterEmbed(t){delete this.handlers[t]}static getHandler(t){let i=this.handlers[t];if(!i)throw new Error(`no handlers for embed type "${t}"`);return i}insert(t,i){let n={};return typeof t=="string"&&t.length===0?this:(n.insert=t,i!=null&&typeof i=="object"&&Object.keys(i).length>0&&(n.attributes=i),this.push(n))}delete(t){return t<=0?this:this.push({delete:t})}retain(t,i){if(typeof t=="number"&&t<=0)return this;let n={retain:t};return i!=null&&typeof i=="object"&&Object.keys(i).length>0&&(n.attributes=i),this.push(n)}push(t){let i=this.ops.length,n=this.ops[i-1];if(t=Zte(t),typeof n=="object"){if(typeof t.delete=="number"&&typeof n.delete=="number")return this.ops[i-1]={delete:n.delete+t.delete},this;if(typeof n.delete=="number"&&t.insert!=null&&(i-=1,n=this.ops[i-1],typeof n!="object"))return this.ops.unshift(t),this;if(wk(t.attributes,n.attributes)){if(typeof t.insert=="string"&&typeof n.insert=="string")return this.ops[i-1]={insert:n.insert+t.insert},typeof t.attributes=="object"&&(this.ops[i-1].attributes=t.attributes),this;if(typeof t.retain=="number"&&typeof n.retain=="number")return this.ops[i-1]={retain:n.retain+t.retain},typeof t.attributes=="object"&&(this.ops[i-1].attributes=t.attributes),this}}return i===this.ops.length?this.ops.push(t):this.ops.splice(i,0,t),this}chop(){let t=this.ops[this.ops.length-1];return t&&typeof t.retain=="number"&&!t.attributes&&this.ops.pop(),this}filter(t){return this.ops.filter(t)}forEach(t){this.ops.forEach(t)}map(t){return this.ops.map(t)}partition(t){let i=[],n=[];return this.forEach(r=>{(t(r)?i:n).push(r)}),[i,n]}reduce(t,i){return this.ops.reduce(t,i)}changeLength(){return this.reduce((t,i)=>i.insert?t+xs.default.length(i):i.delete?t-i.delete:t,0)}length(){return this.reduce((t,i)=>t+xs.default.length(i),0)}slice(t=0,i=1/0){let n=[],r=new go.default(this.ops),a=0;for(;a<i&&r.hasNext();){let s;a<t?s=r.next(t-a):(s=r.next(i-a),n.push(s)),a+=xs.default.length(s)}return new o(n)}compose(t){let i=new go.default(this.ops),n=new go.default(t.ops),r=[],a=n.peek();if(a!=null&&typeof a.retain=="number"&&a.attributes==null){let l=a.retain;for(;i.peekType()==="insert"&&i.peekLength()<=l;)l-=i.peekLength(),r.push(i.next());a.retain-l>0&&n.next(a.retain-l)}let s=new o(r);for(;i.hasNext()||n.hasNext();)if(n.peekType()==="insert")s.push(n.next());else if(i.peekType()==="delete")s.push(i.next());else{let l=Math.min(i.peekLength(),n.peekLength()),c=i.next(l),d=n.next(l);if(d.retain){let f={};if(typeof c.retain=="number")f.retain=typeof d.retain=="number"?l:d.retain;else if(typeof d.retain=="number")c.retain==null?f.insert=c.insert:f.retain=c.retain;else{let p=c.retain==null?"insert":"retain",[m,v,b]=RM(c[p],d.retain),x=o.getHandler(m);f[p]={[m]:x.compose(v,b,p==="retain")}}let h=Uc.default.compose(c.attributes,d.attributes,typeof c.retain=="number");if(h&&(f.attributes=h),s.push(f),!n.hasNext()&&wk(s.ops[s.ops.length-1],f)){let p=new o(i.rest());return s.concat(p).chop()}}else typeof d.delete=="number"&&(typeof c.retain=="number"||typeof c.retain=="object"&&c.retain!==null)&&s.push(d)}return s.chop()}concat(t){let i=new o(this.ops.slice());return t.ops.length>0&&(i.push(t.ops[0]),i.ops=i.ops.concat(t.ops.slice(1))),i}diff(t,i){if(this.ops===t.ops)return new o;let n=[this,t].map(c=>c.map(d=>{if(d.insert!=null)return typeof d.insert=="string"?d.insert:eie;let f=c===t?"on":"with";throw new Error("diff() called "+f+" non-document")}).join("")),r=new o,a=Cv(n[0],n[1],i,!0),s=new go.default(this.ops),l=new go.default(t.ops);return a.forEach(c=>{let d=c[1].length;for(;d>0;){let f=0;switch(c[0]){case Cv.INSERT:f=Math.min(l.peekLength(),d),r.push(l.next(f));break;case Cv.DELETE:f=Math.min(d,s.peekLength()),s.next(f),r.delete(f);break;case Cv.EQUAL:f=Math.min(s.peekLength(),l.peekLength(),d);let h=s.next(f),p=l.next(f);wk(h.insert,p.insert)?r.retain(f,Uc.default.diff(h.attributes,p.attributes)):r.push(p).delete(f);break}d-=f}}),r.chop()}eachLine(t,i=`
21
+ `){let n=new go.default(this.ops),r=new o,a=0;for(;n.hasNext();){if(n.peekType()!=="insert")return;let s=n.peek(),l=xs.default.length(s)-n.peekLength(),c=typeof s.insert=="string"?s.insert.indexOf(i,l)-l:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(t(r,n.next(1).attributes||{},a)===!1)return;a+=1,r=new o}}r.length()>0&&t(r,{},a)}invert(t){let i=new o;return this.reduce((n,r)=>{if(r.insert)i.delete(xs.default.length(r));else{if(typeof r.retain=="number"&&r.attributes==null)return i.retain(r.retain),n+r.retain;if(r.delete||typeof r.retain=="number"){let a=r.delete||r.retain;return t.slice(n,n+a).forEach(l=>{r.delete?i.push(l):r.retain&&r.attributes&&i.retain(xs.default.length(l),Uc.default.invert(r.attributes,l.attributes))}),n+a}else if(typeof r.retain=="object"&&r.retain!==null){let a=t.slice(n,n+1),s=new go.default(a.ops).next(),[l,c,d]=RM(r.retain,s.insert),f=o.getHandler(l);return i.retain({[l]:f.invert(c,d)},Uc.default.invert(r.attributes,s.attributes)),n+1}}return n},0),i.chop()}transform(t,i=!1){if(i=!!i,typeof t=="number")return this.transformPosition(t,i);let n=t,r=new go.default(this.ops),a=new go.default(n.ops),s=new o;for(;r.hasNext()||a.hasNext();)if(r.peekType()==="insert"&&(i||a.peekType()!=="insert"))s.retain(xs.default.length(r.next()));else if(a.peekType()==="insert")s.push(a.next());else{let l=Math.min(r.peekLength(),a.peekLength()),c=r.next(l),d=a.next(l);if(c.delete)continue;if(d.delete)s.push(d);else{let f=c.retain,h=d.retain,p=typeof h=="object"&&h!==null?h:l;if(typeof f=="object"&&f!==null&&typeof h=="object"&&h!==null){let m=Object.keys(f)[0];if(m===Object.keys(h)[0]){let v=o.getHandler(m);v&&(p={[m]:v.transform(f[m],h[m],i)})}}s.retain(p,Uc.default.transform(c.attributes,d.attributes,i))}}return s.chop()}transformPosition(t,i=!1){i=!!i;let n=new go.default(this.ops),r=0;for(;n.hasNext()&&r<=t;){let a=n.peekLength(),s=n.peekType();if(n.next(),s==="delete"){t-=Math.min(a,t-r);continue}else s==="insert"&&(r<t||!i)&&(t+=a);r+=a}return t}};ks.Op=xs.default;ks.OpIterator=go.default;ks.AttributeMap=Uc.default;ks.handlers={};ws.default=ks;typeof Sv=="object"&&(Sv.exports=ks,Sv.exports.default=ks)});var $M=Jo((dCe,Sk)=>{"use strict";var iie=Object.prototype.hasOwnProperty,Yn="~";function gp(){}Object.create&&(gp.prototype=Object.create(null),new gp().__proto__||(Yn=!1));function nie(o,t,i){this.fn=o,this.context=t,this.once=i||!1}function DM(o,t,i,n,r){if(typeof i!="function")throw new TypeError("The listener must be a function");var a=new nie(i,n||o,r),s=Yn?Yn+t:t;return o._events[s]?o._events[s].fn?o._events[s]=[o._events[s],a]:o._events[s].push(a):(o._events[s]=a,o._eventsCount++),o}function Av(o,t){--o._eventsCount===0?o._events=new gp:delete o._events[t]}function Ln(){this._events=new gp,this._eventsCount=0}Ln.prototype.eventNames=function(){var t=[],i,n;if(this._eventsCount===0)return t;for(n in i=this._events)iie.call(i,n)&&t.push(Yn?n.slice(1):n);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(i)):t};Ln.prototype.listeners=function(t){var i=Yn?Yn+t:t,n=this._events[i];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,a=n.length,s=new Array(a);r<a;r++)s[r]=n[r].fn;return s};Ln.prototype.listenerCount=function(t){var i=Yn?Yn+t:t,n=this._events[i];return n?n.fn?1:n.length:0};Ln.prototype.emit=function(t,i,n,r,a,s){var l=Yn?Yn+t:t;if(!this._events[l])return!1;var c=this._events[l],d=arguments.length,f,h;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,i),!0;case 3:return c.fn.call(c.context,i,n),!0;case 4:return c.fn.call(c.context,i,n,r),!0;case 5:return c.fn.call(c.context,i,n,r,a),!0;case 6:return c.fn.call(c.context,i,n,r,a,s),!0}for(h=1,f=new Array(d-1);h<d;h++)f[h-1]=arguments[h];c.fn.apply(c.context,f)}else{var p=c.length,m;for(h=0;h<p;h++)switch(c[h].once&&this.removeListener(t,c[h].fn,void 0,!0),d){case 1:c[h].fn.call(c[h].context);break;case 2:c[h].fn.call(c[h].context,i);break;case 3:c[h].fn.call(c[h].context,i,n);break;case 4:c[h].fn.call(c[h].context,i,n,r);break;default:if(!f)for(m=1,f=new Array(d-1);m<d;m++)f[m-1]=arguments[m];c[h].fn.apply(c[h].context,f)}}return!0};Ln.prototype.on=function(t,i,n){return DM(this,t,i,n,!1)};Ln.prototype.once=function(t,i,n){return DM(this,t,i,n,!0)};Ln.prototype.removeListener=function(t,i,n,r){var a=Yn?Yn+t:t;if(!this._events[a])return this;if(!i)return Av(this,a),this;var s=this._events[a];if(s.fn)s.fn===i&&(!r||s.once)&&(!n||s.context===n)&&Av(this,a);else{for(var l=0,c=[],d=s.length;l<d;l++)(s[l].fn!==i||r&&!s[l].once||n&&s[l].context!==n)&&c.push(s[l]);c.length?this._events[a]=c.length===1?c[0]:c:Av(this,a)}return this};Ln.prototype.removeAllListeners=function(t){var i;return t?(i=Yn?Yn+t:t,this._events[i]&&Av(this,i)):(this._events=new gp,this._eventsCount=0),this};Ln.prototype.off=Ln.prototype.removeListener;Ln.prototype.addListener=Ln.prototype.on;Ln.prefixed=Yn;Ln.EventEmitter=Ln;typeof Sk!="undefined"&&(Sk.exports=Ln)});var u_=Jo((Bp,h_)=>{(function(o,t){typeof Bp=="object"&&typeof h_=="object"?h_.exports=t():typeof define=="function"&&define.amd?define([],t):typeof Bp=="object"?Bp.AirDatepicker=t():o.AirDatepicker=t()})(Bp,function(){return function(){"use strict";var o={d:function(X,R){for(var F in R)o.o(R,F)&&!o.o(X,F)&&Object.defineProperty(X,F,{enumerable:!0,get:R[F]})},o:function(X,R){return Object.prototype.hasOwnProperty.call(X,R)}},t={};o.d(t,{default:function(){return xe}});var i={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-"},n={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:i.days,minView:i.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 r(X){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof X=="string"?R.querySelector(X):X}function a(){let{tagName:X="div",className:R="",innerHtml:F="",id:D="",attrs:G={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},V=document.createElement(X);return R&&V.classList.add(...R.split(" ")),D&&(V.id=D),F&&(V.innerHTML=F),G&&s(V,G),V}function s(X,R){for(let[F,D]of Object.entries(R))D!==void 0&&X.setAttribute(F,D);return X}function l(X){return new Date(X.getFullYear(),X.getMonth()+1,0).getDate()}function c(X){let R=X.getHours(),{hours:F,dayPeriod:D}=d(R);return{year:X.getFullYear(),month:X.getMonth(),fullMonth:X.getMonth()+1<10?"0"+(X.getMonth()+1):X.getMonth()+1,date:X.getDate(),fullDate:X.getDate()<10?"0"+X.getDate():X.getDate(),day:X.getDay(),hours:R,fullHours:f(R),hours12:F,dayPeriod:D,fullHours12:f(F),minutes:X.getMinutes(),fullMinutes:X.getMinutes()<10?"0"+X.getMinutes():X.getMinutes()}}function d(X){return{dayPeriod:X>11?"pm":"am",hours:X%12==0?12:X%12}}function f(X){return X<10?"0"+X:X}function h(X){let R=10*Math.floor(X.getFullYear()/10);return[R,R+9]}function p(){let X=[];for(var R=arguments.length,F=new Array(R),D=0;D<R;D++)F[D]=arguments[D];return F.forEach(G=>{if(typeof G=="object")for(let V in G)G[V]&&X.push(V);else G&&X.push(G)}),X.join(" ")}function m(X,R){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:i.days;if(!X||!R)return!1;let D=c(X),G=c(R);return{[i.days]:D.date===G.date&&D.month===G.month&&D.year===G.year,[i.months]:D.month===G.month&&D.year===G.year,[i.years]:D.year===G.year}[F]}function v(X,R,F){let D=x(X,!1).getTime(),G=x(R,!1).getTime();return F?D>=G:D>G}function b(X,R){return!v(X,R,!0)}function x(X){let R=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],F=new Date(X.getTime());return typeof R!="boolean"||R||function(D){D.setHours(0,0,0,0)}(F),F}function k(X,R,F){X.length?X.forEach(D=>{D.addEventListener(R,F)}):X.addEventListener(R,F)}function z(X,R){return!(!X||X===document||X instanceof DocumentFragment)&&(X.matches(R)?X:z(X.parentNode,R))}function E(X,R,F){return X>F?F:X<R?R:X}function A(X){for(var R=arguments.length,F=new Array(R>1?R-1:0),D=1;D<R;D++)F[D-1]=arguments[D];return F.filter(G=>G).forEach(G=>{for(let[V,W]of Object.entries(G))if(W!==void 0&&W.toString()==="[object Object]"){let re=X[V]!==void 0?X[V].toString():void 0,fe=W.toString(),Ee=Array.isArray(W)?[]:{};X[V]=X[V]?re!==fe?Ee:X[V]:Ee,A(X[V],W)}else X[V]=W}),X}function C(X){let R=X;return X instanceof Date||(typeof X=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(X)&&(X+="T00:00:00"),R=new Date(X)),isNaN(R.getTime())&&(console.log(`Unable to convert value "${X}" to Date object`),R=!1),R}function L(X){let R="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+R+")("+X+")($|<|"+R+")","g")}function M(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}class P{constructor(){let{type:R,date:F,dp:D,opts:G,body:V}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};M(this,"focus",()=>{this.$cell.classList.add("-focus-"),this.focused=!0}),M(this,"removeFocus",()=>{this.$cell.classList.remove("-focus-"),this.focused=!1}),M(this,"select",()=>{this.$cell.classList.add("-selected-"),this.selected=!0}),M(this,"removeSelect",()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1}),M(this,"onChangeSelectedDate",()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())}),M(this,"onChangeFocusDate",W=>{if(!W)return void(this.focused&&this.removeFocus());let re=m(W,this.date,this.type);re?this.focus():!re&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()}),M(this,"render",()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell)),this.type=R,this.singleType=this.type.slice(0,-1),this.date=F,this.dp=D,this.opts=G,this.body=V,this.customData=!1,this.init()}init(){var R;let{onRenderCell:F}=this.opts;F&&(this.customData=F({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(R=this.customData)!==null&&R!==void 0&&R.disabled&&this.dp.disableDate(this.date)}_bindDatepickerEvents(){this.dp.on(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(i.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(i.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var R;let{year:F,month:D,date:G}=c(this.date),V=((R=this.customData)===null||R===void 0?void 0:R.attrs)||{};this.$cell=a({attrs:Ce({"data-year":F,"data-month":D,"data-date":G},V)}),this.$cell.adpCell=this}_getClassName(){var R;let F=new Date,{selectOtherMonths:D,selectOtherYears:G}=this.opts,{minDate:V,maxDate:W,isDateDisabled:re}=this.dp,{day:fe}=c(this.date),Ee=this._isOutOfMinMaxRange(),Ie=re(this.date),qe=p("air-datepicker-cell",`-${this.singleType}-`,{"-current-":m(F,this.date,this.type),"-min-date-":V&&m(V,this.date,this.type),"-max-date-":W&&m(W,this.date,this.type)}),je="";switch(this.type){case i.days:je=p({"-weekend-":this.dp.isWeekend(fe),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!D||Ee||Ie});break;case i.months:je=p({"-disabled-":Ee});break;case i.years:je=p({"-other-decade-":this.isOtherDecade,"-disabled-":Ee||this.isOtherDecade&&!G})}return p(qe,je,(R=this.customData)===null||R===void 0?void 0:R.classes).split(" ")}_getHtml(){var R;let{year:F,month:D,date:G}=c(this.date),{showOtherMonths:V,showOtherYears:W}=this.opts;if((R=this.customData)!==null&&R!==void 0&&R.html)return this.customData.html;switch(this.type){case i.days:return!V&&this.isOtherMonth?"":G;case i.months:return this.dp.locale[this.opts.monthsField][D];case i.years:return!W&&this.isOtherDecade?"":F}}_isOutOfMinMaxRange(){let{minDate:R,maxDate:F}=this.dp,{type:D,date:G}=this,{month:V,year:W,date:re}=c(G),fe=D===i.days,Ee=D===i.years,Ie=!!R&&new Date(W,Ee?R.getMonth():V,fe?re:R.getDate()),qe=!!F&&new Date(W,Ee?F.getMonth():V,fe?re:F.getDate());return R&&F?b(Ie,R)||v(qe,F):R?b(Ie,R):F?v(qe,F):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:R,focusDate:F,rangeDateTo:D,rangeDateFrom:G}=this.dp,V=R.length;if(!V)return;let W=G,re=D;if(V===1&&F){let je=v(F,R[0]);W=je?R[0]:F,re=je?F:R[0]}let fe=p({"-in-range-":W&&re&&(Ee=this.date,Ie=W,qe=re,v(Ee,Ie)&&b(Ee,qe)),"-range-from-":W&&m(this.date,W,this.type),"-range-to-":re&&m(this.date,re,this.type)});var Ee,Ie,qe;this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),fe&&this.$cell.classList.add(...fe.split(" "))}_handleSelectedStatus(){let R=this.dp._checkIfDateIsSelected(this.date,this.type);R?this.select():!R&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){m(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 I(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}let N={[i.days]:`<div class="air-datepicker-body--day-names"></div><div class="air-datepicker-body--cells -${i.days}-"></div>`,[i.months]:`<div class="air-datepicker-body--cells -${i.months}-"></div>`,[i.years]:`<div class="air-datepicker-body--cells -${i.years}-"></div>`},B=".air-datepicker-cell";class U{constructor(R){let{dp:F,type:D,opts:G}=R;I(this,"handleClick",V=>{let W=V.target.closest(B).adpCell;if(W.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let re=this.dp._checkIfDateIsSelected(W.date,W.type);re?this.dp._handleAlreadySelectedDates(re,W.date):this.dp.selectDate(W.date)}),I(this,"handleDayNameClick",V=>{let W=V.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(W),datepicker:this.dp})}),I(this,"onChangeCurrentView",V=>{V!==this.type?this.hide():(this.show(),this.render())}),I(this,"onMouseOverCell",V=>{let W=z(V.target,B);this.dp.setFocusDate(!!W&&W.adpCell.date)}),I(this,"onMouseOutCell",()=>{this.dp.setFocusDate(!1)}),I(this,"onClickBody",V=>{let{onClickDayName:W}=this.opts,re=V.target;re.closest(B)&&this.handleClick(V),W&&re.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(V)}),I(this,"onMouseDown",V=>{this.pressed=!0;let W=z(V.target,B),re=W&&W.adpCell;m(re.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),m(re.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)}),I(this,"onMouseMove",V=>{if(!this.pressed||!this.dp.isMinViewReached)return;V.preventDefault();let W=z(V.target,B),re=W&&W.adpCell,{selectedDates:fe,rangeDateTo:Ee,rangeDateFrom:Ie}=this.dp;if(!re||re.isDisabled)return;let{date:qe}=re;if(fe.length===2){if(this.rangeFromFocused&&!v(qe,Ee)){let{hours:je,minutes:Pt}=c(Ie);qe.setHours(je),qe.setMinutes(Pt),this.dp.rangeDateFrom=qe,this.dp.replaceDate(Ie,qe)}if(this.rangeToFocused&&!b(qe,Ie)){let{hours:je,minutes:Pt}=c(Ee);qe.setHours(je),qe.setMinutes(Pt),this.dp.rangeDateTo=qe,this.dp.replaceDate(Ee,qe)}}}),I(this,"onMouseUp",()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1}),I(this,"onChangeViewDate",(V,W)=>{if(!this.isVisible)return;let re=h(V),fe=h(W);switch(this.dp.currentView){case i.days:if(m(V,W,i.months))return;break;case i.months:if(m(V,W,i.years))return;break;case i.years:if(re[0]===fe[0]&&re[1]===fe[1])return}this.render()}),I(this,"render",()=>{this.destroyCells(),this._generateCells(),this.cells.forEach(V=>{this.$cells.appendChild(V.render())})}),this.dp=F,this.type=D,this.opts=G,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===i.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:R,dynamicRange:F}=this.opts;k(this.$el,"mouseover",this.onMouseOverCell),k(this.$el,"mouseout",this.onMouseOutCell),k(this.$el,"click",this.onClickBody),R&&F&&(k(this.$el,"mousedown",this.onMouseDown),k(this.$el,"mousemove",this.onMouseMove),k(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(i.eventChangeViewDate,this.onChangeViewDate),this.dp.on(i.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=a({className:`air-datepicker-body -${this.type}-`,innerHtml:N[this.type]}),this.$names=r(".air-datepicker-body--day-names",this.$el),this.$cells=r(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,F="",D=this.dp.isWeekend,{onClickDayName:G}=this.opts,V=R,W=0;for(;W<7;){let re=V%7;F+=`<div class="${p("air-datepicker-body--day-name",{[i.cssClassWeekend]:D(re),"-clickable-":!!G})}" data-day-index='${re}'>${this.dp.locale.daysMin[re]}</div>`,W++,V++}return F}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(R){let{type:F,dp:D,opts:G}=this;return new P({type:F,dp:D,opts:G,date:R,body:this})}_generateCells(){U.getDatesFunction(this.type)(this.dp,R=>{this.cells.push(this._generateCell(R))})}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach(R=>R.destroy()),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(i.eventChangeViewDate,this.onChangeViewDate),this.dp.off(i.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(R,F){let{viewDate:D,opts:{fixedHeight:G},locale:{firstDay:V}}=R,W=l(D),{year:re,month:fe}=c(D),Ee=new Date(re,fe,1),Ie=new Date(re,fe,W),qe=Ee.getDay()-V,je=6-Ie.getDay()+V;qe=qe<0?qe+7:qe,je=je>6?je-7:je;let Pt=function(So,Il){let{year:qs,month:sh,date:lh}=c(So);return new Date(qs,sh,lh-Il)}(Ee,qe),on=W+qe+je,ri=Pt.getDate(),{year:rd,month:zo}=c(Pt),Qn=0;G&&(on=42);let Co=[];for(;Qn<on;){let So=new Date(rd,zo,ri+Qn);F&&F(So),Co.push(So),Qn++}return Co}static getMonthsDates(R,F){let{year:D}=R.parsedViewDate,G=0,V=[];for(;G<12;){let W=new Date(D,G);V.push(W),F&&F(W),G++}return V}static getYearsDates(R,F){let D=h(R.viewDate),G=D[0]-1,V=D[1]+1,W=G,re=[];for(;W<=V;){let fe=new Date(W,0);re.push(fe),F&&F(fe),W++}return re}static getDatesFunction(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.days;return{[i.days]:U.getDaysDates,[i.months]:U.getMonthsDates,[i.years]:U.getYearsDates}[R]}}function ee(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}class ae{constructor(R){let{dp:F,opts:D}=R;ee(this,"onClickNav",G=>{let V=z(G.target,".air-datepicker-nav--action");if(!V)return;let W=V.dataset.action;this.dp[W]()}),ee(this,"onChangeViewDate",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),ee(this,"onChangeCurrentView",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),ee(this,"onClickNavTitle",()=>{this.dp.isFinalView||this.dp.up()}),ee(this,"update",()=>{let{prevHtml:G,nextHtml:V}=this.opts;this.$prev.innerHTML=G,this.$next.innerHTML=V,this._resetNavStatus(),this.render(),this.handleNavStatus()}),ee(this,"renderDelay",()=>{setTimeout(this.render)}),ee(this,"render",()=>{this.$title.innerHTML=this._getTitle(),function(G,V){for(let W in V)V[W]?G.classList.add(W):G.classList.remove(W)}(this.$title,{"-disabled-":this.dp.isFinalView})}),this.dp=F,this.opts=D,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=r(".air-datepicker-nav--title",this.$el),this.$prev=r('[data-action="prev"]',this.$el),this.$next=r('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(i.eventChangeViewDate,this.onChangeViewDate),this.dp.on(i.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(i.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(i.eventChangeTime,this.render))}destroy(){this.dp.off(i.eventChangeViewDate,this.onChangeViewDate),this.dp.off(i.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(i.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(i.eventChangeTime,this.render))}_createElement(){this.$el=a({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:R,opts:F}=this,D=F.navTitles[R.currentView];return typeof D=="function"?D(R):R.formatDate(R.viewDate,D)}handleNavStatus(){let{disableNavWhenOutOfRange:R}=this.opts,{minDate:F,maxDate:D}=this.dp;if(!F&&!D||!R)return;let{year:G,month:V}=this.dp.parsedViewDate,W=!!F&&c(F),re=!!D&&c(D);switch(this.dp.currentView){case i.days:F&&W.month>=V&&W.year>=G&&this._disableNav("prev"),D&&re.month<=V&&re.year<=G&&this._disableNav("next");break;case i.months:F&&W.year>=G&&this._disableNav("prev"),D&&re.year<=G&&this._disableNav("next");break;case i.years:{let fe=h(this.dp.viewDate);F&&W.year>=fe[0]&&this._disableNav("prev"),D&&re.year<=fe[1]&&this._disableNav("next");break}}}_disableNav(R){r('[data-action="'+R+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(R){for(var F=arguments.length,D=new Array(F>1?F-1:0),G=1;G<F;G++)D[G-1]=arguments[G];R.length?R.forEach(V=>{V.classList.remove(...D)}):R.classList.remove(...D)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:R,nextHtml:F}=this.opts;this.$el.innerHTML=`<div class="air-datepicker-nav--action" data-action="prev">${R}</div><div class="air-datepicker-nav--title"></div><div class="air-datepicker-nav--action" data-action="next">${F}</div>`}get isNavIsFunction(){let{navTitles:R}=this.opts;return Object.keys(R).find(F=>typeof R[F]=="function")}}var oe={today:{content:X=>X.locale.today,onClick:X=>X.setViewDate(new Date)},clear:{content:X=>X.locale.clear,onClick:X=>X.clear()}};class se{constructor(R){let{dp:F,opts:D}=R;this.dp=F,this.opts=D,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:R}=this.opts;Array.isArray(R)||(R=[R]),R.forEach(F=>{let D=F;typeof F=="string"&&oe[F]&&(D=oe[F]);let G=this.createButton(D);D.onClick&&this.attachEventToButton(G,D.onClick),this.$el.appendChild(G)})}attachEventToButton(R,F){R.addEventListener("click",()=>{F(this.dp)})}createButton(R){let{content:F,className:D,tagName:G="button",attrs:V={}}=R;return a({tagName:G,innerHtml:`<span tabindex='-1'>${typeof F=="function"?F(this.dp):F}</span>`,className:p("air-datepicker-button",D),attrs:V})}render(){this.generateButtons()}}function de(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}class _e{constructor(){let{opts:R,dp:F}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};de(this,"toggleTimepickerIsActive",G=>{this.dp.timepickerIsActive=G}),de(this,"onChangeSelectedDate",G=>{let{date:V,updateTime:W=!1}=G;V&&(this.setMinMaxTime(V),this.setCurrentTime(!!W&&V),this.addTimeToDate(V))}),de(this,"onChangeLastSelectedDate",G=>{G&&(this.setTime(G),this.render())}),de(this,"onChangeInputRange",G=>{let V=G.target;this[V.getAttribute("name")]=V.value,this.updateText(),this.dp.trigger(i.eventChangeTime,{hours:this.hours,minutes:this.minutes})}),de(this,"onMouseEnterLeave",G=>{let V=G.target.getAttribute("name"),W=this.$minutesText;V==="hours"&&(W=this.$hoursText),W.classList.toggle("-focus-")}),de(this,"onFocus",()=>{this.toggleTimepickerIsActive(!0)}),de(this,"onBlur",()=>{this.toggleTimepickerIsActive(!1)}),this.opts=R,this.dp=F;let{timeFormat:D}=this.dp.locale;D&&(D.match(L("h"))||D.match(L("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(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(i.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let R="input";navigator.userAgent.match(/trident/gi)&&(R="change"),k(this.$ranges,R,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:p("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(i.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(i.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:R,hours:F,displayHours:D,minutes:G,minHours:V,minMinutes:W,maxHours:re,maxMinutes:fe,dayPeriod:Ee,opts:{hoursStep:Ie,minutesStep:qe}}=this;this.$el.innerHTML=`<div class="air-datepicker-time--current"> <span class="air-datepicker-time--current-hours">${f(D)}</span> <span class="air-datepicker-time--current-colon">:</span> <span class="air-datepicker-time--current-minutes">${f(G)}</span> `+(R?`<span class='air-datepicker-time--current-ampm'>${Ee}</span>`:"")+`</div><div class="air-datepicker-time--sliders"> <div class="air-datepicker-time--row"> <input type="range" name="hours" value="${F}" min="${V}" max="${re}" step="${Ie}"/> </div> <div class="air-datepicker-time--row"> <input type="range" name="minutes" value="${G}" min="${W}" max="${fe}" step="${qe}"/> </div></div>`}defineDOM(){let R=F=>r(F,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=R('[name="hours"]'),this.$minutes=R('[name="minutes"]'),this.$hoursText=R(".air-datepicker-time--current-hours"),this.$minutesText=R(".air-datepicker-time--current-minutes"),this.$ampm=R(".air-datepicker-time--current-ampm")}setTime(R){this.setMinMaxTime(R),this.setCurrentTime(R)}addTimeToDate(R){R&&(R.setHours(this.hours),R.setMinutes(this.minutes))}setMinMaxTime(R){if(this.setMinMaxTimeFromOptions(),R){let{minDate:F,maxDate:D}=this.dp;F&&m(R,F)&&this.setMinTimeFromMinDate(F),D&&m(R,D)&&this.setMaxTimeFromMaxDate(D)}}setCurrentTime(R){let{hours:F,minutes:D}=R?c(R):this;this.hours=E(F,this.minHours,this.maxHours),this.minutes=E(D,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:R,minMinutes:F,maxHours:D,maxMinutes:G}=this.opts;this.minHours=E(R,0,23),this.minMinutes=E(F,0,59),this.maxHours=E(D,0,23),this.maxMinutes=E(G,0,59)}setMinTimeFromMinDate(R){let{lastSelectedDate:F}=this.dp;this.minHours=R.getHours(),F&&F.getHours()>R.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=R.getMinutes()}setMaxTimeFromMaxDate(R){let{lastSelectedDate:F}=this.dp;this.maxHours=R.getHours(),F&&F.getHours()<R.getHours()?this.maxMinutes=this.opts.maxMinutes:this.maxMinutes=R.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=f(this.displayHours),this.$minutesText.innerHTML=f(this.minutes),this.ampm&&(this.$ampm.innerHTML=this.dayPeriod)}set hours(R){this._hours=R;let{hours:F,dayPeriod:D}=d(R);this.displayHours=this.ampm?F:R,this.dayPeriod=D}get hours(){return this._hours}render(){this.updateSliders(),this.updateText()}}function ve(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}class Ae{constructor(R){let{dp:F,opts:D}=R;ve(this,"pressedKeys",new Set),ve(this,"hotKeys",new Map([[[["Control","ArrowRight"],["Control","ArrowUp"]],G=>G.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],G=>G.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],G=>G.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],G=>G.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],G=>G.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],G=>G.year-=10],[["Control","Shift","ArrowUp"],(G,V)=>V.up()]])),ve(this,"handleHotKey",G=>{let V=this.hotKeys.get(G),W=c(this.getInitialFocusDate());V(W,this.dp);let{year:re,month:fe,date:Ee}=W,Ie=l(new Date(re,fe));Ie<Ee&&(Ee=Ie);let qe=this.dp.getClampedDate(new Date(re,fe,Ee));this.dp.setFocusDate(qe,{viewDateTransition:!0})}),ve(this,"isHotKeyPressed",()=>{let G=!1,V=this.pressedKeys.size,W=re=>this.pressedKeys.has(re);for(let[re]of this.hotKeys){if(G)break;if(Array.isArray(re[0]))re.forEach(fe=>{G||V!==fe.length||(G=fe.every(W)&&re)});else{if(V!==re.length)continue;G=re.every(W)&&re}}return G}),ve(this,"isArrow",G=>G>=37&&G<=40),ve(this,"onKeyDown",G=>{let{key:V,which:W}=G,{dp:re,dp:{focusDate:fe},opts:Ee}=this;this.registerKey(V);let Ie=this.isHotKeyPressed();if(Ie)return G.preventDefault(),void this.handleHotKey(Ie);if(this.isArrow(W))return G.preventDefault(),void this.focusNextCell(V);if(V==="Enter"){if(re.currentView!==Ee.minView)return void re.down();if(fe){let qe=re._checkIfDateIsSelected(fe);return void(qe?re._handleAlreadySelectedDates(qe,fe):re.selectDate(fe))}}V==="Escape"&&this.dp.hide()}),ve(this,"onKeyUp",G=>{this.removeKey(G.key)}),this.dp=F,this.opts=D,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:R}=this.dp;R.addEventListener("keydown",this.onKeyDown),R.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:R}=this.dp;R.removeEventListener("keydown",this.onKeyDown),R.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:R,currentView:F,selectedDates:D,parsedViewDate:{year:G,month:V}}=this.dp,W=R||D[D.length-1];if(!W)switch(F){case i.days:W=new Date(G,V,new Date().getDate());break;case i.months:W=new Date(G,V,1);break;case i.years:W=new Date(G,0,1)}return W}focusNextCell(R){let F=this.getInitialFocusDate(),{currentView:D}=this.dp,{days:G,months:V,years:W}=i,re=c(F),fe=re.year,Ee=re.month,Ie=re.date;switch(R){case"ArrowLeft":D===G&&(Ie-=1),D===V&&(Ee-=1),D===W&&(fe-=1);break;case"ArrowUp":D===G&&(Ie-=7),D===V&&(Ee-=3),D===W&&(fe-=4);break;case"ArrowRight":D===G&&(Ie+=1),D===V&&(Ee+=1),D===W&&(fe+=1);break;case"ArrowDown":D===G&&(Ie+=7),D===V&&(Ee+=3),D===W&&(fe+=4)}let qe=this.dp.getClampedDate(new Date(fe,Ee,Ie));this.dp.setFocusDate(qe,{viewDateTransition:!0})}registerKey(R){this.pressedKeys.add(R)}removeKey(R){this.pressedKeys.delete(R)}}let Le={on(X,R){this.__events||(this.__events={}),this.__events[X]?this.__events[X].push(R):this.__events[X]=[R]},off(X,R){this.__events&&this.__events[X]&&(this.__events[X]=this.__events[X].filter(F=>F!==R))},removeAllEvents(){this.__events={}},trigger(X){for(var R=arguments.length,F=new Array(R>1?R-1:0),D=1;D<R;D++)F[D-1]=arguments[D];this.__events&&this.__events[X]&&this.__events[X].forEach(G=>{G(...F)})}};function Se(X,R,F){return(R=function(D){var G=function(V,W){if(typeof V!="object"||V===null)return V;var re=V[Symbol.toPrimitive];if(re!==void 0){var fe=re.call(V,"string");if(typeof fe!="object")return fe;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(V)}(D);return typeof G=="symbol"?G:String(G)}(R))in X?Object.defineProperty(X,R,{value:F,enumerable:!0,configurable:!0,writable:!0}):X[R]=F,X}let Ze="",Ne="",Re=!1;class xe{static buildGlobalContainer(R){Re=!0,Ze=a({className:R,id:R}),r("body").appendChild(Ze)}constructor(R,F){var D=this;if(Se(this,"viewIndexes",[i.days,i.months,i.years]),Se(this,"next",()=>{let{year:W,month:re}=this.parsedViewDate;switch(this.currentView){case i.days:this.setViewDate(new Date(W,re+1,1));break;case i.months:this.setViewDate(new Date(W+1,re,1));break;case i.years:this.setViewDate(new Date(W+10,0,1))}}),Se(this,"prev",()=>{let{year:W,month:re}=this.parsedViewDate;switch(this.currentView){case i.days:this.setViewDate(new Date(W,re-1,1));break;case i.months:this.setViewDate(new Date(W-1,re,1));break;case i.years:this.setViewDate(new Date(W-10,0,1))}}),Se(this,"_finishHide",()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)}),Se(this,"setPosition",function(W){let re=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(W=W||D.opts.position)=="function")return void(D.customHide=W({$datepicker:D.$datepicker,$target:D.$el,$pointer:D.$pointer,isViewChange:re,done:D._finishHide}));let fe,Ee,{isMobile:Ie}=D.opts,qe=D.$el.getBoundingClientRect(),je=D.$el.getBoundingClientRect(),Pt=D.$datepicker.offsetParent,on=D.$el.offsetParent,ri=D.$datepicker.getBoundingClientRect(),rd=W.split(" "),zo=window.scrollY,Qn=window.scrollX,Co=D.opts.offset,So=rd[0],Il=rd[1];if(Ie)D.$datepicker.style.cssText="left: 50%; top: 50%";else{if(Pt===on&&Pt!==document.body&&(je={top:D.$el.offsetTop,left:D.$el.offsetLeft,width:qe.width,height:D.$el.offsetHeight},zo=0,Qn=0),Pt!==on&&Pt!==document.body){let qs=Pt.getBoundingClientRect();je={top:qe.top-qs.top,left:qe.left-qs.left,width:qe.width,height:qe.height},zo=0,Qn=0}switch(So){case"top":fe=je.top-ri.height-Co;break;case"right":Ee=je.left+je.width+Co;break;case"bottom":fe=je.top+je.height+Co;break;case"left":Ee=je.left-ri.width-Co}switch(Il){case"top":fe=je.top;break;case"right":Ee=je.left+je.width-ri.width;break;case"bottom":fe=je.top+je.height-ri.height;break;case"left":Ee=je.left;break;case"center":/left|right/.test(So)?fe=je.top+je.height/2-ri.height/2:Ee=je.left+je.width/2-ri.width/2}D.$datepicker.style.cssText=`left: ${Ee+Qn}px; top: ${fe+zo}px`}}),Se(this,"_setInputValue",()=>{let{opts:W,$altField:re,locale:{dateFormat:fe}}=this,{altFieldDateFormat:Ee,altField:Ie}=W;Ie&&re&&(re.value=this._getInputValue(Ee)),this.$el.value=this._getInputValue(fe)}),Se(this,"_getInputValue",W=>{let{selectedDates:re,opts:fe}=this,{multipleDates:Ee,multipleDatesSeparator:Ie}=fe;if(!re.length)return"";let qe=typeof W=="function",je=qe?W(Ee?re:re[0]):re.map(Pt=>this.formatDate(Pt,W));return je=qe?je:je.join(Ie),je}),Se(this,"_checkIfDateIsSelected",function(W){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.days,fe=!1;return D.selectedDates.some(Ee=>{let Ie=m(W,Ee,re);return fe=Ie&&Ee,Ie}),fe}),Se(this,"_scheduleCallAfterTransition",W=>{this._cancelScheduledCall(),W&&W(!1),this._onTransitionEnd=()=>{W&&W(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})}),Se(this,"_cancelScheduledCall",()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)}),Se(this,"setViewDate",W=>{if(!((W=C(W))instanceof Date)||m(W,this.viewDate))return;let re=this.viewDate;this.viewDate=W;let{onChangeViewDate:fe}=this.opts;if(fe){let{month:Ee,year:Ie}=this.parsedViewDate;fe({month:Ee,year:Ie,decade:this.curDecade})}this.trigger(i.eventChangeViewDate,W,re)}),Se(this,"setFocusDate",function(W){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!W||(W=C(W))instanceof Date)&&(D.focusDate=W,D.trigger(i.eventChangeFocusDate,W,re))}),Se(this,"setCurrentView",function(W){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(D.viewIndexes.includes(W)){if(D.currentView=W,D.elIsInput&&D.visible&&D.setPosition(void 0,!0),D.trigger(i.eventChangeCurrentView,W),!D.views[W]){let fe=D.views[W]=new U({dp:D,opts:D.opts,type:W});D.shouldUpdateDOM&&D.$content.appendChild(fe.$el)}D.opts.onChangeView&&!re.silent&&D.opts.onChangeView(W)}}),Se(this,"_updateLastSelectedDate",W=>{this.lastSelectedDate=W,this.trigger(i.eventChangeLastSelectedDate,W)}),Se(this,"destroy",()=>{if(this.isDestroyed)return;let{showEvent:W,isMobile:re}=this.opts,fe=this.$datepicker.parentNode;fe&&fe.removeChild(this.$datepicker),this.$el.removeEventListener(W,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),re&&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}),Se(this,"update",function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},fe=A({},D.opts),{silent:Ee}=re;A(D.opts,W);let{timepicker:Ie,buttons:qe,range:je,selectedDates:Pt,isMobile:on}=D.opts,ri=D.visible||D.treatAsInline;D._createMinMaxDates(),D._limitViewDateByMaxMinDates(),D._handleLocale(),Pt&&(D.selectedDates=[],D.selectDate(Pt,{silent:Ee})),W.view&&D.setCurrentView(W.view,{silent:Ee}),D._setInputValue(),fe.range&&!je?(D.rangeDateTo=!1,D.rangeDateFrom=!1):!fe.range&&je&&D.selectedDates.length&&(D.rangeDateFrom=D.selectedDates[0],D.rangeDateTo=D.selectedDates[1]),fe.timepicker&&!Ie?(ri&&D.timepicker.destroy(),D.timepicker=!1,D.$timepicker.parentNode.removeChild(D.$timepicker)):!fe.timepicker&&Ie&&D._addTimepicker(),!fe.buttons&&qe?D._addButtons():fe.buttons&&!qe?(D.buttons.destroy(),D.$buttons.parentNode.removeChild(D.$buttons)):ri&&fe.buttons&&qe&&D.buttons.clearHtml().render(),!fe.isMobile&&on?(D.treatAsInline||Ne||D._createMobileOverlay(),D._addMobileAttributes(),D.visible&&D._showMobileOverlay()):fe.isMobile&&!on&&(D._removeMobileAttributes(),D.visible&&(Ne.classList.remove("-active-"),typeof D.opts.position!="function"&&D.setPosition())),ri&&(D.nav.update(),D.views[D.currentView].render(),D.currentView===i.days&&D.views[D.currentView].renderDayNames())}),Se(this,"disableDate",(W,re)=>{(Array.isArray(W)?W:[W]).forEach(fe=>{let Ee=C(fe);if(!Ee)return;let Ie=re?"delete":"add";this.disabledDates[Ie](this.formatDate(Ee,"yyyy-MM-dd"));let qe=this.getCell(Ee,this.currentViewSingular);qe&&qe.adpCell.render()},[])}),Se(this,"enableDate",W=>{this.disableDate(W,!0)}),Se(this,"isDateDisabled",W=>{let re=C(W);return this.disabledDates.has(this.formatDate(re,"yyyy-MM-dd"))}),Se(this,"isOtherMonth",W=>{let{month:re}=c(W);return re!==this.parsedViewDate.month}),Se(this,"isOtherYear",W=>{let{year:re}=c(W);return re!==this.parsedViewDate.year}),Se(this,"isOtherDecade",W=>{let{year:re}=c(W),[fe,Ee]=h(this.viewDate);return re<fe||re>Ee}),Se(this,"_onChangeSelectedDate",W=>{let{silent:re}=W;setTimeout(()=>{this._setInputValue(),this.opts.onSelect&&!re&&this._triggerOnSelect()})}),Se(this,"_onChangeFocusedDate",function(W){let{viewDateTransition:re}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!W)return;let fe=!1;re&&(fe=D.isOtherMonth(W)||D.isOtherYear(W)||D.isOtherDecade(W)),fe&&D.setViewDate(W),D.opts.onFocus&&D.opts.onFocus({datepicker:D,date:W})}),Se(this,"_onChangeTime",W=>{let{hours:re,minutes:fe}=W,Ee=new Date,{lastSelectedDate:Ie,opts:{onSelect:qe}}=this,je=Ie;Ie||(je=Ee);let Pt=this.getCell(je,this.currentViewSingular),on=Pt&&Pt.adpCell;on&&on.isDisabled||(je.setHours(re),je.setMinutes(fe),Ie?(this._setInputValue(),qe&&this._triggerOnSelect()):this.selectDate(je))}),Se(this,"_onFocus",W=>{this.visible||this.show()}),Se(this,"_onBlur",W=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()}),Se(this,"_onMouseDown",W=>{this.inFocus=!0}),Se(this,"_onMouseUp",W=>{this.inFocus=!1,this.$el.focus()}),Se(this,"_onResize",()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()}),Se(this,"_onClickOverlay",()=>{this.visible&&this.hide()}),Se(this,"getViewDates",function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i.days;return U.getDatesFunction(W)(D)}),Se(this,"isWeekend",W=>this.opts.weekends.includes(W)),Se(this,"getClampedDate",W=>{let{minDate:re,maxDate:fe}=this,Ee=W;return fe&&v(W,fe)?Ee=fe:re&&b(W,re)&&(Ee=re),Ee}),this.$el=r(R),!this.$el)return;this.$datepicker=a({className:"air-datepicker"}),this.opts=A({},n,F),this.$customContainer=!!this.opts.container&&r(this.opts.container),this.$altField=r(this.opts.altField||!1);let{view:G,startDate:V}=this.opts;V||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=C(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=G,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:R,treatAsInline:F,opts:{inline:D,isMobile:G,selectedDates:V,keyboardNav:W,onlyTimepicker:re}}=this,fe=r("body");(!Re||Re&&Ze&&!fe.contains(Ze))&&!D&&this.elIsInput&&!this.$customContainer&&xe.buildGlobalContainer(xe.defaultGlobalContainerId),!G||Ne||F||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(D||this._bindEvents(),W&&!re&&(this.keyboardNav=new Ae({dp:this,opts:R}))),V&&this.selectDate(V,{silent:!0}),this.opts.visible&&!F&&this.show(),G&&!F&&this.$el.setAttribute("readonly",!0),F&&this._createComponents()}_createMobileOverlay(){Ne=a({className:"air-datepicker-overlay"}),Ze.appendChild(Ne)}_createComponents(){let{opts:R,treatAsInline:F,opts:{inline:D,buttons:G,timepicker:V,position:W,classes:re,onlyTimepicker:fe,isMobile:Ee}}=this;this._buildBaseHtml(),this.elIsInput&&(D||this._setPositionClasses(W)),!D&&this.elIsInput||this.$datepicker.classList.add("-inline-"),re&&this.$datepicker.classList.add(...re.split(" ")),fe&&this.$datepicker.classList.add("-only-timepicker-"),Ee&&!F&&this._addMobileAttributes(),this.views[this.currentView]=new U({dp:this,type:this.currentView,opts:R}),this.nav=new ae({dp:this,opts:R}),V&&this._addTimepicker(),G&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let R in this.views)this.views[R].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){Ne.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){Ne.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:R,maxDate:F}=this.opts;this.minDate=!!R&&C(R),this.maxDate=!!F&&C(F)}_addTimepicker(){this.$timepicker=a({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new _e({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 se({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(i.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(i.eventChangeFocusDate,this._onChangeFocusedDate),this.on(i.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:R}=this.opts;var F,D;this.elIsInput?R?(F=this.$datepicker,(D=this.$el).parentNode.insertBefore(F,D.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=r(".air-datepicker--content",this.$datepicker),this.$pointer=r(".air-datepicker--pointer",this.$datepicker),this.$nav=r(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:R,dateFormat:F,firstDay:D,timepicker:G,onlyTimepicker:V,timeFormat:W,dateTimeSeparator:re}=this.opts;var fe;this.locale=(fe=R,JSON.parse(JSON.stringify(fe))),F&&(this.locale.dateFormat=F),W!==void 0&&W!==""&&(this.locale.timeFormat=W);let{timeFormat:Ee}=this.locale;if(D!==""&&(this.locale.firstDay=D),G&&typeof F!="function"){let Ie=Ee?re:"";this.locale.dateFormat=[this.locale.dateFormat,Ee||""].join(Ie)}V&&typeof F!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(R){if(typeof R=="function")return void this.$datepicker.classList.add("-custom-position-");let F=(R=R.split(" "))[0],D=`air-datepicker -${F}-${R[1]}- -from-${F}-`;this.$datepicker.classList.add(...D.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:R,minDate:F,maxDate:D}=this;D&&v(R,D)&&this.setViewDate(D),F&&b(R,F)&&this.setViewDate(F)}formatDate(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,F=arguments.length>1?arguments[1]:void 0;if(R=C(R),!(R instanceof Date))return;let D=F,G=this.locale,V=c(R),W=V.dayPeriod,re=h(R),fe=xe.replacer,Ee={T:R.getTime(),m:V.minutes,mm:V.fullMinutes,h:V.hours12,hh:V.fullHours12,H:V.hours,HH:V.fullHours,aa:W,AA:W.toUpperCase(),E:G.daysShort[V.day],EEEE:G.days[V.day],d:V.date,dd:V.fullDate,M:V.month+1,MM:V.fullMonth,MMM:G.monthsShort[V.month],MMMM:G.months[V.month],yy:V.year.toString().slice(-2),yyyy:V.year,yyyy1:re[0],yyyy2:re[1]};for(let[Ie,qe]of Object.entries(Ee))D=fe(D,L(Ie),qe);return D}down(R){this._handleUpDownActions(R,"down")}up(R){this._handleUpDownActions(R,"up")}selectDate(R){let F,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:G,parsedViewDate:V,selectedDates:W}=this,{updateTime:re}=D,{moveToOtherMonthsOnSelect:fe,moveToOtherYearsOnSelect:Ee,multipleDates:Ie,range:qe,autoClose:je,onBeforeSelect:Pt}=this.opts,on=W.length;if(Array.isArray(R))return R.forEach(ri=>{this.selectDate(ri,D)}),new Promise(ri=>{setTimeout(ri)});if((R=C(R))instanceof Date){if(Pt&&!Pt({date:R,datepicker:this}))return Promise.resolve();if(G===i.days&&R.getMonth()!==V.month&&fe&&(F=new Date(R.getFullYear(),R.getMonth(),1)),G===i.years&&R.getFullYear()!==V.year&&Ee&&(F=new Date(R.getFullYear(),0,1)),F&&this.setViewDate(F),Ie&&!qe){if(on===Ie)return;this._checkIfDateIsSelected(R)||W.push(R)}else if(qe)switch(on){case 1:W.push(R),this.rangeDateTo||(this.rangeDateTo=R),v(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=R),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[R],this.rangeDateFrom=R,this.rangeDateTo="";break;default:this.selectedDates=[R],this.rangeDateFrom=R}else this.selectedDates=[R];return this.trigger(i.eventChangeSelectedDate,{action:i.actionSelectDate,silent:D==null?void 0:D.silent,date:R,updateTime:re}),this._updateLastSelectedDate(R),je&&!this.timepickerIsActive&&this.visible&&(Ie||qe?qe&&on===1&&this.hide():this.hide()),new Promise(ri=>{setTimeout(ri)})}}unselectDate(R){let F=this.selectedDates,D=this;if((R=C(R))instanceof Date)return F.some((G,V)=>{if(m(G,R))return F.splice(V,1),D.selectedDates.length?(D.rangeDateTo="",D.rangeDateFrom=F[0],D._updateLastSelectedDate(D.selectedDates[D.selectedDates.length-1])):(D.rangeDateFrom="",D.rangeDateTo="",D._updateLastSelectedDate(!1)),this.trigger(i.eventChangeSelectedDate,{action:i.actionUnselectDate,date:R}),!0})}replaceDate(R,F){let D=this.selectedDates.find(V=>m(V,R,this.currentView)),G=this.selectedDates.indexOf(D);G<0||m(this.selectedDates[G],F,this.currentView)||(this.selectedDates[G]=F,this.trigger(i.eventChangeSelectedDate,{action:i.actionSelectDate,date:F,updateTime:!0}),this._updateLastSelectedDate(F))}clear(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(i.eventChangeSelectedDate,{action:i.actionUnselectDate,silent:R.silent}),new Promise(F=>{setTimeout(F)})}show(){let{onShow:R,isMobile:F}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,R&&this._scheduleCallAfterTransition(R),F&&this._showMobileOverlay()}hide(){let{onHide:R,isMobile:F}=this.opts,D=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition(G=>{!this.customHide&&(G&&D||!G&&!D)&&this._finishHide(),R&&R(G)}),F&&Ne.classList.remove("-active-")}_triggerOnSelect(){let R=[],F=[],{selectedDates:D,locale:G,opts:{onSelect:V,multipleDates:W,range:re}}=this,fe=W||re,Ee=typeof G.dateFormat=="function";D.length&&(R=D.map(x),F=Ee?W?G.dateFormat(R):R.map(Ie=>G.dateFormat(Ie)):R.map(Ie=>this.formatDate(Ie,G.dateFormat))),V({date:fe?R:R[0],formattedDate:fe?F:F[0],datepicker:this})}_handleAlreadySelectedDates(R,F){let{selectedDates:D,rangeDateFrom:G,rangeDateTo:V}=this,{range:W,toggleSelected:re}=this.opts,fe=D.length,Ee=typeof re=="function"?re({datepicker:this,date:F}):re,Ie=!!(W&&fe===1&&R),qe=Ie?x(F):F;W&&!Ee&&(fe!==2&&this.selectDate(qe),fe===2&&m(G,V))||(Ee?this.unselectDate(qe):this._updateLastSelectedDate(Ie?qe:R))}_handleUpDownActions(R,F){if(!((R=C(R||this.focusDate||this.viewDate))instanceof Date))return;let D=F==="up"?this.viewIndex+1:this.viewIndex-1;D>2&&(D=2),D<0&&(D=0),this.setViewDate(new Date(R.getFullYear(),R.getMonth(),1)),this.setCurrentView(this.viewIndexes[D])}getCell(R){let F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:i.day;if(!((R=C(R))instanceof Date))return;let{year:D,month:G,date:V}=c(R),W=`[data-year="${D}"]`,re=`[data-month="${G}"]`,fe={[i.day]:`${W}${re}[data-date="${V}"]`,[i.month]:`${W}${re}`,[i.year]:`${W}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(fe[F]):void 0}_showMobileOverlay(){Ne.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((R,F)=>parseFloat(F)+R,0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return c(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return h(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===i.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===i.days}get $container(){return this.$customContainer||Ze}static replacer(R,F,D){return R.replace(F,function(G,V,W,re){return V+D+re})}}var Te;return Se(xe,"defaults",n),Se(xe,"version","3.5.3"),Se(xe,"defaultGlobalContainerId","air-datepicker-global-container"),Te=xe.prototype,Object.assign(Te,Le),t.default}()})});var q1,Bm=window,vd=Bm.trustedTypes,k3=vd?vd.createPolicy("lit-html",{createHTML:o=>o}):void 0,Wm="$lit$",$a=`lit$${(Math.random()+"").slice(9)}$`,R1="?"+$a,RF=`<${R1}>`,Jl=document,jm=()=>Jl.createComment(""),Sh=o=>o===null||typeof o!="object"&&typeof o!="function",T3=Array.isArray,M3=o=>T3(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",P1=`[
22
22
  \f\r]`,Ch=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_3=/-->/g,z3=/>/g,Xl=RegExp(`>|${P1}(?:([^\\s"'>=/]+)(${P1}*=${P1}*(?:[^
23
23
  \f\r"'\`<>=]|("|')|))|$)`,"g"),C3=/'/g,S3=/"/g,L3=/^(?:script|style|textarea|title)$/i,q3=o=>(t,...i)=>({_$litType$:o,strings:t,values:i}),P3=q3(1),R3=q3(2),Zi=Symbol.for("lit-noChange"),Rt=Symbol.for("lit-nothing"),A3=new WeakMap,Kl=Jl.createTreeWalker(Jl,129,null,!1);function O3(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return k3!==void 0?k3.createHTML(t):t}var D3=(o,t)=>{let i=o.length-1,n=[],r,a=t===2?"<svg>":"",s=Ch;for(let l=0;l<i;l++){let c=o[l],d,f,h=-1,p=0;for(;p<c.length&&(s.lastIndex=p,f=s.exec(c),f!==null);)p=s.lastIndex,s===Ch?f[1]==="!--"?s=_3:f[1]!==void 0?s=z3:f[2]!==void 0?(L3.test(f[2])&&(r=RegExp("</"+f[2],"g")),s=Xl):f[3]!==void 0&&(s=Xl):s===Xl?f[0]===">"?(s=r!=null?r:Ch,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,d=f[1],s=f[3]===void 0?Xl:f[3]==='"'?S3:C3):s===S3||s===C3?s=Xl:s===_3||s===z3?s=Ch:(s=Xl,r=void 0);let m=s===Xl&&o[l+1].startsWith("/>")?" ":"";a+=s===Ch?c+RF:h>=0?(n.push(d),c.slice(0,h)+Wm+c.slice(h)+$a+m):c+$a+(h===-2?(n.push(void 0),l):m)}return[O3(o,a+(o[i]||"<?>")+(t===2?"</svg>":"")),n]},Ah=class o{constructor({strings:t,_$litType$:i},n){let r;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,f]=D3(t,i);if(this.el=o.createElement(d,n),Kl.currentNode=this.el.content,i===2){let h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(r=Kl.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes()){let h=[];for(let p of r.getAttributeNames())if(p.endsWith(Wm)||p.startsWith($a)){let m=f[s++];if(h.push(p),m!==void 0){let v=r.getAttribute(m.toLowerCase()+Wm).split($a),b=/([.?@])?(.*)/.exec(m);c.push({type:1,index:a,name:b[2],strings:v,ctor:b[1]==="."?Um:b[1]==="?"?Gm:b[1]==="@"?Ym:Zl})}else c.push({type:6,index:a})}for(let p of h)r.removeAttribute(p)}if(L3.test(r.tagName)){let h=r.textContent.split($a),p=h.length-1;if(p>0){r.textContent=vd?vd.emptyScript:"";for(let m=0;m<p;m++)r.append(h[m],jm()),Kl.nextNode(),c.push({type:2,index:++a});r.append(h[p],jm())}}}else if(r.nodeType===8)if(r.data===R1)c.push({type:2,index:a});else{let h=-1;for(;(h=r.data.indexOf($a,h+1))!==-1;)c.push({type:7,index:a}),h+=$a.length-1}a++}}static createElement(t,i){let n=Jl.createElement("template");return n.innerHTML=t,n}};function Ql(o,t,i=o,n){var r,a,s,l;if(t===Zi)return t;let c=n!==void 0?(r=i._$Co)===null||r===void 0?void 0:r[n]:i._$Cl,d=Sh(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==d&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),d===void 0?c=void 0:(c=new d(o),c._$AT(o,i,n)),n!==void 0?((s=(l=i)._$Co)!==null&&s!==void 0?s:l._$Co=[])[n]=c:i._$Cl=c),c!==void 0&&(t=Ql(o,c._$AS(o,t.values),c,n)),t}var Vm=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:n},parts:r}=this._$AD,a=((i=t==null?void 0:t.creationScope)!==null&&i!==void 0?i:Jl).importNode(n,!0);Kl.currentNode=a;let s=Kl.nextNode(),l=0,c=0,d=r[0];for(;d!==void 0;){if(l===d.index){let f;d.type===2?f=new Eh(s,s.nextSibling,this,t):d.type===1?f=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(f=new Xm(s,this,t)),this._$AV.push(f),d=r[++c]}l!==(d==null?void 0:d.index)&&(s=Kl.nextNode(),l++)}return Kl.currentNode=Jl,a}v(t){let i=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}},Eh=class o{constructor(t,i,n,r){var a;this.type=2,this._$AH=Rt,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=r,this._$Cp=(a=r==null?void 0:r.isConnected)===null||a===void 0||a}get _$AU(){var t,i;return(i=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Ql(this,t,i),Sh(t)?t===Rt||t==null||t===""?(this._$AH!==Rt&&this._$AR(),this._$AH=Rt):t!==this._$AH&&t!==Zi&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):M3(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Rt&&Sh(this._$AH)?this._$AA.nextSibling.data=t:this.$(Jl.createTextNode(t)),this._$AH=t}g(t){var i;let{values:n,_$litType$:r}=t,a=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ah.createElement(O3(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===a)this._$AH.v(n);else{let s=new Vm(a,this),l=s.u(this.options);s.v(n),this.$(l),this._$AH=s}}_$AC(t){let i=A3.get(t.strings);return i===void 0&&A3.set(t.strings,i=new Ah(t)),i}T(t){T3(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,n,r=0;for(let a of t)r===i.length?i.push(n=new o(this.k(jm()),this.k(jm()),this,this.options)):n=i[r],n._$AI(a),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,i);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cp=t,(i=this._$AP)===null||i===void 0||i.call(this,t))}},Zl=class{constructor(t,i,n,r,a){this.type=1,this._$AH=Rt,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Rt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,n,r){let a=this.strings,s=!1;if(a===void 0)t=Ql(this,t,i,0),s=!Sh(t)||t!==this._$AH&&t!==Zi,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=Ql(this,l[n+c],i,c),d===Zi&&(d=this._$AH[c]),s||(s=!Sh(d)||d!==this._$AH[c]),d===Rt?t=Rt:t!==Rt&&(t+=(d!=null?d:"")+a[c+1]),this._$AH[c]=d}s&&!r&&this.j(t)}j(t){t===Rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},Um=class extends Zl{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Rt?void 0:t}},OF=vd?vd.emptyScript:"",Gm=class extends Zl{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Rt?this.element.setAttribute(this.name,OF):this.element.removeAttribute(this.name)}},Ym=class extends Zl{constructor(t,i,n,r,a){super(t,i,n,r,a),this.type=5}_$AI(t,i=this){var n;if((t=(n=Ql(this,t,i,0))!==null&&n!==void 0?n:Rt)===Zi)return;let r=this._$AH,a=t===Rt&&r!==Rt||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==Rt&&(r===Rt||a);a&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,n;typeof this._$AH=="function"?this._$AH.call((n=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&n!==void 0?n:this.element,t):this._$AH.handleEvent(t)}},Xm=class{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Ql(this,t)}},$3={O:Wm,P:$a,A:R1,C:1,M:D3,L:Vm,R:M3,D:Ql,I:Eh,V:Zl,H:Gm,N:Ym,U:Um,F:Xm},E3=Bm.litHtmlPolyfillSupport;E3==null||E3(Ah,Eh),((q1=Bm.litHtmlVersions)!==null&&q1!==void 0?q1:Bm.litHtmlVersions=[]).push("2.8.0");var en={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},zr=o=>(...t)=>({_$litDirective$:o,values:t}),Fn=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,n){this._$Ct=t,this._$AM=i,this._$Ci=n}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};var ce=zr(class extends Fn{constructor(o){var t;if(super(o),o.type!==en.ATTRIBUTE||o.name!=="class"||((t=o.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){var i,n;if(this.it===void 0){this.it=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(a=>a!=="")));for(let a in t)t[a]&&!(!((i=this.nt)===null||i===void 0)&&i.has(a))&&this.it.add(a);return this.render(t)}let r=o.element.classList;this.it.forEach(a=>{a in t||(r.remove(a),this.it.delete(a))});for(let a in t){let s=!!t[a];s===this.it.has(a)||!((n=this.nt)===null||n===void 0)&&n.has(a)||(s?(r.add(a),this.it.add(a)):(r.remove(a),this.it.delete(a)))}return Zi}});var Km=window,Qm=Km.ShadowRoot&&(Km.ShadyCSS===void 0||Km.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,F3=Symbol(),I3=new WeakMap,Jm=class{constructor(t,i,n){if(this._$cssResult$=!0,n!==F3)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o,i=this.t;if(Qm&&t===void 0){let n=i!==void 0&&i.length===1;n&&(t=I3.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&I3.set(i,t))}return t}toString(){return this.cssText}},N3=o=>new Jm(typeof o=="string"?o:o+"",void 0,F3);var O1=(o,t)=>{Qm?o.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):t.forEach(i=>{let n=document.createElement("style"),r=Km.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=i.cssText,o.appendChild(n)})},Zm=Qm?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let i="";for(let n of t.cssRules)i+=n.cssText;return N3(i)})(o):o;var D1,eg=window,H3=eg.trustedTypes,DF=H3?H3.emptyScript:"",B3=eg.reactiveElementPolyfillSupport,I1={toAttribute(o,t){switch(t){case Boolean:o=o?DF:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let i=o;switch(t){case Boolean:i=o!==null;break;case Number:i=o===null?null:Number(o);break;case Object:case Array:try{i=JSON.parse(o)}catch(n){i=null}}return i}},W3=(o,t)=>t!==o&&(t==t||o==o),$1={attribute:!0,type:String,converter:I1,reflect:!1,hasChanged:W3},F1="finalized",ec=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((i,n)=>{let r=this._$Ep(n,i);r!==void 0&&(this._$Ev.set(r,n),t.push(r))}),t}static createProperty(t,i=$1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,i);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,i,n){return{get(){return this[i]},set(r){let a=this[t];this[i]=r,this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$1}static finalize(){if(this.hasOwnProperty(F1))return!1;this[F1]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let i=this.properties,n=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let r of n)this.createProperty(r,i[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let r of n)i.unshift(Zm(r))}else t!==void 0&&i.push(Zm(t));return i}static _$Ep(t,i){let n=i.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(i=>i(this))}addController(t){var i,n;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var t;let i=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return O1(i,this.constructor.elementStyles),i}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var n;return(n=i.hostConnected)===null||n===void 0?void 0:n.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var n;return(n=i.hostDisconnected)===null||n===void 0?void 0:n.call(i)})}attributeChangedCallback(t,i,n){this._$AK(t,n)}_$EO(t,i,n=$1){var r;let a=this.constructor._$Ep(t,n);if(a!==void 0&&n.reflect===!0){let s=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:I1).toAttribute(i,n.type);this._$El=t,s==null?this.removeAttribute(a):this.setAttribute(a,s),this._$El=null}}_$AK(t,i){var n;let r=this.constructor,a=r._$Ev.get(t);if(a!==void 0&&this._$El!==a){let s=r.getPropertyOptions(a),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:I1;this._$El=a,this[a]=l.fromAttribute(i,s.type),this._$El=null}}requestUpdate(t,i,n){let r=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||W3)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,a)=>this[a]=r),this._$Ei=void 0);let i=!1,n=this._$AL;try{i=this.shouldUpdate(n),i?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var a;return(a=r.hostUpdate)===null||a===void 0?void 0:a.call(r)}),this.update(n)):this._$Ek()}catch(r){throw i=!1,this._$Ek(),r}i&&this._$AE(n)}willUpdate(t){}_$AE(t){var i;(i=this._$ES)===null||i===void 0||i.forEach(n=>{var r;return(r=n.hostUpdated)===null||r===void 0?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((i,n)=>this._$EO(n,this[n],i)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};ec[F1]=!0,ec.elementProperties=new Map,ec.elementStyles=[],ec.shadowRootOptions={mode:"open"},B3==null||B3({ReactiveElement:ec}),((D1=eg.reactiveElementVersions)!==null&&D1!==void 0?D1:eg.reactiveElementVersions=[]).push("1.6.3");var tg=window,ig=tg.ShadowRoot&&(tg.ShadyCSS===void 0||tg.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,N1=Symbol(),j3=new WeakMap,Th=class{constructor(t,i,n){if(this._$cssResult$=!0,n!==N1)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=i}get styleSheet(){let t=this.o,i=this.t;if(ig&&t===void 0){let n=i!==void 0&&i.length===1;n&&(t=j3.get(i)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&j3.set(i,t))}return t}toString(){return this.cssText}},Z=o=>new Th(typeof o=="string"?o:o+"",void 0,N1),te=(o,...t)=>{let i=o.length===1?o[0]:t.reduce((n,r,a)=>n+(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.")})(r)+o[a+1],o[0]);return new Th(i,o,N1)},H1=(o,t)=>{ig?o.adoptedStyleSheets=t.map(i=>i instanceof CSSStyleSheet?i:i.styleSheet):t.forEach(i=>{let n=document.createElement("style"),r=tg.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=i.cssText,o.appendChild(n)})},ng=ig?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let i="";for(let n of t.cssRules)i+=n.cssText;return Z(i)})(o):o;var B1,rg=window,V3=rg.trustedTypes,$F=V3?V3.emptyScript:"",U3=rg.reactiveElementPolyfillSupport,yd={toAttribute(o,t){switch(t){case Boolean:o=o?$F:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let i=o;switch(t){case Boolean:i=o!==null;break;case Number:i=o===null?null:Number(o);break;case Object:case Array:try{i=JSON.parse(o)}catch(n){i=null}}return i}},G3=(o,t)=>t!==o&&(t==t||o==o),W1={attribute:!0,type:String,converter:yd,reflect:!1,hasChanged:G3},j1="finalized",Ia=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var i;this.finalize(),((i=this.h)!==null&&i!==void 0?i:this.h=[]).push(t)}static get observedAttributes(){this.finalize();let t=[];return this.elementProperties.forEach((i,n)=>{let r=this._$Ep(n,i);r!==void 0&&(this._$Ev.set(r,n),t.push(r))}),t}static createProperty(t,i=W1){if(i.state&&(i.attribute=!1),this.finalize(),this.elementProperties.set(t,i),!i.noAccessor&&!this.prototype.hasOwnProperty(t)){let n=typeof t=="symbol"?Symbol():"__"+t,r=this.getPropertyDescriptor(t,n,i);r!==void 0&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,i,n){return{get(){return this[i]},set(r){let a=this[t];this[i]=r,this.requestUpdate(t,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||W1}static finalize(){if(this.hasOwnProperty(j1))return!1;this[j1]=!0;let t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let i=this.properties,n=[...Object.getOwnPropertyNames(i),...Object.getOwnPropertySymbols(i)];for(let r of n)this.createProperty(r,i[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){let i=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let r of n)i.unshift(ng(r))}else t!==void 0&&i.push(ng(t));return i}static _$Ep(t,i){let n=i.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(i=>this.enableUpdating=i),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(i=>i(this))}addController(t){var i,n;((i=this._$ES)!==null&&i!==void 0?i:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)===null||n===void 0||n.call(t))}removeController(t){var i;(i=this._$ES)===null||i===void 0||i.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,i)=>{this.hasOwnProperty(i)&&(this._$Ei.set(i,this[i]),delete this[i])})}createRenderRoot(){var t;let i=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return H1(i,this.constructor.elementStyles),i}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var n;return(n=i.hostConnected)===null||n===void 0?void 0:n.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(i=>{var n;return(n=i.hostDisconnected)===null||n===void 0?void 0:n.call(i)})}attributeChangedCallback(t,i,n){this._$AK(t,n)}_$EO(t,i,n=W1){var r;let a=this.constructor._$Ep(t,n);if(a!==void 0&&n.reflect===!0){let s=(((r=n.converter)===null||r===void 0?void 0:r.toAttribute)!==void 0?n.converter:yd).toAttribute(i,n.type);this._$El=t,s==null?this.removeAttribute(a):this.setAttribute(a,s),this._$El=null}}_$AK(t,i){var n;let r=this.constructor,a=r._$Ev.get(t);if(a!==void 0&&this._$El!==a){let s=r.getPropertyOptions(a),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:yd;this._$El=a,this[a]=l.fromAttribute(i,s.type),this._$El=null}}requestUpdate(t,i,n){let r=!0;t!==void 0&&(((n=n||this.constructor.getPropertyOptions(t)).hasChanged||G3)(this[t],i)?(this._$AL.has(t)||this._$AL.set(t,i),n.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,n))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(i){Promise.reject(i)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((r,a)=>this[a]=r),this._$Ei=void 0);let i=!1,n=this._$AL;try{i=this.shouldUpdate(n),i?(this.willUpdate(n),(t=this._$ES)===null||t===void 0||t.forEach(r=>{var a;return(a=r.hostUpdate)===null||a===void 0?void 0:a.call(r)}),this.update(n)):this._$Ek()}catch(r){throw i=!1,this._$Ek(),r}i&&this._$AE(n)}willUpdate(t){}_$AE(t){var i;(i=this._$ES)===null||i===void 0||i.forEach(n=>{var r;return(r=n.hostUpdated)===null||r===void 0?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((i,n)=>this._$EO(n,this[n],i)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};Ia[j1]=!0,Ia.elementProperties=new Map,Ia.elementStyles=[],Ia.shadowRootOptions={mode:"open"},U3==null||U3({ReactiveElement:Ia}),((B1=rg.reactiveElementVersions)!==null&&B1!==void 0?B1:rg.reactiveElementVersions=[]).push("1.6.3");var V1,og=window,xd=og.trustedTypes,Y3=xd?xd.createPolicy("lit-html",{createHTML:o=>o}):void 0,G1="$lit$",Ws=`lit$${(Math.random()+"").slice(9)}$`,t4="?"+Ws,IF=`<${t4}>`,nc=document,Lh=()=>nc.createComment(""),qh=o=>o===null||typeof o!="object"&&typeof o!="function",i4=Array.isArray,FF=o=>i4(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",U1=`[
24
24
  \f\r]`,Mh=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X3=/-->/g,K3=/>/g,tc=RegExp(`>|${U1}(?:([^\\s"'>=/]+)(${U1}*=${U1}*(?:[^
25
- \f\r"'\`<>=]|("|')|))|$)`,"g"),J3=/'/g,Q3=/"/g,n4=/^(?:script|style|textarea|title)$/i,r4=o=>(t,...i)=>({_$litType$:o,strings:t,values:i}),T=r4(1),joe=r4(2),rc=Symbol.for("lit-noChange"),Ve=Symbol.for("lit-nothing"),Z3=new WeakMap,ic=nc.createTreeWalker(nc,129,null,!1);function o4(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Y3!==void 0?Y3.createHTML(t):t}var NF=(o,t)=>{let i=o.length-1,n=[],r,a=t===2?"<svg>":"",s=Mh;for(let l=0;l<i;l++){let c=o[l],d,f,h=-1,p=0;for(;p<c.length&&(s.lastIndex=p,f=s.exec(c),f!==null);)p=s.lastIndex,s===Mh?f[1]==="!--"?s=X3:f[1]!==void 0?s=K3:f[2]!==void 0?(n4.test(f[2])&&(r=RegExp("</"+f[2],"g")),s=tc):f[3]!==void 0&&(s=tc):s===tc?f[0]===">"?(s=r!=null?r:Mh,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,d=f[1],s=f[3]===void 0?tc:f[3]==='"'?Q3:J3):s===Q3||s===J3?s=tc:s===X3||s===K3?s=Mh:(s=tc,r=void 0);let m=s===tc&&o[l+1].startsWith("/>")?" ":"";a+=s===Mh?c+IF:h>=0?(n.push(d),c.slice(0,h)+G1+c.slice(h)+Ws+m):c+Ws+(h===-2?(n.push(void 0),l):m)}return[o4(o,a+(o[i]||"<?>")+(t===2?"</svg>":"")),n]},Ph=class o{constructor({strings:t,_$litType$:i},n){let r;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,f]=NF(t,i);if(this.el=o.createElement(d,n),ic.currentNode=this.el.content,i===2){let h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(r=ic.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes()){let h=[];for(let p of r.getAttributeNames())if(p.endsWith(G1)||p.startsWith(Ws)){let m=f[s++];if(h.push(p),m!==void 0){let v=r.getAttribute(m.toLowerCase()+G1).split(Ws),b=/([.?@])?(.*)/.exec(m);c.push({type:1,index:a,name:b[2],strings:v,ctor:b[1]==="."?X1:b[1]==="?"?K1:b[1]==="@"?J1:kd})}else c.push({type:6,index:a})}for(let p of h)r.removeAttribute(p)}if(n4.test(r.tagName)){let h=r.textContent.split(Ws),p=h.length-1;if(p>0){r.textContent=xd?xd.emptyScript:"";for(let m=0;m<p;m++)r.append(h[m],Lh()),ic.nextNode(),c.push({type:2,index:++a});r.append(h[p],Lh())}}}else if(r.nodeType===8)if(r.data===t4)c.push({type:2,index:a});else{let h=-1;for(;(h=r.data.indexOf(Ws,h+1))!==-1;)c.push({type:7,index:a}),h+=Ws.length-1}a++}}static createElement(t,i){let n=nc.createElement("template");return n.innerHTML=t,n}};function wd(o,t,i=o,n){var r,a,s,l;if(t===rc)return t;let c=n!==void 0?(r=i._$Co)===null||r===void 0?void 0:r[n]:i._$Cl,d=qh(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==d&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),d===void 0?c=void 0:(c=new d(o),c._$AT(o,i,n)),n!==void 0?((s=(l=i)._$Co)!==null&&s!==void 0?s:l._$Co=[])[n]=c:i._$Cl=c),c!==void 0&&(t=wd(o,c._$AS(o,t.values),c,n)),t}var Y1=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:n},parts:r}=this._$AD,a=((i=t==null?void 0:t.creationScope)!==null&&i!==void 0?i:nc).importNode(n,!0);ic.currentNode=a;let s=ic.nextNode(),l=0,c=0,d=r[0];for(;d!==void 0;){if(l===d.index){let f;d.type===2?f=new Rh(s,s.nextSibling,this,t):d.type===1?f=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(f=new Q1(s,this,t)),this._$AV.push(f),d=r[++c]}l!==(d==null?void 0:d.index)&&(s=ic.nextNode(),l++)}return ic.currentNode=nc,a}v(t){let i=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}},Rh=class o{constructor(t,i,n,r){var a;this.type=2,this._$AH=Ve,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=r,this._$Cp=(a=r==null?void 0:r.isConnected)===null||a===void 0||a}get _$AU(){var t,i;return(i=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=wd(this,t,i),qh(t)?t===Ve||t==null||t===""?(this._$AH!==Ve&&this._$AR(),this._$AH=Ve):t!==this._$AH&&t!==rc&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):FF(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Ve&&qh(this._$AH)?this._$AA.nextSibling.data=t:this.$(nc.createTextNode(t)),this._$AH=t}g(t){var i;let{values:n,_$litType$:r}=t,a=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ph.createElement(o4(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===a)this._$AH.v(n);else{let s=new Y1(a,this),l=s.u(this.options);s.v(n),this.$(l),this._$AH=s}}_$AC(t){let i=Z3.get(t.strings);return i===void 0&&Z3.set(t.strings,i=new Ph(t)),i}T(t){i4(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,n,r=0;for(let a of t)r===i.length?i.push(n=new o(this.k(Lh()),this.k(Lh()),this,this.options)):n=i[r],n._$AI(a),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,i);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cp=t,(i=this._$AP)===null||i===void 0||i.call(this,t))}},kd=class{constructor(t,i,n,r,a){this.type=1,this._$AH=Ve,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ve}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,n,r){let a=this.strings,s=!1;if(a===void 0)t=wd(this,t,i,0),s=!qh(t)||t!==this._$AH&&t!==rc,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=wd(this,l[n+c],i,c),d===rc&&(d=this._$AH[c]),s||(s=!qh(d)||d!==this._$AH[c]),d===Ve?t=Ve:t!==Ve&&(t+=(d!=null?d:"")+a[c+1]),this._$AH[c]=d}s&&!r&&this.j(t)}j(t){t===Ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},X1=class extends kd{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ve?void 0:t}},HF=xd?xd.emptyScript:"",K1=class extends kd{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Ve?this.element.setAttribute(this.name,HF):this.element.removeAttribute(this.name)}},J1=class extends kd{constructor(t,i,n,r,a){super(t,i,n,r,a),this.type=5}_$AI(t,i=this){var n;if((t=(n=wd(this,t,i,0))!==null&&n!==void 0?n:Ve)===rc)return;let r=this._$AH,a=t===Ve&&r!==Ve||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==Ve&&(r===Ve||a);a&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,n;typeof this._$AH=="function"?this._$AH.call((n=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&n!==void 0?n:this.element,t):this._$AH.handleEvent(t)}},Q1=class{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){wd(this,t)}};var e4=og.litHtmlPolyfillSupport;e4==null||e4(Ph,Rh),((V1=og.litHtmlVersions)!==null&&V1!==void 0?V1:og.litHtmlVersions=[]).push("2.8.0");var _d=(o,t,i)=>{var n,r;let a=(n=i==null?void 0:i.renderBefore)!==null&&n!==void 0?n:t,s=a._$litPart$;if(s===void 0){let l=(r=i==null?void 0:i.renderBefore)!==null&&r!==void 0?r:null;a._$litPart$=s=new Rh(t.insertBefore(Lh(),l),l,void 0,i!=null?i:{})}return s._$AI(o),s};var Z1,ey;var js=class extends Ia{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let n=super.createRenderRoot();return(t=(i=this.renderOptions).renderBefore)!==null&&t!==void 0||(i.renderBefore=n.firstChild),n}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=_d(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return rc}};js.finalized=!0,js._$litElement$=!0,(Z1=globalThis.litElementHydrateSupport)===null||Z1===void 0||Z1.call(globalThis,{LitElement:js});var a4=globalThis.litElementPolyfillSupport;a4==null||a4({LitElement:js});((ey=globalThis.litElementVersions)!==null&&ey!==void 0?ey:globalThis.litElementVersions=[]).push("3.3.3");var Oh=new WeakMap,Dh=new WeakMap,$h=new WeakMap,ty=new WeakSet,ag=new WeakMap,rt=class{constructor(t,i){this.handleFormData=t=>{let i=this.options.disabled(this.host),n=this.options.name(this.host),r=this.options.value(this.host),a=this.host.tagName.toLowerCase()==="zn-button";if(this.host.isConnected&&!i&&!a&&n.length>0&&typeof r!="undefined"){let s=f=>{t.formData.append(n,f.toString())},l=(f,h)=>{let p=f,m=h!=null?h:typeof p.name=="string"?p.name:void 0;typeof m=="string"?t.formData.append(n,f,m):t.formData.append(n,f)},c=f=>typeof FileList!="undefined"&&f instanceof FileList,d=f=>typeof Blob!="undefined"&&f instanceof Blob;if(c(r)){if(r.length>0)for(let f=0;f<r.length;f++){let h=r.item(f);h&&l(h,h.name)}}else d(r)?l(r,r.name):Array.isArray(r)?r.forEach(f=>{if(d(f))l(f,f.name);else if(c(f)){let h=f;for(let p=0;p<h.length;p++){let m=h.item(p);m&&l(m,m.name)}}else s(f)}):s(r);this.host.dispatchEvent(new CustomEvent("zn-formdata",{bubbles:!0,composed:!0}))}};this.handleFormSubmit=t=>{var s,l,c;let i=this.options.disabled(this.host),n=this.options.reportValidity;this.form&&!this.form.noValidate&&((s=Oh.get(this.form))==null||s.forEach(d=>{this.setUserInteracted(d,!0)}));let r=(l=this.form)==null?void 0:l.querySelector('[type="submit"]'),a=(c=r==null?void 0:r.innerHTML)!=null?c:"Submit";r&&(r.setAttribute("data-original-text",a),setTimeout(()=>{var d,f;r.disabled=!0,r.innerHTML=(d=this.form)!=null&&d.hasAttribute("data-no-loading-text")?a:((f=this.form)==null?void 0:f.getAttribute("data-loading-text"))||"Processing..."},20),setTimeout(()=>{r.disabled=!1,r.innerHTML=a},15e3)),this.form&&!this.form.noValidate&&!i&&!n(this.host)&&(t.preventDefault(),t.stopImmediatePropagation(),r&&(r.disabled=!1,r.innerHTML=a))};this.enableSubmit=t=>{var r,a;if(t.target!==this.form)return;let n=(r=this.form)==null?void 0:r.querySelector('[type="submit"]');if(n){let s=(a=n.getAttribute("data-original-text"))!=null?a:n.innerHTML;n.disabled=!1,n.innerHTML=s}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),ag.set(this.host,[])};this.handleInteraction=t=>{let i=ag.get(this.host);i.includes(t.type)||i.push(t.type),i.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0),this.checkFormValidity()};this.checkFormValidity=()=>{var i;let t=(i=this.form)==null?void 0:i.querySelector('[type="submit"]');if(this.form&&!this.form.noValidate){let n=this.form.querySelectorAll("*");for(let r of n)if(typeof r.checkValidity=="function"&&!r.checkValidity())return t==null||t.setAttribute("disabled","disabled"),!1}return t==null||t.removeAttribute("disabled"),!0};this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let i of t)if(typeof i.reportValidity=="function"&&!i.reportValidity())return!1}return!0};(this.host=t).addController(this),this.options=Ce({form:n=>{let r=n.form;if(r){let s=n.getRootNode().querySelector(`#${r}`);if(s)return s}return n.closest("form")},name:n=>n.name,value:n=>n.value,defaultValue:n=>n.defaultValue,disabled:n=>{var r;return(r=n.disabled)!=null?r:!1},reportValidity:n=>typeof n.reportValidity=="function"?n.reportValidity():!0,checkValidity:n=>typeof n.checkValidity=="function"?n.checkValidity():!0,setValue:(n,r)=>n.value=r,assumeInteractionOn:["zn-input"]},i)}async hostConnected(){let t=this.options.form(this.host);t&&this.attachForm(t),ag.set(this.host,[]),this.options.assumeInteractionOn.forEach(i=>{this.host.addEventListener(i,this.handleInteraction)}),await this.host.updateComplete,t&&this.checkFormValidity()}hostDisconnected(){this.detachForm(),ag.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){var i;let t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity((i=this.host.validity)==null?void 0:i.valid)}attachForm(t){if(!t){this.form=void 0;return}this.form=t,Oh.has(this.form)?Oh.get(this.form).add(this.host):Oh.set(this.form,new Set([this.host])),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),Dh.has(this.form)||(Dh.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),$h.has(this.form)||($h.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())}detachForm(){if(!this.form)return;let t=Oh.get(this.form);t&&(t.delete(this.host),t.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),Dh.has(this.form)&&(this.form.reportValidity=Dh.get(this.form),Dh.delete(this.form)),$h.has(this.form)&&(this.form.checkValidity=$h.get(this.form),$h.delete(this.form)),this.form=void 0))}setUserInteracted(t,i){i?ty.add(t):ty.delete(t),t.requestUpdate()}doAction(t,i){if(this.form){let n=document.createElement("button");n.type=t,n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.clipPath="inset(50%)",n.style.overflow="hidden",n.style.whiteSpace="nowrap",i&&(n.name=i.name,n.value=i.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{i.hasAttribute(r)&&n.setAttribute(r,i.getAttribute(r))})),this.form.append(n),this.form instanceof HTMLFormElement&&document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:this.form}})),n.click(),n.remove()}}getForm(){var t;return(t=this.form)!=null?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){let i=this.host,n=!!ty.has(i),r=!!i.required;i.toggleAttribute("data-required",r),i.toggleAttribute("data-optional",!r),i.toggleAttribute("data-invalid",!t),i.toggleAttribute("data-valid",t),i.toggleAttribute("data-user-invalid",!t&&n),i.toggleAttribute("data-user-valid",t&&n)}updateValidity(){var i;let t=this.host;this.setValidity((i=t.validity)==null?void 0:i.valid)}emitInvalidEvent(t){let i=new CustomEvent("zn-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||i.preventDefault(),this.host.dispatchEvent(i)||t==null||t.preventDefault()}},kn=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),sg=Object.freeze(et(Ce({},kn),{customError:!0,valid:!1})),lg=Object.freeze(et(Ce({},kn),{valueMissing:!0,valid:!1}));var Ue=class{constructor(t,...i){this.slotNames=[];this.handleSlotChange=t=>{let i=t.target;(this.slotNames.includes("[default]")&&!i.name||i.name&&this.slotNames.includes(i.name))&&this.host.requestUpdate()};(this.host=t).addController(this),this.slotNames=i}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){let i=t;if(i.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!i.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}getSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)}getDefaultSlot(){return[...this.host.childNodes].filter(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){let i=t;if(i.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!i.hasAttribute("slot"))return!0}return!1})}getSlots(t){return this.host.querySelectorAll(`:scope > [slot="${t}"]`)}};function s4(o){if(!o)return"";let t=o.assignedNodes({flatten:!0}),i="";return[...t].forEach(n=>{n.nodeType===Node.TEXT_NODE&&(i+=n.textContent)}),i}var c4=Symbol.for(""),BF=o=>{if((o==null?void 0:o.r)===c4)return o==null?void 0:o._$litStatic$};var Fa=(o,...t)=>({_$litStatic$:t.reduce((i,n,r)=>i+(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
25
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),J3=/'/g,Q3=/"/g,n4=/^(?:script|style|textarea|title)$/i,r4=o=>(t,...i)=>({_$litType$:o,strings:t,values:i}),T=r4(1),joe=r4(2),rc=Symbol.for("lit-noChange"),Ve=Symbol.for("lit-nothing"),Z3=new WeakMap,ic=nc.createTreeWalker(nc,129,null,!1);function o4(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Y3!==void 0?Y3.createHTML(t):t}var NF=(o,t)=>{let i=o.length-1,n=[],r,a=t===2?"<svg>":"",s=Mh;for(let l=0;l<i;l++){let c=o[l],d,f,h=-1,p=0;for(;p<c.length&&(s.lastIndex=p,f=s.exec(c),f!==null);)p=s.lastIndex,s===Mh?f[1]==="!--"?s=X3:f[1]!==void 0?s=K3:f[2]!==void 0?(n4.test(f[2])&&(r=RegExp("</"+f[2],"g")),s=tc):f[3]!==void 0&&(s=tc):s===tc?f[0]===">"?(s=r!=null?r:Mh,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,d=f[1],s=f[3]===void 0?tc:f[3]==='"'?Q3:J3):s===Q3||s===J3?s=tc:s===X3||s===K3?s=Mh:(s=tc,r=void 0);let m=s===tc&&o[l+1].startsWith("/>")?" ":"";a+=s===Mh?c+IF:h>=0?(n.push(d),c.slice(0,h)+G1+c.slice(h)+Ws+m):c+Ws+(h===-2?(n.push(void 0),l):m)}return[o4(o,a+(o[i]||"<?>")+(t===2?"</svg>":"")),n]},Ph=class o{constructor({strings:t,_$litType$:i},n){let r;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,f]=NF(t,i);if(this.el=o.createElement(d,n),ic.currentNode=this.el.content,i===2){let h=this.el.content,p=h.firstChild;p.remove(),h.append(...p.childNodes)}for(;(r=ic.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes()){let h=[];for(let p of r.getAttributeNames())if(p.endsWith(G1)||p.startsWith(Ws)){let m=f[s++];if(h.push(p),m!==void 0){let v=r.getAttribute(m.toLowerCase()+G1).split(Ws),b=/([.?@])?(.*)/.exec(m);c.push({type:1,index:a,name:b[2],strings:v,ctor:b[1]==="."?X1:b[1]==="?"?K1:b[1]==="@"?J1:kd})}else c.push({type:6,index:a})}for(let p of h)r.removeAttribute(p)}if(n4.test(r.tagName)){let h=r.textContent.split(Ws),p=h.length-1;if(p>0){r.textContent=xd?xd.emptyScript:"";for(let m=0;m<p;m++)r.append(h[m],Lh()),ic.nextNode(),c.push({type:2,index:++a});r.append(h[p],Lh())}}}else if(r.nodeType===8)if(r.data===t4)c.push({type:2,index:a});else{let h=-1;for(;(h=r.data.indexOf(Ws,h+1))!==-1;)c.push({type:7,index:a}),h+=Ws.length-1}a++}}static createElement(t,i){let n=nc.createElement("template");return n.innerHTML=t,n}};function wd(o,t,i=o,n){var r,a,s,l;if(t===rc)return t;let c=n!==void 0?(r=i._$Co)===null||r===void 0?void 0:r[n]:i._$Cl,d=qh(t)?void 0:t._$litDirective$;return(c==null?void 0:c.constructor)!==d&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),d===void 0?c=void 0:(c=new d(o),c._$AT(o,i,n)),n!==void 0?((s=(l=i)._$Co)!==null&&s!==void 0?s:l._$Co=[])[n]=c:i._$Cl=c),c!==void 0&&(t=wd(o,c._$AS(o,t.values),c,n)),t}var Y1=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;let{el:{content:n},parts:r}=this._$AD,a=((i=t==null?void 0:t.creationScope)!==null&&i!==void 0?i:nc).importNode(n,!0);ic.currentNode=a;let s=ic.nextNode(),l=0,c=0,d=r[0];for(;d!==void 0;){if(l===d.index){let f;d.type===2?f=new Rh(s,s.nextSibling,this,t):d.type===1?f=new d.ctor(s,d.name,d.strings,this,t):d.type===6&&(f=new Q1(s,this,t)),this._$AV.push(f),d=r[++c]}l!==(d==null?void 0:d.index)&&(s=ic.nextNode(),l++)}return ic.currentNode=nc,a}v(t){let i=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}},Rh=class o{constructor(t,i,n,r){var a;this.type=2,this._$AH=Ve,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=r,this._$Cp=(a=r==null?void 0:r.isConnected)===null||a===void 0||a}get _$AU(){var t,i;return(i=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&i!==void 0?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=wd(this,t,i),qh(t)?t===Ve||t==null||t===""?(this._$AH!==Ve&&this._$AR(),this._$AH=Ve):t!==this._$AH&&t!==rc&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):FF(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Ve&&qh(this._$AH)?this._$AA.nextSibling.data=t:this.$(nc.createTextNode(t)),this._$AH=t}g(t){var i;let{values:n,_$litType$:r}=t,a=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Ph.createElement(o4(r.h,r.h[0]),this.options)),r);if(((i=this._$AH)===null||i===void 0?void 0:i._$AD)===a)this._$AH.v(n);else{let s=new Y1(a,this),l=s.u(this.options);s.v(n),this.$(l),this._$AH=s}}_$AC(t){let i=Z3.get(t.strings);return i===void 0&&Z3.set(t.strings,i=new Ph(t)),i}T(t){i4(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,n,r=0;for(let a of t)r===i.length?i.push(n=new o(this.k(Lh()),this.k(Lh()),this,this.options)):n=i[r],n._$AI(a),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,i);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cp=t,(i=this._$AP)===null||i===void 0||i.call(this,t))}},kd=class{constructor(t,i,n,r,a){this.type=1,this._$AH=Ve,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ve}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,n,r){let a=this.strings,s=!1;if(a===void 0)t=wd(this,t,i,0),s=!qh(t)||t!==this._$AH&&t!==rc,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=wd(this,l[n+c],i,c),d===rc&&(d=this._$AH[c]),s||(s=!qh(d)||d!==this._$AH[c]),d===Ve?t=Ve:t!==Ve&&(t+=(d!=null?d:"")+a[c+1]),this._$AH[c]=d}s&&!r&&this.j(t)}j(t){t===Ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},X1=class extends kd{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ve?void 0:t}},HF=xd?xd.emptyScript:"",K1=class extends kd{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Ve?this.element.setAttribute(this.name,HF):this.element.removeAttribute(this.name)}},J1=class extends kd{constructor(t,i,n,r,a){super(t,i,n,r,a),this.type=5}_$AI(t,i=this){var n;if((t=(n=wd(this,t,i,0))!==null&&n!==void 0?n:Ve)===rc)return;let r=this._$AH,a=t===Ve&&r!==Ve||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==Ve&&(r===Ve||a);a&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,n;typeof this._$AH=="function"?this._$AH.call((n=(i=this.options)===null||i===void 0?void 0:i.host)!==null&&n!==void 0?n:this.element,t):this._$AH.handleEvent(t)}},Q1=class{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){wd(this,t)}};var e4=og.litHtmlPolyfillSupport;e4==null||e4(Ph,Rh),((V1=og.litHtmlVersions)!==null&&V1!==void 0?V1:og.litHtmlVersions=[]).push("2.8.0");var _d=(o,t,i)=>{var n,r;let a=(n=i==null?void 0:i.renderBefore)!==null&&n!==void 0?n:t,s=a._$litPart$;if(s===void 0){let l=(r=i==null?void 0:i.renderBefore)!==null&&r!==void 0?r:null;a._$litPart$=s=new Rh(t.insertBefore(Lh(),l),l,void 0,i!=null?i:{})}return s._$AI(o),s};var Z1,ey;var js=class extends Ia{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,i;let n=super.createRenderRoot();return(t=(i=this.renderOptions).renderBefore)!==null&&t!==void 0||(i.renderBefore=n.firstChild),n}update(t){let i=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=_d(i,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return rc}};js.finalized=!0,js._$litElement$=!0,(Z1=globalThis.litElementHydrateSupport)===null||Z1===void 0||Z1.call(globalThis,{LitElement:js});var a4=globalThis.litElementPolyfillSupport;a4==null||a4({LitElement:js});((ey=globalThis.litElementVersions)!==null&&ey!==void 0?ey:globalThis.litElementVersions=[]).push("3.3.3");var Oh=new WeakMap,Dh=new WeakMap,$h=new WeakMap,ty=new WeakSet,ag=new WeakMap,rt=class{constructor(t,i){this.handleFormData=t=>{let i=this.options.disabled(this.host),n=this.options.name(this.host),r=this.options.value(this.host),a=this.host.tagName.toLowerCase()==="zn-button";if(this.host.isConnected&&!i&&!a&&n.length>0&&typeof r!="undefined"){let s=f=>{t.formData.append(n,f.toString())},l=(f,h)=>{let p=f,m=h!=null?h:typeof p.name=="string"?p.name:void 0;typeof m=="string"?t.formData.append(n,f,m):t.formData.append(n,f)},c=f=>typeof FileList!="undefined"&&f instanceof FileList,d=f=>typeof Blob!="undefined"&&f instanceof Blob;if(c(r)){if(r.length>0)for(let f=0;f<r.length;f++){let h=r.item(f);h&&l(h,h.name)}}else d(r)?l(r,r.name):Array.isArray(r)?r.forEach(f=>{if(d(f))l(f,f.name);else if(c(f)){let h=f;for(let p=0;p<h.length;p++){let m=h.item(p);m&&l(m,m.name)}}else s(f)}):s(r);this.host.dispatchEvent(new CustomEvent("zn-formdata",{bubbles:!0,composed:!0}))}};this.handleFormSubmit=t=>{var s,l,c;let i=this.options.disabled(this.host),n=this.options.reportValidity;this.form&&!this.form.noValidate&&((s=Oh.get(this.form))==null||s.forEach(d=>{this.setUserInteracted(d,!0)}));let r=(l=this.form)==null?void 0:l.querySelector('[type="submit"]'),a=(c=r==null?void 0:r.innerHTML)!=null?c:"Submit";r&&(r.setAttribute("data-original-text",a),setTimeout(()=>{var d,f;r.disabled=!0,r.innerHTML=(d=this.form)!=null&&d.hasAttribute("data-no-loading-text")?a:((f=this.form)==null?void 0:f.getAttribute("data-loading-text"))||"Processing..."},20),setTimeout(()=>{r.disabled=!1,r.innerHTML=a},15e3)),this.form&&!this.form.noValidate&&!i&&!n(this.host)&&(t.preventDefault(),t.stopImmediatePropagation(),r&&(r.disabled=!1,r.innerHTML=a))};this.enableSubmit=t=>{var r,a;if(t.target!==this.form)return;let n=(r=this.form)==null?void 0:r.querySelector('[type="submit"]');if(n){let s=(a=n.getAttribute("data-original-text"))!=null?a:n.innerHTML;n.disabled=!1,n.innerHTML=s}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),ag.set(this.host,[])};this.handleInteraction=t=>{let i=ag.get(this.host);i.includes(t.type)||i.push(t.type),i.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0),this.checkFormValidity()};this.checkFormValidity=()=>{var i;let t=(i=this.form)==null?void 0:i.querySelector('[type="submit"]');if(this.form&&!this.form.noValidate){let n=this.form.querySelectorAll("*");for(let r of n)if(typeof r.checkValidity=="function"&&!r.checkValidity())return t==null||t.setAttribute("disabled","disabled"),!1}return t==null||t.removeAttribute("disabled"),!0};this.reportFormValidity=()=>{if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let i of t)if(typeof i.reportValidity=="function"&&!i.reportValidity())return!1}return!0};(this.host=t).addController(this),this.options=Ce({form:n=>{let r=n.form;if(r){let s=n.getRootNode().querySelector(`#${r}`);if(s)return s}return n.closest("form")},name:n=>n.name,value:n=>n.value,defaultValue:n=>n.defaultValue,disabled:n=>{var r;return(r=n.disabled)!=null?r:!1},reportValidity:n=>typeof n.reportValidity=="function"?n.reportValidity():!0,checkValidity:n=>typeof n.checkValidity=="function"?n.checkValidity():!0,setValue:(n,r)=>n.value=r,assumeInteractionOn:["zn-input"]},i)}async hostConnected(){let t=this.options.form(this.host);t&&this.attachForm(t),ag.set(this.host,[]),this.options.assumeInteractionOn.forEach(i=>{this.host.addEventListener(i,this.handleInteraction)}),await this.host.updateComplete,t&&this.checkFormValidity()}hostDisconnected(){this.detachForm(),ag.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){var i;let t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&this.setValidity((i=this.host.validity)==null?void 0:i.valid)}attachForm(t){if(!t){this.form=void 0;return}this.form=t,Oh.has(this.form)?Oh.get(this.form).add(this.host):Oh.set(this.form,new Set([this.host])),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),Dh.has(this.form)||(Dh.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity()),$h.has(this.form)||($h.set(this.form,this.form.checkValidity),this.form.checkValidity=()=>this.checkFormValidity())}detachForm(){if(!this.form)return;let t=Oh.get(this.form);t&&(t.delete(this.host),t.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),Dh.has(this.form)&&(this.form.reportValidity=Dh.get(this.form),Dh.delete(this.form)),$h.has(this.form)&&(this.form.checkValidity=$h.get(this.form),$h.delete(this.form)),this.form=void 0))}setUserInteracted(t,i){i?ty.add(t):ty.delete(t),t.requestUpdate()}doAction(t,i){if(this.form){let n=document.createElement("button");n.type=t,n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.clipPath="inset(50%)",n.style.overflow="hidden",n.style.whiteSpace="nowrap",i&&(n.name=i.name,n.value=i.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(r=>{i.hasAttribute(r)&&n.setAttribute(r,i.getAttribute(r))})),this.form.append(n),this.form instanceof HTMLFormElement&&document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:this.form}})),n.click(),n.remove()}}getForm(){var t;return(t=this.form)!=null?t:null}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){let i=this.host,n=!!ty.has(i),r=!!i.required;i.toggleAttribute("data-required",r),i.toggleAttribute("data-optional",!r),i.toggleAttribute("data-invalid",!t),i.toggleAttribute("data-valid",t),i.toggleAttribute("data-user-invalid",!t&&n),i.toggleAttribute("data-user-valid",t&&n)}updateValidity(){var i;let t=this.host;this.setValidity((i=t.validity)==null?void 0:i.valid)}emitInvalidEvent(t){let i=new CustomEvent("zn-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||i.preventDefault(),this.host.dispatchEvent(i)||t==null||t.preventDefault()}},_n=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),sg=Object.freeze(et(Ce({},_n),{customError:!0,valid:!1})),lg=Object.freeze(et(Ce({},_n),{valueMissing:!0,valid:!1}));var Ue=class{constructor(t,...i){this.slotNames=[];this.handleSlotChange=t=>{let i=t.target;(this.slotNames.includes("[default]")&&!i.name||i.name&&this.slotNames.includes(i.name))&&this.host.requestUpdate()};(this.host=t).addController(this),this.slotNames=i}hasDefaultSlot(){return[...this.host.childNodes].some(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){let i=t;if(i.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!i.hasAttribute("slot"))return!0}return!1})}hasNamedSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)!==null}test(t){return t==="[default]"?this.hasDefaultSlot():this.hasNamedSlot(t)}hostConnected(){this.host.shadowRoot.addEventListener("slotchange",this.handleSlotChange)}hostDisconnected(){this.host.shadowRoot.removeEventListener("slotchange",this.handleSlotChange)}getSlot(t){return this.host.querySelector(`:scope > [slot="${t}"]`)}getDefaultSlot(){return[...this.host.childNodes].filter(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent.trim()!=="")return!0;if(t.nodeType===t.ELEMENT_NODE){let i=t;if(i.tagName.toLowerCase()==="zn-visually-hidden")return!1;if(!i.hasAttribute("slot"))return!0}return!1})}getSlots(t){return this.host.querySelectorAll(`:scope > [slot="${t}"]`)}};function s4(o){if(!o)return"";let t=o.assignedNodes({flatten:!0}),i="";return[...t].forEach(n=>{n.nodeType===Node.TEXT_NODE&&(i+=n.textContent)}),i}var c4=Symbol.for(""),BF=o=>{if((o==null?void 0:o.r)===c4)return o==null?void 0:o._$litStatic$};var Fa=(o,...t)=>({_$litStatic$:t.reduce((i,n,r)=>i+(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
26
26
  take care to ensure page security.`)})(n)+o[r+1],o[0]),r:c4}),l4=new Map,d4=o=>(t,...i)=>{let n=i.length,r,a,s=[],l=[],c,d=0,f=!1;for(;d<n;){for(c=t[d];d<n&&(a=i[d],(r=BF(a))!==void 0);)c+=r+t[++d],f=!0;d!==n&&l.push(a),s.push(c),d++}if(d===n&&s.push(t[n]),f){let h=s.join("$$lit$$");(t=l4.get(h))===void 0&&(s.raw=s,l4.set(h,t=s)),i=l}return o(t,...i)},ln=d4(P3),sae=d4(R3);var ke=o=>o!=null?o:Rt;var WF=(o,t)=>t.kind==="method"&&t.descriptor&&!("value"in t.descriptor)?et(Ce({},t),{finisher(i){i.createProperty(t.key,o)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:t.key,initializer(){typeof t.initializer=="function"&&(this[t.key]=t.initializer.call(this))},finisher(i){i.createProperty(t.key,o)}},jF=(o,t,i)=>{t.constructor.createProperty(i,o)};function _(o){return(t,i)=>i!==void 0?jF(o,t,i):WF(o,t)}function We(o){return _(et(Ce({},o),{state:!0}))}var Jr=({finisher:o,descriptor:t})=>(i,n)=>{var r;if(n===void 0){let a=(r=i.originalKey)!==null&&r!==void 0?r:i.key,s=t!=null?{kind:"method",placement:"prototype",key:a,descriptor:t(i.key)}:et(Ce({},i),{key:a});return o!=null&&(s.finisher=function(l){o(l,a)}),s}{let a=i.constructor;t!==void 0&&Object.defineProperty(i,n,t(n)),o==null||o(a,n)}};function f4(o){return Jr({finisher:(t,i)=>{Object.assign(t.prototype[i],o)}})}function ge(o,t){return Jr({descriptor:i=>{let n={get(){var r,a;return(a=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(o))!==null&&a!==void 0?a:null},enumerable:!0,configurable:!0};if(t){let r=typeof i=="symbol"?Symbol():"__"+i;n.get=function(){var a,s;return this[r]===void 0&&(this[r]=(s=(a=this.renderRoot)===null||a===void 0?void 0:a.querySelector(o))!==null&&s!==void 0?s:null),this[r]}}return n}})}function cg(o){return Jr({descriptor:t=>({get(){var i,n;return(n=(i=this.renderRoot)===null||i===void 0?void 0:i.querySelectorAll(o))!==null&&n!==void 0?n:[]},enumerable:!0,configurable:!0})})}function h4(o){return Jr({descriptor:t=>({async get(){var i;return await this.updateComplete,(i=this.renderRoot)===null||i===void 0?void 0:i.querySelector(o)},enumerable:!0,configurable:!0})})}var iy,VF=((iy=window.HTMLSlotElement)===null||iy===void 0?void 0:iy.prototype.assignedElements)!=null?(o,t)=>o.assignedElements(t):(o,t)=>o.assignedNodes(t).filter(i=>i.nodeType===Node.ELEMENT_NODE);function u4(o){let{slot:t,selector:i}=o!=null?o:{};return Jr({descriptor:n=>({get(){var r;let a="slot"+(t?`[name=${t}]`:":not([name])"),s=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(a),l=s!=null?VF(s,o):[];return i?l.filter(c=>c.matches(i)):l},enumerable:!0,configurable:!0})})}function p4(o,t,i){let n,r=o;return typeof o=="object"?(r=o.slot,n=o):n={flatten:t},i?u4({slot:r,flatten:t,selector:i}):Jr({descriptor:a=>({get(){var s,l;let c="slot"+(r?`[name=${r}]`:":not([name])"),d=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(c);return(l=d==null?void 0:d.assignedNodes(n))!==null&&l!==void 0?l:[]},enumerable:!0,configurable:!0})})}function He(o,t){let i=Ce({waitUntilFirstUpdate:!1},t);return(n,r)=>{let{update:a}=n,s=Array.isArray(o)?o:[o];n.update=function(l){s.forEach(c=>{let d=c;if(l.has(d)){let f=l.get(d),h=this[d];f!==h&&(!i.waitUntilFirstUpdate||this.hasUpdated)&&this[r](f,h)}}),a.call(this,l)}}}var dg=class{constructor(t){this.t="";this.handleThemeEventUpdate=t=>{if(t&&t.detail){this.t=t.detail,this.host.setAttribute("t",this.t);return}this.getDefaultTheme()};this.getDefaultTheme=()=>{this.t=document.documentElement.getAttribute("t")||window.document.documentElement.getAttribute("t")||window.document.body.getAttribute("t")||"light"};this.host=t,this.host.addController(this)}hostConnected(){this.getDefaultTheme(),this.host.setAttribute("t",this.t),window.addEventListener("theme-change",this.handleThemeEventUpdate.bind(this))}hostDisconnected(){window.removeEventListener("theme-change",this.handleThemeEventUpdate.bind(this))}};var J=class extends js{static define(t,i=this,n={}){let r=customElements.get(t);if(!r){customElements.define(t,class extends i{},n);return}let a=" (unknown version)",s=a;"version"in i&&i.version&&typeof i.version=="string"&&(a=` v${i.version}`),"version"in r&&r.version&&typeof r.version=="string"&&(s=` v${r.version}`),!(a&&s&&a===s)&&console.warn(`Attempted to register <${t}>${a} but it is already registered as <${t}>${s}.`)}constructor(){super(),new dg(this),Object.entries(this.constructor.dependencies).forEach(([t,i])=>{this.constructor.define(t,i)})}emit(t,i){let n=new CustomEvent(t,Ce({bubbles:!0,cancelable:!0,composed:!0,detail:{element:this}},i));return this.dispatchEvent(n),n}};J.dependencies={},y([_()],J.prototype,"dir",2),y([_()],J.prototype,"lang",2),y([_({reflect:!0})],J.prototype,"t",2);var m4=new WeakMap;function g4(o){let t=m4.get(o);return t||(t=window.getComputedStyle(o,null),m4.set(o,t)),t}function UF(o){if(typeof o.checkVisibility=="function")return o.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!0});let t=g4(o);return t.visibility!=="hidden"&&t.display!=="none"}function GF(o){let t=g4(o),{overflowY:i,overflowX:n}=t;return i==="scroll"||n==="scroll"?!0:i!=="auto"||n!=="auto"?!1:o.scrollHeight>o.clientHeight&&i==="auto"||o.scrollWidth>o.clientWidth&&n==="auto"}function YF(o){let t=o.tagName.toLowerCase(),i=Number(o.getAttribute("tabindex"));return o.hasAttribute("tabindex")&&(isNaN(i)||i<=-1)||o.hasAttribute("disabled")||o.closest("[inert]")||t==="input"&&o.getAttribute("type")==="radio"&&!o.hasAttribute("checked")||!UF(o)?!1:(t==="audio"||t==="video")&&o.hasAttribute("controls")||o.hasAttribute("tabindex")||o.hasAttribute("contenteditable")&&o.getAttribute("contenteditable")!=="false"||["button","input","select","textarea","a","audio","video","summary","iframe"].includes(t)?!0:GF(o)}function b4(o){var r,a;let t=KF(o),i=(r=t[0])!=null?r:null,n=(a=t[t.length-1])!=null?a:null;return{start:i,end:n}}function XF(o,t){var i;return((i=o.getRootNode({composed:!0}))==null?void 0:i.host)!==t}function KF(o){let t=new WeakMap,i=[];function n(r){if(r instanceof Element){if(r.hasAttribute("inert")||r.closest("[inert]")||t.has(r))return;t.set(r,!0),!i.includes(r)&&YF(r)&&i.push(r),r instanceof HTMLSlotElement&&XF(r,o)&&r.assignedElements({flatten:!0}).forEach(a=>{n(a)}),r.shadowRoot!==null&&r.shadowRoot.mode==="open"&&n(r.shadowRoot)}for(let a of r.children)n(a)}return n(o),i.sort((r,a)=>{let s=Number(r.getAttribute("tabindex"))||0;return(Number(a.getAttribute("tabindex"))||0)-s})}var Ih=class extends Fn{constructor(t){if(super(t),this.et=Rt,t.type!==en.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Rt||t==null)return this.ft=void 0,this.et=t;if(t===Zi)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;let i=[t];return i.raw=i,this.ft={_$litType$:this.constructor.resultType,strings:i,values:[]}}};Ih.directiveName="unsafeHTML",Ih.resultType=1;var Cr=zr(Ih);function Qr(o,t){return new Promise(i=>{function n(r){r.target===o&&(o.removeEventListener(t,n),i())}o.addEventListener(t,n)})}var ny=class{constructor(){this.openDropdowns=new Set;this.openTooltips=new Set}registerDropdown(t){this.openDropdowns.add(t)}unregisterDropdown(t){this.openDropdowns.delete(t)}isDropdownOpen(){return this.openDropdowns.size>0}registerTooltip(t){this.openTooltips.add(t)}unregisterTooltip(t){this.openTooltips.delete(t)}isTooltipOpen(){return this.openTooltips.size>0}},JF=new ny,Lo=JF;var v4=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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 yi=class extends J{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=i=>{let n=i.target;!this.stayOpenOnSelect&&n.tagName.toLowerCase()==="zn-menu"&&(this.hide().then(r=>r),this.focusOnTrigger())};this.handlePreload=()=>{this.preloadContent().then(i=>i)}}connectedCallback(){super.connectedCallback(),this.containingElement||(this.containingElement=this)}focusOnTrigger(){var n;let i=(n=this.trigger)==null?void 0:n.assignedElements({flatten:!0})[0];typeof(i==null?void 0:i.focus)=="function"&&i.focus()}firstUpdated(i){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0),super.firstUpdated(i)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide().then(i=>i)}getMenu(){return this.panel.assignedElements({flatten:!0}).find(i=>i.tagName.toLowerCase()==="zn-menu")}addOpenListeners(){var i,n;this.panel.addEventListener("zn-select",this.handlePanelSelect),"CloseWatcher"in window?((i=this.closeWatcher)==null||i.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide().then(r=>r),this.focusOnTrigger()}):this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown.bind(this)),document.addEventListener("mousedown",this.handleDocumentMouseDown.bind(this)),(n=this.closeWatcher)==null||n.destroy()}removeOpenListeners(){var i;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),(i=this.closeWatcher)==null||i.destroy()}async preloadContent(){if(this.uri&&!this.fetchedContent){let i=await fetch(this.uri,{credentials:"same-origin",headers:{"x-kx-inline":"inline"}});this.fetchedContent=await i.text(),this.requestUpdate()}}async handleTriggerClick(){this.open?await this.hide():(await this.show(),this.focusOnTrigger())}handleKeyDown(i){this.open&&i.key==="Escape"&&(i.stopPropagation(),this.hide().then(n=>n),this.focusOnTrigger())}async handleTriggerKeyDown(i){if([" ","Enter","Tab"].includes(i.key)){i.preventDefault(),await this.handleTriggerClick();return}let n=this.getMenu();if(n){let r=n.getAllItems(),a=r[0],s=r[r.length-1];["ArrowDown","ArrowUp","Home","End"].includes(i.key)&&(i.preventDefault(),this.open||(this.show().then(l=>l),await this.updateComplete),r.length>0&&this.updateComplete.then(()=>{(i.key==="ArrowDown"||i.key==="Home")&&(n.setCurrentItem(a),a.focus()),(i.key==="ArrowUp"||i.key==="End")&&(n.setCurrentItem(s),s.focus())}))}}handleTriggerKeyUp(i){i.key===" "&&i.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}handleDocumentMouseDown(i){let n=i.composedPath();this.containingElement&&!n.includes(this.containingElement)&&this.hide().then(r=>r)}handleDocumentKeyDown(i){if(i.key==="Escape"&&this.open&&!this.closeWatcher){i.stopPropagation(),this.focusOnTrigger(),this.hide().then(n=>n);return}if(i.key==="Tab"){if(this.open){i.preventDefault(),this.hide().then(n=>n),this.focusOnTrigger();return}setTimeout(()=>{var r,a,s;let n=((r=this.containingElement)==null?void 0:r.getRootNode())instanceof ShadowRoot?(s=(a=document.activeElement)==null?void 0:a.shadowRoot)==null?void 0:s.activeElement:document.activeElement;(!this.containingElement||(n==null?void 0:n.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide().then(l=>l)})}}async show(){if(!this.open)return this.open=!0,Qr(this,"zn-after-show")}async hide(){if(this.open)return this.open=!1,Qr(this,"zn-after-hide")}reposition(){this.popup.reposition()}updateAccessibleTrigger(){let n=this.trigger.assignedElements({flatten:!0}).find(a=>b4(a).start),r=null;if(n)switch(n.tagName.toLowerCase()){case"zn-button":r=n.button;break;default:r=n}r&&(r.setAttribute("aria-haspopup","true"),r.setAttribute("aria-expanded",this.open.toString()))}handleOpenChange(){if(this.disabled){this.open=!1;return}this.updateAccessibleTrigger(),this.open?(this.emit("zn-show"),Lo.registerDropdown(this),this.addOpenListeners(),this.panel.hidden=!1,this.popup.active=!0,this.panel.focus(),this.emit("zn-after-show")):(this.emit("zn-hide"),Lo.unregisterDropdown(this),this.removeOpenListeners(),this.panel.blur(),this.panel.hidden=!0,this.popup.active=!1,this.emit("zn-after-hide"))}render(){return T`
27
27
  <zn-popup
28
28
  part="base"
@@ -56,7 +56,7 @@ function print() { __p += __j.call(arguments, '') }
56
56
  </div>
57
57
  </zn-popup>
58
58
  `}};yi.styles=Z(v4),y([ge(".dropdown")],yi.prototype,"popup",2),y([ge(".dropdown__trigger")],yi.prototype,"trigger",2),y([ge(".dropdown__panel")],yi.prototype,"panel",2),y([_({type:Boolean,reflect:!0})],yi.prototype,"open",2),y([_({reflect:!0})],yi.prototype,"placement",2),y([_({type:Boolean,reflect:!0})],yi.prototype,"disabled",2),y([_({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],yi.prototype,"stayOpenOnSelect",2),y([_({attribute:!1})],yi.prototype,"containingElement",2),y([_({type:Number})],yi.prototype,"distance",2),y([_({type:Number})],yi.prototype,"skidding",2),y([_({type:Boolean})],yi.prototype,"hoist",2),y([_({reflect:!0})],yi.prototype,"sync",2),y([_()],yi.prototype,"uri",2),y([_({type:String})],yi.prototype,"fetchedContent",2),y([He("open",{waitUntilFirstUpdate:!0})],yi.prototype,"handleOpenChange",1);var Na=yi;yi.define("zn-dropdown");var y4=(o,t,i)=>{for(let n of t)if(n[0]===o)return(0,n[1])();return i==null?void 0:i()};function zd(o){function t(Re,xe){return Re<<xe|Re>>>32-xe}function i(Re,xe){let Te,X,R,F,D;return R=Re&2147483648,F=xe&2147483648,Te=Re&1073741824,X=xe&1073741824,D=(Re&1073741823)+(xe&1073741823),Te&&X?D^2147483648^R^F:Te||X?D?D^3221225472^R^F:D^1073741824^R^F:D^R^F}function n(Re,xe,Te){return Re&xe|~Re&Te}function r(Re,xe,Te){return Re&Te|xe&~Te}function a(Re,xe,Te){return Re^xe^Te}function s(Re,xe,Te){return xe^(Re|~Te)}function l(Re,xe,Te,X,R,F,D){return Re=i(Re,i(i(n(xe,Te,X),R),D)),i(t(Re,F),xe)}function c(Re,xe,Te,X,R,F,D){return Re=i(Re,i(i(r(xe,Te,X),R),D)),i(t(Re,F),xe)}function d(Re,xe,Te,X,R,F,D){return Re=i(Re,i(i(a(xe,Te,X),R),D)),i(t(Re,F),xe)}function f(Re,xe,Te,X,R,F,D){return Re=i(Re,i(i(s(xe,Te,X),R),D)),i(t(Re,F),xe)}function h(Re){for(var xe,Te=Re.length,X=Te+8,R=(X-X%64)/64,F=(R+1)*16,D=Array(F-1),G=0,V=0;V<Te;)xe=(V-V%4)/4,G=V%4*8,D[xe]=D[xe]|Re.charCodeAt(V)<<G,V++;return xe=(V-V%4)/4,G=V%4*8,D[xe]=D[xe]|128<<G,D[F-2]=Te<<3,D[F-1]=Te>>>29,D}function p(Re){var xe="",Te="",X,R;for(R=0;R<=3;R++)X=Re>>>R*8&255,Te="0"+X.toString(16),xe=xe+Te.substr(Te.length-2,2);return xe}function m(Re){Re=Re.replace(/\r\n/g,`
59
- `);let xe="";for(let Te=0;Te<Re.length;Te++){let X=Re.charCodeAt(Te);X<128?xe+=String.fromCharCode(X):X>127&&X<2048?(xe+=String.fromCharCode(X>>6|192),xe+=String.fromCharCode(X&63|128)):(xe+=String.fromCharCode(X>>12|224),xe+=String.fromCharCode(X>>6&63|128),xe+=String.fromCharCode(X&63|128))}return xe}let v,b,x,k,z,E,A,C,L,M,P=7,I=12,N=17,B=22,U=5,ee=9,ae=14,oe=20,se=4,de=11,_e=16,ve=23,Ae=6,Le=10,Se=15,Ze=21;for(o=m(o),v=h(o),A=1732584193,C=4023233417,L=2562383102,M=271733878,b=0;b<v.length;b+=16)x=A,k=C,z=L,E=M,A=l(A,C,L,M,v[b+0],P,3614090360),M=l(M,A,C,L,v[b+1],I,3905402710),L=l(L,M,A,C,v[b+2],N,606105819),C=l(C,L,M,A,v[b+3],B,3250441966),A=l(A,C,L,M,v[b+4],P,4118548399),M=l(M,A,C,L,v[b+5],I,1200080426),L=l(L,M,A,C,v[b+6],N,2821735955),C=l(C,L,M,A,v[b+7],B,4249261313),A=l(A,C,L,M,v[b+8],P,1770035416),M=l(M,A,C,L,v[b+9],I,2336552879),L=l(L,M,A,C,v[b+10],N,4294925233),C=l(C,L,M,A,v[b+11],B,2304563134),A=l(A,C,L,M,v[b+12],P,1804603682),M=l(M,A,C,L,v[b+13],I,4254626195),L=l(L,M,A,C,v[b+14],N,2792965006),C=l(C,L,M,A,v[b+15],B,1236535329),A=c(A,C,L,M,v[b+1],U,4129170786),M=c(M,A,C,L,v[b+6],ee,3225465664),L=c(L,M,A,C,v[b+11],ae,643717713),C=c(C,L,M,A,v[b+0],oe,3921069994),A=c(A,C,L,M,v[b+5],U,3593408605),M=c(M,A,C,L,v[b+10],ee,38016083),L=c(L,M,A,C,v[b+15],ae,3634488961),C=c(C,L,M,A,v[b+4],oe,3889429448),A=c(A,C,L,M,v[b+9],U,568446438),M=c(M,A,C,L,v[b+14],ee,3275163606),L=c(L,M,A,C,v[b+3],ae,4107603335),C=c(C,L,M,A,v[b+8],oe,1163531501),A=c(A,C,L,M,v[b+13],U,2850285829),M=c(M,A,C,L,v[b+2],ee,4243563512),L=c(L,M,A,C,v[b+7],ae,1735328473),C=c(C,L,M,A,v[b+12],oe,2368359562),A=d(A,C,L,M,v[b+5],se,4294588738),M=d(M,A,C,L,v[b+8],de,2272392833),L=d(L,M,A,C,v[b+11],_e,1839030562),C=d(C,L,M,A,v[b+14],ve,4259657740),A=d(A,C,L,M,v[b+1],se,2763975236),M=d(M,A,C,L,v[b+4],de,1272893353),L=d(L,M,A,C,v[b+7],_e,4139469664),C=d(C,L,M,A,v[b+10],ve,3200236656),A=d(A,C,L,M,v[b+13],se,681279174),M=d(M,A,C,L,v[b+0],de,3936430074),L=d(L,M,A,C,v[b+3],_e,3572445317),C=d(C,L,M,A,v[b+6],ve,76029189),A=d(A,C,L,M,v[b+9],se,3654602809),M=d(M,A,C,L,v[b+12],de,3873151461),L=d(L,M,A,C,v[b+15],_e,530742520),C=d(C,L,M,A,v[b+2],ve,3299628645),A=f(A,C,L,M,v[b+0],Ae,4096336452),M=f(M,A,C,L,v[b+7],Le,1126891415),L=f(L,M,A,C,v[b+14],Se,2878612391),C=f(C,L,M,A,v[b+5],Ze,4237533241),A=f(A,C,L,M,v[b+12],Ae,1700485571),M=f(M,A,C,L,v[b+3],Le,2399980690),L=f(L,M,A,C,v[b+10],Se,4293915773),C=f(C,L,M,A,v[b+1],Ze,2240044497),A=f(A,C,L,M,v[b+8],Ae,1873313359),M=f(M,A,C,L,v[b+15],Le,4264355552),L=f(L,M,A,C,v[b+6],Se,2734768916),C=f(C,L,M,A,v[b+13],Ze,1309151649),A=f(A,C,L,M,v[b+4],Ae,4149444226),M=f(M,A,C,L,v[b+11],Le,3174756917),L=f(L,M,A,C,v[b+2],Se,718787259),C=f(C,L,M,A,v[b+9],Ze,3951481745),A=i(A,x),C=i(C,k),L=i(L,z),M=i(M,E);var Ne=p(A)+p(C)+p(L)+p(M);return Ne.toLowerCase()}var x4="important",QF=" !"+x4,Ha=zr(class extends Fn{constructor(o){var t;if(super(o),o.type!==en.ATTRIBUTE||o.name!=="style"||((t=o.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,i)=>{let n=o[i];return n==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[t]){let{style:i}=o.element;if(this.ht===void 0){this.ht=new Set;for(let n in t)this.ht.add(n);return this.render(t)}this.ht.forEach(n=>{t[n]==null&&(this.ht.delete(n),n.includes("-")?i.removeProperty(n):i[n]="")});for(let n in t){let r=t[n];if(r!=null){this.ht.add(n);let a=typeof r=="string"&&r.endsWith(QF);n.includes("-")||a?i.setProperty(n,a?r.slice(0,-11):r,a?x4:""):i[n]=r}}return Zi}});var w4=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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--round{border-radius:50%}.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 img{max-width:100%;vertical-align:middle}@keyframes blink-animation{0%,100%{opacity:1}50%{opacity:0.5}}`;var _n=class extends J{constructor(){super(...arguments);this.size=24;this.round=!1;this.padded=!1;this.blink=!1;this.squared=!1;this.gravatarOptions="";this.defaultLibrary="material-symbols-outlined"}convertToLibrary(i){switch(i){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"brand":case"brands":return"brands"}return this.defaultLibrary}connectedCallback(){if(super.connectedCallback(),this.src&&this.src.includes("#")){let i=this.src.split("#");this.src=i[0],i[1].split(",").forEach(r=>{r==="round"&&(this.round=!0)})}if(this.src&&this.src.includes("@")){let i=this.src.split("@");i[1].includes(".")?this.library="gravatar":this.library===void 0&&i[1]!==""&&(this.library=this.convertToLibrary(i[1]),this.src=i[0]),(this.library==="gravatar"||this.library==="libravatar")&&(this.ravatarOptions(),this.src=zd(this.src))}else!this.library&&this.src&&!this.src.includes("/")&&(this.library=this.defaultLibrary);_d(T`
59
+ `);let xe="";for(let Te=0;Te<Re.length;Te++){let X=Re.charCodeAt(Te);X<128?xe+=String.fromCharCode(X):X>127&&X<2048?(xe+=String.fromCharCode(X>>6|192),xe+=String.fromCharCode(X&63|128)):(xe+=String.fromCharCode(X>>12|224),xe+=String.fromCharCode(X>>6&63|128),xe+=String.fromCharCode(X&63|128))}return xe}let v,b,x,k,z,E,A,C,L,M,P=7,I=12,N=17,B=22,U=5,ee=9,ae=14,oe=20,se=4,de=11,_e=16,ve=23,Ae=6,Le=10,Se=15,Ze=21;for(o=m(o),v=h(o),A=1732584193,C=4023233417,L=2562383102,M=271733878,b=0;b<v.length;b+=16)x=A,k=C,z=L,E=M,A=l(A,C,L,M,v[b+0],P,3614090360),M=l(M,A,C,L,v[b+1],I,3905402710),L=l(L,M,A,C,v[b+2],N,606105819),C=l(C,L,M,A,v[b+3],B,3250441966),A=l(A,C,L,M,v[b+4],P,4118548399),M=l(M,A,C,L,v[b+5],I,1200080426),L=l(L,M,A,C,v[b+6],N,2821735955),C=l(C,L,M,A,v[b+7],B,4249261313),A=l(A,C,L,M,v[b+8],P,1770035416),M=l(M,A,C,L,v[b+9],I,2336552879),L=l(L,M,A,C,v[b+10],N,4294925233),C=l(C,L,M,A,v[b+11],B,2304563134),A=l(A,C,L,M,v[b+12],P,1804603682),M=l(M,A,C,L,v[b+13],I,4254626195),L=l(L,M,A,C,v[b+14],N,2792965006),C=l(C,L,M,A,v[b+15],B,1236535329),A=c(A,C,L,M,v[b+1],U,4129170786),M=c(M,A,C,L,v[b+6],ee,3225465664),L=c(L,M,A,C,v[b+11],ae,643717713),C=c(C,L,M,A,v[b+0],oe,3921069994),A=c(A,C,L,M,v[b+5],U,3593408605),M=c(M,A,C,L,v[b+10],ee,38016083),L=c(L,M,A,C,v[b+15],ae,3634488961),C=c(C,L,M,A,v[b+4],oe,3889429448),A=c(A,C,L,M,v[b+9],U,568446438),M=c(M,A,C,L,v[b+14],ee,3275163606),L=c(L,M,A,C,v[b+3],ae,4107603335),C=c(C,L,M,A,v[b+8],oe,1163531501),A=c(A,C,L,M,v[b+13],U,2850285829),M=c(M,A,C,L,v[b+2],ee,4243563512),L=c(L,M,A,C,v[b+7],ae,1735328473),C=c(C,L,M,A,v[b+12],oe,2368359562),A=d(A,C,L,M,v[b+5],se,4294588738),M=d(M,A,C,L,v[b+8],de,2272392833),L=d(L,M,A,C,v[b+11],_e,1839030562),C=d(C,L,M,A,v[b+14],ve,4259657740),A=d(A,C,L,M,v[b+1],se,2763975236),M=d(M,A,C,L,v[b+4],de,1272893353),L=d(L,M,A,C,v[b+7],_e,4139469664),C=d(C,L,M,A,v[b+10],ve,3200236656),A=d(A,C,L,M,v[b+13],se,681279174),M=d(M,A,C,L,v[b+0],de,3936430074),L=d(L,M,A,C,v[b+3],_e,3572445317),C=d(C,L,M,A,v[b+6],ve,76029189),A=d(A,C,L,M,v[b+9],se,3654602809),M=d(M,A,C,L,v[b+12],de,3873151461),L=d(L,M,A,C,v[b+15],_e,530742520),C=d(C,L,M,A,v[b+2],ve,3299628645),A=f(A,C,L,M,v[b+0],Ae,4096336452),M=f(M,A,C,L,v[b+7],Le,1126891415),L=f(L,M,A,C,v[b+14],Se,2878612391),C=f(C,L,M,A,v[b+5],Ze,4237533241),A=f(A,C,L,M,v[b+12],Ae,1700485571),M=f(M,A,C,L,v[b+3],Le,2399980690),L=f(L,M,A,C,v[b+10],Se,4293915773),C=f(C,L,M,A,v[b+1],Ze,2240044497),A=f(A,C,L,M,v[b+8],Ae,1873313359),M=f(M,A,C,L,v[b+15],Le,4264355552),L=f(L,M,A,C,v[b+6],Se,2734768916),C=f(C,L,M,A,v[b+13],Ze,1309151649),A=f(A,C,L,M,v[b+4],Ae,4149444226),M=f(M,A,C,L,v[b+11],Le,3174756917),L=f(L,M,A,C,v[b+2],Se,718787259),C=f(C,L,M,A,v[b+9],Ze,3951481745),A=i(A,x),C=i(C,k),L=i(L,z),M=i(M,E);var Ne=p(A)+p(C)+p(L)+p(M);return Ne.toLowerCase()}var x4="important",QF=" !"+x4,Ha=zr(class extends Fn{constructor(o){var t;if(super(o),o.type!==en.ATTRIBUTE||o.name!=="style"||((t=o.strings)===null||t===void 0?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,i)=>{let n=o[i];return n==null?t:t+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(o,[t]){let{style:i}=o.element;if(this.ht===void 0){this.ht=new Set;for(let n in t)this.ht.add(n);return this.render(t)}this.ht.forEach(n=>{t[n]==null&&(this.ht.delete(n),n.includes("-")?i.removeProperty(n):i[n]="")});for(let n in t){let r=t[n];if(r!=null){this.ht.add(n);let a=typeof r=="string"&&r.endsWith(QF);n.includes("-")||a?i.setProperty(n,a?r.slice(0,-11):r,a?x4:""):i[n]=r}}return Zi}});var w4=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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--round{border-radius:50%}.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 img{max-width:100%;vertical-align:middle}@keyframes blink-animation{0%,100%{opacity:1}50%{opacity:0.5}}`;var zn=class extends J{constructor(){super(...arguments);this.size=24;this.round=!1;this.padded=!1;this.blink=!1;this.squared=!1;this.gravatarOptions="";this.defaultLibrary="material-symbols-outlined"}convertToLibrary(i){switch(i){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"brand":case"brands":return"brands"}return this.defaultLibrary}connectedCallback(){if(super.connectedCallback(),this.src&&this.src.includes("#")){let i=this.src.split("#");this.src=i[0],i[1].split(",").forEach(r=>{r==="round"&&(this.round=!0)})}if(this.src&&this.src.includes("@")){let i=this.src.split("@");i[1].includes(".")?this.library="gravatar":this.library===void 0&&i[1]!==""&&(this.library=this.convertToLibrary(i[1]),this.src=i[0]),(this.library==="gravatar"||this.library==="libravatar")&&(this.ravatarOptions(),this.src=zd(this.src))}else!this.library&&this.src&&!this.src.includes("/")&&(this.library=this.defaultLibrary);_d(T`
60
60
  <link
61
61
  href="https://cdn.jsdelivr.net/gh/kubex/icons@0.0.8/dist/kubex-icons.css"
62
62
  rel="stylesheet">
@@ -80,7 +80,7 @@ function print() { __p += __j.call(arguments, '') }
80
80
  ${!this.library&&!this.src?T`
81
81
  <slot></slot>`:""}
82
82
  </div>
83
- </div>`}getAvatarInitials(i){let n=new RegExp("(^.|[A-Z]|(?<=[^a-zA-Z0-9])[a-z])","g"),a=[...i.matchAll(n)].map(s=>s[0]);return a.length>0?a.join("").slice(0,2).toUpperCase():i.slice(0,2).toUpperCase()}getColorForAvatar(i){let n=["#00AA55","#0882a8","#ed55ed","#5eae00","#09389e","#d17300","#5e0be2","#5b7a13","#ddb100","#d400c2","#DC2A2A","#a967ff"],r=Array.from(i).reduce((a,s)=>a+s.charCodeAt(0),0);return n[r%n.length]}};_n.styles=Z(w4),y([_({reflect:!0})],_n.prototype,"src",2),y([_({reflect:!0})],_n.prototype,"alt",2),y([_({type:Number,reflect:!0})],_n.prototype,"size",2),y([_({type:Boolean,reflect:!0})],_n.prototype,"round",2),y([_({reflect:!0})],_n.prototype,"library",2),y([_({reflect:!0})],_n.prototype,"color",2),y([_({type:Boolean})],_n.prototype,"padded",2),y([_({type:Boolean})],_n.prototype,"blink",2),y([_({type:Boolean})],_n.prototype,"squared",2);var Ci=_n;_n.define("zn-icon");var k4=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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:0 auto}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents}.tooltip{--arrow-size:6px}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.tooltip__body{display:block;width:-moz-max-content;width:max-content;max-width:-moz-max-content;max-width:max-content;border-radius:5px;background-color:var(--arrow-color);font-size:12px;text-align:start;white-space:normal;color:white;padding:5px;pointer-events:none;-moz-user-select:none;user-select:none;-webkit-user-select:none}`;var Si=class extends J{constructor(){super();this.content="";this.placement="top";this.disabled=!1;this.distance=4;this.open=!1;this.skidding=0;this.trigger="hover focus";this.hoist=!0;this.handleBlur=()=>{this.hasTrigger("focus")&&!Lo.isDropdownOpen()&&this.hide()};this.handleClick=()=>{this.hasTrigger("click")&&!Lo.isDropdownOpen()&&(this.open&&this.hide(),this.show())};this.handleFocus=()=>{this.hasTrigger("focus")&&!Lo.isDropdownOpen()&&this.show()};this.handleDocumentKeyDown=i=>{i.key==="Escape"&&(i.stopPropagation(),this.hide())};this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var i;(i=this.closeWatcher)==null||i.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(i){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition()),super.firstUpdated(i)}hasTrigger(i){return this.trigger.split(" ").includes(i)}handleMouseOver(){this.hasTrigger("hover")&&!Lo.isDropdownOpen()&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),0))}handleMouseOut(){this.hasTrigger("hover")&&!Lo.isDropdownOpen()&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),0))}handleOpenChange(){var i;if(this.open){if(Lo.registerTooltip(this),this.disabled)return;this.emit("zn-show"),"CloseWatcher"in window?((i=this.closeWatcher)==null||i.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),this.body.hidden=!1,this.popup.active=!0,this.popup.reposition(),this.emit("zn-after-show")}else Lo.unregisterTooltip(this),this.emit("zn-hide"),this.popup.active=!1,this.body.hidden=!0,this.emit("zn-after-hide")}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Qr(this,"zn-after-show")}hide(){this.open&&(this.open=!1,Qr(this,"zn-after-hide"))}render(){return T`
83
+ </div>`}getAvatarInitials(i){let n=new RegExp("(^.|[A-Z]|(?<=[^a-zA-Z0-9])[a-z])","g"),a=[...i.matchAll(n)].map(s=>s[0]);return a.length>0?a.join("").slice(0,2).toUpperCase():i.slice(0,2).toUpperCase()}getColorForAvatar(i){let n=["#00AA55","#0882a8","#ed55ed","#5eae00","#09389e","#d17300","#5e0be2","#5b7a13","#ddb100","#d400c2","#DC2A2A","#a967ff"],r=Array.from(i).reduce((a,s)=>a+s.charCodeAt(0),0);return n[r%n.length]}};zn.styles=Z(w4),y([_({reflect:!0})],zn.prototype,"src",2),y([_({reflect:!0})],zn.prototype,"alt",2),y([_({type:Number,reflect:!0})],zn.prototype,"size",2),y([_({type:Boolean,reflect:!0})],zn.prototype,"round",2),y([_({reflect:!0})],zn.prototype,"library",2),y([_({reflect:!0})],zn.prototype,"color",2),y([_({type:Boolean})],zn.prototype,"padded",2),y([_({type:Boolean})],zn.prototype,"blink",2),y([_({type:Boolean})],zn.prototype,"squared",2);var Ci=zn;zn.define("zn-icon");var k4=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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:0 auto}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:contents}.tooltip{--arrow-size:6px}.tooltip[placement^=top]::part(popup){transform-origin:bottom}.tooltip[placement^=bottom]::part(popup){transform-origin:top}.tooltip[placement^=left]::part(popup){transform-origin:right}.tooltip[placement^=right]::part(popup){transform-origin:left}.tooltip__body{display:block;width:-moz-max-content;width:max-content;max-width:-moz-max-content;max-width:max-content;border-radius:5px;background-color:var(--arrow-color);font-size:12px;text-align:start;white-space:normal;color:white;padding:5px;pointer-events:none;-moz-user-select:none;user-select:none;-webkit-user-select:none}`;var Si=class extends J{constructor(){super();this.content="";this.placement="top";this.disabled=!1;this.distance=4;this.open=!1;this.skidding=0;this.trigger="hover focus";this.hoist=!0;this.handleBlur=()=>{this.hasTrigger("focus")&&!Lo.isDropdownOpen()&&this.hide()};this.handleClick=()=>{this.hasTrigger("click")&&!Lo.isDropdownOpen()&&(this.open&&this.hide(),this.show())};this.handleFocus=()=>{this.hasTrigger("focus")&&!Lo.isDropdownOpen()&&this.show()};this.handleDocumentKeyDown=i=>{i.key==="Escape"&&(i.stopPropagation(),this.hide())};this.addEventListener("blur",this.handleBlur,!0),this.addEventListener("focus",this.handleFocus,!0),this.addEventListener("click",this.handleClick),this.addEventListener("mouseover",this.handleMouseOver),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){var i;(i=this.closeWatcher)==null||i.destroy(),document.removeEventListener("keydown",this.handleDocumentKeyDown)}firstUpdated(i){this.body.hidden=!this.open,this.open&&(this.popup.active=!0,this.popup.reposition()),super.firstUpdated(i)}hasTrigger(i){return this.trigger.split(" ").includes(i)}handleMouseOver(){this.hasTrigger("hover")&&!Lo.isDropdownOpen()&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.show(),0))}handleMouseOut(){this.hasTrigger("hover")&&!Lo.isDropdownOpen()&&(clearTimeout(this.hoverTimeout),this.hoverTimeout=window.setTimeout(()=>this.hide(),0))}handleOpenChange(){var i;if(this.open){if(Lo.registerTooltip(this),this.disabled)return;this.emit("zn-show"),"CloseWatcher"in window?((i=this.closeWatcher)==null||i.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>{this.hide()}):document.addEventListener("keydown",this.handleDocumentKeyDown),this.body.hidden=!1,this.popup.active=!0,this.popup.reposition(),this.emit("zn-after-show")}else Lo.unregisterTooltip(this),this.emit("zn-hide"),this.popup.active=!1,this.body.hidden=!0,this.emit("zn-after-hide")}async handleOptionsChange(){this.hasUpdated&&(await this.updateComplete,this.popup.reposition())}handleDisabledChange(){this.disabled&&this.open&&this.hide()}async show(){if(!this.open)return this.open=!0,Qr(this,"zn-after-show")}hide(){this.open&&(this.open=!1,Qr(this,"zn-after-hide"))}render(){return T`
84
84
  <zn-popup
85
85
  part="base"
86
86
  exportparts="popup:base__popup,arrow:base__arrow"
@@ -100,7 +100,7 @@ function print() { __p += __j.call(arguments, '') }
100
100
  aria-label="tooltip">
101
101
  <slot name="content">${this.content}</slot>
102
102
  </div>
103
- </zn-popup>`}};Si.styles=Z(k4),y([ge("slot:not([name])")],Si.prototype,"defaultSlot",2),y([ge(".tooltip__body")],Si.prototype,"body",2),y([ge("zn-popup")],Si.prototype,"popup",2),y([_()],Si.prototype,"content",2),y([_()],Si.prototype,"placement",2),y([_({type:Boolean,reflect:!0})],Si.prototype,"disabled",2),y([_({type:Number})],Si.prototype,"distance",2),y([_({type:Boolean,reflect:!0})],Si.prototype,"open",2),y([_({type:Number})],Si.prototype,"skidding",2),y([_()],Si.prototype,"trigger",2),y([_({type:Boolean})],Si.prototype,"hoist",2),y([He("open",{waitUntilFirstUpdate:!0})],Si.prototype,"handleOpenChange",1),y([He(["content","distance","hoist","placement","skidding"])],Si.prototype,"handleOptionsChange",1),y([He("disabled")],Si.prototype,"handleDisabledChange",1);var Ba=Si;Si.define("zn-tooltip");var _4=te`: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:14px;line-height:1.5;-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:inline-size;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}h1,h2,h3,h4,h5,h6{font-weight:var(--zn-font-weight-medium);color:rgb(var(--zn-text-heading))}h6{font-size:var(--zn-font-size-x-small)}h5{font-size:var(--zn-font-size-small)}h4{font-size:var(--zn-font-size-medium)}h3{font-size:var(--zn-font-size-large)}h2{font-size:var(--zn-font-size-x-large)}h1{font-size:var(--zn-font-size-2x-large)}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-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-spacing-medium,0)}.zn-pad-y,.zn-py{padding-top:15px;padding-bottom:15px}.zn-pad-x,.zn-px{padding-left:15px;padding-right:15px}.zn-pr{padding-right:15px}.zn-pl{padding-left:15px}.zn-pt{padding-top:15px}.zn-pb{padding-bottom:15px}.zn-margin{margin:15px}.zn-mx{margin-left:15px;margin-right:15px}.zn-my{margin-top:15px;margin-bottom:15px}.zn-mt{margin-top:15px}.zn-mb{margin-bottom:15px}.zn-ml{margin-left:15px}.zn-mr{margin-right:15px}.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{background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.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:3px;gap:3px;display:flex;flex-wrap:wrap;align-items:center;z-index:1}.zn-panel-bar--large{padding:6px;gap:6px}.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}*,*::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-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap}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:10px}}label{font-weight:600;font-size:rgb(var(--zn-font-size-medium));color:rgb(var(--zn-text-heading));display:block;margin-bottom:5px;margin-top:15px}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:10px;accent-color:rgb(var(--zn-primary));width:100%;max-width:768px}fieldset{border-color:rgba(var(--zn-primary),20%);border-width:2px;padding:0 15px 15px}select option{padding:5px}select>option:checked{background-color:rgba(var(--zn-primary),20%);border-radius:5px}fieldset>legend{padding:5px}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap}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:15px}input[type=file]::-webkit-file-upload-button{border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;margin-right:10px}input[type=file]::-webkit-file-upload-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input::-webkit-calendar-picker-indicator{cursor:pointer;padding:10px}input[list]::-webkit-calendar-picker-indicator{padding:10px 5px}.input--with-icon{position:relative}.input--with-icon zn-icon{padding:14px;position:absolute;top:50%;pointer-events:none;transform:translateY(-50%);left:10px;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{border-collapse:separate !important;border-spacing:0;width:100%;max-width:100%;table-layout:auto;text-align:left}table thead{font-weight:500}table tbody a{cursor:pointer;color:rgb(var(--zn-primary))}table tbody tr td{border-top:1px solid rgb(var(--zn-border-color)) !important}table tbody tr:first-of-type td{border-top:0 !important}table tbody tr:nth-of-type(even){background-color:rgba(var(--zn-body))}table thead tr th:first-of-type,table tbody tr td:first-of-type{padding-left:14px}table thead tr th:last-of-type,table tbody tr td:last-of-type{padding-right:14px}table th,table td{padding:15px;min-width:90px;white-space:nowrap}table th:first-child,table td:first-child{padding-left:0}table td>span{white-space:normal}table th{padding-bottom:0;border-bottom:1px solid rgb(var(--zn-border-color))}.zn-table-fixed{table-layout:fixed}thead tr:last-of-type th{border-bottom:0}.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{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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:0 auto}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host button,:host a{width:100%}.button{border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;--btn-color:var(--zn-primary);--notification-color:rgb(var(--zn-color-error));border-width:1px;border-color:transparent;height:100%;display:inline-flex;position:relative}.button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}.button.button--info{--btn-color:var(--zn-color-info)}.button.button--error{--btn-color:var(--zn-color-error)}.button.button--warning{--btn-color:var(--zn-color-warning)}.button.button--success{--btn-color:var(--zn-color-success)}.button__label--hidden{visibility:hidden}.button.button--muted-notification{--notification-color:rgb(var(--zn-color-info))}.button--has-notification{position:relative}.button--has-notification::after{content:attr(data-notification);position:absolute;display:flex;justify-content:center;align-items:center;top:0;inset-inline-end:0;width:15px;height:15px;border-radius:50%;font-size:10px;color:white;background-color:var(--notification-color)}.button--has-notification.button--notification-dot:after{content:"";width:5px;height:5px;top:5px;right:3px}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button:focus-visible{outline:2px solid rgb(var(--btn-color));outline-offset:2px}[disabled]{cursor:not-allowed;opacity:0.5}[disabled] *{pointer-events:none}.button--standard{background-color:rgba(var(--btn-color),0.85);border-color:rgb(var(--btn-color));color:rgba(255,255,255,0.9)}.button--standard.button--secondary{background-color:var(--zn-color-neutral-50);border-color:var(--zn-color-neutral-50);color:rgb(var(--zn-primary))}.button--standard.button--secondary:hover:not([disabled]){background-color:var(--zn-color-neutral-100)}.button--standard.button--secondary:active:not([disabled]){background-color:var(--zn-color-neutral-100)}.button--standard:hover:not([disabled]){background-color:rgba(var(--btn-color),0.8)}.button--standard:active:not([disabled]){background-color:rgba(var(--btn-color))}.button--outline{background:none;border-width:1px;border-color:rgb(var(--btn-color));color:rgb(var(--btn-color))}.button--outline:hover:not([disabled]),.button--outline:active:not([disabled]){background-color:rgb(var(--btn-color));color:white}.button--outline.button--secondary{border-color:#F3EFFF}.button--outline.button--secondary:hover:not([disabled]),.button--outline.button--secondary:active:not([disabled]){background-color:rgb(221,218,236)}.button--text{background:none;color:rgb(var(--btn-color))}.button--text:hover:not([disabled]),.button--text:active:not([disabled]){background-color:rgba(var(--btn-color),0.1)}.button--text.button--secondary{font-weight:normal}.button--x-small{padding:2px 10px;font-size:12px}.button--content{padding:0 0;font-size:12px}.button--content zn-icon{line-height:0}.button--grow{width:100%}.button--small{padding:4px 14px}.button--large{padding:10px 20px}.button--with-icon:not(.button--with-content).button--x-small,.button--with-icon:not(.button--with-content).button--small{padding:4px}.button--with-icon:not(.button--with-content).button--medium{padding:7px}.button--with-icon:not(.button--with-content).button--large{padding:10px;font-size:16px}.button--with-icon.button--with-content.button--x-small,.button--with-icon.button--with-content.button--small{padding-left:10px}.button--with-icon.button--with-content.button--x-small.button--icon-left,.button--with-icon.button--with-content.button--small.button--icon-left{padding-left:10px}.button--with-icon.button--with-content.button--x-small.button--icon-left zn-icon,.button--with-icon.button--with-content.button--small.button--icon-left zn-icon{margin-right:4px}.button--with-icon.button--with-content.button--x-small.button--icon-right,.button--with-icon.button--with-content.button--small.button--icon-right{padding-right:10px}.button--with-icon.button--with-content.button--x-small.button--icon-right zn-icon,.button--with-icon.button--with-content.button--small.button--icon-right zn-icon{margin-left:4px}.button--with-icon.button--with-content.button--medium.button--icon-left{padding-left:10px}.button--with-icon.button--with-content.button--medium.button--icon-left zn-icon{margin-right:6px}.button--with-icon.button--with-content.button--medium.button--icon-right{padding-right:10px}.button--with-icon.button--with-content.button--medium.button--icon-right zn-icon{margin-left:6px}.button--with-icon.button--with-content.button--large.button--icon-left{padding-left:14px}.button--with-icon.button--with-content.button--large.button--icon-left zn-icon{margin-right:8px}.button--with-icon.button--with-content.button--large.button--icon-right{padding-right:14px}.button--with-icon.button--with-content.button--large.button--icon-right zn-icon{margin-left:8px}.button--square{border-radius:0}.button--transparent{background-color:transparent;border-color:transparent !important;color:inherit}.button--transparent:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.1)}.button--transparent:active:not([disabled]){background-color:rgba(var(--zn-primary),0.2)}.button--star{--btn-color:var(--zn-orange);background-color:rgb(var(--btn-color));border-color:rgb(var(--btn-color));color:white;opacity:1 !important}.button--star:hover:not([disabled]){background-color:rgb(var(--btn-color))}.button--star:active{background-color:rgb(var(--btn-color))}.button--star.button--outline{background-color:transparent;border-color:rgb(var(--btn-color));color:rgb(var(--btn-color))}.button--star.button--outline:hover:not([disabled]),.button--star.button--outline:active:not([disabled]){background-color:rgba(var(--btn-color));color:white}.button--loading-bg-transparent{background-color:transparent}.button--loading-fill{pointer-events:none;position:absolute;z-index:1;background-color:rgba(var(--btn-color),0.85);border-radius:inherit;transition:width 0s;animation:loading-fill-grow var(--loading-duration,2s) linear forwards;inset:-1px}.button--loading-fill-transparent{background-color:rgba(var(--zn-primary),0.1)}.button--loading-container{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none}.button--loading-text{z-index:5;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:inherit;font-weight:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;pointer-events:none;color:inherit}.button--loading-text .loading-countdown{margin-left:3px}.button--loading-text-left{justify-content:flex-start;padding-inline-start:7px}.button--loading-text-right{justify-content:flex-end;padding-inline-end:7px}.button--relative-wrapper{position:relative;display:inline-flex;height:100%;width:100%}@keyframes loading-fill-grow{from{width:0}to{width:100%}}:host([vertical-align=center]){align-self:center}:host([vertical-align=end]){align-self:end}:host([vertical-align=start]){align-self:start}:host([grow]){width:100%}:host([grow]) button{width:100%}:host([data-zn-button-group__button--grow]){flex-grow:1;flex-basis:0}:host([data-zn-button-group__button--inner]) .button{border-radius:0 !important;border-left:0 !important;border-right:0 !important}:host([data-zn-button-group__button]:not([data-zn-button-group__button--first]):not(:hover)) .button:after{content:"";position:absolute;top:0;inset-inline-start:0;bottom:0;border-left:solid 1px;mix-blend-mode:multiply;color:rgb(var(--zn-border-color))}:host([data-zn-button-group__button--first]:not([data-zn-button-group__button--last])) .button{border-radius:5px 0 0 5px !important;border-right:0 !important}:host([data-zn-button-group__button--last]:not([data-zn-button-group__button--first])) .button{border-radius:0 5px 5px 0 !important;border-left:0 !important}`;var nt=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this);this.hasSlotController=new Ue(this,"[default]");this._loadingState={countdown:null,interval:void 0};this.color="default";this.size="medium";this.text=!1;this.outline=!1;this.disabled=!1;this.grow=!1;this.square=!1;this.dropdownCloser=!1;this.mutedNotifications=!1;this.content="";this.icon="";this.gaid="";this.iconPosition="left";this.rel="noreferrer noopener";this.autoClick=!1;this.autoClickDelay=2e3;this.loadingText="Loading...";this.loadingTextPosition="center";this.loading=!1;this.handleClick=()=>{if(!this.disabled){if(this.dropdownCloser){let i=null,n=this,r=0,a=30;for(;n&&r<a;){if(n instanceof Na){i=n;break}n=n.parentElement||(n.getRootNode()instanceof ShadowRoot?n.getRootNode().host:null),r++}i==null||i.hide()}this.type==="submit"&&this.formControlController.submit()}}}get validity(){return this._isButton()&&this.button?this.button.validity:kn}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}firstUpdated(){this._isButton()&&this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.teardownAutoClick()}async handleAutoClickChange(i,n){n?(await this.updateComplete,this.setupAutoClick()):this.teardownAutoClick()}updated(i){if(super.updated(i),this.button){let n=this.button.querySelector(".button--loading-fill");if(n&&n.remove(),this.loading){let r=`${this.autoClickDelay/1e3}s`,a=document.createElement("div");a.classList.add("button--loading-fill"),a.setAttribute("style",`--loading-duration: ${r}`),this.button.classList.contains("button--transparent")&&(a.classList.add("button--loading-fill-transparent"),this.button.classList.add("button--loading-bg-transparent")),this.button.prepend(a),this.button.classList.add("button--loading-bg")}else this.button.classList.remove("button--loading-bg"),this.button.classList.remove("button--loading-bg-transparent");this.updateCountdownText()}}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(i){this._isButton()&&(this.button.setCustomValidity(i),this.formControlController.updateValidity())}_isLink(){return this.href!==void 0}_isButton(){return!this._isLink()}setupAutoClick(){this.button&&(this._autoClickTimeout&&(window.clearTimeout(this._autoClickTimeout),this._autoClickTimeout=void 0),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.loading=!0,this._loadingState.countdown=Math.ceil(this.autoClickDelay/1e3),this.updateCountdownText(),this._loadingState.interval=window.setInterval(()=>{this._loadingState.countdown&&this._loadingState.countdown>0&&(this._loadingState.countdown--,this.updateCountdownText())},1e3),this._autoClickTimeout=window.setTimeout(()=>{var i;this.loading=!1,this._loadingState.countdown=null,this.updateCountdownText(),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),(i=this.button)==null||i.click()},this.autoClickDelay))}updateCountdownText(){let i=this._loadingState.countdown&&this._loadingState.countdown>0?` (${this._loadingState.countdown}s)`:"";if(this.countdownContainer)for(let n of this.countdownContainer)n.textContent=i}teardownAutoClick(){this._autoClickTimeout&&(window.clearTimeout(this._autoClickTimeout),this._autoClickTimeout=void 0),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.loading=!1,this._loadingState.countdown=null,this.button&&(this.button.style.width="")}render(){let i=this._isLink(),n=this.loading&&this.autoClick,r=this.icon&&!this.loading?ln`
103
+ </zn-popup>`}};Si.styles=Z(k4),y([ge("slot:not([name])")],Si.prototype,"defaultSlot",2),y([ge(".tooltip__body")],Si.prototype,"body",2),y([ge("zn-popup")],Si.prototype,"popup",2),y([_()],Si.prototype,"content",2),y([_()],Si.prototype,"placement",2),y([_({type:Boolean,reflect:!0})],Si.prototype,"disabled",2),y([_({type:Number})],Si.prototype,"distance",2),y([_({type:Boolean,reflect:!0})],Si.prototype,"open",2),y([_({type:Number})],Si.prototype,"skidding",2),y([_()],Si.prototype,"trigger",2),y([_({type:Boolean})],Si.prototype,"hoist",2),y([He("open",{waitUntilFirstUpdate:!0})],Si.prototype,"handleOpenChange",1),y([He(["content","distance","hoist","placement","skidding"])],Si.prototype,"handleOptionsChange",1),y([He("disabled")],Si.prototype,"handleDisabledChange",1);var Ba=Si;Si.define("zn-tooltip");var _4=te`: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:14px;line-height:1.5;-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:inline-size;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}h1,h2,h3,h4,h5,h6{font-weight:var(--zn-font-weight-medium);color:rgb(var(--zn-text-heading))}h6{font-size:var(--zn-font-size-x-small)}h5{font-size:var(--zn-font-size-small)}h4{font-size:var(--zn-font-size-medium)}h3{font-size:var(--zn-font-size-large)}h2{font-size:var(--zn-font-size-x-large)}h1{font-size:var(--zn-font-size-2x-large)}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-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-spacing-medium,0)}.zn-pad-y,.zn-py{padding-top:15px;padding-bottom:15px}.zn-pad-x,.zn-px{padding-left:15px;padding-right:15px}.zn-pr{padding-right:15px}.zn-pl{padding-left:15px}.zn-pt{padding-top:15px}.zn-pb{padding-bottom:15px}.zn-margin{margin:15px}.zn-mx{margin-left:15px;margin-right:15px}.zn-my{margin-top:15px;margin-bottom:15px}.zn-mt{margin-top:15px}.zn-mb{margin-bottom:15px}.zn-ml{margin-left:15px}.zn-mr{margin-right:15px}.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{background-color:rgba(var(--zn-panel),var(--zn-panel-opacity))}.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:3px;gap:3px;display:flex;flex-wrap:wrap;align-items:center;z-index:1}.zn-panel-bar--large{padding:6px;gap:6px}.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}*,*::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-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap}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:10px}}label{font-weight:600;font-size:rgb(var(--zn-font-size-medium));color:rgb(var(--zn-text-heading));display:block;margin-bottom:5px;margin-top:15px}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:10px;accent-color:rgb(var(--zn-primary));width:100%;max-width:768px}fieldset{border-color:rgba(var(--zn-primary),20%);border-width:2px;padding:0 15px 15px}select option{padding:5px}select>option:checked{background-color:rgba(var(--zn-primary),20%);border-radius:5px}fieldset>legend{padding:5px}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap}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:15px}input[type=file]::-webkit-file-upload-button{border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;margin-right:10px}input[type=file]::-webkit-file-upload-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input::-webkit-calendar-picker-indicator{cursor:pointer;padding:10px}input[list]::-webkit-calendar-picker-indicator{padding:10px 5px}.input--with-icon{position:relative}.input--with-icon zn-icon{padding:14px;position:absolute;top:50%;pointer-events:none;transform:translateY(-50%);left:10px;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{border-collapse:separate !important;border-spacing:0;width:100%;max-width:100%;table-layout:auto;text-align:left}table thead{font-weight:500}table tbody a{cursor:pointer;color:rgb(var(--zn-primary))}table tbody tr td{border-top:1px solid rgb(var(--zn-border-color)) !important}table tbody tr:first-of-type td{border-top:0 !important}table tbody tr:nth-of-type(even){background-color:rgba(var(--zn-body))}table thead tr th:first-of-type,table tbody tr td:first-of-type{padding-left:14px}table thead tr th:last-of-type,table tbody tr td:last-of-type{padding-right:14px}table th,table td{padding:15px;min-width:90px;white-space:nowrap}table th:first-child,table td:first-child{padding-left:0}table td>span{white-space:normal}table th{padding-bottom:0;border-bottom:1px solid rgb(var(--zn-border-color))}.zn-table-fixed{table-layout:fixed}thead tr:last-of-type th{border-bottom:0}.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{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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:0 auto}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{display:inline-block;position:relative;width:auto;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host button,:host a{width:100%}.button{border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;--btn-color:var(--zn-primary);--notification-color:rgb(var(--zn-color-error));border-width:1px;border-color:transparent;height:100%;display:inline-flex;position:relative}.button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}.button.button--info{--btn-color:var(--zn-color-info)}.button.button--error{--btn-color:var(--zn-color-error)}.button.button--warning{--btn-color:var(--zn-color-warning)}.button.button--success{--btn-color:var(--zn-color-success)}.button__label--hidden{visibility:hidden}.button.button--muted-notification{--notification-color:rgb(var(--zn-color-info))}.button--has-notification{position:relative}.button--has-notification::after{content:attr(data-notification);position:absolute;display:flex;justify-content:center;align-items:center;top:0;inset-inline-end:0;width:15px;height:15px;border-radius:50%;font-size:10px;color:white;background-color:var(--notification-color)}.button--has-notification.button--notification-dot:after{content:"";width:5px;height:5px;top:5px;right:3px}.button::-moz-focus-inner{border:0}.button:focus{outline:none}.button:focus-visible{outline:2px solid rgb(var(--btn-color));outline-offset:2px}[disabled]{cursor:not-allowed;opacity:0.5}[disabled] *{pointer-events:none}.button--standard{background-color:rgba(var(--btn-color),0.85);border-color:rgb(var(--btn-color));color:rgba(255,255,255,0.9)}.button--standard.button--secondary{background-color:var(--zn-color-neutral-50);border-color:var(--zn-color-neutral-50);color:rgb(var(--zn-primary))}.button--standard.button--secondary:hover:not([disabled]){background-color:var(--zn-color-neutral-100)}.button--standard.button--secondary:active:not([disabled]){background-color:var(--zn-color-neutral-100)}.button--standard:hover:not([disabled]){background-color:rgba(var(--btn-color),0.8)}.button--standard:active:not([disabled]){background-color:rgba(var(--btn-color))}.button--outline{background:none;border-width:1px;border-color:rgb(var(--btn-color));color:rgb(var(--btn-color))}.button--outline:hover:not([disabled]),.button--outline:active:not([disabled]){background-color:rgb(var(--btn-color));color:white}.button--outline.button--secondary{border-color:#F3EFFF}.button--outline.button--secondary:hover:not([disabled]),.button--outline.button--secondary:active:not([disabled]){background-color:rgb(221,218,236)}.button--text{background:none;color:rgb(var(--btn-color))}.button--text:hover:not([disabled]),.button--text:active:not([disabled]){background-color:rgba(var(--btn-color),0.1)}.button--text.button--secondary{font-weight:normal}.button--x-small{padding:2px 10px;font-size:12px}.button--content{padding:0 0;font-size:12px}.button--content zn-icon{line-height:0}.button--grow{width:100%}.button--small{padding:4px 14px}.button--large{padding:10px 20px}.button--with-icon:not(.button--with-content).button--x-small,.button--with-icon:not(.button--with-content).button--small{padding:4px}.button--with-icon:not(.button--with-content).button--medium{padding:7px}.button--with-icon:not(.button--with-content).button--large{padding:10px;font-size:16px}.button--with-icon.button--with-content.button--x-small,.button--with-icon.button--with-content.button--small{padding-left:10px}.button--with-icon.button--with-content.button--x-small.button--icon-left,.button--with-icon.button--with-content.button--small.button--icon-left{padding-left:10px}.button--with-icon.button--with-content.button--x-small.button--icon-left zn-icon,.button--with-icon.button--with-content.button--small.button--icon-left zn-icon{margin-right:4px}.button--with-icon.button--with-content.button--x-small.button--icon-right,.button--with-icon.button--with-content.button--small.button--icon-right{padding-right:10px}.button--with-icon.button--with-content.button--x-small.button--icon-right zn-icon,.button--with-icon.button--with-content.button--small.button--icon-right zn-icon{margin-left:4px}.button--with-icon.button--with-content.button--medium.button--icon-left{padding-left:10px}.button--with-icon.button--with-content.button--medium.button--icon-left zn-icon{margin-right:6px}.button--with-icon.button--with-content.button--medium.button--icon-right{padding-right:10px}.button--with-icon.button--with-content.button--medium.button--icon-right zn-icon{margin-left:6px}.button--with-icon.button--with-content.button--large.button--icon-left{padding-left:14px}.button--with-icon.button--with-content.button--large.button--icon-left zn-icon{margin-right:8px}.button--with-icon.button--with-content.button--large.button--icon-right{padding-right:14px}.button--with-icon.button--with-content.button--large.button--icon-right zn-icon{margin-left:8px}.button--square{border-radius:0}.button--transparent{background-color:transparent;border-color:transparent !important;color:inherit}.button--transparent:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.1)}.button--transparent:active:not([disabled]){background-color:rgba(var(--zn-primary),0.2)}.button--star{--btn-color:var(--zn-orange);background-color:rgb(var(--btn-color));border-color:rgb(var(--btn-color));color:white;opacity:1 !important}.button--star:hover:not([disabled]){background-color:rgb(var(--btn-color))}.button--star:active{background-color:rgb(var(--btn-color))}.button--star.button--outline{background-color:transparent;border-color:rgb(var(--btn-color));color:rgb(var(--btn-color))}.button--star.button--outline:hover:not([disabled]),.button--star.button--outline:active:not([disabled]){background-color:rgba(var(--btn-color));color:white}.button--loading-bg-transparent{background-color:transparent}.button--loading-fill{pointer-events:none;position:absolute;z-index:1;background-color:rgba(var(--btn-color),0.85);border-radius:inherit;transition:width 0s;animation:loading-fill-grow var(--loading-duration,2s) linear forwards;inset:-1px}.button--loading-fill-transparent{background-color:rgba(var(--zn-primary),0.1)}.button--loading-container{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;pointer-events:none}.button--loading-text{z-index:5;width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:inherit;font-weight:inherit;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;pointer-events:none;color:inherit}.button--loading-text .loading-countdown{margin-left:3px}.button--loading-text-left{justify-content:flex-start;padding-inline-start:7px}.button--loading-text-right{justify-content:flex-end;padding-inline-end:7px}.button--relative-wrapper{position:relative;display:inline-flex;height:100%;width:100%}@keyframes loading-fill-grow{from{width:0}to{width:100%}}:host([vertical-align=center]){align-self:center}:host([vertical-align=end]){align-self:end}:host([vertical-align=start]){align-self:start}:host([grow]){width:100%}:host([grow]) button{width:100%}:host([data-zn-button-group__button--grow]){flex-grow:1;flex-basis:0}:host([data-zn-button-group__button--inner]) .button{border-radius:0 !important;border-left:0 !important;border-right:0 !important}:host([data-zn-button-group__button]:not([data-zn-button-group__button--first]):not(:hover)) .button:after{content:"";position:absolute;top:0;inset-inline-start:0;bottom:0;border-left:solid 1px;mix-blend-mode:multiply;color:rgb(var(--zn-border-color))}:host([data-zn-button-group__button--first]:not([data-zn-button-group__button--last])) .button{border-radius:5px 0 0 5px !important;border-right:0 !important}:host([data-zn-button-group__button--last]:not([data-zn-button-group__button--first])) .button{border-radius:0 5px 5px 0 !important;border-left:0 !important}`;var nt=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this);this.hasSlotController=new Ue(this,"[default]");this._loadingState={countdown:null,interval:void 0};this.color="default";this.size="medium";this.text=!1;this.outline=!1;this.disabled=!1;this.grow=!1;this.square=!1;this.dropdownCloser=!1;this.mutedNotifications=!1;this.content="";this.icon="";this.gaid="";this.iconPosition="left";this.rel="noreferrer noopener";this.autoClick=!1;this.autoClickDelay=2e3;this.loadingText="Loading...";this.loadingTextPosition="center";this.loading=!1;this.handleClick=()=>{if(!this.disabled){if(this.dropdownCloser){let i=null,n=this,r=0,a=30;for(;n&&r<a;){if(n instanceof Na){i=n;break}n=n.parentElement||(n.getRootNode()instanceof ShadowRoot?n.getRootNode().host:null),r++}i==null||i.hide()}this.type==="submit"&&this.formControlController.submit()}}}get validity(){return this._isButton()&&this.button?this.button.validity:_n}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}firstUpdated(){this._isButton()&&this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback(),this.teardownAutoClick()}async handleAutoClickChange(i,n){n?(await this.updateComplete,this.setupAutoClick()):this.teardownAutoClick()}updated(i){if(super.updated(i),this.button){let n=this.button.querySelector(".button--loading-fill");if(n&&n.remove(),this.loading){let r=`${this.autoClickDelay/1e3}s`,a=document.createElement("div");a.classList.add("button--loading-fill"),a.setAttribute("style",`--loading-duration: ${r}`),this.button.classList.contains("button--transparent")&&(a.classList.add("button--loading-fill-transparent"),this.button.classList.add("button--loading-bg-transparent")),this.button.prepend(a),this.button.classList.add("button--loading-bg")}else this.button.classList.remove("button--loading-bg"),this.button.classList.remove("button--loading-bg-transparent");this.updateCountdownText()}}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(i){this._isButton()&&(this.button.setCustomValidity(i),this.formControlController.updateValidity())}_isLink(){return this.href!==void 0}_isButton(){return!this._isLink()}setupAutoClick(){this.button&&(this._autoClickTimeout&&(window.clearTimeout(this._autoClickTimeout),this._autoClickTimeout=void 0),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.loading=!0,this._loadingState.countdown=Math.ceil(this.autoClickDelay/1e3),this.updateCountdownText(),this._loadingState.interval=window.setInterval(()=>{this._loadingState.countdown&&this._loadingState.countdown>0&&(this._loadingState.countdown--,this.updateCountdownText())},1e3),this._autoClickTimeout=window.setTimeout(()=>{var i;this.loading=!1,this._loadingState.countdown=null,this.updateCountdownText(),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),(i=this.button)==null||i.click()},this.autoClickDelay))}updateCountdownText(){let i=this._loadingState.countdown&&this._loadingState.countdown>0?` (${this._loadingState.countdown}s)`:"";if(this.countdownContainer)for(let n of this.countdownContainer)n.textContent=i}teardownAutoClick(){this._autoClickTimeout&&(window.clearTimeout(this._autoClickTimeout),this._autoClickTimeout=void 0),this._loadingState.interval&&(window.clearInterval(this._loadingState.interval),this._loadingState.interval=void 0),this.loading=!1,this._loadingState.countdown=null,this.button&&(this.button.style.width="")}render(){let i=this._isLink(),n=this.loading&&this.autoClick,r=this.icon&&!this.loading?ln`
104
104
  <zn-icon part="icon" src="${this.icon}" id="xy2" size="${this.iconSize?this.iconSize:16}"
105
105
  color="${this.iconColor?this.iconColor:null}"></zn-icon>`:"",a=i?Fa`a`:Fa`button`,s=ln`
106
106
  <${a}
@@ -305,7 +305,7 @@ function print() { __p += __j.call(arguments, '') }
305
305
  </zn-button>
306
306
 
307
307
  <slot name="footer-text" slot="footer-text">${this.footerText}</slot>
308
- </zn-dialog>`}submitDialog(){let i=this.querySelector("form");!i&&this.action&&(i=document.createElement("form"),i.action=this.action,i.method="POST",this.querySelectorAll("input").forEach(n=>{i==null||i.appendChild(n.cloneNode())}),this.appendChild(i)),i&&i.reportValidity()&&(document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:i}})),i.requestSubmit(),this.showLoading?(this.loading=!0,this.dialog.closer.disabled=!0):this.hide())}};ai.styles=Z(S5),ai.dependencies={"zn-dialog":by},y([_({reflect:!0})],ai.prototype,"variant",2),y([_({reflect:!0})],ai.prototype,"size",2),y([_()],ai.prototype,"type",2),y([_({type:Boolean,reflect:!0})],ai.prototype,"open",2),y([_()],ai.prototype,"caption",2),y([_()],ai.prototype,"action",2),y([_()],ai.prototype,"content",2),y([_()],ai.prototype,"confirmText",2),y([_()],ai.prototype,"cancelText",2),y([_({type:Boolean,attribute:"hide-icon"})],ai.prototype,"hideIcon",2),y([_({type:Boolean,attribute:"show-loading"})],ai.prototype,"showLoading",2),y([_({reflect:!0})],ai.prototype,"trigger",2),y([_()],ai.prototype,"announcement",2),y([_({attribute:"footer-text"})],ai.prototype,"footerText",2),y([ge("zn-dialog")],ai.prototype,"dialog",2),y([We()],ai.prototype,"loading",2);var Kh=ai;ai.define("zn-confirm");var A5=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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-filter{display:flex;flex-direction:column;gap:var(--zn-spacing-small)}.data-table-filter__item{display:flex;justify-content:space-between}.data-table-filter__item__name{font-weight:500;color:rgb(var(--zn-text-heading));width:100%}`;var ea=class extends J{constructor(){super(...arguments);this._formController=new rt(this,{});this.filters="";this.name="data-table-filter";this.handleQBClear=()=>{var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("zn-query-builder");i&&i.clear()};this.handleQBReset=()=>{var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("zn-query-builder");i&&i.reset()};this.handleQBUpdate=()=>{var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("zn-query-builder");i&&(this.value=i.value,this.closeSlideout(),this._formController.updateValidity(),this.emit("zn-filter-change"))}}get validationMessage(){return""}get validity(){return kn}checkValidity(){return!0}getForm(){return this._formController.getForm()}reportValidity(){return!0}setCustomValidity(){this._formController.updateValidity()}firstUpdated(i){super.firstUpdated(i),this._formController.updateValidity()}closeSlideout(){var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("zn-slideout");i&&i.hide()}render(){return T`
308
+ </zn-dialog>`}submitDialog(){let i=this.querySelector("form");!i&&this.action&&(i=document.createElement("form"),i.action=this.action,i.method="POST",this.querySelectorAll("input").forEach(n=>{i==null||i.appendChild(n.cloneNode())}),this.appendChild(i)),i&&i.reportValidity()&&(document.dispatchEvent(new CustomEvent("zn-register-element",{detail:{element:i}})),i.requestSubmit(),this.showLoading?(this.loading=!0,this.dialog.closer.disabled=!0):this.hide())}};ai.styles=Z(S5),ai.dependencies={"zn-dialog":by},y([_({reflect:!0})],ai.prototype,"variant",2),y([_({reflect:!0})],ai.prototype,"size",2),y([_()],ai.prototype,"type",2),y([_({type:Boolean,reflect:!0})],ai.prototype,"open",2),y([_()],ai.prototype,"caption",2),y([_()],ai.prototype,"action",2),y([_()],ai.prototype,"content",2),y([_()],ai.prototype,"confirmText",2),y([_()],ai.prototype,"cancelText",2),y([_({type:Boolean,attribute:"hide-icon"})],ai.prototype,"hideIcon",2),y([_({type:Boolean,attribute:"show-loading"})],ai.prototype,"showLoading",2),y([_({reflect:!0})],ai.prototype,"trigger",2),y([_()],ai.prototype,"announcement",2),y([_({attribute:"footer-text"})],ai.prototype,"footerText",2),y([ge("zn-dialog")],ai.prototype,"dialog",2),y([We()],ai.prototype,"loading",2);var Kh=ai;ai.define("zn-confirm");var A5=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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-filter{display:flex;flex-direction:column;gap:var(--zn-spacing-small)}.data-table-filter__item{display:flex;justify-content:space-between}.data-table-filter__item__name{font-weight:500;color:rgb(var(--zn-text-heading));width:100%}`;var ea=class extends J{constructor(){super(...arguments);this._formController=new rt(this,{});this.filters="";this.name="data-table-filter";this.handleQBClear=()=>{var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("zn-query-builder");i&&i.clear()};this.handleQBReset=()=>{var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("zn-query-builder");i&&i.reset()};this.handleQBUpdate=()=>{var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("zn-query-builder");i&&(this.value=i.value,this.closeSlideout(),this._formController.updateValidity(),this.emit("zn-filter-change"))}}get validationMessage(){return""}get validity(){return _n}checkValidity(){return!0}getForm(){return this._formController.getForm()}reportValidity(){return!0}setCustomValidity(){this._formController.updateValidity()}firstUpdated(i){super.firstUpdated(i),this._formController.updateValidity()}closeSlideout(){var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector("zn-slideout");i&&i.hide()}render(){return T`
309
309
  <zn-button id="slideout-trigger" color="transparent" size="x-small" icon="filter_alt" icon-size="22"
310
310
  slot="trigger"
311
311
  tooltip="Filter">
@@ -1818,7 +1818,7 @@ rect.legend-mouseover-inactive,
1818
1818
  <div class="chart">
1819
1819
  <div id="chart"></div>
1820
1820
  </div>
1821
- `}};ji.styles=Z(ZC),y([_()],ji.prototype,"type",2),y([_({type:Array})],ji.prototype,"data",2),y([_({type:Array})],ji.prototype,"categories",2),y([_()],ji.prototype,"xAxis",2),y([_({type:Number,attribute:"d-size"})],ji.prototype,"datapointSize",2),y([_({type:Boolean})],ji.prototype,"stacked",2),y([_({type:Boolean})],ji.prototype,"live",2),y([_({attribute:"data-url"})],ji.prototype,"dataUrl",2),y([_({attribute:"live-interval",type:Number})],ji.prototype,"liveInterval",2),y([_({type:Number,reflect:!0})],ji.prototype,"height",2),y([_({attribute:"enable-animations",type:Boolean})],ji.prototype,"enableAnimations",2),y([_({attribute:"y-axis-append"})],ji.prototype,"yAxisAppend",2);var iB=ji;ji.define("zn-chart");function zu(o){return o+.5|0}var Js=(o,t,i)=>Math.max(Math.min(o,i),t);function ku(o){return Js(zu(o*2.55),0,255)}function Qs(o){return Js(zu(o*255),0,255)}function es(o){return Js(zu(o/2.55)/100,0,1)}function eS(o){return Js(zu(o*100),0,100)}var co={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},mx=[..."0123456789ABCDEF"],nB=o=>mx[o&15],rB=o=>mx[(o&240)>>4]+mx[o&15],Ug=o=>(o&240)>>4===(o&15),oB=o=>Ug(o.r)&&Ug(o.g)&&Ug(o.b)&&Ug(o.a);function aB(o){var t=o.length,i;return o[0]==="#"&&(t===4||t===5?i={r:255&co[o[1]]*17,g:255&co[o[2]]*17,b:255&co[o[3]]*17,a:t===5?co[o[4]]*17:255}:(t===7||t===9)&&(i={r:co[o[1]]<<4|co[o[2]],g:co[o[3]]<<4|co[o[4]],b:co[o[5]]<<4|co[o[6]],a:t===9?co[o[7]]<<4|co[o[8]]:255})),i}var sB=(o,t)=>o<255?t(o):"";function lB(o){var t=oB(o)?nB:rB;return o?"#"+t(o.r)+t(o.g)+t(o.b)+sB(o.a,t):void 0}var cB=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function rS(o,t,i){let n=t*Math.min(i,1-i),r=(a,s=(a+o/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function dB(o,t,i){let n=(r,a=(r+o/60)%6)=>i-i*t*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function fB(o,t,i){let n=rS(o,1,.5),r;for(t+i>1&&(r=1/(t+i),t*=r,i*=r),r=0;r<3;r++)n[r]*=1-t-i,n[r]+=t;return n}function hB(o,t,i,n,r){return o===r?(t-i)/n+(t<i?6:0):t===r?(i-o)/n+2:(o-t)/n+4}function gx(o){let i=o.r/255,n=o.g/255,r=o.b/255,a=Math.max(i,n,r),s=Math.min(i,n,r),l=(a+s)/2,c,d,f;return a!==s&&(f=a-s,d=l>.5?f/(2-a-s):f/(a+s),c=hB(i,n,r,f,a),c=c*60+.5),[c|0,d||0,l]}function bx(o,t,i,n){return(Array.isArray(t)?o(t[0],t[1],t[2]):o(t,i,n)).map(Qs)}function vx(o,t,i){return bx(rS,o,t,i)}function uB(o,t,i){return bx(fB,o,t,i)}function pB(o,t,i){return bx(dB,o,t,i)}function oS(o){return(o%360+360)%360}function mB(o){let t=cB.exec(o),i=255,n;if(!t)return;t[5]!==n&&(i=t[6]?ku(+t[5]):Qs(+t[5]));let r=oS(+t[2]),a=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?n=uB(r,a,s):t[1]==="hsv"?n=pB(r,a,s):n=vx(r,a,s),{r:n[0],g:n[1],b:n[2],a:i}}function gB(o,t){var i=gx(o);i[0]=oS(i[0]+t),i=vx(i),o.r=i[0],o.g=i[1],o.b=i[2]}function bB(o){if(!o)return;let t=gx(o),i=t[0],n=eS(t[1]),r=eS(t[2]);return o.a<255?`hsla(${i}, ${n}%, ${r}%, ${es(o.a)})`:`hsl(${i}, ${n}%, ${r}%)`}var tS={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},iS={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function vB(){let o={},t=Object.keys(iS),i=Object.keys(tS),n,r,a,s,l;for(n=0;n<t.length;n++){for(s=l=t[n],r=0;r<i.length;r++)a=i[r],l=l.replace(a,tS[a]);a=parseInt(iS[s],16),o[l]=[a>>16&255,a>>8&255,a&255]}return o}var Gg;function yB(o){Gg||(Gg=vB(),Gg.transparent=[0,0,0,0]);let t=Gg[o.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var xB=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function wB(o){let t=xB.exec(o),i=255,n,r,a;if(t){if(t[7]!==n){let s=+t[7];i=t[8]?ku(s):Js(s*255,0,255)}return n=+t[1],r=+t[3],a=+t[5],n=255&(t[2]?ku(n):Js(n,0,255)),r=255&(t[4]?ku(r):Js(r,0,255)),a=255&(t[6]?ku(a):Js(a,0,255)),{r:n,g:r,b:a,a:i}}}function kB(o){return o&&(o.a<255?`rgba(${o.r}, ${o.g}, ${o.b}, ${es(o.a)})`:`rgb(${o.r}, ${o.g}, ${o.b})`)}var px=o=>o<=.0031308?o*12.92:Math.pow(o,1/2.4)*1.055-.055,Kd=o=>o<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4);function _B(o,t,i){let n=Kd(es(o.r)),r=Kd(es(o.g)),a=Kd(es(o.b));return{r:Qs(px(n+i*(Kd(es(t.r))-n))),g:Qs(px(r+i*(Kd(es(t.g))-r))),b:Qs(px(a+i*(Kd(es(t.b))-a))),a:o.a+i*(t.a-o.a)}}function Yg(o,t,i){if(o){let n=gx(o);n[t]=Math.max(0,Math.min(n[t]+n[t]*i,t===0?360:1)),n=vx(n),o.r=n[0],o.g=n[1],o.b=n[2]}}function aS(o,t){return o&&Object.assign(t||{},o)}function nS(o){var t={r:0,g:0,b:0,a:255};return Array.isArray(o)?o.length>=3&&(t={r:o[0],g:o[1],b:o[2],a:255},o.length>3&&(t.a=Qs(o[3]))):(t=aS(o,{r:0,g:0,b:0,a:1}),t.a=Qs(t.a)),t}function zB(o){return o.charAt(0)==="r"?wB(o):mB(o)}var _u=class o{constructor(t){if(t instanceof o)return t;let i=typeof t,n;i==="object"?n=nS(t):i==="string"&&(n=aB(t)||yB(t)||zB(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=aS(this._rgb);return t&&(t.a=es(t.a)),t}set rgb(t){this._rgb=nS(t)}rgbString(){return this._valid?kB(this._rgb):void 0}hexString(){return this._valid?lB(this._rgb):void 0}hslString(){return this._valid?bB(this._rgb):void 0}mix(t,i){if(t){let n=this.rgb,r=t.rgb,a,s=i===a?.5:i,l=2*s-1,c=n.a-r.a,d=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;a=1-d,n.r=255&d*n.r+a*r.r+.5,n.g=255&d*n.g+a*r.g+.5,n.b=255&d*n.b+a*r.b+.5,n.a=s*n.a+(1-s)*r.a,this.rgb=n}return this}interpolate(t,i){return t&&(this._rgb=_B(this._rgb,t._rgb,i)),this}clone(){return new o(this.rgb)}alpha(t){return this._rgb.a=Qs(t),this}clearer(t){let i=this._rgb;return i.a*=1-t,this}greyscale(){let t=this._rgb,i=zu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=i,this}opaquer(t){let i=this._rgb;return i.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Yg(this._rgb,2,t),this}darken(t){return Yg(this._rgb,2,-t),this}saturate(t){return Yg(this._rgb,1,t),this}desaturate(t){return Yg(this._rgb,1,-t),this}rotate(t){return gB(this._rgb,t),this}};function sa(){}var bS=(()=>{let o=0;return()=>o++})();function pt(o){return o==null}function Vt(o){if(Array.isArray&&Array.isArray(o))return!0;let t=Object.prototype.toString.call(o);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function gt(o){return o!==null&&Object.prototype.toString.call(o)==="[object Object]"}function hi(o){return(typeof o=="number"||o instanceof Number)&&isFinite(+o)}function ar(o,t){return hi(o)?o:t}function st(o,t){return typeof o=="undefined"?t:o}var vS=(o,t)=>typeof o=="string"&&o.endsWith("%")?parseFloat(o)/100:+o/t,kx=(o,t)=>typeof o=="string"&&o.endsWith("%")?parseFloat(o)/100*t:+o;function Ht(o,t,i){if(o&&typeof o.call=="function")return o.apply(i,t)}function Lt(o,t,i,n){let r,a,s;if(Vt(o))if(a=o.length,n)for(r=a-1;r>=0;r--)t.call(i,o[r],r);else for(r=0;r<a;r++)t.call(i,o[r],r);else if(gt(o))for(s=Object.keys(o),a=s.length,r=0;r<a;r++)t.call(i,o[s[r]],s[r])}function Au(o,t){let i,n,r,a;if(!o||!t||o.length!==t.length)return!1;for(i=0,n=o.length;i<n;++i)if(r=o[i],a=t[i],r.datasetIndex!==a.datasetIndex||r.index!==a.index)return!1;return!0}function Zg(o){if(Vt(o))return o.map(Zg);if(gt(o)){let t=Object.create(null),i=Object.keys(o),n=i.length,r=0;for(;r<n;++r)t[i[r]]=Zg(o[i[r]]);return t}return o}function yS(o){return["__proto__","prototype","constructor"].indexOf(o)===-1}function CB(o,t,i,n){if(!yS(o))return;let r=t[o],a=i[o];gt(r)&&gt(a)?Qd(r,a,n):t[o]=Zg(a)}function Qd(o,t,i){let n=Vt(t)?t:[t],r=n.length;if(!gt(o))return o;i=i||{};let a=i.merger||CB,s;for(let l=0;l<r;++l){if(s=n[l],!gt(s))continue;let c=Object.keys(s);for(let d=0,f=c.length;d<f;++d)a(c[d],o,s,i)}return o}function ef(o,t){return Qd(o,t,{merger:SB})}function SB(o,t,i){if(!yS(o))return;let n=t[o],r=i[o];gt(n)&&gt(r)?ef(n,r):Object.prototype.hasOwnProperty.call(t,o)||(t[o]=Zg(r))}var sS={"":o=>o,x:o=>o.x,y:o=>o.y};function AB(o){let t=o.split("."),i=[],n="";for(let r of t)n+=r,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}function EB(o){let t=AB(o);return i=>{for(let n of t){if(n==="")break;i=i&&i[n]}return i}}function ns(o,t){return(sS[t]||(sS[t]=EB(t)))(o)}function nb(o){return o.charAt(0).toUpperCase()+o.slice(1)}var tf=o=>typeof o!="undefined",ts=o=>typeof o=="function",_x=(o,t)=>{if(o.size!==t.size)return!1;for(let i of o)if(!t.has(i))return!1;return!0};function xS(o){return o.type==="mouseup"||o.type==="click"||o.type==="contextmenu"}var Ut=Math.PI,Gt=2*Ut,TB=Gt+Ut,eb=Number.POSITIVE_INFINITY,MB=Ut/180,wi=Ut/2,_c=Ut/4,lS=Ut*2/3,is=Math.log10,Io=Math.sign;function nf(o,t,i){return Math.abs(o-t)<i}function zx(o){let t=Math.round(o);o=nf(o,t,o/1e3)?t:o;let i=Math.pow(10,Math.floor(is(o))),n=o/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function wS(o){let t=[],i=Math.sqrt(o),n;for(n=1;n<i;n++)o%n===0&&(t.push(n),t.push(o/n));return i===(i|0)&&t.push(i),t.sort((r,a)=>r-a).pop(),t}function LB(o){return typeof o=="symbol"||typeof o=="object"&&o!==null&&!(Symbol.toPrimitive in o||"toString"in o||"valueOf"in o)}function Sc(o){return!LB(o)&&!isNaN(parseFloat(o))&&isFinite(o)}function kS(o,t){let i=Math.round(o);return i-t<=o&&i+t>=o}function Cx(o,t,i){let n,r,a;for(n=0,r=o.length;n<r;n++)a=o[n][i],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function fo(o){return o*(Ut/180)}function rb(o){return o*(180/Ut)}function Sx(o){if(!hi(o))return;let t=1,i=0;for(;Math.round(o*t)/t!==o;)t*=10,i++;return i}function Ax(o,t){let i=t.x-o.x,n=t.y-o.y,r=Math.sqrt(i*i+n*n),a=Math.atan2(n,i);return a<-.5*Ut&&(a+=Gt),{angle:a,distance:r}}function tb(o,t){return Math.sqrt(Math.pow(t.x-o.x,2)+Math.pow(t.y-o.y,2))}function qB(o,t){return(o-t+TB)%Gt-Ut}function or(o){return(o%Gt+Gt)%Gt}function rf(o,t,i,n){let r=or(o),a=or(t),s=or(i),l=or(a-r),c=or(s-r),d=or(r-a),f=or(r-s);return r===a||r===s||n&&a===s||l>c&&d<f}function Vi(o,t,i){return Math.max(t,Math.min(i,o))}function _S(o){return Vi(o,-32768,32767)}function la(o,t,i,n=1e-6){return o>=Math.min(t,i)-n&&o<=Math.max(t,i)+n}function ob(o,t,i){i=i||(s=>o[s]<t);let n=o.length-1,r=0,a;for(;n-r>1;)a=r+n>>1,i(a)?r=a:n=a;return{lo:r,hi:n}}var oa=(o,t,i,n)=>ob(o,i,n?r=>{let a=o[r][t];return a<i||a===i&&o[r+1][t]===i}:r=>o[r][t]<i),zS=(o,t,i)=>ob(o,i,n=>o[n][t]>=i);function CS(o,t,i){let n=0,r=o.length;for(;n<r&&o[n]<t;)n++;for(;r>n&&o[r-1]>i;)r--;return n>0||r<o.length?o.slice(n,r):o}var SS=["push","pop","shift","splice","unshift"];function AS(o,t){if(o._chartjs){o._chartjs.listeners.push(t);return}Object.defineProperty(o,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),SS.forEach(i=>{let n="_onData"+nb(i),r=o[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,value(...a){let s=r.apply(this,a);return o._chartjs.listeners.forEach(l=>{typeof l[n]=="function"&&l[n](...a)}),s}})})}function Ex(o,t){let i=o._chartjs;if(!i)return;let n=i.listeners,r=n.indexOf(t);r!==-1&&n.splice(r,1),!(n.length>0)&&(SS.forEach(a=>{delete o[a]}),delete o._chartjs)}function Tx(o){let t=new Set(o);return t.size===o.length?o:Array.from(t)}var Mx=function(){return typeof window=="undefined"?function(o){return o()}:window.requestAnimationFrame}();function Lx(o,t){let i=[],n=!1;return function(...r){i=r,n||(n=!0,Mx.call(window,()=>{n=!1,o.apply(t,i)}))}}function ES(o,t){let i;return function(...n){return t?(clearTimeout(i),i=setTimeout(o,t,n)):o.apply(this,n),t}}var ab=o=>o==="start"?"left":o==="end"?"right":"center",mn=(o,t,i)=>o==="start"?t:o==="end"?i:(t+i)/2,TS=(o,t,i,n)=>o===(n?"left":"right")?i:o==="center"?(t+i)/2:t;function qx(o,t,i){let n=t.length,r=0,a=n;if(o._sorted){let{iScale:s,vScale:l,_parsed:c}=o,d=o.dataset&&o.dataset.options?o.dataset.options.spanGaps:null,f=s.axis,{min:h,max:p,minDefined:m,maxDefined:v}=s.getUserBounds();if(m){if(r=Math.min(oa(c,f,h).lo,i?n:oa(t,f,s.getPixelForValue(h)).lo),d){let b=c.slice(0,r+1).reverse().findIndex(x=>!pt(x[l.axis]));r-=Math.max(0,b)}r=Vi(r,0,n-1)}if(v){let b=Math.max(oa(c,s.axis,p,!0).hi+1,i?0:oa(t,f,s.getPixelForValue(p),!0).hi+1);if(d){let x=c.slice(b-1).findIndex(k=>!pt(k[l.axis]));b+=Math.max(0,x)}a=Vi(b,r,n)-r}else a=n-r}return{start:r,count:a}}function Px(o){let{xScale:t,yScale:i,_scaleRanges:n}=o,r={xmin:t.min,xmax:t.max,ymin:i.min,ymax:i.max};if(!n)return o._scaleRanges=r,!0;let a=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,r),a}var Xg=o=>o===0||o===1,cS=(o,t,i)=>-(Math.pow(2,10*(o-=1))*Math.sin((o-t)*Gt/i)),dS=(o,t,i)=>Math.pow(2,-10*o)*Math.sin((o-t)*Gt/i)+1,Jd={linear:o=>o,easeInQuad:o=>o*o,easeOutQuad:o=>-o*(o-2),easeInOutQuad:o=>(o/=.5)<1?.5*o*o:-.5*(--o*(o-2)-1),easeInCubic:o=>o*o*o,easeOutCubic:o=>(o-=1)*o*o+1,easeInOutCubic:o=>(o/=.5)<1?.5*o*o*o:.5*((o-=2)*o*o+2),easeInQuart:o=>o*o*o*o,easeOutQuart:o=>-((o-=1)*o*o*o-1),easeInOutQuart:o=>(o/=.5)<1?.5*o*o*o*o:-.5*((o-=2)*o*o*o-2),easeInQuint:o=>o*o*o*o*o,easeOutQuint:o=>(o-=1)*o*o*o*o+1,easeInOutQuint:o=>(o/=.5)<1?.5*o*o*o*o*o:.5*((o-=2)*o*o*o*o+2),easeInSine:o=>-Math.cos(o*wi)+1,easeOutSine:o=>Math.sin(o*wi),easeInOutSine:o=>-.5*(Math.cos(Ut*o)-1),easeInExpo:o=>o===0?0:Math.pow(2,10*(o-1)),easeOutExpo:o=>o===1?1:-Math.pow(2,-10*o)+1,easeInOutExpo:o=>Xg(o)?o:o<.5?.5*Math.pow(2,10*(o*2-1)):.5*(-Math.pow(2,-10*(o*2-1))+2),easeInCirc:o=>o>=1?o:-(Math.sqrt(1-o*o)-1),easeOutCirc:o=>Math.sqrt(1-(o-=1)*o),easeInOutCirc:o=>(o/=.5)<1?-.5*(Math.sqrt(1-o*o)-1):.5*(Math.sqrt(1-(o-=2)*o)+1),easeInElastic:o=>Xg(o)?o:cS(o,.075,.3),easeOutElastic:o=>Xg(o)?o:dS(o,.075,.3),easeInOutElastic(o){return Xg(o)?o:o<.5?.5*cS(o*2,.1125,.45):.5+.5*dS(o*2-1,.1125,.45)},easeInBack(o){return o*o*((1.70158+1)*o-1.70158)},easeOutBack(o){return(o-=1)*o*((1.70158+1)*o+1.70158)+1},easeInOutBack(o){let t=1.70158;return(o/=.5)<1?.5*(o*o*(((t*=1.525)+1)*o-t)):.5*((o-=2)*o*(((t*=1.525)+1)*o+t)+2)},easeInBounce:o=>1-Jd.easeOutBounce(1-o),easeOutBounce(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375},easeInOutBounce:o=>o<.5?Jd.easeInBounce(o*2)*.5:Jd.easeOutBounce(o*2-1)*.5+.5};function Rx(o){if(o&&typeof o=="object"){let t=o.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ox(o){return Rx(o)?o:new _u(o)}function yx(o){return Rx(o)?o:new _u(o).saturate(.5).darken(.1).hexString()}var PB=["x","y","borderWidth","radius","tension"],RB=["color","borderColor","backgroundColor"];function OB(o){o.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),o.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),o.set("animations",{colors:{type:"color",properties:RB},numbers:{type:"number",properties:PB}}),o.describe("animations",{_fallback:"animation"}),o.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function DB(o){o.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var fS=new Map;function $B(o,t){t=t||{};let i=o+JSON.stringify(t),n=fS.get(i);return n||(n=new Intl.NumberFormat(o,t),fS.set(i,n)),n}function of(o,t,i){return $B(t,i).format(o)}var MS={values(o){return Vt(o)?o:""+o},numeric(o,t,i){if(o===0)return"0";let n=this.chart.options.locale,r,a=o;if(i.length>1){let d=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(d<1e-4||d>1e15)&&(r="scientific"),a=IB(o,i)}let s=is(Math.abs(a)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),of(o,n,c)},logarithmic(o,t,i){if(o===0)return"0";let n=i[t].significand||o/Math.pow(10,Math.floor(is(o)));return[1,2,3,5,10,15].includes(n)||t>.8*i.length?MS.numeric.call(this,o,t,i):""}};function IB(o,t){let i=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(i)>=1&&o!==Math.floor(o)&&(i=o-Math.floor(o)),i}var Eu={formatters:MS};function FB(o){o.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,i)=>i.lineWidth,tickColor:(t,i)=>i.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Eu.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),o.route("scale.ticks","color","","color"),o.route("scale.grid","color","","borderColor"),o.route("scale.border","color","","borderColor"),o.route("scale.title","color","","color"),o.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),o.describe("scales",{_fallback:"scale"}),o.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}var el=Object.create(null),sb=Object.create(null);function Cu(o,t){if(!t)return o;let i=t.split(".");for(let n=0,r=i.length;n<r;++n){let a=i[n];o=o[a]||(o[a]=Object.create(null))}return o}function xx(o,t,i){return typeof t=="string"?Qd(Cu(o,t),i):Qd(Cu(o,""),t)}var wx=class{constructor(t,i){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,r)=>yx(r.backgroundColor),this.hoverBorderColor=(n,r)=>yx(r.borderColor),this.hoverColor=(n,r)=>yx(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(i)}set(t,i){return xx(this,t,i)}get(t){return Cu(this,t)}describe(t,i){return xx(sb,t,i)}override(t,i){return xx(el,t,i)}route(t,i,n,r){let a=Cu(this,t),s=Cu(this,n),l="_"+i;Object.defineProperties(a,{[l]:{value:a[i],writable:!0},[i]:{enumerable:!0,get(){let c=this[l],d=s[r];return gt(c)?Object.assign({},d,c):st(c,d)},set(c){this[l]=c}}})}apply(t){t.forEach(i=>i(this))}},ti=new wx({_scriptable:o=>!o.startsWith("on"),_indexable:o=>o!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[OB,DB,FB]);function NB(o){return!o||pt(o.size)||pt(o.family)?null:(o.style?o.style+" ":"")+(o.weight?o.weight+" ":"")+o.size+"px "+o.family}function Su(o,t,i,n,r){let a=t[r];return a||(a=t[r]=o.measureText(r).width,i.push(r)),a>n&&(n=a),n}function LS(o,t,i,n){n=n||{};let r=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(r=n.data={},a=n.garbageCollect=[],n.font=t),o.save(),o.font=t;let s=0,l=i.length,c,d,f,h,p;for(c=0;c<l;c++)if(h=i[c],h!=null&&!Vt(h))s=Su(o,r,a,s,h);else if(Vt(h))for(d=0,f=h.length;d<f;d++)p=h[d],p!=null&&!Vt(p)&&(s=Su(o,r,a,s,p));o.restore();let m=a.length/2;if(m>i.length){for(c=0;c<m;c++)delete r[a[c]];a.splice(0,m)}return s}function tl(o,t,i){let n=o.currentDevicePixelRatio,r=i!==0?Math.max(i/2,.5):0;return Math.round((t-r)*n)/n+r}function Dx(o,t){!t&&!o||(t=t||o.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,o.width,o.height),t.restore())}function lb(o,t,i,n){$x(o,t,i,n,null)}function $x(o,t,i,n,r){let a,s,l,c,d,f,h,p,m=t.pointStyle,v=t.rotation,b=t.radius,x=(v||0)*MB;if(m&&typeof m=="object"&&(a=m.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){o.save(),o.translate(i,n),o.rotate(x),o.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),o.restore();return}if(!(isNaN(b)||b<=0)){switch(o.beginPath(),m){default:r?o.ellipse(i,n,r/2,b,0,0,Gt):o.arc(i,n,b,0,Gt),o.closePath();break;case"triangle":f=r?r/2:b,o.moveTo(i+Math.sin(x)*f,n-Math.cos(x)*b),x+=lS,o.lineTo(i+Math.sin(x)*f,n-Math.cos(x)*b),x+=lS,o.lineTo(i+Math.sin(x)*f,n-Math.cos(x)*b),o.closePath();break;case"rectRounded":d=b*.516,c=b-d,s=Math.cos(x+_c)*c,h=Math.cos(x+_c)*(r?r/2-d:c),l=Math.sin(x+_c)*c,p=Math.sin(x+_c)*(r?r/2-d:c),o.arc(i-h,n-l,d,x-Ut,x-wi),o.arc(i+p,n-s,d,x-wi,x),o.arc(i+h,n+l,d,x,x+wi),o.arc(i-p,n+s,d,x+wi,x+Ut),o.closePath();break;case"rect":if(!v){c=Math.SQRT1_2*b,f=r?r/2:c,o.rect(i-f,n-c,2*f,2*c);break}x+=_c;case"rectRot":h=Math.cos(x)*(r?r/2:b),s=Math.cos(x)*b,l=Math.sin(x)*b,p=Math.sin(x)*(r?r/2:b),o.moveTo(i-h,n-l),o.lineTo(i+p,n-s),o.lineTo(i+h,n+l),o.lineTo(i-p,n+s),o.closePath();break;case"crossRot":x+=_c;case"cross":h=Math.cos(x)*(r?r/2:b),s=Math.cos(x)*b,l=Math.sin(x)*b,p=Math.sin(x)*(r?r/2:b),o.moveTo(i-h,n-l),o.lineTo(i+h,n+l),o.moveTo(i+p,n-s),o.lineTo(i-p,n+s);break;case"star":h=Math.cos(x)*(r?r/2:b),s=Math.cos(x)*b,l=Math.sin(x)*b,p=Math.sin(x)*(r?r/2:b),o.moveTo(i-h,n-l),o.lineTo(i+h,n+l),o.moveTo(i+p,n-s),o.lineTo(i-p,n+s),x+=_c,h=Math.cos(x)*(r?r/2:b),s=Math.cos(x)*b,l=Math.sin(x)*b,p=Math.sin(x)*(r?r/2:b),o.moveTo(i-h,n-l),o.lineTo(i+h,n+l),o.moveTo(i+p,n-s),o.lineTo(i-p,n+s);break;case"line":s=r?r/2:Math.cos(x)*b,l=Math.sin(x)*b,o.moveTo(i-s,n-l),o.lineTo(i+s,n+l);break;case"dash":o.moveTo(i,n),o.lineTo(i+Math.cos(x)*(r?r/2:b),n+Math.sin(x)*b);break;case!1:o.closePath();break}o.fill(),t.borderWidth>0&&o.stroke()}}function aa(o,t,i){return i=i||.5,!t||o&&o.x>t.left-i&&o.x<t.right+i&&o.y>t.top-i&&o.y<t.bottom+i}function Tu(o,t){o.save(),o.beginPath(),o.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),o.clip()}function Mu(o){o.restore()}function qS(o,t,i,n,r){if(!t)return o.lineTo(i.x,i.y);if(r==="middle"){let a=(t.x+i.x)/2;o.lineTo(a,t.y),o.lineTo(a,i.y)}else r==="after"!=!!n?o.lineTo(t.x,i.y):o.lineTo(i.x,t.y);o.lineTo(i.x,i.y)}function PS(o,t,i,n){if(!t)return o.lineTo(i.x,i.y);o.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function HB(o,t){t.translation&&o.translate(t.translation[0],t.translation[1]),pt(t.rotation)||o.rotate(t.rotation),t.color&&(o.fillStyle=t.color),t.textAlign&&(o.textAlign=t.textAlign),t.textBaseline&&(o.textBaseline=t.textBaseline)}function BB(o,t,i,n,r){if(r.strikethrough||r.underline){let a=o.measureText(n),s=t-a.actualBoundingBoxLeft,l=t+a.actualBoundingBoxRight,c=i-a.actualBoundingBoxAscent,d=i+a.actualBoundingBoxDescent,f=r.strikethrough?(c+d)/2:d;o.strokeStyle=o.fillStyle,o.beginPath(),o.lineWidth=r.decorationWidth||2,o.moveTo(s,f),o.lineTo(l,f),o.stroke()}}function WB(o,t){let i=o.fillStyle;o.fillStyle=t.color,o.fillRect(t.left,t.top,t.width,t.height),o.fillStyle=i}function il(o,t,i,n,r,a={}){let s=Vt(t)?t:[t],l=a.strokeWidth>0&&a.strokeColor!=="",c,d;for(o.save(),o.font=r.string,HB(o,a),c=0;c<s.length;++c)d=s[c],a.backdrop&&WB(o,a.backdrop),l&&(a.strokeColor&&(o.strokeStyle=a.strokeColor),pt(a.strokeWidth)||(o.lineWidth=a.strokeWidth),o.strokeText(d,i,n,a.maxWidth)),o.fillText(d,i,n,a.maxWidth),BB(o,i,n,d,a),n+=Number(r.lineHeight);o.restore()}function af(o,t){let{x:i,y:n,w:r,h:a,radius:s}=t;o.arc(i+s.topLeft,n+s.topLeft,s.topLeft,1.5*Ut,Ut,!0),o.lineTo(i,n+a-s.bottomLeft),o.arc(i+s.bottomLeft,n+a-s.bottomLeft,s.bottomLeft,Ut,wi,!0),o.lineTo(i+r-s.bottomRight,n+a),o.arc(i+r-s.bottomRight,n+a-s.bottomRight,s.bottomRight,wi,0,!0),o.lineTo(i+r,n+s.topRight),o.arc(i+r-s.topRight,n+s.topRight,s.topRight,0,-wi,!0),o.lineTo(i+s.topLeft,n)}var jB=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,VB=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function UB(o,t){let i=(""+o).match(jB);if(!i||i[1]==="normal")return t*1.2;switch(o=+i[2],i[3]){case"px":return o;case"%":o/=100;break}return t*o}var GB=o=>+o||0;function cb(o,t){let i={},n=gt(t),r=n?Object.keys(t):t,a=gt(o)?n?s=>st(o[s],o[t[s]]):s=>o[s]:()=>o;for(let s of r)i[s]=GB(a(s));return i}function Ix(o){return cb(o,{top:"y",right:"x",bottom:"y",left:"x"})}function nl(o){return cb(o,["topLeft","topRight","bottomLeft","bottomRight"])}function gn(o){let t=Ix(o);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ri(o,t){o=o||{},t=t||ti.font;let i=st(o.size,t.size);typeof i=="string"&&(i=parseInt(i,10));let n=st(o.style,t.style);n&&!(""+n).match(VB)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let r={family:st(o.family,t.family),lineHeight:UB(st(o.lineHeight,t.lineHeight),i),size:i,style:n,weight:st(o.weight,t.weight),string:""};return r.string=NB(r),r}function sf(o,t,i,n){let r=!0,a,s,l;for(a=0,s=o.length;a<s;++a)if(l=o[a],l!==void 0&&(t!==void 0&&typeof l=="function"&&(l=l(t),r=!1),i!==void 0&&Vt(l)&&(l=l[i%l.length],r=!1),l!==void 0))return n&&!r&&(n.cacheable=!1),l}function RS(o,t,i){let{min:n,max:r}=o,a=kx(t,(r-n)/2),s=(l,c)=>i&&l===0?0:l+c;return{min:s(n,-Math.abs(a)),max:s(r,a)}}function rs(o,t){return Object.assign(Object.create(o),t)}function db(o,t=[""],i,n,r=()=>o[0]){let a=i||o;typeof n=="undefined"&&(n=$S("_fallback",o));let s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:o,_rootScopes:a,_fallback:n,_getTarget:r,override:l=>db([l,...o],t,a,n)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete o[0][c],!0},get(l,c){return OS(l,c,()=>tW(c,t,o,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(o[0])},has(l,c){return uS(l).includes(c)},ownKeys(l){return uS(l)},set(l,c,d){let f=l._storage||(l._storage=r());return l[c]=f[c]=d,delete l._keys,!0}})}function Cc(o,t,i,n){let r={_cacheable:!1,_proxy:o,_context:t,_subProxy:i,_stack:new Set,_descriptors:Fx(o,n),setContext:a=>Cc(o,a,i,n),override:a=>Cc(o.override(a),t,i,n)};return new Proxy(r,{deleteProperty(a,s){return delete a[s],delete o[s],!0},get(a,s,l){return OS(a,s,()=>XB(a,s,l))},getOwnPropertyDescriptor(a,s){return a._descriptors.allKeys?Reflect.has(o,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(o,s)},getPrototypeOf(){return Reflect.getPrototypeOf(o)},has(a,s){return Reflect.has(o,s)},ownKeys(){return Reflect.ownKeys(o)},set(a,s,l){return o[s]=l,delete a[s],!0}})}function Fx(o,t={scriptable:!0,indexable:!0}){let{_scriptable:i=t.scriptable,_indexable:n=t.indexable,_allKeys:r=t.allKeys}=o;return{allKeys:r,scriptable:i,indexable:n,isScriptable:ts(i)?i:()=>i,isIndexable:ts(n)?n:()=>n}}var YB=(o,t)=>o?o+nb(t):t,Nx=(o,t)=>gt(t)&&o!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function OS(o,t,i){if(Object.prototype.hasOwnProperty.call(o,t)||t==="constructor")return o[t];let n=i();return o[t]=n,n}function XB(o,t,i){let{_proxy:n,_context:r,_subProxy:a,_descriptors:s}=o,l=n[t];return ts(l)&&s.isScriptable(t)&&(l=KB(t,l,o,i)),Vt(l)&&l.length&&(l=JB(t,l,o,s.isIndexable)),Nx(t,l)&&(l=Cc(l,r,a&&a[t],s)),l}function KB(o,t,i,n){let{_proxy:r,_context:a,_subProxy:s,_stack:l}=i;if(l.has(o))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+o);l.add(o);let c=t(a,s||n);return l.delete(o),Nx(o,c)&&(c=Hx(r._scopes,r,o,c)),c}function JB(o,t,i,n){let{_proxy:r,_context:a,_subProxy:s,_descriptors:l}=i;if(typeof a.index!="undefined"&&n(o))return t[a.index%t.length];if(gt(t[0])){let c=t,d=r._scopes.filter(f=>f!==c);t=[];for(let f of c){let h=Hx(d,r,o,f);t.push(Cc(h,a,s&&s[o],l))}}return t}function DS(o,t,i){return ts(o)?o(t,i):o}var QB=(o,t)=>o===!0?t:typeof o=="string"?ns(t,o):void 0;function ZB(o,t,i,n,r){for(let a of t){let s=QB(i,a);if(s){o.add(s);let l=DS(s._fallback,i,r);if(typeof l!="undefined"&&l!==i&&l!==n)return l}else if(s===!1&&typeof n!="undefined"&&i!==n)return null}return!1}function Hx(o,t,i,n){let r=t._rootScopes,a=DS(t._fallback,i,n),s=[...o,...r],l=new Set;l.add(n);let c=hS(l,s,i,a||i,n);return c===null||typeof a!="undefined"&&a!==i&&(c=hS(l,s,a,c,n),c===null)?!1:db(Array.from(l),[""],r,a,()=>eW(t,i,n))}function hS(o,t,i,n,r){for(;i;)i=ZB(o,t,i,n,r);return i}function eW(o,t,i){let n=o._getTarget();t in n||(n[t]={});let r=n[t];return Vt(r)&&gt(i)?i:r||{}}function tW(o,t,i,n){let r;for(let a of t)if(r=$S(YB(a,o),i),typeof r!="undefined")return Nx(o,r)?Hx(i,n,o,r):r}function $S(o,t){for(let i of t){if(!i)continue;let n=i[o];if(typeof n!="undefined")return n}}function uS(o){let t=o._keys;return t||(t=o._keys=iW(o._scopes)),t}function iW(o){let t=new Set;for(let i of o)for(let n of Object.keys(i).filter(r=>!r.startsWith("_")))t.add(n);return Array.from(t)}function Bx(o,t,i,n){let{iScale:r}=o,{key:a="r"}=this._parsing,s=new Array(n),l,c,d,f;for(l=0,c=n;l<c;++l)d=l+i,f=t[d],s[l]={r:r.parse(ns(f,a),d)};return s}var nW=Number.EPSILON||1e-14,Zd=(o,t)=>t<o.length&&!o[t].skip&&o[t],IS=o=>o==="x"?"y":"x";function rW(o,t,i,n){let r=o.skip?t:o,a=t,s=i.skip?t:i,l=tb(a,r),c=tb(s,a),d=l/(l+c),f=c/(l+c);d=isNaN(d)?0:d,f=isNaN(f)?0:f;let h=n*d,p=n*f;return{previous:{x:a.x-h*(s.x-r.x),y:a.y-h*(s.y-r.y)},next:{x:a.x+p*(s.x-r.x),y:a.y+p*(s.y-r.y)}}}function oW(o,t,i){let n=o.length,r,a,s,l,c,d=Zd(o,0);for(let f=0;f<n-1;++f)if(c=d,d=Zd(o,f+1),!(!c||!d)){if(nf(t[f],0,nW)){i[f]=i[f+1]=0;continue}r=i[f]/t[f],a=i[f+1]/t[f],l=Math.pow(r,2)+Math.pow(a,2),!(l<=9)&&(s=3/Math.sqrt(l),i[f]=r*s*t[f],i[f+1]=a*s*t[f])}}function aW(o,t,i="x"){let n=IS(i),r=o.length,a,s,l,c=Zd(o,0);for(let d=0;d<r;++d){if(s=l,l=c,c=Zd(o,d+1),!l)continue;let f=l[i],h=l[n];s&&(a=(f-s[i])/3,l[`cp1${i}`]=f-a,l[`cp1${n}`]=h-a*t[d]),c&&(a=(c[i]-f)/3,l[`cp2${i}`]=f+a,l[`cp2${n}`]=h+a*t[d])}}function sW(o,t="x"){let i=IS(t),n=o.length,r=Array(n).fill(0),a=Array(n),s,l,c,d=Zd(o,0);for(s=0;s<n;++s)if(l=c,c=d,d=Zd(o,s+1),!!c){if(d){let f=d[t]-c[t];r[s]=f!==0?(d[i]-c[i])/f:0}a[s]=l?d?Io(r[s-1])!==Io(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}oW(o,r,a),aW(o,a,t)}function Kg(o,t,i){return Math.max(Math.min(o,i),t)}function lW(o,t){let i,n,r,a,s,l=aa(o[0],t);for(i=0,n=o.length;i<n;++i)s=a,a=l,l=i<n-1&&aa(o[i+1],t),a&&(r=o[i],s&&(r.cp1x=Kg(r.cp1x,t.left,t.right),r.cp1y=Kg(r.cp1y,t.top,t.bottom)),l&&(r.cp2x=Kg(r.cp2x,t.left,t.right),r.cp2y=Kg(r.cp2y,t.top,t.bottom)))}function FS(o,t,i,n,r){let a,s,l,c;if(t.spanGaps&&(o=o.filter(d=>!d.skip)),t.cubicInterpolationMode==="monotone")sW(o,r);else{let d=n?o[o.length-1]:o[0];for(a=0,s=o.length;a<s;++a)l=o[a],c=rW(d,l,o[Math.min(a+1,s-(n?0:1))%s],t.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,d=l}t.capBezierPoints&&lW(o,i)}function fb(){return typeof window!="undefined"&&typeof document!="undefined"}function hb(o){let t=o.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ib(o,t,i){let n;return typeof o=="string"?(n=parseInt(o,10),o.indexOf("%")!==-1&&(n=n/100*t.parentNode[i])):n=o,n}var ub=o=>o.ownerDocument.defaultView.getComputedStyle(o,null);function cW(o,t){return ub(o).getPropertyValue(t)}var dW=["top","right","bottom","left"];function zc(o,t,i){let n={};i=i?"-"+i:"";for(let r=0;r<4;r++){let a=dW[r];n[a]=parseFloat(o[t+"-"+a+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}var fW=(o,t,i)=>(o>0||t>0)&&(!i||!i.shadowRoot);function hW(o,t){let i=o.touches,n=i&&i.length?i[0]:o,{offsetX:r,offsetY:a}=n,s=!1,l,c;if(fW(r,a,o.target))l=r,c=a;else{let d=t.getBoundingClientRect();l=n.clientX-d.left,c=n.clientY-d.top,s=!0}return{x:l,y:c,box:s}}function rl(o,t){if("native"in o)return o;let{canvas:i,currentDevicePixelRatio:n}=t,r=ub(i),a=r.boxSizing==="border-box",s=zc(r,"padding"),l=zc(r,"border","width"),{x:c,y:d,box:f}=hW(o,i),h=s.left+(f&&l.left),p=s.top+(f&&l.top),{width:m,height:v}=t;return a&&(m-=s.width+l.width,v-=s.height+l.height),{x:Math.round((c-h)/m*i.width/n),y:Math.round((d-p)/v*i.height/n)}}function uW(o,t,i){let n,r;if(t===void 0||i===void 0){let a=o&&hb(o);if(!a)t=o.clientWidth,i=o.clientHeight;else{let s=a.getBoundingClientRect(),l=ub(a),c=zc(l,"border","width"),d=zc(l,"padding");t=s.width-d.width-c.width,i=s.height-d.height-c.height,n=ib(l.maxWidth,a,"clientWidth"),r=ib(l.maxHeight,a,"clientHeight")}}return{width:t,height:i,maxWidth:n||eb,maxHeight:r||eb}}var Jg=o=>Math.round(o*10)/10;function NS(o,t,i,n){let r=ub(o),a=zc(r,"margin"),s=ib(r.maxWidth,o,"clientWidth")||eb,l=ib(r.maxHeight,o,"clientHeight")||eb,c=uW(o,t,i),{width:d,height:f}=c;if(r.boxSizing==="content-box"){let p=zc(r,"border","width"),m=zc(r,"padding");d-=m.width+p.width,f-=m.height+p.height}return d=Math.max(0,d-a.width),f=Math.max(0,n?d/n:f-a.height),d=Jg(Math.min(d,s,c.maxWidth)),f=Jg(Math.min(f,l,c.maxHeight)),d&&!f&&(f=Jg(d/2)),(t!==void 0||i!==void 0)&&n&&c.height&&f>c.height&&(f=c.height,d=Jg(Math.floor(f*n))),{width:d,height:f}}function Wx(o,t,i){let n=t||1,r=Math.floor(o.height*n),a=Math.floor(o.width*n);o.height=Math.floor(o.height),o.width=Math.floor(o.width);let s=o.canvas;return s.style&&(i||!s.style.height&&!s.style.width)&&(s.style.height=`${o.height}px`,s.style.width=`${o.width}px`),o.currentDevicePixelRatio!==n||s.height!==r||s.width!==a?(o.currentDevicePixelRatio=n,s.height=r,s.width=a,o.ctx.setTransform(n,0,0,n,0,0),!0):!1}var HS=function(){let o=!1;try{let t={get passive(){return o=!0,!1}};fb()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(t){}return o}();function jx(o,t){let i=cW(o,t),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Zs(o,t,i,n){return{x:o.x+i*(t.x-o.x),y:o.y+i*(t.y-o.y)}}function BS(o,t,i,n){return{x:o.x+i*(t.x-o.x),y:n==="middle"?i<.5?o.y:t.y:n==="after"?i<1?o.y:t.y:i>0?t.y:o.y}}function WS(o,t,i,n){let r={x:o.cp2x,y:o.cp2y},a={x:t.cp1x,y:t.cp1y},s=Zs(o,r,i),l=Zs(r,a,i),c=Zs(a,t,i),d=Zs(s,l,i),f=Zs(l,c,i);return Zs(d,f,i)}var pW=function(o,t){return{x(i){return o+o+t-i},setWidth(i){t=i},textAlign(i){return i==="center"?i:i==="right"?"left":"right"},xPlus(i,n){return i-n},leftForLtr(i,n){return i-n}}},mW=function(){return{x(o){return o},setWidth(o){},textAlign(o){return o},xPlus(o,t){return o+t},leftForLtr(o,t){return o}}};function Ac(o,t,i){return o?pW(t,i):mW()}function Vx(o,t){let i,n;(t==="ltr"||t==="rtl")&&(i=o.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",t,"important"),o.prevTextDirection=n)}function Ux(o,t){t!==void 0&&(delete o.prevTextDirection,o.canvas.style.setProperty("direction",t[0],t[1]))}function jS(o){return o==="angle"?{between:rf,compare:qB,normalize:or}:{between:la,compare:(t,i)=>t-i,normalize:t=>t}}function pS({start:o,end:t,count:i,loop:n,style:r}){return{start:o%i,end:t%i,loop:n&&(t-o+1)%i===0,style:r}}function gW(o,t,i){let{property:n,start:r,end:a}=i,{between:s,normalize:l}=jS(n),c=t.length,{start:d,end:f,loop:h}=o,p,m;if(h){for(d+=c,f+=c,p=0,m=c;p<m&&s(l(t[d%c][n]),r,a);++p)d--,f--;d%=c,f%=c}return f<d&&(f+=c),{start:d,end:f,loop:h,style:o.style}}function Gx(o,t,i){if(!i)return[o];let{property:n,start:r,end:a}=i,s=t.length,{compare:l,between:c,normalize:d}=jS(n),{start:f,end:h,loop:p,style:m}=gW(o,t,i),v=[],b=!1,x=null,k,z,E,A=()=>c(r,E,k)&&l(r,E)!==0,C=()=>l(a,k)===0||c(a,E,k),L=()=>b||A(),M=()=>!b||C();for(let P=f,I=f;P<=h;++P)z=t[P%s],!z.skip&&(k=d(z[n]),k!==E&&(b=c(k,r,a),x===null&&L()&&(x=l(k,r)===0?P:I),x!==null&&M()&&(v.push(pS({start:x,end:P,loop:p,count:s,style:m})),x=null),I=P,E=k));return x!==null&&v.push(pS({start:x,end:h,loop:p,count:s,style:m})),v}function Yx(o,t){let i=[],n=o.segments;for(let r=0;r<n.length;r++){let a=Gx(n[r],o.points,t);a.length&&i.push(...a)}return i}function bW(o,t,i,n){let r=0,a=t-1;if(i&&!n)for(;r<t&&!o[r].skip;)r++;for(;r<t&&o[r].skip;)r++;for(r%=t,i&&(a+=r);a>r&&o[a%t].skip;)a--;return a%=t,{start:r,end:a}}function vW(o,t,i,n){let r=o.length,a=[],s=t,l=o[t],c;for(c=t+1;c<=i;++c){let d=o[c%r];d.skip||d.stop?l.skip||(n=!1,a.push({start:t%r,end:(c-1)%r,loop:n}),t=s=d.stop?c:null):(s=c,l.skip&&(t=c)),l=d}return s!==null&&a.push({start:t%r,end:s%r,loop:n}),a}function VS(o,t){let i=o.points,n=o.options.spanGaps,r=i.length;if(!r)return[];let a=!!o._loop,{start:s,end:l}=bW(i,r,a,n);if(n===!0)return mS(o,[{start:s,end:l,loop:a}],i,t);let c=l<s?l+r:l,d=!!o._fullLoop&&s===0&&l===r-1;return mS(o,vW(i,s,c,d),i,t)}function mS(o,t,i,n){return!n||!n.setContext||!i?t:yW(o,t,i,n)}function yW(o,t,i,n){let r=o._chart.getContext(),a=gS(o.options),{_datasetIndex:s,options:{spanGaps:l}}=o,c=i.length,d=[],f=a,h=t[0].start,p=h;function m(v,b,x,k){let z=l?-1:1;if(v!==b){for(v+=c;i[v%c].skip;)v-=z;for(;i[b%c].skip;)b+=z;v%c!==b%c&&(d.push({start:v%c,end:b%c,loop:x,style:k}),f=k,h=b%c)}}for(let v of t){h=l?h:v.start;let b=i[h%c],x;for(p=h+1;p<=v.end;p++){let k=i[p%c];x=gS(n.setContext(rs(r,{type:"segment",p0:b,p1:k,p0DataIndex:(p-1)%c,p1DataIndex:p%c,datasetIndex:s}))),xW(x,f)&&m(h,p-1,v.loop,f),b=k,f=x}h<p-1&&m(h,p-1,v.loop,f)}return d}function gS(o){return{backgroundColor:o.backgroundColor,borderCapStyle:o.borderCapStyle,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderJoinStyle:o.borderJoinStyle,borderWidth:o.borderWidth,borderColor:o.borderColor}}function xW(o,t){if(!t)return!1;let i=[],n=function(r,a){return Rx(a)?(i.includes(a)||i.push(a),i.indexOf(a)):a};return JSON.stringify(o,n)!==JSON.stringify(t,n)}function Qg(o,t,i){return o.options.clip?o[i]:t[i]}function wW(o,t){let{xScale:i,yScale:n}=o;return i&&n?{left:Qg(i,t,"left"),right:Qg(i,t,"right"),top:Qg(n,t,"top"),bottom:Qg(n,t,"bottom")}:t}function Xx(o,t){let i=t._clip;if(i.disabled)return!1;let n=wW(t,o.chartArea);return{left:i.left===!1?0:n.left-(i.left===!0?0:i.left),right:i.right===!1?o.width:n.right+(i.right===!0?0:i.right),top:i.top===!1?0:n.top-(i.top===!0?0:i.top),bottom:i.bottom===!1?o.height:n.bottom+(i.bottom===!0?0:i.bottom)}}var aw=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,i,n,r){let a=i.listeners[r],s=i.duration;a.forEach(l=>l({chart:t,initial:i.initial,numSteps:s,currentStep:Math.min(n-i.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Mx.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let i=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let a=n.items,s=a.length-1,l=!1,c;for(;s>=0;--s)c=a[s],c._active?(c._total>n.duration&&(n.duration=c._total),c.tick(t),l=!0):(a[s]=a[a.length-1],a.pop());l&&(r.draw(),this._notify(r,n,t,"progress")),a.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),i+=a.length}),this._lastDate=t,i===0&&(this._running=!1)}_getAnims(t){let i=this._charts,n=i.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(t,n)),n}listen(t,i,n){this._getAnims(t).listeners[i].push(n)}add(t,i){!i||!i.length||this._getAnims(t).items.push(...i)}has(t){return this._getAnims(t).items.length>0}start(t){let i=this._charts.get(t);i&&(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((n,r)=>Math.max(n,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;let i=this._charts.get(t);return!(!i||!i.running||!i.items.length)}stop(t){let i=this._charts.get(t);if(!i||!i.items.length)return;let n=i.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();i.items=[],this._notify(t,i,Date.now(),"complete")}remove(t){return this._charts.delete(t)}},os=new aw,US="transparent",kW={boolean(o,t,i){return i>.5?t:o},color(o,t,i){let n=Ox(o||US),r=n.valid&&Ox(t||US);return r&&r.valid?r.mix(n,i).hexString():t},number(o,t,i){return o+(t-o)*i}},sw=class{constructor(t,i,n,r){let a=i[n];r=sf([t.to,r,a,t.from]);let s=sf([t.from,a,r]);this._active=!0,this._fn=t.fn||kW[t.type||typeof s],this._easing=Jd[t.easing]||Jd.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=i,this._prop=n,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,i,n){if(this._active){this._notify(!1);let r=this._target[this._prop],a=n-this._start,s=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=sf([t.to,i,r,t.from]),this._from=sf([t.from,r,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let i=t-this._start,n=this._duration,r=this._prop,a=this._from,s=this._loop,l=this._to,c;if(this._active=a!==l&&(s||i<n),!this._active){this._target[r]=l,this._notify(!0);return}if(i<0){this._target[r]=a;return}c=i/n%2,c=s&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[r]=this._fn(a,l,c)}wait(){let t=this._promises||(this._promises=[]);return new Promise((i,n)=>{t.push({res:i,rej:n})})}_notify(t){let i=t?"res":"rej",n=this._promises||[];for(let r=0;r<n.length;r++)n[r][i]()}},kb=class{constructor(t,i){this._chart=t,this._properties=new Map,this.configure(i)}configure(t){if(!gt(t))return;let i=Object.keys(ti.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{let a=t[r];if(!gt(a))return;let s={};for(let l of i)s[l]=a[l];(Vt(a.properties)&&a.properties||[r]).forEach(l=>{(l===r||!n.has(l))&&n.set(l,s)})})}_animateOptions(t,i){let n=i.options,r=zW(t,n);if(!r)return[];let a=this._createAnimations(r,n);return n.$shared&&_W(t.options.$animations,n).then(()=>{t.options=n},()=>{}),a}_createAnimations(t,i){let n=this._properties,r=[],a=t.$animations||(t.$animations={}),s=Object.keys(i),l=Date.now(),c;for(c=s.length-1;c>=0;--c){let d=s[c];if(d.charAt(0)==="$")continue;if(d==="options"){r.push(...this._animateOptions(t,i));continue}let f=i[d],h=a[d],p=n.get(d);if(h)if(p&&h.active()){h.update(p,f,l);continue}else h.cancel();if(!p||!p.duration){t[d]=f;continue}a[d]=h=new sw(p,t,d,f),r.push(h)}return r}update(t,i){if(this._properties.size===0){Object.assign(t,i);return}let n=this._createAnimations(t,i);if(n.length)return os.add(this._chart,n),!0}};function _W(o,t){let i=[],n=Object.keys(t);for(let r=0;r<n.length;r++){let a=o[n[r]];a&&a.active()&&i.push(a.wait())}return Promise.all(i)}function zW(o,t){if(!t)return;let i=o.options;if(!i){o.options=t;return}return i.$shared&&(o.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function GS(o,t){let i=o&&o.options||{},n=i.reverse,r=i.min===void 0?t:0,a=i.max===void 0?t:0;return{start:n?a:r,end:n?r:a}}function CW(o,t,i){if(i===!1)return!1;let n=GS(o,i),r=GS(t,i);return{top:r.end,right:n.end,bottom:r.start,left:n.start}}function SW(o){let t,i,n,r;return gt(o)?(t=o.top,i=o.right,n=o.bottom,r=o.left):t=i=n=r=o,{top:t,right:i,bottom:n,left:r,disabled:o===!1}}function V6(o,t){let i=[],n=o._getSortedDatasetMetas(t),r,a;for(r=0,a=n.length;r<a;++r)i.push(n[r].index);return i}function YS(o,t,i,n={}){let r=o.keys,a=n.mode==="single",s,l,c,d;if(t===null)return;let f=!1;for(s=0,l=r.length;s<l;++s){if(c=+r[s],c===i){if(f=!0,n.all)continue;break}d=o.values[c],hi(d)&&(a||t===0||Io(t)===Io(d))&&(t+=d)}return!f&&!n.all?0:t}function AW(o,t){let{iScale:i,vScale:n}=t,r=i.axis==="x"?"x":"y",a=n.axis==="x"?"x":"y",s=Object.keys(o),l=new Array(s.length),c,d,f;for(c=0,d=s.length;c<d;++c)f=s[c],l[c]={[r]:f,[a]:o[f]};return l}function Kx(o,t){let i=o&&o.options.stacked;return i||i===void 0&&t.stack!==void 0}function EW(o,t,i){return`${o.id}.${t.id}.${i.stack||i.type}`}function TW(o){let{min:t,max:i,minDefined:n,maxDefined:r}=o.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:r?i:Number.POSITIVE_INFINITY}}function MW(o,t,i){let n=o[t]||(o[t]={});return n[i]||(n[i]={})}function XS(o,t,i,n){for(let r of t.getMatchingVisibleMetas(n).reverse()){let a=o[r.index];if(i&&a>0||!i&&a<0)return r.index}return null}function KS(o,t){let{chart:i,_cachedMeta:n}=o,r=i._stacks||(i._stacks={}),{iScale:a,vScale:s,index:l}=n,c=a.axis,d=s.axis,f=EW(a,s,n),h=t.length,p;for(let m=0;m<h;++m){let v=t[m],{[c]:b,[d]:x}=v,k=v._stacks||(v._stacks={});p=k[d]=MW(r,f,b),p[l]=x,p._top=XS(p,s,!0,n.type),p._bottom=XS(p,s,!1,n.type);let z=p._visualValues||(p._visualValues={});z[l]=x}}function Jx(o,t){let i=o.scales;return Object.keys(i).filter(n=>i[n].axis===t).shift()}function LW(o,t){return rs(o,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function qW(o,t,i){return rs(o,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:i,index:t,mode:"default",type:"data"})}function Lu(o,t){let i=o.controller.index,n=o.vScale&&o.vScale.axis;if(n){t=t||o._parsed;for(let r of t){let a=r._stacks;if(!a||a[n]===void 0||a[n][i]===void 0)return;delete a[n][i],a[n]._visualValues!==void 0&&a[n]._visualValues[i]!==void 0&&delete a[n]._visualValues[i]}}}var Qx=o=>o==="reset"||o==="none",JS=(o,t)=>t?o:Object.assign({},o),PW=(o,t,i)=>o&&!t.hidden&&t._stacked&&{keys:V6(i,!0),values:null},qr=class{constructor(t,i){this.chart=t,this._ctx=t.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Kx(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Lu(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,i=this._cachedMeta,n=this.getDataset(),r=(h,p,m,v)=>h==="x"?p:h==="r"?v:m,a=i.xAxisID=st(n.xAxisID,Jx(t,"x")),s=i.yAxisID=st(n.yAxisID,Jx(t,"y")),l=i.rAxisID=st(n.rAxisID,Jx(t,"r")),c=i.indexAxis,d=i.iAxisID=r(c,a,s,l),f=i.vAxisID=r(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let i=this._cachedMeta;return t===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&Ex(this._data,this),t._stacked&&Lu(t)}_dataCheck(){let t=this.getDataset(),i=t.data||(t.data=[]),n=this._data;if(gt(i)){let r=this._cachedMeta;this._data=AW(i,r)}else if(n!==i){if(n){Ex(n,this);let r=this._cachedMeta;Lu(r),r._parsed=[]}i&&Object.isExtensible(i)&&AS(i,this),this._syncList=[],this._data=i}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let i=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let a=i._stacked;i._stacked=Kx(i.vScale,i),i.stack!==n.stack&&(r=!0,Lu(i),i.stack=n.stack),this._resyncElements(t),(r||a!==i._stacked)&&(KS(this,i._parsed),i._stacked=Kx(i.vScale,i))}configure(){let t=this.chart.config,i=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),i,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,i){let{_cachedMeta:n,_data:r}=this,{iScale:a,_stacked:s}=n,l=a.axis,c=t===0&&i===r.length?!0:n._sorted,d=t>0&&n._parsed[t-1],f,h,p;if(this._parsing===!1)n._parsed=r,n._sorted=!0,p=r;else{Vt(r[t])?p=this.parseArrayData(n,r,t,i):gt(r[t])?p=this.parseObjectData(n,r,t,i):p=this.parsePrimitiveData(n,r,t,i);let m=()=>h[l]===null||d&&h[l]<d[l];for(f=0;f<i;++f)n._parsed[f+t]=h=p[f],c&&(m()&&(c=!1),d=h);n._sorted=c}s&&KS(this,p)}parsePrimitiveData(t,i,n,r){let{iScale:a,vScale:s}=t,l=a.axis,c=s.axis,d=a.getLabels(),f=a===s,h=new Array(r),p,m,v;for(p=0,m=r;p<m;++p)v=p+n,h[p]={[l]:f||a.parse(d[v],v),[c]:s.parse(i[v],v)};return h}parseArrayData(t,i,n,r){let{xScale:a,yScale:s}=t,l=new Array(r),c,d,f,h;for(c=0,d=r;c<d;++c)f=c+n,h=i[f],l[c]={x:a.parse(h[0],f),y:s.parse(h[1],f)};return l}parseObjectData(t,i,n,r){let{xScale:a,yScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=new Array(r),f,h,p,m;for(f=0,h=r;f<h;++f)p=f+n,m=i[p],d[f]={x:a.parse(ns(m,l),p),y:s.parse(ns(m,c),p)};return d}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,i,n){let r=this.chart,a=this._cachedMeta,s=i[t.axis],l={keys:V6(r,!0),values:i._stacks[t.axis]._visualValues};return YS(l,s,a.index,{mode:n})}updateRangeFromParsed(t,i,n,r){let a=n[i.axis],s=a===null?NaN:a,l=r&&n._stacks[i.axis];r&&l&&(r.values=l,s=YS(r,a,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,i){let n=this._cachedMeta,r=n._parsed,a=n._sorted&&t===n.iScale,s=r.length,l=this._getOtherScale(t),c=PW(i,n,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=TW(l),p,m;function v(){m=r[p];let b=m[l.axis];return!hi(m[t.axis])||f>b||h<b}for(p=0;p<s&&!(!v()&&(this.updateRangeFromParsed(d,t,m,c),a));++p);if(a){for(p=s-1;p>=0;--p)if(!v()){this.updateRangeFromParsed(d,t,m,c);break}}return d}getAllParsedValues(t){let i=this._cachedMeta._parsed,n=[],r,a,s;for(r=0,a=i.length;r<a;++r)s=i[r][t.axis],hi(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){let i=this._cachedMeta,n=i.iScale,r=i.vScale,a=this.getParsed(t);return{label:n?""+n.getLabelForValue(a[n.axis]):"",value:r?""+r.getLabelForValue(a[r.axis]):""}}_update(t){let i=this._cachedMeta;this.update(t||"default"),i._clip=SW(st(this.options.clip,CW(i.xScale,i.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,i=this.chart,n=this._cachedMeta,r=n.data||[],a=i.chartArea,s=[],l=this._drawStart||0,c=this._drawCount||r.length-l,d=this.options.drawActiveElementsOnTop,f;for(n.dataset&&n.dataset.draw(t,a,l,c),f=l;f<l+c;++f){let h=r[f];h.hidden||(h.active&&d?s.push(h):h.draw(t,a))}for(f=0;f<s.length;++f)s[f].draw(t,a)}getStyle(t,i){let n=i?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,i,n){let r=this.getDataset(),a;if(t>=0&&t<this._cachedMeta.data.length){let s=this._cachedMeta.data[t];a=s.$context||(s.$context=qW(this.getContext(),t,s)),a.parsed=this.getParsed(t),a.raw=r.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=LW(this.chart.getContext(),this.index)),a.dataset=r,a.index=a.datasetIndex=this.index;return a.active=!!i,a.mode=n,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,i){return this._resolveElementOptions(this.dataElementType.id,i,t)}_resolveElementOptions(t,i="default",n){let r=i==="active",a=this._cachedDataOpts,s=t+"-"+i,l=a[s],c=this.enableOptionSharing&&tf(n);if(l)return JS(l,c);let d=this.chart.config,f=d.datasetElementScopeKeys(this._type,t),h=r?[`${t}Hover`,"hover",t,""]:[t,""],p=d.getOptionScopes(this.getDataset(),f),m=Object.keys(ti.elements[t]),v=()=>this.getContext(n,r,i),b=d.resolveNamedOptions(p,m,v,h);return b.$shared&&(b.$shared=c,a[s]=Object.freeze(JS(b,c))),b}_resolveAnimations(t,i,n){let r=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(r.options.animation!==!1){let f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,i),p=f.getOptionScopes(this.getDataset(),h);c=f.createResolver(p,this.getContext(t,n,i))}let d=new kb(r,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,i){return!i||Qx(t)||this.chart._animationsDisabled}_getSharedOptions(t,i){let n=this.resolveDataElementOptions(t,i),r=this._sharedOptions,a=this.getSharedOptions(n),s=this.includeOptions(i,a)||a!==r;return this.updateSharedOptions(a,i,n),{sharedOptions:a,includeOptions:s}}updateElement(t,i,n,r){Qx(r)?Object.assign(t,n):this._resolveAnimations(i,r).update(t,n)}updateSharedOptions(t,i,n){t&&!Qx(i)&&this._resolveAnimations(void 0,i).update(t,n)}_setStyle(t,i,n,r){t.active=r;let a=this.getStyle(i,r);this._resolveAnimations(i,n,r).update(t,{options:!r&&this.getSharedOptions(a)||a})}removeHoverStyle(t,i,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,i,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let i=this._data,n=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let r=n.length,a=i.length,s=Math.min(a,r);s&&this.parse(0,s),a>r?this._insertElements(r,a-r,t):a<r&&this._removeElements(a,r-a)}_insertElements(t,i,n=!0){let r=this._cachedMeta,a=r.data,s=t+i,l,c=d=>{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=t;l<s;++l)a[l]=new this.dataElementType;this._parsing&&c(r._parsed),this.parse(t,i),n&&this.updateElements(a,t,i,"reset")}updateElements(t,i,n,r){}_removeElements(t,i){let n=this._cachedMeta;if(this._parsing){let r=n._parsed.splice(t,i);n._stacked&&Lu(n,r)}n.data.splice(t,i)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[i,n,r]=t;this[i](n,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,i){i&&this._sync(["_removeElements",t,i]);let n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}};ie(qr,"defaults",{}),ie(qr,"datasetElementType",null),ie(qr,"dataElementType",null);function RW(o,t){if(!o._cache.$bar){let i=o.getMatchingVisibleMetas(t),n=[];for(let r=0,a=i.length;r<a;r++)n=n.concat(i[r].controller.getAllParsedValues(o));o._cache.$bar=Tx(n.sort((r,a)=>r-a))}return o._cache.$bar}function OW(o){let t=o.iScale,i=RW(t,o.type),n=t._length,r,a,s,l,c=()=>{s===32767||s===-32768||(tf(l)&&(n=Math.min(n,Math.abs(s-l)||n)),l=s)};for(r=0,a=i.length;r<a;++r)s=t.getPixelForValue(i[r]),c();for(l=void 0,r=0,a=t.ticks.length;r<a;++r)s=t.getPixelForTick(r),c();return n}function DW(o,t,i,n){let r=i.barThickness,a,s;return pt(r)?(a=t.min*i.categoryPercentage,s=i.barPercentage):(a=r*n,s=1),{chunk:a/n,ratio:s,start:t.pixels[o]-a/2}}function $W(o,t,i,n){let r=t.pixels,a=r[o],s=o>0?r[o-1]:null,l=o<r.length-1?r[o+1]:null,c=i.categoryPercentage;s===null&&(s=a-(l===null?t.end-t.start:l-a)),l===null&&(l=a+a-s);let d=a-(a-Math.min(s,l))/2*c;return{chunk:Math.abs(l-s)/2*c/n,ratio:i.barPercentage,start:d}}function IW(o,t,i,n){let r=i.parse(o[0],n),a=i.parse(o[1],n),s=Math.min(r,a),l=Math.max(r,a),c=s,d=l;Math.abs(s)>Math.abs(l)&&(c=l,d=s),t[i.axis]=d,t._custom={barStart:c,barEnd:d,start:r,end:a,min:s,max:l}}function U6(o,t,i,n){return Vt(o)?IW(o,t,i,n):t[i.axis]=i.parse(o,n),t}function QS(o,t,i,n){let r=o.iScale,a=o.vScale,s=r.getLabels(),l=r===a,c=[],d,f,h,p;for(d=i,f=i+n;d<f;++d)p=t[d],h={},h[r.axis]=l||r.parse(s[d],d),c.push(U6(p,h,a,d));return c}function Zx(o){return o&&o.barStart!==void 0&&o.barEnd!==void 0}function FW(o,t,i){return o!==0?Io(o):(t.isHorizontal()?1:-1)*(t.min>=i?1:-1)}function NW(o){let t,i,n,r,a;return o.horizontal?(t=o.base>o.x,i="left",n="right"):(t=o.base<o.y,i="bottom",n="top"),t?(r="end",a="start"):(r="start",a="end"),{start:i,end:n,reverse:t,top:r,bottom:a}}function HW(o,t,i,n){let r=t.borderSkipped,a={};if(!r){o.borderSkipped=a;return}if(r===!0){o.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:s,end:l,reverse:c,top:d,bottom:f}=NW(o);r==="middle"&&i&&(o.enableBorderRadius=!0,(i._top||0)===n?r=d:(i._bottom||0)===n?r=f:(a[ZS(f,s,l,c)]=!0,r=d)),a[ZS(r,s,l,c)]=!0,o.borderSkipped=a}function ZS(o,t,i,n){return n?(o=BW(o,t,i),o=e6(o,i,t)):o=e6(o,t,i),o}function BW(o,t,i){return o===t?i:o===i?t:o}function e6(o,t,i){return o==="start"?t:o==="end"?i:o}function WW(o,{inflateAmount:t},i){o.inflateAmount=t==="auto"?i===1?.33:0:t}var cf=class extends qr{parsePrimitiveData(t,i,n,r){return QS(t,i,n,r)}parseArrayData(t,i,n,r){return QS(t,i,n,r)}parseObjectData(t,i,n,r){let{iScale:a,vScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,f=s.axis==="x"?l:c,h=[],p,m,v,b;for(p=n,m=n+r;p<m;++p)b=i[p],v={},v[a.axis]=a.parse(ns(b,d),p),h.push(U6(ns(b,f),v,s,p));return h}updateRangeFromParsed(t,i,n,r){super.updateRangeFromParsed(t,i,n,r);let a=n._custom;a&&i===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let i=this._cachedMeta,{iScale:n,vScale:r}=i,a=this.getParsed(t),s=a._custom,l=Zx(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(a[r.axis]);return{label:""+n.getLabelForValue(a[n.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();let t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){let i=this._cachedMeta;this.updateElements(i.data,0,i.data.length,t)}updateElements(t,i,n,r){let a=r==="reset",{index:s,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),d=l.isHorizontal(),f=this._getRuler(),{sharedOptions:h,includeOptions:p}=this._getSharedOptions(i,r);for(let m=i;m<i+n;m++){let v=this.getParsed(m),b=a||pt(v[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(m),x=this._calculateBarIndexPixels(m,f),k=(v._stacks||{})[l.axis],z={horizontal:d,base:b.base,enableBorderRadius:!k||Zx(v._custom)||s===k._top||s===k._bottom,x:d?b.head:x.center,y:d?x.center:b.head,height:d?x.size:Math.abs(b.size),width:d?Math.abs(b.size):x.size};p&&(z.options=h||this.resolveDataElementOptions(m,t[m].active?"active":r));let E=z.options||t[m].options;HW(z,E,k,s),WW(z,E,f.ratio),this.updateElement(t[m],m,z,r)}}_getStacks(t,i){let{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(f=>f.controller.options.grouped),a=n.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[n.axis],d=f=>{let h=f._parsed.find(m=>m[n.axis]===c),p=h&&h[f.vScale.axis];if(pt(p)||isNaN(p))return!0};for(let f of r)if(!(i!==void 0&&d(f))&&((a===!1||s.indexOf(f.stack)===-1||a===void 0&&f.stack===void 0)&&s.push(f.stack),f.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,i,n){let r=this._getStacks(t,n),a=i!==void 0?r.indexOf(i):-1;return a===-1?r.length-1:a}_getRuler(){let t=this.options,i=this._cachedMeta,n=i.iScale,r=[],a,s;for(a=0,s=i.data.length;a<s;++a)r.push(n.getPixelForValue(this.getParsed(a)[n.axis],a));let l=t.barThickness;return{min:l||OW(i),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){let{_cachedMeta:{vScale:i,_stacked:n,index:r},options:{base:a,minBarLength:s}}=this,l=a||0,c=this.getParsed(t),d=c._custom,f=Zx(d),h=c[i.axis],p=0,m=n?this.applyStack(i,c,n):h,v,b;m!==h&&(p=m-h,m=h),f&&(h=d.barStart,m=d.barEnd-d.barStart,h!==0&&Io(h)!==Io(d.barEnd)&&(p=0),p+=h);let x=!pt(a)&&!f?a:p,k=i.getPixelForValue(x);if(this.chart.getDataVisibility(t)?v=i.getPixelForValue(p+m):v=k,b=v-k,Math.abs(b)<s){b=FW(b,i,l)*s,h===l&&(k-=b/2);let z=i.getPixelForDecimal(0),E=i.getPixelForDecimal(1),A=Math.min(z,E),C=Math.max(z,E);k=Math.max(Math.min(k,C),A),v=k+b,n&&!f&&(c._stacks[i.axis]._visualValues[r]=i.getValueForPixel(v)-i.getValueForPixel(k))}if(k===i.getPixelForValue(l)){let z=Io(b)*i.getLineWidthForValue(l)/2;k+=z,b-=z}return{size:b,base:k,head:v,center:v+b/2}}_calculateBarIndexPixels(t,i){let n=i.scale,r=this.options,a=r.skipNull,s=st(r.maxBarThickness,1/0),l,c;if(i.grouped){let d=a?this._getStackCount(t):i.stackCount,f=r.barThickness==="flex"?$W(t,i,r,d):DW(t,i,r,d),h=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);l=f.start+f.chunk*h+f.chunk/2,c=Math.min(s,f.chunk*f.ratio)}else l=n.getPixelForValue(this.getParsed(t)[n.axis],t),c=Math.min(s,i.min*i.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){let t=this._cachedMeta,i=t.vScale,n=t.data,r=n.length,a=0;for(;a<r;++a)this.getParsed(a)[i.axis]!==null&&!n[a].hidden&&n[a].draw(this._ctx)}};ie(cf,"id","bar"),ie(cf,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ie(cf,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});var df=class extends qr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,i,n,r){let a=super.parsePrimitiveData(t,i,n,r);for(let s=0;s<a.length;s++)a[s]._custom=this.resolveDataElementOptions(s+n).radius;return a}parseArrayData(t,i,n,r){let a=super.parseArrayData(t,i,n,r);for(let s=0;s<a.length;s++){let l=i[n+s];a[s]._custom=st(l[2],this.resolveDataElementOptions(s+n).radius)}return a}parseObjectData(t,i,n,r){let a=super.parseObjectData(t,i,n,r);for(let s=0;s<a.length;s++){let l=i[n+s];a[s]._custom=st(l&&l.r&&+l.r,this.resolveDataElementOptions(s+n).radius)}return a}getMaxOverflow(){let t=this._cachedMeta.data,i=0;for(let n=t.length-1;n>=0;--n)i=Math.max(i,t[n].size(this.resolveDataElementOptions(n))/2);return i>0&&i}getLabelAndValue(t){let i=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:a}=i,s=this.getParsed(t),l=r.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:n[t]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(t){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,t)}updateElements(t,i,n,r){let a=r==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,r),f=s.axis,h=l.axis;for(let p=i;p<i+n;p++){let m=t[p],v=!a&&this.getParsed(p),b={},x=b[f]=a?s.getPixelForDecimal(.5):s.getPixelForValue(v[f]),k=b[h]=a?l.getBasePixel():l.getPixelForValue(v[h]);b.skip=isNaN(x)||isNaN(k),d&&(b.options=c||this.resolveDataElementOptions(p,m.active?"active":r),a&&(b.options.radius=0)),this.updateElement(m,p,b,r)}}resolveDataElementOptions(t,i){let n=this.getParsed(t),r=super.resolveDataElementOptions(t,i);r.$shared&&(r=Object.assign({},r,{$shared:!1}));let a=r.radius;return i!=="active"&&(r.radius=0),r.radius+=st(n&&n._custom,a),r}};ie(df,"id","bubble"),ie(df,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),ie(df,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function jW(o,t,i){let n=1,r=1,a=0,s=0;if(t<Gt){let l=o,c=l+t,d=Math.cos(l),f=Math.sin(l),h=Math.cos(c),p=Math.sin(c),m=(E,A,C)=>rf(E,l,c,!0)?1:Math.max(A,A*i,C,C*i),v=(E,A,C)=>rf(E,l,c,!0)?-1:Math.min(A,A*i,C,C*i),b=m(0,d,h),x=m(wi,f,p),k=v(Ut,d,h),z=v(Ut+wi,f,p);n=(b-k)/2,r=(x-z)/2,a=-(b+k)/2,s=-(x+z)/2}return{ratioX:n,ratioY:r,offsetX:a,offsetY:s}}var ss=class extends qr{constructor(t,i){super(t,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,i){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let a=c=>+n[c];if(gt(n[t])){let{key:c="value"}=this._parsing;a=d=>+ns(n[d],c)}let s,l;for(s=t,l=t+i;s<l;++s)r._parsed[s]=a(s)}}_getRotation(){return fo(this.options.rotation-90)}_getCircumference(){return fo(this.options.circumference)}_getRotationExtents(){let t=Gt,i=-Gt;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){let r=this.chart.getDatasetMeta(n).controller,a=r._getRotation(),s=r._getCircumference();t=Math.min(t,a),i=Math.max(i,a+s)}return{rotation:t,circumference:i-t}}update(t){let i=this.chart,{chartArea:n}=i,r=this._cachedMeta,a=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,l=Math.max((Math.min(n.width,n.height)-s)/2,0),c=Math.min(vS(this.options.cutout,l),1),d=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:m,offsetX:v,offsetY:b}=jW(h,f,c),x=(n.width-s)/p,k=(n.height-s)/m,z=Math.max(Math.min(x,k)/2,0),E=kx(this.options.radius,z),A=Math.max(E*c,0),C=(E-A)/this._getVisibleDatasetWeightTotal();this.offsetX=v*E,this.offsetY=b*E,r.total=this.calculateTotal(),this.outerRadius=E-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*d,0),this.updateElements(a,0,a.length,t)}_circumference(t,i){let n=this.options,r=this._cachedMeta,a=this._getCircumference();return i&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*a/Gt)}updateElements(t,i,n,r){let a=r==="reset",s=this.chart,l=s.chartArea,d=s.options.animation,f=(l.left+l.right)/2,h=(l.top+l.bottom)/2,p=a&&d.animateScale,m=p?0:this.innerRadius,v=p?0:this.outerRadius,{sharedOptions:b,includeOptions:x}=this._getSharedOptions(i,r),k=this._getRotation(),z;for(z=0;z<i;++z)k+=this._circumference(z,a);for(z=i;z<i+n;++z){let E=this._circumference(z,a),A=t[z],C={x:f+this.offsetX,y:h+this.offsetY,startAngle:k,endAngle:k+E,circumference:E,outerRadius:v,innerRadius:m};x&&(C.options=b||this.resolveDataElementOptions(z,A.active?"active":r)),k+=E,this.updateElement(A,z,C,r)}}calculateTotal(){let t=this._cachedMeta,i=t.data,n=0,r;for(r=0;r<i.length;r++){let a=t._parsed[r];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(r)&&!i[r].hidden&&(n+=Math.abs(a))}return n}calculateCircumference(t){let i=this._cachedMeta.total;return i>0&&!isNaN(t)?Gt*(Math.abs(t)/i):0}getLabelAndValue(t){let i=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=of(i._parsed[t],n.options.locale);return{label:r[t]||"",value:a}}getMaxBorderWidth(t){let i=0,n=this.chart,r,a,s,l,c;if(!t){for(r=0,a=n.data.datasets.length;r<a;++r)if(n.isDatasetVisible(r)){s=n.getDatasetMeta(r),t=s.data,l=s.controller;break}}if(!t)return 0;for(r=0,a=t.length;r<a;++r)c=l.resolveDataElementOptions(r),c.borderAlign!=="inner"&&(i=Math.max(i,c.borderWidth||0,c.hoverBorderWidth||0));return i}getMaxOffset(t){let i=0;for(let n=0,r=t.length;n<r;++n){let a=this.resolveDataElementOptions(n);i=Math.max(i,a.offset||0,a.hoverOffset||0)}return i}_getRingWeightOffset(t){let i=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(i+=this._getRingWeight(n));return i}_getRingWeight(t){return Math.max(st(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}};ie(ss,"id","doughnut"),ie(ss,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ie(ss,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ie(ss,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let i=t.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:n,color:r}}=t.legend.options;return i.labels.map((a,s)=>{let c=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:r,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,i,n){n.chart.toggleDataVisibility(i.index),n.chart.update()}}}});var ff=class extends qr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let i=this._cachedMeta,{dataset:n,data:r=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=qx(i,r,s);this._drawStart=l,this._drawCount=c,Px(i)&&(l=0,c=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=r;let d=this.resolveDatasetElementOptions(t);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:d},t),this.updateElements(r,l,c,t)}updateElements(t,i,n,r){let a=r==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(i,r),p=s.axis,m=l.axis,{spanGaps:v,segment:b}=this.options,x=Sc(v)?v:Number.POSITIVE_INFINITY,k=this.chart._animationsDisabled||a||r==="none",z=i+n,E=t.length,A=i>0&&this.getParsed(i-1);for(let C=0;C<E;++C){let L=t[C],M=k?L:{};if(C<i||C>=z){M.skip=!0;continue}let P=this.getParsed(C),I=pt(P[m]),N=M[p]=s.getPixelForValue(P[p],C),B=M[m]=a||I?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,P,c):P[m],C);M.skip=isNaN(N)||isNaN(B)||I,M.stop=C>0&&Math.abs(P[p]-A[p])>x,b&&(M.parsed=P,M.raw=d.data[C]),h&&(M.options=f||this.resolveDataElementOptions(C,L.active?"active":r)),k||this.updateElement(L,C,M,r),A=P}}getMaxOverflow(){let t=this._cachedMeta,i=t.dataset,n=i.options&&i.options.borderWidth||0,r=t.data||[];if(!r.length)return n;let a=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,a,s)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}};ie(ff,"id","line"),ie(ff,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ie(ff,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});var qc=class extends qr{constructor(t,i){super(t,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let i=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=of(i._parsed[t].r,n.options.locale);return{label:r[t]||"",value:a}}parseObjectData(t,i,n,r){return Bx.bind(this)(t,i,n,r)}update(t){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,t)}getMinMax(){let t=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,r)=>{let a=this.getParsed(r).r;!isNaN(a)&&this.chart.getDataVisibility(r)&&(a<i.min&&(i.min=a),a>i.max&&(i.max=a))}),i}_updateRadius(){let t=this.chart,i=t.chartArea,n=t.options,r=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(r/2,0),s=Math.max(n.cutoutPercentage?a/100*n.cutoutPercentage:1,0),l=(a-s)/t.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,i,n,r){let a=r==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,f=d.xCenter,h=d.yCenter,p=d.getIndexAngle(0)-.5*Ut,m=p,v,b=360/this.countVisibleElements();for(v=0;v<i;++v)m+=this._computeAngle(v,r,b);for(v=i;v<i+n;v++){let x=t[v],k=m,z=m+this._computeAngle(v,r,b),E=s.getDataVisibility(v)?d.getDistanceFromCenterForValue(this.getParsed(v).r):0;m=z,a&&(c.animateScale&&(E=0),c.animateRotate&&(k=z=p));let A={x:f,y:h,innerRadius:0,outerRadius:E,startAngle:k,endAngle:z,options:this.resolveDataElementOptions(v,x.active?"active":r)};this.updateElement(x,v,A,r)}}countVisibleElements(){let t=this._cachedMeta,i=0;return t.data.forEach((n,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&i++}),i}_computeAngle(t,i,n){return this.chart.getDataVisibility(t)?fo(this.resolveDataElementOptions(t,i).angle||n):0}};ie(qc,"id","polarArea"),ie(qc,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ie(qc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let i=t.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:n,color:r}}=t.legend.options;return i.labels.map((a,s)=>{let c=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:r,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,i,n){n.chart.toggleDataVisibility(i.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});var Du=class extends ss{};ie(Du,"id","pie"),ie(Du,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});var hf=class extends qr{getLabelAndValue(t){let i=this._cachedMeta.vScale,n=this.getParsed(t);return{label:i.getLabels()[t],value:""+i.getLabelForValue(n[i.axis])}}parseObjectData(t,i,n,r){return Bx.bind(this)(t,i,n,r)}update(t){let i=this._cachedMeta,n=i.dataset,r=i.data||[],a=i.iScale.getLabels();if(n.points=r,t!=="resize"){let s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===r.length,options:s};this.updateElement(n,void 0,l,t)}this.updateElements(r,0,r.length,t)}updateElements(t,i,n,r){let a=this._cachedMeta.rScale,s=r==="reset";for(let l=i;l<i+n;l++){let c=t[l],d=this.resolveDataElementOptions(l,c.active?"active":r),f=a.getPointPositionForValue(l,this.getParsed(l).r),h=s?a.xCenter:f.x,p=s?a.yCenter:f.y,m={x:h,y:p,angle:f.angle,skip:isNaN(h)||isNaN(p),options:d};this.updateElement(c,l,m,r)}}};ie(hf,"id","radar"),ie(hf,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),ie(hf,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});var uf=class extends qr{getLabelAndValue(t){let i=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:a}=i,s=this.getParsed(t),l=r.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:n[t]||"",value:"("+l+", "+c+")"}}update(t){let i=this._cachedMeta,{data:n=[]}=i,r=this.chart._animationsDisabled,{start:a,count:s}=qx(i,n,r);if(this._drawStart=a,this._drawCount=s,Px(i)&&(a=0,s=n.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=n;let d=this.resolveDatasetElementOptions(t);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!r,options:d},t)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(n,a,s,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,i,n,r){let a=r==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,f=this.resolveDataElementOptions(i,r),h=this.getSharedOptions(f),p=this.includeOptions(r,h),m=s.axis,v=l.axis,{spanGaps:b,segment:x}=this.options,k=Sc(b)?b:Number.POSITIVE_INFINITY,z=this.chart._animationsDisabled||a||r==="none",E=i>0&&this.getParsed(i-1);for(let A=i;A<i+n;++A){let C=t[A],L=this.getParsed(A),M=z?C:{},P=pt(L[v]),I=M[m]=s.getPixelForValue(L[m],A),N=M[v]=a||P?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,L,c):L[v],A);M.skip=isNaN(I)||isNaN(N)||P,M.stop=A>0&&Math.abs(L[m]-E[m])>k,x&&(M.parsed=L,M.raw=d.data[A]),p&&(M.options=h||this.resolveDataElementOptions(A,C.active?"active":r)),z||this.updateElement(C,A,M,r),E=L}this.updateSharedOptions(h,r,f)}getMaxOverflow(){let t=this._cachedMeta,i=t.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let n=t.dataset,r=n.options&&n.options.borderWidth||0;if(!i.length)return r;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,s)/2}};ie(uf,"id","scatter"),ie(uf,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ie(uf,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var VW=Object.freeze({__proto__:null,BarController:cf,BubbleController:df,DoughnutController:ss,LineController:ff,PieController:Du,PolarAreaController:qc,RadarController:hf,ScatterController:uf});function Ec(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var lw=class o{constructor(t){ie(this,"options");this.options=t||{}}static override(t){Object.assign(o.prototype,t)}init(){}formats(){return Ec()}parse(){return Ec()}format(){return Ec()}add(){return Ec()}diff(){return Ec()}startOf(){return Ec()}endOf(){return Ec()}},UW={_date:lw};function GW(o,t,i,n){let{controller:r,data:a,_sorted:s}=o,l=r._cachedMeta.iScale,c=o.dataset&&o.dataset.options?o.dataset.options.spanGaps:null;if(l&&t===l.axis&&t!=="r"&&s&&a.length){let d=l._reversePixels?zS:oa;if(n){if(r._sharedOptions){let f=a[0],h=typeof f.getRange=="function"&&f.getRange(t);if(h){let p=d(a,t,i-h),m=d(a,t,i+h);return{lo:p.lo,hi:m.hi}}}}else{let f=d(a,t,i);if(c){let{vScale:h}=r._cachedMeta,{_parsed:p}=o,m=p.slice(0,f.lo+1).reverse().findIndex(b=>!pt(b[h.axis]));f.lo-=Math.max(0,m);let v=p.slice(f.hi).findIndex(b=>!pt(b[h.axis]));f.hi+=Math.max(0,v)}return f}}return{lo:0,hi:a.length-1}}function Gu(o,t,i,n,r){let a=o.getSortedVisibleDatasetMetas(),s=i[t];for(let l=0,c=a.length;l<c;++l){let{index:d,data:f}=a[l],{lo:h,hi:p}=GW(a[l],t,s,r);for(let m=h;m<=p;++m){let v=f[m];v.skip||n(v,d,m)}}}function YW(o){let t=o.indexOf("x")!==-1,i=o.indexOf("y")!==-1;return function(n,r){let a=t?Math.abs(n.x-r.x):0,s=i?Math.abs(n.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}function ew(o,t,i,n,r){let a=[];return!r&&!o.isPointInArea(t)||Gu(o,i,t,function(l,c,d){!r&&!aa(l,o.chartArea,0)||l.inRange(t.x,t.y,n)&&a.push({element:l,datasetIndex:c,index:d})},!0),a}function XW(o,t,i,n){let r=[];function a(s,l,c){let{startAngle:d,endAngle:f}=s.getProps(["startAngle","endAngle"],n),{angle:h}=Ax(s,{x:t.x,y:t.y});rf(h,d,f)&&r.push({element:s,datasetIndex:l,index:c})}return Gu(o,i,t,a),r}function KW(o,t,i,n,r,a){let s=[],l=YW(i),c=Number.POSITIVE_INFINITY;function d(f,h,p){let m=f.inRange(t.x,t.y,r);if(n&&!m)return;let v=f.getCenterPoint(r);if(!(!!a||o.isPointInArea(v))&&!m)return;let x=l(t,v);x<c?(s=[{element:f,datasetIndex:h,index:p}],c=x):x===c&&s.push({element:f,datasetIndex:h,index:p})}return Gu(o,i,t,d),s}function tw(o,t,i,n,r,a){return!a&&!o.isPointInArea(t)?[]:i==="r"&&!n?XW(o,t,i,r):KW(o,t,i,n,r,a)}function t6(o,t,i,n,r){let a=[],s=i==="x"?"inXRange":"inYRange",l=!1;return Gu(o,i,t,(c,d,f)=>{c[s]&&c[s](t[i],r)&&(a.push({element:c,datasetIndex:d,index:f}),l=l||c.inRange(t.x,t.y,r))}),n&&!l?[]:a}var JW={evaluateInteractionItems:Gu,modes:{index(o,t,i,n){let r=rl(t,o),a=i.axis||"x",s=i.includeInvisible||!1,l=i.intersect?ew(o,r,a,n,s):tw(o,r,a,!1,n,s),c=[];return l.length?(o.getSortedVisibleDatasetMetas().forEach(d=>{let f=l[0].index,h=d.data[f];h&&!h.skip&&c.push({element:h,datasetIndex:d.index,index:f})}),c):[]},dataset(o,t,i,n){let r=rl(t,o),a=i.axis||"xy",s=i.includeInvisible||!1,l=i.intersect?ew(o,r,a,n,s):tw(o,r,a,!1,n,s);if(l.length>0){let c=l[0].datasetIndex,d=o.getDatasetMeta(c).data;l=[];for(let f=0;f<d.length;++f)l.push({element:d[f],datasetIndex:c,index:f})}return l},point(o,t,i,n){let r=rl(t,o),a=i.axis||"xy",s=i.includeInvisible||!1;return ew(o,r,a,n,s)},nearest(o,t,i,n){let r=rl(t,o),a=i.axis||"xy",s=i.includeInvisible||!1;return tw(o,r,a,i.intersect,n,s)},x(o,t,i,n){let r=rl(t,o);return t6(o,r,"x",i.intersect,n)},y(o,t,i,n){let r=rl(t,o);return t6(o,r,"y",i.intersect,n)}}},G6=["left","top","right","bottom"];function qu(o,t){return o.filter(i=>i.pos===t)}function i6(o,t){return o.filter(i=>G6.indexOf(i.pos)===-1&&i.box.axis===t)}function Pu(o,t){return o.sort((i,n)=>{let r=t?n:i,a=t?i:n;return r.weight===a.weight?r.index-a.index:r.weight-a.weight})}function QW(o){let t=[],i,n,r,a,s,l;for(i=0,n=(o||[]).length;i<n;++i)r=o[i],{position:a,options:{stack:s,stackWeight:l=1}}=r,t.push({index:i,box:r,pos:a,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&a+s,stackWeight:l});return t}function ZW(o){let t={};for(let i of o){let{stack:n,pos:r,stackWeight:a}=i;if(!n||!G6.includes(r))continue;let s=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=a}return t}function ej(o,t){let i=ZW(o),{vBoxMaxWidth:n,hBoxMaxHeight:r}=t,a,s,l;for(a=0,s=o.length;a<s;++a){l=o[a];let{fullSize:c}=l.box,d=i[l.stack],f=d&&l.stackWeight/d.weight;l.horizontal?(l.width=f?f*n:c&&t.availableWidth,l.height=r):(l.width=n,l.height=f?f*r:c&&t.availableHeight)}return i}function tj(o){let t=QW(o),i=Pu(t.filter(d=>d.box.fullSize),!0),n=Pu(qu(t,"left"),!0),r=Pu(qu(t,"right")),a=Pu(qu(t,"top"),!0),s=Pu(qu(t,"bottom")),l=i6(t,"x"),c=i6(t,"y");return{fullSize:i,leftAndTop:n.concat(a),rightAndBottom:r.concat(c).concat(s).concat(l),chartArea:qu(t,"chartArea"),vertical:n.concat(r).concat(c),horizontal:a.concat(s).concat(l)}}function n6(o,t,i,n){return Math.max(o[i],t[i])+Math.max(o[n],t[n])}function Y6(o,t){o.top=Math.max(o.top,t.top),o.left=Math.max(o.left,t.left),o.bottom=Math.max(o.bottom,t.bottom),o.right=Math.max(o.right,t.right)}function ij(o,t,i,n){let{pos:r,box:a}=i,s=o.maxPadding;if(!gt(r)){i.size&&(o[r]-=i.size);let h=n[i.stack]||{size:0,count:1};h.size=Math.max(h.size,i.horizontal?a.height:a.width),i.size=h.size/h.count,o[r]+=i.size}a.getPadding&&Y6(s,a.getPadding());let l=Math.max(0,t.outerWidth-n6(s,o,"left","right")),c=Math.max(0,t.outerHeight-n6(s,o,"top","bottom")),d=l!==o.w,f=c!==o.h;return o.w=l,o.h=c,i.horizontal?{same:d,other:f}:{same:f,other:d}}function nj(o){let t=o.maxPadding;function i(n){let r=Math.max(t[n]-o[n],0);return o[n]+=r,r}o.y+=i("top"),o.x+=i("left"),i("right"),i("bottom")}function rj(o,t){let i=t.maxPadding;function n(r){let a={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{a[s]=Math.max(t[s],i[s])}),a}return n(o?["left","right"]:["top","bottom"])}function $u(o,t,i,n){let r=[],a,s,l,c,d,f;for(a=0,s=o.length,d=0;a<s;++a){l=o[a],c=l.box,c.update(l.width||t.w,l.height||t.h,rj(l.horizontal,t));let{same:h,other:p}=ij(t,i,l,n);d|=h&&r.length,f=f||p,c.fullSize||r.push(l)}return d&&$u(r,t,i,n)||f}function pb(o,t,i,n,r){o.top=i,o.left=t,o.right=t+n,o.bottom=i+r,o.width=n,o.height=r}function r6(o,t,i,n){let r=i.padding,{x:a,y:s}=t;for(let l of o){let c=l.box,d=n[l.stack]||{count:1,placed:0,weight:1},f=l.stackWeight/d.weight||1;if(l.horizontal){let h=t.w*f,p=d.size||c.height;tf(d.start)&&(s=d.start),c.fullSize?pb(c,r.left,s,i.outerWidth-r.right-r.left,p):pb(c,t.left+d.placed,s,h,p),d.start=s,d.placed+=h,s=c.bottom}else{let h=t.h*f,p=d.size||c.width;tf(d.start)&&(a=d.start),c.fullSize?pb(c,a,r.top,p,i.outerHeight-r.bottom-r.top):pb(c,a,t.top+d.placed,p,h),d.start=a,d.placed+=h,a=c.right}}t.x=a,t.y=s}var zn={addBox(o,t){o.boxes||(o.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(i){t.draw(i)}}]},o.boxes.push(t)},removeBox(o,t){let i=o.boxes?o.boxes.indexOf(t):-1;i!==-1&&o.boxes.splice(i,1)},configure(o,t,i){t.fullSize=i.fullSize,t.position=i.position,t.weight=i.weight},update(o,t,i,n){if(!o)return;let r=gn(o.options.layout.padding),a=Math.max(t-r.width,0),s=Math.max(i-r.height,0),l=tj(o.boxes),c=l.vertical,d=l.horizontal;Lt(o.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});let f=c.reduce((b,x)=>x.box.options&&x.box.options.display===!1?b:b+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:i,padding:r,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/f,hBoxMaxHeight:s/2}),p=Object.assign({},r);Y6(p,gn(n));let m=Object.assign({maxPadding:p,w:a,h:s,x:r.left,y:r.top},r),v=ej(c.concat(d),h);$u(l.fullSize,m,h,v),$u(c,m,h,v),$u(d,m,h,v)&&$u(c,m,h,v),nj(m),r6(l.leftAndTop,m,h,v),m.x+=m.w,m.y+=m.h,r6(l.rightAndBottom,m,h,v),o.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},Lt(l.chartArea,b=>{let x=b.box;Object.assign(x,o.chartArea),x.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}},_b=class{acquireContext(t,i){}releaseContext(t){return!1}addEventListener(t,i,n){}removeEventListener(t,i,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,i,n,r){return i=Math.max(0,i||t.width),n=n||t.height,{width:i,height:Math.max(0,r?Math.floor(i/r):n)}}isAttached(t){return!0}updateConfig(t){}},cw=class extends _b{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}},xb="$chartjs",oj={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},o6=o=>o===null||o==="";function aj(o,t){let i=o.style,n=o.getAttribute("height"),r=o.getAttribute("width");if(o[xb]={initial:{height:n,width:r,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",o6(r)){let a=jx(o,"width");a!==void 0&&(o.width=a)}if(o6(n))if(o.style.height==="")o.height=o.width/(t||2);else{let a=jx(o,"height");a!==void 0&&(o.height=a)}return o}var X6=HS?{passive:!0}:!1;function sj(o,t,i){o&&o.addEventListener(t,i,X6)}function lj(o,t,i){o&&o.canvas&&o.canvas.removeEventListener(t,i,X6)}function cj(o,t){let i=oj[o.type]||o.type,{x:n,y:r}=rl(o,t);return{type:i,chart:t,native:o,x:n!==void 0?n:null,y:r!==void 0?r:null}}function zb(o,t){for(let i of o)if(i===t||i.contains(t))return!0}function dj(o,t,i){let n=o.canvas,r=new MutationObserver(a=>{let s=!1;for(let l of a)s=s||zb(l.addedNodes,n),s=s&&!zb(l.removedNodes,n);s&&i()});return r.observe(document,{childList:!0,subtree:!0}),r}function fj(o,t,i){let n=o.canvas,r=new MutationObserver(a=>{let s=!1;for(let l of a)s=s||zb(l.removedNodes,n),s=s&&!zb(l.addedNodes,n);s&&i()});return r.observe(document,{childList:!0,subtree:!0}),r}var ju=new Map,a6=0;function K6(){let o=window.devicePixelRatio;o!==a6&&(a6=o,ju.forEach((t,i)=>{i.currentDevicePixelRatio!==o&&t()}))}function hj(o,t){ju.size||window.addEventListener("resize",K6),ju.set(o,t)}function uj(o){ju.delete(o),ju.size||window.removeEventListener("resize",K6)}function pj(o,t,i){let n=o.canvas,r=n&&hb(n);if(!r)return;let a=Lx((l,c)=>{let d=r.clientWidth;i(l,c),d<r.clientWidth&&i()},window),s=new ResizeObserver(l=>{let c=l[0],d=c.contentRect.width,f=c.contentRect.height;d===0&&f===0||a(d,f)});return s.observe(r),hj(o,a),s}function iw(o,t,i){i&&i.disconnect(),t==="resize"&&uj(o)}function mj(o,t,i){let n=o.canvas,r=Lx(a=>{o.ctx!==null&&i(cj(a,o))},o);return sj(n,t,r),r}var dw=class extends _b{acquireContext(t,i){let n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(aj(t,i),n):null}releaseContext(t){let i=t.canvas;if(!i[xb])return!1;let n=i[xb].initial;["height","width"].forEach(a=>{let s=n[a];pt(s)?i.removeAttribute(a):i.setAttribute(a,s)});let r=n.style||{};return Object.keys(r).forEach(a=>{i.style[a]=r[a]}),i.width=i.width,delete i[xb],!0}addEventListener(t,i,n){this.removeEventListener(t,i);let r=t.$proxies||(t.$proxies={}),s={attach:dj,detach:fj,resize:pj}[i]||mj;r[i]=s(t,i,n)}removeEventListener(t,i){let n=t.$proxies||(t.$proxies={}),r=n[i];if(!r)return;({attach:iw,detach:iw,resize:iw}[i]||lj)(t,i,r),n[i]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,i,n,r){return NS(t,i,n,r)}isAttached(t){let i=t&&hb(t);return!!(i&&i.isConnected)}};function gj(o){return!fb()||typeof OffscreenCanvas!="undefined"&&o instanceof OffscreenCanvas?cw:dw}var Pr=class{constructor(){ie(this,"x");ie(this,"y");ie(this,"active",!1);ie(this,"options");ie(this,"$animations")}tooltipPosition(t){let{x:i,y:n}=this.getProps(["x","y"],t);return{x:i,y:n}}hasValue(){return Sc(this.x)&&Sc(this.y)}getProps(t,i){let n=this.$animations;if(!i||!n)return this;let r={};return t.forEach(a=>{r[a]=n[a]&&n[a].active()?n[a]._to:this[a]}),r}};ie(Pr,"defaults",{}),ie(Pr,"defaultRoutes");function bj(o,t){let i=o.options.ticks,n=vj(o),r=Math.min(i.maxTicksLimit||n,n),a=i.major.enabled?xj(t):[],s=a.length,l=a[0],c=a[s-1],d=[];if(s>r)return wj(t,d,a,s/r),d;let f=yj(a,t,r);if(s>0){let h,p,m=s>1?Math.round((c-l)/(s-1)):null;for(mb(t,d,f,pt(m)?0:l-m,l),h=0,p=s-1;h<p;h++)mb(t,d,f,a[h],a[h+1]);return mb(t,d,f,c,pt(m)?t.length:c+m),d}return mb(t,d,f),d}function vj(o){let t=o.options.offset,i=o._tickSize(),n=o._length/i+(t?0:1),r=o._maxLength/i;return Math.floor(Math.min(n,r))}function yj(o,t,i){let n=kj(o),r=t.length/i;if(!n)return Math.max(r,1);let a=wS(n);for(let s=0,l=a.length-1;s<l;s++){let c=a[s];if(c>r)return c}return Math.max(r,1)}function xj(o){let t=[],i,n;for(i=0,n=o.length;i<n;i++)o[i].major&&t.push(i);return t}function wj(o,t,i,n){let r=0,a=i[0],s;for(n=Math.ceil(n),s=0;s<o.length;s++)s===a&&(t.push(o[s]),r++,a=i[r*n])}function mb(o,t,i,n,r){let a=st(n,0),s=Math.min(st(r,o.length),o.length),l=0,c,d,f;for(i=Math.ceil(i),r&&(c=r-n,i=c/Math.floor(c/i)),f=a;f<0;)l++,f=Math.round(a+l*i);for(d=Math.max(a,0);d<s;d++)d===f&&(t.push(o[d]),l++,f=Math.round(a+l*i))}function kj(o){let t=o.length,i,n;if(t<2)return!1;for(n=o[0],i=1;i<t;++i)if(o[i]-o[i-1]!==n)return!1;return n}var _j=o=>o==="left"?"right":o==="right"?"left":o,s6=(o,t,i)=>t==="top"||t==="left"?o[t]+i:o[t]-i,l6=(o,t)=>Math.min(t||o,o);function c6(o,t){let i=[],n=o.length/t,r=o.length,a=0;for(;a<r;a+=n)i.push(o[Math.floor(a)]);return i}function zj(o,t,i){let n=o.ticks.length,r=Math.min(t,n-1),a=o._startPixel,s=o._endPixel,l=1e-6,c=o.getPixelForTick(r),d;if(!(i&&(n===1?d=Math.max(c-a,s-c):t===0?d=(o.getPixelForTick(1)-c)/2:d=(c-o.getPixelForTick(r-1))/2,c+=r<t?d:-d,c<a-l||c>s+l)))return c}function Cj(o,t){Lt(o,i=>{let n=i.gc,r=n.length/2,a;if(r>t){for(a=0;a<r;++a)delete i.data[n[a]];n.splice(0,r)}})}function Ru(o){return o.drawTicks?o.tickLength:0}function d6(o,t){if(!o.display)return 0;let i=Ri(o.font,t),n=gn(o.padding);return(Vt(o.text)?o.text.length:1)*i.lineHeight+n.height}function Sj(o,t){return rs(o,{scale:t,type:"scale"})}function Aj(o,t,i){return rs(o,{tick:i,index:t,type:"tick"})}function Ej(o,t,i){let n=ab(o);return(i&&t!=="right"||!i&&t==="right")&&(n=_j(n)),n}function Tj(o,t,i,n){let{top:r,left:a,bottom:s,right:l,chart:c}=o,{chartArea:d,scales:f}=c,h=0,p,m,v,b=s-r,x=l-a;if(o.isHorizontal()){if(m=mn(n,a,l),gt(i)){let k=Object.keys(i)[0],z=i[k];v=f[k].getPixelForValue(z)+b-t}else i==="center"?v=(d.bottom+d.top)/2+b-t:v=s6(o,i,t);p=l-a}else{if(gt(i)){let k=Object.keys(i)[0],z=i[k];m=f[k].getPixelForValue(z)-x+t}else i==="center"?m=(d.left+d.right)/2-x+t:m=s6(o,i,t);v=mn(n,s,r),h=i==="left"?-wi:wi}return{titleX:m,titleY:v,maxWidth:p,rotation:h}}var Rc=class o extends Pr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,i){return t}getUserBounds(){let{_userMin:t,_userMax:i,_suggestedMin:n,_suggestedMax:r}=this;return t=ar(t,Number.POSITIVE_INFINITY),i=ar(i,Number.NEGATIVE_INFINITY),n=ar(n,Number.POSITIVE_INFINITY),r=ar(r,Number.NEGATIVE_INFINITY),{min:ar(t,n),max:ar(i,r),minDefined:hi(t),maxDefined:hi(i)}}getMinMax(t){let{min:i,max:n,minDefined:r,maxDefined:a}=this.getUserBounds(),s;if(r&&a)return{min:i,max:n};let l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)s=l[c].controller.getMinMax(this,t),r||(i=Math.min(i,s.min)),a||(n=Math.max(n,s.max));return i=a&&i>n?n:i,n=r&&i>n?i:n,{min:ar(i,ar(n,i)),max:ar(n,ar(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ht(this.options.beforeUpdate,[this])}update(t,i,n){let{beginAtZero:r,grace:a,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=i,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=RS(this,a,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let c=l<this.ticks.length;this._convertTicksToLabels(c?c6(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=bj(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,i,n;this.isHorizontal()?(i=this.left,n=this.right):(i=this.top,n=this.bottom,t=!t),this._startPixel=i,this._endPixel=n,this._reversePixels=t,this._length=n-i,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ht(this.options.afterUpdate,[this])}beforeSetDimensions(){Ht(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ht(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ht(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ht(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){let i=this.options.ticks,n,r,a;for(n=0,r=t.length;n<r;n++)a=t[n],a.label=Ht(i.callback,[a.value,n,t],this)}afterTickToLabelConversion(){Ht(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ht(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let t=this.options,i=t.ticks,n=l6(this.ticks.length,t.ticks.maxTicksLimit),r=i.minRotation||0,a=i.maxRotation,s=r,l,c,d;if(!this._isVisible()||!i.display||r>=a||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,m=Vi(this.chart.width-h,0,this.maxWidth);l=t.offset?this.maxWidth/n:m/(n-1),h+6>l&&(l=m/(n-(t.offset?.5:1)),c=this.maxHeight-Ru(t.grid)-i.padding-d6(t.title,this.chart.options.font),d=Math.sqrt(h*h+p*p),s=rb(Math.min(Math.asin(Vi((f.highest.height+6)/l,-1,1)),Math.asin(Vi(c/d,-1,1))-Math.asin(Vi(p/d,-1,1)))),s=Math.max(r,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ht(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ht(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:i,options:{ticks:n,title:r,grid:a}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){let c=d6(r,i.options.font);if(l?(t.width=this.maxWidth,t.height=Ru(a)+c):(t.height=this.maxHeight,t.width=Ru(a)+c),n.display&&this.ticks.length){let{first:d,last:f,widest:h,highest:p}=this._getLabelSizes(),m=n.padding*2,v=fo(this.labelRotation),b=Math.cos(v),x=Math.sin(v);if(l){let k=n.mirror?0:x*h.width+b*p.height;t.height=Math.min(this.maxHeight,t.height+k+m)}else{let k=n.mirror?0:b*h.width+x*p.height;t.width=Math.min(this.maxWidth,t.width+k+m)}this._calculatePadding(d,f,x,b)}}this._handleMargins(),l?(this.width=this._length=i.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=i.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,i,n,r){let{ticks:{align:a,padding:s},position:l}=this.options,c=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){let f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1),p=0,m=0;c?d?(p=r*t.width,m=n*i.height):(p=n*t.height,m=r*i.width):a==="start"?m=i.width:a==="end"?p=t.width:a!=="inner"&&(p=t.width/2,m=i.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-h+s)*this.width/(this.width-h),0)}else{let f=i.height/2,h=t.height/2;a==="start"?(f=0,h=t.height):a==="end"&&(f=i.height,h=0),this.paddingTop=f+s,this.paddingBottom=h+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ht(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:i}=this.options;return i==="top"||i==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let i,n;for(i=0,n=t.length;i<n;i++)pt(t[i].label)&&(t.splice(i,1),n--,i--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){let i=this.options.ticks.sampleSize,n=this.ticks;i<n.length&&(n=c6(n,i)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,i,n){let{ctx:r,_longestTextCache:a}=this,s=[],l=[],c=Math.floor(i/l6(i,n)),d=0,f=0,h,p,m,v,b,x,k,z,E,A,C;for(h=0;h<i;h+=c){if(v=t[h].label,b=this._resolveTickFontOptions(h),r.font=x=b.string,k=a[x]=a[x]||{data:{},gc:[]},z=b.lineHeight,E=A=0,!pt(v)&&!Vt(v))E=Su(r,k.data,k.gc,E,v),A=z;else if(Vt(v))for(p=0,m=v.length;p<m;++p)C=v[p],!pt(C)&&!Vt(C)&&(E=Su(r,k.data,k.gc,E,C),A+=z);s.push(E),l.push(A),d=Math.max(E,d),f=Math.max(A,f)}Cj(a,i);let L=s.indexOf(d),M=l.indexOf(f),P=I=>({width:s[I]||0,height:l[I]||0});return{first:P(0),last:P(i-1),widest:P(L),highest:P(M),widths:s,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,i){return NaN}getValueForPixel(t){}getPixelForTick(t){let i=this.ticks;return t<0||t>i.length-1?null:this.getPixelForValue(i[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let i=this._startPixel+t*this._length;return _S(this._alignToPixels?tl(this.chart,i,0):i)}getDecimalForPixel(t){let i=(t-this._startPixel)/this._length;return this._reversePixels?1-i:i}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:i}=this;return t<0&&i<0?i:t>0&&i>0?t:0}getContext(t){let i=this.ticks||[];if(t>=0&&t<i.length){let n=i[t];return n.$context||(n.$context=Aj(this.getContext(),t,n))}return this.$context||(this.$context=Sj(this.chart.getContext(),this))}_tickSize(){let t=this.options.ticks,i=fo(this.labelRotation),n=Math.abs(Math.cos(i)),r=Math.abs(Math.sin(i)),a=this._getLabelSizes(),s=t.autoSkipPadding||0,l=a?a.widest.width+s:0,c=a?a.highest.height+s:0;return this.isHorizontal()?c*n>l*r?l/n:c/r:c*r<l*n?c/n:l/r}_isVisible(){let t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){let i=this.axis,n=this.chart,r=this.options,{grid:a,position:s,border:l}=r,c=a.offset,d=this.isHorizontal(),h=this.ticks.length+(c?1:0),p=Ru(a),m=[],v=l.setContext(this.getContext()),b=v.display?v.width:0,x=b/2,k=function(se){return tl(n,se,b)},z,E,A,C,L,M,P,I,N,B,U,ee;if(s==="top")z=k(this.bottom),M=this.bottom-p,I=z-x,B=k(t.top)+x,ee=t.bottom;else if(s==="bottom")z=k(this.top),B=t.top,ee=k(t.bottom)-x,M=z+x,I=this.top+p;else if(s==="left")z=k(this.right),L=this.right-p,P=z-x,N=k(t.left)+x,U=t.right;else if(s==="right")z=k(this.left),N=t.left,U=k(t.right)-x,L=z+x,P=this.left+p;else if(i==="x"){if(s==="center")z=k((t.top+t.bottom)/2+.5);else if(gt(s)){let se=Object.keys(s)[0],de=s[se];z=k(this.chart.scales[se].getPixelForValue(de))}B=t.top,ee=t.bottom,M=z+x,I=M+p}else if(i==="y"){if(s==="center")z=k((t.left+t.right)/2);else if(gt(s)){let se=Object.keys(s)[0],de=s[se];z=k(this.chart.scales[se].getPixelForValue(de))}L=z-x,P=L-p,N=t.left,U=t.right}let ae=st(r.ticks.maxTicksLimit,h),oe=Math.max(1,Math.ceil(h/ae));for(E=0;E<h;E+=oe){let se=this.getContext(E),de=a.setContext(se),_e=l.setContext(se),ve=de.lineWidth,Ae=de.color,Le=_e.dash||[],Se=_e.dashOffset,Ze=de.tickWidth,Ne=de.tickColor,Re=de.tickBorderDash||[],xe=de.tickBorderDashOffset;A=zj(this,E,c),A!==void 0&&(C=tl(n,A,ve),d?L=P=N=U=C:M=I=B=ee=C,m.push({tx1:L,ty1:M,tx2:P,ty2:I,x1:N,y1:B,x2:U,y2:ee,width:ve,color:Ae,borderDash:Le,borderDashOffset:Se,tickWidth:Ze,tickColor:Ne,tickBorderDash:Re,tickBorderDashOffset:xe}))}return this._ticksLength=h,this._borderValue=z,m}_computeLabelItems(t){let i=this.axis,n=this.options,{position:r,ticks:a}=n,s=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:f,mirror:h}=a,p=Ru(n.grid),m=p+f,v=h?-f:m,b=-fo(this.labelRotation),x=[],k,z,E,A,C,L,M,P,I,N,B,U,ee="middle";if(r==="top")L=this.bottom-v,M=this._getXAxisLabelAlignment();else if(r==="bottom")L=this.top+v,M=this._getXAxisLabelAlignment();else if(r==="left"){let oe=this._getYAxisLabelAlignment(p);M=oe.textAlign,C=oe.x}else if(r==="right"){let oe=this._getYAxisLabelAlignment(p);M=oe.textAlign,C=oe.x}else if(i==="x"){if(r==="center")L=(t.top+t.bottom)/2+m;else if(gt(r)){let oe=Object.keys(r)[0],se=r[oe];L=this.chart.scales[oe].getPixelForValue(se)+m}M=this._getXAxisLabelAlignment()}else if(i==="y"){if(r==="center")C=(t.left+t.right)/2-m;else if(gt(r)){let oe=Object.keys(r)[0],se=r[oe];C=this.chart.scales[oe].getPixelForValue(se)}M=this._getYAxisLabelAlignment(p).textAlign}i==="y"&&(c==="start"?ee="top":c==="end"&&(ee="bottom"));let ae=this._getLabelSizes();for(k=0,z=l.length;k<z;++k){E=l[k],A=E.label;let oe=a.setContext(this.getContext(k));P=this.getPixelForTick(k)+a.labelOffset,I=this._resolveTickFontOptions(k),N=I.lineHeight,B=Vt(A)?A.length:1;let se=B/2,de=oe.color,_e=oe.textStrokeColor,ve=oe.textStrokeWidth,Ae=M;s?(C=P,M==="inner"&&(k===z-1?Ae=this.options.reverse?"left":"right":k===0?Ae=this.options.reverse?"right":"left":Ae="center"),r==="top"?d==="near"||b!==0?U=-B*N+N/2:d==="center"?U=-ae.highest.height/2-se*N+N:U=-ae.highest.height+N/2:d==="near"||b!==0?U=N/2:d==="center"?U=ae.highest.height/2-se*N:U=ae.highest.height-B*N,h&&(U*=-1),b!==0&&!oe.showLabelBackdrop&&(C+=N/2*Math.sin(b))):(L=P,U=(1-B)*N/2);let Le;if(oe.showLabelBackdrop){let Se=gn(oe.backdropPadding),Ze=ae.heights[k],Ne=ae.widths[k],Re=U-Se.top,xe=0-Se.left;switch(ee){case"middle":Re-=Ze/2;break;case"bottom":Re-=Ze;break}switch(M){case"center":xe-=Ne/2;break;case"right":xe-=Ne;break;case"inner":k===z-1?xe-=Ne:k>0&&(xe-=Ne/2);break}Le={left:xe,top:Re,width:Ne+Se.width,height:Ze+Se.height,color:oe.backdropColor}}x.push({label:A,font:I,textOffset:U,options:{rotation:b,color:de,strokeColor:_e,strokeWidth:ve,textAlign:Ae,textBaseline:ee,translation:[C,L],backdrop:Le}})}return x}_getXAxisLabelAlignment(){let{position:t,ticks:i}=this.options;if(-fo(this.labelRotation))return t==="top"?"left":"right";let r="center";return i.align==="start"?r="left":i.align==="end"?r="right":i.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){let{position:i,ticks:{crossAlign:n,mirror:r,padding:a}}=this.options,s=this._getLabelSizes(),l=t+a,c=s.widest.width,d,f;return i==="left"?r?(f=this.right+a,n==="near"?d="left":n==="center"?(d="center",f+=c/2):(d="right",f+=c)):(f=this.right-l,n==="near"?d="right":n==="center"?(d="center",f-=c/2):(d="left",f=this.left)):i==="right"?r?(f=this.left+a,n==="near"?d="right":n==="center"?(d="center",f-=c/2):(d="left",f-=c)):(f=this.left+l,n==="near"?d="left":n==="center"?(d="center",f+=c/2):(d="right",f=this.right)):d="right",{textAlign:d,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,i=this.options.position;if(i==="left"||i==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(i==="top"||i==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){let{ctx:t,options:{backgroundColor:i},left:n,top:r,width:a,height:s}=this;i&&(t.save(),t.fillStyle=i,t.fillRect(n,r,a,s),t.restore())}getLineWidthForValue(t){let i=this.options.grid;if(!this._isVisible()||!i.display)return 0;let r=this.ticks.findIndex(a=>a.value===t);return r>=0?i.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){let i=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),a,s,l=(c,d,f)=>{!f.width||!f.color||(n.save(),n.lineWidth=f.width,n.strokeStyle=f.color,n.setLineDash(f.borderDash||[]),n.lineDashOffset=f.borderDashOffset,n.beginPath(),n.moveTo(c.x,c.y),n.lineTo(d.x,d.y),n.stroke(),n.restore())};if(i.display)for(a=0,s=r.length;a<s;++a){let c=r[a];i.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),i.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){let{chart:t,ctx:i,options:{border:n,grid:r}}=this,a=n.setContext(this.getContext()),s=n.display?a.width:0;if(!s)return;let l=r.setContext(this.getContext(0)).lineWidth,c=this._borderValue,d,f,h,p;this.isHorizontal()?(d=tl(t,this.left,s)-s/2,f=tl(t,this.right,l)+l/2,h=p=c):(h=tl(t,this.top,s)-s/2,p=tl(t,this.bottom,l)+l/2,d=f=c),i.save(),i.lineWidth=a.width,i.strokeStyle=a.color,i.beginPath(),i.moveTo(d,h),i.lineTo(f,p),i.stroke(),i.restore()}drawLabels(t){if(!this.options.ticks.display)return;let n=this.ctx,r=this._computeLabelArea();r&&Tu(n,r);let a=this.getLabelItems(t);for(let s of a){let l=s.options,c=s.font,d=s.label,f=s.textOffset;il(n,d,0,f,c,l)}r&&Mu(n)}drawTitle(){let{ctx:t,options:{position:i,title:n,reverse:r}}=this;if(!n.display)return;let a=Ri(n.font),s=gn(n.padding),l=n.align,c=a.lineHeight/2;i==="bottom"||i==="center"||gt(i)?(c+=s.bottom,Vt(n.text)&&(c+=a.lineHeight*(n.text.length-1))):c+=s.top;let{titleX:d,titleY:f,maxWidth:h,rotation:p}=Tj(this,c,i,l);il(t,n.text,0,0,a,{color:n.color,maxWidth:h,rotation:p,textAlign:Ej(l,i,r),textBaseline:"middle",translation:[d,f]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){let t=this.options,i=t.ticks&&t.ticks.z||0,n=st(t.grid&&t.grid.z,-1),r=st(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==o.prototype.draw?[{z:i,draw:a=>{this.draw(a)}}]:[{z:n,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:i,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){let i=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[],a,s;for(a=0,s=i.length;a<s;++a){let l=i[a];l[n]===this.id&&(!t||l.type===t)&&r.push(l)}return r}_resolveTickFontOptions(t){let i=this.options.ticks.setContext(this.getContext(t));return Ri(i.font)}_maxDigits(){let t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}},gf=class{constructor(t,i,n){this.type=t,this.scope=i,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){let i=Object.getPrototypeOf(t),n;qj(i)&&(n=this.register(i));let r=this.items,a=t.id,s=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in r||(r[a]=t,Mj(t,s,n),this.override&&ti.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){let i=this.items,n=t.id,r=this.scope;n in i&&delete i[n],r&&n in ti[r]&&(delete ti[r][n],this.override&&delete el[n])}};function Mj(o,t,i){let n=Qd(Object.create(null),[i?ti.get(i):{},ti.get(t),o.defaults]);ti.set(t,n),o.defaultRoutes&&Lj(t,o.defaultRoutes),o.descriptors&&ti.describe(t,o.descriptors)}function Lj(o,t){Object.keys(t).forEach(i=>{let n=i.split("."),r=n.pop(),a=[o].concat(n).join("."),s=t[i].split("."),l=s.pop(),c=s.join(".");ti.route(a,r,c,l)})}function qj(o){return"id"in o&&"defaults"in o}var fw=class{constructor(){this.controllers=new gf(qr,"datasets",!0),this.elements=new gf(Pr,"elements"),this.plugins=new gf(Object,"plugins"),this.scales=new gf(Rc,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,i,n){[...i].forEach(r=>{let a=n||this._getRegistryForType(r);n||a.isForType(r)||a===this.plugins&&r.id?this._exec(t,a,r):Lt(r,s=>{let l=n||this._getRegistryForType(s);this._exec(t,l,s)})})}_exec(t,i,n){let r=nb(t);Ht(n["before"+r],[],n),i[t](n),Ht(n["after"+r],[],n)}_getRegistryForType(t){for(let i=0;i<this._typedRegistries.length;i++){let n=this._typedRegistries[i];if(n.isForType(t))return n}return this.plugins}_get(t,i,n){let r=i.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return r}},da=new fw,hw=class{constructor(){this._init=[]}notify(t,i,n,r){i==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));let a=r?this._descriptors(t).filter(r):this._descriptors(t),s=this._notify(a,t,i,n);return i==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,i,n,r){r=r||{};for(let a of t){let s=a.plugin,l=s[n],c=[i,r,a.options];if(Ht(l,c,s)===!1&&r.cancelable)return!1}return!0}invalidate(){pt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;let i=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),i}_createDescriptors(t,i){let n=t&&t.config,r=st(n.options&&n.options.plugins,{}),a=Pj(n);return r===!1&&!i?[]:Oj(t,a,r,i)}_notifyStateChanges(t){let i=this._oldCache||[],n=this._cache,r=(a,s)=>a.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(r(i,n),t,"stop"),this._notify(r(n,i),t,"start")}};function Pj(o){let t={},i=[],n=Object.keys(da.plugins.items);for(let a=0;a<n.length;a++)i.push(da.getPlugin(n[a]));let r=o.plugins||[];for(let a=0;a<r.length;a++){let s=r[a];i.indexOf(s)===-1&&(i.push(s),t[s.id]=!0)}return{plugins:i,localIds:t}}function Rj(o,t){return!t&&o===!1?null:o===!0?{}:o}function Oj(o,{plugins:t,localIds:i},n,r){let a=[],s=o.getContext();for(let l of t){let c=l.id,d=Rj(n[c],r);d!==null&&a.push({plugin:l,options:Dj(o.config,{plugin:l,local:i[c]},d,s)})}return a}function Dj(o,{plugin:t,local:i},n,r){let a=o.pluginScopeKeys(t),s=o.getOptionScopes(n,a);return i&&t.defaults&&s.push(t.defaults),o.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function uw(o,t){let i=ti.datasets[o]||{};return((t.datasets||{})[o]||{}).indexAxis||t.indexAxis||i.indexAxis||"x"}function $j(o,t){let i=o;return o==="_index_"?i=t:o==="_value_"&&(i=t==="x"?"y":"x"),i}function Ij(o,t){return o===t?"_index_":"_value_"}function f6(o){if(o==="x"||o==="y"||o==="r")return o}function Fj(o){if(o==="top"||o==="bottom")return"x";if(o==="left"||o==="right")return"y"}function pw(o,...t){if(f6(o))return o;for(let i of t){let n=i.axis||Fj(i.position)||o.length>1&&f6(o[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${o}' axis. Please provide 'axis' or 'position' option.`)}function h6(o,t,i){if(i[t+"AxisID"]===o)return{axis:t}}function Nj(o,t){if(t.data&&t.data.datasets){let i=t.data.datasets.filter(n=>n.xAxisID===o||n.yAxisID===o);if(i.length)return h6(o,"x",i[0])||h6(o,"y",i[0])}return{}}function Hj(o,t){let i=el[o.type]||{scales:{}},n=t.scales||{},r=uw(o.type,t),a=Object.create(null);return Object.keys(n).forEach(s=>{let l=n[s];if(!gt(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);let c=pw(s,l,Nj(s,o),ti.scales[l.type]),d=Ij(c,r),f=i.scales||{};a[s]=ef(Object.create(null),[{axis:c},l,f[c],f[d]])}),o.data.datasets.forEach(s=>{let l=s.type||o.type,c=s.indexAxis||uw(l,t),f=(el[l]||{}).scales||{};Object.keys(f).forEach(h=>{let p=$j(h,c),m=s[p+"AxisID"]||p;a[m]=a[m]||Object.create(null),ef(a[m],[{axis:p},n[m],f[h]])})}),Object.keys(a).forEach(s=>{let l=a[s];ef(l,[ti.scales[l.type],ti.scale])}),a}function J6(o){let t=o.options||(o.options={});t.plugins=st(t.plugins,{}),t.scales=Hj(o,t)}function Q6(o){return o=o||{},o.datasets=o.datasets||[],o.labels=o.labels||[],o}function Bj(o){return o=o||{},o.data=Q6(o.data),J6(o),o}var u6=new Map,Z6=new Set;function gb(o,t){let i=u6.get(o);return i||(i=t(),u6.set(o,i),Z6.add(i)),i}var Ou=(o,t,i)=>{let n=ns(t,i);n!==void 0&&o.add(n)},mw=class{constructor(t){this._config=Bj(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Q6(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),J6(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return gb(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,i){return gb(`${t}.transition.${i}`,()=>[[`datasets.${t}.transitions.${i}`,`transitions.${i}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,i){return gb(`${t}-${i}`,()=>[[`datasets.${t}.elements.${i}`,`datasets.${t}`,`elements.${i}`,""]])}pluginScopeKeys(t){let i=t.id,n=this.type;return gb(`${n}-plugin-${i}`,()=>[[`plugins.${i}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,i){let n=this._scopeCache,r=n.get(t);return(!r||i)&&(r=new Map,n.set(t,r)),r}getOptionScopes(t,i,n){let{options:r,type:a}=this,s=this._cachedScopes(t,n),l=s.get(i);if(l)return l;let c=new Set;i.forEach(f=>{t&&(c.add(t),f.forEach(h=>Ou(c,t,h))),f.forEach(h=>Ou(c,r,h)),f.forEach(h=>Ou(c,el[a]||{},h)),f.forEach(h=>Ou(c,ti,h)),f.forEach(h=>Ou(c,sb,h))});let d=Array.from(c);return d.length===0&&d.push(Object.create(null)),Z6.has(i)&&s.set(i,d),d}chartOptionScopes(){let{options:t,type:i}=this;return[t,el[i]||{},ti.datasets[i]||{},{type:i},ti,sb]}resolveNamedOptions(t,i,n,r=[""]){let a={$shared:!0},{resolver:s,subPrefixes:l}=p6(this._resolverCache,t,r),c=s;if(jj(s,i)){a.$shared=!1,n=ts(n)?n():n;let d=this.createResolver(t,n,l);c=Cc(s,n,d)}for(let d of i)a[d]=c[d];return a}createResolver(t,i,n=[""],r){let{resolver:a}=p6(this._resolverCache,t,n);return gt(i)?Cc(a,i,void 0,r):a}};function p6(o,t,i){let n=o.get(t);n||(n=new Map,o.set(t,n));let r=i.join(),a=n.get(r);return a||(a={resolver:db(t,i),subPrefixes:i.filter(l=>!l.toLowerCase().includes("hover"))},n.set(r,a)),a}var Wj=o=>gt(o)&&Object.getOwnPropertyNames(o).some(t=>ts(o[t]));function jj(o,t){let{isScriptable:i,isIndexable:n}=Fx(o);for(let r of t){let a=i(r),s=n(r),l=(s||a)&&o[r];if(a&&(ts(l)||Wj(l))||s&&Vt(l))return!0}return!1}var Vj="4.4.9",Uj=["top","bottom","left","right","chartArea"];function m6(o,t){return o==="top"||o==="bottom"||Uj.indexOf(o)===-1&&t==="x"}function g6(o,t){return function(i,n){return i[o]===n[o]?i[t]-n[t]:i[o]-n[o]}}function b6(o){let t=o.chart,i=t.options.animation;t.notifyPlugins("afterRender"),Ht(i&&i.onComplete,[o],t)}function Gj(o){let t=o.chart,i=t.options.animation;Ht(i&&i.onProgress,[o],t)}function eA(o){return fb()&&typeof o=="string"?o=document.getElementById(o):o&&o.length&&(o=o[0]),o&&o.canvas&&(o=o.canvas),o}var wb={},v6=o=>{let t=eA(o);return Object.values(wb).filter(i=>i.canvas===t).pop()};function Yj(o,t,i){let n=Object.keys(o);for(let r of n){let a=+r;if(a>=t){let s=o[r];delete o[r],(i>0||a>t)&&(o[a+i]=s)}}}function Xj(o,t,i,n){return!i||o.type==="mouseout"?null:n?t:o}var Lr=class{static register(...t){da.add(...t),y6()}static unregister(...t){da.remove(...t),y6()}constructor(t,i){let n=this.config=new mw(i),r=eA(t),a=v6(r);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||gj(r)),this.platform.updateConfig(n);let l=this.platform.acquireContext(r,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,f=c&&c.width;if(this.id=bS(),this.ctx=l,this.canvas=c,this.width=f,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new hw,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ES(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],wb[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}os.listen(this,"complete",b6),os.listen(this,"progress",Gj),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:i},width:n,height:r,_aspectRatio:a}=this;return pt(t)?i&&a?a:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return da}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Wx(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Dx(this.canvas,this.ctx),this}stop(){return os.stop(this),this}resize(t,i){os.running(this)?this._resizeBeforeDraw={width:t,height:i}:this._resize(t,i)}_resize(t,i){let n=this.options,r=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,i,a),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Wx(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),Ht(n.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};Lt(i,(n,r)=>{n.id=r})}buildOrUpdateScales(){let t=this.options,i=t.scales,n=this.scales,r=Object.keys(n).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=pw(s,l),d=c==="r",f=c==="x";return{options:l,dposition:d?"chartArea":f?"bottom":"left",dtype:d?"radialLinear":f?"category":"linear"}}))),Lt(a,s=>{let l=s.options,c=l.id,d=pw(c,l),f=st(l.type,s.dtype);(l.position===void 0||m6(l.position,d)!==m6(s.dposition))&&(l.position=s.dposition),r[c]=!0;let h=null;if(c in n&&n[c].type===f)h=n[c];else{let p=da.getScale(f);h=new p({id:c,type:f,ctx:this.ctx,chart:this}),n[h.id]=h}h.init(l,t)}),Lt(r,(s,l)=>{s||delete n[l]}),Lt(n,s=>{zn.configure(this,s,s.options),zn.addBox(this,s)})}_updateMetasets(){let t=this._metasets,i=this.data.datasets.length,n=t.length;if(t.sort((r,a)=>r.index-a.index),n>i){for(let r=i;r<n;++r)this._destroyDatasetMeta(r);t.splice(i,n-i)}this._sortedMetasets=t.slice(0).sort(g6("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:i}}=this;t.length>i.length&&delete this._stacks,t.forEach((n,r)=>{i.filter(a=>a===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){let t=[],i=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=i.length;n<r;n++){let a=i[n],s=this.getDatasetMeta(n),l=a.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=l,s.indexAxis=a.indexAxis||uw(l,this.options),s.order=a.order||0,s.index=n,s.label=""+a.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{let c=da.getController(l),{datasetElementType:d,dataElementType:f}=ti.datasets[l];Object.assign(c,{dataElementType:da.getElement(f),datasetElementType:d&&da.getElement(d)}),s.controller=new c(this,n),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Lt(this.data.datasets,(t,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let i=this.config;i.update();let n=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,f=this.data.datasets.length;d<f;d++){let{controller:h}=this.getDatasetMeta(d),p=!r&&a.indexOf(h)===-1;h.buildOrUpdateElements(p),s=Math.max(+h.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),r||Lt(a,d=>{d.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(g6("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Lt(this.scales,t=>{zn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,i=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!_x(i,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,i=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:a}of i){let s=n==="_removeElements"?-a:a;Yj(t,r,s)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let i=this.data.datasets.length,n=a=>new Set(t.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),r=n(0);for(let a=1;a<i;a++)if(!_x(r,n(a)))return;return Array.from(r).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;zn.update(this,this.width,this.height,t);let i=this.chartArea,n=i.width<=0||i.height<=0;this._layers=[],Lt(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,a)=>{r._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let i=0,n=this.data.datasets.length;i<n;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,n=this.data.datasets.length;i<n;++i)this._updateDataset(i,ts(t)?t({datasetIndex:i}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,i){let n=this.getDatasetMeta(t),r={meta:n,index:t,mode:i,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(n.controller._update(i),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(os.has(this)?this.attached&&!os.running(this)&&os.start(this):(this.draw(),b6({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:n,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let i=this._layers;for(t=0;t<i.length&&i[t].z<=0;++t)i[t].draw(this.chartArea);for(this._drawDatasets();t<i.length;++t)i[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let i=this._sortedMetasets,n=[],r,a;for(r=0,a=i.length;r<a;++r){let s=i[r];(!t||s.visible)&&n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let i=t.length-1;i>=0;--i)this._drawDataset(t[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let i=this.ctx,n={meta:t,index:t.index,cancelable:!0},r=Xx(this,t);this.notifyPlugins("beforeDatasetDraw",n)!==!1&&(r&&Tu(i,r),t.controller.draw(),r&&Mu(i),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return aa(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,i,n,r){let a=JW.modes[i];return typeof a=="function"?a(this,t,n,r):[]}getDatasetMeta(t){let i=this.data.datasets[t],n=this._metasets,r=n.filter(a=>a&&a._dataset===i).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:t,_dataset:i,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=rs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let i=this.data.datasets[t];if(!i)return!1;let n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!i.hidden}setDatasetVisibility(t,i){let n=this.getDatasetMeta(t);n.hidden=!i}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,i,n){let r=n?"show":"hide",a=this.getDatasetMeta(t),s=a.controller._resolveAnimations(void 0,r);tf(i)?(a.data[i].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(a,{visible:n}),this.update(l=>l.datasetIndex===t?r:void 0))}hide(t,i){this._updateVisibility(t,i,!1)}show(t,i){this._updateVisibility(t,i,!0)}_destroyDatasetMeta(t){let i=this._metasets[t];i&&i.controller&&i.controller._destroy(),delete this._metasets[t]}_stop(){let t,i;for(this.stop(),os.remove(this),t=0,i=this.data.datasets.length;t<i;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:i}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Dx(t,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete wb[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,i=this.platform,n=(a,s)=>{i.addEventListener(this,a,s),t[a]=s},r=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};Lt(this.options.events,a=>n(a,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,i=this.platform,n=(c,d)=>{i.addEventListener(this,c,d),t[c]=d},r=(c,d)=>{t[c]&&(i.removeEventListener(this,c,d),delete t[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{r("attach",l),this.attached=!0,this.resize(),n("resize",a),n("detach",s)};s=()=>{this.attached=!1,r("resize",a),this._stop(),this._resize(0,0),n("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){Lt(this._listeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._listeners={},Lt(this._responsiveListeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,i,n){let r=n?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+r+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){s=t[l];let d=s&&this.getDatasetMeta(s.datasetIndex).controller;d&&d[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let i=this._active||[],n=t.map(({datasetIndex:a,index:s})=>{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Au(n,i)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,i))}notifyPlugins(t,i,n){return this._plugins.notify(this,t,i,n)}isPluginEnabled(t){return this._plugins._cache.filter(i=>i.plugin.id===t).length===1}_updateHoverStyles(t,i,n){let r=this.options.hover,a=(c,d)=>c.filter(f=>!d.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),s=a(i,t),l=n?t:a(t,i);s.length&&this.updateHoverStyle(s,r.mode,!1),l.length&&r.mode&&this.updateHoverStyle(l,r.mode,!0)}_eventHandler(t,i){let n={event:t,replay:i,cancelable:!0,inChartArea:this.isPointInArea(t)},r=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;let a=this._handleEvent(t,i,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(a||n.changed)&&this.render(),this}_handleEvent(t,i,n){let{_active:r=[],options:a}=this,s=i,l=this._getActiveElements(t,r,n,s),c=xS(t),d=Xj(t,this._lastEvent,n,c);n&&(this._lastEvent=null,Ht(a.onHover,[t,l,this],this),c&&Ht(a.onClick,[t,l,this],this));let f=!Au(l,r);return(f||i)&&(this._active=l,this._updateHoverStyles(l,r,i)),this._lastEvent=d,f}_getActiveElements(t,i,n,r){if(t.type==="mouseout")return[];if(!n)return i;let a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,r)}};ie(Lr,"defaults",ti),ie(Lr,"instances",wb),ie(Lr,"overrides",el),ie(Lr,"registry",da),ie(Lr,"version",Vj),ie(Lr,"getChart",v6);function y6(){return Lt(Lr.instances,o=>o._plugins.invalidate())}function Kj(o,t,i){let{startAngle:n,pixelMargin:r,x:a,y:s,outerRadius:l,innerRadius:c}=t,d=r/l;o.beginPath(),o.arc(a,s,l,n-d,i+d),c>r?(d=r/c,o.arc(a,s,c,i+d,n-d,!0)):o.arc(a,s,r,i+wi,n-wi),o.closePath(),o.clip()}function Jj(o){return cb(o,["outerStart","outerEnd","innerStart","innerEnd"])}function Qj(o,t,i,n){let r=Jj(o.options.borderRadius),a=(i-t)/2,s=Math.min(a,n*t/2),l=c=>{let d=(i-Math.min(a,c))*n/2;return Vi(c,0,Math.min(a,d))};return{outerStart:l(r.outerStart),outerEnd:l(r.outerEnd),innerStart:Vi(r.innerStart,0,s),innerEnd:Vi(r.innerEnd,0,s)}}function lf(o,t,i,n){return{x:i+o*Math.cos(t),y:n+o*Math.sin(t)}}function Cb(o,t,i,n,r,a){let{x:s,y:l,startAngle:c,pixelMargin:d,innerRadius:f}=t,h=Math.max(t.outerRadius+n+i-d,0),p=f>0?f+n+i+d:0,m=0,v=r-c;if(n){let oe=f>0?f-n:0,se=h>0?h-n:0,de=(oe+se)/2,_e=de!==0?v*de/(de+n):v;m=(v-_e)/2}let b=Math.max(.001,v*h-i/Ut)/h,x=(v-b)/2,k=c+x+m,z=r-x-m,{outerStart:E,outerEnd:A,innerStart:C,innerEnd:L}=Qj(t,p,h,z-k),M=h-E,P=h-A,I=k+E/M,N=z-A/P,B=p+C,U=p+L,ee=k+C/B,ae=z-L/U;if(o.beginPath(),a){let oe=(I+N)/2;if(o.arc(s,l,h,I,oe),o.arc(s,l,h,oe,N),A>0){let ve=lf(P,N,s,l);o.arc(ve.x,ve.y,A,N,z+wi)}let se=lf(U,z,s,l);if(o.lineTo(se.x,se.y),L>0){let ve=lf(U,ae,s,l);o.arc(ve.x,ve.y,L,z+wi,ae+Math.PI)}let de=(z-L/p+(k+C/p))/2;if(o.arc(s,l,p,z-L/p,de,!0),o.arc(s,l,p,de,k+C/p,!0),C>0){let ve=lf(B,ee,s,l);o.arc(ve.x,ve.y,C,ee+Math.PI,k-wi)}let _e=lf(M,k,s,l);if(o.lineTo(_e.x,_e.y),E>0){let ve=lf(M,I,s,l);o.arc(ve.x,ve.y,E,k-wi,I)}}else{o.moveTo(s,l);let oe=Math.cos(I)*h+s,se=Math.sin(I)*h+l;o.lineTo(oe,se);let de=Math.cos(N)*h+s,_e=Math.sin(N)*h+l;o.lineTo(de,_e)}o.closePath()}function Zj(o,t,i,n,r){let{fullCircles:a,startAngle:s,circumference:l}=t,c=t.endAngle;if(a){Cb(o,t,i,n,c,r);for(let d=0;d<a;++d)o.fill();isNaN(l)||(c=s+(l%Gt||Gt))}return Cb(o,t,i,n,c,r),o.fill(),c}function eV(o,t,i,n,r){let{fullCircles:a,startAngle:s,circumference:l,options:c}=t,{borderWidth:d,borderJoinStyle:f,borderDash:h,borderDashOffset:p}=c,m=c.borderAlign==="inner";if(!d)return;o.setLineDash(h||[]),o.lineDashOffset=p,m?(o.lineWidth=d*2,o.lineJoin=f||"round"):(o.lineWidth=d,o.lineJoin=f||"bevel");let v=t.endAngle;if(a){Cb(o,t,i,n,v,r);for(let b=0;b<a;++b)o.stroke();isNaN(l)||(v=s+(l%Gt||Gt))}m&&Kj(o,t,v),a||(Cb(o,t,i,n,v,r),o.stroke())}var Mc=class extends Pr{constructor(i){super();ie(this,"circumference");ie(this,"endAngle");ie(this,"fullCircles");ie(this,"innerRadius");ie(this,"outerRadius");ie(this,"pixelMargin");ie(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,n,r){let a=this.getProps(["x","y"],r),{angle:s,distance:l}=Ax(a,{x:i,y:n}),{startAngle:c,endAngle:d,innerRadius:f,outerRadius:h,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),m=(this.options.spacing+this.options.borderWidth)/2,v=st(p,d-c),b=rf(s,c,d)&&c!==d,x=v>=Gt||b,k=la(l,f+m,h+m);return x&&k}getCenterPoint(i){let{x:n,y:r,startAngle:a,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:d,spacing:f}=this.options,h=(a+s)/2,p=(l+c+f+d)/2;return{x:n+Math.cos(h)*p,y:r+Math.sin(h)*p}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){let{options:n,circumference:r}=this,a=(n.offset||0)/4,s=(n.spacing||0)/2,l=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Gt?Math.floor(r/Gt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;i.save();let c=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(c)*a,Math.sin(c)*a);let d=1-Math.sin(Math.min(Ut,r||0)),f=a*d;i.fillStyle=n.backgroundColor,i.strokeStyle=n.borderColor,Zj(i,this,f,s,l),eV(i,this,f,s,l),i.restore()}};ie(Mc,"id","arc"),ie(Mc,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ie(Mc,"defaultRoutes",{backgroundColor:"backgroundColor"}),ie(Mc,"descriptors",{_scriptable:!0,_indexable:i=>i!=="borderDash"});function tA(o,t,i=t){o.lineCap=st(i.borderCapStyle,t.borderCapStyle),o.setLineDash(st(i.borderDash,t.borderDash)),o.lineDashOffset=st(i.borderDashOffset,t.borderDashOffset),o.lineJoin=st(i.borderJoinStyle,t.borderJoinStyle),o.lineWidth=st(i.borderWidth,t.borderWidth),o.strokeStyle=st(i.borderColor,t.borderColor)}function tV(o,t,i){o.lineTo(i.x,i.y)}function iV(o){return o.stepped?qS:o.tension||o.cubicInterpolationMode==="monotone"?PS:tV}function iA(o,t,i={}){let n=o.length,{start:r=0,end:a=n-1}=i,{start:s,end:l}=t,c=Math.max(r,s),d=Math.min(a,l),f=r<s&&a<s||r>l&&a>l;return{count:n,start:c,loop:t.loop,ilen:d<c&&!f?n+d-c:d-c}}function nV(o,t,i,n){let{points:r,options:a}=t,{count:s,start:l,loop:c,ilen:d}=iA(r,i,n),f=iV(a),{move:h=!0,reverse:p}=n||{},m,v,b;for(m=0;m<=d;++m)v=r[(l+(p?d-m:m))%s],!v.skip&&(h?(o.moveTo(v.x,v.y),h=!1):f(o,b,v,p,a.stepped),b=v);return c&&(v=r[(l+(p?d:0))%s],f(o,b,v,p,a.stepped)),!!c}function rV(o,t,i,n){let r=t.points,{count:a,start:s,ilen:l}=iA(r,i,n),{move:c=!0,reverse:d}=n||{},f=0,h=0,p,m,v,b,x,k,z=A=>(s+(d?l-A:A))%a,E=()=>{b!==x&&(o.lineTo(f,x),o.lineTo(f,b),o.lineTo(f,k))};for(c&&(m=r[z(0)],o.moveTo(m.x,m.y)),p=0;p<=l;++p){if(m=r[z(p)],m.skip)continue;let A=m.x,C=m.y,L=A|0;L===v?(C<b?b=C:C>x&&(x=C),f=(h*f+A)/++h):(E(),o.lineTo(A,C),v=L,h=0,b=x=C),k=C}E()}function gw(o){let t=o.options,i=t.borderDash&&t.borderDash.length;return!o._decimated&&!o._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!i?rV:nV}function oV(o){return o.stepped?BS:o.tension||o.cubicInterpolationMode==="monotone"?WS:Zs}function aV(o,t,i,n){let r=t._path;r||(r=t._path=new Path2D,t.path(r,i,n)&&r.closePath()),tA(o,t.options),o.stroke(r)}function sV(o,t,i,n){let{segments:r,options:a}=t,s=gw(t);for(let l of r)tA(o,a,l.style),o.beginPath(),s(o,t,l,{start:i,end:i+n-1})&&o.closePath(),o.stroke()}var lV=typeof Path2D=="function";function cV(o,t,i,n){lV&&!t.options.segment?aV(o,t,i,n):sV(o,t,i,n)}var fa=class extends Pr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,i){let n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;FS(this._points,n,t,r,i),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=VS(this,this.options.segment))}first(){let t=this.segments,i=this.points;return t.length&&i[t[0].start]}last(){let t=this.segments,i=this.points,n=t.length;return n&&i[t[n-1].end]}interpolate(t,i){let n=this.options,r=t[i],a=this.points,s=Yx(this,{property:i,start:r,end:r});if(!s.length)return;let l=[],c=oV(n),d,f;for(d=0,f=s.length;d<f;++d){let{start:h,end:p}=s[d],m=a[h],v=a[p];if(m===v){l.push(m);continue}let b=Math.abs((r-m[i])/(v[i]-m[i])),x=c(m,v,b,n.stepped);x[i]=t[i],l.push(x)}return l.length===1?l[0]:l}pathSegment(t,i,n){return gw(this)(t,this,i,n)}path(t,i,n){let r=this.segments,a=gw(this),s=this._loop;i=i||0,n=n||this.points.length-i;for(let l of r)s&=a(t,this,l,{start:i,end:i+n-1});return!!s}draw(t,i,n,r){let a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),cV(t,this,n,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};ie(fa,"id","line"),ie(fa,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ie(fa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ie(fa,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function x6(o,t,i,n){let r=o.options,{[i]:a}=o.getProps([i],n);return Math.abs(t-a)<r.radius+r.hitRadius}var pf=class extends Pr{constructor(i){super();ie(this,"parsed");ie(this,"skip");ie(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,i&&Object.assign(this,i)}inRange(i,n,r){let a=this.options,{x:s,y:l}=this.getProps(["x","y"],r);return Math.pow(i-s,2)+Math.pow(n-l,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(i,n){return x6(this,i,"x",n)}inYRange(i,n){return x6(this,i,"y",n)}getCenterPoint(i){let{x:n,y:r}=this.getProps(["x","y"],i);return{x:n,y:r}}size(i){i=i||this.options||{};let n=i.radius||0;n=Math.max(n,n&&i.hoverRadius||0);let r=n&&i.borderWidth||0;return(n+r)*2}draw(i,n){let r=this.options;this.skip||r.radius<.1||!aa(this,n,this.size(r)/2)||(i.strokeStyle=r.borderColor,i.lineWidth=r.borderWidth,i.fillStyle=r.backgroundColor,lb(i,r,this.x,this.y))}getRange(){let i=this.options||{};return i.radius+i.hitRadius}};ie(pf,"id","point"),ie(pf,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ie(pf,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function nA(o,t){let{x:i,y:n,base:r,width:a,height:s}=o.getProps(["x","y","base","width","height"],t),l,c,d,f,h;return o.horizontal?(h=s/2,l=Math.min(i,r),c=Math.max(i,r),d=n-h,f=n+h):(h=a/2,l=i-h,c=i+h,d=Math.min(n,r),f=Math.max(n,r)),{left:l,top:d,right:c,bottom:f}}function ol(o,t,i,n){return o?0:Vi(t,i,n)}function dV(o,t,i){let n=o.options.borderWidth,r=o.borderSkipped,a=Ix(n);return{t:ol(r.top,a.top,0,i),r:ol(r.right,a.right,0,t),b:ol(r.bottom,a.bottom,0,i),l:ol(r.left,a.left,0,t)}}function fV(o,t,i){let{enableBorderRadius:n}=o.getProps(["enableBorderRadius"]),r=o.options.borderRadius,a=nl(r),s=Math.min(t,i),l=o.borderSkipped,c=n||gt(r);return{topLeft:ol(!c||l.top||l.left,a.topLeft,0,s),topRight:ol(!c||l.top||l.right,a.topRight,0,s),bottomLeft:ol(!c||l.bottom||l.left,a.bottomLeft,0,s),bottomRight:ol(!c||l.bottom||l.right,a.bottomRight,0,s)}}function hV(o){let t=nA(o),i=t.right-t.left,n=t.bottom-t.top,r=dV(o,i/2,n/2),a=fV(o,i/2,n/2);return{outer:{x:t.left,y:t.top,w:i,h:n,radius:a},inner:{x:t.left+r.l,y:t.top+r.t,w:i-r.l-r.r,h:n-r.t-r.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,a.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(r.b,r.r))}}}}function nw(o,t,i,n){let r=t===null,a=i===null,l=o&&!(r&&a)&&nA(o,n);return l&&(r||la(t,l.left,l.right))&&(a||la(i,l.top,l.bottom))}function uV(o){return o.topLeft||o.topRight||o.bottomLeft||o.bottomRight}function pV(o,t){o.rect(t.x,t.y,t.w,t.h)}function rw(o,t,i={}){let n=o.x!==i.x?-t:0,r=o.y!==i.y?-t:0,a=(o.x+o.w!==i.x+i.w?t:0)-n,s=(o.y+o.h!==i.y+i.h?t:0)-r;return{x:o.x+n,y:o.y+r,w:o.w+a,h:o.h+s,radius:o.radius}}var mf=class extends Pr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){let{inflateAmount:i,options:{borderColor:n,backgroundColor:r}}=this,{inner:a,outer:s}=hV(this),l=uV(s.radius)?af:pV;t.save(),(s.w!==a.w||s.h!==a.h)&&(t.beginPath(),l(t,rw(s,i,a)),t.clip(),l(t,rw(a,-i,s)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),l(t,rw(a,i)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,i,n){return nw(this,t,i,n)}inXRange(t,i){return nw(this,t,null,i)}inYRange(t,i){return nw(this,null,t,i)}getCenterPoint(t){let{x:i,y:n,base:r,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(i+r)/2:i,y:a?n:(n+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}};ie(mf,"id","bar"),ie(mf,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ie(mf,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var mV=Object.freeze({__proto__:null,ArcElement:Mc,BarElement:mf,LineElement:fa,PointElement:pf}),bw=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],w6=bw.map(o=>o.replace("rgb(","rgba(").replace(")",", 0.5)"));function rA(o){return bw[o%bw.length]}function oA(o){return w6[o%w6.length]}function gV(o,t){return o.borderColor=rA(t),o.backgroundColor=oA(t),++t}function bV(o,t){return o.backgroundColor=o.data.map(()=>rA(t++)),t}function vV(o,t){return o.backgroundColor=o.data.map(()=>oA(t++)),t}function yV(o){let t=0;return(i,n)=>{let r=o.getDatasetMeta(n).controller;r instanceof ss?t=bV(i,t):r instanceof qc?t=vV(i,t):r&&(t=gV(i,t))}}function k6(o){let t;for(t in o)if(o[t].borderColor||o[t].backgroundColor)return!0;return!1}function xV(o){return o&&(o.borderColor||o.backgroundColor)}function wV(){return ti.borderColor!=="rgba(0,0,0,0.1)"||ti.backgroundColor!=="rgba(0,0,0,0.1)"}var kV={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(o,t,i){if(!i.enabled)return;let{data:{datasets:n},options:r}=o.config,{elements:a}=r,s=k6(n)||xV(r)||a&&k6(a)||wV();if(!i.forceOverride&&s)return;let l=yV(o);n.forEach(l)}};function _V(o,t,i,n,r){let a=r.samples||n;if(a>=i)return o.slice(t,t+i);let s=[],l=(i-2)/(a-2),c=0,d=t+i-1,f=t,h,p,m,v,b;for(s[c++]=o[f],h=0;h<a-2;h++){let x=0,k=0,z,E=Math.floor((h+1)*l)+1+t,A=Math.min(Math.floor((h+2)*l)+1,i)+t,C=A-E;for(z=E;z<A;z++)x+=o[z].x,k+=o[z].y;x/=C,k/=C;let L=Math.floor(h*l)+1+t,M=Math.min(Math.floor((h+1)*l)+1,i)+t,{x:P,y:I}=o[f];for(m=v=-1,z=L;z<M;z++)v=.5*Math.abs((P-x)*(o[z].y-I)-(P-o[z].x)*(k-I)),v>m&&(m=v,p=o[z],b=z);s[c++]=p,f=b}return s[c++]=o[d],s}function zV(o,t,i,n){let r=0,a=0,s,l,c,d,f,h,p,m,v,b,x=[],k=t+i-1,z=o[t].x,A=o[k].x-z;for(s=t;s<t+i;++s){l=o[s],c=(l.x-z)/A*n,d=l.y;let C=c|0;if(C===f)d<v?(v=d,h=s):d>b&&(b=d,p=s),r=(a*r+l.x)/++a;else{let L=s-1;if(!pt(h)&&!pt(p)){let M=Math.min(h,p),P=Math.max(h,p);M!==m&&M!==L&&x.push(et(Ce({},o[M]),{x:r})),P!==m&&P!==L&&x.push(et(Ce({},o[P]),{x:r}))}s>0&&L!==m&&x.push(o[L]),x.push(l),f=C,a=0,v=b=d,h=p=m=s}}return x}function aA(o){if(o._decimated){let t=o._data;delete o._decimated,delete o._data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function _6(o){o.data.datasets.forEach(t=>{aA(t)})}function CV(o,t){let i=t.length,n=0,r,{iScale:a}=o,{min:s,max:l,minDefined:c,maxDefined:d}=a.getUserBounds();return c&&(n=Vi(oa(t,a.axis,s).lo,0,i-1)),d?r=Vi(oa(t,a.axis,l).hi+1,n,i)-n:r=i-n,{start:n,count:r}}var SV={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(o,t,i)=>{if(!i.enabled){_6(o);return}let n=o.width;o.data.datasets.forEach((r,a)=>{let{_data:s,indexAxis:l}=r,c=o.getDatasetMeta(a),d=s||r.data;if(sf([l,o.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;let f=o.scales[c.xAxisID];if(f.type!=="linear"&&f.type!=="time"||o.options.parsing)return;let{start:h,count:p}=CV(c,d),m=i.threshold||4*n;if(p<=m){aA(r);return}pt(s)&&(r._data=d,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let v;switch(i.algorithm){case"lttb":v=_V(d,h,p,n,i);break;case"min-max":v=zV(d,h,p,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}r._decimated=v})},destroy(o){_6(o)}};function AV(o,t,i){let n=o.segments,r=o.points,a=t.points,s=[];for(let l of n){let{start:c,end:d}=l;d=xw(c,d,r);let f=vw(i,r[c],r[d],l.loop);if(!t.segments){s.push({source:l,target:f,start:r[c],end:r[d]});continue}let h=Yx(t,f);for(let p of h){let m=vw(i,a[p.start],a[p.end],p.loop),v=Gx(l,r,m);for(let b of v)s.push({source:b,target:p,start:{[i]:z6(f,m,"start",Math.max)},end:{[i]:z6(f,m,"end",Math.min)}})}}return s}function vw(o,t,i,n){if(n)return;let r=t[o],a=i[o];return o==="angle"&&(r=or(r),a=or(a)),{property:o,start:r,end:a}}function EV(o,t){let{x:i=null,y:n=null}=o||{},r=t.points,a=[];return t.segments.forEach(({start:s,end:l})=>{l=xw(s,l,r);let c=r[s],d=r[l];n!==null?(a.push({x:c.x,y:n}),a.push({x:d.x,y:n})):i!==null&&(a.push({x:i,y:c.y}),a.push({x:i,y:d.y}))}),a}function xw(o,t,i){for(;t>o;t--){let n=i[t];if(!isNaN(n.x)&&!isNaN(n.y))break}return t}function z6(o,t,i,n){return o&&t?n(o[i],t[i]):o?o[i]:t?t[i]:0}function sA(o,t){let i=[],n=!1;return Vt(o)?(n=!0,i=o):i=EV(o,t),i.length?new fa({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function C6(o){return o&&o.fill!==!1}function TV(o,t,i){let r=o[t].fill,a=[t],s;if(!i)return r;for(;r!==!1&&a.indexOf(r)===-1;){if(!hi(r))return r;if(s=o[r],!s)return!1;if(s.visible)return r;a.push(r),r=s.fill}return!1}function MV(o,t,i){let n=RV(o);if(gt(n))return isNaN(n.value)?!1:n;let r=parseFloat(n);return hi(r)&&Math.floor(r)===r?LV(n[0],t,r,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function LV(o,t,i,n){return(o==="-"||o==="+")&&(i=t+i),i===t||i<0||i>=n?!1:i}function qV(o,t){let i=null;return o==="start"?i=t.bottom:o==="end"?i=t.top:gt(o)?i=t.getPixelForValue(o.value):t.getBasePixel&&(i=t.getBasePixel()),i}function PV(o,t,i){let n;return o==="start"?n=i:o==="end"?n=t.options.reverse?t.min:t.max:gt(o)?n=o.value:n=t.getBaseValue(),n}function RV(o){let t=o.options,i=t.fill,n=st(i&&i.target,i);return n===void 0&&(n=!!t.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function OV(o){let{scale:t,index:i,line:n}=o,r=[],a=n.segments,s=n.points,l=DV(t,i);l.push(sA({x:null,y:t.bottom},n));for(let c=0;c<a.length;c++){let d=a[c];for(let f=d.start;f<=d.end;f++)$V(r,s[f],l)}return new fa({points:r,options:{}})}function DV(o,t){let i=[],n=o.getMatchingVisibleMetas("line");for(let r=0;r<n.length;r++){let a=n[r];if(a.index===t)break;a.hidden||i.unshift(a.dataset)}return i}function $V(o,t,i){let n=[];for(let r=0;r<i.length;r++){let a=i[r],{first:s,last:l,point:c}=IV(a,t,"x");if(!(!c||s&&l)){if(s)n.unshift(c);else if(o.push(c),!l)break}}o.push(...n)}function IV(o,t,i){let n=o.interpolate(t,i);if(!n)return{};let r=n[i],a=o.segments,s=o.points,l=!1,c=!1;for(let d=0;d<a.length;d++){let f=a[d],h=s[f.start][i],p=s[f.end][i];if(la(r,h,p)){l=r===h,c=r===p;break}}return{first:l,last:c,point:n}}var Sb=class{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,i,n){let{x:r,y:a,radius:s}=this;return i=i||{start:0,end:Gt},t.arc(r,a,s,i.end,i.start,!0),!n.bounds}interpolate(t){let{x:i,y:n,radius:r}=this,a=t.angle;return{x:i+Math.cos(a)*r,y:n+Math.sin(a)*r,angle:a}}};function FV(o){let{chart:t,fill:i,line:n}=o;if(hi(i))return NV(t,i);if(i==="stack")return OV(o);if(i==="shape")return!0;let r=HV(o);return r instanceof Sb?r:sA(r,n)}function NV(o,t){let i=o.getDatasetMeta(t);return i&&o.isDatasetVisible(t)?i.dataset:null}function HV(o){return(o.scale||{}).getPointPositionForValue?WV(o):BV(o)}function BV(o){let{scale:t={},fill:i}=o,n=qV(i,t);if(hi(n)){let r=t.isHorizontal();return{x:r?n:null,y:r?null:n}}return null}function WV(o){let{scale:t,fill:i}=o,n=t.options,r=t.getLabels().length,a=n.reverse?t.max:t.min,s=PV(i,t,a),l=[];if(n.grid.circular){let c=t.getPointPositionForValue(0,a);return new Sb({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(s)})}for(let c=0;c<r;++c)l.push(t.getPointPositionForValue(c,s));return l}function ow(o,t,i){let n=FV(t),{chart:r,index:a,line:s,scale:l,axis:c}=t,d=s.options,f=d.fill,h=d.backgroundColor,{above:p=h,below:m=h}=f||{},v=r.getDatasetMeta(a),b=Xx(r,v);n&&s.points.length&&(Tu(o,i),jV(o,{line:s,target:n,above:p,below:m,area:i,scale:l,axis:c,clip:b}),Mu(o))}function jV(o,t){let{line:i,target:n,above:r,below:a,area:s,scale:l,clip:c}=t,d=i._loop?"angle":t.axis;o.save(),d==="x"&&a!==r&&(S6(o,n,s.top),A6(o,{line:i,target:n,color:r,scale:l,property:d,clip:c}),o.restore(),o.save(),S6(o,n,s.bottom)),A6(o,{line:i,target:n,color:a,scale:l,property:d,clip:c}),o.restore()}function S6(o,t,i){let{segments:n,points:r}=t,a=!0,s=!1;o.beginPath();for(let l of n){let{start:c,end:d}=l,f=r[c],h=r[xw(c,d,r)];a?(o.moveTo(f.x,f.y),a=!1):(o.lineTo(f.x,i),o.lineTo(f.x,f.y)),s=!!t.pathSegment(o,l,{move:s}),s?o.closePath():o.lineTo(h.x,i)}o.lineTo(t.first().x,i),o.closePath(),o.clip()}function A6(o,t){let{line:i,target:n,property:r,color:a,scale:s,clip:l}=t,c=AV(i,n,r);for(let{source:d,target:f,start:h,end:p}of c){let{style:{backgroundColor:m=a}={}}=d,v=n!==!0;o.save(),o.fillStyle=m,VV(o,s,l,v&&vw(r,h,p)),o.beginPath();let b=!!i.pathSegment(o,d),x;if(v){b?o.closePath():E6(o,n,p,r);let k=!!n.pathSegment(o,f,{move:b,reverse:!0});x=b&&k,x||E6(o,n,h,r)}o.closePath(),o.fill(x?"evenodd":"nonzero"),o.restore()}}function VV(o,t,i,n){let r=t.chart.chartArea,{property:a,start:s,end:l}=n||{};if(a==="x"||a==="y"){let c,d,f,h;a==="x"?(c=s,d=r.top,f=l,h=r.bottom):(c=r.left,d=s,f=r.right,h=l),o.beginPath(),i&&(c=Math.max(c,i.left),f=Math.min(f,i.right),d=Math.max(d,i.top),h=Math.min(h,i.bottom)),o.rect(c,d,f-c,h-d),o.clip()}}function E6(o,t,i,n){let r=t.interpolate(i,n);r&&o.lineTo(r.x,r.y)}var UV={id:"filler",afterDatasetsUpdate(o,t,i){let n=(o.data.datasets||[]).length,r=[],a,s,l,c;for(s=0;s<n;++s)a=o.getDatasetMeta(s),l=a.dataset,c=null,l&&l.options&&l instanceof fa&&(c={visible:o.isDatasetVisible(s),index:s,fill:MV(l,s,n),chart:o,axis:a.controller.options.indexAxis,scale:a.vScale,line:l}),a.$filler=c,r.push(c);for(s=0;s<n;++s)c=r[s],!(!c||c.fill===!1)&&(c.fill=TV(r,s,i.propagate))},beforeDraw(o,t,i){let n=i.drawTime==="beforeDraw",r=o.getSortedVisibleDatasetMetas(),a=o.chartArea;for(let s=r.length-1;s>=0;--s){let l=r[s].$filler;l&&(l.line.updateControlPoints(a,l.axis),n&&l.fill&&ow(o.ctx,l,a))}},beforeDatasetsDraw(o,t,i){if(i.drawTime!=="beforeDatasetsDraw")return;let n=o.getSortedVisibleDatasetMetas();for(let r=n.length-1;r>=0;--r){let a=n[r].$filler;C6(a)&&ow(o.ctx,a,o.chartArea)}},beforeDatasetDraw(o,t,i){let n=t.meta.$filler;!C6(n)||i.drawTime!=="beforeDatasetDraw"||ow(o.ctx,n,o.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},T6=(o,t)=>{let{boxHeight:i=t,boxWidth:n=t}=o;return o.usePointStyle&&(i=Math.min(i,t),n=o.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(t,i)}},GV=(o,t)=>o!==null&&t!==null&&o.datasetIndex===t.datasetIndex&&o.index===t.index,Ab=class extends Pr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,i,n){this.maxWidth=t,this.maxHeight=i,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},i=Ht(t.generateLabels,[this.chart],this)||[];t.filter&&(i=i.filter(n=>t.filter(n,this.chart.data))),t.sort&&(i=i.sort((n,r)=>t.sort(n,r,this.chart.data))),this.options.reverse&&i.reverse(),this.legendItems=i}fit(){let{options:t,ctx:i}=this;if(!t.display){this.width=this.height=0;return}let n=t.labels,r=Ri(n.font),a=r.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=T6(n,a),d,f;i.font=r.string,this.isHorizontal()?(d=this.maxWidth,f=this._fitRows(s,a,l,c)+10):(f=this.maxHeight,d=this._fitCols(s,r,l,c)+10),this.width=Math.min(d,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,i,n,r){let{ctx:a,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],f=r+l,h=t;a.textAlign="left",a.textBaseline="middle";let p=-1,m=-f;return this.legendItems.forEach((v,b)=>{let x=n+i/2+a.measureText(v.text).width;(b===0||d[d.length-1]+x+2*l>s)&&(h+=f,d[d.length-(b>0?0:1)]=0,m+=f,p++),c[b]={left:0,top:m,row:p,width:x,height:r},d[d.length-1]+=x+l}),h}_fitCols(t,i,n,r){let{ctx:a,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],f=s-t,h=l,p=0,m=0,v=0,b=0;return this.legendItems.forEach((x,k)=>{let{itemWidth:z,itemHeight:E}=YV(n,i,a,x,r);k>0&&m+E+2*l>f&&(h+=p+l,d.push({width:p,height:m}),v+=p+l,b++,p=m=0),c[k]={left:v,top:m,col:b,width:z,height:E},p=Math.max(p,z),m+=E+l}),h+=p,d.push({width:p,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:i,options:{align:n,labels:{padding:r},rtl:a}}=this,s=Ac(a,this.left,this.width);if(this.isHorizontal()){let l=0,c=mn(n,this.left+r,this.right-this.lineWidths[l]);for(let d of i)l!==d.row&&(l=d.row,c=mn(n,this.left+r,this.right-this.lineWidths[l])),d.top+=this.top+t+r,d.left=s.leftForLtr(s.x(c),d.width),c+=d.width+r}else{let l=0,c=mn(n,this.top+t+r,this.bottom-this.columnSizes[l].height);for(let d of i)d.col!==l&&(l=d.col,c=mn(n,this.top+t+r,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+r,d.left=s.leftForLtr(s.x(d.left),d.width),c+=d.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let t=this.ctx;Tu(t,this),this._draw(),Mu(t)}}_draw(){let{options:t,columnSizes:i,lineWidths:n,ctx:r}=this,{align:a,labels:s}=t,l=ti.color,c=Ac(t.rtl,this.left,this.width),d=Ri(s.font),{padding:f}=s,h=d.size,p=h/2,m;this.drawTitle(),r.textAlign=c.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=d.string;let{boxWidth:v,boxHeight:b,itemHeight:x}=T6(s,h),k=function(L,M,P){if(isNaN(v)||v<=0||isNaN(b)||b<0)return;r.save();let I=st(P.lineWidth,1);if(r.fillStyle=st(P.fillStyle,l),r.lineCap=st(P.lineCap,"butt"),r.lineDashOffset=st(P.lineDashOffset,0),r.lineJoin=st(P.lineJoin,"miter"),r.lineWidth=I,r.strokeStyle=st(P.strokeStyle,l),r.setLineDash(st(P.lineDash,[])),s.usePointStyle){let N={radius:b*Math.SQRT2/2,pointStyle:P.pointStyle,rotation:P.rotation,borderWidth:I},B=c.xPlus(L,v/2),U=M+p;$x(r,N,B,U,s.pointStyleWidth&&v)}else{let N=M+Math.max((h-b)/2,0),B=c.leftForLtr(L,v),U=nl(P.borderRadius);r.beginPath(),Object.values(U).some(ee=>ee!==0)?af(r,{x:B,y:N,w:v,h:b,radius:U}):r.rect(B,N,v,b),r.fill(),I!==0&&r.stroke()}r.restore()},z=function(L,M,P){il(r,P.text,L,M+x/2,d,{strikethrough:P.hidden,textAlign:c.textAlign(P.textAlign)})},E=this.isHorizontal(),A=this._computeTitleHeight();E?m={x:mn(a,this.left+f,this.right-n[0]),y:this.top+f+A,line:0}:m={x:this.left+f,y:mn(a,this.top+A+f,this.bottom-i[0].height),line:0},Vx(this.ctx,t.textDirection);let C=x+f;this.legendItems.forEach((L,M)=>{r.strokeStyle=L.fontColor,r.fillStyle=L.fontColor;let P=r.measureText(L.text).width,I=c.textAlign(L.textAlign||(L.textAlign=s.textAlign)),N=v+p+P,B=m.x,U=m.y;c.setWidth(this.width),E?M>0&&B+N+f>this.right&&(U=m.y+=C,m.line++,B=m.x=mn(a,this.left+f,this.right-n[m.line])):M>0&&U+C>this.bottom&&(B=m.x=B+i[m.line].width+f,m.line++,U=m.y=mn(a,this.top+A+f,this.bottom-i[m.line].height));let ee=c.x(B);if(k(ee,U,L),B=TS(I,B+v+p,E?B+N:this.right,t.rtl),z(c.x(B),U,L),E)m.x+=N+f;else if(typeof L.text!="string"){let ae=d.lineHeight;m.y+=lA(L,ae)+f}else m.y+=C}),Ux(this.ctx,t.textDirection)}drawTitle(){let t=this.options,i=t.title,n=Ri(i.font),r=gn(i.padding);if(!i.display)return;let a=Ac(t.rtl,this.left,this.width),s=this.ctx,l=i.position,c=n.size/2,d=r.top+c,f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+d,h=mn(t.align,h,this.right-p);else{let v=this.columnSizes.reduce((b,x)=>Math.max(b,x.height),0);f=d+mn(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}let m=mn(l,h,h+p);s.textAlign=a.textAlign(ab(l)),s.textBaseline="middle",s.strokeStyle=i.color,s.fillStyle=i.color,s.font=n.string,il(s,i.text,m,f,n)}_computeTitleHeight(){let t=this.options.title,i=Ri(t.font),n=gn(t.padding);return t.display?i.lineHeight+n.height:0}_getLegendItemAt(t,i){let n,r,a;if(la(t,this.left,this.right)&&la(i,this.top,this.bottom)){for(a=this.legendHitBoxes,n=0;n<a.length;++n)if(r=a[n],la(t,r.left,r.left+r.width)&&la(i,r.top,r.top+r.height))return this.legendItems[n]}return null}handleEvent(t){let i=this.options;if(!JV(t.type,i))return;let n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){let r=this._hoveredItem,a=GV(r,n);r&&!a&&Ht(i.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&Ht(i.onHover,[t,n,this],this)}else n&&Ht(i.onClick,[t,n,this],this)}};function YV(o,t,i,n,r){let a=XV(n,o,t,i),s=KV(r,n,t.lineHeight);return{itemWidth:a,itemHeight:s}}function XV(o,t,i,n){let r=o.text;return r&&typeof r!="string"&&(r=r.reduce((a,s)=>a.length>s.length?a:s)),t+i.size/2+n.measureText(r).width}function KV(o,t,i){let n=o;return typeof t.text!="string"&&(n=lA(t,i)),n}function lA(o,t){let i=o.text?o.text.length:0;return t*i}function JV(o,t){return!!((o==="mousemove"||o==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(o==="click"||o==="mouseup"))}var QV={id:"legend",_element:Ab,start(o,t,i){let n=o.legend=new Ab({ctx:o.ctx,options:i,chart:o});zn.configure(o,n,i),zn.addBox(o,n)},stop(o){zn.removeBox(o,o.legend),delete o.legend},beforeUpdate(o,t,i){let n=o.legend;zn.configure(o,n,i),n.options=i},afterUpdate(o){let t=o.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(o,t){t.replay||o.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(o,t,i){let n=t.datasetIndex,r=i.chart;r.isDatasetVisible(n)?(r.hide(n),t.hidden=!0):(r.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:o=>o.chart.options.color,boxWidth:40,padding:10,generateLabels(o){let t=o.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:r,color:a,useBorderRadius:s,borderRadius:l}}=o.legend.options;return o._getSortedDatasetMetas().map(c=>{let d=c.controller.getStyle(i?0:void 0),f=gn(d.borderWidth);return{text:t[c.index].label,fillStyle:d.backgroundColor,fontColor:a,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:d.borderColor,pointStyle:n||d.pointStyle,rotation:d.rotation,textAlign:r||d.textAlign,borderRadius:s&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:o=>o.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:o=>!o.startsWith("on"),labels:{_scriptable:o=>!["generateLabels","filter","sort"].includes(o)}}},Vu=class extends Pr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,i){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=i;let r=Vt(n.text)?n.text.length:1;this._padding=gn(n.padding);let a=r*Ri(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){let t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){let{top:i,left:n,bottom:r,right:a,options:s}=this,l=s.align,c=0,d,f,h;return this.isHorizontal()?(f=mn(l,n,a),h=i+t,d=a-n):(s.position==="left"?(f=n+t,h=mn(l,r,i),c=Ut*-.5):(f=a-t,h=mn(l,i,r),c=Ut*.5),d=r-i),{titleX:f,titleY:h,maxWidth:d,rotation:c}}draw(){let t=this.ctx,i=this.options;if(!i.display)return;let n=Ri(i.font),a=n.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(a);il(t,i.text,0,0,n,{color:i.color,maxWidth:c,rotation:d,textAlign:ab(i.align),textBaseline:"middle",translation:[s,l]})}};function ZV(o,t){let i=new Vu({ctx:o.ctx,options:t,chart:o});zn.configure(o,i,t),zn.addBox(o,i),o.titleBlock=i}var eU={id:"title",_element:Vu,start(o,t,i){ZV(o,i)},stop(o){let t=o.titleBlock;zn.removeBox(o,t),delete o.titleBlock},beforeUpdate(o,t,i){let n=o.titleBlock;zn.configure(o,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},bb=new WeakMap,tU={id:"subtitle",start(o,t,i){let n=new Vu({ctx:o.ctx,options:i,chart:o});zn.configure(o,n,i),zn.addBox(o,n),bb.set(o,n)},stop(o){zn.removeBox(o,bb.get(o)),bb.delete(o)},beforeUpdate(o,t,i){let n=bb.get(o);zn.configure(o,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Iu={average(o){if(!o.length)return!1;let t,i,n=new Set,r=0,a=0;for(t=0,i=o.length;t<i;++t){let l=o[t].element;if(l&&l.hasValue()){let c=l.tooltipPosition();n.add(c.x),r+=c.y,++a}}return a===0||n.size===0?!1:{x:[...n].reduce((l,c)=>l+c)/n.size,y:r/a}},nearest(o,t){if(!o.length)return!1;let i=t.x,n=t.y,r=Number.POSITIVE_INFINITY,a,s,l;for(a=0,s=o.length;a<s;++a){let c=o[a].element;if(c&&c.hasValue()){let d=c.getCenterPoint(),f=tb(t,d);f<r&&(r=f,l=c)}}if(l){let c=l.tooltipPosition();i=c.x,n=c.y}return{x:i,y:n}}};function ca(o,t){return t&&(Vt(t)?Array.prototype.push.apply(o,t):o.push(t)),o}function as(o){return(typeof o=="string"||o instanceof String)&&o.indexOf(`
1821
+ `}};ji.styles=Z(ZC),y([_()],ji.prototype,"type",2),y([_({type:Array})],ji.prototype,"data",2),y([_({type:Array})],ji.prototype,"categories",2),y([_()],ji.prototype,"xAxis",2),y([_({type:Number,attribute:"d-size"})],ji.prototype,"datapointSize",2),y([_({type:Boolean})],ji.prototype,"stacked",2),y([_({type:Boolean})],ji.prototype,"live",2),y([_({attribute:"data-url"})],ji.prototype,"dataUrl",2),y([_({attribute:"live-interval",type:Number})],ji.prototype,"liveInterval",2),y([_({type:Number,reflect:!0})],ji.prototype,"height",2),y([_({attribute:"enable-animations",type:Boolean})],ji.prototype,"enableAnimations",2),y([_({attribute:"y-axis-append"})],ji.prototype,"yAxisAppend",2);var iB=ji;ji.define("zn-chart");function zu(o){return o+.5|0}var Js=(o,t,i)=>Math.max(Math.min(o,i),t);function ku(o){return Js(zu(o*2.55),0,255)}function Qs(o){return Js(zu(o*255),0,255)}function es(o){return Js(zu(o/2.55)/100,0,1)}function eS(o){return Js(zu(o*100),0,100)}var co={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},mx=[..."0123456789ABCDEF"],nB=o=>mx[o&15],rB=o=>mx[(o&240)>>4]+mx[o&15],Ug=o=>(o&240)>>4===(o&15),oB=o=>Ug(o.r)&&Ug(o.g)&&Ug(o.b)&&Ug(o.a);function aB(o){var t=o.length,i;return o[0]==="#"&&(t===4||t===5?i={r:255&co[o[1]]*17,g:255&co[o[2]]*17,b:255&co[o[3]]*17,a:t===5?co[o[4]]*17:255}:(t===7||t===9)&&(i={r:co[o[1]]<<4|co[o[2]],g:co[o[3]]<<4|co[o[4]],b:co[o[5]]<<4|co[o[6]],a:t===9?co[o[7]]<<4|co[o[8]]:255})),i}var sB=(o,t)=>o<255?t(o):"";function lB(o){var t=oB(o)?nB:rB;return o?"#"+t(o.r)+t(o.g)+t(o.b)+sB(o.a,t):void 0}var cB=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function rS(o,t,i){let n=t*Math.min(i,1-i),r=(a,s=(a+o/30)%12)=>i-n*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function dB(o,t,i){let n=(r,a=(r+o/60)%6)=>i-i*t*Math.max(Math.min(a,4-a,1),0);return[n(5),n(3),n(1)]}function fB(o,t,i){let n=rS(o,1,.5),r;for(t+i>1&&(r=1/(t+i),t*=r,i*=r),r=0;r<3;r++)n[r]*=1-t-i,n[r]+=t;return n}function hB(o,t,i,n,r){return o===r?(t-i)/n+(t<i?6:0):t===r?(i-o)/n+2:(o-t)/n+4}function gx(o){let i=o.r/255,n=o.g/255,r=o.b/255,a=Math.max(i,n,r),s=Math.min(i,n,r),l=(a+s)/2,c,d,f;return a!==s&&(f=a-s,d=l>.5?f/(2-a-s):f/(a+s),c=hB(i,n,r,f,a),c=c*60+.5),[c|0,d||0,l]}function bx(o,t,i,n){return(Array.isArray(t)?o(t[0],t[1],t[2]):o(t,i,n)).map(Qs)}function vx(o,t,i){return bx(rS,o,t,i)}function uB(o,t,i){return bx(fB,o,t,i)}function pB(o,t,i){return bx(dB,o,t,i)}function oS(o){return(o%360+360)%360}function mB(o){let t=cB.exec(o),i=255,n;if(!t)return;t[5]!==n&&(i=t[6]?ku(+t[5]):Qs(+t[5]));let r=oS(+t[2]),a=+t[3]/100,s=+t[4]/100;return t[1]==="hwb"?n=uB(r,a,s):t[1]==="hsv"?n=pB(r,a,s):n=vx(r,a,s),{r:n[0],g:n[1],b:n[2],a:i}}function gB(o,t){var i=gx(o);i[0]=oS(i[0]+t),i=vx(i),o.r=i[0],o.g=i[1],o.b=i[2]}function bB(o){if(!o)return;let t=gx(o),i=t[0],n=eS(t[1]),r=eS(t[2]);return o.a<255?`hsla(${i}, ${n}%, ${r}%, ${es(o.a)})`:`hsl(${i}, ${n}%, ${r}%)`}var tS={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},iS={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function vB(){let o={},t=Object.keys(iS),i=Object.keys(tS),n,r,a,s,l;for(n=0;n<t.length;n++){for(s=l=t[n],r=0;r<i.length;r++)a=i[r],l=l.replace(a,tS[a]);a=parseInt(iS[s],16),o[l]=[a>>16&255,a>>8&255,a&255]}return o}var Gg;function yB(o){Gg||(Gg=vB(),Gg.transparent=[0,0,0,0]);let t=Gg[o.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var xB=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function wB(o){let t=xB.exec(o),i=255,n,r,a;if(t){if(t[7]!==n){let s=+t[7];i=t[8]?ku(s):Js(s*255,0,255)}return n=+t[1],r=+t[3],a=+t[5],n=255&(t[2]?ku(n):Js(n,0,255)),r=255&(t[4]?ku(r):Js(r,0,255)),a=255&(t[6]?ku(a):Js(a,0,255)),{r:n,g:r,b:a,a:i}}}function kB(o){return o&&(o.a<255?`rgba(${o.r}, ${o.g}, ${o.b}, ${es(o.a)})`:`rgb(${o.r}, ${o.g}, ${o.b})`)}var px=o=>o<=.0031308?o*12.92:Math.pow(o,1/2.4)*1.055-.055,Kd=o=>o<=.04045?o/12.92:Math.pow((o+.055)/1.055,2.4);function _B(o,t,i){let n=Kd(es(o.r)),r=Kd(es(o.g)),a=Kd(es(o.b));return{r:Qs(px(n+i*(Kd(es(t.r))-n))),g:Qs(px(r+i*(Kd(es(t.g))-r))),b:Qs(px(a+i*(Kd(es(t.b))-a))),a:o.a+i*(t.a-o.a)}}function Yg(o,t,i){if(o){let n=gx(o);n[t]=Math.max(0,Math.min(n[t]+n[t]*i,t===0?360:1)),n=vx(n),o.r=n[0],o.g=n[1],o.b=n[2]}}function aS(o,t){return o&&Object.assign(t||{},o)}function nS(o){var t={r:0,g:0,b:0,a:255};return Array.isArray(o)?o.length>=3&&(t={r:o[0],g:o[1],b:o[2],a:255},o.length>3&&(t.a=Qs(o[3]))):(t=aS(o,{r:0,g:0,b:0,a:1}),t.a=Qs(t.a)),t}function zB(o){return o.charAt(0)==="r"?wB(o):mB(o)}var _u=class o{constructor(t){if(t instanceof o)return t;let i=typeof t,n;i==="object"?n=nS(t):i==="string"&&(n=aB(t)||yB(t)||zB(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=aS(this._rgb);return t&&(t.a=es(t.a)),t}set rgb(t){this._rgb=nS(t)}rgbString(){return this._valid?kB(this._rgb):void 0}hexString(){return this._valid?lB(this._rgb):void 0}hslString(){return this._valid?bB(this._rgb):void 0}mix(t,i){if(t){let n=this.rgb,r=t.rgb,a,s=i===a?.5:i,l=2*s-1,c=n.a-r.a,d=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;a=1-d,n.r=255&d*n.r+a*r.r+.5,n.g=255&d*n.g+a*r.g+.5,n.b=255&d*n.b+a*r.b+.5,n.a=s*n.a+(1-s)*r.a,this.rgb=n}return this}interpolate(t,i){return t&&(this._rgb=_B(this._rgb,t._rgb,i)),this}clone(){return new o(this.rgb)}alpha(t){return this._rgb.a=Qs(t),this}clearer(t){let i=this._rgb;return i.a*=1-t,this}greyscale(){let t=this._rgb,i=zu(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=i,this}opaquer(t){let i=this._rgb;return i.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Yg(this._rgb,2,t),this}darken(t){return Yg(this._rgb,2,-t),this}saturate(t){return Yg(this._rgb,1,t),this}desaturate(t){return Yg(this._rgb,1,-t),this}rotate(t){return gB(this._rgb,t),this}};function sa(){}var bS=(()=>{let o=0;return()=>o++})();function pt(o){return o==null}function Vt(o){if(Array.isArray&&Array.isArray(o))return!0;let t=Object.prototype.toString.call(o);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function gt(o){return o!==null&&Object.prototype.toString.call(o)==="[object Object]"}function hi(o){return(typeof o=="number"||o instanceof Number)&&isFinite(+o)}function ar(o,t){return hi(o)?o:t}function st(o,t){return typeof o=="undefined"?t:o}var vS=(o,t)=>typeof o=="string"&&o.endsWith("%")?parseFloat(o)/100:+o/t,kx=(o,t)=>typeof o=="string"&&o.endsWith("%")?parseFloat(o)/100*t:+o;function Ht(o,t,i){if(o&&typeof o.call=="function")return o.apply(i,t)}function Lt(o,t,i,n){let r,a,s;if(Vt(o))if(a=o.length,n)for(r=a-1;r>=0;r--)t.call(i,o[r],r);else for(r=0;r<a;r++)t.call(i,o[r],r);else if(gt(o))for(s=Object.keys(o),a=s.length,r=0;r<a;r++)t.call(i,o[s[r]],s[r])}function Au(o,t){let i,n,r,a;if(!o||!t||o.length!==t.length)return!1;for(i=0,n=o.length;i<n;++i)if(r=o[i],a=t[i],r.datasetIndex!==a.datasetIndex||r.index!==a.index)return!1;return!0}function Zg(o){if(Vt(o))return o.map(Zg);if(gt(o)){let t=Object.create(null),i=Object.keys(o),n=i.length,r=0;for(;r<n;++r)t[i[r]]=Zg(o[i[r]]);return t}return o}function yS(o){return["__proto__","prototype","constructor"].indexOf(o)===-1}function CB(o,t,i,n){if(!yS(o))return;let r=t[o],a=i[o];gt(r)&&gt(a)?Qd(r,a,n):t[o]=Zg(a)}function Qd(o,t,i){let n=Vt(t)?t:[t],r=n.length;if(!gt(o))return o;i=i||{};let a=i.merger||CB,s;for(let l=0;l<r;++l){if(s=n[l],!gt(s))continue;let c=Object.keys(s);for(let d=0,f=c.length;d<f;++d)a(c[d],o,s,i)}return o}function ef(o,t){return Qd(o,t,{merger:SB})}function SB(o,t,i){if(!yS(o))return;let n=t[o],r=i[o];gt(n)&&gt(r)?ef(n,r):Object.prototype.hasOwnProperty.call(t,o)||(t[o]=Zg(r))}var sS={"":o=>o,x:o=>o.x,y:o=>o.y};function AB(o){let t=o.split("."),i=[],n="";for(let r of t)n+=r,n.endsWith("\\")?n=n.slice(0,-1)+".":(i.push(n),n="");return i}function EB(o){let t=AB(o);return i=>{for(let n of t){if(n==="")break;i=i&&i[n]}return i}}function ns(o,t){return(sS[t]||(sS[t]=EB(t)))(o)}function nb(o){return o.charAt(0).toUpperCase()+o.slice(1)}var tf=o=>typeof o!="undefined",ts=o=>typeof o=="function",_x=(o,t)=>{if(o.size!==t.size)return!1;for(let i of o)if(!t.has(i))return!1;return!0};function xS(o){return o.type==="mouseup"||o.type==="click"||o.type==="contextmenu"}var Ut=Math.PI,Gt=2*Ut,TB=Gt+Ut,eb=Number.POSITIVE_INFINITY,MB=Ut/180,wi=Ut/2,_c=Ut/4,lS=Ut*2/3,is=Math.log10,Io=Math.sign;function nf(o,t,i){return Math.abs(o-t)<i}function zx(o){let t=Math.round(o);o=nf(o,t,o/1e3)?t:o;let i=Math.pow(10,Math.floor(is(o))),n=o/i;return(n<=1?1:n<=2?2:n<=5?5:10)*i}function wS(o){let t=[],i=Math.sqrt(o),n;for(n=1;n<i;n++)o%n===0&&(t.push(n),t.push(o/n));return i===(i|0)&&t.push(i),t.sort((r,a)=>r-a).pop(),t}function LB(o){return typeof o=="symbol"||typeof o=="object"&&o!==null&&!(Symbol.toPrimitive in o||"toString"in o||"valueOf"in o)}function Sc(o){return!LB(o)&&!isNaN(parseFloat(o))&&isFinite(o)}function kS(o,t){let i=Math.round(o);return i-t<=o&&i+t>=o}function Cx(o,t,i){let n,r,a;for(n=0,r=o.length;n<r;n++)a=o[n][i],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function fo(o){return o*(Ut/180)}function rb(o){return o*(180/Ut)}function Sx(o){if(!hi(o))return;let t=1,i=0;for(;Math.round(o*t)/t!==o;)t*=10,i++;return i}function Ax(o,t){let i=t.x-o.x,n=t.y-o.y,r=Math.sqrt(i*i+n*n),a=Math.atan2(n,i);return a<-.5*Ut&&(a+=Gt),{angle:a,distance:r}}function tb(o,t){return Math.sqrt(Math.pow(t.x-o.x,2)+Math.pow(t.y-o.y,2))}function qB(o,t){return(o-t+TB)%Gt-Ut}function or(o){return(o%Gt+Gt)%Gt}function rf(o,t,i,n){let r=or(o),a=or(t),s=or(i),l=or(a-r),c=or(s-r),d=or(r-a),f=or(r-s);return r===a||r===s||n&&a===s||l>c&&d<f}function Vi(o,t,i){return Math.max(t,Math.min(i,o))}function _S(o){return Vi(o,-32768,32767)}function la(o,t,i,n=1e-6){return o>=Math.min(t,i)-n&&o<=Math.max(t,i)+n}function ob(o,t,i){i=i||(s=>o[s]<t);let n=o.length-1,r=0,a;for(;n-r>1;)a=r+n>>1,i(a)?r=a:n=a;return{lo:r,hi:n}}var oa=(o,t,i,n)=>ob(o,i,n?r=>{let a=o[r][t];return a<i||a===i&&o[r+1][t]===i}:r=>o[r][t]<i),zS=(o,t,i)=>ob(o,i,n=>o[n][t]>=i);function CS(o,t,i){let n=0,r=o.length;for(;n<r&&o[n]<t;)n++;for(;r>n&&o[r-1]>i;)r--;return n>0||r<o.length?o.slice(n,r):o}var SS=["push","pop","shift","splice","unshift"];function AS(o,t){if(o._chartjs){o._chartjs.listeners.push(t);return}Object.defineProperty(o,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),SS.forEach(i=>{let n="_onData"+nb(i),r=o[i];Object.defineProperty(o,i,{configurable:!0,enumerable:!1,value(...a){let s=r.apply(this,a);return o._chartjs.listeners.forEach(l=>{typeof l[n]=="function"&&l[n](...a)}),s}})})}function Ex(o,t){let i=o._chartjs;if(!i)return;let n=i.listeners,r=n.indexOf(t);r!==-1&&n.splice(r,1),!(n.length>0)&&(SS.forEach(a=>{delete o[a]}),delete o._chartjs)}function Tx(o){let t=new Set(o);return t.size===o.length?o:Array.from(t)}var Mx=function(){return typeof window=="undefined"?function(o){return o()}:window.requestAnimationFrame}();function Lx(o,t){let i=[],n=!1;return function(...r){i=r,n||(n=!0,Mx.call(window,()=>{n=!1,o.apply(t,i)}))}}function ES(o,t){let i;return function(...n){return t?(clearTimeout(i),i=setTimeout(o,t,n)):o.apply(this,n),t}}var ab=o=>o==="start"?"left":o==="end"?"right":"center",mn=(o,t,i)=>o==="start"?t:o==="end"?i:(t+i)/2,TS=(o,t,i,n)=>o===(n?"left":"right")?i:o==="center"?(t+i)/2:t;function qx(o,t,i){let n=t.length,r=0,a=n;if(o._sorted){let{iScale:s,vScale:l,_parsed:c}=o,d=o.dataset&&o.dataset.options?o.dataset.options.spanGaps:null,f=s.axis,{min:h,max:p,minDefined:m,maxDefined:v}=s.getUserBounds();if(m){if(r=Math.min(oa(c,f,h).lo,i?n:oa(t,f,s.getPixelForValue(h)).lo),d){let b=c.slice(0,r+1).reverse().findIndex(x=>!pt(x[l.axis]));r-=Math.max(0,b)}r=Vi(r,0,n-1)}if(v){let b=Math.max(oa(c,s.axis,p,!0).hi+1,i?0:oa(t,f,s.getPixelForValue(p),!0).hi+1);if(d){let x=c.slice(b-1).findIndex(k=>!pt(k[l.axis]));b+=Math.max(0,x)}a=Vi(b,r,n)-r}else a=n-r}return{start:r,count:a}}function Px(o){let{xScale:t,yScale:i,_scaleRanges:n}=o,r={xmin:t.min,xmax:t.max,ymin:i.min,ymax:i.max};if(!n)return o._scaleRanges=r,!0;let a=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==i.min||n.ymax!==i.max;return Object.assign(n,r),a}var Xg=o=>o===0||o===1,cS=(o,t,i)=>-(Math.pow(2,10*(o-=1))*Math.sin((o-t)*Gt/i)),dS=(o,t,i)=>Math.pow(2,-10*o)*Math.sin((o-t)*Gt/i)+1,Jd={linear:o=>o,easeInQuad:o=>o*o,easeOutQuad:o=>-o*(o-2),easeInOutQuad:o=>(o/=.5)<1?.5*o*o:-.5*(--o*(o-2)-1),easeInCubic:o=>o*o*o,easeOutCubic:o=>(o-=1)*o*o+1,easeInOutCubic:o=>(o/=.5)<1?.5*o*o*o:.5*((o-=2)*o*o+2),easeInQuart:o=>o*o*o*o,easeOutQuart:o=>-((o-=1)*o*o*o-1),easeInOutQuart:o=>(o/=.5)<1?.5*o*o*o*o:-.5*((o-=2)*o*o*o-2),easeInQuint:o=>o*o*o*o*o,easeOutQuint:o=>(o-=1)*o*o*o*o+1,easeInOutQuint:o=>(o/=.5)<1?.5*o*o*o*o*o:.5*((o-=2)*o*o*o*o+2),easeInSine:o=>-Math.cos(o*wi)+1,easeOutSine:o=>Math.sin(o*wi),easeInOutSine:o=>-.5*(Math.cos(Ut*o)-1),easeInExpo:o=>o===0?0:Math.pow(2,10*(o-1)),easeOutExpo:o=>o===1?1:-Math.pow(2,-10*o)+1,easeInOutExpo:o=>Xg(o)?o:o<.5?.5*Math.pow(2,10*(o*2-1)):.5*(-Math.pow(2,-10*(o*2-1))+2),easeInCirc:o=>o>=1?o:-(Math.sqrt(1-o*o)-1),easeOutCirc:o=>Math.sqrt(1-(o-=1)*o),easeInOutCirc:o=>(o/=.5)<1?-.5*(Math.sqrt(1-o*o)-1):.5*(Math.sqrt(1-(o-=2)*o)+1),easeInElastic:o=>Xg(o)?o:cS(o,.075,.3),easeOutElastic:o=>Xg(o)?o:dS(o,.075,.3),easeInOutElastic(o){return Xg(o)?o:o<.5?.5*cS(o*2,.1125,.45):.5+.5*dS(o*2-1,.1125,.45)},easeInBack(o){return o*o*((1.70158+1)*o-1.70158)},easeOutBack(o){return(o-=1)*o*((1.70158+1)*o+1.70158)+1},easeInOutBack(o){let t=1.70158;return(o/=.5)<1?.5*(o*o*(((t*=1.525)+1)*o-t)):.5*((o-=2)*o*(((t*=1.525)+1)*o+t)+2)},easeInBounce:o=>1-Jd.easeOutBounce(1-o),easeOutBounce(o){return o<1/2.75?7.5625*o*o:o<2/2.75?7.5625*(o-=1.5/2.75)*o+.75:o<2.5/2.75?7.5625*(o-=2.25/2.75)*o+.9375:7.5625*(o-=2.625/2.75)*o+.984375},easeInOutBounce:o=>o<.5?Jd.easeInBounce(o*2)*.5:Jd.easeOutBounce(o*2-1)*.5+.5};function Rx(o){if(o&&typeof o=="object"){let t=o.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Ox(o){return Rx(o)?o:new _u(o)}function yx(o){return Rx(o)?o:new _u(o).saturate(.5).darken(.1).hexString()}var PB=["x","y","borderWidth","radius","tension"],RB=["color","borderColor","backgroundColor"];function OB(o){o.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),o.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),o.set("animations",{colors:{type:"color",properties:RB},numbers:{type:"number",properties:PB}}),o.describe("animations",{_fallback:"animation"}),o.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function DB(o){o.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var fS=new Map;function $B(o,t){t=t||{};let i=o+JSON.stringify(t),n=fS.get(i);return n||(n=new Intl.NumberFormat(o,t),fS.set(i,n)),n}function of(o,t,i){return $B(t,i).format(o)}var MS={values(o){return Vt(o)?o:""+o},numeric(o,t,i){if(o===0)return"0";let n=this.chart.options.locale,r,a=o;if(i.length>1){let d=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(d<1e-4||d>1e15)&&(r="scientific"),a=IB(o,i)}let s=is(Math.abs(a)),l=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),of(o,n,c)},logarithmic(o,t,i){if(o===0)return"0";let n=i[t].significand||o/Math.pow(10,Math.floor(is(o)));return[1,2,3,5,10,15].includes(n)||t>.8*i.length?MS.numeric.call(this,o,t,i):""}};function IB(o,t){let i=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(i)>=1&&o!==Math.floor(o)&&(i=o-Math.floor(o)),i}var Eu={formatters:MS};function FB(o){o.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,i)=>i.lineWidth,tickColor:(t,i)=>i.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Eu.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),o.route("scale.ticks","color","","color"),o.route("scale.grid","color","","borderColor"),o.route("scale.border","color","","borderColor"),o.route("scale.title","color","","color"),o.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),o.describe("scales",{_fallback:"scale"}),o.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}var el=Object.create(null),sb=Object.create(null);function Cu(o,t){if(!t)return o;let i=t.split(".");for(let n=0,r=i.length;n<r;++n){let a=i[n];o=o[a]||(o[a]=Object.create(null))}return o}function xx(o,t,i){return typeof t=="string"?Qd(Cu(o,t),i):Qd(Cu(o,""),t)}var wx=class{constructor(t,i){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=n=>n.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,r)=>yx(r.backgroundColor),this.hoverBorderColor=(n,r)=>yx(r.borderColor),this.hoverColor=(n,r)=>yx(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(i)}set(t,i){return xx(this,t,i)}get(t){return Cu(this,t)}describe(t,i){return xx(sb,t,i)}override(t,i){return xx(el,t,i)}route(t,i,n,r){let a=Cu(this,t),s=Cu(this,n),l="_"+i;Object.defineProperties(a,{[l]:{value:a[i],writable:!0},[i]:{enumerable:!0,get(){let c=this[l],d=s[r];return gt(c)?Object.assign({},d,c):st(c,d)},set(c){this[l]=c}}})}apply(t){t.forEach(i=>i(this))}},ti=new wx({_scriptable:o=>!o.startsWith("on"),_indexable:o=>o!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[OB,DB,FB]);function NB(o){return!o||pt(o.size)||pt(o.family)?null:(o.style?o.style+" ":"")+(o.weight?o.weight+" ":"")+o.size+"px "+o.family}function Su(o,t,i,n,r){let a=t[r];return a||(a=t[r]=o.measureText(r).width,i.push(r)),a>n&&(n=a),n}function LS(o,t,i,n){n=n||{};let r=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(r=n.data={},a=n.garbageCollect=[],n.font=t),o.save(),o.font=t;let s=0,l=i.length,c,d,f,h,p;for(c=0;c<l;c++)if(h=i[c],h!=null&&!Vt(h))s=Su(o,r,a,s,h);else if(Vt(h))for(d=0,f=h.length;d<f;d++)p=h[d],p!=null&&!Vt(p)&&(s=Su(o,r,a,s,p));o.restore();let m=a.length/2;if(m>i.length){for(c=0;c<m;c++)delete r[a[c]];a.splice(0,m)}return s}function tl(o,t,i){let n=o.currentDevicePixelRatio,r=i!==0?Math.max(i/2,.5):0;return Math.round((t-r)*n)/n+r}function Dx(o,t){!t&&!o||(t=t||o.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,o.width,o.height),t.restore())}function lb(o,t,i,n){$x(o,t,i,n,null)}function $x(o,t,i,n,r){let a,s,l,c,d,f,h,p,m=t.pointStyle,v=t.rotation,b=t.radius,x=(v||0)*MB;if(m&&typeof m=="object"&&(a=m.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){o.save(),o.translate(i,n),o.rotate(x),o.drawImage(m,-m.width/2,-m.height/2,m.width,m.height),o.restore();return}if(!(isNaN(b)||b<=0)){switch(o.beginPath(),m){default:r?o.ellipse(i,n,r/2,b,0,0,Gt):o.arc(i,n,b,0,Gt),o.closePath();break;case"triangle":f=r?r/2:b,o.moveTo(i+Math.sin(x)*f,n-Math.cos(x)*b),x+=lS,o.lineTo(i+Math.sin(x)*f,n-Math.cos(x)*b),x+=lS,o.lineTo(i+Math.sin(x)*f,n-Math.cos(x)*b),o.closePath();break;case"rectRounded":d=b*.516,c=b-d,s=Math.cos(x+_c)*c,h=Math.cos(x+_c)*(r?r/2-d:c),l=Math.sin(x+_c)*c,p=Math.sin(x+_c)*(r?r/2-d:c),o.arc(i-h,n-l,d,x-Ut,x-wi),o.arc(i+p,n-s,d,x-wi,x),o.arc(i+h,n+l,d,x,x+wi),o.arc(i-p,n+s,d,x+wi,x+Ut),o.closePath();break;case"rect":if(!v){c=Math.SQRT1_2*b,f=r?r/2:c,o.rect(i-f,n-c,2*f,2*c);break}x+=_c;case"rectRot":h=Math.cos(x)*(r?r/2:b),s=Math.cos(x)*b,l=Math.sin(x)*b,p=Math.sin(x)*(r?r/2:b),o.moveTo(i-h,n-l),o.lineTo(i+p,n-s),o.lineTo(i+h,n+l),o.lineTo(i-p,n+s),o.closePath();break;case"crossRot":x+=_c;case"cross":h=Math.cos(x)*(r?r/2:b),s=Math.cos(x)*b,l=Math.sin(x)*b,p=Math.sin(x)*(r?r/2:b),o.moveTo(i-h,n-l),o.lineTo(i+h,n+l),o.moveTo(i+p,n-s),o.lineTo(i-p,n+s);break;case"star":h=Math.cos(x)*(r?r/2:b),s=Math.cos(x)*b,l=Math.sin(x)*b,p=Math.sin(x)*(r?r/2:b),o.moveTo(i-h,n-l),o.lineTo(i+h,n+l),o.moveTo(i+p,n-s),o.lineTo(i-p,n+s),x+=_c,h=Math.cos(x)*(r?r/2:b),s=Math.cos(x)*b,l=Math.sin(x)*b,p=Math.sin(x)*(r?r/2:b),o.moveTo(i-h,n-l),o.lineTo(i+h,n+l),o.moveTo(i+p,n-s),o.lineTo(i-p,n+s);break;case"line":s=r?r/2:Math.cos(x)*b,l=Math.sin(x)*b,o.moveTo(i-s,n-l),o.lineTo(i+s,n+l);break;case"dash":o.moveTo(i,n),o.lineTo(i+Math.cos(x)*(r?r/2:b),n+Math.sin(x)*b);break;case!1:o.closePath();break}o.fill(),t.borderWidth>0&&o.stroke()}}function aa(o,t,i){return i=i||.5,!t||o&&o.x>t.left-i&&o.x<t.right+i&&o.y>t.top-i&&o.y<t.bottom+i}function Tu(o,t){o.save(),o.beginPath(),o.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),o.clip()}function Mu(o){o.restore()}function qS(o,t,i,n,r){if(!t)return o.lineTo(i.x,i.y);if(r==="middle"){let a=(t.x+i.x)/2;o.lineTo(a,t.y),o.lineTo(a,i.y)}else r==="after"!=!!n?o.lineTo(t.x,i.y):o.lineTo(i.x,t.y);o.lineTo(i.x,i.y)}function PS(o,t,i,n){if(!t)return o.lineTo(i.x,i.y);o.bezierCurveTo(n?t.cp1x:t.cp2x,n?t.cp1y:t.cp2y,n?i.cp2x:i.cp1x,n?i.cp2y:i.cp1y,i.x,i.y)}function HB(o,t){t.translation&&o.translate(t.translation[0],t.translation[1]),pt(t.rotation)||o.rotate(t.rotation),t.color&&(o.fillStyle=t.color),t.textAlign&&(o.textAlign=t.textAlign),t.textBaseline&&(o.textBaseline=t.textBaseline)}function BB(o,t,i,n,r){if(r.strikethrough||r.underline){let a=o.measureText(n),s=t-a.actualBoundingBoxLeft,l=t+a.actualBoundingBoxRight,c=i-a.actualBoundingBoxAscent,d=i+a.actualBoundingBoxDescent,f=r.strikethrough?(c+d)/2:d;o.strokeStyle=o.fillStyle,o.beginPath(),o.lineWidth=r.decorationWidth||2,o.moveTo(s,f),o.lineTo(l,f),o.stroke()}}function WB(o,t){let i=o.fillStyle;o.fillStyle=t.color,o.fillRect(t.left,t.top,t.width,t.height),o.fillStyle=i}function il(o,t,i,n,r,a={}){let s=Vt(t)?t:[t],l=a.strokeWidth>0&&a.strokeColor!=="",c,d;for(o.save(),o.font=r.string,HB(o,a),c=0;c<s.length;++c)d=s[c],a.backdrop&&WB(o,a.backdrop),l&&(a.strokeColor&&(o.strokeStyle=a.strokeColor),pt(a.strokeWidth)||(o.lineWidth=a.strokeWidth),o.strokeText(d,i,n,a.maxWidth)),o.fillText(d,i,n,a.maxWidth),BB(o,i,n,d,a),n+=Number(r.lineHeight);o.restore()}function af(o,t){let{x:i,y:n,w:r,h:a,radius:s}=t;o.arc(i+s.topLeft,n+s.topLeft,s.topLeft,1.5*Ut,Ut,!0),o.lineTo(i,n+a-s.bottomLeft),o.arc(i+s.bottomLeft,n+a-s.bottomLeft,s.bottomLeft,Ut,wi,!0),o.lineTo(i+r-s.bottomRight,n+a),o.arc(i+r-s.bottomRight,n+a-s.bottomRight,s.bottomRight,wi,0,!0),o.lineTo(i+r,n+s.topRight),o.arc(i+r-s.topRight,n+s.topRight,s.topRight,0,-wi,!0),o.lineTo(i+s.topLeft,n)}var jB=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,VB=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function UB(o,t){let i=(""+o).match(jB);if(!i||i[1]==="normal")return t*1.2;switch(o=+i[2],i[3]){case"px":return o;case"%":o/=100;break}return t*o}var GB=o=>+o||0;function cb(o,t){let i={},n=gt(t),r=n?Object.keys(t):t,a=gt(o)?n?s=>st(o[s],o[t[s]]):s=>o[s]:()=>o;for(let s of r)i[s]=GB(a(s));return i}function Ix(o){return cb(o,{top:"y",right:"x",bottom:"y",left:"x"})}function nl(o){return cb(o,["topLeft","topRight","bottomLeft","bottomRight"])}function gn(o){let t=Ix(o);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ri(o,t){o=o||{},t=t||ti.font;let i=st(o.size,t.size);typeof i=="string"&&(i=parseInt(i,10));let n=st(o.style,t.style);n&&!(""+n).match(VB)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let r={family:st(o.family,t.family),lineHeight:UB(st(o.lineHeight,t.lineHeight),i),size:i,style:n,weight:st(o.weight,t.weight),string:""};return r.string=NB(r),r}function sf(o,t,i,n){let r=!0,a,s,l;for(a=0,s=o.length;a<s;++a)if(l=o[a],l!==void 0&&(t!==void 0&&typeof l=="function"&&(l=l(t),r=!1),i!==void 0&&Vt(l)&&(l=l[i%l.length],r=!1),l!==void 0))return n&&!r&&(n.cacheable=!1),l}function RS(o,t,i){let{min:n,max:r}=o,a=kx(t,(r-n)/2),s=(l,c)=>i&&l===0?0:l+c;return{min:s(n,-Math.abs(a)),max:s(r,a)}}function rs(o,t){return Object.assign(Object.create(o),t)}function db(o,t=[""],i,n,r=()=>o[0]){let a=i||o;typeof n=="undefined"&&(n=$S("_fallback",o));let s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:o,_rootScopes:a,_fallback:n,_getTarget:r,override:l=>db([l,...o],t,a,n)};return new Proxy(s,{deleteProperty(l,c){return delete l[c],delete l._keys,delete o[0][c],!0},get(l,c){return OS(l,c,()=>tW(c,t,o,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(o[0])},has(l,c){return uS(l).includes(c)},ownKeys(l){return uS(l)},set(l,c,d){let f=l._storage||(l._storage=r());return l[c]=f[c]=d,delete l._keys,!0}})}function Cc(o,t,i,n){let r={_cacheable:!1,_proxy:o,_context:t,_subProxy:i,_stack:new Set,_descriptors:Fx(o,n),setContext:a=>Cc(o,a,i,n),override:a=>Cc(o.override(a),t,i,n)};return new Proxy(r,{deleteProperty(a,s){return delete a[s],delete o[s],!0},get(a,s,l){return OS(a,s,()=>XB(a,s,l))},getOwnPropertyDescriptor(a,s){return a._descriptors.allKeys?Reflect.has(o,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(o,s)},getPrototypeOf(){return Reflect.getPrototypeOf(o)},has(a,s){return Reflect.has(o,s)},ownKeys(){return Reflect.ownKeys(o)},set(a,s,l){return o[s]=l,delete a[s],!0}})}function Fx(o,t={scriptable:!0,indexable:!0}){let{_scriptable:i=t.scriptable,_indexable:n=t.indexable,_allKeys:r=t.allKeys}=o;return{allKeys:r,scriptable:i,indexable:n,isScriptable:ts(i)?i:()=>i,isIndexable:ts(n)?n:()=>n}}var YB=(o,t)=>o?o+nb(t):t,Nx=(o,t)=>gt(t)&&o!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function OS(o,t,i){if(Object.prototype.hasOwnProperty.call(o,t)||t==="constructor")return o[t];let n=i();return o[t]=n,n}function XB(o,t,i){let{_proxy:n,_context:r,_subProxy:a,_descriptors:s}=o,l=n[t];return ts(l)&&s.isScriptable(t)&&(l=KB(t,l,o,i)),Vt(l)&&l.length&&(l=JB(t,l,o,s.isIndexable)),Nx(t,l)&&(l=Cc(l,r,a&&a[t],s)),l}function KB(o,t,i,n){let{_proxy:r,_context:a,_subProxy:s,_stack:l}=i;if(l.has(o))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+o);l.add(o);let c=t(a,s||n);return l.delete(o),Nx(o,c)&&(c=Hx(r._scopes,r,o,c)),c}function JB(o,t,i,n){let{_proxy:r,_context:a,_subProxy:s,_descriptors:l}=i;if(typeof a.index!="undefined"&&n(o))return t[a.index%t.length];if(gt(t[0])){let c=t,d=r._scopes.filter(f=>f!==c);t=[];for(let f of c){let h=Hx(d,r,o,f);t.push(Cc(h,a,s&&s[o],l))}}return t}function DS(o,t,i){return ts(o)?o(t,i):o}var QB=(o,t)=>o===!0?t:typeof o=="string"?ns(t,o):void 0;function ZB(o,t,i,n,r){for(let a of t){let s=QB(i,a);if(s){o.add(s);let l=DS(s._fallback,i,r);if(typeof l!="undefined"&&l!==i&&l!==n)return l}else if(s===!1&&typeof n!="undefined"&&i!==n)return null}return!1}function Hx(o,t,i,n){let r=t._rootScopes,a=DS(t._fallback,i,n),s=[...o,...r],l=new Set;l.add(n);let c=hS(l,s,i,a||i,n);return c===null||typeof a!="undefined"&&a!==i&&(c=hS(l,s,a,c,n),c===null)?!1:db(Array.from(l),[""],r,a,()=>eW(t,i,n))}function hS(o,t,i,n,r){for(;i;)i=ZB(o,t,i,n,r);return i}function eW(o,t,i){let n=o._getTarget();t in n||(n[t]={});let r=n[t];return Vt(r)&&gt(i)?i:r||{}}function tW(o,t,i,n){let r;for(let a of t)if(r=$S(YB(a,o),i),typeof r!="undefined")return Nx(o,r)?Hx(i,n,o,r):r}function $S(o,t){for(let i of t){if(!i)continue;let n=i[o];if(typeof n!="undefined")return n}}function uS(o){let t=o._keys;return t||(t=o._keys=iW(o._scopes)),t}function iW(o){let t=new Set;for(let i of o)for(let n of Object.keys(i).filter(r=>!r.startsWith("_")))t.add(n);return Array.from(t)}function Bx(o,t,i,n){let{iScale:r}=o,{key:a="r"}=this._parsing,s=new Array(n),l,c,d,f;for(l=0,c=n;l<c;++l)d=l+i,f=t[d],s[l]={r:r.parse(ns(f,a),d)};return s}var nW=Number.EPSILON||1e-14,Zd=(o,t)=>t<o.length&&!o[t].skip&&o[t],IS=o=>o==="x"?"y":"x";function rW(o,t,i,n){let r=o.skip?t:o,a=t,s=i.skip?t:i,l=tb(a,r),c=tb(s,a),d=l/(l+c),f=c/(l+c);d=isNaN(d)?0:d,f=isNaN(f)?0:f;let h=n*d,p=n*f;return{previous:{x:a.x-h*(s.x-r.x),y:a.y-h*(s.y-r.y)},next:{x:a.x+p*(s.x-r.x),y:a.y+p*(s.y-r.y)}}}function oW(o,t,i){let n=o.length,r,a,s,l,c,d=Zd(o,0);for(let f=0;f<n-1;++f)if(c=d,d=Zd(o,f+1),!(!c||!d)){if(nf(t[f],0,nW)){i[f]=i[f+1]=0;continue}r=i[f]/t[f],a=i[f+1]/t[f],l=Math.pow(r,2)+Math.pow(a,2),!(l<=9)&&(s=3/Math.sqrt(l),i[f]=r*s*t[f],i[f+1]=a*s*t[f])}}function aW(o,t,i="x"){let n=IS(i),r=o.length,a,s,l,c=Zd(o,0);for(let d=0;d<r;++d){if(s=l,l=c,c=Zd(o,d+1),!l)continue;let f=l[i],h=l[n];s&&(a=(f-s[i])/3,l[`cp1${i}`]=f-a,l[`cp1${n}`]=h-a*t[d]),c&&(a=(c[i]-f)/3,l[`cp2${i}`]=f+a,l[`cp2${n}`]=h+a*t[d])}}function sW(o,t="x"){let i=IS(t),n=o.length,r=Array(n).fill(0),a=Array(n),s,l,c,d=Zd(o,0);for(s=0;s<n;++s)if(l=c,c=d,d=Zd(o,s+1),!!c){if(d){let f=d[t]-c[t];r[s]=f!==0?(d[i]-c[i])/f:0}a[s]=l?d?Io(r[s-1])!==Io(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}oW(o,r,a),aW(o,a,t)}function Kg(o,t,i){return Math.max(Math.min(o,i),t)}function lW(o,t){let i,n,r,a,s,l=aa(o[0],t);for(i=0,n=o.length;i<n;++i)s=a,a=l,l=i<n-1&&aa(o[i+1],t),a&&(r=o[i],s&&(r.cp1x=Kg(r.cp1x,t.left,t.right),r.cp1y=Kg(r.cp1y,t.top,t.bottom)),l&&(r.cp2x=Kg(r.cp2x,t.left,t.right),r.cp2y=Kg(r.cp2y,t.top,t.bottom)))}function FS(o,t,i,n,r){let a,s,l,c;if(t.spanGaps&&(o=o.filter(d=>!d.skip)),t.cubicInterpolationMode==="monotone")sW(o,r);else{let d=n?o[o.length-1]:o[0];for(a=0,s=o.length;a<s;++a)l=o[a],c=rW(d,l,o[Math.min(a+1,s-(n?0:1))%s],t.tension),l.cp1x=c.previous.x,l.cp1y=c.previous.y,l.cp2x=c.next.x,l.cp2y=c.next.y,d=l}t.capBezierPoints&&lW(o,i)}function fb(){return typeof window!="undefined"&&typeof document!="undefined"}function hb(o){let t=o.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function ib(o,t,i){let n;return typeof o=="string"?(n=parseInt(o,10),o.indexOf("%")!==-1&&(n=n/100*t.parentNode[i])):n=o,n}var ub=o=>o.ownerDocument.defaultView.getComputedStyle(o,null);function cW(o,t){return ub(o).getPropertyValue(t)}var dW=["top","right","bottom","left"];function zc(o,t,i){let n={};i=i?"-"+i:"";for(let r=0;r<4;r++){let a=dW[r];n[a]=parseFloat(o[t+"-"+a+i])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}var fW=(o,t,i)=>(o>0||t>0)&&(!i||!i.shadowRoot);function hW(o,t){let i=o.touches,n=i&&i.length?i[0]:o,{offsetX:r,offsetY:a}=n,s=!1,l,c;if(fW(r,a,o.target))l=r,c=a;else{let d=t.getBoundingClientRect();l=n.clientX-d.left,c=n.clientY-d.top,s=!0}return{x:l,y:c,box:s}}function rl(o,t){if("native"in o)return o;let{canvas:i,currentDevicePixelRatio:n}=t,r=ub(i),a=r.boxSizing==="border-box",s=zc(r,"padding"),l=zc(r,"border","width"),{x:c,y:d,box:f}=hW(o,i),h=s.left+(f&&l.left),p=s.top+(f&&l.top),{width:m,height:v}=t;return a&&(m-=s.width+l.width,v-=s.height+l.height),{x:Math.round((c-h)/m*i.width/n),y:Math.round((d-p)/v*i.height/n)}}function uW(o,t,i){let n,r;if(t===void 0||i===void 0){let a=o&&hb(o);if(!a)t=o.clientWidth,i=o.clientHeight;else{let s=a.getBoundingClientRect(),l=ub(a),c=zc(l,"border","width"),d=zc(l,"padding");t=s.width-d.width-c.width,i=s.height-d.height-c.height,n=ib(l.maxWidth,a,"clientWidth"),r=ib(l.maxHeight,a,"clientHeight")}}return{width:t,height:i,maxWidth:n||eb,maxHeight:r||eb}}var Jg=o=>Math.round(o*10)/10;function NS(o,t,i,n){let r=ub(o),a=zc(r,"margin"),s=ib(r.maxWidth,o,"clientWidth")||eb,l=ib(r.maxHeight,o,"clientHeight")||eb,c=uW(o,t,i),{width:d,height:f}=c;if(r.boxSizing==="content-box"){let p=zc(r,"border","width"),m=zc(r,"padding");d-=m.width+p.width,f-=m.height+p.height}return d=Math.max(0,d-a.width),f=Math.max(0,n?d/n:f-a.height),d=Jg(Math.min(d,s,c.maxWidth)),f=Jg(Math.min(f,l,c.maxHeight)),d&&!f&&(f=Jg(d/2)),(t!==void 0||i!==void 0)&&n&&c.height&&f>c.height&&(f=c.height,d=Jg(Math.floor(f*n))),{width:d,height:f}}function Wx(o,t,i){let n=t||1,r=Math.floor(o.height*n),a=Math.floor(o.width*n);o.height=Math.floor(o.height),o.width=Math.floor(o.width);let s=o.canvas;return s.style&&(i||!s.style.height&&!s.style.width)&&(s.style.height=`${o.height}px`,s.style.width=`${o.width}px`),o.currentDevicePixelRatio!==n||s.height!==r||s.width!==a?(o.currentDevicePixelRatio=n,s.height=r,s.width=a,o.ctx.setTransform(n,0,0,n,0,0),!0):!1}var HS=function(){let o=!1;try{let t={get passive(){return o=!0,!1}};fb()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch(t){}return o}();function jx(o,t){let i=cW(o,t),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function Zs(o,t,i,n){return{x:o.x+i*(t.x-o.x),y:o.y+i*(t.y-o.y)}}function BS(o,t,i,n){return{x:o.x+i*(t.x-o.x),y:n==="middle"?i<.5?o.y:t.y:n==="after"?i<1?o.y:t.y:i>0?t.y:o.y}}function WS(o,t,i,n){let r={x:o.cp2x,y:o.cp2y},a={x:t.cp1x,y:t.cp1y},s=Zs(o,r,i),l=Zs(r,a,i),c=Zs(a,t,i),d=Zs(s,l,i),f=Zs(l,c,i);return Zs(d,f,i)}var pW=function(o,t){return{x(i){return o+o+t-i},setWidth(i){t=i},textAlign(i){return i==="center"?i:i==="right"?"left":"right"},xPlus(i,n){return i-n},leftForLtr(i,n){return i-n}}},mW=function(){return{x(o){return o},setWidth(o){},textAlign(o){return o},xPlus(o,t){return o+t},leftForLtr(o,t){return o}}};function Ac(o,t,i){return o?pW(t,i):mW()}function Vx(o,t){let i,n;(t==="ltr"||t==="rtl")&&(i=o.canvas.style,n=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",t,"important"),o.prevTextDirection=n)}function Ux(o,t){t!==void 0&&(delete o.prevTextDirection,o.canvas.style.setProperty("direction",t[0],t[1]))}function jS(o){return o==="angle"?{between:rf,compare:qB,normalize:or}:{between:la,compare:(t,i)=>t-i,normalize:t=>t}}function pS({start:o,end:t,count:i,loop:n,style:r}){return{start:o%i,end:t%i,loop:n&&(t-o+1)%i===0,style:r}}function gW(o,t,i){let{property:n,start:r,end:a}=i,{between:s,normalize:l}=jS(n),c=t.length,{start:d,end:f,loop:h}=o,p,m;if(h){for(d+=c,f+=c,p=0,m=c;p<m&&s(l(t[d%c][n]),r,a);++p)d--,f--;d%=c,f%=c}return f<d&&(f+=c),{start:d,end:f,loop:h,style:o.style}}function Gx(o,t,i){if(!i)return[o];let{property:n,start:r,end:a}=i,s=t.length,{compare:l,between:c,normalize:d}=jS(n),{start:f,end:h,loop:p,style:m}=gW(o,t,i),v=[],b=!1,x=null,k,z,E,A=()=>c(r,E,k)&&l(r,E)!==0,C=()=>l(a,k)===0||c(a,E,k),L=()=>b||A(),M=()=>!b||C();for(let P=f,I=f;P<=h;++P)z=t[P%s],!z.skip&&(k=d(z[n]),k!==E&&(b=c(k,r,a),x===null&&L()&&(x=l(k,r)===0?P:I),x!==null&&M()&&(v.push(pS({start:x,end:P,loop:p,count:s,style:m})),x=null),I=P,E=k));return x!==null&&v.push(pS({start:x,end:h,loop:p,count:s,style:m})),v}function Yx(o,t){let i=[],n=o.segments;for(let r=0;r<n.length;r++){let a=Gx(n[r],o.points,t);a.length&&i.push(...a)}return i}function bW(o,t,i,n){let r=0,a=t-1;if(i&&!n)for(;r<t&&!o[r].skip;)r++;for(;r<t&&o[r].skip;)r++;for(r%=t,i&&(a+=r);a>r&&o[a%t].skip;)a--;return a%=t,{start:r,end:a}}function vW(o,t,i,n){let r=o.length,a=[],s=t,l=o[t],c;for(c=t+1;c<=i;++c){let d=o[c%r];d.skip||d.stop?l.skip||(n=!1,a.push({start:t%r,end:(c-1)%r,loop:n}),t=s=d.stop?c:null):(s=c,l.skip&&(t=c)),l=d}return s!==null&&a.push({start:t%r,end:s%r,loop:n}),a}function VS(o,t){let i=o.points,n=o.options.spanGaps,r=i.length;if(!r)return[];let a=!!o._loop,{start:s,end:l}=bW(i,r,a,n);if(n===!0)return mS(o,[{start:s,end:l,loop:a}],i,t);let c=l<s?l+r:l,d=!!o._fullLoop&&s===0&&l===r-1;return mS(o,vW(i,s,c,d),i,t)}function mS(o,t,i,n){return!n||!n.setContext||!i?t:yW(o,t,i,n)}function yW(o,t,i,n){let r=o._chart.getContext(),a=gS(o.options),{_datasetIndex:s,options:{spanGaps:l}}=o,c=i.length,d=[],f=a,h=t[0].start,p=h;function m(v,b,x,k){let z=l?-1:1;if(v!==b){for(v+=c;i[v%c].skip;)v-=z;for(;i[b%c].skip;)b+=z;v%c!==b%c&&(d.push({start:v%c,end:b%c,loop:x,style:k}),f=k,h=b%c)}}for(let v of t){h=l?h:v.start;let b=i[h%c],x;for(p=h+1;p<=v.end;p++){let k=i[p%c];x=gS(n.setContext(rs(r,{type:"segment",p0:b,p1:k,p0DataIndex:(p-1)%c,p1DataIndex:p%c,datasetIndex:s}))),xW(x,f)&&m(h,p-1,v.loop,f),b=k,f=x}h<p-1&&m(h,p-1,v.loop,f)}return d}function gS(o){return{backgroundColor:o.backgroundColor,borderCapStyle:o.borderCapStyle,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderJoinStyle:o.borderJoinStyle,borderWidth:o.borderWidth,borderColor:o.borderColor}}function xW(o,t){if(!t)return!1;let i=[],n=function(r,a){return Rx(a)?(i.includes(a)||i.push(a),i.indexOf(a)):a};return JSON.stringify(o,n)!==JSON.stringify(t,n)}function Qg(o,t,i){return o.options.clip?o[i]:t[i]}function wW(o,t){let{xScale:i,yScale:n}=o;return i&&n?{left:Qg(i,t,"left"),right:Qg(i,t,"right"),top:Qg(n,t,"top"),bottom:Qg(n,t,"bottom")}:t}function Xx(o,t){let i=t._clip;if(i.disabled)return!1;let n=wW(t,o.chartArea);return{left:i.left===!1?0:n.left-(i.left===!0?0:i.left),right:i.right===!1?o.width:n.right+(i.right===!0?0:i.right),top:i.top===!1?0:n.top-(i.top===!0?0:i.top),bottom:i.bottom===!1?o.height:n.bottom+(i.bottom===!0?0:i.bottom)}}var aw=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,i,n,r){let a=i.listeners[r],s=i.duration;a.forEach(l=>l({chart:t,initial:i.initial,numSteps:s,currentStep:Math.min(n-i.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Mx.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let i=0;this._charts.forEach((n,r)=>{if(!n.running||!n.items.length)return;let a=n.items,s=a.length-1,l=!1,c;for(;s>=0;--s)c=a[s],c._active?(c._total>n.duration&&(n.duration=c._total),c.tick(t),l=!0):(a[s]=a[a.length-1],a.pop());l&&(r.draw(),this._notify(r,n,t,"progress")),a.length||(n.running=!1,this._notify(r,n,t,"complete"),n.initial=!1),i+=a.length}),this._lastDate=t,i===0&&(this._running=!1)}_getAnims(t){let i=this._charts,n=i.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(t,n)),n}listen(t,i,n){this._getAnims(t).listeners[i].push(n)}add(t,i){!i||!i.length||this._getAnims(t).items.push(...i)}has(t){return this._getAnims(t).items.length>0}start(t){let i=this._charts.get(t);i&&(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((n,r)=>Math.max(n,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;let i=this._charts.get(t);return!(!i||!i.running||!i.items.length)}stop(t){let i=this._charts.get(t);if(!i||!i.items.length)return;let n=i.items,r=n.length-1;for(;r>=0;--r)n[r].cancel();i.items=[],this._notify(t,i,Date.now(),"complete")}remove(t){return this._charts.delete(t)}},os=new aw,US="transparent",kW={boolean(o,t,i){return i>.5?t:o},color(o,t,i){let n=Ox(o||US),r=n.valid&&Ox(t||US);return r&&r.valid?r.mix(n,i).hexString():t},number(o,t,i){return o+(t-o)*i}},sw=class{constructor(t,i,n,r){let a=i[n];r=sf([t.to,r,a,t.from]);let s=sf([t.from,a,r]);this._active=!0,this._fn=t.fn||kW[t.type||typeof s],this._easing=Jd[t.easing]||Jd.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=i,this._prop=n,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,i,n){if(this._active){this._notify(!1);let r=this._target[this._prop],a=n-this._start,s=this._duration-a;this._start=n,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=sf([t.to,i,r,t.from]),this._from=sf([t.from,r,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let i=t-this._start,n=this._duration,r=this._prop,a=this._from,s=this._loop,l=this._to,c;if(this._active=a!==l&&(s||i<n),!this._active){this._target[r]=l,this._notify(!0);return}if(i<0){this._target[r]=a;return}c=i/n%2,c=s&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[r]=this._fn(a,l,c)}wait(){let t=this._promises||(this._promises=[]);return new Promise((i,n)=>{t.push({res:i,rej:n})})}_notify(t){let i=t?"res":"rej",n=this._promises||[];for(let r=0;r<n.length;r++)n[r][i]()}},kb=class{constructor(t,i){this._chart=t,this._properties=new Map,this.configure(i)}configure(t){if(!gt(t))return;let i=Object.keys(ti.animation),n=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{let a=t[r];if(!gt(a))return;let s={};for(let l of i)s[l]=a[l];(Vt(a.properties)&&a.properties||[r]).forEach(l=>{(l===r||!n.has(l))&&n.set(l,s)})})}_animateOptions(t,i){let n=i.options,r=zW(t,n);if(!r)return[];let a=this._createAnimations(r,n);return n.$shared&&_W(t.options.$animations,n).then(()=>{t.options=n},()=>{}),a}_createAnimations(t,i){let n=this._properties,r=[],a=t.$animations||(t.$animations={}),s=Object.keys(i),l=Date.now(),c;for(c=s.length-1;c>=0;--c){let d=s[c];if(d.charAt(0)==="$")continue;if(d==="options"){r.push(...this._animateOptions(t,i));continue}let f=i[d],h=a[d],p=n.get(d);if(h)if(p&&h.active()){h.update(p,f,l);continue}else h.cancel();if(!p||!p.duration){t[d]=f;continue}a[d]=h=new sw(p,t,d,f),r.push(h)}return r}update(t,i){if(this._properties.size===0){Object.assign(t,i);return}let n=this._createAnimations(t,i);if(n.length)return os.add(this._chart,n),!0}};function _W(o,t){let i=[],n=Object.keys(t);for(let r=0;r<n.length;r++){let a=o[n[r]];a&&a.active()&&i.push(a.wait())}return Promise.all(i)}function zW(o,t){if(!t)return;let i=o.options;if(!i){o.options=t;return}return i.$shared&&(o.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function GS(o,t){let i=o&&o.options||{},n=i.reverse,r=i.min===void 0?t:0,a=i.max===void 0?t:0;return{start:n?a:r,end:n?r:a}}function CW(o,t,i){if(i===!1)return!1;let n=GS(o,i),r=GS(t,i);return{top:r.end,right:n.end,bottom:r.start,left:n.start}}function SW(o){let t,i,n,r;return gt(o)?(t=o.top,i=o.right,n=o.bottom,r=o.left):t=i=n=r=o,{top:t,right:i,bottom:n,left:r,disabled:o===!1}}function V6(o,t){let i=[],n=o._getSortedDatasetMetas(t),r,a;for(r=0,a=n.length;r<a;++r)i.push(n[r].index);return i}function YS(o,t,i,n={}){let r=o.keys,a=n.mode==="single",s,l,c,d;if(t===null)return;let f=!1;for(s=0,l=r.length;s<l;++s){if(c=+r[s],c===i){if(f=!0,n.all)continue;break}d=o.values[c],hi(d)&&(a||t===0||Io(t)===Io(d))&&(t+=d)}return!f&&!n.all?0:t}function AW(o,t){let{iScale:i,vScale:n}=t,r=i.axis==="x"?"x":"y",a=n.axis==="x"?"x":"y",s=Object.keys(o),l=new Array(s.length),c,d,f;for(c=0,d=s.length;c<d;++c)f=s[c],l[c]={[r]:f,[a]:o[f]};return l}function Kx(o,t){let i=o&&o.options.stacked;return i||i===void 0&&t.stack!==void 0}function EW(o,t,i){return`${o.id}.${t.id}.${i.stack||i.type}`}function TW(o){let{min:t,max:i,minDefined:n,maxDefined:r}=o.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:r?i:Number.POSITIVE_INFINITY}}function MW(o,t,i){let n=o[t]||(o[t]={});return n[i]||(n[i]={})}function XS(o,t,i,n){for(let r of t.getMatchingVisibleMetas(n).reverse()){let a=o[r.index];if(i&&a>0||!i&&a<0)return r.index}return null}function KS(o,t){let{chart:i,_cachedMeta:n}=o,r=i._stacks||(i._stacks={}),{iScale:a,vScale:s,index:l}=n,c=a.axis,d=s.axis,f=EW(a,s,n),h=t.length,p;for(let m=0;m<h;++m){let v=t[m],{[c]:b,[d]:x}=v,k=v._stacks||(v._stacks={});p=k[d]=MW(r,f,b),p[l]=x,p._top=XS(p,s,!0,n.type),p._bottom=XS(p,s,!1,n.type);let z=p._visualValues||(p._visualValues={});z[l]=x}}function Jx(o,t){let i=o.scales;return Object.keys(i).filter(n=>i[n].axis===t).shift()}function LW(o,t){return rs(o,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function qW(o,t,i){return rs(o,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:i,index:t,mode:"default",type:"data"})}function Lu(o,t){let i=o.controller.index,n=o.vScale&&o.vScale.axis;if(n){t=t||o._parsed;for(let r of t){let a=r._stacks;if(!a||a[n]===void 0||a[n][i]===void 0)return;delete a[n][i],a[n]._visualValues!==void 0&&a[n]._visualValues[i]!==void 0&&delete a[n]._visualValues[i]}}}var Qx=o=>o==="reset"||o==="none",JS=(o,t)=>t?o:Object.assign({},o),PW=(o,t,i)=>o&&!t.hidden&&t._stacked&&{keys:V6(i,!0),values:null},qr=class{constructor(t,i){this.chart=t,this._ctx=t.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Kx(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Lu(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,i=this._cachedMeta,n=this.getDataset(),r=(h,p,m,v)=>h==="x"?p:h==="r"?v:m,a=i.xAxisID=st(n.xAxisID,Jx(t,"x")),s=i.yAxisID=st(n.yAxisID,Jx(t,"y")),l=i.rAxisID=st(n.rAxisID,Jx(t,"r")),c=i.indexAxis,d=i.iAxisID=r(c,a,s,l),f=i.vAxisID=r(c,s,a,l);i.xScale=this.getScaleForId(a),i.yScale=this.getScaleForId(s),i.rScale=this.getScaleForId(l),i.iScale=this.getScaleForId(d),i.vScale=this.getScaleForId(f)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let i=this._cachedMeta;return t===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&Ex(this._data,this),t._stacked&&Lu(t)}_dataCheck(){let t=this.getDataset(),i=t.data||(t.data=[]),n=this._data;if(gt(i)){let r=this._cachedMeta;this._data=AW(i,r)}else if(n!==i){if(n){Ex(n,this);let r=this._cachedMeta;Lu(r),r._parsed=[]}i&&Object.isExtensible(i)&&AS(i,this),this._syncList=[],this._data=i}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let i=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();let a=i._stacked;i._stacked=Kx(i.vScale,i),i.stack!==n.stack&&(r=!0,Lu(i),i.stack=n.stack),this._resyncElements(t),(r||a!==i._stacked)&&(KS(this,i._parsed),i._stacked=Kx(i.vScale,i))}configure(){let t=this.chart.config,i=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),i,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,i){let{_cachedMeta:n,_data:r}=this,{iScale:a,_stacked:s}=n,l=a.axis,c=t===0&&i===r.length?!0:n._sorted,d=t>0&&n._parsed[t-1],f,h,p;if(this._parsing===!1)n._parsed=r,n._sorted=!0,p=r;else{Vt(r[t])?p=this.parseArrayData(n,r,t,i):gt(r[t])?p=this.parseObjectData(n,r,t,i):p=this.parsePrimitiveData(n,r,t,i);let m=()=>h[l]===null||d&&h[l]<d[l];for(f=0;f<i;++f)n._parsed[f+t]=h=p[f],c&&(m()&&(c=!1),d=h);n._sorted=c}s&&KS(this,p)}parsePrimitiveData(t,i,n,r){let{iScale:a,vScale:s}=t,l=a.axis,c=s.axis,d=a.getLabels(),f=a===s,h=new Array(r),p,m,v;for(p=0,m=r;p<m;++p)v=p+n,h[p]={[l]:f||a.parse(d[v],v),[c]:s.parse(i[v],v)};return h}parseArrayData(t,i,n,r){let{xScale:a,yScale:s}=t,l=new Array(r),c,d,f,h;for(c=0,d=r;c<d;++c)f=c+n,h=i[f],l[c]={x:a.parse(h[0],f),y:s.parse(h[1],f)};return l}parseObjectData(t,i,n,r){let{xScale:a,yScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=new Array(r),f,h,p,m;for(f=0,h=r;f<h;++f)p=f+n,m=i[p],d[f]={x:a.parse(ns(m,l),p),y:s.parse(ns(m,c),p)};return d}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,i,n){let r=this.chart,a=this._cachedMeta,s=i[t.axis],l={keys:V6(r,!0),values:i._stacks[t.axis]._visualValues};return YS(l,s,a.index,{mode:n})}updateRangeFromParsed(t,i,n,r){let a=n[i.axis],s=a===null?NaN:a,l=r&&n._stacks[i.axis];r&&l&&(r.values=l,s=YS(r,a,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,i){let n=this._cachedMeta,r=n._parsed,a=n._sorted&&t===n.iScale,s=r.length,l=this._getOtherScale(t),c=PW(i,n,this.chart),d={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:h}=TW(l),p,m;function v(){m=r[p];let b=m[l.axis];return!hi(m[t.axis])||f>b||h<b}for(p=0;p<s&&!(!v()&&(this.updateRangeFromParsed(d,t,m,c),a));++p);if(a){for(p=s-1;p>=0;--p)if(!v()){this.updateRangeFromParsed(d,t,m,c);break}}return d}getAllParsedValues(t){let i=this._cachedMeta._parsed,n=[],r,a,s;for(r=0,a=i.length;r<a;++r)s=i[r][t.axis],hi(s)&&n.push(s);return n}getMaxOverflow(){return!1}getLabelAndValue(t){let i=this._cachedMeta,n=i.iScale,r=i.vScale,a=this.getParsed(t);return{label:n?""+n.getLabelForValue(a[n.axis]):"",value:r?""+r.getLabelForValue(a[r.axis]):""}}_update(t){let i=this._cachedMeta;this.update(t||"default"),i._clip=SW(st(this.options.clip,CW(i.xScale,i.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,i=this.chart,n=this._cachedMeta,r=n.data||[],a=i.chartArea,s=[],l=this._drawStart||0,c=this._drawCount||r.length-l,d=this.options.drawActiveElementsOnTop,f;for(n.dataset&&n.dataset.draw(t,a,l,c),f=l;f<l+c;++f){let h=r[f];h.hidden||(h.active&&d?s.push(h):h.draw(t,a))}for(f=0;f<s.length;++f)s[f].draw(t,a)}getStyle(t,i){let n=i?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,i,n){let r=this.getDataset(),a;if(t>=0&&t<this._cachedMeta.data.length){let s=this._cachedMeta.data[t];a=s.$context||(s.$context=qW(this.getContext(),t,s)),a.parsed=this.getParsed(t),a.raw=r.data[t],a.index=a.dataIndex=t}else a=this.$context||(this.$context=LW(this.chart.getContext(),this.index)),a.dataset=r,a.index=a.datasetIndex=this.index;return a.active=!!i,a.mode=n,a}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,i){return this._resolveElementOptions(this.dataElementType.id,i,t)}_resolveElementOptions(t,i="default",n){let r=i==="active",a=this._cachedDataOpts,s=t+"-"+i,l=a[s],c=this.enableOptionSharing&&tf(n);if(l)return JS(l,c);let d=this.chart.config,f=d.datasetElementScopeKeys(this._type,t),h=r?[`${t}Hover`,"hover",t,""]:[t,""],p=d.getOptionScopes(this.getDataset(),f),m=Object.keys(ti.elements[t]),v=()=>this.getContext(n,r,i),b=d.resolveNamedOptions(p,m,v,h);return b.$shared&&(b.$shared=c,a[s]=Object.freeze(JS(b,c))),b}_resolveAnimations(t,i,n){let r=this.chart,a=this._cachedDataOpts,s=`animation-${i}`,l=a[s];if(l)return l;let c;if(r.options.animation!==!1){let f=this.chart.config,h=f.datasetAnimationScopeKeys(this._type,i),p=f.getOptionScopes(this.getDataset(),h);c=f.createResolver(p,this.getContext(t,n,i))}let d=new kb(r,c&&c.animations);return c&&c._cacheable&&(a[s]=Object.freeze(d)),d}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,i){return!i||Qx(t)||this.chart._animationsDisabled}_getSharedOptions(t,i){let n=this.resolveDataElementOptions(t,i),r=this._sharedOptions,a=this.getSharedOptions(n),s=this.includeOptions(i,a)||a!==r;return this.updateSharedOptions(a,i,n),{sharedOptions:a,includeOptions:s}}updateElement(t,i,n,r){Qx(r)?Object.assign(t,n):this._resolveAnimations(i,r).update(t,n)}updateSharedOptions(t,i,n){t&&!Qx(i)&&this._resolveAnimations(void 0,i).update(t,n)}_setStyle(t,i,n,r){t.active=r;let a=this.getStyle(i,r);this._resolveAnimations(i,n,r).update(t,{options:!r&&this.getSharedOptions(a)||a})}removeHoverStyle(t,i,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,i,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let i=this._data,n=this._cachedMeta.data;for(let[l,c,d]of this._syncList)this[l](c,d);this._syncList=[];let r=n.length,a=i.length,s=Math.min(a,r);s&&this.parse(0,s),a>r?this._insertElements(r,a-r,t):a<r&&this._removeElements(a,r-a)}_insertElements(t,i,n=!0){let r=this._cachedMeta,a=r.data,s=t+i,l,c=d=>{for(d.length+=i,l=d.length-1;l>=s;l--)d[l]=d[l-i]};for(c(a),l=t;l<s;++l)a[l]=new this.dataElementType;this._parsing&&c(r._parsed),this.parse(t,i),n&&this.updateElements(a,t,i,"reset")}updateElements(t,i,n,r){}_removeElements(t,i){let n=this._cachedMeta;if(this._parsing){let r=n._parsed.splice(t,i);n._stacked&&Lu(n,r)}n.data.splice(t,i)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[i,n,r]=t;this[i](n,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,i){i&&this._sync(["_removeElements",t,i]);let n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}};ie(qr,"defaults",{}),ie(qr,"datasetElementType",null),ie(qr,"dataElementType",null);function RW(o,t){if(!o._cache.$bar){let i=o.getMatchingVisibleMetas(t),n=[];for(let r=0,a=i.length;r<a;r++)n=n.concat(i[r].controller.getAllParsedValues(o));o._cache.$bar=Tx(n.sort((r,a)=>r-a))}return o._cache.$bar}function OW(o){let t=o.iScale,i=RW(t,o.type),n=t._length,r,a,s,l,c=()=>{s===32767||s===-32768||(tf(l)&&(n=Math.min(n,Math.abs(s-l)||n)),l=s)};for(r=0,a=i.length;r<a;++r)s=t.getPixelForValue(i[r]),c();for(l=void 0,r=0,a=t.ticks.length;r<a;++r)s=t.getPixelForTick(r),c();return n}function DW(o,t,i,n){let r=i.barThickness,a,s;return pt(r)?(a=t.min*i.categoryPercentage,s=i.barPercentage):(a=r*n,s=1),{chunk:a/n,ratio:s,start:t.pixels[o]-a/2}}function $W(o,t,i,n){let r=t.pixels,a=r[o],s=o>0?r[o-1]:null,l=o<r.length-1?r[o+1]:null,c=i.categoryPercentage;s===null&&(s=a-(l===null?t.end-t.start:l-a)),l===null&&(l=a+a-s);let d=a-(a-Math.min(s,l))/2*c;return{chunk:Math.abs(l-s)/2*c/n,ratio:i.barPercentage,start:d}}function IW(o,t,i,n){let r=i.parse(o[0],n),a=i.parse(o[1],n),s=Math.min(r,a),l=Math.max(r,a),c=s,d=l;Math.abs(s)>Math.abs(l)&&(c=l,d=s),t[i.axis]=d,t._custom={barStart:c,barEnd:d,start:r,end:a,min:s,max:l}}function U6(o,t,i,n){return Vt(o)?IW(o,t,i,n):t[i.axis]=i.parse(o,n),t}function QS(o,t,i,n){let r=o.iScale,a=o.vScale,s=r.getLabels(),l=r===a,c=[],d,f,h,p;for(d=i,f=i+n;d<f;++d)p=t[d],h={},h[r.axis]=l||r.parse(s[d],d),c.push(U6(p,h,a,d));return c}function Zx(o){return o&&o.barStart!==void 0&&o.barEnd!==void 0}function FW(o,t,i){return o!==0?Io(o):(t.isHorizontal()?1:-1)*(t.min>=i?1:-1)}function NW(o){let t,i,n,r,a;return o.horizontal?(t=o.base>o.x,i="left",n="right"):(t=o.base<o.y,i="bottom",n="top"),t?(r="end",a="start"):(r="start",a="end"),{start:i,end:n,reverse:t,top:r,bottom:a}}function HW(o,t,i,n){let r=t.borderSkipped,a={};if(!r){o.borderSkipped=a;return}if(r===!0){o.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:s,end:l,reverse:c,top:d,bottom:f}=NW(o);r==="middle"&&i&&(o.enableBorderRadius=!0,(i._top||0)===n?r=d:(i._bottom||0)===n?r=f:(a[ZS(f,s,l,c)]=!0,r=d)),a[ZS(r,s,l,c)]=!0,o.borderSkipped=a}function ZS(o,t,i,n){return n?(o=BW(o,t,i),o=e6(o,i,t)):o=e6(o,t,i),o}function BW(o,t,i){return o===t?i:o===i?t:o}function e6(o,t,i){return o==="start"?t:o==="end"?i:o}function WW(o,{inflateAmount:t},i){o.inflateAmount=t==="auto"?i===1?.33:0:t}var cf=class extends qr{parsePrimitiveData(t,i,n,r){return QS(t,i,n,r)}parseArrayData(t,i,n,r){return QS(t,i,n,r)}parseObjectData(t,i,n,r){let{iScale:a,vScale:s}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,d=a.axis==="x"?l:c,f=s.axis==="x"?l:c,h=[],p,m,v,b;for(p=n,m=n+r;p<m;++p)b=i[p],v={},v[a.axis]=a.parse(ns(b,d),p),h.push(U6(ns(b,f),v,s,p));return h}updateRangeFromParsed(t,i,n,r){super.updateRangeFromParsed(t,i,n,r);let a=n._custom;a&&i===this._cachedMeta.vScale&&(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let i=this._cachedMeta,{iScale:n,vScale:r}=i,a=this.getParsed(t),s=a._custom,l=Zx(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(a[r.axis]);return{label:""+n.getLabelForValue(a[n.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();let t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){let i=this._cachedMeta;this.updateElements(i.data,0,i.data.length,t)}updateElements(t,i,n,r){let a=r==="reset",{index:s,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),d=l.isHorizontal(),f=this._getRuler(),{sharedOptions:h,includeOptions:p}=this._getSharedOptions(i,r);for(let m=i;m<i+n;m++){let v=this.getParsed(m),b=a||pt(v[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(m),x=this._calculateBarIndexPixels(m,f),k=(v._stacks||{})[l.axis],z={horizontal:d,base:b.base,enableBorderRadius:!k||Zx(v._custom)||s===k._top||s===k._bottom,x:d?b.head:x.center,y:d?x.center:b.head,height:d?x.size:Math.abs(b.size),width:d?Math.abs(b.size):x.size};p&&(z.options=h||this.resolveDataElementOptions(m,t[m].active?"active":r));let E=z.options||t[m].options;HW(z,E,k,s),WW(z,E,f.ratio),this.updateElement(t[m],m,z,r)}}_getStacks(t,i){let{iScale:n}=this._cachedMeta,r=n.getMatchingVisibleMetas(this._type).filter(f=>f.controller.options.grouped),a=n.options.stacked,s=[],l=this._cachedMeta.controller.getParsed(i),c=l&&l[n.axis],d=f=>{let h=f._parsed.find(m=>m[n.axis]===c),p=h&&h[f.vScale.axis];if(pt(p)||isNaN(p))return!0};for(let f of r)if(!(i!==void 0&&d(f))&&((a===!1||s.indexOf(f.stack)===-1||a===void 0&&f.stack===void 0)&&s.push(f.stack),f.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,i,n){let r=this._getStacks(t,n),a=i!==void 0?r.indexOf(i):-1;return a===-1?r.length-1:a}_getRuler(){let t=this.options,i=this._cachedMeta,n=i.iScale,r=[],a,s;for(a=0,s=i.data.length;a<s;++a)r.push(n.getPixelForValue(this.getParsed(a)[n.axis],a));let l=t.barThickness;return{min:l||OW(i),pixels:r,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){let{_cachedMeta:{vScale:i,_stacked:n,index:r},options:{base:a,minBarLength:s}}=this,l=a||0,c=this.getParsed(t),d=c._custom,f=Zx(d),h=c[i.axis],p=0,m=n?this.applyStack(i,c,n):h,v,b;m!==h&&(p=m-h,m=h),f&&(h=d.barStart,m=d.barEnd-d.barStart,h!==0&&Io(h)!==Io(d.barEnd)&&(p=0),p+=h);let x=!pt(a)&&!f?a:p,k=i.getPixelForValue(x);if(this.chart.getDataVisibility(t)?v=i.getPixelForValue(p+m):v=k,b=v-k,Math.abs(b)<s){b=FW(b,i,l)*s,h===l&&(k-=b/2);let z=i.getPixelForDecimal(0),E=i.getPixelForDecimal(1),A=Math.min(z,E),C=Math.max(z,E);k=Math.max(Math.min(k,C),A),v=k+b,n&&!f&&(c._stacks[i.axis]._visualValues[r]=i.getValueForPixel(v)-i.getValueForPixel(k))}if(k===i.getPixelForValue(l)){let z=Io(b)*i.getLineWidthForValue(l)/2;k+=z,b-=z}return{size:b,base:k,head:v,center:v+b/2}}_calculateBarIndexPixels(t,i){let n=i.scale,r=this.options,a=r.skipNull,s=st(r.maxBarThickness,1/0),l,c;if(i.grouped){let d=a?this._getStackCount(t):i.stackCount,f=r.barThickness==="flex"?$W(t,i,r,d):DW(t,i,r,d),h=this._getStackIndex(this.index,this._cachedMeta.stack,a?t:void 0);l=f.start+f.chunk*h+f.chunk/2,c=Math.min(s,f.chunk*f.ratio)}else l=n.getPixelForValue(this.getParsed(t)[n.axis],t),c=Math.min(s,i.min*i.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){let t=this._cachedMeta,i=t.vScale,n=t.data,r=n.length,a=0;for(;a<r;++a)this.getParsed(a)[i.axis]!==null&&!n[a].hidden&&n[a].draw(this._ctx)}};ie(cf,"id","bar"),ie(cf,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),ie(cf,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});var df=class extends qr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,i,n,r){let a=super.parsePrimitiveData(t,i,n,r);for(let s=0;s<a.length;s++)a[s]._custom=this.resolveDataElementOptions(s+n).radius;return a}parseArrayData(t,i,n,r){let a=super.parseArrayData(t,i,n,r);for(let s=0;s<a.length;s++){let l=i[n+s];a[s]._custom=st(l[2],this.resolveDataElementOptions(s+n).radius)}return a}parseObjectData(t,i,n,r){let a=super.parseObjectData(t,i,n,r);for(let s=0;s<a.length;s++){let l=i[n+s];a[s]._custom=st(l&&l.r&&+l.r,this.resolveDataElementOptions(s+n).radius)}return a}getMaxOverflow(){let t=this._cachedMeta.data,i=0;for(let n=t.length-1;n>=0;--n)i=Math.max(i,t[n].size(this.resolveDataElementOptions(n))/2);return i>0&&i}getLabelAndValue(t){let i=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:a}=i,s=this.getParsed(t),l=r.getLabelForValue(s.x),c=a.getLabelForValue(s.y),d=s._custom;return{label:n[t]||"",value:"("+l+", "+c+(d?", "+d:"")+")"}}update(t){let i=this._cachedMeta.data;this.updateElements(i,0,i.length,t)}updateElements(t,i,n,r){let a=r==="reset",{iScale:s,vScale:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(i,r),f=s.axis,h=l.axis;for(let p=i;p<i+n;p++){let m=t[p],v=!a&&this.getParsed(p),b={},x=b[f]=a?s.getPixelForDecimal(.5):s.getPixelForValue(v[f]),k=b[h]=a?l.getBasePixel():l.getPixelForValue(v[h]);b.skip=isNaN(x)||isNaN(k),d&&(b.options=c||this.resolveDataElementOptions(p,m.active?"active":r),a&&(b.options.radius=0)),this.updateElement(m,p,b,r)}}resolveDataElementOptions(t,i){let n=this.getParsed(t),r=super.resolveDataElementOptions(t,i);r.$shared&&(r=Object.assign({},r,{$shared:!1}));let a=r.radius;return i!=="active"&&(r.radius=0),r.radius+=st(n&&n._custom,a),r}};ie(df,"id","bubble"),ie(df,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),ie(df,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function jW(o,t,i){let n=1,r=1,a=0,s=0;if(t<Gt){let l=o,c=l+t,d=Math.cos(l),f=Math.sin(l),h=Math.cos(c),p=Math.sin(c),m=(E,A,C)=>rf(E,l,c,!0)?1:Math.max(A,A*i,C,C*i),v=(E,A,C)=>rf(E,l,c,!0)?-1:Math.min(A,A*i,C,C*i),b=m(0,d,h),x=m(wi,f,p),k=v(Ut,d,h),z=v(Ut+wi,f,p);n=(b-k)/2,r=(x-z)/2,a=-(b+k)/2,s=-(x+z)/2}return{ratioX:n,ratioY:r,offsetX:a,offsetY:s}}var ss=class extends qr{constructor(t,i){super(t,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,i){let n=this.getDataset().data,r=this._cachedMeta;if(this._parsing===!1)r._parsed=n;else{let a=c=>+n[c];if(gt(n[t])){let{key:c="value"}=this._parsing;a=d=>+ns(n[d],c)}let s,l;for(s=t,l=t+i;s<l;++s)r._parsed[s]=a(s)}}_getRotation(){return fo(this.options.rotation-90)}_getCircumference(){return fo(this.options.circumference)}_getRotationExtents(){let t=Gt,i=-Gt;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){let r=this.chart.getDatasetMeta(n).controller,a=r._getRotation(),s=r._getCircumference();t=Math.min(t,a),i=Math.max(i,a+s)}return{rotation:t,circumference:i-t}}update(t){let i=this.chart,{chartArea:n}=i,r=this._cachedMeta,a=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,l=Math.max((Math.min(n.width,n.height)-s)/2,0),c=Math.min(vS(this.options.cutout,l),1),d=this._getRingWeight(this.index),{circumference:f,rotation:h}=this._getRotationExtents(),{ratioX:p,ratioY:m,offsetX:v,offsetY:b}=jW(h,f,c),x=(n.width-s)/p,k=(n.height-s)/m,z=Math.max(Math.min(x,k)/2,0),E=kx(this.options.radius,z),A=Math.max(E*c,0),C=(E-A)/this._getVisibleDatasetWeightTotal();this.offsetX=v*E,this.offsetY=b*E,r.total=this.calculateTotal(),this.outerRadius=E-C*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-C*d,0),this.updateElements(a,0,a.length,t)}_circumference(t,i){let n=this.options,r=this._cachedMeta,a=this._getCircumference();return i&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||r._parsed[t]===null||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*a/Gt)}updateElements(t,i,n,r){let a=r==="reset",s=this.chart,l=s.chartArea,d=s.options.animation,f=(l.left+l.right)/2,h=(l.top+l.bottom)/2,p=a&&d.animateScale,m=p?0:this.innerRadius,v=p?0:this.outerRadius,{sharedOptions:b,includeOptions:x}=this._getSharedOptions(i,r),k=this._getRotation(),z;for(z=0;z<i;++z)k+=this._circumference(z,a);for(z=i;z<i+n;++z){let E=this._circumference(z,a),A=t[z],C={x:f+this.offsetX,y:h+this.offsetY,startAngle:k,endAngle:k+E,circumference:E,outerRadius:v,innerRadius:m};x&&(C.options=b||this.resolveDataElementOptions(z,A.active?"active":r)),k+=E,this.updateElement(A,z,C,r)}}calculateTotal(){let t=this._cachedMeta,i=t.data,n=0,r;for(r=0;r<i.length;r++){let a=t._parsed[r];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(r)&&!i[r].hidden&&(n+=Math.abs(a))}return n}calculateCircumference(t){let i=this._cachedMeta.total;return i>0&&!isNaN(t)?Gt*(Math.abs(t)/i):0}getLabelAndValue(t){let i=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=of(i._parsed[t],n.options.locale);return{label:r[t]||"",value:a}}getMaxBorderWidth(t){let i=0,n=this.chart,r,a,s,l,c;if(!t){for(r=0,a=n.data.datasets.length;r<a;++r)if(n.isDatasetVisible(r)){s=n.getDatasetMeta(r),t=s.data,l=s.controller;break}}if(!t)return 0;for(r=0,a=t.length;r<a;++r)c=l.resolveDataElementOptions(r),c.borderAlign!=="inner"&&(i=Math.max(i,c.borderWidth||0,c.hoverBorderWidth||0));return i}getMaxOffset(t){let i=0;for(let n=0,r=t.length;n<r;++n){let a=this.resolveDataElementOptions(n);i=Math.max(i,a.offset||0,a.hoverOffset||0)}return i}_getRingWeightOffset(t){let i=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(i+=this._getRingWeight(n));return i}_getRingWeight(t){return Math.max(st(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}};ie(ss,"id","doughnut"),ie(ss,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),ie(ss,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),ie(ss,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let i=t.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:n,color:r}}=t.legend.options;return i.labels.map((a,s)=>{let c=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:r,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,i,n){n.chart.toggleDataVisibility(i.index),n.chart.update()}}}});var ff=class extends qr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let i=this._cachedMeta,{dataset:n,data:r=[],_dataset:a}=i,s=this.chart._animationsDisabled,{start:l,count:c}=qx(i,r,s);this._drawStart=l,this._drawCount=c,Px(i)&&(l=0,c=r.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=r;let d=this.resolveDatasetElementOptions(t);this.options.showLine||(d.borderWidth=0),d.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:d},t),this.updateElements(r,l,c,t)}updateElements(t,i,n,r){let a=r==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,{sharedOptions:f,includeOptions:h}=this._getSharedOptions(i,r),p=s.axis,m=l.axis,{spanGaps:v,segment:b}=this.options,x=Sc(v)?v:Number.POSITIVE_INFINITY,k=this.chart._animationsDisabled||a||r==="none",z=i+n,E=t.length,A=i>0&&this.getParsed(i-1);for(let C=0;C<E;++C){let L=t[C],M=k?L:{};if(C<i||C>=z){M.skip=!0;continue}let P=this.getParsed(C),I=pt(P[m]),N=M[p]=s.getPixelForValue(P[p],C),B=M[m]=a||I?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,P,c):P[m],C);M.skip=isNaN(N)||isNaN(B)||I,M.stop=C>0&&Math.abs(P[p]-A[p])>x,b&&(M.parsed=P,M.raw=d.data[C]),h&&(M.options=f||this.resolveDataElementOptions(C,L.active?"active":r)),k||this.updateElement(L,C,M,r),A=P}}getMaxOverflow(){let t=this._cachedMeta,i=t.dataset,n=i.options&&i.options.borderWidth||0,r=t.data||[];if(!r.length)return n;let a=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,a,s)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}};ie(ff,"id","line"),ie(ff,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),ie(ff,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});var qc=class extends qr{constructor(t,i){super(t,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let i=this._cachedMeta,n=this.chart,r=n.data.labels||[],a=of(i._parsed[t].r,n.options.locale);return{label:r[t]||"",value:a}}parseObjectData(t,i,n,r){return Bx.bind(this)(t,i,n,r)}update(t){let i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,t)}getMinMax(){let t=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((n,r)=>{let a=this.getParsed(r).r;!isNaN(a)&&this.chart.getDataVisibility(r)&&(a<i.min&&(i.min=a),a>i.max&&(i.max=a))}),i}_updateRadius(){let t=this.chart,i=t.chartArea,n=t.options,r=Math.min(i.right-i.left,i.bottom-i.top),a=Math.max(r/2,0),s=Math.max(n.cutoutPercentage?a/100*n.cutoutPercentage:1,0),l=(a-s)/t.getVisibleDatasetCount();this.outerRadius=a-l*this.index,this.innerRadius=this.outerRadius-l}updateElements(t,i,n,r){let a=r==="reset",s=this.chart,c=s.options.animation,d=this._cachedMeta.rScale,f=d.xCenter,h=d.yCenter,p=d.getIndexAngle(0)-.5*Ut,m=p,v,b=360/this.countVisibleElements();for(v=0;v<i;++v)m+=this._computeAngle(v,r,b);for(v=i;v<i+n;v++){let x=t[v],k=m,z=m+this._computeAngle(v,r,b),E=s.getDataVisibility(v)?d.getDistanceFromCenterForValue(this.getParsed(v).r):0;m=z,a&&(c.animateScale&&(E=0),c.animateRotate&&(k=z=p));let A={x:f,y:h,innerRadius:0,outerRadius:E,startAngle:k,endAngle:z,options:this.resolveDataElementOptions(v,x.active?"active":r)};this.updateElement(x,v,A,r)}}countVisibleElements(){let t=this._cachedMeta,i=0;return t.data.forEach((n,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&i++}),i}_computeAngle(t,i,n){return this.chart.getDataVisibility(t)?fo(this.resolveDataElementOptions(t,i).angle||n):0}};ie(qc,"id","polarArea"),ie(qc,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),ie(qc,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let i=t.data;if(i.labels.length&&i.datasets.length){let{labels:{pointStyle:n,color:r}}=t.legend.options;return i.labels.map((a,s)=>{let c=t.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:r,lineWidth:c.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,i,n){n.chart.toggleDataVisibility(i.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});var Du=class extends ss{};ie(Du,"id","pie"),ie(Du,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});var hf=class extends qr{getLabelAndValue(t){let i=this._cachedMeta.vScale,n=this.getParsed(t);return{label:i.getLabels()[t],value:""+i.getLabelForValue(n[i.axis])}}parseObjectData(t,i,n,r){return Bx.bind(this)(t,i,n,r)}update(t){let i=this._cachedMeta,n=i.dataset,r=i.data||[],a=i.iScale.getLabels();if(n.points=r,t!=="resize"){let s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);let l={_loop:!0,_fullLoop:a.length===r.length,options:s};this.updateElement(n,void 0,l,t)}this.updateElements(r,0,r.length,t)}updateElements(t,i,n,r){let a=this._cachedMeta.rScale,s=r==="reset";for(let l=i;l<i+n;l++){let c=t[l],d=this.resolveDataElementOptions(l,c.active?"active":r),f=a.getPointPositionForValue(l,this.getParsed(l).r),h=s?a.xCenter:f.x,p=s?a.yCenter:f.y,m={x:h,y:p,angle:f.angle,skip:isNaN(h)||isNaN(p),options:d};this.updateElement(c,l,m,r)}}};ie(hf,"id","radar"),ie(hf,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),ie(hf,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});var uf=class extends qr{getLabelAndValue(t){let i=this._cachedMeta,n=this.chart.data.labels||[],{xScale:r,yScale:a}=i,s=this.getParsed(t),l=r.getLabelForValue(s.x),c=a.getLabelForValue(s.y);return{label:n[t]||"",value:"("+l+", "+c+")"}}update(t){let i=this._cachedMeta,{data:n=[]}=i,r=this.chart._animationsDisabled,{start:a,count:s}=qx(i,n,r);if(this._drawStart=a,this._drawCount=s,Px(i)&&(a=0,s=n.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:l,_dataset:c}=i;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!c._decimated,l.points=n;let d=this.resolveDatasetElementOptions(t);d.segment=this.options.segment,this.updateElement(l,void 0,{animated:!r,options:d},t)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(n,a,s,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,i,n,r){let a=r==="reset",{iScale:s,vScale:l,_stacked:c,_dataset:d}=this._cachedMeta,f=this.resolveDataElementOptions(i,r),h=this.getSharedOptions(f),p=this.includeOptions(r,h),m=s.axis,v=l.axis,{spanGaps:b,segment:x}=this.options,k=Sc(b)?b:Number.POSITIVE_INFINITY,z=this.chart._animationsDisabled||a||r==="none",E=i>0&&this.getParsed(i-1);for(let A=i;A<i+n;++A){let C=t[A],L=this.getParsed(A),M=z?C:{},P=pt(L[v]),I=M[m]=s.getPixelForValue(L[m],A),N=M[v]=a||P?l.getBasePixel():l.getPixelForValue(c?this.applyStack(l,L,c):L[v],A);M.skip=isNaN(I)||isNaN(N)||P,M.stop=A>0&&Math.abs(L[m]-E[m])>k,x&&(M.parsed=L,M.raw=d.data[A]),p&&(M.options=h||this.resolveDataElementOptions(A,C.active?"active":r)),z||this.updateElement(C,A,M,r),E=L}this.updateSharedOptions(h,r,f)}getMaxOverflow(){let t=this._cachedMeta,i=t.data||[];if(!this.options.showLine){let l=0;for(let c=i.length-1;c>=0;--c)l=Math.max(l,i[c].size(this.resolveDataElementOptions(c))/2);return l>0&&l}let n=t.dataset,r=n.options&&n.options.borderWidth||0;if(!i.length)return r;let a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,s)/2}};ie(uf,"id","scatter"),ie(uf,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),ie(uf,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var VW=Object.freeze({__proto__:null,BarController:cf,BubbleController:df,DoughnutController:ss,LineController:ff,PieController:Du,PolarAreaController:qc,RadarController:hf,ScatterController:uf});function Ec(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var lw=class o{constructor(t){ie(this,"options");this.options=t||{}}static override(t){Object.assign(o.prototype,t)}init(){}formats(){return Ec()}parse(){return Ec()}format(){return Ec()}add(){return Ec()}diff(){return Ec()}startOf(){return Ec()}endOf(){return Ec()}},UW={_date:lw};function GW(o,t,i,n){let{controller:r,data:a,_sorted:s}=o,l=r._cachedMeta.iScale,c=o.dataset&&o.dataset.options?o.dataset.options.spanGaps:null;if(l&&t===l.axis&&t!=="r"&&s&&a.length){let d=l._reversePixels?zS:oa;if(n){if(r._sharedOptions){let f=a[0],h=typeof f.getRange=="function"&&f.getRange(t);if(h){let p=d(a,t,i-h),m=d(a,t,i+h);return{lo:p.lo,hi:m.hi}}}}else{let f=d(a,t,i);if(c){let{vScale:h}=r._cachedMeta,{_parsed:p}=o,m=p.slice(0,f.lo+1).reverse().findIndex(b=>!pt(b[h.axis]));f.lo-=Math.max(0,m);let v=p.slice(f.hi).findIndex(b=>!pt(b[h.axis]));f.hi+=Math.max(0,v)}return f}}return{lo:0,hi:a.length-1}}function Gu(o,t,i,n,r){let a=o.getSortedVisibleDatasetMetas(),s=i[t];for(let l=0,c=a.length;l<c;++l){let{index:d,data:f}=a[l],{lo:h,hi:p}=GW(a[l],t,s,r);for(let m=h;m<=p;++m){let v=f[m];v.skip||n(v,d,m)}}}function YW(o){let t=o.indexOf("x")!==-1,i=o.indexOf("y")!==-1;return function(n,r){let a=t?Math.abs(n.x-r.x):0,s=i?Math.abs(n.y-r.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}function ew(o,t,i,n,r){let a=[];return!r&&!o.isPointInArea(t)||Gu(o,i,t,function(l,c,d){!r&&!aa(l,o.chartArea,0)||l.inRange(t.x,t.y,n)&&a.push({element:l,datasetIndex:c,index:d})},!0),a}function XW(o,t,i,n){let r=[];function a(s,l,c){let{startAngle:d,endAngle:f}=s.getProps(["startAngle","endAngle"],n),{angle:h}=Ax(s,{x:t.x,y:t.y});rf(h,d,f)&&r.push({element:s,datasetIndex:l,index:c})}return Gu(o,i,t,a),r}function KW(o,t,i,n,r,a){let s=[],l=YW(i),c=Number.POSITIVE_INFINITY;function d(f,h,p){let m=f.inRange(t.x,t.y,r);if(n&&!m)return;let v=f.getCenterPoint(r);if(!(!!a||o.isPointInArea(v))&&!m)return;let x=l(t,v);x<c?(s=[{element:f,datasetIndex:h,index:p}],c=x):x===c&&s.push({element:f,datasetIndex:h,index:p})}return Gu(o,i,t,d),s}function tw(o,t,i,n,r,a){return!a&&!o.isPointInArea(t)?[]:i==="r"&&!n?XW(o,t,i,r):KW(o,t,i,n,r,a)}function t6(o,t,i,n,r){let a=[],s=i==="x"?"inXRange":"inYRange",l=!1;return Gu(o,i,t,(c,d,f)=>{c[s]&&c[s](t[i],r)&&(a.push({element:c,datasetIndex:d,index:f}),l=l||c.inRange(t.x,t.y,r))}),n&&!l?[]:a}var JW={evaluateInteractionItems:Gu,modes:{index(o,t,i,n){let r=rl(t,o),a=i.axis||"x",s=i.includeInvisible||!1,l=i.intersect?ew(o,r,a,n,s):tw(o,r,a,!1,n,s),c=[];return l.length?(o.getSortedVisibleDatasetMetas().forEach(d=>{let f=l[0].index,h=d.data[f];h&&!h.skip&&c.push({element:h,datasetIndex:d.index,index:f})}),c):[]},dataset(o,t,i,n){let r=rl(t,o),a=i.axis||"xy",s=i.includeInvisible||!1,l=i.intersect?ew(o,r,a,n,s):tw(o,r,a,!1,n,s);if(l.length>0){let c=l[0].datasetIndex,d=o.getDatasetMeta(c).data;l=[];for(let f=0;f<d.length;++f)l.push({element:d[f],datasetIndex:c,index:f})}return l},point(o,t,i,n){let r=rl(t,o),a=i.axis||"xy",s=i.includeInvisible||!1;return ew(o,r,a,n,s)},nearest(o,t,i,n){let r=rl(t,o),a=i.axis||"xy",s=i.includeInvisible||!1;return tw(o,r,a,i.intersect,n,s)},x(o,t,i,n){let r=rl(t,o);return t6(o,r,"x",i.intersect,n)},y(o,t,i,n){let r=rl(t,o);return t6(o,r,"y",i.intersect,n)}}},G6=["left","top","right","bottom"];function qu(o,t){return o.filter(i=>i.pos===t)}function i6(o,t){return o.filter(i=>G6.indexOf(i.pos)===-1&&i.box.axis===t)}function Pu(o,t){return o.sort((i,n)=>{let r=t?n:i,a=t?i:n;return r.weight===a.weight?r.index-a.index:r.weight-a.weight})}function QW(o){let t=[],i,n,r,a,s,l;for(i=0,n=(o||[]).length;i<n;++i)r=o[i],{position:a,options:{stack:s,stackWeight:l=1}}=r,t.push({index:i,box:r,pos:a,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&a+s,stackWeight:l});return t}function ZW(o){let t={};for(let i of o){let{stack:n,pos:r,stackWeight:a}=i;if(!n||!G6.includes(r))continue;let s=t[n]||(t[n]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=a}return t}function ej(o,t){let i=ZW(o),{vBoxMaxWidth:n,hBoxMaxHeight:r}=t,a,s,l;for(a=0,s=o.length;a<s;++a){l=o[a];let{fullSize:c}=l.box,d=i[l.stack],f=d&&l.stackWeight/d.weight;l.horizontal?(l.width=f?f*n:c&&t.availableWidth,l.height=r):(l.width=n,l.height=f?f*r:c&&t.availableHeight)}return i}function tj(o){let t=QW(o),i=Pu(t.filter(d=>d.box.fullSize),!0),n=Pu(qu(t,"left"),!0),r=Pu(qu(t,"right")),a=Pu(qu(t,"top"),!0),s=Pu(qu(t,"bottom")),l=i6(t,"x"),c=i6(t,"y");return{fullSize:i,leftAndTop:n.concat(a),rightAndBottom:r.concat(c).concat(s).concat(l),chartArea:qu(t,"chartArea"),vertical:n.concat(r).concat(c),horizontal:a.concat(s).concat(l)}}function n6(o,t,i,n){return Math.max(o[i],t[i])+Math.max(o[n],t[n])}function Y6(o,t){o.top=Math.max(o.top,t.top),o.left=Math.max(o.left,t.left),o.bottom=Math.max(o.bottom,t.bottom),o.right=Math.max(o.right,t.right)}function ij(o,t,i,n){let{pos:r,box:a}=i,s=o.maxPadding;if(!gt(r)){i.size&&(o[r]-=i.size);let h=n[i.stack]||{size:0,count:1};h.size=Math.max(h.size,i.horizontal?a.height:a.width),i.size=h.size/h.count,o[r]+=i.size}a.getPadding&&Y6(s,a.getPadding());let l=Math.max(0,t.outerWidth-n6(s,o,"left","right")),c=Math.max(0,t.outerHeight-n6(s,o,"top","bottom")),d=l!==o.w,f=c!==o.h;return o.w=l,o.h=c,i.horizontal?{same:d,other:f}:{same:f,other:d}}function nj(o){let t=o.maxPadding;function i(n){let r=Math.max(t[n]-o[n],0);return o[n]+=r,r}o.y+=i("top"),o.x+=i("left"),i("right"),i("bottom")}function rj(o,t){let i=t.maxPadding;function n(r){let a={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{a[s]=Math.max(t[s],i[s])}),a}return n(o?["left","right"]:["top","bottom"])}function $u(o,t,i,n){let r=[],a,s,l,c,d,f;for(a=0,s=o.length,d=0;a<s;++a){l=o[a],c=l.box,c.update(l.width||t.w,l.height||t.h,rj(l.horizontal,t));let{same:h,other:p}=ij(t,i,l,n);d|=h&&r.length,f=f||p,c.fullSize||r.push(l)}return d&&$u(r,t,i,n)||f}function pb(o,t,i,n,r){o.top=i,o.left=t,o.right=t+n,o.bottom=i+r,o.width=n,o.height=r}function r6(o,t,i,n){let r=i.padding,{x:a,y:s}=t;for(let l of o){let c=l.box,d=n[l.stack]||{count:1,placed:0,weight:1},f=l.stackWeight/d.weight||1;if(l.horizontal){let h=t.w*f,p=d.size||c.height;tf(d.start)&&(s=d.start),c.fullSize?pb(c,r.left,s,i.outerWidth-r.right-r.left,p):pb(c,t.left+d.placed,s,h,p),d.start=s,d.placed+=h,s=c.bottom}else{let h=t.h*f,p=d.size||c.width;tf(d.start)&&(a=d.start),c.fullSize?pb(c,a,r.top,p,i.outerHeight-r.bottom-r.top):pb(c,a,t.top+d.placed,p,h),d.start=a,d.placed+=h,a=c.right}}t.x=a,t.y=s}var Cn={addBox(o,t){o.boxes||(o.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(i){t.draw(i)}}]},o.boxes.push(t)},removeBox(o,t){let i=o.boxes?o.boxes.indexOf(t):-1;i!==-1&&o.boxes.splice(i,1)},configure(o,t,i){t.fullSize=i.fullSize,t.position=i.position,t.weight=i.weight},update(o,t,i,n){if(!o)return;let r=gn(o.options.layout.padding),a=Math.max(t-r.width,0),s=Math.max(i-r.height,0),l=tj(o.boxes),c=l.vertical,d=l.horizontal;Lt(o.boxes,b=>{typeof b.beforeLayout=="function"&&b.beforeLayout()});let f=c.reduce((b,x)=>x.box.options&&x.box.options.display===!1?b:b+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:i,padding:r,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/f,hBoxMaxHeight:s/2}),p=Object.assign({},r);Y6(p,gn(n));let m=Object.assign({maxPadding:p,w:a,h:s,x:r.left,y:r.top},r),v=ej(c.concat(d),h);$u(l.fullSize,m,h,v),$u(c,m,h,v),$u(d,m,h,v)&&$u(c,m,h,v),nj(m),r6(l.leftAndTop,m,h,v),m.x+=m.w,m.y+=m.h,r6(l.rightAndBottom,m,h,v),o.chartArea={left:m.left,top:m.top,right:m.left+m.w,bottom:m.top+m.h,height:m.h,width:m.w},Lt(l.chartArea,b=>{let x=b.box;Object.assign(x,o.chartArea),x.update(m.w,m.h,{left:0,top:0,right:0,bottom:0})})}},_b=class{acquireContext(t,i){}releaseContext(t){return!1}addEventListener(t,i,n){}removeEventListener(t,i,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,i,n,r){return i=Math.max(0,i||t.width),n=n||t.height,{width:i,height:Math.max(0,r?Math.floor(i/r):n)}}isAttached(t){return!0}updateConfig(t){}},cw=class extends _b{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}},xb="$chartjs",oj={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},o6=o=>o===null||o==="";function aj(o,t){let i=o.style,n=o.getAttribute("height"),r=o.getAttribute("width");if(o[xb]={initial:{height:n,width:r,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",o6(r)){let a=jx(o,"width");a!==void 0&&(o.width=a)}if(o6(n))if(o.style.height==="")o.height=o.width/(t||2);else{let a=jx(o,"height");a!==void 0&&(o.height=a)}return o}var X6=HS?{passive:!0}:!1;function sj(o,t,i){o&&o.addEventListener(t,i,X6)}function lj(o,t,i){o&&o.canvas&&o.canvas.removeEventListener(t,i,X6)}function cj(o,t){let i=oj[o.type]||o.type,{x:n,y:r}=rl(o,t);return{type:i,chart:t,native:o,x:n!==void 0?n:null,y:r!==void 0?r:null}}function zb(o,t){for(let i of o)if(i===t||i.contains(t))return!0}function dj(o,t,i){let n=o.canvas,r=new MutationObserver(a=>{let s=!1;for(let l of a)s=s||zb(l.addedNodes,n),s=s&&!zb(l.removedNodes,n);s&&i()});return r.observe(document,{childList:!0,subtree:!0}),r}function fj(o,t,i){let n=o.canvas,r=new MutationObserver(a=>{let s=!1;for(let l of a)s=s||zb(l.removedNodes,n),s=s&&!zb(l.addedNodes,n);s&&i()});return r.observe(document,{childList:!0,subtree:!0}),r}var ju=new Map,a6=0;function K6(){let o=window.devicePixelRatio;o!==a6&&(a6=o,ju.forEach((t,i)=>{i.currentDevicePixelRatio!==o&&t()}))}function hj(o,t){ju.size||window.addEventListener("resize",K6),ju.set(o,t)}function uj(o){ju.delete(o),ju.size||window.removeEventListener("resize",K6)}function pj(o,t,i){let n=o.canvas,r=n&&hb(n);if(!r)return;let a=Lx((l,c)=>{let d=r.clientWidth;i(l,c),d<r.clientWidth&&i()},window),s=new ResizeObserver(l=>{let c=l[0],d=c.contentRect.width,f=c.contentRect.height;d===0&&f===0||a(d,f)});return s.observe(r),hj(o,a),s}function iw(o,t,i){i&&i.disconnect(),t==="resize"&&uj(o)}function mj(o,t,i){let n=o.canvas,r=Lx(a=>{o.ctx!==null&&i(cj(a,o))},o);return sj(n,t,r),r}var dw=class extends _b{acquireContext(t,i){let n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(aj(t,i),n):null}releaseContext(t){let i=t.canvas;if(!i[xb])return!1;let n=i[xb].initial;["height","width"].forEach(a=>{let s=n[a];pt(s)?i.removeAttribute(a):i.setAttribute(a,s)});let r=n.style||{};return Object.keys(r).forEach(a=>{i.style[a]=r[a]}),i.width=i.width,delete i[xb],!0}addEventListener(t,i,n){this.removeEventListener(t,i);let r=t.$proxies||(t.$proxies={}),s={attach:dj,detach:fj,resize:pj}[i]||mj;r[i]=s(t,i,n)}removeEventListener(t,i){let n=t.$proxies||(t.$proxies={}),r=n[i];if(!r)return;({attach:iw,detach:iw,resize:iw}[i]||lj)(t,i,r),n[i]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,i,n,r){return NS(t,i,n,r)}isAttached(t){let i=t&&hb(t);return!!(i&&i.isConnected)}};function gj(o){return!fb()||typeof OffscreenCanvas!="undefined"&&o instanceof OffscreenCanvas?cw:dw}var Pr=class{constructor(){ie(this,"x");ie(this,"y");ie(this,"active",!1);ie(this,"options");ie(this,"$animations")}tooltipPosition(t){let{x:i,y:n}=this.getProps(["x","y"],t);return{x:i,y:n}}hasValue(){return Sc(this.x)&&Sc(this.y)}getProps(t,i){let n=this.$animations;if(!i||!n)return this;let r={};return t.forEach(a=>{r[a]=n[a]&&n[a].active()?n[a]._to:this[a]}),r}};ie(Pr,"defaults",{}),ie(Pr,"defaultRoutes");function bj(o,t){let i=o.options.ticks,n=vj(o),r=Math.min(i.maxTicksLimit||n,n),a=i.major.enabled?xj(t):[],s=a.length,l=a[0],c=a[s-1],d=[];if(s>r)return wj(t,d,a,s/r),d;let f=yj(a,t,r);if(s>0){let h,p,m=s>1?Math.round((c-l)/(s-1)):null;for(mb(t,d,f,pt(m)?0:l-m,l),h=0,p=s-1;h<p;h++)mb(t,d,f,a[h],a[h+1]);return mb(t,d,f,c,pt(m)?t.length:c+m),d}return mb(t,d,f),d}function vj(o){let t=o.options.offset,i=o._tickSize(),n=o._length/i+(t?0:1),r=o._maxLength/i;return Math.floor(Math.min(n,r))}function yj(o,t,i){let n=kj(o),r=t.length/i;if(!n)return Math.max(r,1);let a=wS(n);for(let s=0,l=a.length-1;s<l;s++){let c=a[s];if(c>r)return c}return Math.max(r,1)}function xj(o){let t=[],i,n;for(i=0,n=o.length;i<n;i++)o[i].major&&t.push(i);return t}function wj(o,t,i,n){let r=0,a=i[0],s;for(n=Math.ceil(n),s=0;s<o.length;s++)s===a&&(t.push(o[s]),r++,a=i[r*n])}function mb(o,t,i,n,r){let a=st(n,0),s=Math.min(st(r,o.length),o.length),l=0,c,d,f;for(i=Math.ceil(i),r&&(c=r-n,i=c/Math.floor(c/i)),f=a;f<0;)l++,f=Math.round(a+l*i);for(d=Math.max(a,0);d<s;d++)d===f&&(t.push(o[d]),l++,f=Math.round(a+l*i))}function kj(o){let t=o.length,i,n;if(t<2)return!1;for(n=o[0],i=1;i<t;++i)if(o[i]-o[i-1]!==n)return!1;return n}var _j=o=>o==="left"?"right":o==="right"?"left":o,s6=(o,t,i)=>t==="top"||t==="left"?o[t]+i:o[t]-i,l6=(o,t)=>Math.min(t||o,o);function c6(o,t){let i=[],n=o.length/t,r=o.length,a=0;for(;a<r;a+=n)i.push(o[Math.floor(a)]);return i}function zj(o,t,i){let n=o.ticks.length,r=Math.min(t,n-1),a=o._startPixel,s=o._endPixel,l=1e-6,c=o.getPixelForTick(r),d;if(!(i&&(n===1?d=Math.max(c-a,s-c):t===0?d=(o.getPixelForTick(1)-c)/2:d=(c-o.getPixelForTick(r-1))/2,c+=r<t?d:-d,c<a-l||c>s+l)))return c}function Cj(o,t){Lt(o,i=>{let n=i.gc,r=n.length/2,a;if(r>t){for(a=0;a<r;++a)delete i.data[n[a]];n.splice(0,r)}})}function Ru(o){return o.drawTicks?o.tickLength:0}function d6(o,t){if(!o.display)return 0;let i=Ri(o.font,t),n=gn(o.padding);return(Vt(o.text)?o.text.length:1)*i.lineHeight+n.height}function Sj(o,t){return rs(o,{scale:t,type:"scale"})}function Aj(o,t,i){return rs(o,{tick:i,index:t,type:"tick"})}function Ej(o,t,i){let n=ab(o);return(i&&t!=="right"||!i&&t==="right")&&(n=_j(n)),n}function Tj(o,t,i,n){let{top:r,left:a,bottom:s,right:l,chart:c}=o,{chartArea:d,scales:f}=c,h=0,p,m,v,b=s-r,x=l-a;if(o.isHorizontal()){if(m=mn(n,a,l),gt(i)){let k=Object.keys(i)[0],z=i[k];v=f[k].getPixelForValue(z)+b-t}else i==="center"?v=(d.bottom+d.top)/2+b-t:v=s6(o,i,t);p=l-a}else{if(gt(i)){let k=Object.keys(i)[0],z=i[k];m=f[k].getPixelForValue(z)-x+t}else i==="center"?m=(d.left+d.right)/2-x+t:m=s6(o,i,t);v=mn(n,s,r),h=i==="left"?-wi:wi}return{titleX:m,titleY:v,maxWidth:p,rotation:h}}var Rc=class o extends Pr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,i){return t}getUserBounds(){let{_userMin:t,_userMax:i,_suggestedMin:n,_suggestedMax:r}=this;return t=ar(t,Number.POSITIVE_INFINITY),i=ar(i,Number.NEGATIVE_INFINITY),n=ar(n,Number.POSITIVE_INFINITY),r=ar(r,Number.NEGATIVE_INFINITY),{min:ar(t,n),max:ar(i,r),minDefined:hi(t),maxDefined:hi(i)}}getMinMax(t){let{min:i,max:n,minDefined:r,maxDefined:a}=this.getUserBounds(),s;if(r&&a)return{min:i,max:n};let l=this.getMatchingVisibleMetas();for(let c=0,d=l.length;c<d;++c)s=l[c].controller.getMinMax(this,t),r||(i=Math.min(i,s.min)),a||(n=Math.max(n,s.max));return i=a&&i>n?n:i,n=r&&i>n?i:n,{min:ar(i,ar(n,i)),max:ar(n,ar(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Ht(this.options.beforeUpdate,[this])}update(t,i,n){let{beginAtZero:r,grace:a,ticks:s}=this.options,l=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=i,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=RS(this,a,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let c=l<this.ticks.length;this._convertTicksToLabels(c?c6(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=bj(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,i,n;this.isHorizontal()?(i=this.left,n=this.right):(i=this.top,n=this.bottom,t=!t),this._startPixel=i,this._endPixel=n,this._reversePixels=t,this._length=n-i,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Ht(this.options.afterUpdate,[this])}beforeSetDimensions(){Ht(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Ht(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Ht(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Ht(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){let i=this.options.ticks,n,r,a;for(n=0,r=t.length;n<r;n++)a=t[n],a.label=Ht(i.callback,[a.value,n,t],this)}afterTickToLabelConversion(){Ht(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Ht(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let t=this.options,i=t.ticks,n=l6(this.ticks.length,t.ticks.maxTicksLimit),r=i.minRotation||0,a=i.maxRotation,s=r,l,c,d;if(!this._isVisible()||!i.display||r>=a||n<=1||!this.isHorizontal()){this.labelRotation=r;return}let f=this._getLabelSizes(),h=f.widest.width,p=f.highest.height,m=Vi(this.chart.width-h,0,this.maxWidth);l=t.offset?this.maxWidth/n:m/(n-1),h+6>l&&(l=m/(n-(t.offset?.5:1)),c=this.maxHeight-Ru(t.grid)-i.padding-d6(t.title,this.chart.options.font),d=Math.sqrt(h*h+p*p),s=rb(Math.min(Math.asin(Vi((f.highest.height+6)/l,-1,1)),Math.asin(Vi(c/d,-1,1))-Math.asin(Vi(p/d,-1,1)))),s=Math.max(r,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){Ht(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Ht(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:i,options:{ticks:n,title:r,grid:a}}=this,s=this._isVisible(),l=this.isHorizontal();if(s){let c=d6(r,i.options.font);if(l?(t.width=this.maxWidth,t.height=Ru(a)+c):(t.height=this.maxHeight,t.width=Ru(a)+c),n.display&&this.ticks.length){let{first:d,last:f,widest:h,highest:p}=this._getLabelSizes(),m=n.padding*2,v=fo(this.labelRotation),b=Math.cos(v),x=Math.sin(v);if(l){let k=n.mirror?0:x*h.width+b*p.height;t.height=Math.min(this.maxHeight,t.height+k+m)}else{let k=n.mirror?0:b*h.width+x*p.height;t.width=Math.min(this.maxWidth,t.width+k+m)}this._calculatePadding(d,f,x,b)}}this._handleMargins(),l?(this.width=this._length=i.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=i.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,i,n,r){let{ticks:{align:a,padding:s},position:l}=this.options,c=this.labelRotation!==0,d=l!=="top"&&this.axis==="x";if(this.isHorizontal()){let f=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1),p=0,m=0;c?d?(p=r*t.width,m=n*i.height):(p=n*t.height,m=r*i.width):a==="start"?m=i.width:a==="end"?p=t.width:a!=="inner"&&(p=t.width/2,m=i.width/2),this.paddingLeft=Math.max((p-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((m-h+s)*this.width/(this.width-h),0)}else{let f=i.height/2,h=t.height/2;a==="start"?(f=0,h=t.height):a==="end"&&(f=i.height,h=0),this.paddingTop=f+s,this.paddingBottom=h+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Ht(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:i}=this.options;return i==="top"||i==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let i,n;for(i=0,n=t.length;i<n;i++)pt(t[i].label)&&(t.splice(i,1),n--,i--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){let i=this.options.ticks.sampleSize,n=this.ticks;i<n.length&&(n=c6(n,i)),this._labelSizes=t=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,i,n){let{ctx:r,_longestTextCache:a}=this,s=[],l=[],c=Math.floor(i/l6(i,n)),d=0,f=0,h,p,m,v,b,x,k,z,E,A,C;for(h=0;h<i;h+=c){if(v=t[h].label,b=this._resolveTickFontOptions(h),r.font=x=b.string,k=a[x]=a[x]||{data:{},gc:[]},z=b.lineHeight,E=A=0,!pt(v)&&!Vt(v))E=Su(r,k.data,k.gc,E,v),A=z;else if(Vt(v))for(p=0,m=v.length;p<m;++p)C=v[p],!pt(C)&&!Vt(C)&&(E=Su(r,k.data,k.gc,E,C),A+=z);s.push(E),l.push(A),d=Math.max(E,d),f=Math.max(A,f)}Cj(a,i);let L=s.indexOf(d),M=l.indexOf(f),P=I=>({width:s[I]||0,height:l[I]||0});return{first:P(0),last:P(i-1),widest:P(L),highest:P(M),widths:s,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,i){return NaN}getValueForPixel(t){}getPixelForTick(t){let i=this.ticks;return t<0||t>i.length-1?null:this.getPixelForValue(i[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let i=this._startPixel+t*this._length;return _S(this._alignToPixels?tl(this.chart,i,0):i)}getDecimalForPixel(t){let i=(t-this._startPixel)/this._length;return this._reversePixels?1-i:i}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:i}=this;return t<0&&i<0?i:t>0&&i>0?t:0}getContext(t){let i=this.ticks||[];if(t>=0&&t<i.length){let n=i[t];return n.$context||(n.$context=Aj(this.getContext(),t,n))}return this.$context||(this.$context=Sj(this.chart.getContext(),this))}_tickSize(){let t=this.options.ticks,i=fo(this.labelRotation),n=Math.abs(Math.cos(i)),r=Math.abs(Math.sin(i)),a=this._getLabelSizes(),s=t.autoSkipPadding||0,l=a?a.widest.width+s:0,c=a?a.highest.height+s:0;return this.isHorizontal()?c*n>l*r?l/n:c/r:c*r<l*n?c/n:l/r}_isVisible(){let t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){let i=this.axis,n=this.chart,r=this.options,{grid:a,position:s,border:l}=r,c=a.offset,d=this.isHorizontal(),h=this.ticks.length+(c?1:0),p=Ru(a),m=[],v=l.setContext(this.getContext()),b=v.display?v.width:0,x=b/2,k=function(se){return tl(n,se,b)},z,E,A,C,L,M,P,I,N,B,U,ee;if(s==="top")z=k(this.bottom),M=this.bottom-p,I=z-x,B=k(t.top)+x,ee=t.bottom;else if(s==="bottom")z=k(this.top),B=t.top,ee=k(t.bottom)-x,M=z+x,I=this.top+p;else if(s==="left")z=k(this.right),L=this.right-p,P=z-x,N=k(t.left)+x,U=t.right;else if(s==="right")z=k(this.left),N=t.left,U=k(t.right)-x,L=z+x,P=this.left+p;else if(i==="x"){if(s==="center")z=k((t.top+t.bottom)/2+.5);else if(gt(s)){let se=Object.keys(s)[0],de=s[se];z=k(this.chart.scales[se].getPixelForValue(de))}B=t.top,ee=t.bottom,M=z+x,I=M+p}else if(i==="y"){if(s==="center")z=k((t.left+t.right)/2);else if(gt(s)){let se=Object.keys(s)[0],de=s[se];z=k(this.chart.scales[se].getPixelForValue(de))}L=z-x,P=L-p,N=t.left,U=t.right}let ae=st(r.ticks.maxTicksLimit,h),oe=Math.max(1,Math.ceil(h/ae));for(E=0;E<h;E+=oe){let se=this.getContext(E),de=a.setContext(se),_e=l.setContext(se),ve=de.lineWidth,Ae=de.color,Le=_e.dash||[],Se=_e.dashOffset,Ze=de.tickWidth,Ne=de.tickColor,Re=de.tickBorderDash||[],xe=de.tickBorderDashOffset;A=zj(this,E,c),A!==void 0&&(C=tl(n,A,ve),d?L=P=N=U=C:M=I=B=ee=C,m.push({tx1:L,ty1:M,tx2:P,ty2:I,x1:N,y1:B,x2:U,y2:ee,width:ve,color:Ae,borderDash:Le,borderDashOffset:Se,tickWidth:Ze,tickColor:Ne,tickBorderDash:Re,tickBorderDashOffset:xe}))}return this._ticksLength=h,this._borderValue=z,m}_computeLabelItems(t){let i=this.axis,n=this.options,{position:r,ticks:a}=n,s=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:d,padding:f,mirror:h}=a,p=Ru(n.grid),m=p+f,v=h?-f:m,b=-fo(this.labelRotation),x=[],k,z,E,A,C,L,M,P,I,N,B,U,ee="middle";if(r==="top")L=this.bottom-v,M=this._getXAxisLabelAlignment();else if(r==="bottom")L=this.top+v,M=this._getXAxisLabelAlignment();else if(r==="left"){let oe=this._getYAxisLabelAlignment(p);M=oe.textAlign,C=oe.x}else if(r==="right"){let oe=this._getYAxisLabelAlignment(p);M=oe.textAlign,C=oe.x}else if(i==="x"){if(r==="center")L=(t.top+t.bottom)/2+m;else if(gt(r)){let oe=Object.keys(r)[0],se=r[oe];L=this.chart.scales[oe].getPixelForValue(se)+m}M=this._getXAxisLabelAlignment()}else if(i==="y"){if(r==="center")C=(t.left+t.right)/2-m;else if(gt(r)){let oe=Object.keys(r)[0],se=r[oe];C=this.chart.scales[oe].getPixelForValue(se)}M=this._getYAxisLabelAlignment(p).textAlign}i==="y"&&(c==="start"?ee="top":c==="end"&&(ee="bottom"));let ae=this._getLabelSizes();for(k=0,z=l.length;k<z;++k){E=l[k],A=E.label;let oe=a.setContext(this.getContext(k));P=this.getPixelForTick(k)+a.labelOffset,I=this._resolveTickFontOptions(k),N=I.lineHeight,B=Vt(A)?A.length:1;let se=B/2,de=oe.color,_e=oe.textStrokeColor,ve=oe.textStrokeWidth,Ae=M;s?(C=P,M==="inner"&&(k===z-1?Ae=this.options.reverse?"left":"right":k===0?Ae=this.options.reverse?"right":"left":Ae="center"),r==="top"?d==="near"||b!==0?U=-B*N+N/2:d==="center"?U=-ae.highest.height/2-se*N+N:U=-ae.highest.height+N/2:d==="near"||b!==0?U=N/2:d==="center"?U=ae.highest.height/2-se*N:U=ae.highest.height-B*N,h&&(U*=-1),b!==0&&!oe.showLabelBackdrop&&(C+=N/2*Math.sin(b))):(L=P,U=(1-B)*N/2);let Le;if(oe.showLabelBackdrop){let Se=gn(oe.backdropPadding),Ze=ae.heights[k],Ne=ae.widths[k],Re=U-Se.top,xe=0-Se.left;switch(ee){case"middle":Re-=Ze/2;break;case"bottom":Re-=Ze;break}switch(M){case"center":xe-=Ne/2;break;case"right":xe-=Ne;break;case"inner":k===z-1?xe-=Ne:k>0&&(xe-=Ne/2);break}Le={left:xe,top:Re,width:Ne+Se.width,height:Ze+Se.height,color:oe.backdropColor}}x.push({label:A,font:I,textOffset:U,options:{rotation:b,color:de,strokeColor:_e,strokeWidth:ve,textAlign:Ae,textBaseline:ee,translation:[C,L],backdrop:Le}})}return x}_getXAxisLabelAlignment(){let{position:t,ticks:i}=this.options;if(-fo(this.labelRotation))return t==="top"?"left":"right";let r="center";return i.align==="start"?r="left":i.align==="end"?r="right":i.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){let{position:i,ticks:{crossAlign:n,mirror:r,padding:a}}=this.options,s=this._getLabelSizes(),l=t+a,c=s.widest.width,d,f;return i==="left"?r?(f=this.right+a,n==="near"?d="left":n==="center"?(d="center",f+=c/2):(d="right",f+=c)):(f=this.right-l,n==="near"?d="right":n==="center"?(d="center",f-=c/2):(d="left",f=this.left)):i==="right"?r?(f=this.left+a,n==="near"?d="right":n==="center"?(d="center",f-=c/2):(d="left",f-=c)):(f=this.left+l,n==="near"?d="left":n==="center"?(d="center",f+=c/2):(d="right",f=this.right)):d="right",{textAlign:d,x:f}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,i=this.options.position;if(i==="left"||i==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(i==="top"||i==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){let{ctx:t,options:{backgroundColor:i},left:n,top:r,width:a,height:s}=this;i&&(t.save(),t.fillStyle=i,t.fillRect(n,r,a,s),t.restore())}getLineWidthForValue(t){let i=this.options.grid;if(!this._isVisible()||!i.display)return 0;let r=this.ticks.findIndex(a=>a.value===t);return r>=0?i.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){let i=this.options.grid,n=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),a,s,l=(c,d,f)=>{!f.width||!f.color||(n.save(),n.lineWidth=f.width,n.strokeStyle=f.color,n.setLineDash(f.borderDash||[]),n.lineDashOffset=f.borderDashOffset,n.beginPath(),n.moveTo(c.x,c.y),n.lineTo(d.x,d.y),n.stroke(),n.restore())};if(i.display)for(a=0,s=r.length;a<s;++a){let c=r[a];i.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),i.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){let{chart:t,ctx:i,options:{border:n,grid:r}}=this,a=n.setContext(this.getContext()),s=n.display?a.width:0;if(!s)return;let l=r.setContext(this.getContext(0)).lineWidth,c=this._borderValue,d,f,h,p;this.isHorizontal()?(d=tl(t,this.left,s)-s/2,f=tl(t,this.right,l)+l/2,h=p=c):(h=tl(t,this.top,s)-s/2,p=tl(t,this.bottom,l)+l/2,d=f=c),i.save(),i.lineWidth=a.width,i.strokeStyle=a.color,i.beginPath(),i.moveTo(d,h),i.lineTo(f,p),i.stroke(),i.restore()}drawLabels(t){if(!this.options.ticks.display)return;let n=this.ctx,r=this._computeLabelArea();r&&Tu(n,r);let a=this.getLabelItems(t);for(let s of a){let l=s.options,c=s.font,d=s.label,f=s.textOffset;il(n,d,0,f,c,l)}r&&Mu(n)}drawTitle(){let{ctx:t,options:{position:i,title:n,reverse:r}}=this;if(!n.display)return;let a=Ri(n.font),s=gn(n.padding),l=n.align,c=a.lineHeight/2;i==="bottom"||i==="center"||gt(i)?(c+=s.bottom,Vt(n.text)&&(c+=a.lineHeight*(n.text.length-1))):c+=s.top;let{titleX:d,titleY:f,maxWidth:h,rotation:p}=Tj(this,c,i,l);il(t,n.text,0,0,a,{color:n.color,maxWidth:h,rotation:p,textAlign:Ej(l,i,r),textBaseline:"middle",translation:[d,f]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){let t=this.options,i=t.ticks&&t.ticks.z||0,n=st(t.grid&&t.grid.z,-1),r=st(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==o.prototype.draw?[{z:i,draw:a=>{this.draw(a)}}]:[{z:n,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:i,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){let i=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",r=[],a,s;for(a=0,s=i.length;a<s;++a){let l=i[a];l[n]===this.id&&(!t||l.type===t)&&r.push(l)}return r}_resolveTickFontOptions(t){let i=this.options.ticks.setContext(this.getContext(t));return Ri(i.font)}_maxDigits(){let t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}},gf=class{constructor(t,i,n){this.type=t,this.scope=i,this.override=n,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){let i=Object.getPrototypeOf(t),n;qj(i)&&(n=this.register(i));let r=this.items,a=t.id,s=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+t);return a in r||(r[a]=t,Mj(t,s,n),this.override&&ti.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){let i=this.items,n=t.id,r=this.scope;n in i&&delete i[n],r&&n in ti[r]&&(delete ti[r][n],this.override&&delete el[n])}};function Mj(o,t,i){let n=Qd(Object.create(null),[i?ti.get(i):{},ti.get(t),o.defaults]);ti.set(t,n),o.defaultRoutes&&Lj(t,o.defaultRoutes),o.descriptors&&ti.describe(t,o.descriptors)}function Lj(o,t){Object.keys(t).forEach(i=>{let n=i.split("."),r=n.pop(),a=[o].concat(n).join("."),s=t[i].split("."),l=s.pop(),c=s.join(".");ti.route(a,r,c,l)})}function qj(o){return"id"in o&&"defaults"in o}var fw=class{constructor(){this.controllers=new gf(qr,"datasets",!0),this.elements=new gf(Pr,"elements"),this.plugins=new gf(Object,"plugins"),this.scales=new gf(Rc,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,i,n){[...i].forEach(r=>{let a=n||this._getRegistryForType(r);n||a.isForType(r)||a===this.plugins&&r.id?this._exec(t,a,r):Lt(r,s=>{let l=n||this._getRegistryForType(s);this._exec(t,l,s)})})}_exec(t,i,n){let r=nb(t);Ht(n["before"+r],[],n),i[t](n),Ht(n["after"+r],[],n)}_getRegistryForType(t){for(let i=0;i<this._typedRegistries.length;i++){let n=this._typedRegistries[i];if(n.isForType(t))return n}return this.plugins}_get(t,i,n){let r=i.get(t);if(r===void 0)throw new Error('"'+t+'" is not a registered '+n+".");return r}},da=new fw,hw=class{constructor(){this._init=[]}notify(t,i,n,r){i==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));let a=r?this._descriptors(t).filter(r):this._descriptors(t),s=this._notify(a,t,i,n);return i==="afterDestroy"&&(this._notify(a,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,i,n,r){r=r||{};for(let a of t){let s=a.plugin,l=s[n],c=[i,r,a.options];if(Ht(l,c,s)===!1&&r.cancelable)return!1}return!0}invalidate(){pt(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;let i=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),i}_createDescriptors(t,i){let n=t&&t.config,r=st(n.options&&n.options.plugins,{}),a=Pj(n);return r===!1&&!i?[]:Oj(t,a,r,i)}_notifyStateChanges(t){let i=this._oldCache||[],n=this._cache,r=(a,s)=>a.filter(l=>!s.some(c=>l.plugin.id===c.plugin.id));this._notify(r(i,n),t,"stop"),this._notify(r(n,i),t,"start")}};function Pj(o){let t={},i=[],n=Object.keys(da.plugins.items);for(let a=0;a<n.length;a++)i.push(da.getPlugin(n[a]));let r=o.plugins||[];for(let a=0;a<r.length;a++){let s=r[a];i.indexOf(s)===-1&&(i.push(s),t[s.id]=!0)}return{plugins:i,localIds:t}}function Rj(o,t){return!t&&o===!1?null:o===!0?{}:o}function Oj(o,{plugins:t,localIds:i},n,r){let a=[],s=o.getContext();for(let l of t){let c=l.id,d=Rj(n[c],r);d!==null&&a.push({plugin:l,options:Dj(o.config,{plugin:l,local:i[c]},d,s)})}return a}function Dj(o,{plugin:t,local:i},n,r){let a=o.pluginScopeKeys(t),s=o.getOptionScopes(n,a);return i&&t.defaults&&s.push(t.defaults),o.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function uw(o,t){let i=ti.datasets[o]||{};return((t.datasets||{})[o]||{}).indexAxis||t.indexAxis||i.indexAxis||"x"}function $j(o,t){let i=o;return o==="_index_"?i=t:o==="_value_"&&(i=t==="x"?"y":"x"),i}function Ij(o,t){return o===t?"_index_":"_value_"}function f6(o){if(o==="x"||o==="y"||o==="r")return o}function Fj(o){if(o==="top"||o==="bottom")return"x";if(o==="left"||o==="right")return"y"}function pw(o,...t){if(f6(o))return o;for(let i of t){let n=i.axis||Fj(i.position)||o.length>1&&f6(o[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${o}' axis. Please provide 'axis' or 'position' option.`)}function h6(o,t,i){if(i[t+"AxisID"]===o)return{axis:t}}function Nj(o,t){if(t.data&&t.data.datasets){let i=t.data.datasets.filter(n=>n.xAxisID===o||n.yAxisID===o);if(i.length)return h6(o,"x",i[0])||h6(o,"y",i[0])}return{}}function Hj(o,t){let i=el[o.type]||{scales:{}},n=t.scales||{},r=uw(o.type,t),a=Object.create(null);return Object.keys(n).forEach(s=>{let l=n[s];if(!gt(l))return console.error(`Invalid scale configuration for scale: ${s}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);let c=pw(s,l,Nj(s,o),ti.scales[l.type]),d=Ij(c,r),f=i.scales||{};a[s]=ef(Object.create(null),[{axis:c},l,f[c],f[d]])}),o.data.datasets.forEach(s=>{let l=s.type||o.type,c=s.indexAxis||uw(l,t),f=(el[l]||{}).scales||{};Object.keys(f).forEach(h=>{let p=$j(h,c),m=s[p+"AxisID"]||p;a[m]=a[m]||Object.create(null),ef(a[m],[{axis:p},n[m],f[h]])})}),Object.keys(a).forEach(s=>{let l=a[s];ef(l,[ti.scales[l.type],ti.scale])}),a}function J6(o){let t=o.options||(o.options={});t.plugins=st(t.plugins,{}),t.scales=Hj(o,t)}function Q6(o){return o=o||{},o.datasets=o.datasets||[],o.labels=o.labels||[],o}function Bj(o){return o=o||{},o.data=Q6(o.data),J6(o),o}var u6=new Map,Z6=new Set;function gb(o,t){let i=u6.get(o);return i||(i=t(),u6.set(o,i),Z6.add(i)),i}var Ou=(o,t,i)=>{let n=ns(t,i);n!==void 0&&o.add(n)},mw=class{constructor(t){this._config=Bj(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Q6(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),J6(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return gb(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,i){return gb(`${t}.transition.${i}`,()=>[[`datasets.${t}.transitions.${i}`,`transitions.${i}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,i){return gb(`${t}-${i}`,()=>[[`datasets.${t}.elements.${i}`,`datasets.${t}`,`elements.${i}`,""]])}pluginScopeKeys(t){let i=t.id,n=this.type;return gb(`${n}-plugin-${i}`,()=>[[`plugins.${i}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,i){let n=this._scopeCache,r=n.get(t);return(!r||i)&&(r=new Map,n.set(t,r)),r}getOptionScopes(t,i,n){let{options:r,type:a}=this,s=this._cachedScopes(t,n),l=s.get(i);if(l)return l;let c=new Set;i.forEach(f=>{t&&(c.add(t),f.forEach(h=>Ou(c,t,h))),f.forEach(h=>Ou(c,r,h)),f.forEach(h=>Ou(c,el[a]||{},h)),f.forEach(h=>Ou(c,ti,h)),f.forEach(h=>Ou(c,sb,h))});let d=Array.from(c);return d.length===0&&d.push(Object.create(null)),Z6.has(i)&&s.set(i,d),d}chartOptionScopes(){let{options:t,type:i}=this;return[t,el[i]||{},ti.datasets[i]||{},{type:i},ti,sb]}resolveNamedOptions(t,i,n,r=[""]){let a={$shared:!0},{resolver:s,subPrefixes:l}=p6(this._resolverCache,t,r),c=s;if(jj(s,i)){a.$shared=!1,n=ts(n)?n():n;let d=this.createResolver(t,n,l);c=Cc(s,n,d)}for(let d of i)a[d]=c[d];return a}createResolver(t,i,n=[""],r){let{resolver:a}=p6(this._resolverCache,t,n);return gt(i)?Cc(a,i,void 0,r):a}};function p6(o,t,i){let n=o.get(t);n||(n=new Map,o.set(t,n));let r=i.join(),a=n.get(r);return a||(a={resolver:db(t,i),subPrefixes:i.filter(l=>!l.toLowerCase().includes("hover"))},n.set(r,a)),a}var Wj=o=>gt(o)&&Object.getOwnPropertyNames(o).some(t=>ts(o[t]));function jj(o,t){let{isScriptable:i,isIndexable:n}=Fx(o);for(let r of t){let a=i(r),s=n(r),l=(s||a)&&o[r];if(a&&(ts(l)||Wj(l))||s&&Vt(l))return!0}return!1}var Vj="4.4.9",Uj=["top","bottom","left","right","chartArea"];function m6(o,t){return o==="top"||o==="bottom"||Uj.indexOf(o)===-1&&t==="x"}function g6(o,t){return function(i,n){return i[o]===n[o]?i[t]-n[t]:i[o]-n[o]}}function b6(o){let t=o.chart,i=t.options.animation;t.notifyPlugins("afterRender"),Ht(i&&i.onComplete,[o],t)}function Gj(o){let t=o.chart,i=t.options.animation;Ht(i&&i.onProgress,[o],t)}function eA(o){return fb()&&typeof o=="string"?o=document.getElementById(o):o&&o.length&&(o=o[0]),o&&o.canvas&&(o=o.canvas),o}var wb={},v6=o=>{let t=eA(o);return Object.values(wb).filter(i=>i.canvas===t).pop()};function Yj(o,t,i){let n=Object.keys(o);for(let r of n){let a=+r;if(a>=t){let s=o[r];delete o[r],(i>0||a>t)&&(o[a+i]=s)}}}function Xj(o,t,i,n){return!i||o.type==="mouseout"?null:n?t:o}var Lr=class{static register(...t){da.add(...t),y6()}static unregister(...t){da.remove(...t),y6()}constructor(t,i){let n=this.config=new mw(i),r=eA(t),a=v6(r);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let s=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||gj(r)),this.platform.updateConfig(n);let l=this.platform.acquireContext(r,s.aspectRatio),c=l&&l.canvas,d=c&&c.height,f=c&&c.width;if(this.id=bS(),this.ctx=l,this.canvas=c,this.width=f,this.height=d,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new hw,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ES(h=>this.update(h),s.resizeDelay||0),this._dataChanges=[],wb[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}os.listen(this,"complete",b6),os.listen(this,"progress",Gj),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:i},width:n,height:r,_aspectRatio:a}=this;return pt(t)?i&&a?a:r?n/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return da}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Wx(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Dx(this.canvas,this.ctx),this}stop(){return os.stop(this),this}resize(t,i){os.running(this)?this._resizeBeforeDraw={width:t,height:i}:this._resize(t,i)}_resize(t,i){let n=this.options,r=this.canvas,a=n.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,i,a),l=n.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Wx(this,l,!0)&&(this.notifyPlugins("resize",{size:s}),Ht(n.onResize,[this,s],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let i=this.options.scales||{};Lt(i,(n,r)=>{n.id=r})}buildOrUpdateScales(){let t=this.options,i=t.scales,n=this.scales,r=Object.keys(n).reduce((s,l)=>(s[l]=!1,s),{}),a=[];i&&(a=a.concat(Object.keys(i).map(s=>{let l=i[s],c=pw(s,l),d=c==="r",f=c==="x";return{options:l,dposition:d?"chartArea":f?"bottom":"left",dtype:d?"radialLinear":f?"category":"linear"}}))),Lt(a,s=>{let l=s.options,c=l.id,d=pw(c,l),f=st(l.type,s.dtype);(l.position===void 0||m6(l.position,d)!==m6(s.dposition))&&(l.position=s.dposition),r[c]=!0;let h=null;if(c in n&&n[c].type===f)h=n[c];else{let p=da.getScale(f);h=new p({id:c,type:f,ctx:this.ctx,chart:this}),n[h.id]=h}h.init(l,t)}),Lt(r,(s,l)=>{s||delete n[l]}),Lt(n,s=>{Cn.configure(this,s,s.options),Cn.addBox(this,s)})}_updateMetasets(){let t=this._metasets,i=this.data.datasets.length,n=t.length;if(t.sort((r,a)=>r.index-a.index),n>i){for(let r=i;r<n;++r)this._destroyDatasetMeta(r);t.splice(i,n-i)}this._sortedMetasets=t.slice(0).sort(g6("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:i}}=this;t.length>i.length&&delete this._stacks,t.forEach((n,r)=>{i.filter(a=>a===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){let t=[],i=this.data.datasets,n,r;for(this._removeUnreferencedMetasets(),n=0,r=i.length;n<r;n++){let a=i[n],s=this.getDatasetMeta(n),l=a.type||this.config.type;if(s.type&&s.type!==l&&(this._destroyDatasetMeta(n),s=this.getDatasetMeta(n)),s.type=l,s.indexAxis=a.indexAxis||uw(l,this.options),s.order=a.order||0,s.index=n,s.label=""+a.label,s.visible=this.isDatasetVisible(n),s.controller)s.controller.updateIndex(n),s.controller.linkScales();else{let c=da.getController(l),{datasetElementType:d,dataElementType:f}=ti.datasets[l];Object.assign(c,{dataElementType:da.getElement(f),datasetElementType:d&&da.getElement(d)}),s.controller=new c(this,n),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Lt(this.data.datasets,(t,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let i=this.config;i.update();let n=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let d=0,f=this.data.datasets.length;d<f;d++){let{controller:h}=this.getDatasetMeta(d),p=!r&&a.indexOf(h)===-1;h.buildOrUpdateElements(p),s=Math.max(+h.getMaxOverflow(),s)}s=this._minPadding=n.layout.autoPadding?s:0,this._updateLayout(s),r||Lt(a,d=>{d.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(g6("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){Lt(this.scales,t=>{Cn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,i=new Set(Object.keys(this._listeners)),n=new Set(t.events);(!_x(i,n)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,i=this._getUniformDataChanges()||[];for(let{method:n,start:r,count:a}of i){let s=n==="_removeElements"?-a:a;Yj(t,r,s)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let i=this.data.datasets.length,n=a=>new Set(t.filter(s=>s[0]===a).map((s,l)=>l+","+s.splice(1).join(","))),r=n(0);for(let a=1;a<i;a++)if(!_x(r,n(a)))return;return Array.from(r).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Cn.update(this,this.width,this.height,t);let i=this.chartArea,n=i.width<=0||i.height<=0;this._layers=[],Lt(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,a)=>{r._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let i=0,n=this.data.datasets.length;i<n;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,n=this.data.datasets.length;i<n;++i)this._updateDataset(i,ts(t)?t({datasetIndex:i}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,i){let n=this.getDatasetMeta(t),r={meta:n,index:t,mode:i,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",r)!==!1&&(n.controller._update(i),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(os.has(this)?this.attached&&!os.running(this)&&os.start(this):(this.draw(),b6({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:n,height:r}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(n,r)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let i=this._layers;for(t=0;t<i.length&&i[t].z<=0;++t)i[t].draw(this.chartArea);for(this._drawDatasets();t<i.length;++t)i[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let i=this._sortedMetasets,n=[],r,a;for(r=0,a=i.length;r<a;++r){let s=i[r];(!t||s.visible)&&n.push(s)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let i=t.length-1;i>=0;--i)this._drawDataset(t[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let i=this.ctx,n={meta:t,index:t.index,cancelable:!0},r=Xx(this,t);this.notifyPlugins("beforeDatasetDraw",n)!==!1&&(r&&Tu(i,r),t.controller.draw(),r&&Mu(i),n.cancelable=!1,this.notifyPlugins("afterDatasetDraw",n))}isPointInArea(t){return aa(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,i,n,r){let a=JW.modes[i];return typeof a=="function"?a(this,t,n,r):[]}getDatasetMeta(t){let i=this.data.datasets[t],n=this._metasets,r=n.filter(a=>a&&a._dataset===i).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:t,_dataset:i,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=rs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let i=this.data.datasets[t];if(!i)return!1;let n=this.getDatasetMeta(t);return typeof n.hidden=="boolean"?!n.hidden:!i.hidden}setDatasetVisibility(t,i){let n=this.getDatasetMeta(t);n.hidden=!i}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,i,n){let r=n?"show":"hide",a=this.getDatasetMeta(t),s=a.controller._resolveAnimations(void 0,r);tf(i)?(a.data[i].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),s.update(a,{visible:n}),this.update(l=>l.datasetIndex===t?r:void 0))}hide(t,i){this._updateVisibility(t,i,!1)}show(t,i){this._updateVisibility(t,i,!0)}_destroyDatasetMeta(t){let i=this._metasets[t];i&&i.controller&&i.controller._destroy(),delete this._metasets[t]}_stop(){let t,i;for(this.stop(),os.remove(this),t=0,i=this.data.datasets.length;t<i;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:i}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Dx(t,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete wb[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,i=this.platform,n=(a,s)=>{i.addEventListener(this,a,s),t[a]=s},r=(a,s,l)=>{a.offsetX=s,a.offsetY=l,this._eventHandler(a)};Lt(this.options.events,a=>n(a,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,i=this.platform,n=(c,d)=>{i.addEventListener(this,c,d),t[c]=d},r=(c,d)=>{t[c]&&(i.removeEventListener(this,c,d),delete t[c])},a=(c,d)=>{this.canvas&&this.resize(c,d)},s,l=()=>{r("attach",l),this.attached=!0,this.resize(),n("resize",a),n("detach",s)};s=()=>{this.attached=!1,r("resize",a),this._stop(),this._resize(0,0),n("attach",l)},i.isAttached(this.canvas)?l():s()}unbindEvents(){Lt(this._listeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._listeners={},Lt(this._responsiveListeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,i,n){let r=n?"set":"remove",a,s,l,c;for(i==="dataset"&&(a=this.getDatasetMeta(t[0].datasetIndex),a.controller["_"+r+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){s=t[l];let d=s&&this.getDatasetMeta(s.datasetIndex).controller;d&&d[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let i=this._active||[],n=t.map(({datasetIndex:a,index:s})=>{let l=this.getDatasetMeta(a);if(!l)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:l.data[s],index:s}});!Au(n,i)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,i))}notifyPlugins(t,i,n){return this._plugins.notify(this,t,i,n)}isPluginEnabled(t){return this._plugins._cache.filter(i=>i.plugin.id===t).length===1}_updateHoverStyles(t,i,n){let r=this.options.hover,a=(c,d)=>c.filter(f=>!d.some(h=>f.datasetIndex===h.datasetIndex&&f.index===h.index)),s=a(i,t),l=n?t:a(t,i);s.length&&this.updateHoverStyle(s,r.mode,!1),l.length&&r.mode&&this.updateHoverStyle(l,r.mode,!0)}_eventHandler(t,i){let n={event:t,replay:i,cancelable:!0,inChartArea:this.isPointInArea(t)},r=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;let a=this._handleEvent(t,i,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(a||n.changed)&&this.render(),this}_handleEvent(t,i,n){let{_active:r=[],options:a}=this,s=i,l=this._getActiveElements(t,r,n,s),c=xS(t),d=Xj(t,this._lastEvent,n,c);n&&(this._lastEvent=null,Ht(a.onHover,[t,l,this],this),c&&Ht(a.onClick,[t,l,this],this));let f=!Au(l,r);return(f||i)&&(this._active=l,this._updateHoverStyles(l,r,i)),this._lastEvent=d,f}_getActiveElements(t,i,n,r){if(t.type==="mouseout")return[];if(!n)return i;let a=this.options.hover;return this.getElementsAtEventForMode(t,a.mode,a,r)}};ie(Lr,"defaults",ti),ie(Lr,"instances",wb),ie(Lr,"overrides",el),ie(Lr,"registry",da),ie(Lr,"version",Vj),ie(Lr,"getChart",v6);function y6(){return Lt(Lr.instances,o=>o._plugins.invalidate())}function Kj(o,t,i){let{startAngle:n,pixelMargin:r,x:a,y:s,outerRadius:l,innerRadius:c}=t,d=r/l;o.beginPath(),o.arc(a,s,l,n-d,i+d),c>r?(d=r/c,o.arc(a,s,c,i+d,n-d,!0)):o.arc(a,s,r,i+wi,n-wi),o.closePath(),o.clip()}function Jj(o){return cb(o,["outerStart","outerEnd","innerStart","innerEnd"])}function Qj(o,t,i,n){let r=Jj(o.options.borderRadius),a=(i-t)/2,s=Math.min(a,n*t/2),l=c=>{let d=(i-Math.min(a,c))*n/2;return Vi(c,0,Math.min(a,d))};return{outerStart:l(r.outerStart),outerEnd:l(r.outerEnd),innerStart:Vi(r.innerStart,0,s),innerEnd:Vi(r.innerEnd,0,s)}}function lf(o,t,i,n){return{x:i+o*Math.cos(t),y:n+o*Math.sin(t)}}function Cb(o,t,i,n,r,a){let{x:s,y:l,startAngle:c,pixelMargin:d,innerRadius:f}=t,h=Math.max(t.outerRadius+n+i-d,0),p=f>0?f+n+i+d:0,m=0,v=r-c;if(n){let oe=f>0?f-n:0,se=h>0?h-n:0,de=(oe+se)/2,_e=de!==0?v*de/(de+n):v;m=(v-_e)/2}let b=Math.max(.001,v*h-i/Ut)/h,x=(v-b)/2,k=c+x+m,z=r-x-m,{outerStart:E,outerEnd:A,innerStart:C,innerEnd:L}=Qj(t,p,h,z-k),M=h-E,P=h-A,I=k+E/M,N=z-A/P,B=p+C,U=p+L,ee=k+C/B,ae=z-L/U;if(o.beginPath(),a){let oe=(I+N)/2;if(o.arc(s,l,h,I,oe),o.arc(s,l,h,oe,N),A>0){let ve=lf(P,N,s,l);o.arc(ve.x,ve.y,A,N,z+wi)}let se=lf(U,z,s,l);if(o.lineTo(se.x,se.y),L>0){let ve=lf(U,ae,s,l);o.arc(ve.x,ve.y,L,z+wi,ae+Math.PI)}let de=(z-L/p+(k+C/p))/2;if(o.arc(s,l,p,z-L/p,de,!0),o.arc(s,l,p,de,k+C/p,!0),C>0){let ve=lf(B,ee,s,l);o.arc(ve.x,ve.y,C,ee+Math.PI,k-wi)}let _e=lf(M,k,s,l);if(o.lineTo(_e.x,_e.y),E>0){let ve=lf(M,I,s,l);o.arc(ve.x,ve.y,E,k-wi,I)}}else{o.moveTo(s,l);let oe=Math.cos(I)*h+s,se=Math.sin(I)*h+l;o.lineTo(oe,se);let de=Math.cos(N)*h+s,_e=Math.sin(N)*h+l;o.lineTo(de,_e)}o.closePath()}function Zj(o,t,i,n,r){let{fullCircles:a,startAngle:s,circumference:l}=t,c=t.endAngle;if(a){Cb(o,t,i,n,c,r);for(let d=0;d<a;++d)o.fill();isNaN(l)||(c=s+(l%Gt||Gt))}return Cb(o,t,i,n,c,r),o.fill(),c}function eV(o,t,i,n,r){let{fullCircles:a,startAngle:s,circumference:l,options:c}=t,{borderWidth:d,borderJoinStyle:f,borderDash:h,borderDashOffset:p}=c,m=c.borderAlign==="inner";if(!d)return;o.setLineDash(h||[]),o.lineDashOffset=p,m?(o.lineWidth=d*2,o.lineJoin=f||"round"):(o.lineWidth=d,o.lineJoin=f||"bevel");let v=t.endAngle;if(a){Cb(o,t,i,n,v,r);for(let b=0;b<a;++b)o.stroke();isNaN(l)||(v=s+(l%Gt||Gt))}m&&Kj(o,t,v),a||(Cb(o,t,i,n,v,r),o.stroke())}var Mc=class extends Pr{constructor(i){super();ie(this,"circumference");ie(this,"endAngle");ie(this,"fullCircles");ie(this,"innerRadius");ie(this,"outerRadius");ie(this,"pixelMargin");ie(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,i&&Object.assign(this,i)}inRange(i,n,r){let a=this.getProps(["x","y"],r),{angle:s,distance:l}=Ax(a,{x:i,y:n}),{startAngle:c,endAngle:d,innerRadius:f,outerRadius:h,circumference:p}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),m=(this.options.spacing+this.options.borderWidth)/2,v=st(p,d-c),b=rf(s,c,d)&&c!==d,x=v>=Gt||b,k=la(l,f+m,h+m);return x&&k}getCenterPoint(i){let{x:n,y:r,startAngle:a,endAngle:s,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],i),{offset:d,spacing:f}=this.options,h=(a+s)/2,p=(l+c+f+d)/2;return{x:n+Math.cos(h)*p,y:r+Math.sin(h)*p}}tooltipPosition(i){return this.getCenterPoint(i)}draw(i){let{options:n,circumference:r}=this,a=(n.offset||0)/4,s=(n.spacing||0)/2,l=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>Gt?Math.floor(r/Gt):0,r===0||this.innerRadius<0||this.outerRadius<0)return;i.save();let c=(this.startAngle+this.endAngle)/2;i.translate(Math.cos(c)*a,Math.sin(c)*a);let d=1-Math.sin(Math.min(Ut,r||0)),f=a*d;i.fillStyle=n.backgroundColor,i.strokeStyle=n.borderColor,Zj(i,this,f,s,l),eV(i,this,f,s,l),i.restore()}};ie(Mc,"id","arc"),ie(Mc,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),ie(Mc,"defaultRoutes",{backgroundColor:"backgroundColor"}),ie(Mc,"descriptors",{_scriptable:!0,_indexable:i=>i!=="borderDash"});function tA(o,t,i=t){o.lineCap=st(i.borderCapStyle,t.borderCapStyle),o.setLineDash(st(i.borderDash,t.borderDash)),o.lineDashOffset=st(i.borderDashOffset,t.borderDashOffset),o.lineJoin=st(i.borderJoinStyle,t.borderJoinStyle),o.lineWidth=st(i.borderWidth,t.borderWidth),o.strokeStyle=st(i.borderColor,t.borderColor)}function tV(o,t,i){o.lineTo(i.x,i.y)}function iV(o){return o.stepped?qS:o.tension||o.cubicInterpolationMode==="monotone"?PS:tV}function iA(o,t,i={}){let n=o.length,{start:r=0,end:a=n-1}=i,{start:s,end:l}=t,c=Math.max(r,s),d=Math.min(a,l),f=r<s&&a<s||r>l&&a>l;return{count:n,start:c,loop:t.loop,ilen:d<c&&!f?n+d-c:d-c}}function nV(o,t,i,n){let{points:r,options:a}=t,{count:s,start:l,loop:c,ilen:d}=iA(r,i,n),f=iV(a),{move:h=!0,reverse:p}=n||{},m,v,b;for(m=0;m<=d;++m)v=r[(l+(p?d-m:m))%s],!v.skip&&(h?(o.moveTo(v.x,v.y),h=!1):f(o,b,v,p,a.stepped),b=v);return c&&(v=r[(l+(p?d:0))%s],f(o,b,v,p,a.stepped)),!!c}function rV(o,t,i,n){let r=t.points,{count:a,start:s,ilen:l}=iA(r,i,n),{move:c=!0,reverse:d}=n||{},f=0,h=0,p,m,v,b,x,k,z=A=>(s+(d?l-A:A))%a,E=()=>{b!==x&&(o.lineTo(f,x),o.lineTo(f,b),o.lineTo(f,k))};for(c&&(m=r[z(0)],o.moveTo(m.x,m.y)),p=0;p<=l;++p){if(m=r[z(p)],m.skip)continue;let A=m.x,C=m.y,L=A|0;L===v?(C<b?b=C:C>x&&(x=C),f=(h*f+A)/++h):(E(),o.lineTo(A,C),v=L,h=0,b=x=C),k=C}E()}function gw(o){let t=o.options,i=t.borderDash&&t.borderDash.length;return!o._decimated&&!o._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!i?rV:nV}function oV(o){return o.stepped?BS:o.tension||o.cubicInterpolationMode==="monotone"?WS:Zs}function aV(o,t,i,n){let r=t._path;r||(r=t._path=new Path2D,t.path(r,i,n)&&r.closePath()),tA(o,t.options),o.stroke(r)}function sV(o,t,i,n){let{segments:r,options:a}=t,s=gw(t);for(let l of r)tA(o,a,l.style),o.beginPath(),s(o,t,l,{start:i,end:i+n-1})&&o.closePath(),o.stroke()}var lV=typeof Path2D=="function";function cV(o,t,i,n){lV&&!t.options.segment?aV(o,t,i,n):sV(o,t,i,n)}var fa=class extends Pr{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,i){let n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){let r=n.spanGaps?this._loop:this._fullLoop;FS(this._points,n,t,r,i),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=VS(this,this.options.segment))}first(){let t=this.segments,i=this.points;return t.length&&i[t[0].start]}last(){let t=this.segments,i=this.points,n=t.length;return n&&i[t[n-1].end]}interpolate(t,i){let n=this.options,r=t[i],a=this.points,s=Yx(this,{property:i,start:r,end:r});if(!s.length)return;let l=[],c=oV(n),d,f;for(d=0,f=s.length;d<f;++d){let{start:h,end:p}=s[d],m=a[h],v=a[p];if(m===v){l.push(m);continue}let b=Math.abs((r-m[i])/(v[i]-m[i])),x=c(m,v,b,n.stepped);x[i]=t[i],l.push(x)}return l.length===1?l[0]:l}pathSegment(t,i,n){return gw(this)(t,this,i,n)}path(t,i,n){let r=this.segments,a=gw(this),s=this._loop;i=i||0,n=n||this.points.length-i;for(let l of r)s&=a(t,this,l,{start:i,end:i+n-1});return!!s}draw(t,i,n,r){let a=this.options||{};(this.points||[]).length&&a.borderWidth&&(t.save(),cV(t,this,n,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};ie(fa,"id","line"),ie(fa,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),ie(fa,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),ie(fa,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function x6(o,t,i,n){let r=o.options,{[i]:a}=o.getProps([i],n);return Math.abs(t-a)<r.radius+r.hitRadius}var pf=class extends Pr{constructor(i){super();ie(this,"parsed");ie(this,"skip");ie(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,i&&Object.assign(this,i)}inRange(i,n,r){let a=this.options,{x:s,y:l}=this.getProps(["x","y"],r);return Math.pow(i-s,2)+Math.pow(n-l,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(i,n){return x6(this,i,"x",n)}inYRange(i,n){return x6(this,i,"y",n)}getCenterPoint(i){let{x:n,y:r}=this.getProps(["x","y"],i);return{x:n,y:r}}size(i){i=i||this.options||{};let n=i.radius||0;n=Math.max(n,n&&i.hoverRadius||0);let r=n&&i.borderWidth||0;return(n+r)*2}draw(i,n){let r=this.options;this.skip||r.radius<.1||!aa(this,n,this.size(r)/2)||(i.strokeStyle=r.borderColor,i.lineWidth=r.borderWidth,i.fillStyle=r.backgroundColor,lb(i,r,this.x,this.y))}getRange(){let i=this.options||{};return i.radius+i.hitRadius}};ie(pf,"id","point"),ie(pf,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),ie(pf,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function nA(o,t){let{x:i,y:n,base:r,width:a,height:s}=o.getProps(["x","y","base","width","height"],t),l,c,d,f,h;return o.horizontal?(h=s/2,l=Math.min(i,r),c=Math.max(i,r),d=n-h,f=n+h):(h=a/2,l=i-h,c=i+h,d=Math.min(n,r),f=Math.max(n,r)),{left:l,top:d,right:c,bottom:f}}function ol(o,t,i,n){return o?0:Vi(t,i,n)}function dV(o,t,i){let n=o.options.borderWidth,r=o.borderSkipped,a=Ix(n);return{t:ol(r.top,a.top,0,i),r:ol(r.right,a.right,0,t),b:ol(r.bottom,a.bottom,0,i),l:ol(r.left,a.left,0,t)}}function fV(o,t,i){let{enableBorderRadius:n}=o.getProps(["enableBorderRadius"]),r=o.options.borderRadius,a=nl(r),s=Math.min(t,i),l=o.borderSkipped,c=n||gt(r);return{topLeft:ol(!c||l.top||l.left,a.topLeft,0,s),topRight:ol(!c||l.top||l.right,a.topRight,0,s),bottomLeft:ol(!c||l.bottom||l.left,a.bottomLeft,0,s),bottomRight:ol(!c||l.bottom||l.right,a.bottomRight,0,s)}}function hV(o){let t=nA(o),i=t.right-t.left,n=t.bottom-t.top,r=dV(o,i/2,n/2),a=fV(o,i/2,n/2);return{outer:{x:t.left,y:t.top,w:i,h:n,radius:a},inner:{x:t.left+r.l,y:t.top+r.t,w:i-r.l-r.r,h:n-r.t-r.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,a.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(r.b,r.r))}}}}function nw(o,t,i,n){let r=t===null,a=i===null,l=o&&!(r&&a)&&nA(o,n);return l&&(r||la(t,l.left,l.right))&&(a||la(i,l.top,l.bottom))}function uV(o){return o.topLeft||o.topRight||o.bottomLeft||o.bottomRight}function pV(o,t){o.rect(t.x,t.y,t.w,t.h)}function rw(o,t,i={}){let n=o.x!==i.x?-t:0,r=o.y!==i.y?-t:0,a=(o.x+o.w!==i.x+i.w?t:0)-n,s=(o.y+o.h!==i.y+i.h?t:0)-r;return{x:o.x+n,y:o.y+r,w:o.w+a,h:o.h+s,radius:o.radius}}var mf=class extends Pr{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){let{inflateAmount:i,options:{borderColor:n,backgroundColor:r}}=this,{inner:a,outer:s}=hV(this),l=uV(s.radius)?af:pV;t.save(),(s.w!==a.w||s.h!==a.h)&&(t.beginPath(),l(t,rw(s,i,a)),t.clip(),l(t,rw(a,-i,s)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),l(t,rw(a,i)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,i,n){return nw(this,t,i,n)}inXRange(t,i){return nw(this,t,null,i)}inYRange(t,i){return nw(this,null,t,i)}getCenterPoint(t){let{x:i,y:n,base:r,horizontal:a}=this.getProps(["x","y","base","horizontal"],t);return{x:a?(i+r)/2:i,y:a?n:(n+r)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}};ie(mf,"id","bar"),ie(mf,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),ie(mf,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var mV=Object.freeze({__proto__:null,ArcElement:Mc,BarElement:mf,LineElement:fa,PointElement:pf}),bw=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],w6=bw.map(o=>o.replace("rgb(","rgba(").replace(")",", 0.5)"));function rA(o){return bw[o%bw.length]}function oA(o){return w6[o%w6.length]}function gV(o,t){return o.borderColor=rA(t),o.backgroundColor=oA(t),++t}function bV(o,t){return o.backgroundColor=o.data.map(()=>rA(t++)),t}function vV(o,t){return o.backgroundColor=o.data.map(()=>oA(t++)),t}function yV(o){let t=0;return(i,n)=>{let r=o.getDatasetMeta(n).controller;r instanceof ss?t=bV(i,t):r instanceof qc?t=vV(i,t):r&&(t=gV(i,t))}}function k6(o){let t;for(t in o)if(o[t].borderColor||o[t].backgroundColor)return!0;return!1}function xV(o){return o&&(o.borderColor||o.backgroundColor)}function wV(){return ti.borderColor!=="rgba(0,0,0,0.1)"||ti.backgroundColor!=="rgba(0,0,0,0.1)"}var kV={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(o,t,i){if(!i.enabled)return;let{data:{datasets:n},options:r}=o.config,{elements:a}=r,s=k6(n)||xV(r)||a&&k6(a)||wV();if(!i.forceOverride&&s)return;let l=yV(o);n.forEach(l)}};function _V(o,t,i,n,r){let a=r.samples||n;if(a>=i)return o.slice(t,t+i);let s=[],l=(i-2)/(a-2),c=0,d=t+i-1,f=t,h,p,m,v,b;for(s[c++]=o[f],h=0;h<a-2;h++){let x=0,k=0,z,E=Math.floor((h+1)*l)+1+t,A=Math.min(Math.floor((h+2)*l)+1,i)+t,C=A-E;for(z=E;z<A;z++)x+=o[z].x,k+=o[z].y;x/=C,k/=C;let L=Math.floor(h*l)+1+t,M=Math.min(Math.floor((h+1)*l)+1,i)+t,{x:P,y:I}=o[f];for(m=v=-1,z=L;z<M;z++)v=.5*Math.abs((P-x)*(o[z].y-I)-(P-o[z].x)*(k-I)),v>m&&(m=v,p=o[z],b=z);s[c++]=p,f=b}return s[c++]=o[d],s}function zV(o,t,i,n){let r=0,a=0,s,l,c,d,f,h,p,m,v,b,x=[],k=t+i-1,z=o[t].x,A=o[k].x-z;for(s=t;s<t+i;++s){l=o[s],c=(l.x-z)/A*n,d=l.y;let C=c|0;if(C===f)d<v?(v=d,h=s):d>b&&(b=d,p=s),r=(a*r+l.x)/++a;else{let L=s-1;if(!pt(h)&&!pt(p)){let M=Math.min(h,p),P=Math.max(h,p);M!==m&&M!==L&&x.push(et(Ce({},o[M]),{x:r})),P!==m&&P!==L&&x.push(et(Ce({},o[P]),{x:r}))}s>0&&L!==m&&x.push(o[L]),x.push(l),f=C,a=0,v=b=d,h=p=m=s}}return x}function aA(o){if(o._decimated){let t=o._data;delete o._decimated,delete o._data,Object.defineProperty(o,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function _6(o){o.data.datasets.forEach(t=>{aA(t)})}function CV(o,t){let i=t.length,n=0,r,{iScale:a}=o,{min:s,max:l,minDefined:c,maxDefined:d}=a.getUserBounds();return c&&(n=Vi(oa(t,a.axis,s).lo,0,i-1)),d?r=Vi(oa(t,a.axis,l).hi+1,n,i)-n:r=i-n,{start:n,count:r}}var SV={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(o,t,i)=>{if(!i.enabled){_6(o);return}let n=o.width;o.data.datasets.forEach((r,a)=>{let{_data:s,indexAxis:l}=r,c=o.getDatasetMeta(a),d=s||r.data;if(sf([l,o.options.indexAxis])==="y"||!c.controller.supportsDecimation)return;let f=o.scales[c.xAxisID];if(f.type!=="linear"&&f.type!=="time"||o.options.parsing)return;let{start:h,count:p}=CV(c,d),m=i.threshold||4*n;if(p<=m){aA(r);return}pt(s)&&(r._data=d,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(b){this._data=b}}));let v;switch(i.algorithm){case"lttb":v=_V(d,h,p,n,i);break;case"min-max":v=zV(d,h,p,n);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}r._decimated=v})},destroy(o){_6(o)}};function AV(o,t,i){let n=o.segments,r=o.points,a=t.points,s=[];for(let l of n){let{start:c,end:d}=l;d=xw(c,d,r);let f=vw(i,r[c],r[d],l.loop);if(!t.segments){s.push({source:l,target:f,start:r[c],end:r[d]});continue}let h=Yx(t,f);for(let p of h){let m=vw(i,a[p.start],a[p.end],p.loop),v=Gx(l,r,m);for(let b of v)s.push({source:b,target:p,start:{[i]:z6(f,m,"start",Math.max)},end:{[i]:z6(f,m,"end",Math.min)}})}}return s}function vw(o,t,i,n){if(n)return;let r=t[o],a=i[o];return o==="angle"&&(r=or(r),a=or(a)),{property:o,start:r,end:a}}function EV(o,t){let{x:i=null,y:n=null}=o||{},r=t.points,a=[];return t.segments.forEach(({start:s,end:l})=>{l=xw(s,l,r);let c=r[s],d=r[l];n!==null?(a.push({x:c.x,y:n}),a.push({x:d.x,y:n})):i!==null&&(a.push({x:i,y:c.y}),a.push({x:i,y:d.y}))}),a}function xw(o,t,i){for(;t>o;t--){let n=i[t];if(!isNaN(n.x)&&!isNaN(n.y))break}return t}function z6(o,t,i,n){return o&&t?n(o[i],t[i]):o?o[i]:t?t[i]:0}function sA(o,t){let i=[],n=!1;return Vt(o)?(n=!0,i=o):i=EV(o,t),i.length?new fa({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}function C6(o){return o&&o.fill!==!1}function TV(o,t,i){let r=o[t].fill,a=[t],s;if(!i)return r;for(;r!==!1&&a.indexOf(r)===-1;){if(!hi(r))return r;if(s=o[r],!s)return!1;if(s.visible)return r;a.push(r),r=s.fill}return!1}function MV(o,t,i){let n=RV(o);if(gt(n))return isNaN(n.value)?!1:n;let r=parseFloat(n);return hi(r)&&Math.floor(r)===r?LV(n[0],t,r,i):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function LV(o,t,i,n){return(o==="-"||o==="+")&&(i=t+i),i===t||i<0||i>=n?!1:i}function qV(o,t){let i=null;return o==="start"?i=t.bottom:o==="end"?i=t.top:gt(o)?i=t.getPixelForValue(o.value):t.getBasePixel&&(i=t.getBasePixel()),i}function PV(o,t,i){let n;return o==="start"?n=i:o==="end"?n=t.options.reverse?t.min:t.max:gt(o)?n=o.value:n=t.getBaseValue(),n}function RV(o){let t=o.options,i=t.fill,n=st(i&&i.target,i);return n===void 0&&(n=!!t.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function OV(o){let{scale:t,index:i,line:n}=o,r=[],a=n.segments,s=n.points,l=DV(t,i);l.push(sA({x:null,y:t.bottom},n));for(let c=0;c<a.length;c++){let d=a[c];for(let f=d.start;f<=d.end;f++)$V(r,s[f],l)}return new fa({points:r,options:{}})}function DV(o,t){let i=[],n=o.getMatchingVisibleMetas("line");for(let r=0;r<n.length;r++){let a=n[r];if(a.index===t)break;a.hidden||i.unshift(a.dataset)}return i}function $V(o,t,i){let n=[];for(let r=0;r<i.length;r++){let a=i[r],{first:s,last:l,point:c}=IV(a,t,"x");if(!(!c||s&&l)){if(s)n.unshift(c);else if(o.push(c),!l)break}}o.push(...n)}function IV(o,t,i){let n=o.interpolate(t,i);if(!n)return{};let r=n[i],a=o.segments,s=o.points,l=!1,c=!1;for(let d=0;d<a.length;d++){let f=a[d],h=s[f.start][i],p=s[f.end][i];if(la(r,h,p)){l=r===h,c=r===p;break}}return{first:l,last:c,point:n}}var Sb=class{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,i,n){let{x:r,y:a,radius:s}=this;return i=i||{start:0,end:Gt},t.arc(r,a,s,i.end,i.start,!0),!n.bounds}interpolate(t){let{x:i,y:n,radius:r}=this,a=t.angle;return{x:i+Math.cos(a)*r,y:n+Math.sin(a)*r,angle:a}}};function FV(o){let{chart:t,fill:i,line:n}=o;if(hi(i))return NV(t,i);if(i==="stack")return OV(o);if(i==="shape")return!0;let r=HV(o);return r instanceof Sb?r:sA(r,n)}function NV(o,t){let i=o.getDatasetMeta(t);return i&&o.isDatasetVisible(t)?i.dataset:null}function HV(o){return(o.scale||{}).getPointPositionForValue?WV(o):BV(o)}function BV(o){let{scale:t={},fill:i}=o,n=qV(i,t);if(hi(n)){let r=t.isHorizontal();return{x:r?n:null,y:r?null:n}}return null}function WV(o){let{scale:t,fill:i}=o,n=t.options,r=t.getLabels().length,a=n.reverse?t.max:t.min,s=PV(i,t,a),l=[];if(n.grid.circular){let c=t.getPointPositionForValue(0,a);return new Sb({x:c.x,y:c.y,radius:t.getDistanceFromCenterForValue(s)})}for(let c=0;c<r;++c)l.push(t.getPointPositionForValue(c,s));return l}function ow(o,t,i){let n=FV(t),{chart:r,index:a,line:s,scale:l,axis:c}=t,d=s.options,f=d.fill,h=d.backgroundColor,{above:p=h,below:m=h}=f||{},v=r.getDatasetMeta(a),b=Xx(r,v);n&&s.points.length&&(Tu(o,i),jV(o,{line:s,target:n,above:p,below:m,area:i,scale:l,axis:c,clip:b}),Mu(o))}function jV(o,t){let{line:i,target:n,above:r,below:a,area:s,scale:l,clip:c}=t,d=i._loop?"angle":t.axis;o.save(),d==="x"&&a!==r&&(S6(o,n,s.top),A6(o,{line:i,target:n,color:r,scale:l,property:d,clip:c}),o.restore(),o.save(),S6(o,n,s.bottom)),A6(o,{line:i,target:n,color:a,scale:l,property:d,clip:c}),o.restore()}function S6(o,t,i){let{segments:n,points:r}=t,a=!0,s=!1;o.beginPath();for(let l of n){let{start:c,end:d}=l,f=r[c],h=r[xw(c,d,r)];a?(o.moveTo(f.x,f.y),a=!1):(o.lineTo(f.x,i),o.lineTo(f.x,f.y)),s=!!t.pathSegment(o,l,{move:s}),s?o.closePath():o.lineTo(h.x,i)}o.lineTo(t.first().x,i),o.closePath(),o.clip()}function A6(o,t){let{line:i,target:n,property:r,color:a,scale:s,clip:l}=t,c=AV(i,n,r);for(let{source:d,target:f,start:h,end:p}of c){let{style:{backgroundColor:m=a}={}}=d,v=n!==!0;o.save(),o.fillStyle=m,VV(o,s,l,v&&vw(r,h,p)),o.beginPath();let b=!!i.pathSegment(o,d),x;if(v){b?o.closePath():E6(o,n,p,r);let k=!!n.pathSegment(o,f,{move:b,reverse:!0});x=b&&k,x||E6(o,n,h,r)}o.closePath(),o.fill(x?"evenodd":"nonzero"),o.restore()}}function VV(o,t,i,n){let r=t.chart.chartArea,{property:a,start:s,end:l}=n||{};if(a==="x"||a==="y"){let c,d,f,h;a==="x"?(c=s,d=r.top,f=l,h=r.bottom):(c=r.left,d=s,f=r.right,h=l),o.beginPath(),i&&(c=Math.max(c,i.left),f=Math.min(f,i.right),d=Math.max(d,i.top),h=Math.min(h,i.bottom)),o.rect(c,d,f-c,h-d),o.clip()}}function E6(o,t,i,n){let r=t.interpolate(i,n);r&&o.lineTo(r.x,r.y)}var UV={id:"filler",afterDatasetsUpdate(o,t,i){let n=(o.data.datasets||[]).length,r=[],a,s,l,c;for(s=0;s<n;++s)a=o.getDatasetMeta(s),l=a.dataset,c=null,l&&l.options&&l instanceof fa&&(c={visible:o.isDatasetVisible(s),index:s,fill:MV(l,s,n),chart:o,axis:a.controller.options.indexAxis,scale:a.vScale,line:l}),a.$filler=c,r.push(c);for(s=0;s<n;++s)c=r[s],!(!c||c.fill===!1)&&(c.fill=TV(r,s,i.propagate))},beforeDraw(o,t,i){let n=i.drawTime==="beforeDraw",r=o.getSortedVisibleDatasetMetas(),a=o.chartArea;for(let s=r.length-1;s>=0;--s){let l=r[s].$filler;l&&(l.line.updateControlPoints(a,l.axis),n&&l.fill&&ow(o.ctx,l,a))}},beforeDatasetsDraw(o,t,i){if(i.drawTime!=="beforeDatasetsDraw")return;let n=o.getSortedVisibleDatasetMetas();for(let r=n.length-1;r>=0;--r){let a=n[r].$filler;C6(a)&&ow(o.ctx,a,o.chartArea)}},beforeDatasetDraw(o,t,i){let n=t.meta.$filler;!C6(n)||i.drawTime!=="beforeDatasetDraw"||ow(o.ctx,n,o.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},T6=(o,t)=>{let{boxHeight:i=t,boxWidth:n=t}=o;return o.usePointStyle&&(i=Math.min(i,t),n=o.pointStyleWidth||Math.min(n,t)),{boxWidth:n,boxHeight:i,itemHeight:Math.max(t,i)}},GV=(o,t)=>o!==null&&t!==null&&o.datasetIndex===t.datasetIndex&&o.index===t.index,Ab=class extends Pr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,i,n){this.maxWidth=t,this.maxHeight=i,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},i=Ht(t.generateLabels,[this.chart],this)||[];t.filter&&(i=i.filter(n=>t.filter(n,this.chart.data))),t.sort&&(i=i.sort((n,r)=>t.sort(n,r,this.chart.data))),this.options.reverse&&i.reverse(),this.legendItems=i}fit(){let{options:t,ctx:i}=this;if(!t.display){this.width=this.height=0;return}let n=t.labels,r=Ri(n.font),a=r.size,s=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=T6(n,a),d,f;i.font=r.string,this.isHorizontal()?(d=this.maxWidth,f=this._fitRows(s,a,l,c)+10):(f=this.maxHeight,d=this._fitCols(s,r,l,c)+10),this.width=Math.min(d,t.maxWidth||this.maxWidth),this.height=Math.min(f,t.maxHeight||this.maxHeight)}_fitRows(t,i,n,r){let{ctx:a,maxWidth:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.lineWidths=[0],f=r+l,h=t;a.textAlign="left",a.textBaseline="middle";let p=-1,m=-f;return this.legendItems.forEach((v,b)=>{let x=n+i/2+a.measureText(v.text).width;(b===0||d[d.length-1]+x+2*l>s)&&(h+=f,d[d.length-(b>0?0:1)]=0,m+=f,p++),c[b]={left:0,top:m,row:p,width:x,height:r},d[d.length-1]+=x+l}),h}_fitCols(t,i,n,r){let{ctx:a,maxHeight:s,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],d=this.columnSizes=[],f=s-t,h=l,p=0,m=0,v=0,b=0;return this.legendItems.forEach((x,k)=>{let{itemWidth:z,itemHeight:E}=YV(n,i,a,x,r);k>0&&m+E+2*l>f&&(h+=p+l,d.push({width:p,height:m}),v+=p+l,b++,p=m=0),c[k]={left:v,top:m,col:b,width:z,height:E},p=Math.max(p,z),m+=E+l}),h+=p,d.push({width:p,height:m}),h}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:i,options:{align:n,labels:{padding:r},rtl:a}}=this,s=Ac(a,this.left,this.width);if(this.isHorizontal()){let l=0,c=mn(n,this.left+r,this.right-this.lineWidths[l]);for(let d of i)l!==d.row&&(l=d.row,c=mn(n,this.left+r,this.right-this.lineWidths[l])),d.top+=this.top+t+r,d.left=s.leftForLtr(s.x(c),d.width),c+=d.width+r}else{let l=0,c=mn(n,this.top+t+r,this.bottom-this.columnSizes[l].height);for(let d of i)d.col!==l&&(l=d.col,c=mn(n,this.top+t+r,this.bottom-this.columnSizes[l].height)),d.top=c,d.left+=this.left+r,d.left=s.leftForLtr(s.x(d.left),d.width),c+=d.height+r}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let t=this.ctx;Tu(t,this),this._draw(),Mu(t)}}_draw(){let{options:t,columnSizes:i,lineWidths:n,ctx:r}=this,{align:a,labels:s}=t,l=ti.color,c=Ac(t.rtl,this.left,this.width),d=Ri(s.font),{padding:f}=s,h=d.size,p=h/2,m;this.drawTitle(),r.textAlign=c.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=d.string;let{boxWidth:v,boxHeight:b,itemHeight:x}=T6(s,h),k=function(L,M,P){if(isNaN(v)||v<=0||isNaN(b)||b<0)return;r.save();let I=st(P.lineWidth,1);if(r.fillStyle=st(P.fillStyle,l),r.lineCap=st(P.lineCap,"butt"),r.lineDashOffset=st(P.lineDashOffset,0),r.lineJoin=st(P.lineJoin,"miter"),r.lineWidth=I,r.strokeStyle=st(P.strokeStyle,l),r.setLineDash(st(P.lineDash,[])),s.usePointStyle){let N={radius:b*Math.SQRT2/2,pointStyle:P.pointStyle,rotation:P.rotation,borderWidth:I},B=c.xPlus(L,v/2),U=M+p;$x(r,N,B,U,s.pointStyleWidth&&v)}else{let N=M+Math.max((h-b)/2,0),B=c.leftForLtr(L,v),U=nl(P.borderRadius);r.beginPath(),Object.values(U).some(ee=>ee!==0)?af(r,{x:B,y:N,w:v,h:b,radius:U}):r.rect(B,N,v,b),r.fill(),I!==0&&r.stroke()}r.restore()},z=function(L,M,P){il(r,P.text,L,M+x/2,d,{strikethrough:P.hidden,textAlign:c.textAlign(P.textAlign)})},E=this.isHorizontal(),A=this._computeTitleHeight();E?m={x:mn(a,this.left+f,this.right-n[0]),y:this.top+f+A,line:0}:m={x:this.left+f,y:mn(a,this.top+A+f,this.bottom-i[0].height),line:0},Vx(this.ctx,t.textDirection);let C=x+f;this.legendItems.forEach((L,M)=>{r.strokeStyle=L.fontColor,r.fillStyle=L.fontColor;let P=r.measureText(L.text).width,I=c.textAlign(L.textAlign||(L.textAlign=s.textAlign)),N=v+p+P,B=m.x,U=m.y;c.setWidth(this.width),E?M>0&&B+N+f>this.right&&(U=m.y+=C,m.line++,B=m.x=mn(a,this.left+f,this.right-n[m.line])):M>0&&U+C>this.bottom&&(B=m.x=B+i[m.line].width+f,m.line++,U=m.y=mn(a,this.top+A+f,this.bottom-i[m.line].height));let ee=c.x(B);if(k(ee,U,L),B=TS(I,B+v+p,E?B+N:this.right,t.rtl),z(c.x(B),U,L),E)m.x+=N+f;else if(typeof L.text!="string"){let ae=d.lineHeight;m.y+=lA(L,ae)+f}else m.y+=C}),Ux(this.ctx,t.textDirection)}drawTitle(){let t=this.options,i=t.title,n=Ri(i.font),r=gn(i.padding);if(!i.display)return;let a=Ac(t.rtl,this.left,this.width),s=this.ctx,l=i.position,c=n.size/2,d=r.top+c,f,h=this.left,p=this.width;if(this.isHorizontal())p=Math.max(...this.lineWidths),f=this.top+d,h=mn(t.align,h,this.right-p);else{let v=this.columnSizes.reduce((b,x)=>Math.max(b,x.height),0);f=d+mn(t.align,this.top,this.bottom-v-t.labels.padding-this._computeTitleHeight())}let m=mn(l,h,h+p);s.textAlign=a.textAlign(ab(l)),s.textBaseline="middle",s.strokeStyle=i.color,s.fillStyle=i.color,s.font=n.string,il(s,i.text,m,f,n)}_computeTitleHeight(){let t=this.options.title,i=Ri(t.font),n=gn(t.padding);return t.display?i.lineHeight+n.height:0}_getLegendItemAt(t,i){let n,r,a;if(la(t,this.left,this.right)&&la(i,this.top,this.bottom)){for(a=this.legendHitBoxes,n=0;n<a.length;++n)if(r=a[n],la(t,r.left,r.left+r.width)&&la(i,r.top,r.top+r.height))return this.legendItems[n]}return null}handleEvent(t){let i=this.options;if(!JV(t.type,i))return;let n=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){let r=this._hoveredItem,a=GV(r,n);r&&!a&&Ht(i.onLeave,[t,r,this],this),this._hoveredItem=n,n&&!a&&Ht(i.onHover,[t,n,this],this)}else n&&Ht(i.onClick,[t,n,this],this)}};function YV(o,t,i,n,r){let a=XV(n,o,t,i),s=KV(r,n,t.lineHeight);return{itemWidth:a,itemHeight:s}}function XV(o,t,i,n){let r=o.text;return r&&typeof r!="string"&&(r=r.reduce((a,s)=>a.length>s.length?a:s)),t+i.size/2+n.measureText(r).width}function KV(o,t,i){let n=o;return typeof t.text!="string"&&(n=lA(t,i)),n}function lA(o,t){let i=o.text?o.text.length:0;return t*i}function JV(o,t){return!!((o==="mousemove"||o==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(o==="click"||o==="mouseup"))}var QV={id:"legend",_element:Ab,start(o,t,i){let n=o.legend=new Ab({ctx:o.ctx,options:i,chart:o});Cn.configure(o,n,i),Cn.addBox(o,n)},stop(o){Cn.removeBox(o,o.legend),delete o.legend},beforeUpdate(o,t,i){let n=o.legend;Cn.configure(o,n,i),n.options=i},afterUpdate(o){let t=o.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(o,t){t.replay||o.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(o,t,i){let n=t.datasetIndex,r=i.chart;r.isDatasetVisible(n)?(r.hide(n),t.hidden=!0):(r.show(n),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:o=>o.chart.options.color,boxWidth:40,padding:10,generateLabels(o){let t=o.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:r,color:a,useBorderRadius:s,borderRadius:l}}=o.legend.options;return o._getSortedDatasetMetas().map(c=>{let d=c.controller.getStyle(i?0:void 0),f=gn(d.borderWidth);return{text:t[c.index].label,fillStyle:d.backgroundColor,fontColor:a,hidden:!c.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:d.borderColor,pointStyle:n||d.pointStyle,rotation:d.rotation,textAlign:r||d.textAlign,borderRadius:s&&(l||d.borderRadius),datasetIndex:c.index}},this)}},title:{color:o=>o.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:o=>!o.startsWith("on"),labels:{_scriptable:o=>!["generateLabels","filter","sort"].includes(o)}}},Vu=class extends Pr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,i){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=i;let r=Vt(n.text)?n.text.length:1;this._padding=gn(n.padding);let a=r*Ri(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){let t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){let{top:i,left:n,bottom:r,right:a,options:s}=this,l=s.align,c=0,d,f,h;return this.isHorizontal()?(f=mn(l,n,a),h=i+t,d=a-n):(s.position==="left"?(f=n+t,h=mn(l,r,i),c=Ut*-.5):(f=a-t,h=mn(l,i,r),c=Ut*.5),d=r-i),{titleX:f,titleY:h,maxWidth:d,rotation:c}}draw(){let t=this.ctx,i=this.options;if(!i.display)return;let n=Ri(i.font),a=n.lineHeight/2+this._padding.top,{titleX:s,titleY:l,maxWidth:c,rotation:d}=this._drawArgs(a);il(t,i.text,0,0,n,{color:i.color,maxWidth:c,rotation:d,textAlign:ab(i.align),textBaseline:"middle",translation:[s,l]})}};function ZV(o,t){let i=new Vu({ctx:o.ctx,options:t,chart:o});Cn.configure(o,i,t),Cn.addBox(o,i),o.titleBlock=i}var eU={id:"title",_element:Vu,start(o,t,i){ZV(o,i)},stop(o){let t=o.titleBlock;Cn.removeBox(o,t),delete o.titleBlock},beforeUpdate(o,t,i){let n=o.titleBlock;Cn.configure(o,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},bb=new WeakMap,tU={id:"subtitle",start(o,t,i){let n=new Vu({ctx:o.ctx,options:i,chart:o});Cn.configure(o,n,i),Cn.addBox(o,n),bb.set(o,n)},stop(o){Cn.removeBox(o,bb.get(o)),bb.delete(o)},beforeUpdate(o,t,i){let n=bb.get(o);Cn.configure(o,n,i),n.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Iu={average(o){if(!o.length)return!1;let t,i,n=new Set,r=0,a=0;for(t=0,i=o.length;t<i;++t){let l=o[t].element;if(l&&l.hasValue()){let c=l.tooltipPosition();n.add(c.x),r+=c.y,++a}}return a===0||n.size===0?!1:{x:[...n].reduce((l,c)=>l+c)/n.size,y:r/a}},nearest(o,t){if(!o.length)return!1;let i=t.x,n=t.y,r=Number.POSITIVE_INFINITY,a,s,l;for(a=0,s=o.length;a<s;++a){let c=o[a].element;if(c&&c.hasValue()){let d=c.getCenterPoint(),f=tb(t,d);f<r&&(r=f,l=c)}}if(l){let c=l.tooltipPosition();i=c.x,n=c.y}return{x:i,y:n}}};function ca(o,t){return t&&(Vt(t)?Array.prototype.push.apply(o,t):o.push(t)),o}function as(o){return(typeof o=="string"||o instanceof String)&&o.indexOf(`
1822
1822
  `)>-1?o.split(`
1823
1823
  `):o}function iU(o,t){let{element:i,datasetIndex:n,index:r}=t,a=o.getDatasetMeta(n).controller,{label:s,value:l}=a.getLabelAndValue(r);return{chart:o,label:s,parsed:a.getParsed(r),raw:o.data.datasets[n].data[r],formattedValue:l,dataset:a.getDataset(),dataIndex:r,datasetIndex:n,element:i}}function M6(o,t){let i=o.chart.ctx,{body:n,footer:r,title:a}=o,{boxWidth:s,boxHeight:l}=t,c=Ri(t.bodyFont),d=Ri(t.titleFont),f=Ri(t.footerFont),h=a.length,p=r.length,m=n.length,v=gn(t.padding),b=v.height,x=0,k=n.reduce((A,C)=>A+C.before.length+C.lines.length+C.after.length,0);if(k+=o.beforeBody.length+o.afterBody.length,h&&(b+=h*d.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),k){let A=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;b+=m*A+(k-m)*c.lineHeight+(k-1)*t.bodySpacing}p&&(b+=t.footerMarginTop+p*f.lineHeight+(p-1)*t.footerSpacing);let z=0,E=function(A){x=Math.max(x,i.measureText(A).width+z)};return i.save(),i.font=d.string,Lt(o.title,E),i.font=c.string,Lt(o.beforeBody.concat(o.afterBody),E),z=t.displayColors?s+2+t.boxPadding:0,Lt(n,A=>{Lt(A.before,E),Lt(A.lines,E),Lt(A.after,E)}),z=0,i.font=f.string,Lt(o.footer,E),i.restore(),x+=v.width,{width:x,height:b}}function nU(o,t){let{y:i,height:n}=t;return i<n/2?"top":i>o.height-n/2?"bottom":"center"}function rU(o,t,i,n){let{x:r,width:a}=n,s=i.caretSize+i.caretPadding;if(o==="left"&&r+a+s>t.width||o==="right"&&r-a-s<0)return!0}function oU(o,t,i,n){let{x:r,width:a}=i,{width:s,chartArea:{left:l,right:c}}=o,d="center";return n==="center"?d=r<=(l+c)/2?"left":"right":r<=a/2?d="left":r>=s-a/2&&(d="right"),rU(d,o,t,i)&&(d="center"),d}function L6(o,t,i){let n=i.yAlign||t.yAlign||nU(o,i);return{xAlign:i.xAlign||t.xAlign||oU(o,t,i,n),yAlign:n}}function aU(o,t){let{x:i,width:n}=o;return t==="right"?i-=n:t==="center"&&(i-=n/2),i}function sU(o,t,i){let{y:n,height:r}=o;return t==="top"?n+=i:t==="bottom"?n-=r+i:n-=r/2,n}function q6(o,t,i,n){let{caretSize:r,caretPadding:a,cornerRadius:s}=o,{xAlign:l,yAlign:c}=i,d=r+a,{topLeft:f,topRight:h,bottomLeft:p,bottomRight:m}=nl(s),v=aU(t,l),b=sU(t,c,d);return c==="center"?l==="left"?v+=d:l==="right"&&(v-=d):l==="left"?v-=Math.max(f,p)+r:l==="right"&&(v+=Math.max(h,m)+r),{x:Vi(v,0,n.width-t.width),y:Vi(b,0,n.height-t.height)}}function vb(o,t,i){let n=gn(i.padding);return t==="center"?o.x+o.width/2:t==="right"?o.x+o.width-n.right:o.x+n.left}function P6(o){return ca([],as(o))}function lU(o,t,i){return rs(o,{tooltip:t,tooltipItems:i,type:"tooltip"})}function R6(o,t){let i=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return i?o.override(i):o}var cA={beforeTitle:sa,title(o){if(o.length>0){let t=o[0],i=t.chart.data.labels,n=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex<n)return i[t.dataIndex]}return""},afterTitle:sa,beforeBody:sa,beforeLabel:sa,label(o){if(this&&this.options&&this.options.mode==="dataset")return o.label+": "+o.formattedValue||o.formattedValue;let t=o.dataset.label||"";t&&(t+=": ");let i=o.formattedValue;return pt(i)||(t+=i),t},labelColor(o){let i=o.chart.getDatasetMeta(o.datasetIndex).controller.getStyle(o.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(o){let i=o.chart.getDatasetMeta(o.datasetIndex).controller.getStyle(o.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:sa,afterBody:sa,beforeFooter:sa,footer:sa,afterFooter:sa};function sr(o,t,i,n){let r=o[t].call(i,n);return typeof r=="undefined"?cA[t].call(i,n):r}var Wu=class extends Pr{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let i=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&i.options.animation&&n.animations,a=new kb(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=lU(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,i){let{callbacks:n}=i,r=sr(n,"beforeTitle",this,t),a=sr(n,"title",this,t),s=sr(n,"afterTitle",this,t),l=[];return l=ca(l,as(r)),l=ca(l,as(a)),l=ca(l,as(s)),l}getBeforeBody(t,i){return P6(sr(i.callbacks,"beforeBody",this,t))}getBody(t,i){let{callbacks:n}=i,r=[];return Lt(t,a=>{let s={before:[],lines:[],after:[]},l=R6(n,a);ca(s.before,as(sr(l,"beforeLabel",this,a))),ca(s.lines,sr(l,"label",this,a)),ca(s.after,as(sr(l,"afterLabel",this,a))),r.push(s)}),r}getAfterBody(t,i){return P6(sr(i.callbacks,"afterBody",this,t))}getFooter(t,i){let{callbacks:n}=i,r=sr(n,"beforeFooter",this,t),a=sr(n,"footer",this,t),s=sr(n,"afterFooter",this,t),l=[];return l=ca(l,as(r)),l=ca(l,as(a)),l=ca(l,as(s)),l}_createItems(t){let i=this._active,n=this.chart.data,r=[],a=[],s=[],l=[],c,d;for(c=0,d=i.length;c<d;++c)l.push(iU(this.chart,i[c]));return t.filter&&(l=l.filter((f,h,p)=>t.filter(f,h,p,n))),t.itemSort&&(l=l.sort((f,h)=>t.itemSort(f,h,n))),Lt(l,f=>{let h=R6(t.callbacks,f);r.push(sr(h,"labelColor",this,f)),a.push(sr(h,"labelPointStyle",this,f)),s.push(sr(h,"labelTextColor",this,f))}),this.labelColors=r,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=l,l}update(t,i){let n=this.options.setContext(this.getContext()),r=this._active,a,s=[];if(!r.length)this.opacity!==0&&(a={opacity:0});else{let l=Iu[n.position].call(this,r,this._eventPosition);s=this._createItems(n),this.title=this.getTitle(s,n),this.beforeBody=this.getBeforeBody(s,n),this.body=this.getBody(s,n),this.afterBody=this.getAfterBody(s,n),this.footer=this.getFooter(s,n);let c=this._size=M6(this,n),d=Object.assign({},l,c),f=L6(this.chart,n,d),h=q6(n,d,f,this.chart);this.xAlign=f.xAlign,this.yAlign=f.yAlign,a={opacity:1,x:h.x,y:h.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(t,i,n,r){let a=this.getCaretPosition(t,n,r);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)}getCaretPosition(t,i,n){let{xAlign:r,yAlign:a}=this,{caretSize:s,cornerRadius:l}=n,{topLeft:c,topRight:d,bottomLeft:f,bottomRight:h}=nl(l),{x:p,y:m}=t,{width:v,height:b}=i,x,k,z,E,A,C;return a==="center"?(A=m+b/2,r==="left"?(x=p,k=x-s,E=A+s,C=A-s):(x=p+v,k=x+s,E=A-s,C=A+s),z=x):(r==="left"?k=p+Math.max(c,f)+s:r==="right"?k=p+v-Math.max(d,h)-s:k=this.caretX,a==="top"?(E=m,A=E-s,x=k-s,z=k+s):(E=m+b,A=E+s,x=k+s,z=k-s),C=E),{x1:x,x2:k,x3:z,y1:E,y2:A,y3:C}}drawTitle(t,i,n){let r=this.title,a=r.length,s,l,c;if(a){let d=Ac(n.rtl,this.x,this.width);for(t.x=vb(this,n.titleAlign,n),i.textAlign=d.textAlign(n.titleAlign),i.textBaseline="middle",s=Ri(n.titleFont),l=n.titleSpacing,i.fillStyle=n.titleColor,i.font=s.string,c=0;c<a;++c)i.fillText(r[c],d.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+l,c+1===a&&(t.y+=n.titleMarginBottom-l)}}_drawColorBox(t,i,n,r,a){let s=this.labelColors[n],l=this.labelPointStyles[n],{boxHeight:c,boxWidth:d}=a,f=Ri(a.bodyFont),h=vb(this,"left",a),p=r.x(h),m=c<f.lineHeight?(f.lineHeight-c)/2:0,v=i.y+m;if(a.usePointStyle){let b={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},x=r.leftForLtr(p,d)+d/2,k=v+c/2;t.strokeStyle=a.multiKeyBackground,t.fillStyle=a.multiKeyBackground,lb(t,b,x,k),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,lb(t,b,x,k)}else{t.lineWidth=gt(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;let b=r.leftForLtr(p,d),x=r.leftForLtr(r.xPlus(p,1),d-2),k=nl(s.borderRadius);Object.values(k).some(z=>z!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,af(t,{x:b,y:v,w:d,h:c,radius:k}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),af(t,{x,y:v+1,w:d-2,h:c-2,radius:k}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(b,v,d,c),t.strokeRect(b,v,d,c),t.fillStyle=s.backgroundColor,t.fillRect(x,v+1,d-2,c-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,i,n){let{body:r}=this,{bodySpacing:a,bodyAlign:s,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:f}=n,h=Ri(n.bodyFont),p=h.lineHeight,m=0,v=Ac(n.rtl,this.x,this.width),b=function(P){i.fillText(P,v.x(t.x+m),t.y+p/2),t.y+=p+a},x=v.textAlign(s),k,z,E,A,C,L,M;for(i.textAlign=s,i.textBaseline="middle",i.font=h.string,t.x=vb(this,x,n),i.fillStyle=n.bodyColor,Lt(this.beforeBody,b),m=l&&x!=="right"?s==="center"?d/2+f:d+2+f:0,A=0,L=r.length;A<L;++A){for(k=r[A],z=this.labelTextColors[A],i.fillStyle=z,Lt(k.before,b),E=k.lines,l&&E.length&&(this._drawColorBox(i,t,A,v,n),p=Math.max(h.lineHeight,c)),C=0,M=E.length;C<M;++C)b(E[C]),p=h.lineHeight;Lt(k.after,b)}m=0,p=h.lineHeight,Lt(this.afterBody,b),t.y-=a}drawFooter(t,i,n){let r=this.footer,a=r.length,s,l;if(a){let c=Ac(n.rtl,this.x,this.width);for(t.x=vb(this,n.footerAlign,n),t.y+=n.footerMarginTop,i.textAlign=c.textAlign(n.footerAlign),i.textBaseline="middle",s=Ri(n.footerFont),i.fillStyle=n.footerColor,i.font=s.string,l=0;l<a;++l)i.fillText(r[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+n.footerSpacing}}drawBackground(t,i,n,r){let{xAlign:a,yAlign:s}=this,{x:l,y:c}=t,{width:d,height:f}=n,{topLeft:h,topRight:p,bottomLeft:m,bottomRight:v}=nl(r.cornerRadius);i.fillStyle=r.backgroundColor,i.strokeStyle=r.borderColor,i.lineWidth=r.borderWidth,i.beginPath(),i.moveTo(l+h,c),s==="top"&&this.drawCaret(t,i,n,r),i.lineTo(l+d-p,c),i.quadraticCurveTo(l+d,c,l+d,c+p),s==="center"&&a==="right"&&this.drawCaret(t,i,n,r),i.lineTo(l+d,c+f-v),i.quadraticCurveTo(l+d,c+f,l+d-v,c+f),s==="bottom"&&this.drawCaret(t,i,n,r),i.lineTo(l+m,c+f),i.quadraticCurveTo(l,c+f,l,c+f-m),s==="center"&&a==="left"&&this.drawCaret(t,i,n,r),i.lineTo(l,c+h),i.quadraticCurveTo(l,c,l+h,c),i.closePath(),i.fill(),r.borderWidth>0&&i.stroke()}_updateAnimationTarget(t){let i=this.chart,n=this.$animations,r=n&&n.x,a=n&&n.y;if(r||a){let s=Iu[t.position].call(this,this._active,this._eventPosition);if(!s)return;let l=this._size=M6(this,t),c=Object.assign({},s,this._size),d=L6(i,t,c),f=q6(t,c,d,i);(r._to!==f.x||a._to!==f.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,f))}}_willRender(){return!!this.opacity}draw(t){let i=this.options.setContext(this.getContext()),n=this.opacity;if(!n)return;this._updateAnimationTarget(i);let r={width:this.width,height:this.height},a={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;let s=gn(i.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&l&&(t.save(),t.globalAlpha=n,this.drawBackground(a,t,r,i),Vx(t,i.textDirection),a.y+=s.top,this.drawTitle(a,t,i),this.drawBody(a,t,i),this.drawFooter(a,t,i),Ux(t,i.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,i){let n=this._active,r=t.map(({datasetIndex:l,index:c})=>{let d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),a=!Au(n,r),s=this._positionChanged(r,i);(a||s)&&(this._active=r,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,i,n=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let r=this.options,a=this._active||[],s=this._getActiveElements(t,a,i,n),l=this._positionChanged(s,t),c=i||!Au(s,a)||l;return c&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,i))),c}_getActiveElements(t,i,n,r){let a=this.options;if(t.type==="mouseout")return[];if(!r)return i.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let s=this.chart.getElementsAtEventForMode(t,a.mode,a,n);return a.reverse&&s.reverse(),s}_positionChanged(t,i){let{caretX:n,caretY:r,options:a}=this,s=Iu[a.position].call(this,t,i);return s!==!1&&(n!==s.x||r!==s.y)}};ie(Wu,"positioners",Iu);var cU={id:"tooltip",_element:Wu,positioners:Iu,afterInit(o,t,i){i&&(o.tooltip=new Wu({chart:o,options:i}))},beforeUpdate(o,t,i){o.tooltip&&o.tooltip.initialize(i)},reset(o,t,i){o.tooltip&&o.tooltip.initialize(i)},afterDraw(o){let t=o.tooltip;if(t&&t._willRender()){let i={tooltip:t};if(o.notifyPlugins("beforeTooltipDraw",et(Ce({},i),{cancelable:!0}))===!1)return;t.draw(o.ctx),o.notifyPlugins("afterTooltipDraw",i)}},afterEvent(o,t){if(o.tooltip){let i=t.replay;o.tooltip.handleEvent(t.event,i,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(o,t)=>t.bodyFont.size,boxWidth:(o,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:cA},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:o=>o!=="filter"&&o!=="itemSort"&&o!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},dU=Object.freeze({__proto__:null,Colors:kV,Decimation:SV,Filler:UV,Legend:QV,SubTitle:tU,Title:eU,Tooltip:cU}),fU=(o,t,i,n)=>(typeof t=="string"?(i=o.push(t)-1,n.unshift({index:i,label:t})):isNaN(t)&&(i=null),i);function hU(o,t,i,n){let r=o.indexOf(t);if(r===-1)return fU(o,t,i,n);let a=o.lastIndexOf(t);return r!==a?i:r}var uU=(o,t)=>o===null?null:Vi(Math.round(o),0,t);function O6(o){let t=this.getLabels();return o>=0&&o<t.length?t[o]:o}var Fu=class extends Rc{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let i=this._addedLabels;if(i.length){let n=this.getLabels();for(let{index:r,label:a}of i)n[r]===a&&n.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,i){if(pt(t))return null;let n=this.getLabels();return i=isFinite(i)&&n[i]===t?i:hU(n,t,st(i,t),this._addedLabels),uU(i,n.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:i}=this.getUserBounds(),{min:n,max:r}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(n=0),i||(r=this.getLabels().length-1)),this.min=n,this.max=r}buildTicks(){let t=this.min,i=this.max,n=this.options.offset,r=[],a=this.getLabels();a=t===0&&i===a.length-1?a:a.slice(t,i+1),this._valueRange=Math.max(a.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let s=t;s<=i;s++)r.push({value:s});return r}getLabelForValue(t){return O6.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let i=this.ticks;return t<0||t>i.length-1?null:this.getPixelForValue(i[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}};ie(Fu,"id","category"),ie(Fu,"defaults",{ticks:{callback:O6}});function pU(o,t){let i=[],{bounds:r,step:a,min:s,max:l,precision:c,count:d,maxTicks:f,maxDigits:h,includeBounds:p}=o,m=a||1,v=f-1,{min:b,max:x}=t,k=!pt(s),z=!pt(l),E=!pt(d),A=(x-b)/(h+1),C=zx((x-b)/v/m)*m,L,M,P,I;if(C<1e-14&&!k&&!z)return[{value:b},{value:x}];I=Math.ceil(x/C)-Math.floor(b/C),I>v&&(C=zx(I*C/v/m)*m),pt(c)||(L=Math.pow(10,c),C=Math.ceil(C*L)/L),r==="ticks"?(M=Math.floor(b/C)*C,P=Math.ceil(x/C)*C):(M=b,P=x),k&&z&&a&&kS((l-s)/a,C/1e3)?(I=Math.round(Math.min((l-s)/C,f)),C=(l-s)/I,M=s,P=l):E?(M=k?s:M,P=z?l:P,I=d-1,C=(P-M)/I):(I=(P-M)/C,nf(I,Math.round(I),C/1e3)?I=Math.round(I):I=Math.ceil(I));let N=Math.max(Sx(C),Sx(M));L=Math.pow(10,pt(c)?N:c),M=Math.round(M*L)/L,P=Math.round(P*L)/L;let B=0;for(k&&(p&&M!==s?(i.push({value:s}),M<s&&B++,nf(Math.round((M+B*C)*L)/L,s,D6(s,A,o))&&B++):M<s&&B++);B<I;++B){let U=Math.round((M+B*C)*L)/L;if(z&&U>l)break;i.push({value:U})}return z&&p&&P!==l?i.length&&nf(i[i.length-1].value,l,D6(l,A,o))?i[i.length-1].value=l:i.push({value:l}):(!z||P===l)&&i.push({value:P}),i}function D6(o,t,{horizontal:i,minRotation:n}){let r=fo(n),a=(i?Math.sin(r):Math.cos(r))||.001,s=.75*t*(""+o).length;return Math.min(t/a,s)}var bf=class extends Rc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,i){return pt(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){let{beginAtZero:t}=this.options,{minDefined:i,maxDefined:n}=this.getUserBounds(),{min:r,max:a}=this,s=c=>r=i?r:c,l=c=>a=n?a:c;if(t){let c=Io(r),d=Io(a);c<0&&d<0?l(0):c>0&&d>0&&s(0)}if(r===a){let c=a===0?1:Math.abs(a*.05);l(a+c),t||s(r-c)}this.min=r,this.max=a}getTickLimit(){let t=this.options.ticks,{maxTicksLimit:i,stepSize:n}=t,r;return n?(r=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),i=i||11),i&&(r=Math.min(i,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,i=t.ticks,n=this.getTickLimit();n=Math.max(2,n);let r={maxTicks:n,bounds:t.bounds,min:t.min,max:t.max,precision:i.precision,step:i.stepSize,count:i.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:i.minRotation||0,includeBounds:i.includeBounds!==!1},a=this._range||this,s=pU(r,a);return t.bounds==="ticks"&&Cx(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){let t=this.ticks,i=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){let r=(n-i)/Math.max(t.length-1,1)/2;i-=r,n+=r}this._startValue=i,this._endValue=n,this._valueRange=n-i}getLabelForValue(t){return of(t,this.chart.options.locale,this.options.ticks.format)}},Nu=class extends bf{determineDataLimits(){let{min:t,max:i}=this.getMinMax(!0);this.min=hi(t)?t:0,this.max=hi(i)?i:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),i=t?this.width:this.height,n=fo(this.options.ticks.minRotation),r=(t?Math.sin(n):Math.cos(n))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(i/Math.min(40,a.lineHeight/r))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}};ie(Nu,"id","linear"),ie(Nu,"defaults",{ticks:{callback:Eu.formatters.numeric}});var Uu=o=>Math.floor(is(o)),Tc=(o,t)=>Math.pow(10,Uu(o)+t);function $6(o){return o/Math.pow(10,Uu(o))===1}function I6(o,t,i){let n=Math.pow(10,i),r=Math.floor(o/n);return Math.ceil(t/n)-r}function mU(o,t){let i=t-o,n=Uu(i);for(;I6(o,t,n)>10;)n++;for(;I6(o,t,n)<10;)n--;return Math.min(n,Uu(o))}function gU(o,{min:t,max:i}){t=ar(o.min,t);let n=[],r=Uu(t),a=mU(t,i),s=a<0?Math.pow(10,Math.abs(a)):1,l=Math.pow(10,a),c=r>a?Math.pow(10,r):0,d=Math.round((t-c)*s)/s,f=Math.floor((t-c)/l/10)*l*10,h=Math.floor((d-f)/Math.pow(10,a)),p=ar(o.min,Math.round((c+f+h*Math.pow(10,a))*s)/s);for(;p<i;)n.push({value:p,major:$6(p),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(a++,h=2,s=a>=0?1:s),p=Math.round((c+f+h*Math.pow(10,a))*s)/s;let m=ar(o.max,p);return n.push({value:m,major:$6(m),significand:h}),n}var Hu=class extends Rc{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,i){let n=bf.prototype.parse.apply(this,[t,i]);if(n===0){this._zero=!0;return}return hi(n)&&n>0?n:null}determineDataLimits(){let{min:t,max:i}=this.getMinMax(!0);this.min=hi(t)?Math.max(0,t):null,this.max=hi(i)?Math.max(0,i):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!hi(this._userMin)&&(this.min=t===Tc(this.min,0)?Tc(this.min,-1):Tc(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:i}=this.getUserBounds(),n=this.min,r=this.max,a=l=>n=t?n:l,s=l=>r=i?r:l;n===r&&(n<=0?(a(1),s(10)):(a(Tc(n,-1)),s(Tc(r,1)))),n<=0&&a(Tc(r,-1)),r<=0&&s(Tc(n,1)),this.min=n,this.max=r}buildTicks(){let t=this.options,i={min:this._userMin,max:this._userMax},n=gU(i,this);return t.bounds==="ticks"&&Cx(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(t){return t===void 0?"0":of(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=is(t),this._valueRange=is(this.max)-is(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(is(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let i=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+i*this._valueRange)}};ie(Hu,"id","logarithmic"),ie(Hu,"defaults",{ticks:{callback:Eu.formatters.logarithmic,major:{enabled:!0}}});function yw(o){let t=o.ticks;if(t.display&&o.display){let i=gn(t.backdropPadding);return st(t.font&&t.font.size,ti.font.size)+i.height}return 0}function bU(o,t,i){return i=Vt(i)?i:[i],{w:LS(o,t.string,i),h:i.length*t.lineHeight}}function F6(o,t,i,n,r){return o===n||o===r?{start:t-i/2,end:t+i/2}:o<n||o>r?{start:t-i,end:t}:{start:t,end:t+i}}function vU(o){let t={l:o.left+o._padding.left,r:o.right-o._padding.right,t:o.top+o._padding.top,b:o.bottom-o._padding.bottom},i=Object.assign({},t),n=[],r=[],a=o._pointLabels.length,s=o.options.pointLabels,l=s.centerPointLabels?Ut/a:0;for(let c=0;c<a;c++){let d=s.setContext(o.getPointLabelContext(c));r[c]=d.padding;let f=o.getPointPosition(c,o.drawingArea+r[c],l),h=Ri(d.font),p=bU(o.ctx,h,o._pointLabels[c]);n[c]=p;let m=or(o.getIndexAngle(c)+l),v=Math.round(rb(m)),b=F6(v,f.x,p.w,0,180),x=F6(v,f.y,p.h,90,270);yU(i,t,m,b,x)}o.setCenterPoint(t.l-i.l,i.r-t.r,t.t-i.t,i.b-t.b),o._pointLabelItems=kU(o,n,r)}function yU(o,t,i,n,r){let a=Math.abs(Math.sin(i)),s=Math.abs(Math.cos(i)),l=0,c=0;n.start<t.l?(l=(t.l-n.start)/a,o.l=Math.min(o.l,t.l-l)):n.end>t.r&&(l=(n.end-t.r)/a,o.r=Math.max(o.r,t.r+l)),r.start<t.t?(c=(t.t-r.start)/s,o.t=Math.min(o.t,t.t-c)):r.end>t.b&&(c=(r.end-t.b)/s,o.b=Math.max(o.b,t.b+c))}function xU(o,t,i){let n=o.drawingArea,{extra:r,additionalAngle:a,padding:s,size:l}=i,c=o.getPointPosition(t,n+r+s,a),d=Math.round(rb(or(c.angle+wi))),f=CU(c.y,l.h,d),h=_U(d),p=zU(c.x,l.w,h);return{visible:!0,x:c.x,y:f,textAlign:h,left:p,top:f,right:p+l.w,bottom:f+l.h}}function wU(o,t){if(!t)return!0;let{left:i,top:n,right:r,bottom:a}=o;return!(aa({x:i,y:n},t)||aa({x:i,y:a},t)||aa({x:r,y:n},t)||aa({x:r,y:a},t))}function kU(o,t,i){let n=[],r=o._pointLabels.length,a=o.options,{centerPointLabels:s,display:l}=a.pointLabels,c={extra:yw(a)/2,additionalAngle:s?Ut/r:0},d;for(let f=0;f<r;f++){c.padding=i[f],c.size=t[f];let h=xU(o,f,c);n.push(h),l==="auto"&&(h.visible=wU(h,d),h.visible&&(d=h))}return n}function _U(o){return o===0||o===180?"center":o<180?"left":"right"}function zU(o,t,i){return i==="right"?o-=t:i==="center"&&(o-=t/2),o}function CU(o,t,i){return i===90||i===270?o-=t/2:(i>270||i<90)&&(o-=t),o}function SU(o,t,i){let{left:n,top:r,right:a,bottom:s}=i,{backdropColor:l}=t;if(!pt(l)){let c=nl(t.borderRadius),d=gn(t.backdropPadding);o.fillStyle=l;let f=n-d.left,h=r-d.top,p=a-n+d.width,m=s-r+d.height;Object.values(c).some(v=>v!==0)?(o.beginPath(),af(o,{x:f,y:h,w:p,h:m,radius:c}),o.fill()):o.fillRect(f,h,p,m)}}function AU(o,t){let{ctx:i,options:{pointLabels:n}}=o;for(let r=t-1;r>=0;r--){let a=o._pointLabelItems[r];if(!a.visible)continue;let s=n.setContext(o.getPointLabelContext(r));SU(i,s,a);let l=Ri(s.font),{x:c,y:d,textAlign:f}=a;il(i,o._pointLabels[r],c,d+l.lineHeight/2,l,{color:s.color,textAlign:f,textBaseline:"middle"})}}function dA(o,t,i,n){let{ctx:r}=o;if(i)r.arc(o.xCenter,o.yCenter,t,0,Gt);else{let a=o.getPointPosition(0,t);r.moveTo(a.x,a.y);for(let s=1;s<n;s++)a=o.getPointPosition(s,t),r.lineTo(a.x,a.y)}}function EU(o,t,i,n,r){let a=o.ctx,s=t.circular,{color:l,lineWidth:c}=t;!s&&!n||!l||!c||i<0||(a.save(),a.strokeStyle=l,a.lineWidth=c,a.setLineDash(r.dash||[]),a.lineDashOffset=r.dashOffset,a.beginPath(),dA(o,i,s,n),a.closePath(),a.stroke(),a.restore())}function TU(o,t,i){return rs(o,{label:i,index:t,type:"pointLabel"})}var Lc=class extends bf{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=gn(yw(this.options)/2),i=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+i/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(i,n)/2)}determineDataLimits(){let{min:t,max:i}=this.getMinMax(!1);this.min=hi(t)&&!isNaN(t)?t:0,this.max=hi(i)&&!isNaN(i)?i:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/yw(this.options))}generateTickLabels(t){bf.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((i,n)=>{let r=Ht(this.options.pointLabels.callback,[i,n],this);return r||r===0?r:""}).filter((i,n)=>this.chart.getDataVisibility(n))}fit(){let t=this.options;t.display&&t.pointLabels.display?vU(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,i,n,r){this.xCenter+=Math.floor((t-i)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,i,n,r))}getIndexAngle(t){let i=Gt/(this._pointLabels.length||1),n=this.options.startAngle||0;return or(t*i+fo(n))}getDistanceFromCenterForValue(t){if(pt(t))return NaN;let i=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*i:(t-this.min)*i}getValueForDistanceFromCenter(t){if(pt(t))return NaN;let i=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-i:this.min+i}getPointLabelContext(t){let i=this._pointLabels||[];if(t>=0&&t<i.length){let n=i[t];return TU(this.getContext(),t,n)}}getPointPosition(t,i,n=0){let r=this.getIndexAngle(t)-wi+n;return{x:Math.cos(r)*i+this.xCenter,y:Math.sin(r)*i+this.yCenter,angle:r}}getPointPositionForValue(t,i){return this.getPointPosition(t,this.getDistanceFromCenterForValue(i))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){let{left:i,top:n,right:r,bottom:a}=this._pointLabelItems[t];return{left:i,top:n,right:r,bottom:a}}drawBackground(){let{backgroundColor:t,grid:{circular:i}}=this.options;if(t){let n=this.ctx;n.save(),n.beginPath(),dA(this,this.getDistanceFromCenterForValue(this._endValue),i,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){let t=this.ctx,i=this.options,{angleLines:n,grid:r,border:a}=i,s=this._pointLabels.length,l,c,d;if(i.pointLabels.display&&AU(this,s),r.display&&this.ticks.forEach((f,h)=>{if(h!==0||h===0&&this.min<0){c=this.getDistanceFromCenterForValue(f.value);let p=this.getContext(h),m=r.setContext(p),v=a.setContext(p);EU(this,m,c,s,v)}}),n.display){for(t.save(),l=s-1;l>=0;l--){let f=n.setContext(this.getPointLabelContext(l)),{color:h,lineWidth:p}=f;!p||!h||(t.lineWidth=p,t.strokeStyle=h,t.setLineDash(f.borderDash),t.lineDashOffset=f.borderDashOffset,c=this.getDistanceFromCenterForValue(i.reverse?this.min:this.max),d=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(d.x,d.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){let t=this.ctx,i=this.options,n=i.ticks;if(!n.display)return;let r=this.getIndexAngle(0),a,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!i.reverse)return;let d=n.setContext(this.getContext(c)),f=Ri(d.font);if(a=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){t.font=f.string,s=t.measureText(l.label).width,t.fillStyle=d.backdropColor;let h=gn(d.backdropPadding);t.fillRect(-s/2-h.left,-a-f.size/2-h.top,s+h.width,f.size+h.height)}il(t,l.label,0,-a,f,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),t.restore()}drawTitle(){}};ie(Lc,"id","radialLinear"),ie(Lc,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Eu.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),ie(Lc,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),ie(Lc,"descriptors",{angleLines:{_fallback:"grid"}});var Eb={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},lr=Object.keys(Eb);function N6(o,t){return o-t}function H6(o,t){if(pt(t))return null;let i=o._adapter,{parser:n,round:r,isoWeekday:a}=o._parseOpts,s=t;return typeof n=="function"&&(s=n(s)),hi(s)||(s=typeof n=="string"?i.parse(s,n):i.parse(s)),s===null?null:(r&&(s=r==="week"&&(Sc(a)||a===!0)?i.startOf(s,"isoWeek",a):i.startOf(s,r)),+s)}function B6(o,t,i,n){let r=lr.length;for(let a=lr.indexOf(o);a<r-1;++a){let s=Eb[lr[a]],l=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((i-t)/(l*s.size))<=n)return lr[a]}return lr[r-1]}function MU(o,t,i,n,r){for(let a=lr.length-1;a>=lr.indexOf(i);a--){let s=lr[a];if(Eb[s].common&&o._adapter.diff(r,n,s)>=t-1)return s}return lr[i?lr.indexOf(i):0]}function LU(o){for(let t=lr.indexOf(o)+1,i=lr.length;t<i;++t)if(Eb[lr[t]].common)return lr[t]}function W6(o,t,i){if(!i)o[t]=!0;else if(i.length){let{lo:n,hi:r}=ob(i,t),a=i[n]>=t?i[n]:i[r];o[a]=!0}}function qU(o,t,i,n){let r=o._adapter,a=+r.startOf(t[0].value,n),s=t[t.length-1].value,l,c;for(l=a;l<=s;l=+r.add(l,1,n))c=i[l],c>=0&&(t[c].major=!0);return t}function j6(o,t,i){let n=[],r={},a=t.length,s,l;for(s=0;s<a;++s)l=t[s],r[l]=s,n.push({value:l,major:!1});return a===0||!i?n:qU(o,n,r,i)}var Pc=class extends Rc{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,i={}){let n=t.time||(t.time={}),r=this._adapter=new UW._date(t.adapters.date);r.init(i),ef(n.displayFormats,r.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=i.normalized}parse(t,i){return t===void 0?null:H6(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,i=this._adapter,n=t.time.unit||"day",{min:r,max:a,minDefined:s,maxDefined:l}=this.getUserBounds();function c(d){!s&&!isNaN(d.min)&&(r=Math.min(r,d.min)),!l&&!isNaN(d.max)&&(a=Math.max(a,d.max))}(!s||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),r=hi(r)&&!isNaN(r)?r:+i.startOf(Date.now(),n),a=hi(a)&&!isNaN(a)?a:+i.endOf(Date.now(),n)+1,this.min=Math.min(r,a-1),this.max=Math.max(r+1,a)}_getLabelBounds(){let t=this.getLabelTimestamps(),i=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(i=t[0],n=t[t.length-1]),{min:i,max:n}}buildTicks(){let t=this.options,i=t.time,n=t.ticks,r=n.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);let a=this.min,s=this.max,l=CS(r,a,s);return this._unit=i.unit||(n.autoSkip?B6(i.minUnit,this.min,this.max,this._getLabelCapacity(a)):MU(this,l.length,i.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:LU(this._unit),this.initOffsets(r),t.reverse&&l.reverse(),j6(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let i=0,n=0,r,a;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),t.length===1?i=1-r:i=(this.getDecimalForValue(t[1])-r)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?n=a:n=(a-this.getDecimalForValue(t[t.length-2]))/2);let s=t.length<3?.5:.25;i=Vi(i,0,s),n=Vi(n,0,s),this._offsets={start:i,end:n,factor:1/(i+1+n)}}_generate(){let t=this._adapter,i=this.min,n=this.max,r=this.options,a=r.time,s=a.unit||B6(a.minUnit,i,n,this._getLabelCapacity(i)),l=st(r.ticks.stepSize,1),c=s==="week"?a.isoWeekday:!1,d=Sc(c)||c===!0,f={},h=i,p,m;if(d&&(h=+t.startOf(h,"isoWeek",c)),h=+t.startOf(h,d?"day":s),t.diff(n,i,s)>1e5*l)throw new Error(i+" and "+n+" are too far apart with stepSize of "+l+" "+s);let v=r.ticks.source==="data"&&this.getDataTimestamps();for(p=h,m=0;p<n;p=+t.add(p,l,s),m++)W6(f,p,v);return(p===n||r.bounds==="ticks"||m===1)&&W6(f,p,v),Object.keys(f).sort(N6).map(b=>+b)}getLabelForValue(t){let i=this._adapter,n=this.options.time;return n.tooltipFormat?i.format(t,n.tooltipFormat):i.format(t,n.displayFormats.datetime)}format(t,i){let r=this.options.time.displayFormats,a=this._unit,s=i||r[a];return this._adapter.format(t,s)}_tickFormatFunction(t,i,n,r){let a=this.options,s=a.ticks.callback;if(s)return Ht(s,[t,i,n],this);let l=a.time.displayFormats,c=this._unit,d=this._majorUnit,f=c&&l[c],h=d&&l[d],p=n[i],m=d&&h&&p&&p.major;return this._adapter.format(t,r||(m?h:f))}generateTickLabels(t){let i,n,r;for(i=0,n=t.length;i<n;++i)r=t[i],r.label=this._tickFormatFunction(r.value,i,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let i=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((i.start+n)*i.factor)}getValueForPixel(t){let i=this._offsets,n=this.getDecimalForPixel(t)/i.factor-i.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){let i=this.options.ticks,n=this.ctx.measureText(t).width,r=fo(this.isHorizontal()?i.maxRotation:i.minRotation),a=Math.cos(r),s=Math.sin(r),l=this._resolveTickFontOptions(0).size;return{w:n*a+l*s,h:n*s+l*a}}_getLabelCapacity(t){let i=this.options.time,n=i.displayFormats,r=n[i.unit]||n.millisecond,a=this._tickFormatFunction(t,0,j6(this,[t],this._majorUnit),r),s=this._getLabelSize(a),l=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],i,n;if(t.length)return t;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(i=0,n=r.length;i<n;++i)t=t.concat(r[i].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){let t=this._cache.labels||[],i,n;if(t.length)return t;let r=this.getLabels();for(i=0,n=r.length;i<n;++i)t.push(H6(this,r[i]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Tx(t.sort(N6))}};ie(Pc,"id","time"),ie(Pc,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function yb(o,t,i){let n=0,r=o.length-1,a,s,l,c;i?(t>=o[n].pos&&t<=o[r].pos&&({lo:n,hi:r}=oa(o,"pos",t)),{pos:a,time:l}=o[n],{pos:s,time:c}=o[r]):(t>=o[n].time&&t<=o[r].time&&({lo:n,hi:r}=oa(o,"time",t)),{time:a,pos:l}=o[n],{time:s,pos:c}=o[r]);let d=s-a;return d?l+(c-l)*(t-a)/d:l}var Bu=class extends Pc{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),i=this._table=this.buildLookupTable(t);this._minPos=yb(i,this.min),this._tableRange=yb(i,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let{min:i,max:n}=this,r=[],a=[],s,l,c,d,f;for(s=0,l=t.length;s<l;++s)d=t[s],d>=i&&d<=n&&r.push(d);if(r.length<2)return[{time:i,pos:0},{time:n,pos:1}];for(s=0,l=r.length;s<l;++s)f=r[s+1],c=r[s-1],d=r[s],Math.round((f+c)/2)!==d&&a.push({time:d,pos:s/(l-1)});return a}_generate(){let t=this.min,i=this.max,n=super.getDataTimestamps();return(!n.includes(t)||!n.length)&&n.splice(0,0,t),(!n.includes(i)||n.length===1)&&n.push(i),n.sort((r,a)=>r-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let i=this.getDataTimestamps(),n=this.getLabelTimestamps();return i.length&&n.length?t=this.normalize(i.concat(n)):t=i.length?i:n,t=this._cache.all=t,t}getDecimalForValue(t){return(yb(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let i=this._offsets,n=this.getDecimalForPixel(t)/i.factor-i.end;return yb(this._table,n*this._tableRange+this._minPos,!0)}};ie(Bu,"id","timeseries"),ie(Bu,"defaults",Pc.defaults);var PU=Object.freeze({__proto__:null,CategoryScale:Fu,LinearScale:Nu,LogarithmicScale:Hu,RadialLinearScale:Lc,TimeScale:Pc,TimeSeriesScale:Bu}),fA=[VW,mV,dU,PU];var hA=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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:0 auto}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host>div,zn-simplechart>div{width:115px;height:50px;cursor:pointer}`;var ls=class extends J{constructor(){super(),Lr.register(...fA)}firstUpdated(){let t=this.renderRoot.querySelector("#myChart").getContext("2d"),i={type:"bar",data:{labels:["Jun 2016","Jul 2016","Aug 2016","Sep 2016","Oct 2016","Nov 2016","Dec 2016","Jan 2017","Feb 2017","Mar 2017","Apr 2017","May 2017"],datasets:[{data:[56.4,39.8,66.8,66.4,40.6,55.2,77.4,69.8,57.8,76,110.8,142.6]}]},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1,external:function(n){var d;let r=document.getElementById("chartjs-tooltip");r||(r=document.createElement("div"),r.id="chartjs-tooltip",r.innerHTML="<table></table>",document.body.appendChild(r));let a=n.tooltip;if(a.opacity===0){r.style.opacity="0";return}r.classList.remove("above","below","no-transform"),a.yAlign?r.classList.add(a.yAlign):r.classList.add("no-transform");function s(f){return f.lines}if(a.body){let f=a.title||[],h=a.body.map(s),p="<thead>";f.forEach(function(v){p+="<tr><th>"+v+"</th></tr>"}),p+="</thead><tbody>",h.forEach(function(v,b){let x=a.labelColors[b],k="background:"+x.backgroundColor;k+="; border-color:"+x.borderColor,k+="; border-width: 2px";let z='<span style="'+k+'"></span>';p+="<tr><td>"+z+v+"</td></tr>"}),p+="</tbody>";let m=r.querySelector("table");m&&(m.innerHTML=p)}let l=n.chart.canvas.getBoundingClientRect(),c=Lr.defaults.font;a.padding=3,r.style.opacity="1",r.style.position="absolute",r.style.left=l.left+window.pageXOffset+a.caretX+5+"px",r.style.top=l.top+window.pageYOffset+a.caretY+10+"px",r.style.font=(d=c.family)!=null?d:"Helvetica Neue",r.style.color="white",r.style.padding=a.padding+"px "+a.padding+"px",r.style.pointerEvents="none",r.style.background="rgba(0, 0, 0, 0.7)",r.style.borderRadius="10px"}}},elements:{bar:{borderRadius:10,barThickness:2,maxBarThickness:2,backgroundColor:"#29C1BC",hoverBackgroundColor:"#19837f"}},scales:{x:{display:!1},y:{display:!1}}}};this.myChart=new Lr(t,i)}render(){return T`
1824
1824
  <div>
@@ -2519,7 +2519,7 @@ rect.legend-mouseover-inactive,
2519
2519
  aria-hidden="true"
2520
2520
  ></zn-icon>
2521
2521
  </div>
2522
- `}};bn.styles=Z(PA),bn.dependencies={"zn-icon":Ci},y([ge(".option__label")],bn.prototype,"defaultSlot",2),y([We()],bn.prototype,"current",2),y([We()],bn.prototype,"hasHover",2),y([_({reflect:!0})],bn.prototype,"value",2),y([_({type:Boolean,reflect:!0})],bn.prototype,"disabled",2),y([_({type:Boolean,reflect:!0})],bn.prototype,"selected",2),y([He("disabled")],bn.prototype,"handleDisabledChange",1),y([He("selected")],bn.prototype,"handleSelectedChange",1),y([He("value")],bn.prototype,"handleValueChange",1);var Yu=bn;bn.define("zn-option");var RA=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap}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:10px}}label{font-weight:600;font-size:rgb(var(--zn-font-size-medium));color:rgb(var(--zn-text-heading));display:block;margin-bottom:5px;margin-top:15px}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:10px;accent-color:rgb(var(--zn-primary));width:100%;max-width:768px}fieldset{border-color:rgba(var(--zn-primary),20%);border-width:2px;padding:0 15px 15px}select option{padding:5px}select>option:checked{background-color:rgba(var(--zn-primary),20%);border-radius:5px}fieldset>legend{padding:5px}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap}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:15px}input[type=file]::-webkit-file-upload-button{border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;margin-right:10px}input[type=file]::-webkit-file-upload-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input::-webkit-calendar-picker-indicator{cursor:pointer;padding:10px}input[list]::-webkit-calendar-picker-indicator{padding:10px 5px}.input--with-icon{position:relative}.input--with-icon zn-icon{padding:14px;position:absolute;top:50%;pointer-events:none;transform:translateY(-50%);left:10px;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:contents;--zn-input-bg:var(--zn-panel)}.add-rule{max-width:250px;margin-bottom:10px}.query-builder{display:flex;flex-direction:column;flex-wrap:wrap}.query-builder zn-button{align-self:flex-end}.query-builder--popup:has(.query-builder__row){min-width:990px}.query-builder__row,.query-builder__wrapper{display:flex;width:100%;gap:10px}.query-builder__row{padding-bottom:10px}.query-builder__key,.query-builder__comparator{flex-basis:60%}.query-builder__value{flex-grow:1}.query-builder--dropdown:has(.query-builder__row){min-width:900px}`;var QU={eq:"Equals",neq:"Not Equals",eqi:"Equals (Insensitive)",neqi:"Not Equals (Insensitive)",before:"Was Before",after:"Was After",in:"In",nin:"Not In",matchphrasepre:"Match Phrase Prefix",nmatchphrasepre:"Does Not Match Phrase Prefix",matchphrase:"Match Phrase",nmatchphrase:"Does Not Match Phrase",match:"Match",nmatch:"Does Not Match",contains:"Contains",doesnotcontain:"Does Not Contain",starts:"Starts With",nstarts:"Does Not Start With",ends:"Ends With",nends:"Does Not End With",wild:"Wildcard Match",nwild:"Does Not Match Wildcard",like:"Like Match With",nlike:"Does Not Like Match With",fuzzy:"Fuzzy Match With",nfuzzy:"Does Not Match Fuzzy With",gte:"Greater Than or Equals",gt:"Greater Than",lt:"Less Than",lte:"Less Than or Equals"},Cn=class extends J{constructor(){super(...arguments);this._selectedRules=new Map;this._formController=new rt(this,{});this.filters=[];this.dropdown=!1;this.showValues=[]}get validationMessage(){return""}get validity(){var i;return(i=this.input)==null?void 0:i.validity}firstUpdated(i){super.firstUpdated(i),this.showValues&&this.showValues.forEach(n=>{this._addRule(null,n)}),this._handleChange(),this._formController.updateValidity()}render(){return T`
2522
+ `}};bn.styles=Z(PA),bn.dependencies={"zn-icon":Ci},y([ge(".option__label")],bn.prototype,"defaultSlot",2),y([We()],bn.prototype,"current",2),y([We()],bn.prototype,"hasHover",2),y([_({reflect:!0})],bn.prototype,"value",2),y([_({type:Boolean,reflect:!0})],bn.prototype,"disabled",2),y([_({type:Boolean,reflect:!0})],bn.prototype,"selected",2),y([He("disabled")],bn.prototype,"handleDisabledChange",1),y([He("selected")],bn.prototype,"handleSelectedChange",1),y([He("value")],bn.prototype,"handleValueChange",1);var Yu=bn;bn.define("zn-option");var RA=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap}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:10px}}label{font-weight:600;font-size:rgb(var(--zn-font-size-medium));color:rgb(var(--zn-text-heading));display:block;margin-bottom:5px;margin-top:15px}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:10px;accent-color:rgb(var(--zn-primary));width:100%;max-width:768px}fieldset{border-color:rgba(var(--zn-primary),20%);border-width:2px;padding:0 15px 15px}select option{padding:5px}select>option:checked{background-color:rgba(var(--zn-primary),20%);border-radius:5px}fieldset>legend{padding:5px}input[type=button],input[type=submit],button[type=submit]:not(.button),button[type=button]:not(.button){border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:-moz-fit-content;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap}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:15px}input[type=file]::-webkit-file-upload-button{border-radius:var(--zn-border-radius-medium);display:inline-flex;align-items:center;justify-content:center;padding:6px 15px;margin:auto;width:fit-content;background-color:rgb(var(--zn-primary));color:rgba(255,255,255,0.9);font-weight:600;cursor:pointer;vertical-align:middle;border-color:transparent;white-space:nowrap;margin-right:10px}input[type=file]::-webkit-file-upload-button:hover:not([disabled]){background-color:rgba(var(--zn-primary),0.8)}input::-webkit-calendar-picker-indicator{cursor:pointer;padding:10px}input[list]::-webkit-calendar-picker-indicator{padding:10px 5px}.input--with-icon{position:relative}.input--with-icon zn-icon{padding:14px;position:absolute;top:50%;pointer-events:none;transform:translateY(-50%);left:10px;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:contents;--zn-input-bg:var(--zn-panel)}.add-rule{max-width:250px;margin-bottom:10px}.query-builder{display:flex;flex-direction:column;flex-wrap:wrap}.query-builder zn-button{align-self:flex-end}.query-builder--popup:has(.query-builder__row){min-width:990px}.query-builder__row,.query-builder__wrapper{display:flex;width:100%;gap:10px}.query-builder__row{padding-bottom:10px}.query-builder__key,.query-builder__comparator{flex-basis:60%}.query-builder__value{flex-grow:1}.query-builder--dropdown:has(.query-builder__row){min-width:900px}`;var QU={eq:"Equals",neq:"Not Equals",eqi:"Equals (Insensitive)",neqi:"Not Equals (Insensitive)",before:"Was Before",after:"Was After",in:"In",nin:"Not In",matchphrasepre:"Match Phrase Prefix",nmatchphrasepre:"Does Not Match Phrase Prefix",matchphrase:"Match Phrase",nmatchphrase:"Does Not Match Phrase",match:"Match",nmatch:"Does Not Match",contains:"Contains",doesnotcontain:"Does Not Contain",starts:"Starts With",nstarts:"Does Not Start With",ends:"Ends With",nends:"Does Not End With",wild:"Wildcard Match",nwild:"Does Not Match Wildcard",like:"Like Match With",nlike:"Does Not Like Match With",fuzzy:"Fuzzy Match With",nfuzzy:"Does Not Match Fuzzy With",gte:"Greater Than or Equals",gt:"Greater Than",lt:"Less Than",lte:"Less Than or Equals"},Sn=class extends J{constructor(){super(...arguments);this._selectedRules=new Map;this._formController=new rt(this,{});this.filters=[];this.dropdown=!1;this.showValues=[]}get validationMessage(){return""}get validity(){var i;return(i=this.input)==null?void 0:i.validity}firstUpdated(i){super.firstUpdated(i),this.showValues&&this.showValues.forEach(n=>{this._addRule(null,n)}),this._handleChange(),this._formController.updateValidity()}render(){return T`
2523
2523
  <div class=${ce({"query-builder":!0,"query-builder--dropdown":this.dropdown})}>
2524
2524
  <zn-select class="add-rule"
2525
2525
  size="medium"
@@ -2596,7 +2596,7 @@ rect.legend-mouseover-inactive,
2596
2596
  <zn-input type="text"
2597
2597
  class="query-builder__value"
2598
2598
  @zn-input="${r=>this._updateValue(i,r)}">
2599
- </zn-input>`;return pi(n)}_updateOperatorValue(i,n){let r=this._selectedRules.get(i);if(!r)return;let a=n.target;this._previousOperator=r.operator,r.operator=a.value,this._selectedRules.set(i,r),this._handleChange()}_updateDateValue(i,n){let r=this._selectedRules.get(i);if(!r)return;let a=n.target,s=r.operator,l;if(s==="eq"||s==="neq")l=(Date.parse(a.value)/1e3).toString();else{let c=s==="before"?-1:1;l=(Math.floor((Date.now()-Date.parse(a.value))/1e3/60)*c).toString()}r.value=l,this._selectedRules.set(i,r),this._handleChange()}_updateValue(i,n){let r=this._selectedRules.get(i);if(!r)return;let a=n.target;r.value=a.value,this._selectedRules.set(i,r),this._handleChange()}updateInValue(i,n){let r=this._selectedRules.get(i);if(!r)return;let a=n.target;r.value=a.value,this._selectedRules.set(i,r),this._handleChange()}_changeRule(i,n){var s;let r=this._getRulePosition(i),a=n.target;a.popup.active=!1,(s=a==null?void 0:a.parentElement)==null||s.remove(),this._removeRule(i,n),this._addRule(n,"",r)}_getRulePosition(i){let n=this.container.querySelectorAll(".query-builder__row"),r=-1;return n.forEach((a,s)=>{a.id===i&&(r=s)}),r}_removeRule(i,n){var a;this._selectedRules.delete(i);let r=n.target;(a=r==null?void 0:r.closest(".query-builder__row"))==null||a.remove(),this._handleChange()}clear(){this._selectedRules.clear(),this.value="",this.container.querySelectorAll(".query-builder__row").forEach(n=>{n.remove()}),this.requestUpdate(),this._formController.updateValidity()}reset(){this.clear(),this.showValues.forEach(i=>{this._addRule(null,i)}),this._handleChange(),this._formController.updateValidity()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(i){this.input.setCustomValidity(i),this._formController.updateValidity()}};Cn.styles=Z(RA),Cn.dependencies={"zn-button":Sr,"zn-input":Oc,"zn-option":Yu,"zn-select":cs},y([ge(".query-builder")],Cn.prototype,"container",2),y([ge(".add-rule")],Cn.prototype,"addRule",2),y([ge("input#main-input")],Cn.prototype,"input",2),y([_({type:Array})],Cn.prototype,"filters",2),y([_({type:Boolean})],Cn.prototype,"dropdown",2),y([_()],Cn.prototype,"name",2),y([_()],Cn.prototype,"value",2),y([_({attribute:"show-values",converter:{fromAttribute:i=>i.split(" "),toAttribute:i=>i.join(" ")}})],Cn.prototype,"showValues",2);var ZU=Cn;Cn.define("zn-query-builder");var OA=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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)}:ost{display:contents}.progress-tile{display:flex;width:100%;align-items:center;flex-direction:row;gap:12px;margin-bottom:20px}.progress-tile zn-icon{display:flex;flex-shrink:0;overflow:hidden}.progress-tile__content{display:flex;flex-direction:column;flex-grow:1}.progress-tile__header{display:flex;justify-content:space-between}.progress-tile__header .header__caption{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-x-small);margin-bottom:var(--zn-spacing-2x-small)}.progress-tile__header .header__caption p{font-size:14px;font-weight:400;margin:0;color:rgb(var(--zn-text))}.progress-tile__header .header__wait-time{display:flex;flex-direction:row;gap:3px;font-size:12px;font-weight:400;color:rgb(var(--zn-primary))}.progress-tile__header .header__wait-time p{margin:0}.progress-tile__progress-bars{flex-grow:1;background:rgba(0,0,0,0.02)}.progress-tile__progress-bars__first,.progress-tile__progress-bars__second{height:4px;background-color:rgba(var(--zn-border-color));transition:width 0.3s}.progress-tile__progress-bars__second{background-color:rgb(var(--zn-color-success))}.progress-tile__total-time{min-width:40px;text-align:end;font-size:14px;font-weight:400;color:rgb(var(--zn-text-heading))}.progress-tile--with-hours .progress-tile__total-time{min-width:60px}.progress-tile--ended .progress-tile__progress-bars__first{background-color:rgb(var(--zn-primary))}.progress-tile--ended .progress-tile__progress-bars__second{display:none}.progress-tile--warning .progress-tile__progress-bars__second{background-color:rgb(var(--zn-color-warning))}.progress-tile--warning .header__wait-time{color:rgb(var(--zn-color-warning))}.progress-tile--danger .progress-tile__progress-bars__second{background-color:rgb(var(--zn-color-error))}.progress-tile--danger .header__wait-time{color:rgb(var(--zn-color-error))}`;var Sn=class extends J{constructor(){super(...arguments);this.maxWaitTime=60*5}connectedCallback(){super.connectedCallback(),this.status!=="Ended"&&(this._timerInterval=setInterval(()=>this.requestUpdate(),1e3))}disconnectedCallback(){super.disconnectedCallback(),this._timerInterval&&clearInterval(this._timerInterval)}getHumanReadableTime(i){i=Math.round(i);let n=Math.floor(i/3600),r=Math.floor(i%3600/60),a=i%60;return n>=24?"1 Day+":n?`${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}render(){var h,p;let i=new Date().getTime()/1e3,n=i-this.startTime,r=i-this.maxTime;this.waitingAgentResponse&&(this.waitTime+=1);let a=n/r*100;a=a>100?100:a;let s=this.waitTime/this.maxWaitTime*100;s=s>100?100:s;let l=this.getHumanReadableTime(n),c=this.getHumanReadableTime(this.waitTime),d=this.waitingAgentResponse?"Waiting for Agent":this.status,f=((h=l.match(/:/g))==null?void 0:h.length)===2||((p=c.match(/:/g))==null?void 0:p.length)===2;return T`
2599
+ </zn-input>`;return pi(n)}_updateOperatorValue(i,n){let r=this._selectedRules.get(i);if(!r)return;let a=n.target;this._previousOperator=r.operator,r.operator=a.value,this._selectedRules.set(i,r),this._handleChange()}_updateDateValue(i,n){let r=this._selectedRules.get(i);if(!r)return;let a=n.target,s=r.operator,l;if(s==="eq"||s==="neq")l=(Date.parse(a.value)/1e3).toString();else{let c=s==="before"?-1:1;l=(Math.floor((Date.now()-Date.parse(a.value))/1e3/60)*c).toString()}r.value=l,this._selectedRules.set(i,r),this._handleChange()}_updateValue(i,n){let r=this._selectedRules.get(i);if(!r)return;let a=n.target;r.value=a.value,this._selectedRules.set(i,r),this._handleChange()}updateInValue(i,n){let r=this._selectedRules.get(i);if(!r)return;let a=n.target;r.value=a.value,this._selectedRules.set(i,r),this._handleChange()}_changeRule(i,n){var s;let r=this._getRulePosition(i),a=n.target;a.popup.active=!1,(s=a==null?void 0:a.parentElement)==null||s.remove(),this._removeRule(i,n),this._addRule(n,"",r)}_getRulePosition(i){let n=this.container.querySelectorAll(".query-builder__row"),r=-1;return n.forEach((a,s)=>{a.id===i&&(r=s)}),r}_removeRule(i,n){var a;this._selectedRules.delete(i);let r=n.target;(a=r==null?void 0:r.closest(".query-builder__row"))==null||a.remove(),this._handleChange()}clear(){this._selectedRules.clear(),this.value="",this.container.querySelectorAll(".query-builder__row").forEach(n=>{n.remove()}),this.requestUpdate(),this._formController.updateValidity()}reset(){this.clear(),this.showValues.forEach(i=>{this._addRule(null,i)}),this._handleChange(),this._formController.updateValidity()}checkValidity(){return this.input.checkValidity()}getForm(){return this._formController.getForm()}reportValidity(){return this.input.reportValidity()}setCustomValidity(i){this.input.setCustomValidity(i),this._formController.updateValidity()}};Sn.styles=Z(RA),Sn.dependencies={"zn-button":Sr,"zn-input":Oc,"zn-option":Yu,"zn-select":cs},y([ge(".query-builder")],Sn.prototype,"container",2),y([ge(".add-rule")],Sn.prototype,"addRule",2),y([ge("input#main-input")],Sn.prototype,"input",2),y([_({type:Array})],Sn.prototype,"filters",2),y([_({type:Boolean})],Sn.prototype,"dropdown",2),y([_()],Sn.prototype,"name",2),y([_()],Sn.prototype,"value",2),y([_({attribute:"show-values",converter:{fromAttribute:i=>i.split(" "),toAttribute:i=>i.join(" ")}})],Sn.prototype,"showValues",2);var ZU=Sn;Sn.define("zn-query-builder");var OA=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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)}:ost{display:contents}.progress-tile{display:flex;width:100%;align-items:center;flex-direction:row;gap:12px;margin-bottom:20px}.progress-tile zn-icon{display:flex;flex-shrink:0;overflow:hidden}.progress-tile__content{display:flex;flex-direction:column;flex-grow:1}.progress-tile__header{display:flex;justify-content:space-between}.progress-tile__header .header__caption{display:flex;flex-direction:row;align-items:center;gap:var(--zn-spacing-x-small);margin-bottom:var(--zn-spacing-2x-small)}.progress-tile__header .header__caption p{font-size:14px;font-weight:400;margin:0;color:rgb(var(--zn-text))}.progress-tile__header .header__wait-time{display:flex;flex-direction:row;gap:3px;font-size:12px;font-weight:400;color:rgb(var(--zn-primary))}.progress-tile__header .header__wait-time p{margin:0}.progress-tile__progress-bars{flex-grow:1;background:rgba(0,0,0,0.02)}.progress-tile__progress-bars__first,.progress-tile__progress-bars__second{height:4px;background-color:rgba(var(--zn-border-color));transition:width 0.3s}.progress-tile__progress-bars__second{background-color:rgb(var(--zn-color-success))}.progress-tile__total-time{min-width:40px;text-align:end;font-size:14px;font-weight:400;color:rgb(var(--zn-text-heading))}.progress-tile--with-hours .progress-tile__total-time{min-width:60px}.progress-tile--ended .progress-tile__progress-bars__first{background-color:rgb(var(--zn-primary))}.progress-tile--ended .progress-tile__progress-bars__second{display:none}.progress-tile--warning .progress-tile__progress-bars__second{background-color:rgb(var(--zn-color-warning))}.progress-tile--warning .header__wait-time{color:rgb(var(--zn-color-warning))}.progress-tile--danger .progress-tile__progress-bars__second{background-color:rgb(var(--zn-color-error))}.progress-tile--danger .header__wait-time{color:rgb(var(--zn-color-error))}`;var An=class extends J{constructor(){super(...arguments);this.maxWaitTime=60*5}connectedCallback(){super.connectedCallback(),this.status!=="Ended"&&(this._timerInterval=setInterval(()=>this.requestUpdate(),1e3))}disconnectedCallback(){super.disconnectedCallback(),this._timerInterval&&clearInterval(this._timerInterval)}getHumanReadableTime(i){i=Math.round(i);let n=Math.floor(i/3600),r=Math.floor(i%3600/60),a=i%60;return n>=24?"1 Day+":n?`${n.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`:`${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}`}render(){var h,p;let i=new Date().getTime()/1e3,n=i-this.startTime,r=i-this.maxTime;this.waitingAgentResponse&&(this.waitTime+=1);let a=n/r*100;a=a>100?100:a;let s=this.waitTime/this.maxWaitTime*100;s=s>100?100:s;let l=this.getHumanReadableTime(n),c=this.getHumanReadableTime(this.waitTime),d=this.waitingAgentResponse?"Waiting for Agent":this.status,f=((h=l.match(/:/g))==null?void 0:h.length)===2||((p=c.match(/:/g))==null?void 0:p.length)===2;return T`
2600
2600
  <div class="${ce({"progress-tile":!0,"progress-tile--with-hours":f,"progress-tile--ended":this.status==="Ended","progress-tile--waiting-agent":this.waitingAgentResponse,"progress-tile--interacting":this.status==="Interacting","progress-tile--warn":this.waitTime>60&&this.waitTime<this.maxWaitTime/2,"progress-tile--danger":this.waitTime>=this.maxWaitTime})}">
2601
2601
  <zn-icon size="36" src="${this.avatar}"></zn-icon>
2602
2602
  <div class="progress-tile__content">
@@ -2624,7 +2624,7 @@ rect.legend-mouseover-inactive,
2624
2624
  ${this.endTime?this.getHumanReadableTime(this.endTime-this.startTime):l}
2625
2625
  </div>
2626
2626
  </div>
2627
- `}};Sn.styles=Z(OA),y([_({type:Number,attribute:"start-time"})],Sn.prototype,"startTime",2),y([_({type:Number,attribute:"wait-time",reflect:!0})],Sn.prototype,"waitTime",2),y([_({type:Number,attribute:"max-time"})],Sn.prototype,"maxTime",2),y([_({type:Number,attribute:"end-time"})],Sn.prototype,"endTime",2),y([_({type:Number,attribute:"max-wait-time"})],Sn.prototype,"maxWaitTime",2),y([_({type:Boolean,attribute:"waiting-agent-response"})],Sn.prototype,"waitingAgentResponse",2),y([_()],Sn.prototype,"status",2),y([_()],Sn.prototype,"avatar",2),y([_()],Sn.prototype,"caption",2);var eG=Sn;Sn.define("zn-progress-tile");var DA=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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))}.header,.footer{display:flex;align-items:center;justify-content:space-between}.progress{color:rgb(var(--zn-text))}.label,.info{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.info{font-size:90%}.header{margin-bottom:var(--zn-spacing-x-small)}.footer{margin-top:var(--zn-spacing-x-small)}`;var Ho=class extends J{render(){return T`
2627
+ `}};An.styles=Z(OA),y([_({type:Number,attribute:"start-time"})],An.prototype,"startTime",2),y([_({type:Number,attribute:"wait-time",reflect:!0})],An.prototype,"waitTime",2),y([_({type:Number,attribute:"max-time"})],An.prototype,"maxTime",2),y([_({type:Number,attribute:"end-time"})],An.prototype,"endTime",2),y([_({type:Number,attribute:"max-wait-time"})],An.prototype,"maxWaitTime",2),y([_({type:Boolean,attribute:"waiting-agent-response"})],An.prototype,"waitingAgentResponse",2),y([_()],An.prototype,"status",2),y([_()],An.prototype,"avatar",2),y([_()],An.prototype,"caption",2);var eG=An;An.define("zn-progress-tile");var DA=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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))}.header,.footer{display:flex;align-items:center;justify-content:space-between}.progress{color:rgb(var(--zn-text))}.label,.info{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.info{font-size:90%}.header{margin-bottom:var(--zn-spacing-x-small)}.footer{margin-top:var(--zn-spacing-x-small)}`;var Ho=class extends J{render(){return T`
2628
2628
  ${this.caption||this.showProgress?T`
2629
2629
  <div class="header">
2630
2630
  <p class="caption">${this.caption}</p>
@@ -2864,32 +2864,32 @@ rect.legend-mouseover-inactive,
2864
2864
  </button>
2865
2865
  `):T`
2866
2866
  <div class="empty">${this.query?"No results":"Type something"}</div>`}
2867
- `}};ds.styles=Z(FA),y([_({type:Boolean,reflect:!0})],ds.prototype,"open",2),y([_({type:String})],ds.prototype,"query",2),y([_({type:Array})],ds.prototype,"results",2),y([We()],ds.prototype,"_activeIndex",2);ds.define("zn-context-menu");var oG=typeof global=="object"&&global&&global.Object===Object&&global,qb=oG;var aG=typeof self=="object"&&self&&self.Object===Object&&self,sG=qb||aG||Function("return this")(),Di=sG;var lG=Di.Symbol,po=lG;var NA=Object.prototype,cG=NA.hasOwnProperty,dG=NA.toString,Ju=po?po.toStringTag:void 0;function fG(o){var t=cG.call(o,Ju),i=o[Ju];try{o[Ju]=void 0;var n=!0}catch(a){}var r=dG.call(o);return n&&(t?o[Ju]=i:delete o[Ju]),r}var HA=fG;var hG=Object.prototype,uG=hG.toString;function pG(o){return uG.call(o)}var BA=pG;var mG="[object Null]",gG="[object Undefined]",WA=po?po.toStringTag:void 0;function bG(o){return o==null?o===void 0?gG:mG:WA&&WA in Object(o)?HA(o):BA(o)}var Bo=bG;function vG(o){return o!=null&&typeof o=="object"}var vn=vG;var yG=Array.isArray,mo=yG;function xG(o){var t=typeof o;return o!=null&&(t=="object"||t=="function")}var An=xG;function wG(o){return o}var Pb=wG;var kG="[object AsyncFunction]",_G="[object Function]",zG="[object GeneratorFunction]",CG="[object Proxy]";function SG(o){if(!An(o))return!1;var t=Bo(o);return t==_G||t==zG||t==kG||t==CG}var yf=SG;var AG=Di["__core-js_shared__"],Rb=AG;var jA=function(){var o=/[^.]+$/.exec(Rb&&Rb.keys&&Rb.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function EG(o){return!!jA&&jA in o}var VA=EG;var TG=Function.prototype,MG=TG.toString;function LG(o){if(o!=null){try{return MG.call(o)}catch(t){}try{return o+""}catch(t){}}return""}var fs=LG;var qG=/[\\^$.*+?()[\]{}|]/g,PG=/^\[object .+?Constructor\]$/,RG=Function.prototype,OG=Object.prototype,DG=RG.toString,$G=OG.hasOwnProperty,IG=RegExp("^"+DG.call($G).replace(qG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FG(o){if(!An(o)||VA(o))return!1;var t=yf(o)?IG:PG;return t.test(fs(o))}var UA=FG;function NG(o,t){return o==null?void 0:o[t]}var GA=NG;function HG(o,t){var i=GA(o,t);return UA(i)?i:void 0}var dr=HG;var BG=dr(Di,"WeakMap"),Ob=BG;var YA=Object.create,WG=function(){function o(){}return function(t){if(!An(t))return{};if(YA)return YA(t);o.prototype=t;var i=new o;return o.prototype=void 0,i}}(),XA=WG;function jG(o,t,i){switch(i.length){case 0:return o.call(t);case 1:return o.call(t,i[0]);case 2:return o.call(t,i[0],i[1]);case 3:return o.call(t,i[0],i[1],i[2])}return o.apply(t,i)}var KA=jG;function VG(o,t){var i=-1,n=o.length;for(t||(t=Array(n));++i<n;)t[i]=o[i];return t}var Db=VG;var UG=800,GG=16,YG=Date.now;function XG(o){var t=0,i=0;return function(){var n=YG(),r=GG-(n-i);if(i=n,r>0){if(++t>=UG)return arguments[0]}else t=0;return o.apply(void 0,arguments)}}var JA=XG;function KG(o){return function(){return o}}var QA=KG;var JG=function(){try{var o=dr(Object,"defineProperty");return o({},"",{}),o}catch(t){}}(),xf=JG;var QG=xf?function(o,t){return xf(o,"toString",{configurable:!0,enumerable:!1,value:QA(t),writable:!0})}:Pb,ZA=QG;var ZG=JA(ZA),e9=ZG;function eY(o,t){for(var i=-1,n=o==null?0:o.length;++i<n&&t(o[i],i,o)!==!1;);return o}var t9=eY;var tY=9007199254740991,iY=/^(?:0|[1-9]\d*)$/;function nY(o,t){var i=typeof o;return t=t==null?tY:t,!!t&&(i=="number"||i!="symbol"&&iY.test(o))&&o>-1&&o%1==0&&o<t}var $b=nY;function rY(o,t,i){t=="__proto__"&&xf?xf(o,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):o[t]=i}var wf=rY;function oY(o,t){return o===t||o!==o&&t!==t}var ga=oY;var aY=Object.prototype,sY=aY.hasOwnProperty;function lY(o,t,i){var n=o[t];(!(sY.call(o,t)&&ga(n,i))||i===void 0&&!(t in o))&&wf(o,t,i)}var Ib=lY;function cY(o,t,i,n){var r=!i;i||(i={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=n?n(i[l],o[l],l,i,o):void 0;c===void 0&&(c=o[l]),r?wf(i,l,c):Ib(i,l,c)}return i}var ba=cY;var i9=Math.max;function dY(o,t,i){return t=i9(t===void 0?o.length-1:t,0),function(){for(var n=arguments,r=-1,a=i9(n.length-t,0),s=Array(a);++r<a;)s[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=i(s),KA(o,this,l)}}var n9=dY;function fY(o,t){return e9(n9(o,t,Pb),o+"")}var r9=fY;var hY=9007199254740991;function uY(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=hY}var Fb=uY;function pY(o){return o!=null&&Fb(o.length)&&!yf(o)}var cl=pY;function mY(o,t,i){if(!An(i))return!1;var n=typeof t;return(n=="number"?cl(i)&&$b(t,i.length):n=="string"&&t in i)?ga(i[t],o):!1}var o9=mY;function gY(o){return r9(function(t,i){var n=-1,r=i.length,a=r>1?i[r-1]:void 0,s=r>2?i[2]:void 0;for(a=o.length>3&&typeof a=="function"?(r--,a):void 0,s&&o9(i[0],i[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++n<r;){var l=i[n];l&&o(t,l,n,a)}return t})}var a9=gY;var bY=Object.prototype;function vY(o){var t=o&&o.constructor,i=typeof t=="function"&&t.prototype||bY;return o===i}var kf=vY;function yY(o,t){for(var i=-1,n=Array(o);++i<o;)n[i]=t(i);return n}var s9=yY;var xY="[object Arguments]";function wY(o){return vn(o)&&Bo(o)==xY}var zw=wY;var l9=Object.prototype,kY=l9.hasOwnProperty,_Y=l9.propertyIsEnumerable,zY=zw(function(){return arguments}())?zw:function(o){return vn(o)&&kY.call(o,"callee")&&!_Y.call(o,"callee")},Qu=zY;function CY(){return!1}var c9=CY;var h9=typeof exports=="object"&&exports&&!exports.nodeType&&exports,d9=h9&&typeof module=="object"&&module&&!module.nodeType&&module,SY=d9&&d9.exports===h9,f9=SY?Di.Buffer:void 0,AY=f9?f9.isBuffer:void 0,EY=AY||c9,hs=EY;var TY="[object Arguments]",MY="[object Array]",LY="[object Boolean]",qY="[object Date]",PY="[object Error]",RY="[object Function]",OY="[object Map]",DY="[object Number]",$Y="[object Object]",IY="[object RegExp]",FY="[object Set]",NY="[object String]",HY="[object WeakMap]",BY="[object ArrayBuffer]",WY="[object DataView]",jY="[object Float32Array]",VY="[object Float64Array]",UY="[object Int8Array]",GY="[object Int16Array]",YY="[object Int32Array]",XY="[object Uint8Array]",KY="[object Uint8ClampedArray]",JY="[object Uint16Array]",QY="[object Uint32Array]",ii={};ii[jY]=ii[VY]=ii[UY]=ii[GY]=ii[YY]=ii[XY]=ii[KY]=ii[JY]=ii[QY]=!0;ii[TY]=ii[MY]=ii[BY]=ii[LY]=ii[WY]=ii[qY]=ii[PY]=ii[RY]=ii[OY]=ii[DY]=ii[$Y]=ii[IY]=ii[FY]=ii[NY]=ii[HY]=!1;function ZY(o){return vn(o)&&Fb(o.length)&&!!ii[Bo(o)]}var u9=ZY;function eX(o){return function(t){return o(t)}}var _f=eX;var p9=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Zu=p9&&typeof module=="object"&&module&&!module.nodeType&&module,tX=Zu&&Zu.exports===p9,Cw=tX&&qb.process,iX=function(){try{var o=Zu&&Zu.require&&Zu.require("util").types;return o||Cw&&Cw.binding&&Cw.binding("util")}catch(t){}}(),us=iX;var m9=us&&us.isTypedArray,nX=m9?_f(m9):u9,zf=nX;var rX=Object.prototype,oX=rX.hasOwnProperty;function aX(o,t){var i=mo(o),n=!i&&Qu(o),r=!i&&!n&&hs(o),a=!i&&!n&&!r&&zf(o),s=i||n||r||a,l=s?s9(o.length,String):[],c=l.length;for(var d in o)(t||oX.call(o,d))&&!(s&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||$b(d,c)))&&l.push(d);return l}var Nb=aX;function sX(o,t){return function(i){return o(t(i))}}var Hb=sX;var lX=Hb(Object.keys,Object),g9=lX;var cX=Object.prototype,dX=cX.hasOwnProperty;function fX(o){if(!kf(o))return g9(o);var t=[];for(var i in Object(o))dX.call(o,i)&&i!="constructor"&&t.push(i);return t}var b9=fX;function hX(o){return cl(o)?Nb(o):b9(o)}var Cf=hX;function uX(o){var t=[];if(o!=null)for(var i in Object(o))t.push(i);return t}var v9=uX;var pX=Object.prototype,mX=pX.hasOwnProperty;function gX(o){if(!An(o))return v9(o);var t=kf(o),i=[];for(var n in o)n=="constructor"&&(t||!mX.call(o,n))||i.push(n);return i}var y9=gX;function bX(o){return cl(o)?Nb(o,!0):y9(o)}var va=bX;var vX=dr(Object,"create"),ps=vX;function yX(){this.__data__=ps?ps(null):{},this.size=0}var x9=yX;function xX(o){var t=this.has(o)&&delete this.__data__[o];return this.size-=t?1:0,t}var w9=xX;var wX="__lodash_hash_undefined__",kX=Object.prototype,_X=kX.hasOwnProperty;function zX(o){var t=this.__data__;if(ps){var i=t[o];return i===wX?void 0:i}return _X.call(t,o)?t[o]:void 0}var k9=zX;var CX=Object.prototype,SX=CX.hasOwnProperty;function AX(o){var t=this.__data__;return ps?t[o]!==void 0:SX.call(t,o)}var _9=AX;var EX="__lodash_hash_undefined__";function TX(o,t){var i=this.__data__;return this.size+=this.has(o)?0:1,i[o]=ps&&t===void 0?EX:t,this}var z9=TX;function Sf(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}Sf.prototype.clear=x9;Sf.prototype.delete=w9;Sf.prototype.get=k9;Sf.prototype.has=_9;Sf.prototype.set=z9;var Sw=Sf;function MX(){this.__data__=[],this.size=0}var C9=MX;function LX(o,t){for(var i=o.length;i--;)if(ga(o[i][0],t))return i;return-1}var dl=LX;var qX=Array.prototype,PX=qX.splice;function RX(o){var t=this.__data__,i=dl(t,o);if(i<0)return!1;var n=t.length-1;return i==n?t.pop():PX.call(t,i,1),--this.size,!0}var S9=RX;function OX(o){var t=this.__data__,i=dl(t,o);return i<0?void 0:t[i][1]}var A9=OX;function DX(o){return dl(this.__data__,o)>-1}var E9=DX;function $X(o,t){var i=this.__data__,n=dl(i,o);return n<0?(++this.size,i.push([o,t])):i[n][1]=t,this}var T9=$X;function Af(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}Af.prototype.clear=C9;Af.prototype.delete=S9;Af.prototype.get=A9;Af.prototype.has=E9;Af.prototype.set=T9;var fl=Af;var IX=dr(Di,"Map"),hl=IX;function FX(){this.size=0,this.__data__={hash:new Sw,map:new(hl||fl),string:new Sw}}var M9=FX;function NX(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null}var L9=NX;function HX(o,t){var i=o.__data__;return L9(t)?i[typeof t=="string"?"string":"hash"]:i.map}var ul=HX;function BX(o){var t=ul(this,o).delete(o);return this.size-=t?1:0,t}var q9=BX;function WX(o){return ul(this,o).get(o)}var P9=WX;function jX(o){return ul(this,o).has(o)}var R9=jX;function VX(o,t){var i=ul(this,o),n=i.size;return i.set(o,t),this.size+=i.size==n?0:1,this}var O9=VX;function Ef(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}Ef.prototype.clear=M9;Ef.prototype.delete=q9;Ef.prototype.get=P9;Ef.prototype.has=R9;Ef.prototype.set=O9;var Bb=Ef;function UX(o,t){for(var i=-1,n=t.length,r=o.length;++i<n;)o[r+i]=t[i];return o}var Wb=UX;var GX=Hb(Object.getPrototypeOf,Object),Tf=GX;var YX="[object Object]",XX=Function.prototype,KX=Object.prototype,D9=XX.toString,JX=KX.hasOwnProperty,QX=D9.call(Object);function ZX(o){if(!vn(o)||Bo(o)!=YX)return!1;var t=Tf(o);if(t===null)return!0;var i=JX.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&D9.call(i)==QX}var $9=ZX;function eK(){this.__data__=new fl,this.size=0}var I9=eK;function tK(o){var t=this.__data__,i=t.delete(o);return this.size=t.size,i}var F9=tK;function iK(o){return this.__data__.get(o)}var N9=iK;function nK(o){return this.__data__.has(o)}var H9=nK;var rK=200;function oK(o,t){var i=this.__data__;if(i instanceof fl){var n=i.__data__;if(!hl||n.length<rK-1)return n.push([o,t]),this.size=++i.size,this;i=this.__data__=new Bb(n)}return i.set(o,t),this.size=i.size,this}var B9=oK;function Mf(o){var t=this.__data__=new fl(o);this.size=t.size}Mf.prototype.clear=I9;Mf.prototype.delete=F9;Mf.prototype.get=N9;Mf.prototype.has=H9;Mf.prototype.set=B9;var pl=Mf;function aK(o,t){return o&&ba(t,Cf(t),o)}var W9=aK;function sK(o,t){return o&&ba(t,va(t),o)}var j9=sK;var Y9=typeof exports=="object"&&exports&&!exports.nodeType&&exports,V9=Y9&&typeof module=="object"&&module&&!module.nodeType&&module,lK=V9&&V9.exports===Y9,U9=lK?Di.Buffer:void 0,G9=U9?U9.allocUnsafe:void 0;function cK(o,t){if(t)return o.slice();var i=o.length,n=G9?G9(i):new o.constructor(i);return o.copy(n),n}var jb=cK;function dK(o,t){for(var i=-1,n=o==null?0:o.length,r=0,a=[];++i<n;){var s=o[i];t(s,i,o)&&(a[r++]=s)}return a}var X9=dK;function fK(){return[]}var Vb=fK;var hK=Object.prototype,uK=hK.propertyIsEnumerable,K9=Object.getOwnPropertySymbols,pK=K9?function(o){return o==null?[]:(o=Object(o),X9(K9(o),function(t){return uK.call(o,t)}))}:Vb,Lf=pK;function mK(o,t){return ba(o,Lf(o),t)}var J9=mK;var gK=Object.getOwnPropertySymbols,bK=gK?function(o){for(var t=[];o;)Wb(t,Lf(o)),o=Tf(o);return t}:Vb,Ub=bK;function vK(o,t){return ba(o,Ub(o),t)}var Q9=vK;function yK(o,t,i){var n=t(o);return mo(o)?n:Wb(n,i(o))}var Gb=yK;function xK(o){return Gb(o,Cf,Lf)}var ep=xK;function wK(o){return Gb(o,va,Ub)}var Z9=wK;var kK=dr(Di,"DataView"),Yb=kK;var _K=dr(Di,"Promise"),Xb=_K;var zK=dr(Di,"Set"),Kb=zK;var eE="[object Map]",CK="[object Object]",tE="[object Promise]",iE="[object Set]",nE="[object WeakMap]",rE="[object DataView]",SK=fs(Yb),AK=fs(hl),EK=fs(Xb),TK=fs(Kb),MK=fs(Ob),Dc=Bo;(Yb&&Dc(new Yb(new ArrayBuffer(1)))!=rE||hl&&Dc(new hl)!=eE||Xb&&Dc(Xb.resolve())!=tE||Kb&&Dc(new Kb)!=iE||Ob&&Dc(new Ob)!=nE)&&(Dc=function(o){var t=Bo(o),i=t==CK?o.constructor:void 0,n=i?fs(i):"";if(n)switch(n){case SK:return rE;case AK:return eE;case EK:return tE;case TK:return iE;case MK:return nE}return t});var ms=Dc;var LK=Object.prototype,qK=LK.hasOwnProperty;function PK(o){var t=o.length,i=new o.constructor(t);return t&&typeof o[0]=="string"&&qK.call(o,"index")&&(i.index=o.index,i.input=o.input),i}var oE=PK;var RK=Di.Uint8Array,qf=RK;function OK(o){var t=new o.constructor(o.byteLength);return new qf(t).set(new qf(o)),t}var Pf=OK;function DK(o,t){var i=t?Pf(o.buffer):o.buffer;return new o.constructor(i,o.byteOffset,o.byteLength)}var aE=DK;var $K=/\w*$/;function IK(o){var t=new o.constructor(o.source,$K.exec(o));return t.lastIndex=o.lastIndex,t}var sE=IK;var lE=po?po.prototype:void 0,cE=lE?lE.valueOf:void 0;function FK(o){return cE?Object(cE.call(o)):{}}var dE=FK;function NK(o,t){var i=t?Pf(o.buffer):o.buffer;return new o.constructor(i,o.byteOffset,o.length)}var Jb=NK;var HK="[object Boolean]",BK="[object Date]",WK="[object Map]",jK="[object Number]",VK="[object RegExp]",UK="[object Set]",GK="[object String]",YK="[object Symbol]",XK="[object ArrayBuffer]",KK="[object DataView]",JK="[object Float32Array]",QK="[object Float64Array]",ZK="[object Int8Array]",eJ="[object Int16Array]",tJ="[object Int32Array]",iJ="[object Uint8Array]",nJ="[object Uint8ClampedArray]",rJ="[object Uint16Array]",oJ="[object Uint32Array]";function aJ(o,t,i){var n=o.constructor;switch(t){case XK:return Pf(o);case HK:case BK:return new n(+o);case KK:return aE(o,i);case JK:case QK:case ZK:case eJ:case tJ:case iJ:case nJ:case rJ:case oJ:return Jb(o,i);case WK:return new n;case jK:case GK:return new n(o);case VK:return sE(o);case UK:return new n;case YK:return dE(o)}}var fE=aJ;function sJ(o){return typeof o.constructor=="function"&&!kf(o)?XA(Tf(o)):{}}var Qb=sJ;var lJ="[object Map]";function cJ(o){return vn(o)&&ms(o)==lJ}var hE=cJ;var uE=us&&us.isMap,dJ=uE?_f(uE):hE,pE=dJ;var fJ="[object Set]";function hJ(o){return vn(o)&&ms(o)==fJ}var mE=hJ;var gE=us&&us.isSet,uJ=gE?_f(gE):mE,bE=uJ;var pJ=1,mJ=2,gJ=4,vE="[object Arguments]",bJ="[object Array]",vJ="[object Boolean]",yJ="[object Date]",xJ="[object Error]",yE="[object Function]",wJ="[object GeneratorFunction]",kJ="[object Map]",_J="[object Number]",xE="[object Object]",zJ="[object RegExp]",CJ="[object Set]",SJ="[object String]",AJ="[object Symbol]",EJ="[object WeakMap]",TJ="[object ArrayBuffer]",MJ="[object DataView]",LJ="[object Float32Array]",qJ="[object Float64Array]",PJ="[object Int8Array]",RJ="[object Int16Array]",OJ="[object Int32Array]",DJ="[object Uint8Array]",$J="[object Uint8ClampedArray]",IJ="[object Uint16Array]",FJ="[object Uint32Array]",Xt={};Xt[vE]=Xt[bJ]=Xt[TJ]=Xt[MJ]=Xt[vJ]=Xt[yJ]=Xt[LJ]=Xt[qJ]=Xt[PJ]=Xt[RJ]=Xt[OJ]=Xt[kJ]=Xt[_J]=Xt[xE]=Xt[zJ]=Xt[CJ]=Xt[SJ]=Xt[AJ]=Xt[DJ]=Xt[$J]=Xt[IJ]=Xt[FJ]=!0;Xt[xJ]=Xt[yE]=Xt[EJ]=!1;function Zb(o,t,i,n,r,a){var s,l=t&pJ,c=t&mJ,d=t&gJ;if(i&&(s=r?i(o,n,r,a):i(o)),s!==void 0)return s;if(!An(o))return o;var f=mo(o);if(f){if(s=oE(o),!l)return Db(o,s)}else{var h=ms(o),p=h==yE||h==wJ;if(hs(o))return jb(o,l);if(h==xE||h==vE||p&&!r){if(s=c||p?{}:Qb(o),!l)return c?Q9(o,j9(s,o)):J9(o,W9(s,o))}else{if(!Xt[h])return r?o:{};s=fE(o,h,l)}}a||(a=new pl);var m=a.get(o);if(m)return m;a.set(o,s),bE(o)?o.forEach(function(x){s.add(Zb(x,t,i,x,o,a))}):pE(o)&&o.forEach(function(x,k){s.set(k,Zb(x,t,i,k,o,a))});var v=d?c?Z9:ep:c?va:Cf,b=f?void 0:v(o);return t9(b||o,function(x,k){b&&(k=x,x=o[k]),Ib(s,k,Zb(x,t,i,k,o,a))}),s}var wE=Zb;var NJ=1,HJ=4;function BJ(o){return wE(o,NJ|HJ)}var ya=BJ;var WJ="__lodash_hash_undefined__";function jJ(o){return this.__data__.set(o,WJ),this}var kE=jJ;function VJ(o){return this.__data__.has(o)}var _E=VJ;function ev(o){var t=-1,i=o==null?0:o.length;for(this.__data__=new Bb;++t<i;)this.add(o[t])}ev.prototype.add=ev.prototype.push=kE;ev.prototype.has=_E;var zE=ev;function UJ(o,t){for(var i=-1,n=o==null?0:o.length;++i<n;)if(t(o[i],i,o))return!0;return!1}var CE=UJ;function GJ(o,t){return o.has(t)}var SE=GJ;var YJ=1,XJ=2;function KJ(o,t,i,n,r,a){var s=i&YJ,l=o.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=a.get(o),f=a.get(t);if(d&&f)return d==t&&f==o;var h=-1,p=!0,m=i&XJ?new zE:void 0;for(a.set(o,t),a.set(t,o);++h<l;){var v=o[h],b=t[h];if(n)var x=s?n(b,v,h,t,o,a):n(v,b,h,o,t,a);if(x!==void 0){if(x)continue;p=!1;break}if(m){if(!CE(t,function(k,z){if(!SE(m,z)&&(v===k||r(v,k,i,n,a)))return m.push(z)})){p=!1;break}}else if(!(v===b||r(v,b,i,n,a))){p=!1;break}}return a.delete(o),a.delete(t),p}var tv=KJ;function JJ(o){var t=-1,i=Array(o.size);return o.forEach(function(n,r){i[++t]=[r,n]}),i}var AE=JJ;function QJ(o){var t=-1,i=Array(o.size);return o.forEach(function(n){i[++t]=n}),i}var EE=QJ;var ZJ=1,eQ=2,tQ="[object Boolean]",iQ="[object Date]",nQ="[object Error]",rQ="[object Map]",oQ="[object Number]",aQ="[object RegExp]",sQ="[object Set]",lQ="[object String]",cQ="[object Symbol]",dQ="[object ArrayBuffer]",fQ="[object DataView]",TE=po?po.prototype:void 0,Aw=TE?TE.valueOf:void 0;function hQ(o,t,i,n,r,a,s){switch(i){case fQ:if(o.byteLength!=t.byteLength||o.byteOffset!=t.byteOffset)return!1;o=o.buffer,t=t.buffer;case dQ:return!(o.byteLength!=t.byteLength||!a(new qf(o),new qf(t)));case tQ:case iQ:case oQ:return ga(+o,+t);case nQ:return o.name==t.name&&o.message==t.message;case aQ:case lQ:return o==t+"";case rQ:var l=AE;case sQ:var c=n&ZJ;if(l||(l=EE),o.size!=t.size&&!c)return!1;var d=s.get(o);if(d)return d==t;n|=eQ,s.set(o,t);var f=tv(l(o),l(t),n,r,a,s);return s.delete(o),f;case cQ:if(Aw)return Aw.call(o)==Aw.call(t)}return!1}var ME=hQ;var uQ=1,pQ=Object.prototype,mQ=pQ.hasOwnProperty;function gQ(o,t,i,n,r,a){var s=i&uQ,l=ep(o),c=l.length,d=ep(t),f=d.length;if(c!=f&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in t:mQ.call(t,p)))return!1}var m=a.get(o),v=a.get(t);if(m&&v)return m==t&&v==o;var b=!0;a.set(o,t),a.set(t,o);for(var x=s;++h<c;){p=l[h];var k=o[p],z=t[p];if(n)var E=s?n(z,k,p,t,o,a):n(k,z,p,o,t,a);if(!(E===void 0?k===z||r(k,z,i,n,a):E)){b=!1;break}x||(x=p=="constructor")}if(b&&!x){var A=o.constructor,C=t.constructor;A!=C&&"constructor"in o&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof C=="function"&&C instanceof C)&&(b=!1)}return a.delete(o),a.delete(t),b}var LE=gQ;var bQ=1,qE="[object Arguments]",PE="[object Array]",iv="[object Object]",vQ=Object.prototype,RE=vQ.hasOwnProperty;function yQ(o,t,i,n,r,a){var s=mo(o),l=mo(t),c=s?PE:ms(o),d=l?PE:ms(t);c=c==qE?iv:c,d=d==qE?iv:d;var f=c==iv,h=d==iv,p=c==d;if(p&&hs(o)){if(!hs(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new pl),s||zf(o)?tv(o,t,i,n,r,a):ME(o,t,c,i,n,r,a);if(!(i&bQ)){var m=f&&RE.call(o,"__wrapped__"),v=h&&RE.call(t,"__wrapped__");if(m||v){var b=m?o.value():o,x=v?t.value():t;return a||(a=new pl),r(b,x,i,n,a)}}return p?(a||(a=new pl),LE(o,t,i,n,r,a)):!1}var OE=yQ;function DE(o,t,i,n,r){return o===t?!0:o==null||t==null||!vn(o)&&!vn(t)?o!==o&&t!==t:OE(o,t,i,n,DE,r)}var $E=DE;function xQ(o){return function(t,i,n){for(var r=-1,a=Object(t),s=n(t),l=s.length;l--;){var c=s[o?l:++r];if(i(a[c],c,a)===!1)break}return t}}var IE=xQ;var wQ=IE(),FE=wQ;function kQ(o,t,i){(i!==void 0&&!ga(o[t],i)||i===void 0&&!(t in o))&&wf(o,t,i)}var tp=kQ;function _Q(o){return vn(o)&&cl(o)}var NE=_Q;function zQ(o,t){if(!(t==="constructor"&&typeof o[t]=="function")&&t!="__proto__")return o[t]}var ip=zQ;function CQ(o){return ba(o,va(o))}var HE=CQ;function SQ(o,t,i,n,r,a,s){var l=ip(o,i),c=ip(t,i),d=s.get(c);if(d){tp(o,i,d);return}var f=a?a(l,c,i+"",o,t,s):void 0,h=f===void 0;if(h){var p=mo(c),m=!p&&hs(c),v=!p&&!m&&zf(c);f=c,p||m||v?mo(l)?f=l:NE(l)?f=Db(l):m?(h=!1,f=jb(c,!0)):v?(h=!1,f=Jb(c,!0)):f=[]:$9(c)||Qu(c)?(f=l,Qu(l)?f=HE(l):(!An(l)||yf(l))&&(f=Qb(c))):h=!1}h&&(s.set(c,f),r(f,c,n,a,s),s.delete(c)),tp(o,i,f)}var BE=SQ;function WE(o,t,i,n,r){o!==t&&FE(t,function(a,s){if(r||(r=new pl),An(a))BE(o,t,s,i,WE,n,r);else{var l=n?n(ip(o,s),a,s+"",o,t,r):void 0;l===void 0&&(l=a),tp(o,s,l)}},va)}var jE=WE;function AQ(o,t){return $E(o,t)}var $c=AQ;var EQ=a9(function(o,t,i){jE(o,t,i)}),fr=EQ;var op={};qF(op,{Attributor:()=>Un,AttributorStore:()=>np,BlockBlot:()=>Ic,ClassAttributor:()=>$i,ContainerBlot:()=>If,EmbedBlot:()=>mi,InlineBlot:()=>nv,LeafBlot:()=>Ii,ParentBlot:()=>hr,Registry:()=>bl,Scope:()=>Me,ScrollBlot:()=>rp,StyleAttributor:()=>ur,TextBlot:()=>Ff});var Me=(o=>(o[o.TYPE=3]="TYPE",o[o.LEVEL=12]="LEVEL",o[o.ATTRIBUTE=13]="ATTRIBUTE",o[o.BLOT=14]="BLOT",o[o.INLINE=7]="INLINE",o[o.BLOCK=11]="BLOCK",o[o.BLOCK_BLOT=10]="BLOCK_BLOT",o[o.INLINE_BLOT=6]="INLINE_BLOT",o[o.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",o[o.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",o[o.ANY=15]="ANY",o))(Me||{}),Un=class{constructor(t,i,n={}){this.attrName=t,this.keyName=i;let r=Me.TYPE&Me.ATTRIBUTE;this.scope=n.scope!=null?n.scope&Me.LEVEL|r:Me.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map(i=>i.name)}add(t,i){return this.canAdd(t,i)?(t.setAttribute(this.keyName,i),!0):!1}canAdd(t,i){return this.whitelist==null?!0:typeof i=="string"?this.whitelist.indexOf(i.replace(/["']/g,""))>-1:this.whitelist.indexOf(i)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){let i=t.getAttribute(this.keyName);return this.canAdd(t,i)&&i?i:""}},gl=class extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}},GE=class Tw{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,i=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(i){let n=null;try{n=t.parentNode}catch(r){return null}return this.find(n,i)}return null}create(t,i,n){let r=this.query(i);if(r==null)throw new gl(`Unable to create ${i} blot`);let a=r,s=i instanceof Node||i.nodeType===Node.TEXT_NODE?i:a.create(n),l=new a(t,s,n);return Tw.blots.set(l.domNode,l),l}find(t,i=!1){return Tw.find(t,i)}query(t,i=Me.ANY){let n;return typeof t=="string"?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:typeof t=="number"?t&Me.LEVEL&Me.BLOCK?n=this.types.block:t&Me.LEVEL&Me.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(r=>(n=this.classes[r],!!n)),n=n||this.tags[t.tagName]),n==null?null:"scope"in n&&i&Me.LEVEL&n.scope&&i&Me.TYPE&n.scope?n:null}register(...t){return t.map(i=>{let n="blotName"in i,r="attrName"in i;if(!n&&!r)throw new gl("Invalid definition");if(n&&i.blotName==="abstract")throw new gl("Cannot register abstract class");let a=n?i.blotName:r?i.attrName:void 0;return this.types[a]=i,r?typeof i.keyName=="string"&&(this.attributes[i.keyName]=i):n&&(i.className&&(this.classes[i.className]=i),i.tagName&&(Array.isArray(i.tagName)?i.tagName=i.tagName.map(s=>s.toUpperCase()):i.tagName=i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach(s=>{(this.tags[s]==null||i.className==null)&&(this.tags[s]=i)}))),i})}};GE.blots=new WeakMap;var bl=GE;function VE(o,t){return(o.getAttribute("class")||"").split(/\s+/).filter(i=>i.indexOf(`${t}-`)===0)}var Mw=class extends Un{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(i=>i.split("-").slice(0,-1).join("-"))}add(t,i){return this.canAdd(t,i)?(this.remove(t),t.classList.add(`${this.keyName}-${i}`),!0):!1}remove(t){VE(t,this.keyName).forEach(i=>{t.classList.remove(i)}),t.classList.length===0&&t.removeAttribute("class")}value(t){let i=(VE(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,i)?i:""}},$i=Mw;function Ew(o){let t=o.split("-"),i=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+i}var Lw=class extends Un{static keys(t){return(t.getAttribute("style")||"").split(";").map(i=>i.split(":")[0].trim())}add(t,i){return this.canAdd(t,i)?(t.style[Ew(this.keyName)]=i,!0):!1}remove(t){t.style[Ew(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){let i=t.style[Ew(this.keyName)];return this.canAdd(t,i)?i:""}},ur=Lw,qw=class{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,i){i?t.add(this.domNode,i)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};let t=bl.find(this.domNode);if(t==null)return;let i=Un.keys(this.domNode),n=$i.keys(this.domNode),r=ur.keys(this.domNode);i.concat(n).concat(r).forEach(a=>{let s=t.scroll.query(a,Me.ATTRIBUTE);s instanceof Un&&(this.attributes[s.attrName]=s)})}copy(t){Object.keys(this.attributes).forEach(i=>{let n=this.attributes[i].value(this.domNode);t.format(i,n)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(i=>{this.attributes[i].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,i)=>(t[i]=this.attributes[i].value(this.domNode),t),{})}},np=qw,YE=class{constructor(t,i){this.scroll=t,this.domNode=i,bl.blots.set(i,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new gl("Blot definition missing tagName");let i,n;return Array.isArray(this.tagName)?(typeof t=="string"?(n=t.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof t=="number"&&(n=t),typeof n=="number"?i=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?i=document.createElement(n):i=document.createElement(this.tagName[0])):i=document.createElement(this.tagName),this.className&&i.classList.add(this.className),i}get statics(){return this.constructor}attach(){}clone(){let t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),bl.blots.delete(this.domNode)}deleteAt(t,i){this.isolate(t,i).remove()}formatAt(t,i,n,r){let a=this.isolate(t,i);if(this.scroll.query(n,Me.BLOT)!=null&&r)a.wrap(n,r);else if(this.scroll.query(n,Me.ATTRIBUTE)!=null){let s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(n,r)}}insertAt(t,i,n){let r=n==null?this.scroll.create("text",i):this.scroll.create(i,n),a=this.split(t);this.parent.insertBefore(r,a||void 0)}isolate(t,i){let n=this.split(t);if(n==null)throw new Error("Attempt to isolate at end");return n.split(i),n}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){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(t,i){let n=typeof t=="string"?this.scroll.create(t,i):t;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(t,i){return t===0?this:this.next}update(t,i){}wrap(t,i){let n=typeof t=="string"?this.scroll.create(t,i):t;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new gl(`Cannot wrap ${t}`);return n.appendChild(this),n}};YE.blotName="abstract";var XE=YE,KE=class extends XE{static value(t){return!0}index(t,i){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(i,1):-1}position(t,i){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};KE.scope=Me.INLINE_BLOT;var TQ=KE,Ii=TQ,Pw=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){let i=t.slice(1);this.append(...i)}}at(t){let i=this.iterator(),n=i();for(;n&&t>0;)t-=1,n=i();return n}contains(t){let i=this.iterator(),n=i();for(;n;){if(n===t)return!0;n=i()}return!1}indexOf(t){let i=this.iterator(),n=i(),r=0;for(;n;){if(n===t)return r;r+=1,n=i()}return-1}insertBefore(t,i){t!=null&&(this.remove(t),t.next=i,i!=null?(t.prev=i.prev,i.prev!=null&&(i.prev.next=t),i.prev=t,i===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let i=0,n=this.head;for(;n!=null;){if(n===t)return i;i+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{let i=t;return t!=null&&(t=t.next),i}}find(t,i=!1){let n=this.iterator(),r=n();for(;r;){let a=r.length();if(t<a||i&&t===a&&(r.next==null||r.next.length()!==0))return[r,t];t-=a,r=n()}return[null,0]}forEach(t){let i=this.iterator(),n=i();for(;n;)t(n),n=i()}forEachAt(t,i,n){if(i<=0)return;let[r,a]=this.find(t),s=t-a,l=this.iterator(r),c=l();for(;c&&s<t+i;){let d=c.length();t>s?n(c,t-s,Math.min(i,s+d-t)):n(c,0,Math.min(d,t+i-s)),s+=d,c=l()}}map(t){return this.reduce((i,n)=>(i.push(t(n)),i),[])}reduce(t,i){let n=this.iterator(),r=n();for(;r;)i=t(i,r),r=n();return i}};function UE(o,t){let i=t.find(o);if(i)return i;try{return t.create(o)}catch(n){let r=t.create(Me.INLINE);return Array.from(o.childNodes).forEach(a=>{r.domNode.appendChild(a)}),o.parentNode&&o.parentNode.replaceChild(r.domNode,o),r.attach(),r}}var JE=class ml extends XE{constructor(t,i){super(t,i),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,ml.uiClass&&this.uiNode.classList.add(ml.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Pw,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{let i=UE(t,this.scroll);this.insertBefore(i,this.children.head||void 0)}catch(i){if(i instanceof gl)return;throw i}})}deleteAt(t,i){if(t===0&&i===this.length())return this.remove();this.children.forEachAt(t,i,(n,r,a)=>{n.deleteAt(r,a)})}descendant(t,i=0){let[n,r]=this.children.find(i);return t.blotName==null&&t(n)||t.blotName!=null&&n instanceof t?[n,r]:n instanceof ml?n.descendant(t,r):[null,-1]}descendants(t,i=0,n=Number.MAX_VALUE){let r=[],a=n;return this.children.forEachAt(i,n,(s,l,c)=>{(t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t)&&r.push(s),s instanceof ml&&(r=r.concat(s.descendants(t,l,a))),a-=c}),r}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(i=>{t||this.statics.allowedChildren.some(n=>i instanceof n)||(i.statics.scope===Me.BLOCK_BLOT?(i.next!=null&&this.splitAfter(i),i.prev!=null&&this.splitAfter(i.prev),i.parent.unwrap(),t=!0):i instanceof ml?i.unwrap():i.remove())})}formatAt(t,i,n,r){this.children.forEachAt(t,i,(a,s,l)=>{a.formatAt(s,l,n,r)})}insertAt(t,i,n){let[r,a]=this.children.find(t);if(r)r.insertAt(a,i,n);else{let s=n==null?this.scroll.create("text",i):this.scroll.create(i,n);this.appendChild(s)}}insertBefore(t,i){t.parent!=null&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,i||null),t.parent=this,i!=null&&(n=i.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce((t,i)=>t+i.length(),0)}moveChildren(t,i){this.children.forEach(n=>{t.insertBefore(n,i)})}optimize(t){if(super.optimize(t),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 i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i)}else this.remove()}path(t,i=!1){let[n,r]=this.children.find(t,i),a=[[this,t]];return n instanceof ml?a.concat(n.path(r,i)):(n!=null&&a.push([n,r]),a)}removeChild(t){this.children.remove(t)}replaceWith(t,i){let n=typeof t=="string"?this.scroll.create(t,i):t;return n instanceof ml&&this.moveChildren(n),super.replaceWith(n)}split(t,i=!1){if(!i){if(t===0)return this;if(t===this.length())return this.next}let n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),(r,a,s)=>{let l=r.split(a,i);l!=null&&n.appendChild(l)}),n}splitAfter(t){let i=this.clone();for(;t.next!=null;)i.appendChild(t.next);return this.parent&&this.parent.insertBefore(i,this.next||void 0),i}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,i){let n=[],r=[];t.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(n.push(...a.addedNodes),r.push(...a.removedNodes))}),r.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()}),n.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=UE(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};JE.uiClass="";var MQ=JE,hr=MQ;function LQ(o,t){if(Object.keys(o).length!==Object.keys(t).length)return!1;for(let i in o)if(o[i]!==t[i])return!1;return!0}var Rf=class Of extends hr{static create(t){return super.create(t)}static formats(t,i){let n=i.query(Of.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,i){super(t,i),this.attributes=new np(this.domNode)}format(t,i){if(t===this.statics.blotName&&!i)this.children.forEach(n=>{n instanceof Of||(n=n.wrap(Of.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{let n=this.scroll.query(t,Me.INLINE);if(n==null)return;n instanceof Un?this.attributes.attribute(n,i):i&&(t!==this.statics.blotName||this.formats()[t]!==i)&&this.replaceWith(t,i)}}formats(){let t=this.attributes.values(),i=this.statics.formats(this.domNode,this.scroll);return i!=null&&(t[this.statics.blotName]=i),t}formatAt(t,i,n,r){this.formats()[n]!=null||this.scroll.query(n,Me.ATTRIBUTE)?this.isolate(t,i).format(n,r):super.formatAt(t,i,n,r)}optimize(t){super.optimize(t);let i=this.formats();if(Object.keys(i).length===0)return this.unwrap();let n=this.next;n instanceof Of&&n.prev===this&&LQ(i,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,i){let n=super.replaceWith(t,i);return this.attributes.copy(n),n}update(t,i){super.update(t,i),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(t,i){let n=super.wrap(t,i);return n instanceof Of&&this.attributes.move(n),n}};Rf.allowedChildren=[Rf,Ii],Rf.blotName="inline",Rf.scope=Me.INLINE_BLOT,Rf.tagName="SPAN";var qQ=Rf,nv=qQ,Df=class Rw extends hr{static create(t){return super.create(t)}static formats(t,i){let n=i.query(Rw.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,i){super(t,i),this.attributes=new np(this.domNode)}format(t,i){let n=this.scroll.query(t,Me.BLOCK);n!=null&&(n instanceof Un?this.attributes.attribute(n,i):t===this.statics.blotName&&!i?this.replaceWith(Rw.blotName):i&&(t!==this.statics.blotName||this.formats()[t]!==i)&&this.replaceWith(t,i))}formats(){let t=this.attributes.values(),i=this.statics.formats(this.domNode,this.scroll);return i!=null&&(t[this.statics.blotName]=i),t}formatAt(t,i,n,r){this.scroll.query(n,Me.BLOCK)!=null?this.format(n,r):super.formatAt(t,i,n,r)}insertAt(t,i,n){if(n==null||this.scroll.query(i,Me.INLINE)!=null)super.insertAt(t,i,n);else{let r=this.split(t);if(r!=null){let a=this.scroll.create(i,n);r.parent.insertBefore(a,r)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,i){let n=super.replaceWith(t,i);return this.attributes.copy(n),n}update(t,i){super.update(t,i),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Df.blotName="block",Df.scope=Me.BLOCK_BLOT,Df.tagName="P",Df.allowedChildren=[nv,Df,Ii];var PQ=Df,Ic=PQ,Ow=class extends hr{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,i){super.deleteAt(t,i),this.enforceAllowedChildren()}formatAt(t,i,n,r){super.formatAt(t,i,n,r),this.enforceAllowedChildren()}insertAt(t,i,n){super.insertAt(t,i,n),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Ow.blotName="container",Ow.scope=Me.BLOCK_BLOT;var RQ=Ow,If=RQ,Dw=class extends Ii{static formats(t,i){}format(t,i){super.formatAt(0,this.length(),t,i)}formatAt(t,i,n,r){t===0&&i===this.length()?this.format(n,r):super.formatAt(t,i,n,r)}formats(){return this.statics.formats(this.domNode,this.scroll)}},mi=Dw,OQ={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},DQ=100,$f=class extends hr{constructor(t,i){super(null,i),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,OQ),this.attach()}create(t,i){return this.registry.create(this,t,i)}find(t,i=!1){let n=this.registry.find(t,i);return n?n.scroll===this?n:i?this.find(n.scroll.domNode.parentNode,!0):null:null}query(t,i=Me.ANY){return this.registry.query(t,i)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,i){this.update(),t===0&&i===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(t,i)}formatAt(t,i,n,r){this.update(),super.formatAt(t,i,n,r)}insertAt(t,i,n){this.update(),super.insertAt(t,i,n)}optimize(t=[],i={}){super.optimize(i);let n=i.mutationsMap||new WeakMap,r=Array.from(this.observer.takeRecords());for(;r.length>0;)t.push(r.pop());let a=(c,d=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(n.has(c.domNode)||n.set(c.domNode,[]),d&&a(c.parent))},s=c=>{n.has(c.domNode)&&(c instanceof hr&&c.children.forEach(s),n.delete(c.domNode),c.optimize(i))},l=t;for(let c=0;l.length>0;c+=1){if(c>=DQ)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(d=>{let f=this.find(d.target,!0);f!=null&&(f.domNode===d.target&&(d.type==="childList"?(a(this.find(d.previousSibling,!1)),Array.from(d.addedNodes).forEach(h=>{let p=this.find(h,!1);a(p,!1),p instanceof hr&&p.children.forEach(m=>{a(m,!1)})})):d.type==="attributes"&&a(f.prev)),a(f))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),r=l.slice();r.length>0;)t.push(r.pop())}}update(t,i={}){t=t||this.observer.takeRecords();let n=new WeakMap;t.map(r=>{let a=this.find(r.target,!0);return a==null?null:n.has(a.domNode)?(n.get(a.domNode).push(r),null):(n.set(a.domNode,[r]),a)}).forEach(r=>{r!=null&&r!==this&&n.has(r.domNode)&&r.update(n.get(r.domNode)||[],i)}),i.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),i),this.optimize(t,i)}};$f.blotName="scroll",$f.defaultChild=Ic,$f.allowedChildren=[Ic,If],$f.scope=Me.BLOCK_BLOT,$f.tagName="DIV";var $Q=$f,rp=$Q,$w=class QE extends Ii{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,i){super(t,i),this.text=this.statics.value(this.domNode)}deleteAt(t,i){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+i)}index(t,i){return this.domNode===t?i:-1}insertAt(t,i,n){n==null?(this.text=this.text.slice(0,t)+i+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,i,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof QE&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,i=!1){return[this.domNode,t]}split(t,i=!1){if(!i){if(t===0)return this;if(t===this.length())return this.next}let n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,i){t.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};$w.blotName="text",$w.scope=Me.INLINE_BLOT;var IQ=$w,Ff=IQ;var kl=sn($r(),1);var gi=sn($r(),1);var _k=sn($r(),1);var mp=class extends mi{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};mp.blotName="break";mp.tagName="BR";var En=mp;var Mi=class extends Ff{},tie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Gc(o){return o.replace(/[&<>"']/g,t=>tie[t])}var wa=class wa extends nv{static compare(t,i){let n=wa.order.indexOf(t),r=wa.order.indexOf(i);return n>=0||r>=0?n-r:t===i?0:t<i?-1:1}formatAt(t,i,n,r){if(wa.compare(this.statics.blotName,n)<0&&this.scroll.query(n,Me.BLOT)){let a=this.isolate(t,i);r&&a.wrap(n,r)}else super.formatAt(t,i,n,r)}optimize(t){if(super.optimize(t),this.parent instanceof wa&&wa.compare(this.statics.blotName,this.parent.statics.blotName)>0){let i=this.parent.isolate(this.offset(),this.length());this.moveChildren(i),i.wrap(this)}}};ie(wa,"allowedChildren",[wa,En,mi,Mi]),ie(wa,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var kk=wa,Tn=kk;var OM=1,Bt=class extends Ic{constructor(){super(...arguments);ie(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=zk(this)),this.cache.delta}deleteAt(i,n){super.deleteAt(i,n),this.cache={}}formatAt(i,n,r,a){n<=0||(this.scroll.query(r,Me.BLOCK)?i+n===this.length()&&this.format(r,a):super.formatAt(i,Math.min(n,this.length()-i-1),r,a),this.cache={})}insertAt(i,n,r){if(r!=null){super.insertAt(i,n,r),this.cache={};return}if(n.length===0)return;let a=n.split(`
2868
- `),s=a.shift();s.length>0&&(i<this.length()-1||this.children.tail==null?super.insertAt(Math.min(i,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;a.reduce((c,d)=>(l=l.split(c,!0),l.insertAt(0,d),d.length),i+s.length)}insertBefore(i,n){let{head:r}=this.children;super.insertBefore(i,n),r instanceof En&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+OM),this.cache.length}moveChildren(i,n){super.moveChildren(i,n),this.cache={}}optimize(i){super.optimize(i),this.cache={}}path(i){return super.path(i,!0)}removeChild(i){super.removeChild(i),this.cache={}}split(i){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(i===0||i>=this.length()-OM)){let a=this.clone();return i===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}let r=super.split(i,n);return this.cache={},r}};Bt.blotName="block";Bt.tagName="P";Bt.defaultChild=En;Bt.allowedChildren=[En,Tn,mi,Mi];var Yi=class extends mi{attach(){super.attach(),this.attributes=new np(this.domNode)}delta(){return new _k.default().insert(this.value(),Ce(Ce({},this.formats()),this.attributes.values()))}format(t,i){let n=this.scroll.query(t,Me.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,i)}formatAt(t,i,n,r){this.format(n,r)}insertAt(t,i,n){if(n!=null){super.insertAt(t,i,n);return}let r=i.split(`
2867
+ `}};ds.styles=Z(FA),y([_({type:Boolean,reflect:!0})],ds.prototype,"open",2),y([_({type:String})],ds.prototype,"query",2),y([_({type:Array})],ds.prototype,"results",2),y([We()],ds.prototype,"_activeIndex",2);ds.define("zn-context-menu");var oG=typeof global=="object"&&global&&global.Object===Object&&global,qb=oG;var aG=typeof self=="object"&&self&&self.Object===Object&&self,sG=qb||aG||Function("return this")(),Di=sG;var lG=Di.Symbol,po=lG;var NA=Object.prototype,cG=NA.hasOwnProperty,dG=NA.toString,Ju=po?po.toStringTag:void 0;function fG(o){var t=cG.call(o,Ju),i=o[Ju];try{o[Ju]=void 0;var n=!0}catch(a){}var r=dG.call(o);return n&&(t?o[Ju]=i:delete o[Ju]),r}var HA=fG;var hG=Object.prototype,uG=hG.toString;function pG(o){return uG.call(o)}var BA=pG;var mG="[object Null]",gG="[object Undefined]",WA=po?po.toStringTag:void 0;function bG(o){return o==null?o===void 0?gG:mG:WA&&WA in Object(o)?HA(o):BA(o)}var Bo=bG;function vG(o){return o!=null&&typeof o=="object"}var vn=vG;var yG=Array.isArray,mo=yG;function xG(o){var t=typeof o;return o!=null&&(t=="object"||t=="function")}var En=xG;function wG(o){return o}var Pb=wG;var kG="[object AsyncFunction]",_G="[object Function]",zG="[object GeneratorFunction]",CG="[object Proxy]";function SG(o){if(!En(o))return!1;var t=Bo(o);return t==_G||t==zG||t==kG||t==CG}var yf=SG;var AG=Di["__core-js_shared__"],Rb=AG;var jA=function(){var o=/[^.]+$/.exec(Rb&&Rb.keys&&Rb.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function EG(o){return!!jA&&jA in o}var VA=EG;var TG=Function.prototype,MG=TG.toString;function LG(o){if(o!=null){try{return MG.call(o)}catch(t){}try{return o+""}catch(t){}}return""}var fs=LG;var qG=/[\\^$.*+?()[\]{}|]/g,PG=/^\[object .+?Constructor\]$/,RG=Function.prototype,OG=Object.prototype,DG=RG.toString,$G=OG.hasOwnProperty,IG=RegExp("^"+DG.call($G).replace(qG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FG(o){if(!En(o)||VA(o))return!1;var t=yf(o)?IG:PG;return t.test(fs(o))}var UA=FG;function NG(o,t){return o==null?void 0:o[t]}var GA=NG;function HG(o,t){var i=GA(o,t);return UA(i)?i:void 0}var dr=HG;var BG=dr(Di,"WeakMap"),Ob=BG;var YA=Object.create,WG=function(){function o(){}return function(t){if(!En(t))return{};if(YA)return YA(t);o.prototype=t;var i=new o;return o.prototype=void 0,i}}(),XA=WG;function jG(o,t,i){switch(i.length){case 0:return o.call(t);case 1:return o.call(t,i[0]);case 2:return o.call(t,i[0],i[1]);case 3:return o.call(t,i[0],i[1],i[2])}return o.apply(t,i)}var KA=jG;function VG(o,t){var i=-1,n=o.length;for(t||(t=Array(n));++i<n;)t[i]=o[i];return t}var Db=VG;var UG=800,GG=16,YG=Date.now;function XG(o){var t=0,i=0;return function(){var n=YG(),r=GG-(n-i);if(i=n,r>0){if(++t>=UG)return arguments[0]}else t=0;return o.apply(void 0,arguments)}}var JA=XG;function KG(o){return function(){return o}}var QA=KG;var JG=function(){try{var o=dr(Object,"defineProperty");return o({},"",{}),o}catch(t){}}(),xf=JG;var QG=xf?function(o,t){return xf(o,"toString",{configurable:!0,enumerable:!1,value:QA(t),writable:!0})}:Pb,ZA=QG;var ZG=JA(ZA),e9=ZG;function eY(o,t){for(var i=-1,n=o==null?0:o.length;++i<n&&t(o[i],i,o)!==!1;);return o}var t9=eY;var tY=9007199254740991,iY=/^(?:0|[1-9]\d*)$/;function nY(o,t){var i=typeof o;return t=t==null?tY:t,!!t&&(i=="number"||i!="symbol"&&iY.test(o))&&o>-1&&o%1==0&&o<t}var $b=nY;function rY(o,t,i){t=="__proto__"&&xf?xf(o,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):o[t]=i}var wf=rY;function oY(o,t){return o===t||o!==o&&t!==t}var ga=oY;var aY=Object.prototype,sY=aY.hasOwnProperty;function lY(o,t,i){var n=o[t];(!(sY.call(o,t)&&ga(n,i))||i===void 0&&!(t in o))&&wf(o,t,i)}var Ib=lY;function cY(o,t,i,n){var r=!i;i||(i={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=n?n(i[l],o[l],l,i,o):void 0;c===void 0&&(c=o[l]),r?wf(i,l,c):Ib(i,l,c)}return i}var ba=cY;var i9=Math.max;function dY(o,t,i){return t=i9(t===void 0?o.length-1:t,0),function(){for(var n=arguments,r=-1,a=i9(n.length-t,0),s=Array(a);++r<a;)s[r]=n[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=n[r];return l[t]=i(s),KA(o,this,l)}}var n9=dY;function fY(o,t){return e9(n9(o,t,Pb),o+"")}var r9=fY;var hY=9007199254740991;function uY(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=hY}var Fb=uY;function pY(o){return o!=null&&Fb(o.length)&&!yf(o)}var cl=pY;function mY(o,t,i){if(!En(i))return!1;var n=typeof t;return(n=="number"?cl(i)&&$b(t,i.length):n=="string"&&t in i)?ga(i[t],o):!1}var o9=mY;function gY(o){return r9(function(t,i){var n=-1,r=i.length,a=r>1?i[r-1]:void 0,s=r>2?i[2]:void 0;for(a=o.length>3&&typeof a=="function"?(r--,a):void 0,s&&o9(i[0],i[1],s)&&(a=r<3?void 0:a,r=1),t=Object(t);++n<r;){var l=i[n];l&&o(t,l,n,a)}return t})}var a9=gY;var bY=Object.prototype;function vY(o){var t=o&&o.constructor,i=typeof t=="function"&&t.prototype||bY;return o===i}var kf=vY;function yY(o,t){for(var i=-1,n=Array(o);++i<o;)n[i]=t(i);return n}var s9=yY;var xY="[object Arguments]";function wY(o){return vn(o)&&Bo(o)==xY}var zw=wY;var l9=Object.prototype,kY=l9.hasOwnProperty,_Y=l9.propertyIsEnumerable,zY=zw(function(){return arguments}())?zw:function(o){return vn(o)&&kY.call(o,"callee")&&!_Y.call(o,"callee")},Qu=zY;function CY(){return!1}var c9=CY;var h9=typeof exports=="object"&&exports&&!exports.nodeType&&exports,d9=h9&&typeof module=="object"&&module&&!module.nodeType&&module,SY=d9&&d9.exports===h9,f9=SY?Di.Buffer:void 0,AY=f9?f9.isBuffer:void 0,EY=AY||c9,hs=EY;var TY="[object Arguments]",MY="[object Array]",LY="[object Boolean]",qY="[object Date]",PY="[object Error]",RY="[object Function]",OY="[object Map]",DY="[object Number]",$Y="[object Object]",IY="[object RegExp]",FY="[object Set]",NY="[object String]",HY="[object WeakMap]",BY="[object ArrayBuffer]",WY="[object DataView]",jY="[object Float32Array]",VY="[object Float64Array]",UY="[object Int8Array]",GY="[object Int16Array]",YY="[object Int32Array]",XY="[object Uint8Array]",KY="[object Uint8ClampedArray]",JY="[object Uint16Array]",QY="[object Uint32Array]",ii={};ii[jY]=ii[VY]=ii[UY]=ii[GY]=ii[YY]=ii[XY]=ii[KY]=ii[JY]=ii[QY]=!0;ii[TY]=ii[MY]=ii[BY]=ii[LY]=ii[WY]=ii[qY]=ii[PY]=ii[RY]=ii[OY]=ii[DY]=ii[$Y]=ii[IY]=ii[FY]=ii[NY]=ii[HY]=!1;function ZY(o){return vn(o)&&Fb(o.length)&&!!ii[Bo(o)]}var u9=ZY;function eX(o){return function(t){return o(t)}}var _f=eX;var p9=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Zu=p9&&typeof module=="object"&&module&&!module.nodeType&&module,tX=Zu&&Zu.exports===p9,Cw=tX&&qb.process,iX=function(){try{var o=Zu&&Zu.require&&Zu.require("util").types;return o||Cw&&Cw.binding&&Cw.binding("util")}catch(t){}}(),us=iX;var m9=us&&us.isTypedArray,nX=m9?_f(m9):u9,zf=nX;var rX=Object.prototype,oX=rX.hasOwnProperty;function aX(o,t){var i=mo(o),n=!i&&Qu(o),r=!i&&!n&&hs(o),a=!i&&!n&&!r&&zf(o),s=i||n||r||a,l=s?s9(o.length,String):[],c=l.length;for(var d in o)(t||oX.call(o,d))&&!(s&&(d=="length"||r&&(d=="offset"||d=="parent")||a&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||$b(d,c)))&&l.push(d);return l}var Nb=aX;function sX(o,t){return function(i){return o(t(i))}}var Hb=sX;var lX=Hb(Object.keys,Object),g9=lX;var cX=Object.prototype,dX=cX.hasOwnProperty;function fX(o){if(!kf(o))return g9(o);var t=[];for(var i in Object(o))dX.call(o,i)&&i!="constructor"&&t.push(i);return t}var b9=fX;function hX(o){return cl(o)?Nb(o):b9(o)}var Cf=hX;function uX(o){var t=[];if(o!=null)for(var i in Object(o))t.push(i);return t}var v9=uX;var pX=Object.prototype,mX=pX.hasOwnProperty;function gX(o){if(!En(o))return v9(o);var t=kf(o),i=[];for(var n in o)n=="constructor"&&(t||!mX.call(o,n))||i.push(n);return i}var y9=gX;function bX(o){return cl(o)?Nb(o,!0):y9(o)}var va=bX;var vX=dr(Object,"create"),ps=vX;function yX(){this.__data__=ps?ps(null):{},this.size=0}var x9=yX;function xX(o){var t=this.has(o)&&delete this.__data__[o];return this.size-=t?1:0,t}var w9=xX;var wX="__lodash_hash_undefined__",kX=Object.prototype,_X=kX.hasOwnProperty;function zX(o){var t=this.__data__;if(ps){var i=t[o];return i===wX?void 0:i}return _X.call(t,o)?t[o]:void 0}var k9=zX;var CX=Object.prototype,SX=CX.hasOwnProperty;function AX(o){var t=this.__data__;return ps?t[o]!==void 0:SX.call(t,o)}var _9=AX;var EX="__lodash_hash_undefined__";function TX(o,t){var i=this.__data__;return this.size+=this.has(o)?0:1,i[o]=ps&&t===void 0?EX:t,this}var z9=TX;function Sf(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}Sf.prototype.clear=x9;Sf.prototype.delete=w9;Sf.prototype.get=k9;Sf.prototype.has=_9;Sf.prototype.set=z9;var Sw=Sf;function MX(){this.__data__=[],this.size=0}var C9=MX;function LX(o,t){for(var i=o.length;i--;)if(ga(o[i][0],t))return i;return-1}var dl=LX;var qX=Array.prototype,PX=qX.splice;function RX(o){var t=this.__data__,i=dl(t,o);if(i<0)return!1;var n=t.length-1;return i==n?t.pop():PX.call(t,i,1),--this.size,!0}var S9=RX;function OX(o){var t=this.__data__,i=dl(t,o);return i<0?void 0:t[i][1]}var A9=OX;function DX(o){return dl(this.__data__,o)>-1}var E9=DX;function $X(o,t){var i=this.__data__,n=dl(i,o);return n<0?(++this.size,i.push([o,t])):i[n][1]=t,this}var T9=$X;function Af(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}Af.prototype.clear=C9;Af.prototype.delete=S9;Af.prototype.get=A9;Af.prototype.has=E9;Af.prototype.set=T9;var fl=Af;var IX=dr(Di,"Map"),hl=IX;function FX(){this.size=0,this.__data__={hash:new Sw,map:new(hl||fl),string:new Sw}}var M9=FX;function NX(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null}var L9=NX;function HX(o,t){var i=o.__data__;return L9(t)?i[typeof t=="string"?"string":"hash"]:i.map}var ul=HX;function BX(o){var t=ul(this,o).delete(o);return this.size-=t?1:0,t}var q9=BX;function WX(o){return ul(this,o).get(o)}var P9=WX;function jX(o){return ul(this,o).has(o)}var R9=jX;function VX(o,t){var i=ul(this,o),n=i.size;return i.set(o,t),this.size+=i.size==n?0:1,this}var O9=VX;function Ef(o){var t=-1,i=o==null?0:o.length;for(this.clear();++t<i;){var n=o[t];this.set(n[0],n[1])}}Ef.prototype.clear=M9;Ef.prototype.delete=q9;Ef.prototype.get=P9;Ef.prototype.has=R9;Ef.prototype.set=O9;var Bb=Ef;function UX(o,t){for(var i=-1,n=t.length,r=o.length;++i<n;)o[r+i]=t[i];return o}var Wb=UX;var GX=Hb(Object.getPrototypeOf,Object),Tf=GX;var YX="[object Object]",XX=Function.prototype,KX=Object.prototype,D9=XX.toString,JX=KX.hasOwnProperty,QX=D9.call(Object);function ZX(o){if(!vn(o)||Bo(o)!=YX)return!1;var t=Tf(o);if(t===null)return!0;var i=JX.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&D9.call(i)==QX}var $9=ZX;function eK(){this.__data__=new fl,this.size=0}var I9=eK;function tK(o){var t=this.__data__,i=t.delete(o);return this.size=t.size,i}var F9=tK;function iK(o){return this.__data__.get(o)}var N9=iK;function nK(o){return this.__data__.has(o)}var H9=nK;var rK=200;function oK(o,t){var i=this.__data__;if(i instanceof fl){var n=i.__data__;if(!hl||n.length<rK-1)return n.push([o,t]),this.size=++i.size,this;i=this.__data__=new Bb(n)}return i.set(o,t),this.size=i.size,this}var B9=oK;function Mf(o){var t=this.__data__=new fl(o);this.size=t.size}Mf.prototype.clear=I9;Mf.prototype.delete=F9;Mf.prototype.get=N9;Mf.prototype.has=H9;Mf.prototype.set=B9;var pl=Mf;function aK(o,t){return o&&ba(t,Cf(t),o)}var W9=aK;function sK(o,t){return o&&ba(t,va(t),o)}var j9=sK;var Y9=typeof exports=="object"&&exports&&!exports.nodeType&&exports,V9=Y9&&typeof module=="object"&&module&&!module.nodeType&&module,lK=V9&&V9.exports===Y9,U9=lK?Di.Buffer:void 0,G9=U9?U9.allocUnsafe:void 0;function cK(o,t){if(t)return o.slice();var i=o.length,n=G9?G9(i):new o.constructor(i);return o.copy(n),n}var jb=cK;function dK(o,t){for(var i=-1,n=o==null?0:o.length,r=0,a=[];++i<n;){var s=o[i];t(s,i,o)&&(a[r++]=s)}return a}var X9=dK;function fK(){return[]}var Vb=fK;var hK=Object.prototype,uK=hK.propertyIsEnumerable,K9=Object.getOwnPropertySymbols,pK=K9?function(o){return o==null?[]:(o=Object(o),X9(K9(o),function(t){return uK.call(o,t)}))}:Vb,Lf=pK;function mK(o,t){return ba(o,Lf(o),t)}var J9=mK;var gK=Object.getOwnPropertySymbols,bK=gK?function(o){for(var t=[];o;)Wb(t,Lf(o)),o=Tf(o);return t}:Vb,Ub=bK;function vK(o,t){return ba(o,Ub(o),t)}var Q9=vK;function yK(o,t,i){var n=t(o);return mo(o)?n:Wb(n,i(o))}var Gb=yK;function xK(o){return Gb(o,Cf,Lf)}var ep=xK;function wK(o){return Gb(o,va,Ub)}var Z9=wK;var kK=dr(Di,"DataView"),Yb=kK;var _K=dr(Di,"Promise"),Xb=_K;var zK=dr(Di,"Set"),Kb=zK;var eE="[object Map]",CK="[object Object]",tE="[object Promise]",iE="[object Set]",nE="[object WeakMap]",rE="[object DataView]",SK=fs(Yb),AK=fs(hl),EK=fs(Xb),TK=fs(Kb),MK=fs(Ob),Dc=Bo;(Yb&&Dc(new Yb(new ArrayBuffer(1)))!=rE||hl&&Dc(new hl)!=eE||Xb&&Dc(Xb.resolve())!=tE||Kb&&Dc(new Kb)!=iE||Ob&&Dc(new Ob)!=nE)&&(Dc=function(o){var t=Bo(o),i=t==CK?o.constructor:void 0,n=i?fs(i):"";if(n)switch(n){case SK:return rE;case AK:return eE;case EK:return tE;case TK:return iE;case MK:return nE}return t});var ms=Dc;var LK=Object.prototype,qK=LK.hasOwnProperty;function PK(o){var t=o.length,i=new o.constructor(t);return t&&typeof o[0]=="string"&&qK.call(o,"index")&&(i.index=o.index,i.input=o.input),i}var oE=PK;var RK=Di.Uint8Array,qf=RK;function OK(o){var t=new o.constructor(o.byteLength);return new qf(t).set(new qf(o)),t}var Pf=OK;function DK(o,t){var i=t?Pf(o.buffer):o.buffer;return new o.constructor(i,o.byteOffset,o.byteLength)}var aE=DK;var $K=/\w*$/;function IK(o){var t=new o.constructor(o.source,$K.exec(o));return t.lastIndex=o.lastIndex,t}var sE=IK;var lE=po?po.prototype:void 0,cE=lE?lE.valueOf:void 0;function FK(o){return cE?Object(cE.call(o)):{}}var dE=FK;function NK(o,t){var i=t?Pf(o.buffer):o.buffer;return new o.constructor(i,o.byteOffset,o.length)}var Jb=NK;var HK="[object Boolean]",BK="[object Date]",WK="[object Map]",jK="[object Number]",VK="[object RegExp]",UK="[object Set]",GK="[object String]",YK="[object Symbol]",XK="[object ArrayBuffer]",KK="[object DataView]",JK="[object Float32Array]",QK="[object Float64Array]",ZK="[object Int8Array]",eJ="[object Int16Array]",tJ="[object Int32Array]",iJ="[object Uint8Array]",nJ="[object Uint8ClampedArray]",rJ="[object Uint16Array]",oJ="[object Uint32Array]";function aJ(o,t,i){var n=o.constructor;switch(t){case XK:return Pf(o);case HK:case BK:return new n(+o);case KK:return aE(o,i);case JK:case QK:case ZK:case eJ:case tJ:case iJ:case nJ:case rJ:case oJ:return Jb(o,i);case WK:return new n;case jK:case GK:return new n(o);case VK:return sE(o);case UK:return new n;case YK:return dE(o)}}var fE=aJ;function sJ(o){return typeof o.constructor=="function"&&!kf(o)?XA(Tf(o)):{}}var Qb=sJ;var lJ="[object Map]";function cJ(o){return vn(o)&&ms(o)==lJ}var hE=cJ;var uE=us&&us.isMap,dJ=uE?_f(uE):hE,pE=dJ;var fJ="[object Set]";function hJ(o){return vn(o)&&ms(o)==fJ}var mE=hJ;var gE=us&&us.isSet,uJ=gE?_f(gE):mE,bE=uJ;var pJ=1,mJ=2,gJ=4,vE="[object Arguments]",bJ="[object Array]",vJ="[object Boolean]",yJ="[object Date]",xJ="[object Error]",yE="[object Function]",wJ="[object GeneratorFunction]",kJ="[object Map]",_J="[object Number]",xE="[object Object]",zJ="[object RegExp]",CJ="[object Set]",SJ="[object String]",AJ="[object Symbol]",EJ="[object WeakMap]",TJ="[object ArrayBuffer]",MJ="[object DataView]",LJ="[object Float32Array]",qJ="[object Float64Array]",PJ="[object Int8Array]",RJ="[object Int16Array]",OJ="[object Int32Array]",DJ="[object Uint8Array]",$J="[object Uint8ClampedArray]",IJ="[object Uint16Array]",FJ="[object Uint32Array]",Xt={};Xt[vE]=Xt[bJ]=Xt[TJ]=Xt[MJ]=Xt[vJ]=Xt[yJ]=Xt[LJ]=Xt[qJ]=Xt[PJ]=Xt[RJ]=Xt[OJ]=Xt[kJ]=Xt[_J]=Xt[xE]=Xt[zJ]=Xt[CJ]=Xt[SJ]=Xt[AJ]=Xt[DJ]=Xt[$J]=Xt[IJ]=Xt[FJ]=!0;Xt[xJ]=Xt[yE]=Xt[EJ]=!1;function Zb(o,t,i,n,r,a){var s,l=t&pJ,c=t&mJ,d=t&gJ;if(i&&(s=r?i(o,n,r,a):i(o)),s!==void 0)return s;if(!En(o))return o;var f=mo(o);if(f){if(s=oE(o),!l)return Db(o,s)}else{var h=ms(o),p=h==yE||h==wJ;if(hs(o))return jb(o,l);if(h==xE||h==vE||p&&!r){if(s=c||p?{}:Qb(o),!l)return c?Q9(o,j9(s,o)):J9(o,W9(s,o))}else{if(!Xt[h])return r?o:{};s=fE(o,h,l)}}a||(a=new pl);var m=a.get(o);if(m)return m;a.set(o,s),bE(o)?o.forEach(function(x){s.add(Zb(x,t,i,x,o,a))}):pE(o)&&o.forEach(function(x,k){s.set(k,Zb(x,t,i,k,o,a))});var v=d?c?Z9:ep:c?va:Cf,b=f?void 0:v(o);return t9(b||o,function(x,k){b&&(k=x,x=o[k]),Ib(s,k,Zb(x,t,i,k,o,a))}),s}var wE=Zb;var NJ=1,HJ=4;function BJ(o){return wE(o,NJ|HJ)}var ya=BJ;var WJ="__lodash_hash_undefined__";function jJ(o){return this.__data__.set(o,WJ),this}var kE=jJ;function VJ(o){return this.__data__.has(o)}var _E=VJ;function ev(o){var t=-1,i=o==null?0:o.length;for(this.__data__=new Bb;++t<i;)this.add(o[t])}ev.prototype.add=ev.prototype.push=kE;ev.prototype.has=_E;var zE=ev;function UJ(o,t){for(var i=-1,n=o==null?0:o.length;++i<n;)if(t(o[i],i,o))return!0;return!1}var CE=UJ;function GJ(o,t){return o.has(t)}var SE=GJ;var YJ=1,XJ=2;function KJ(o,t,i,n,r,a){var s=i&YJ,l=o.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var d=a.get(o),f=a.get(t);if(d&&f)return d==t&&f==o;var h=-1,p=!0,m=i&XJ?new zE:void 0;for(a.set(o,t),a.set(t,o);++h<l;){var v=o[h],b=t[h];if(n)var x=s?n(b,v,h,t,o,a):n(v,b,h,o,t,a);if(x!==void 0){if(x)continue;p=!1;break}if(m){if(!CE(t,function(k,z){if(!SE(m,z)&&(v===k||r(v,k,i,n,a)))return m.push(z)})){p=!1;break}}else if(!(v===b||r(v,b,i,n,a))){p=!1;break}}return a.delete(o),a.delete(t),p}var tv=KJ;function JJ(o){var t=-1,i=Array(o.size);return o.forEach(function(n,r){i[++t]=[r,n]}),i}var AE=JJ;function QJ(o){var t=-1,i=Array(o.size);return o.forEach(function(n){i[++t]=n}),i}var EE=QJ;var ZJ=1,eQ=2,tQ="[object Boolean]",iQ="[object Date]",nQ="[object Error]",rQ="[object Map]",oQ="[object Number]",aQ="[object RegExp]",sQ="[object Set]",lQ="[object String]",cQ="[object Symbol]",dQ="[object ArrayBuffer]",fQ="[object DataView]",TE=po?po.prototype:void 0,Aw=TE?TE.valueOf:void 0;function hQ(o,t,i,n,r,a,s){switch(i){case fQ:if(o.byteLength!=t.byteLength||o.byteOffset!=t.byteOffset)return!1;o=o.buffer,t=t.buffer;case dQ:return!(o.byteLength!=t.byteLength||!a(new qf(o),new qf(t)));case tQ:case iQ:case oQ:return ga(+o,+t);case nQ:return o.name==t.name&&o.message==t.message;case aQ:case lQ:return o==t+"";case rQ:var l=AE;case sQ:var c=n&ZJ;if(l||(l=EE),o.size!=t.size&&!c)return!1;var d=s.get(o);if(d)return d==t;n|=eQ,s.set(o,t);var f=tv(l(o),l(t),n,r,a,s);return s.delete(o),f;case cQ:if(Aw)return Aw.call(o)==Aw.call(t)}return!1}var ME=hQ;var uQ=1,pQ=Object.prototype,mQ=pQ.hasOwnProperty;function gQ(o,t,i,n,r,a){var s=i&uQ,l=ep(o),c=l.length,d=ep(t),f=d.length;if(c!=f&&!s)return!1;for(var h=c;h--;){var p=l[h];if(!(s?p in t:mQ.call(t,p)))return!1}var m=a.get(o),v=a.get(t);if(m&&v)return m==t&&v==o;var b=!0;a.set(o,t),a.set(t,o);for(var x=s;++h<c;){p=l[h];var k=o[p],z=t[p];if(n)var E=s?n(z,k,p,t,o,a):n(k,z,p,o,t,a);if(!(E===void 0?k===z||r(k,z,i,n,a):E)){b=!1;break}x||(x=p=="constructor")}if(b&&!x){var A=o.constructor,C=t.constructor;A!=C&&"constructor"in o&&"constructor"in t&&!(typeof A=="function"&&A instanceof A&&typeof C=="function"&&C instanceof C)&&(b=!1)}return a.delete(o),a.delete(t),b}var LE=gQ;var bQ=1,qE="[object Arguments]",PE="[object Array]",iv="[object Object]",vQ=Object.prototype,RE=vQ.hasOwnProperty;function yQ(o,t,i,n,r,a){var s=mo(o),l=mo(t),c=s?PE:ms(o),d=l?PE:ms(t);c=c==qE?iv:c,d=d==qE?iv:d;var f=c==iv,h=d==iv,p=c==d;if(p&&hs(o)){if(!hs(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new pl),s||zf(o)?tv(o,t,i,n,r,a):ME(o,t,c,i,n,r,a);if(!(i&bQ)){var m=f&&RE.call(o,"__wrapped__"),v=h&&RE.call(t,"__wrapped__");if(m||v){var b=m?o.value():o,x=v?t.value():t;return a||(a=new pl),r(b,x,i,n,a)}}return p?(a||(a=new pl),LE(o,t,i,n,r,a)):!1}var OE=yQ;function DE(o,t,i,n,r){return o===t?!0:o==null||t==null||!vn(o)&&!vn(t)?o!==o&&t!==t:OE(o,t,i,n,DE,r)}var $E=DE;function xQ(o){return function(t,i,n){for(var r=-1,a=Object(t),s=n(t),l=s.length;l--;){var c=s[o?l:++r];if(i(a[c],c,a)===!1)break}return t}}var IE=xQ;var wQ=IE(),FE=wQ;function kQ(o,t,i){(i!==void 0&&!ga(o[t],i)||i===void 0&&!(t in o))&&wf(o,t,i)}var tp=kQ;function _Q(o){return vn(o)&&cl(o)}var NE=_Q;function zQ(o,t){if(!(t==="constructor"&&typeof o[t]=="function")&&t!="__proto__")return o[t]}var ip=zQ;function CQ(o){return ba(o,va(o))}var HE=CQ;function SQ(o,t,i,n,r,a,s){var l=ip(o,i),c=ip(t,i),d=s.get(c);if(d){tp(o,i,d);return}var f=a?a(l,c,i+"",o,t,s):void 0,h=f===void 0;if(h){var p=mo(c),m=!p&&hs(c),v=!p&&!m&&zf(c);f=c,p||m||v?mo(l)?f=l:NE(l)?f=Db(l):m?(h=!1,f=jb(c,!0)):v?(h=!1,f=Jb(c,!0)):f=[]:$9(c)||Qu(c)?(f=l,Qu(l)?f=HE(l):(!En(l)||yf(l))&&(f=Qb(c))):h=!1}h&&(s.set(c,f),r(f,c,n,a,s),s.delete(c)),tp(o,i,f)}var BE=SQ;function WE(o,t,i,n,r){o!==t&&FE(t,function(a,s){if(r||(r=new pl),En(a))BE(o,t,s,i,WE,n,r);else{var l=n?n(ip(o,s),a,s+"",o,t,r):void 0;l===void 0&&(l=a),tp(o,s,l)}},va)}var jE=WE;function AQ(o,t){return $E(o,t)}var $c=AQ;var EQ=a9(function(o,t,i){jE(o,t,i)}),fr=EQ;var op={};qF(op,{Attributor:()=>Un,AttributorStore:()=>np,BlockBlot:()=>Ic,ClassAttributor:()=>$i,ContainerBlot:()=>If,EmbedBlot:()=>mi,InlineBlot:()=>nv,LeafBlot:()=>Ii,ParentBlot:()=>hr,Registry:()=>bl,Scope:()=>Me,ScrollBlot:()=>rp,StyleAttributor:()=>ur,TextBlot:()=>Ff});var Me=(o=>(o[o.TYPE=3]="TYPE",o[o.LEVEL=12]="LEVEL",o[o.ATTRIBUTE=13]="ATTRIBUTE",o[o.BLOT=14]="BLOT",o[o.INLINE=7]="INLINE",o[o.BLOCK=11]="BLOCK",o[o.BLOCK_BLOT=10]="BLOCK_BLOT",o[o.INLINE_BLOT=6]="INLINE_BLOT",o[o.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",o[o.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",o[o.ANY=15]="ANY",o))(Me||{}),Un=class{constructor(t,i,n={}){this.attrName=t,this.keyName=i;let r=Me.TYPE&Me.ATTRIBUTE;this.scope=n.scope!=null?n.scope&Me.LEVEL|r:Me.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(t){return Array.from(t.attributes).map(i=>i.name)}add(t,i){return this.canAdd(t,i)?(t.setAttribute(this.keyName,i),!0):!1}canAdd(t,i){return this.whitelist==null?!0:typeof i=="string"?this.whitelist.indexOf(i.replace(/["']/g,""))>-1:this.whitelist.indexOf(i)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){let i=t.getAttribute(this.keyName);return this.canAdd(t,i)&&i?i:""}},gl=class extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}},GE=class Tw{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,i=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(i){let n=null;try{n=t.parentNode}catch(r){return null}return this.find(n,i)}return null}create(t,i,n){let r=this.query(i);if(r==null)throw new gl(`Unable to create ${i} blot`);let a=r,s=i instanceof Node||i.nodeType===Node.TEXT_NODE?i:a.create(n),l=new a(t,s,n);return Tw.blots.set(l.domNode,l),l}find(t,i=!1){return Tw.find(t,i)}query(t,i=Me.ANY){let n;return typeof t=="string"?n=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?n=this.types.text:typeof t=="number"?t&Me.LEVEL&Me.BLOCK?n=this.types.block:t&Me.LEVEL&Me.INLINE&&(n=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(r=>(n=this.classes[r],!!n)),n=n||this.tags[t.tagName]),n==null?null:"scope"in n&&i&Me.LEVEL&n.scope&&i&Me.TYPE&n.scope?n:null}register(...t){return t.map(i=>{let n="blotName"in i,r="attrName"in i;if(!n&&!r)throw new gl("Invalid definition");if(n&&i.blotName==="abstract")throw new gl("Cannot register abstract class");let a=n?i.blotName:r?i.attrName:void 0;return this.types[a]=i,r?typeof i.keyName=="string"&&(this.attributes[i.keyName]=i):n&&(i.className&&(this.classes[i.className]=i),i.tagName&&(Array.isArray(i.tagName)?i.tagName=i.tagName.map(s=>s.toUpperCase()):i.tagName=i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach(s=>{(this.tags[s]==null||i.className==null)&&(this.tags[s]=i)}))),i})}};GE.blots=new WeakMap;var bl=GE;function VE(o,t){return(o.getAttribute("class")||"").split(/\s+/).filter(i=>i.indexOf(`${t}-`)===0)}var Mw=class extends Un{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(i=>i.split("-").slice(0,-1).join("-"))}add(t,i){return this.canAdd(t,i)?(this.remove(t),t.classList.add(`${this.keyName}-${i}`),!0):!1}remove(t){VE(t,this.keyName).forEach(i=>{t.classList.remove(i)}),t.classList.length===0&&t.removeAttribute("class")}value(t){let i=(VE(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,i)?i:""}},$i=Mw;function Ew(o){let t=o.split("-"),i=t.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return t[0]+i}var Lw=class extends Un{static keys(t){return(t.getAttribute("style")||"").split(";").map(i=>i.split(":")[0].trim())}add(t,i){return this.canAdd(t,i)?(t.style[Ew(this.keyName)]=i,!0):!1}remove(t){t.style[Ew(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){let i=t.style[Ew(this.keyName)];return this.canAdd(t,i)?i:""}},ur=Lw,qw=class{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,i){i?t.add(this.domNode,i)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};let t=bl.find(this.domNode);if(t==null)return;let i=Un.keys(this.domNode),n=$i.keys(this.domNode),r=ur.keys(this.domNode);i.concat(n).concat(r).forEach(a=>{let s=t.scroll.query(a,Me.ATTRIBUTE);s instanceof Un&&(this.attributes[s.attrName]=s)})}copy(t){Object.keys(this.attributes).forEach(i=>{let n=this.attributes[i].value(this.domNode);t.format(i,n)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(i=>{this.attributes[i].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,i)=>(t[i]=this.attributes[i].value(this.domNode),t),{})}},np=qw,YE=class{constructor(t,i){this.scroll=t,this.domNode=i,bl.blots.set(i,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new gl("Blot definition missing tagName");let i,n;return Array.isArray(this.tagName)?(typeof t=="string"?(n=t.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof t=="number"&&(n=t),typeof n=="number"?i=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?i=document.createElement(n):i=document.createElement(this.tagName[0])):i=document.createElement(this.tagName),this.className&&i.classList.add(this.className),i}get statics(){return this.constructor}attach(){}clone(){let t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),bl.blots.delete(this.domNode)}deleteAt(t,i){this.isolate(t,i).remove()}formatAt(t,i,n,r){let a=this.isolate(t,i);if(this.scroll.query(n,Me.BLOT)!=null&&r)a.wrap(n,r);else if(this.scroll.query(n,Me.ATTRIBUTE)!=null){let s=this.scroll.create(this.statics.scope);a.wrap(s),s.format(n,r)}}insertAt(t,i,n){let r=n==null?this.scroll.create("text",i):this.scroll.create(i,n),a=this.split(t);this.parent.insertBefore(r,a||void 0)}isolate(t,i){let n=this.split(t);if(n==null)throw new Error("Attempt to isolate at end");return n.split(i),n}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){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(t,i){let n=typeof t=="string"?this.scroll.create(t,i):t;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(t,i){return t===0?this:this.next}update(t,i){}wrap(t,i){let n=typeof t=="string"?this.scroll.create(t,i):t;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new gl(`Cannot wrap ${t}`);return n.appendChild(this),n}};YE.blotName="abstract";var XE=YE,KE=class extends XE{static value(t){return!0}index(t,i){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(i,1):-1}position(t,i){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};KE.scope=Me.INLINE_BLOT;var TQ=KE,Ii=TQ,Pw=class{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){let i=t.slice(1);this.append(...i)}}at(t){let i=this.iterator(),n=i();for(;n&&t>0;)t-=1,n=i();return n}contains(t){let i=this.iterator(),n=i();for(;n;){if(n===t)return!0;n=i()}return!1}indexOf(t){let i=this.iterator(),n=i(),r=0;for(;n;){if(n===t)return r;r+=1,n=i()}return-1}insertBefore(t,i){t!=null&&(this.remove(t),t.next=i,i!=null?(t.prev=i.prev,i.prev!=null&&(i.prev.next=t),i.prev=t,i===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let i=0,n=this.head;for(;n!=null;){if(n===t)return i;i+=n.length(),n=n.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{let i=t;return t!=null&&(t=t.next),i}}find(t,i=!1){let n=this.iterator(),r=n();for(;r;){let a=r.length();if(t<a||i&&t===a&&(r.next==null||r.next.length()!==0))return[r,t];t-=a,r=n()}return[null,0]}forEach(t){let i=this.iterator(),n=i();for(;n;)t(n),n=i()}forEachAt(t,i,n){if(i<=0)return;let[r,a]=this.find(t),s=t-a,l=this.iterator(r),c=l();for(;c&&s<t+i;){let d=c.length();t>s?n(c,t-s,Math.min(i,s+d-t)):n(c,0,Math.min(d,t+i-s)),s+=d,c=l()}}map(t){return this.reduce((i,n)=>(i.push(t(n)),i),[])}reduce(t,i){let n=this.iterator(),r=n();for(;r;)i=t(i,r),r=n();return i}};function UE(o,t){let i=t.find(o);if(i)return i;try{return t.create(o)}catch(n){let r=t.create(Me.INLINE);return Array.from(o.childNodes).forEach(a=>{r.domNode.appendChild(a)}),o.parentNode&&o.parentNode.replaceChild(r.domNode,o),r.attach(),r}}var JE=class ml extends XE{constructor(t,i){super(t,i),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,ml.uiClass&&this.uiNode.classList.add(ml.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Pw,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{let i=UE(t,this.scroll);this.insertBefore(i,this.children.head||void 0)}catch(i){if(i instanceof gl)return;throw i}})}deleteAt(t,i){if(t===0&&i===this.length())return this.remove();this.children.forEachAt(t,i,(n,r,a)=>{n.deleteAt(r,a)})}descendant(t,i=0){let[n,r]=this.children.find(i);return t.blotName==null&&t(n)||t.blotName!=null&&n instanceof t?[n,r]:n instanceof ml?n.descendant(t,r):[null,-1]}descendants(t,i=0,n=Number.MAX_VALUE){let r=[],a=n;return this.children.forEachAt(i,n,(s,l,c)=>{(t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t)&&r.push(s),s instanceof ml&&(r=r.concat(s.descendants(t,l,a))),a-=c}),r}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(i=>{t||this.statics.allowedChildren.some(n=>i instanceof n)||(i.statics.scope===Me.BLOCK_BLOT?(i.next!=null&&this.splitAfter(i),i.prev!=null&&this.splitAfter(i.prev),i.parent.unwrap(),t=!0):i instanceof ml?i.unwrap():i.remove())})}formatAt(t,i,n,r){this.children.forEachAt(t,i,(a,s,l)=>{a.formatAt(s,l,n,r)})}insertAt(t,i,n){let[r,a]=this.children.find(t);if(r)r.insertAt(a,i,n);else{let s=n==null?this.scroll.create("text",i):this.scroll.create(i,n);this.appendChild(s)}}insertBefore(t,i){t.parent!=null&&t.parent.children.remove(t);let n=null;this.children.insertBefore(t,i||null),t.parent=this,i!=null&&(n=i.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(t.domNode,n),t.attach()}length(){return this.children.reduce((t,i)=>t+i.length(),0)}moveChildren(t,i){this.children.forEach(n=>{t.insertBefore(n,i)})}optimize(t){if(super.optimize(t),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 i=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(i)}else this.remove()}path(t,i=!1){let[n,r]=this.children.find(t,i),a=[[this,t]];return n instanceof ml?a.concat(n.path(r,i)):(n!=null&&a.push([n,r]),a)}removeChild(t){this.children.remove(t)}replaceWith(t,i){let n=typeof t=="string"?this.scroll.create(t,i):t;return n instanceof ml&&this.moveChildren(n),super.replaceWith(n)}split(t,i=!1){if(!i){if(t===0)return this;if(t===this.length())return this.next}let n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(t,this.length(),(r,a,s)=>{let l=r.split(a,i);l!=null&&n.appendChild(l)}),n}splitAfter(t){let i=this.clone();for(;t.next!=null;)i.appendChild(t.next);return this.parent&&this.parent.insertBefore(i,this.next||void 0),i}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,i){let n=[],r=[];t.forEach(a=>{a.target===this.domNode&&a.type==="childList"&&(n.push(...a.addedNodes),r.push(...a.removedNodes))}),r.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()}),n.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=UE(a,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};JE.uiClass="";var MQ=JE,hr=MQ;function LQ(o,t){if(Object.keys(o).length!==Object.keys(t).length)return!1;for(let i in o)if(o[i]!==t[i])return!1;return!0}var Rf=class Of extends hr{static create(t){return super.create(t)}static formats(t,i){let n=i.query(Of.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,i){super(t,i),this.attributes=new np(this.domNode)}format(t,i){if(t===this.statics.blotName&&!i)this.children.forEach(n=>{n instanceof Of||(n=n.wrap(Of.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{let n=this.scroll.query(t,Me.INLINE);if(n==null)return;n instanceof Un?this.attributes.attribute(n,i):i&&(t!==this.statics.blotName||this.formats()[t]!==i)&&this.replaceWith(t,i)}}formats(){let t=this.attributes.values(),i=this.statics.formats(this.domNode,this.scroll);return i!=null&&(t[this.statics.blotName]=i),t}formatAt(t,i,n,r){this.formats()[n]!=null||this.scroll.query(n,Me.ATTRIBUTE)?this.isolate(t,i).format(n,r):super.formatAt(t,i,n,r)}optimize(t){super.optimize(t);let i=this.formats();if(Object.keys(i).length===0)return this.unwrap();let n=this.next;n instanceof Of&&n.prev===this&&LQ(i,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(t,i){let n=super.replaceWith(t,i);return this.attributes.copy(n),n}update(t,i){super.update(t,i),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(t,i){let n=super.wrap(t,i);return n instanceof Of&&this.attributes.move(n),n}};Rf.allowedChildren=[Rf,Ii],Rf.blotName="inline",Rf.scope=Me.INLINE_BLOT,Rf.tagName="SPAN";var qQ=Rf,nv=qQ,Df=class Rw extends hr{static create(t){return super.create(t)}static formats(t,i){let n=i.query(Rw.blotName);if(!(n!=null&&t.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,i){super(t,i),this.attributes=new np(this.domNode)}format(t,i){let n=this.scroll.query(t,Me.BLOCK);n!=null&&(n instanceof Un?this.attributes.attribute(n,i):t===this.statics.blotName&&!i?this.replaceWith(Rw.blotName):i&&(t!==this.statics.blotName||this.formats()[t]!==i)&&this.replaceWith(t,i))}formats(){let t=this.attributes.values(),i=this.statics.formats(this.domNode,this.scroll);return i!=null&&(t[this.statics.blotName]=i),t}formatAt(t,i,n,r){this.scroll.query(n,Me.BLOCK)!=null?this.format(n,r):super.formatAt(t,i,n,r)}insertAt(t,i,n){if(n==null||this.scroll.query(i,Me.INLINE)!=null)super.insertAt(t,i,n);else{let r=this.split(t);if(r!=null){let a=this.scroll.create(i,n);r.parent.insertBefore(a,r)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,i){let n=super.replaceWith(t,i);return this.attributes.copy(n),n}update(t,i){super.update(t,i),t.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Df.blotName="block",Df.scope=Me.BLOCK_BLOT,Df.tagName="P",Df.allowedChildren=[nv,Df,Ii];var PQ=Df,Ic=PQ,Ow=class extends hr{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,i){super.deleteAt(t,i),this.enforceAllowedChildren()}formatAt(t,i,n,r){super.formatAt(t,i,n,r),this.enforceAllowedChildren()}insertAt(t,i,n){super.insertAt(t,i,n),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Ow.blotName="container",Ow.scope=Me.BLOCK_BLOT;var RQ=Ow,If=RQ,Dw=class extends Ii{static formats(t,i){}format(t,i){super.formatAt(0,this.length(),t,i)}formatAt(t,i,n,r){t===0&&i===this.length()?this.format(n,r):super.formatAt(t,i,n,r)}formats(){return this.statics.formats(this.domNode,this.scroll)}},mi=Dw,OQ={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},DQ=100,$f=class extends hr{constructor(t,i){super(null,i),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,OQ),this.attach()}create(t,i){return this.registry.create(this,t,i)}find(t,i=!1){let n=this.registry.find(t,i);return n?n.scroll===this?n:i?this.find(n.scroll.domNode.parentNode,!0):null:null}query(t,i=Me.ANY){return this.registry.query(t,i)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,i){this.update(),t===0&&i===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(t,i)}formatAt(t,i,n,r){this.update(),super.formatAt(t,i,n,r)}insertAt(t,i,n){this.update(),super.insertAt(t,i,n)}optimize(t=[],i={}){super.optimize(i);let n=i.mutationsMap||new WeakMap,r=Array.from(this.observer.takeRecords());for(;r.length>0;)t.push(r.pop());let a=(c,d=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(n.has(c.domNode)||n.set(c.domNode,[]),d&&a(c.parent))},s=c=>{n.has(c.domNode)&&(c instanceof hr&&c.children.forEach(s),n.delete(c.domNode),c.optimize(i))},l=t;for(let c=0;l.length>0;c+=1){if(c>=DQ)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(d=>{let f=this.find(d.target,!0);f!=null&&(f.domNode===d.target&&(d.type==="childList"?(a(this.find(d.previousSibling,!1)),Array.from(d.addedNodes).forEach(h=>{let p=this.find(h,!1);a(p,!1),p instanceof hr&&p.children.forEach(m=>{a(m,!1)})})):d.type==="attributes"&&a(f.prev)),a(f))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),r=l.slice();r.length>0;)t.push(r.pop())}}update(t,i={}){t=t||this.observer.takeRecords();let n=new WeakMap;t.map(r=>{let a=this.find(r.target,!0);return a==null?null:n.has(a.domNode)?(n.get(a.domNode).push(r),null):(n.set(a.domNode,[r]),a)}).forEach(r=>{r!=null&&r!==this&&n.has(r.domNode)&&r.update(n.get(r.domNode)||[],i)}),i.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),i),this.optimize(t,i)}};$f.blotName="scroll",$f.defaultChild=Ic,$f.allowedChildren=[Ic,If],$f.scope=Me.BLOCK_BLOT,$f.tagName="DIV";var $Q=$f,rp=$Q,$w=class QE extends Ii{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,i){super(t,i),this.text=this.statics.value(this.domNode)}deleteAt(t,i){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+i)}index(t,i){return this.domNode===t?i:-1}insertAt(t,i,n){n==null?(this.text=this.text.slice(0,t)+i+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,i,n)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof QE&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,i=!1){return[this.domNode,t]}split(t,i=!1){if(!i){if(t===0)return this;if(t===this.length())return this.next}let n=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(t,i){t.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};$w.blotName="text",$w.scope=Me.INLINE_BLOT;var IQ=$w,Ff=IQ;var kl=sn($r(),1);var gi=sn($r(),1);var _k=sn($r(),1);var mp=class extends mi{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}};mp.blotName="break";mp.tagName="BR";var Tn=mp;var Mi=class extends Ff{},tie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Gc(o){return o.replace(/[&<>"']/g,t=>tie[t])}var wa=class wa extends nv{static compare(t,i){let n=wa.order.indexOf(t),r=wa.order.indexOf(i);return n>=0||r>=0?n-r:t===i?0:t<i?-1:1}formatAt(t,i,n,r){if(wa.compare(this.statics.blotName,n)<0&&this.scroll.query(n,Me.BLOT)){let a=this.isolate(t,i);r&&a.wrap(n,r)}else super.formatAt(t,i,n,r)}optimize(t){if(super.optimize(t),this.parent instanceof wa&&wa.compare(this.statics.blotName,this.parent.statics.blotName)>0){let i=this.parent.isolate(this.offset(),this.length());this.moveChildren(i),i.wrap(this)}}};ie(wa,"allowedChildren",[wa,Tn,mi,Mi]),ie(wa,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);var kk=wa,Mn=kk;var OM=1,Bt=class extends Ic{constructor(){super(...arguments);ie(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=zk(this)),this.cache.delta}deleteAt(i,n){super.deleteAt(i,n),this.cache={}}formatAt(i,n,r,a){n<=0||(this.scroll.query(r,Me.BLOCK)?i+n===this.length()&&this.format(r,a):super.formatAt(i,Math.min(n,this.length()-i-1),r,a),this.cache={})}insertAt(i,n,r){if(r!=null){super.insertAt(i,n,r),this.cache={};return}if(n.length===0)return;let a=n.split(`
2868
+ `),s=a.shift();s.length>0&&(i<this.length()-1||this.children.tail==null?super.insertAt(Math.min(i,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;a.reduce((c,d)=>(l=l.split(c,!0),l.insertAt(0,d),d.length),i+s.length)}insertBefore(i,n){let{head:r}=this.children;super.insertBefore(i,n),r instanceof Tn&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+OM),this.cache.length}moveChildren(i,n){super.moveChildren(i,n),this.cache={}}optimize(i){super.optimize(i),this.cache={}}path(i){return super.path(i,!0)}removeChild(i){super.removeChild(i),this.cache={}}split(i){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(i===0||i>=this.length()-OM)){let a=this.clone();return i===0?(this.parent.insertBefore(a,this),this):(this.parent.insertBefore(a,this.next),a)}let r=super.split(i,n);return this.cache={},r}};Bt.blotName="block";Bt.tagName="P";Bt.defaultChild=Tn;Bt.allowedChildren=[Tn,Mn,mi,Mi];var Yi=class extends mi{attach(){super.attach(),this.attributes=new np(this.domNode)}delta(){return new _k.default().insert(this.value(),Ce(Ce({},this.formats()),this.attributes.values()))}format(t,i){let n=this.scroll.query(t,Me.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,i)}formatAt(t,i,n,r){this.format(n,r)}insertAt(t,i,n){if(n!=null){super.insertAt(t,i,n);return}let r=i.split(`
2869
2869
  `),a=r.pop(),s=r.map(c=>{let d=this.scroll.create(Bt.blotName);return d.insertAt(0,c),d}),l=this.split(t);s.forEach(c=>{this.parent.insertBefore(c,l)}),a&&this.parent.insertBefore(this.scroll.create("text",a),l)}};Yi.scope=Me.BLOCK_BLOT;function zk(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o.descendants(Ii).reduce((i,n)=>n.length()===0?i:i.insert(n.value(),pr(n,{},t)),new _k.default).insert(`
2870
2870
  `,pr(o))}function pr(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return o==null||("formats"in o&&typeof o.formats=="function"&&(t=Ce(Ce({},t),o.formats()),i&&delete t["code-token"]),o.parent==null||o.parent.statics.blotName==="scroll"||o.parent.statics.scope!==o.statics.scope)?t:pr(o.parent,t,i)}var bo=class bo extends mi{static value(){}constructor(t,i,n){super(t,i),this.selection=n,this.textNode=document.createTextNode(bo.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,i){if(this.savedLength!==0){super.format(t,i);return}let n=this,r=0;for(;n!=null&&n.statics.scope!==Me.BLOCK_BLOT;)r+=n.offset(n.parent),n=n.parent;n!=null&&(this.savedLength=bo.CONTENTS.length,n.optimize(),n.formatAt(r,bo.CONTENTS.length,t,i),this.savedLength=0)}index(t,i){return t===this.textNode?0:super.index(t,i)}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 t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);let i=this.prev instanceof Mi?this.prev:null,n=i?i.length():0,r=this.next instanceof Mi?this.next:null,a=r?r.text:"",{textNode:s}=this,l=s.data.split(bo.CONTENTS).join("");s.data=bo.CONTENTS;let c;if(i)c=i,(l||r)&&(i.insertAt(i.length(),l+a),r&&r.remove());else if(r)c=r,r.insertAt(0,l);else{let d=document.createTextNode(l);c=this.scroll.create(d),this.parent.insertBefore(c,this)}if(this.remove(),t){let d=(p,m)=>i&&p===i.domNode?m:p===s?n+m-1:r&&p===r.domNode?n+l.length+m:null,f=d(t.start.node,t.start.offset),h=d(t.end.node,t.end.offset);if(f!==null&&h!==null)return{startNode:c.domNode,startOffset:f,endNode:c.domNode,endOffset:h}}return null}update(t,i){if(t.some(n=>n.type==="characterData"&&n.target===this.textNode)){let n=this.restore();n&&(i.range=n)}}optimize(t){super.optimize(t);let{parent:i}=this;for(;i;){if(i.domNode.tagName==="A"){this.savedLength=bo.CONTENTS.length,i.isolate(this.offset(i),this.length()).unwrap(),this.savedLength=0;break}i=i.parent}}value(){return""}};ie(bo,"blotName","cursor"),ie(bo,"className","ql-cursor"),ie(bo,"tagName","span"),ie(bo,"CONTENTS","\uFEFF");var Ck=bo,wl=Ck;var Ak=sn($M(),1);var bp=new WeakMap;var Ek=["error","warn","log","info"],Tk="warn";function IM(o){if(Tk&&Ek.indexOf(o)<=Ek.indexOf(Tk)){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];console[o](...i)}}function Mk(o){return Ek.reduce((t,i)=>(t[i]=IM.bind(console,i,o),t),{})}Mk.level=o=>{Tk=o};IM.level=Mk.level;var Ir=Mk;var Lk=Ir("quill:events"),rie=["selectionchange","mousedown","mouseup","click"];rie.forEach(o=>{document.addEventListener(o,function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(r=>{let a=bp.get(r);a&&a.emitter&&a.emitter.handleDOM(...i)})})});var vp=class extends Ak.default{constructor(){super(),this.domListeners={},this.on("error",Lk.error)}emit(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return Lk.log.call(Lk,...i),super.emit(...i)}handleDOM(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];(this.domListeners[t.type]||[]).forEach(a=>{let{node:s,handler:l}=a;(t.target===s||s.contains(t.target))&&l(t,...n)})}listenDOM(t,i,n){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:i,handler:n})}};ie(vp,"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"}),ie(vp,"sources",{API:"api",SILENT:"silent",USER:"user"});var $e=vp;var qk=Ir("quill:selection"),Xn=class{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=i}},Rk=class{constructor(t,i){this.emitter=i,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Xn(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,$e.sources.USER),1)}),this.emitter.on($e.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;let n=this.getNativeRange();n!=null&&n.start.node!==this.cursor.textNode&&this.emitter.once($e.events.SCROLL_UPDATE,(r,a)=>{try{this.root.contains(n.start.node)&&this.root.contains(n.end.node)&&this.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset);let s=a.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(s?$e.sources.SILENT:r)}catch(s){}})}),this.emitter.on($e.events.SCROLL_OPTIMIZE,(n,r)=>{if(r.range){let{startNode:a,startOffset:s,endNode:l,endOffset:c}=r.range;this.setNativeRange(a,s,l,c),this.update($e.sources.SILENT)}}),this.update($e.sources.SILENT)}handleComposition(){this.emitter.on($e.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on($e.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){let t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update($e.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,i){this.scroll.update();let n=this.getNativeRange();if(!(n==null||!n.native.collapsed||this.scroll.query(t,Me.BLOCK))){if(n.start.node!==this.cursor.textNode){let r=this.scroll.find(n.start.node,!1);if(r==null)return;if(r instanceof Ii){let a=r.split(n.start.offset);r.parent.insertBefore(this.cursor,a)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,i),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),i=Math.min(t+i,n-1)-t;let r,[a,s]=this.scroll.leaf(t);if(a==null)return null;if(i>0&&s===a.length()){let[f]=this.scroll.leaf(t+1);if(f){let[h]=this.scroll.line(t),[p]=this.scroll.line(t+1);h===p&&(a=f,s=0)}}[r,s]=a.position(s,!0);let l=document.createRange();if(i>0)return l.setStart(r,s),[a,s]=this.scroll.leaf(t+i),a==null?null:([r,s]=a.position(s,!0),l.setEnd(r,s),l.getBoundingClientRect());let c="left",d;if(r instanceof Text){if(!r.data.length)return null;s<r.data.length?(l.setStart(r,s),l.setEnd(r,s+1)):(l.setStart(r,s-1),l.setEnd(r,s),c="right"),d=l.getBoundingClientRect()}else{if(!(a.domNode instanceof Element))return null;d=a.domNode.getBoundingClientRect(),s>0&&(c="right")}return{bottom:d.top+d.height,height:d.height,left:d[c],right:d[c],top:d.top,width:0}}getNativeRange(){let t=document.getSelection();if(t==null||t.rangeCount<=0)return null;let i=t.getRangeAt(0);if(i==null)return null;let n=this.normalizeNative(i);return qk.info("getNativeRange",n),n}getRange(){let t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];let i=this.getNativeRange();return i==null?[null,null]:[this.normalizedToRange(i),i]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&Pk(this.root,document.activeElement)}normalizedToRange(t){let i=[[t.start.node,t.start.offset]];t.native.collapsed||i.push([t.end.node,t.end.offset]);let n=i.map(s=>{let[l,c]=s,d=this.scroll.find(l,!0),f=d.offset(this.scroll);return c===0?f:d instanceof Ii?f+d.index(l,c):f+d.length()}),r=Math.min(Math.max(...n),this.scroll.length()-1),a=Math.min(r,...n);return new Xn(a,r-a)}normalizeNative(t){if(!Pk(this.root,t.startContainer)||!t.collapsed&&!Pk(this.root,t.endContainer))return null;let i={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[i.start,i.end].forEach(n=>{let{node:r,offset:a}=n;for(;!(r instanceof Text)&&r.childNodes.length>0;)if(r.childNodes.length>a)r=r.childNodes[a],a=0;else if(r.childNodes.length===a)r=r.lastChild,r instanceof Text?a=r.data.length:r.childNodes.length>0?a=r.childNodes.length:a=r.childNodes.length+1;else break;n.node=r,n.offset=a}),i}rangeToNative(t){let i=this.scroll.length(),n=(r,a)=>{r=Math.min(i-1,r);let[s,l]=this.scroll.leaf(r);return s?s.position(l,a):[null,-1]};return[...n(t.index,!1),...n(t.index+t.length,!0)]}setNativeRange(t,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:i,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(qk.info("setNativeRange",t,i,n,r),t!=null&&(this.root.parentNode==null||t.parentNode==null||n.parentNode==null))return;let s=document.getSelection();if(s!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});let{native:l}=this.getNativeRange()||{};if(l==null||a||t!==l.startContainer||i!==l.startOffset||n!==l.endContainer||r!==l.endOffset){t instanceof Element&&t.tagName==="BR"&&(i=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),n instanceof Element&&n.tagName==="BR"&&(r=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);let c=document.createRange();c.setStart(t,i),c.setEnd(n,r),s.removeAllRanges(),s.addRange(c)}}else s.removeAllRanges(),this.root.blur()}setRange(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e.sources.API;if(typeof i=="string"&&(n=i,i=!1),qk.info("setRange",t),t!=null){let r=this.rangeToNative(t);this.setNativeRange(...r,i)}else this.setNativeRange(null);this.update(n)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e.sources.USER,i=this.lastRange,[n,r]=this.getRange();if(this.lastRange=n,this.lastNative=r,this.lastRange!=null&&(this.savedRange=this.lastRange),!$c(i,this.lastRange)){if(!this.composing&&r!=null&&r.native.collapsed&&r.start.node!==this.cursor.textNode){let s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}let a=[$e.events.SELECTION_CHANGE,ya(this.lastRange),ya(i),t];this.emitter.emit($e.events.EDITOR_CHANGE,...a),t!==$e.sources.SILENT&&this.emitter.emit(...a)}}};function Pk(o,t){try{t.parentNode}catch(i){return!1}return o.contains(t)}var FM=Rk;var oie=/^[ -~]*$/,Dk=class{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let i=this.scroll.length();this.scroll.batchStart();let n=NM(t),r=new gi.default;return sie(n.ops.slice()).reduce((s,l)=>{let c=gi.Op.length(l),d=l.attributes||{},f=!1,h=!1;if(l.insert!=null){if(r.retain(c),typeof l.insert=="string"){let v=l.insert;h=!v.endsWith(`
2871
2871
  `)&&(i<=s||!!this.scroll.descendant(Yi,s)[0]),this.scroll.insertAt(s,v);let[b,x]=this.scroll.line(s),k=fr({},pr(b));if(b instanceof Bt){let[z]=b.descendant(Ii,x);z&&(k=fr(k,pr(z)))}d=gi.AttributeMap.diff(k,d)||{}}else if(typeof l.insert=="object"){let v=Object.keys(l.insert)[0];if(v==null)return s;let b=this.scroll.query(v,Me.INLINE)!=null;if(b)(i<=s||this.scroll.descendant(Yi,s)[0])&&(h=!0);else if(s>0){let[x,k]=this.scroll.descendant(Ii,s-1);x instanceof Mi?x.value()[k]!==`
2872
2872
  `&&(f=!0):x instanceof mi&&x.statics.scope===Me.INLINE_BLOT&&(f=!0)}if(this.scroll.insertAt(s,v,l.insert[v]),b){let[x]=this.scroll.descendant(Ii,s);if(x){let k=fr({},pr(x));d=gi.AttributeMap.diff(k,d)||{}}}}i+=c}else if(r.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(d).forEach(v=>{this.scroll.formatAt(s,c,v,d[v])});let p=f?1:0,m=h?1:0;return i+=p+m,r.retain(p),r.delete(m),s+c+p+m},0),r.reduce((s,l)=>typeof l.delete=="number"?(this.scroll.deleteAt(s,l.delete),s):s+gi.Op.length(l),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(t,i){return this.scroll.deleteAt(t,i),this.update(new gi.default().retain(t).delete(i))}formatLine(t,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach(a=>{this.scroll.lines(t,Math.max(i,1)).forEach(s=>{s.format(a,n[a])})}),this.scroll.optimize();let r=new gi.default().retain(t).retain(i,ya(n));return this.update(r)}formatText(t,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(n).forEach(a=>{this.scroll.formatAt(t,i,a,n[a])});let r=new gi.default().retain(t).retain(i,ya(n));return this.update(r)}getContents(t,i){return this.delta.slice(t,t+i)}getDelta(){return this.scroll.lines().reduce((t,i)=>t.concat(i.delta()),new gi.default)}getFormat(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[],r=[];i===0?this.scroll.path(t).forEach(l=>{let[c]=l;c instanceof Bt?n.push(c):c instanceof Ii&&r.push(c)}):(n=this.scroll.lines(t,i),r=this.scroll.descendants(Ii,t,i));let[a,s]=[n,r].map(l=>{let c=l.shift();if(c==null)return{};let d=pr(c);for(;Object.keys(d).length>0;){let f=l.shift();if(f==null)return d;d=aie(pr(f),d)}return d});return Ce(Ce({},a),s)}getHTML(t,i){let[n,r]=this.scroll.line(t);if(n){let a=n.length();return n.length()>=r+i&&!(r===0&&i===a)?yp(n,r,i,!0):yp(this.scroll,t,i,!0)}return""}getText(t,i){return this.getContents(t,i).filter(n=>typeof n.insert=="string").map(n=>n.insert).join("")}insertContents(t,i){let n=NM(i),r=new gi.default().retain(t).concat(n);return this.scroll.insertContents(t,n),this.update(r)}insertEmbed(t,i,n){return this.scroll.insertAt(t,i,n),this.update(new gi.default().retain(t).insert({[i]:n}))}insertText(t,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i=i.replace(/\r\n/g,`
2873
2873
  `).replace(/\r/g,`
2874
- `),this.scroll.insertAt(t,i),Object.keys(n).forEach(r=>{this.scroll.formatAt(t,i.length,r,n[r])}),this.update(new gi.default().retain(t).insert(i,ya(n)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;let t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==Bt.blotName)return!1;let i=t;return i.children.length>1?!1:i.children.head instanceof En}removeFormat(t,i){let n=this.getText(t,i),[r,a]=this.scroll.line(t+i),s=0,l=new gi.default;r!=null&&(s=r.length()-a,l=r.delta().slice(a,a+s-1).insert(`
2874
+ `),this.scroll.insertAt(t,i),Object.keys(n).forEach(r=>{this.scroll.formatAt(t,i.length,r,n[r])}),this.update(new gi.default().retain(t).insert(i,ya(n)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;let t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==Bt.blotName)return!1;let i=t;return i.children.length>1?!1:i.children.head instanceof Tn}removeFormat(t,i){let n=this.getText(t,i),[r,a]=this.scroll.line(t+i),s=0,l=new gi.default;r!=null&&(s=r.length()-a,l=r.delta().slice(a,a+s-1).insert(`
2875
2875
  `));let d=this.getContents(t,i+s).diff(new gi.default().insert(n).concat(l)),f=new gi.default().retain(t).concat(d);return this.applyDelta(f)}update(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,r=this.delta;if(i.length===1&&i[0].type==="characterData"&&i[0].target.data.match(oie)&&this.scroll.find(i[0].target)){let a=this.scroll.find(i[0].target),s=pr(a),l=a.offset(this.scroll),c=i[0].oldValue.replace(wl.CONTENTS,""),d=new gi.default().insert(c),f=new gi.default().insert(a.value()),h=n&&{oldRange:HM(n.oldRange,-l),newRange:HM(n.newRange,-l)};t=new gi.default().retain(l).concat(d.diff(f,h)).reduce((m,v)=>v.insert?m.insert(v.insert,s):m.push(v),new gi.default),this.delta=r.compose(t)}else this.delta=this.getDelta(),(!t||!$c(r.compose(t),this.delta))&&(t=r.diff(this.delta,n));return t}};function Gf(o,t,i){if(o.length===0){let[m]=Ok(i.pop());return t<=0?`</li></${m}>`:`</li></${m}>${Gf([],t-1,i)}`}let[{child:n,offset:r,length:a,indent:s,type:l},...c]=o,[d,f]=Ok(l);if(s>t)return i.push(l),s===t+1?`<${d}><li${f}>${yp(n,r,a)}${Gf(c,s,i)}`:`<${d}><li>${Gf(o,t+1,i)}`;let h=i[i.length-1];if(s===t&&l===h)return`</li><li${f}>${yp(n,r,a)}${Gf(c,s,i)}`;let[p]=Ok(i.pop());return`</li></${p}>${Gf(o,t-1,i)}`}function yp(o,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in o&&typeof o.html=="function")return o.html(t,i);if(o instanceof Mi)return Gc(o.value().slice(t,t+i)).replaceAll(" ","&nbsp;");if(o instanceof hr){if(o.statics.blotName==="list-container"){let d=[];return o.children.forEachAt(t,i,(f,h,p)=>{let m="formats"in f&&typeof f.formats=="function"?f.formats():{};d.push({child:f,offset:h,length:p,indent:m.indent||0,type:m.list})}),Gf(d,-1,[])}let r=[];if(o.children.forEachAt(t,i,(d,f,h)=>{r.push(yp(d,f,h))}),n||o.statics.blotName==="list")return r.join("");let{outerHTML:a,innerHTML:s}=o.domNode,[l,c]=a.split(`>${s}<`);return l==="<table"?`<table style="border: 1px solid #000;">${r.join("")}<${c}`:`${l}>${r.join("")}<${c}`}return o.domNode instanceof Element?o.domNode.outerHTML:""}function aie(o,t){return Object.keys(t).reduce((i,n)=>{if(o[n]==null)return i;let r=t[n];return r===o[n]?i[n]=r:Array.isArray(r)?r.indexOf(o[n])<0?i[n]=r.concat([o[n]]):i[n]=r:i[n]=[r,o[n]],i},{})}function Ok(o){let t=o==="ordered"?"ol":"ul";switch(o){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function NM(o){return o.reduce((t,i)=>{if(typeof i.insert=="string"){let n=i.insert.replace(/\r\n/g,`
2876
2876
  `).replace(/\r/g,`
2877
2877
  `);return t.insert(n,i.attributes)}return t.push(i)},new gi.default)}function HM(o,t){let{index:i,length:n}=o;return new Xn(i+t,n)}function sie(o){let t=[];return o.forEach(i=>{typeof i.insert=="string"?i.insert.split(`
2878
2878
  `).forEach((r,a)=>{a&&t.push({insert:`
2879
2879
  `,attributes:i.attributes}),r&&t.push({insert:r,attributes:i.attributes})}):t.push(i)}),t}var BM=Dk;var Ev=class{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=i}};ie(Ev,"DEFAULTS",{});var li=Ev;var Tv="\uFEFF",$k=class extends mi{constructor(t,i){super(t,i),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(n=>{this.contentNode.appendChild(n)}),this.leftGuard=document.createTextNode(Tv),this.rightGuard=document.createTextNode(Tv),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,i){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,i)}restore(t){let i=null,n,r=t.data.split(Tv).join("");if(t===this.leftGuard)if(this.prev instanceof Mi){let a=this.prev.length();this.prev.insertAt(a,r),i={startNode:this.prev.domNode,startOffset:a+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(n),this),i={startNode:n,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof Mi?(this.next.insertAt(0,r),i={startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(n),this.next),i={startNode:n,startOffset:r.length}));return t.data=Tv,i}update(t,i){t.forEach(n=>{if(n.type==="characterData"&&(n.target===this.leftGuard||n.target===this.rightGuard)){let r=this.restore(n.target);r&&(i.range=r)}})}},Yf=$k;var Ik=class{constructor(t,i){ie(this,"isComposing",!1);this.scroll=t,this.emitter=i,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){let i=t.target instanceof Node?this.scroll.find(t.target,!0):null;i&&!(i instanceof Yf)&&(this.emitter.emit($e.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit($e.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit($e.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit($e.events.COMPOSITION_END,t),this.isComposing=!1}},WM=Ik;var xp=class xp{constructor(t,i){ie(this,"modules",{});this.quill=t,this.options=i}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){let i=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new i(this.quill,this.options.modules[t]||{}),this.modules[t]}};ie(xp,"DEFAULTS",{modules:{}}),ie(xp,"themes",{default:xp});var Fk=xp,Xf=Fk;var lie=o=>o.parentElement||o.getRootNode().host||null,cie=o=>{let t=o.getBoundingClientRect(),i="offsetWidth"in o&&Math.abs(t.width)/o.offsetWidth||1,n="offsetHeight"in o&&Math.abs(t.height)/o.offsetHeight||1;return{top:t.top,right:t.left+o.clientWidth*i,bottom:t.top+o.clientHeight*n,left:t.left}},Mv=o=>{let t=parseInt(o,10);return Number.isNaN(t)?0:t},jM=(o,t,i,n,r,a)=>o<i&&t>n?0:o<i?-(i-o+r):t>n?t-o>n-i?o+r-i:t-n+a:0,die=(o,t)=>{var a,s,l,c,d;let i=o.ownerDocument,n=t,r=o;for(;r;){let f=r===i.body,h=f?{top:0,right:(s=(a=window.visualViewport)==null?void 0:a.width)!=null?s:i.documentElement.clientWidth,bottom:(c=(l=window.visualViewport)==null?void 0:l.height)!=null?c:i.documentElement.clientHeight,left:0}:cie(r),p=getComputedStyle(r),m=jM(n.left,n.right,h.left,h.right,Mv(p.scrollPaddingLeft),Mv(p.scrollPaddingRight)),v=jM(n.top,n.bottom,h.top,h.bottom,Mv(p.scrollPaddingTop),Mv(p.scrollPaddingBottom));if(m||v)if(f)(d=i.defaultView)==null||d.scrollBy(m,v);else{let{scrollLeft:b,scrollTop:x}=r;v&&(r.scrollTop+=v),m&&(r.scrollLeft+=m);let k=r.scrollLeft-b,z=r.scrollTop-x;n={left:n.left-k,top:n.top-z,right:n.right-k,bottom:n.bottom-z}}r=f||p.position==="fixed"?null:lie(r)}},VM=die;var fie=100,hie=["block","break","cursor","inline","scroll","text"],uie=(o,t,i)=>{let n=new bl;return hie.forEach(r=>{let a=t.query(r);a&&n.register(a)}),o.forEach(r=>{var l;let a=t.query(r);a||i.error(`Cannot register "${r}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;a;)if(n.register(a),a="blotName"in a&&(l=a.requiredContainer)!=null?l:null,s+=1,s>fie){i.error(`Cycle detected in registering blot requiredContainer: "${r}"`);break}}),n},UM=uie;var Kf=Ir("quill"),Lv=new bl;hr.uiClass="ql-ui";var jo=class jo{static debug(t){t===!0&&(t="log"),Ir.level(t)}static find(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return bp.get(t)||Lv.find(t,i)}static import(t){return this.imports[t]==null&&Kf.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){let t=arguments.length<=0?void 0:arguments[0],i=!!(!(arguments.length<=1)&&arguments[1]),n="attrName"in t?t.attrName:t.blotName;typeof n=="string"?this.register(`formats/${n}`,t,i):Object.keys(t).forEach(r=>{this.register(r,t[r],i)})}else{let t=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],n=!!(!(arguments.length<=2)&&arguments[2]);this.imports[t]!=null&&!n&&Kf.warn(`Overwriting ${t} with`,i),this.imports[t]=i,(t.startsWith("blots/")||t.startsWith("formats/"))&&i&&typeof i!="boolean"&&i.blotName!=="abstract"&&Lv.register(i),typeof i.register=="function"&&i.register(Lv)}}constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=pie(t,i),this.container=this.options.container,this.container==null){Kf.error("Invalid Quill container",t);return}this.options.debug&&jo.debug(this.options.debug);let n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",bp.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new $e;let r=rp.blotName,a=this.options.registry.query(r);if(!a||!("blotName"in a))throw new Error(`Cannot initialize Quill without "${r}" blot`);if(this.scroll=new a(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new BM(this.scroll),this.selection=new FM(this.scroll,this.emitter),this.composition=new WM(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($e.events.EDITOR_CHANGE,s=>{s===$e.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on($e.events.SCROLL_UPDATE,(s,l)=>{let c=this.selection.lastRange,[d]=this.selection.getRange(),f=c&&d?{oldRange:c,newRange:d}:void 0;Wo.call(this,()=>this.editor.update(null,l,f),s)}),this.emitter.on($e.events.SCROLL_EMBED_UPDATE,(s,l)=>{let c=this.selection.lastRange,[d]=this.selection.getRange(),f=c&&d?{oldRange:c,newRange:d}:void 0;Wo.call(this,()=>{let h=new kl.default().retain(s.offset(this)).retain({[s.statics.blotName]:l});return this.editor.update(h,[],f)},jo.sources.USER)}),n){let s=this.clipboard.convert({html:`${n}<p><br></p>`,text:`
2880
- `});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(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){let n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,i),t}blur(){this.selection.setRange(null)}deleteText(t,i,n){return[t,i,,n]=_s(t,i,n),Wo.call(this,()=>this.editor.deleteText(t,i),n,t,-1*i)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;let i=t();return this.allowReadOnlyEdits=!1,i}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e.sources.API;return Wo.call(this,()=>{let r=this.getSelection(!0),a=new kl.default;if(r==null)return a;if(this.scroll.query(t,Me.BLOCK))a=this.editor.formatLine(r.index,r.length,{[t]:i});else{if(r.length===0)return this.selection.format(t,i),a;a=this.editor.formatText(r.index,r.length,{[t]:i})}return this.setSelection(r,$e.sources.SILENT),a},n)}formatLine(t,i,n,r,a){let s;return[t,i,s,a]=_s(t,i,n,r,a),Wo.call(this,()=>this.editor.formatLine(t,i,s),a,t,0)}formatText(t,i,n,r,a){let s;return[t,i,s,a]=_s(t,i,n,r,a),Wo.call(this,()=>this.editor.formatText(t,i,s),a,t,0)}getBounds(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=null;if(typeof t=="number"?n=this.selection.getBounds(t,i):n=this.selection.getBounds(t.index,t.length),!n)return null;let r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,i]=_s(t,i),this.editor.getContents(t,i)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,i):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,i)}getModule(t){return this.theme.modules[t]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(i=i!=null?i:this.getLength()-t),[t,i]=_s(t,i),this.editor.getHTML(t,i)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(i=i!=null?i:this.getLength()-t),[t,i]=_s(t,i),this.editor.getText(t,i)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,i,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:jo.sources.API;return Wo.call(this,()=>this.editor.insertEmbed(t,i,n),r,t)}insertText(t,i,n,r,a){let s;return[t,,s,a]=_s(t,0,n,r,a),Wo.call(this,()=>this.editor.insertText(t,i,s),a,t,i.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(t,i,n){return[t,i,,n]=_s(t,i,n),Wo.call(this,()=>this.editor.removeFormat(t,i),n,t)}scrollRectIntoView(t){VM(this.root,t)}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 t=this.selection.lastRange,i=t&&this.selection.getBounds(t.index,t.length);i&&this.scrollRectIntoView(i)}setContents(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e.sources.API;return Wo.call(this,()=>{t=new kl.default(t);let n=this.getLength(),r=this.editor.deleteText(0,n),a=this.editor.insertContents(0,t),s=this.editor.deleteText(this.getLength()-1,1);return r.compose(a).compose(s)},i)}setSelection(t,i,n){t==null?this.selection.setRange(null,i||jo.sources.API):([t,i,,n]=_s(t,i,n),this.selection.setRange(new Xn(Math.max(0,t),i),n),n!==$e.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e.sources.API,n=new kl.default().insert(t);return this.setContents(n,i)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e.sources.USER,i=this.scroll.update(t);return this.selection.update(t),i}updateContents(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e.sources.API;return Wo.call(this,()=>(t=new kl.default(t),this.editor.applyDelta(t)),i,!0)}};ie(jo,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Lv,theme:"default"}),ie(jo,"events",$e.events),ie(jo,"sources",$e.sources),ie(jo,"version","2.0.3"),ie(jo,"imports",{delta:kl.default,parchment:op,"core/module":li,"core/theme":Xf});var he=jo;function GM(o){return typeof o=="string"?document.querySelector(o):o}function Nk(o){return Object.entries(o!=null?o:{}).reduce((t,i)=>{let[n,r]=i;return et(Ce({},t),{[n]:r===!0?{}:r})},{})}function YM(o){return Object.fromEntries(Object.entries(o).filter(t=>t[1]!==void 0))}function pie(o,t){let i=GM(o);if(!i)throw new Error("Invalid Quill container");let r=!t.theme||t.theme===he.DEFAULTS.theme?Xf:he.import(`themes/${t.theme}`);if(!r)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);let m=he.DEFAULTS,{modules:a}=m,s=Yl(m,["modules"]),v=r.DEFAULTS,{modules:l}=v,c=Yl(v,["modules"]),d=Nk(t.modules);d!=null&&d.toolbar&&d.toolbar.constructor!==Object&&(d=et(Ce({},d),{toolbar:{container:d.toolbar}}));let f=fr({},Nk(a),Nk(l),d),h=Ce(Ce(Ce({},s),YM(c)),YM(t)),p=t.registry;return p?t.formats&&Kf.warn('Ignoring "formats" option because "registry" is specified'):p=t.formats?UM(t.formats,h.registry,Kf):h.registry,et(Ce({},h),{registry:p,container:i,theme:r,modules:Object.entries(f).reduce((b,x)=>{let[k,z]=x;if(!z)return b;let E=he.import(`modules/${k}`);return E==null?(Kf.error(`Cannot load ${k} module. Are you sure you registered it?`),b):et(Ce({},b),{[k]:fr({},E.DEFAULTS||{},z)})},{}),bounds:GM(h.bounds)})}function Wo(o,t,i,n){if(!this.isEnabled()&&t===$e.sources.USER&&!this.allowReadOnlyEdits)return new kl.default;let r=i==null?null:this.getSelection(),a=this.editor.delta,s=o();if(r!=null&&(i===!0&&(i=r.index),n==null?r=XM(r,s,t):n!==0&&(r=XM(r,i,n,t)),this.setSelection(r,$e.sources.SILENT)),s.length()>0){let l=[$e.events.TEXT_CHANGE,s,a,t];this.emitter.emit($e.events.EDITOR_CHANGE,...l),t!==$e.sources.SILENT&&this.emitter.emit(...l)}return s}function _s(o,t,i,n,r){let a={};return typeof o.index=="number"&&typeof o.length=="number"?typeof t!="number"?(r=n,n=i,i=t,t=o.length,o=o.index):(t=o.length,o=o.index):typeof t!="number"&&(r=n,n=i,i=t,t=0),typeof i=="object"?(a=i,r=n):typeof i=="string"&&(n!=null?a[i]=n:r=i),r=r||$e.sources.API,[o,t,a,r]}function XM(o,t,i,n){let r=typeof i=="number"?i:0;if(o==null)return null;let a,s;return t&&typeof t.transformPosition=="function"?[a,s]=[o.index,o.index+o.length].map(l=>t.transformPosition(l,n!==$e.sources.USER)):[a,s]=[o.index,o.index+o.length].map(l=>l<t||l===t&&n===$e.sources.USER?l:r>=0?l+r:Math.max(t,l+r)),new Xn(a,s-a)}var Hk=class extends If{},vo=Hk;var yo=sn($r(),1);function KM(o){return o instanceof Bt||o instanceof Yi}function JM(o){return typeof o.updateContent=="function"}var _l=class extends rp{constructor(t,i,n){let{emitter:r}=n;super(t,i),this.emitter=r,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 t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit($e.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit($e.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,i){this.emitter.emit($e.events.SCROLL_EMBED_UPDATE,t,i)}deleteAt(t,i){let[n,r]=this.line(t),[a]=this.line(t+i);if(super.deleteAt(t,i),a!=null&&n!==a&&r>0){if(n instanceof Yi||a instanceof Yi){this.optimize();return}let s=a.children.head instanceof En?null:a.children.head;n.moveChildren(a,s),n.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,i,n,r){super.formatAt(t,i,n,r),this.optimize()}insertAt(t,i,n){if(t>=this.length())if(n==null||this.scroll.query(i,Me.BLOCK)==null){let r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r),n==null&&i.endsWith(`
2880
+ `});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(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){let n=t;t=document.createElement("div"),t.classList.add(n)}return this.container.insertBefore(t,i),t}blur(){this.selection.setRange(null)}deleteText(t,i,n){return[t,i,,n]=_s(t,i,n),Wo.call(this,()=>this.editor.deleteText(t,i),n,t,-1*i)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;let i=t();return this.allowReadOnlyEdits=!1,i}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e.sources.API;return Wo.call(this,()=>{let r=this.getSelection(!0),a=new kl.default;if(r==null)return a;if(this.scroll.query(t,Me.BLOCK))a=this.editor.formatLine(r.index,r.length,{[t]:i});else{if(r.length===0)return this.selection.format(t,i),a;a=this.editor.formatText(r.index,r.length,{[t]:i})}return this.setSelection(r,$e.sources.SILENT),a},n)}formatLine(t,i,n,r,a){let s;return[t,i,s,a]=_s(t,i,n,r,a),Wo.call(this,()=>this.editor.formatLine(t,i,s),a,t,0)}formatText(t,i,n,r,a){let s;return[t,i,s,a]=_s(t,i,n,r,a),Wo.call(this,()=>this.editor.formatText(t,i,s),a,t,0)}getBounds(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=null;if(typeof t=="number"?n=this.selection.getBounds(t,i):n=this.selection.getBounds(t.index,t.length),!n)return null;let r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,i]=_s(t,i),this.editor.getContents(t,i)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,i):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,i)}getModule(t){return this.theme.modules[t]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(i=i!=null?i:this.getLength()-t),[t,i]=_s(t,i),this.editor.getHTML(t,i)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(i=i!=null?i:this.getLength()-t),[t,i]=_s(t,i),this.editor.getText(t,i)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,i,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:jo.sources.API;return Wo.call(this,()=>this.editor.insertEmbed(t,i,n),r,t)}insertText(t,i,n,r,a){let s;return[t,,s,a]=_s(t,0,n,r,a),Wo.call(this,()=>this.editor.insertText(t,i,s),a,t,i.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(t,i,n){return[t,i,,n]=_s(t,i,n),Wo.call(this,()=>this.editor.removeFormat(t,i),n,t)}scrollRectIntoView(t){VM(this.root,t)}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 t=this.selection.lastRange,i=t&&this.selection.getBounds(t.index,t.length);i&&this.scrollRectIntoView(i)}setContents(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e.sources.API;return Wo.call(this,()=>{t=new kl.default(t);let n=this.getLength(),r=this.editor.deleteText(0,n),a=this.editor.insertContents(0,t),s=this.editor.deleteText(this.getLength()-1,1);return r.compose(a).compose(s)},i)}setSelection(t,i,n){t==null?this.selection.setRange(null,i||jo.sources.API):([t,i,,n]=_s(t,i,n),this.selection.setRange(new Xn(Math.max(0,t),i),n),n!==$e.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e.sources.API,n=new kl.default().insert(t);return this.setContents(n,i)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$e.sources.USER,i=this.scroll.update(t);return this.selection.update(t),i}updateContents(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$e.sources.API;return Wo.call(this,()=>(t=new kl.default(t),this.editor.applyDelta(t)),i,!0)}};ie(jo,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Lv,theme:"default"}),ie(jo,"events",$e.events),ie(jo,"sources",$e.sources),ie(jo,"version","2.0.3"),ie(jo,"imports",{delta:kl.default,parchment:op,"core/module":li,"core/theme":Xf});var he=jo;function GM(o){return typeof o=="string"?document.querySelector(o):o}function Nk(o){return Object.entries(o!=null?o:{}).reduce((t,i)=>{let[n,r]=i;return et(Ce({},t),{[n]:r===!0?{}:r})},{})}function YM(o){return Object.fromEntries(Object.entries(o).filter(t=>t[1]!==void 0))}function pie(o,t){let i=GM(o);if(!i)throw new Error("Invalid Quill container");let r=!t.theme||t.theme===he.DEFAULTS.theme?Xf:he.import(`themes/${t.theme}`);if(!r)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);let m=he.DEFAULTS,{modules:a}=m,s=Yl(m,["modules"]),v=r.DEFAULTS,{modules:l}=v,c=Yl(v,["modules"]),d=Nk(t.modules);d!=null&&d.toolbar&&d.toolbar.constructor!==Object&&(d=et(Ce({},d),{toolbar:{container:d.toolbar}}));let f=fr({},Nk(a),Nk(l),d),h=Ce(Ce(Ce({},s),YM(c)),YM(t)),p=t.registry;return p?t.formats&&Kf.warn('Ignoring "formats" option because "registry" is specified'):p=t.formats?UM(t.formats,h.registry,Kf):h.registry,et(Ce({},h),{registry:p,container:i,theme:r,modules:Object.entries(f).reduce((b,x)=>{let[k,z]=x;if(!z)return b;let E=he.import(`modules/${k}`);return E==null?(Kf.error(`Cannot load ${k} module. Are you sure you registered it?`),b):et(Ce({},b),{[k]:fr({},E.DEFAULTS||{},z)})},{}),bounds:GM(h.bounds)})}function Wo(o,t,i,n){if(!this.isEnabled()&&t===$e.sources.USER&&!this.allowReadOnlyEdits)return new kl.default;let r=i==null?null:this.getSelection(),a=this.editor.delta,s=o();if(r!=null&&(i===!0&&(i=r.index),n==null?r=XM(r,s,t):n!==0&&(r=XM(r,i,n,t)),this.setSelection(r,$e.sources.SILENT)),s.length()>0){let l=[$e.events.TEXT_CHANGE,s,a,t];this.emitter.emit($e.events.EDITOR_CHANGE,...l),t!==$e.sources.SILENT&&this.emitter.emit(...l)}return s}function _s(o,t,i,n,r){let a={};return typeof o.index=="number"&&typeof o.length=="number"?typeof t!="number"?(r=n,n=i,i=t,t=o.length,o=o.index):(t=o.length,o=o.index):typeof t!="number"&&(r=n,n=i,i=t,t=0),typeof i=="object"?(a=i,r=n):typeof i=="string"&&(n!=null?a[i]=n:r=i),r=r||$e.sources.API,[o,t,a,r]}function XM(o,t,i,n){let r=typeof i=="number"?i:0;if(o==null)return null;let a,s;return t&&typeof t.transformPosition=="function"?[a,s]=[o.index,o.index+o.length].map(l=>t.transformPosition(l,n!==$e.sources.USER)):[a,s]=[o.index,o.index+o.length].map(l=>l<t||l===t&&n===$e.sources.USER?l:r>=0?l+r:Math.max(t,l+r)),new Xn(a,s-a)}var Hk=class extends If{},vo=Hk;var yo=sn($r(),1);function KM(o){return o instanceof Bt||o instanceof Yi}function JM(o){return typeof o.updateContent=="function"}var _l=class extends rp{constructor(t,i,n){let{emitter:r}=n;super(t,i),this.emitter=r,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 t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit($e.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit($e.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,i){this.emitter.emit($e.events.SCROLL_EMBED_UPDATE,t,i)}deleteAt(t,i){let[n,r]=this.line(t),[a]=this.line(t+i);if(super.deleteAt(t,i),a!=null&&n!==a&&r>0){if(n instanceof Yi||a instanceof Yi){this.optimize();return}let s=a.children.head instanceof Tn?null:a.children.head;n.moveChildren(a,s),n.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,i,n,r){super.formatAt(t,i,n,r),this.optimize()}insertAt(t,i,n){if(t>=this.length())if(n==null||this.scroll.query(i,Me.BLOCK)==null){let r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r),n==null&&i.endsWith(`
2881
2881
  `)?r.insertAt(0,i.slice(0,-1),n):r.insertAt(0,i,n)}else{let r=this.scroll.create(i,n);this.appendChild(r)}else super.insertAt(t,i,n);this.optimize()}insertBefore(t,i){if(t.statics.scope===Me.INLINE_BLOT){let n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(t),super.insertBefore(n,i)}else super.insertBefore(t,i)}insertContents(t,i){let n=this.deltaToRenderBlocks(i.concat(new yo.default().insert(`
2882
2882
  `))),r=n.pop();if(r==null)return;this.batchStart();let a=n.shift();if(a){let c=a.type==="block"&&(a.delta.length()===0||!this.descendant(Yi,t)[0]&&t<this.length()),d=a.type==="block"?a.delta:new yo.default().insert({[a.key]:a.value});Bk(this,t,d);let f=a.type==="block"?1:0,h=t+d.length()+f;c&&this.insertAt(h-1,`
2883
2883
  `);let p=pr(this.line(t)[0]),m=yo.AttributeMap.diff(p,a.attributes)||{};Object.keys(m).forEach(v=>{this.formatAt(h-1,1,v,m[v])}),t=h}let[s,l]=this.children.find(t);if(n.length&&(s&&(s=s.split(l),l=0),n.forEach(c=>{if(c.type==="block"){let d=this.createBlock(c.attributes,s||void 0);Bk(d,0,c.delta)}else{let d=this.create(c.key,c.value);this.insertBefore(d,s||void 0),Object.keys(c.attributes).forEach(f=>{d.format(f,c.attributes[f])})}})),r.type==="block"&&r.delta.length()){let c=s?s.offset(s.scroll)+l:this.length();Bk(this,c,r.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){let i=this.path(t).pop();if(!i)return[null,-1];let[n,r]=i;return n instanceof Ii?[n,r]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(KM,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,n=(r,a,s)=>{let l=[],c=s;return r.children.forEachAt(a,s,(d,f,h)=>{KM(d)?l.push(d):d instanceof If&&(l=l.concat(n(d,f,c))),c-=h}),l};return n(this,t,i)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,i),t.length>0&&this.emitter.emit($e.events.SCROLL_OPTIMIZE,t,i))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let i=$e.sources.USER;typeof t=="string"&&(i=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(n=>{let{target:r}=n,a=this.find(r,!0);return a&&!JM(a)}),t.length>0&&this.emitter.emit($e.events.SCROLL_BEFORE_UPDATE,i,t),super.update(t.concat([])),t.length>0&&this.emitter.emit($e.events.SCROLL_UPDATE,i,t)}updateEmbedAt(t,i,n){let[r]=this.descendant(a=>a instanceof Yi,t);r&&r.statics.blotName===i&&JM(r)&&r.updateContent(n)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){let i=[],n=new yo.default;return t.forEach(r=>{var s;let a=r==null?void 0:r.insert;if(a)if(typeof a=="string"){let l=a.split(`
2884
2884
  `);l.slice(0,-1).forEach(d=>{var f;n.insert(d,r.attributes),i.push({type:"block",delta:n,attributes:(f=r.attributes)!=null?f:{}}),n=new yo.default});let c=l[l.length-1];c&&n.insert(c,r.attributes)}else{let l=Object.keys(a)[0];if(!l)return;this.query(l,Me.INLINE)?n.push(r):(n.length()&&i.push({type:"block",delta:n,attributes:{}}),n=new yo.default,i.push({type:"blockEmbed",key:l,value:a[l],attributes:(s=r.attributes)!=null?s:{}}))}}),n.length()&&i.push({type:"block",delta:n,attributes:{}}),i}createBlock(t,i){let n,r={};Object.entries(t).forEach(l=>{let[c,d]=l;this.query(c,Me.BLOCK&Me.BLOT)!=null?n=c:r[c]=d});let a=this.create(n||this.statics.defaultChild.blotName,n?t[n]:void 0);this.insertBefore(a,i||void 0);let s=a.length();return Object.entries(r).forEach(l=>{let[c,d]=l;a.formatAt(0,s,c,d)}),a}};ie(_l,"blotName","scroll"),ie(_l,"className","ql-editor"),ie(_l,"tagName","DIV"),ie(_l,"defaultChild",Bt),ie(_l,"allowedChildren",[Bt,Yi,vo]);function Bk(o,t,i){i.reduce((n,r)=>{let a=yo.Op.length(r),s=r.attributes||{};if(r.insert!=null){if(typeof r.insert=="string"){let l=r.insert;o.insertAt(n,l);let[c]=o.descendant(Ii,n),d=pr(c);s=yo.AttributeMap.diff(d,s)||{}}else if(typeof r.insert=="object"){let l=Object.keys(r.insert)[0];if(l==null)return n;if(o.insertAt(n,l,r.insert[l]),o.scroll.query(l,Me.INLINE)!=null){let[d]=o.descendant(Ii,n),f=pr(d);s=yo.AttributeMap.diff(f,s)||{}}}}return Object.keys(s).forEach(l=>{o.formatAt(n,a,l,s[l])}),n+a},t)}var QM=_l;var mr=sn($r(),1);var Wk={scope:Me.BLOCK,whitelist:["right","center","justify"]},ZM=new Un("align","align",Wk),jk=new $i("align","ql-align",Wk),qv=new ur("align","text-align",Wk);var wp=class extends ur{value(t){let i=super.value(t);return i.startsWith("rgb(")?(i=i.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${i.split(",").map(r=>`00${parseInt(r,10).toString(16)}`.slice(-2)).join("")}`):i}},e8=new $i("color","ql-color",{scope:Me.INLINE}),kp=new wp("color","color",{scope:Me.INLINE});var t8=new $i("background","ql-bg",{scope:Me.INLINE}),_p=new wp("background","background-color",{scope:Me.INLINE});var ka=class extends vo{static create(t){let i=super.create(t);return i.setAttribute("spellcheck","false"),i}code(t,i){return this.children.map(n=>n.length()<=1?"":n.domNode.innerText).join(`
2885
2885
  `).slice(t,t+i)}html(t,i){return`<pre>
2886
2886
  ${Gc(this.code(t,i))}
2887
- </pre>`}},Li=class extends Bt{static register(){he.register(ka)}};ie(Li,"TAB"," ");var Jf=class extends Tn{};Jf.blotName="code";Jf.tagName="CODE";Li.blotName="code-block";Li.className="ql-code-block";Li.tagName="DIV";ka.blotName="code-block-container";ka.className="ql-code-block-container";ka.tagName="DIV";ka.allowedChildren=[Li];Li.allowedChildren=[Mi,En,wl];Li.requiredContainer=ka;var Vk={scope:Me.BLOCK,whitelist:["rtl"]},Pv=new Un("direction","dir",Vk),Uk=new $i("direction","ql-direction",Vk),Rv=new ur("direction","direction",Vk);var i8={scope:Me.INLINE,whitelist:["serif","monospace"]},Yk=new $i("font","ql-font",i8),Gk=class extends ur{value(t){return super.value(t).replace(/["']/g,"")}},Ov=new Gk("font","font-family",i8);var Xk=new $i("size","ql-size",{scope:Me.INLINE,whitelist:["small","large","huge"]}),Dv=new ur("size","font-size",{scope:Me.INLINE,whitelist:["10px","18px","32px"]});var Ln=sn($r(),1);var mie=Ir("quill:keyboard"),gie=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",zp=class o extends li{static match(t,i){return["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!i[n]!==t[n]&&i[n]!==null)?!1:i.key===t.key||i.key===t.which}constructor(t,i){super(t,i),this.bindings={},Object.keys(this.options.bindings).forEach(n=>{this.options.bindings[n]&&this.addBinding(this.options.bindings[n])}),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(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=vie(t);if(r==null){mie.warn("Attempted to add invalid keyboard binding",r);return}typeof i=="function"&&(i={handler:i}),typeof n=="function"&&(n={handler:n}),(Array.isArray(r.key)?r.key:[r.key]).forEach(s=>{let l=Ce(Ce(et(Ce({},r),{key:s}),i),n);this.bindings[l.key]=this.bindings[l.key]||[],this.bindings[l.key].push(l)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace"))return;let r=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(k=>o.match(t,k));if(r.length===0)return;let a=he.find(t.target,!0);if(a&&a.scroll!==this.quill.scroll)return;let s=this.quill.getSelection();if(s==null||!this.quill.hasFocus())return;let[l,c]=this.quill.getLine(s.index),[d,f]=this.quill.getLeaf(s.index),[h,p]=s.length===0?[d,f]:this.quill.getLeaf(s.index+s.length),m=d instanceof Ff?d.value().slice(0,f):"",v=h instanceof Ff?h.value().slice(p):"",b={collapsed:s.length===0,empty:s.length===0&&l.length()<=1,format:this.quill.getFormat(s),line:l,offset:c,prefix:m,suffix:v,event:t};r.some(k=>{if(k.collapsed!=null&&k.collapsed!==b.collapsed||k.empty!=null&&k.empty!==b.empty||k.offset!=null&&k.offset!==b.offset)return!1;if(Array.isArray(k.format)){if(k.format.every(z=>b.format[z]==null))return!1}else if(typeof k.format=="object"&&!Object.keys(k.format).every(z=>k.format[z]===!0?b.format[z]!=null:k.format[z]===!1?b.format[z]==null:$c(k.format[z],b.format[z])))return!1;return k.prefix!=null&&!k.prefix.test(b.prefix)||k.suffix!=null&&!k.suffix.test(b.suffix)?!1:k.handler.call(this,s,b,k)!==!0})&&t.preventDefault()})}handleBackspace(t,i){let n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(i.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let r={},[a]=this.quill.getLine(t.index),s=new Ln.default().retain(t.index-n).delete(n);if(i.offset===0){let[l]=this.quill.getLine(t.index-1);if(l&&!(l.statics.blotName==="block"&&l.length()<=1)){let d=a.formats(),f=this.quill.getFormat(t.index-1,1);if(r=Ln.AttributeMap.diff(d,f)||{},Object.keys(r).length>0){let h=new Ln.default().retain(t.index+a.length()-2).retain(1,r);s=s.compose(h)}}}this.quill.updateContents(s,he.sources.USER),this.quill.focus()}handleDelete(t,i){let n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(i.suffix)?2:1;if(t.index>=this.quill.getLength()-n)return;let r={},[a]=this.quill.getLine(t.index),s=new Ln.default().retain(t.index).delete(n);if(i.offset>=a.length()-1){let[l]=this.quill.getLine(t.index+1);if(l){let c=a.formats(),d=this.quill.getFormat(t.index,1);r=Ln.AttributeMap.diff(c,d)||{},Object.keys(r).length>0&&(s=s.retain(l.length()-1).retain(1,r))}}this.quill.updateContents(s,he.sources.USER),this.quill.focus()}handleDeleteRange(t){Cp({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,i){let n=Object.keys(i.format).reduce((a,s)=>(this.quill.scroll.query(s,Me.BLOCK)&&!Array.isArray(i.format[s])&&(a[s]=i.format[s]),a),{}),r=new Ln.default().retain(t.index).delete(t.length).insert(`
2888
- `,n);this.quill.updateContents(r,he.sources.USER),this.quill.setSelection(t.index+1,he.sources.SILENT),this.quill.focus()}},bie={bindings:{bold:Kk("bold"),italic:Kk("italic"),underline:Kk("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(o,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",he.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(o,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",he.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(o,t){t.format.indent!=null?this.quill.format("indent","-1",he.sources.USER):t.format.list!=null&&this.quill.format("list",!1,he.sources.USER)}},"indent code-block":n8(!0),"outdent code-block":n8(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(o){this.quill.deleteText(o.index-1,1,he.sources.USER)}},tab:{key:"Tab",handler(o,t){if(t.format.table)return!0;this.quill.history.cutoff();let i=new Ln.default().retain(o.index).delete(o.length).insert(" ");return this.quill.updateContents(i,he.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(o.index+1,he.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,he.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(o,t){let i={list:!1};t.format.indent&&(i.indent=!1),this.quill.formatLine(o.index,o.length,i,he.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(o){let[t,i]=this.quill.getLine(o.index),n=et(Ce({},t.formats()),{list:"checked"}),r=new Ln.default().retain(o.index).insert(`
2889
- `,n).retain(t.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(r,he.sources.USER),this.quill.setSelection(o.index+1,he.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(o,t){let[i,n]=this.quill.getLine(o.index),r=new Ln.default().retain(o.index).insert(`
2890
- `,t.format).retain(i.length()-n-1).retain(1,{header:null});this.quill.updateContents(r,he.sources.USER),this.quill.setSelection(o.index+1,he.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(o){let t=this.quill.getModule("table");if(t){let[i,n,r,a]=t.getTable(o),s=yie(i,n,r,a);if(s==null)return;let l=i.offset();if(s<0){let c=new Ln.default().retain(l).insert(`
2891
- `);this.quill.updateContents(c,he.sources.USER),this.quill.setSelection(o.index+1,o.length,he.sources.SILENT)}else if(s>0){l+=i.length();let c=new Ln.default().retain(l).insert(`
2892
- `);this.quill.updateContents(c,he.sources.USER),this.quill.setSelection(l,he.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(o,t){let{event:i,line:n}=t,r=n.offset(this.quill.scroll);i.shiftKey?this.quill.setSelection(r-1,he.sources.USER):this.quill.setSelection(r+n.length(),he.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(o,t){if(this.quill.scroll.query("list")==null)return!0;let{length:i}=t.prefix,[n,r]=this.quill.getLine(o.index);if(r>i)return!0;let a;switch(t.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(o.index," ",he.sources.USER),this.quill.history.cutoff();let s=new Ln.default().retain(o.index-r).delete(i+1).retain(n.length()-2-r).retain(1,{list:a});return this.quill.updateContents(s,he.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(o.index-i,he.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(o){let[t,i]=this.quill.getLine(o.index),n=2,r=t;for(;r!=null&&r.length()<=1&&r.formats()["code-block"];)if(r=r.prev,n-=1,n<=0){let a=new Ln.default().retain(o.index+t.length()-i-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,he.sources.USER),this.quill.setSelection(o.index-1,he.sources.SILENT),!1}return!0}},"embed left":$v("ArrowLeft",!1),"embed left shift":$v("ArrowLeft",!0),"embed right":$v("ArrowRight",!1),"embed right shift":$v("ArrowRight",!0),"table down":r8(!1),"table up":r8(!0)}};zp.DEFAULTS=bie;function n8(o){return{key:"Tab",shiftKey:!o,format:{"code-block":!0},handler(t,i){let{event:n}=i,r=this.quill.scroll.query("code-block"),{TAB:a}=r;if(t.length===0&&!n.shiftKey){this.quill.insertText(t.index,a,he.sources.USER),this.quill.setSelection(t.index+a.length,he.sources.SILENT);return}let s=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t),{index:l,length:c}=t;s.forEach((d,f)=>{o?(d.insertAt(0,a),f===0?l+=a.length:c+=a.length):d.domNode.textContent.startsWith(a)&&(d.deleteAt(0,a.length),f===0?l-=a.length:c-=a.length)}),this.quill.update(he.sources.USER),this.quill.setSelection(l,c,he.sources.SILENT)}}}function $v(o,t){return{key:o,shiftKey:t,altKey:null,[o==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(n){let{index:r}=n;o==="ArrowRight"&&(r+=n.length+1);let[a]=this.quill.getLeaf(r);return a instanceof mi?(o==="ArrowLeft"?t?this.quill.setSelection(n.index-1,n.length+1,he.sources.USER):this.quill.setSelection(n.index-1,he.sources.USER):t?this.quill.setSelection(n.index,n.length+1,he.sources.USER):this.quill.setSelection(n.index+n.length+1,he.sources.USER),!1):!0}}}function Kk(o){return{key:o[0],shortKey:!0,handler(t,i){this.quill.format(o,!i.format[o],he.sources.USER)}}}function r8(o){return{key:o?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,i){let n=o?"prev":"next",r=i.line,a=r.parent[n];if(a!=null){if(a.statics.blotName==="table-row"){let s=a.children.head,l=r;for(;l.prev!=null;)l=l.prev,s=s.next;let c=s.offset(this.quill.scroll)+Math.min(i.offset,s.length()-1);this.quill.setSelection(c,0,he.sources.USER)}}else{let s=r.table()[n];s!=null&&(o?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,he.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,he.sources.USER))}return!1}}}function vie(o){if(typeof o=="string"||typeof o=="number")o={key:o};else if(typeof o=="object")o=ya(o);else return null;return o.shortKey&&(o[gie]=o.shortKey,delete o.shortKey),o}function Cp(o){let{quill:t,range:i}=o,n=t.getLines(i),r={};if(n.length>1){let a=n[0].formats(),s=n[n.length-1].formats();r=Ln.AttributeMap.diff(s,a)||{}}t.deleteText(i,he.sources.USER),Object.keys(r).length>0&&t.formatLine(i.index,1,r,he.sources.USER),t.setSelection(i.index,he.sources.SILENT)}function yie(o,t,i,n){return t.prev==null&&t.next==null?i.prev==null&&i.next==null?n===0?-1:1:i.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}var xie=/font-weight:\s*normal/,wie=["P","OL","UL"],o8=o=>o&&wie.includes(o.tagName),kie=o=>{Array.from(o.querySelectorAll("br")).filter(t=>o8(t.previousElementSibling)&&o8(t.nextElementSibling)).forEach(t=>{var i;(i=t.parentNode)==null||i.removeChild(t)})},_ie=o=>{Array.from(o.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var i;return(i=t.getAttribute("style"))==null?void 0:i.match(xie)}).forEach(t=>{var n;let i=o.createDocumentFragment();i.append(...t.childNodes),(n=t.parentNode)==null||n.replaceChild(i,t)})};function Jk(o){o.querySelector('[id^="docs-internal-guid-"]')&&(_ie(o),kie(o))}var zie=/\bmso-list:[^;]*ignore/i,Cie=/\bmso-list:[^;]*\bl(\d+)/i,Sie=/\bmso-list:[^;]*\blevel(\d+)/i,Aie=(o,t)=>{let i=o.getAttribute("style"),n=i==null?void 0:i.match(Cie);if(!n)return null;let r=Number(n[1]),a=i==null?void 0:i.match(Sie),s=a?Number(a[1]):1,l=new RegExp(`@list l${r}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),c=t.match(l),d=c&&c[1]==="bullet"?"bullet":"ordered";return{id:r,indent:s,type:d,element:o}},Eie=o=>{var s,l;let t=Array.from(o.querySelectorAll("[style*=mso-list]")),i=[],n=[];t.forEach(c=>{(c.getAttribute("style")||"").match(zie)?i.push(c):n.push(c)}),i.forEach(c=>{var d;return(d=c.parentNode)==null?void 0:d.removeChild(c)});let r=o.documentElement.innerHTML,a=n.map(c=>Aie(c,r)).filter(c=>c);for(;a.length;){let c=[],d=a.shift();for(;d;)c.push(d),d=a.length&&((s=a[0])==null?void 0:s.element)===d.element.nextElementSibling&&a[0].id===d.id?a.shift():null;let f=document.createElement("ul");c.forEach(m=>{let v=document.createElement("li");v.setAttribute("data-list",m.type),m.indent>1&&v.setAttribute("class",`ql-indent-${m.indent-1}`),v.innerHTML=m.element.innerHTML,f.appendChild(v)});let h=(l=c[0])==null?void 0:l.element,{parentNode:p}=h!=null?h:{};h&&(p==null||p.replaceChild(f,h)),c.slice(1).forEach(m=>{let{element:v}=m;p==null||p.removeChild(v)})}};function Qk(o){o.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Eie(o)}var Tie=[Qk,Jk],Mie=o=>{o.documentElement&&Tie.forEach(t=>{t(o)})},a8=Mie;var Lie=Ir("quill:clipboard"),qie=[[Node.TEXT_NODE,jie],[Node.TEXT_NODE,l8],["br",$ie],[Node.ELEMENT_NODE,l8],[Node.ELEMENT_NODE,Die],[Node.ELEMENT_NODE,Oie],[Node.ELEMENT_NODE,Bie],["li",Nie],["ol, ul",Hie],["pre",Iie],["tr",Wie],["b",Zk("bold")],["i",Zk("italic")],["strike",Zk("strike")],["style",Fie]],Pie=[ZM,Pv].reduce((o,t)=>(o[t.keyName]=t,o),{}),s8=[qv,_p,kp,Rv,Ov,Dv].reduce((o,t)=>(o[t.keyName]=t,o),{}),Sp=class extends li{constructor(t,i){var n;super(t,i),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=[],qie.concat((n=this.options.matchers)!=null?n:[]).forEach(r=>{let[a,s]=r;this.addMatcher(a,s)})}addMatcher(t,i){this.matchers.push([t,i])}convert(t){let{html:i,text:n}=t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r[Li.blotName])return new mr.default().insert(n||"",{[Li.blotName]:r[Li.blotName]});if(!i)return new mr.default().insert(n||"",r);let a=this.convertHTML(i);return Ap(a,`
2887
+ </pre>`}},Li=class extends Bt{static register(){he.register(ka)}};ie(Li,"TAB"," ");var Jf=class extends Mn{};Jf.blotName="code";Jf.tagName="CODE";Li.blotName="code-block";Li.className="ql-code-block";Li.tagName="DIV";ka.blotName="code-block-container";ka.className="ql-code-block-container";ka.tagName="DIV";ka.allowedChildren=[Li];Li.allowedChildren=[Mi,Tn,wl];Li.requiredContainer=ka;var Vk={scope:Me.BLOCK,whitelist:["rtl"]},Pv=new Un("direction","dir",Vk),Uk=new $i("direction","ql-direction",Vk),Rv=new ur("direction","direction",Vk);var i8={scope:Me.INLINE,whitelist:["serif","monospace"]},Yk=new $i("font","ql-font",i8),Gk=class extends ur{value(t){return super.value(t).replace(/["']/g,"")}},Ov=new Gk("font","font-family",i8);var Xk=new $i("size","ql-size",{scope:Me.INLINE,whitelist:["small","large","huge"]}),Dv=new ur("size","font-size",{scope:Me.INLINE,whitelist:["10px","18px","32px"]});var qn=sn($r(),1);var mie=Ir("quill:keyboard"),gie=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",zp=class o extends li{static match(t,i){return["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!i[n]!==t[n]&&i[n]!==null)?!1:i.key===t.key||i.key===t.which}constructor(t,i){super(t,i),this.bindings={},Object.keys(this.options.bindings).forEach(n=>{this.options.bindings[n]&&this.addBinding(this.options.bindings[n])}),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(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=vie(t);if(r==null){mie.warn("Attempted to add invalid keyboard binding",r);return}typeof i=="function"&&(i={handler:i}),typeof n=="function"&&(n={handler:n}),(Array.isArray(r.key)?r.key:[r.key]).forEach(s=>{let l=Ce(Ce(et(Ce({},r),{key:s}),i),n);this.bindings[l.key]=this.bindings[l.key]||[],this.bindings[l.key].push(l)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing||t.keyCode===229&&(t.key==="Enter"||t.key==="Backspace"))return;let r=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(k=>o.match(t,k));if(r.length===0)return;let a=he.find(t.target,!0);if(a&&a.scroll!==this.quill.scroll)return;let s=this.quill.getSelection();if(s==null||!this.quill.hasFocus())return;let[l,c]=this.quill.getLine(s.index),[d,f]=this.quill.getLeaf(s.index),[h,p]=s.length===0?[d,f]:this.quill.getLeaf(s.index+s.length),m=d instanceof Ff?d.value().slice(0,f):"",v=h instanceof Ff?h.value().slice(p):"",b={collapsed:s.length===0,empty:s.length===0&&l.length()<=1,format:this.quill.getFormat(s),line:l,offset:c,prefix:m,suffix:v,event:t};r.some(k=>{if(k.collapsed!=null&&k.collapsed!==b.collapsed||k.empty!=null&&k.empty!==b.empty||k.offset!=null&&k.offset!==b.offset)return!1;if(Array.isArray(k.format)){if(k.format.every(z=>b.format[z]==null))return!1}else if(typeof k.format=="object"&&!Object.keys(k.format).every(z=>k.format[z]===!0?b.format[z]!=null:k.format[z]===!1?b.format[z]==null:$c(k.format[z],b.format[z])))return!1;return k.prefix!=null&&!k.prefix.test(b.prefix)||k.suffix!=null&&!k.suffix.test(b.suffix)?!1:k.handler.call(this,s,b,k)!==!0})&&t.preventDefault()})}handleBackspace(t,i){let n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(i.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let r={},[a]=this.quill.getLine(t.index),s=new qn.default().retain(t.index-n).delete(n);if(i.offset===0){let[l]=this.quill.getLine(t.index-1);if(l&&!(l.statics.blotName==="block"&&l.length()<=1)){let d=a.formats(),f=this.quill.getFormat(t.index-1,1);if(r=qn.AttributeMap.diff(d,f)||{},Object.keys(r).length>0){let h=new qn.default().retain(t.index+a.length()-2).retain(1,r);s=s.compose(h)}}}this.quill.updateContents(s,he.sources.USER),this.quill.focus()}handleDelete(t,i){let n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(i.suffix)?2:1;if(t.index>=this.quill.getLength()-n)return;let r={},[a]=this.quill.getLine(t.index),s=new qn.default().retain(t.index).delete(n);if(i.offset>=a.length()-1){let[l]=this.quill.getLine(t.index+1);if(l){let c=a.formats(),d=this.quill.getFormat(t.index,1);r=qn.AttributeMap.diff(c,d)||{},Object.keys(r).length>0&&(s=s.retain(l.length()-1).retain(1,r))}}this.quill.updateContents(s,he.sources.USER),this.quill.focus()}handleDeleteRange(t){Cp({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,i){let n=Object.keys(i.format).reduce((a,s)=>(this.quill.scroll.query(s,Me.BLOCK)&&!Array.isArray(i.format[s])&&(a[s]=i.format[s]),a),{}),r=new qn.default().retain(t.index).delete(t.length).insert(`
2888
+ `,n);this.quill.updateContents(r,he.sources.USER),this.quill.setSelection(t.index+1,he.sources.SILENT),this.quill.focus()}},bie={bindings:{bold:Kk("bold"),italic:Kk("italic"),underline:Kk("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(o,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",he.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(o,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",he.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(o,t){t.format.indent!=null?this.quill.format("indent","-1",he.sources.USER):t.format.list!=null&&this.quill.format("list",!1,he.sources.USER)}},"indent code-block":n8(!0),"outdent code-block":n8(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(o){this.quill.deleteText(o.index-1,1,he.sources.USER)}},tab:{key:"Tab",handler(o,t){if(t.format.table)return!0;this.quill.history.cutoff();let i=new qn.default().retain(o.index).delete(o.length).insert(" ");return this.quill.updateContents(i,he.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(o.index+1,he.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,he.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(o,t){let i={list:!1};t.format.indent&&(i.indent=!1),this.quill.formatLine(o.index,o.length,i,he.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(o){let[t,i]=this.quill.getLine(o.index),n=et(Ce({},t.formats()),{list:"checked"}),r=new qn.default().retain(o.index).insert(`
2889
+ `,n).retain(t.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(r,he.sources.USER),this.quill.setSelection(o.index+1,he.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(o,t){let[i,n]=this.quill.getLine(o.index),r=new qn.default().retain(o.index).insert(`
2890
+ `,t.format).retain(i.length()-n-1).retain(1,{header:null});this.quill.updateContents(r,he.sources.USER),this.quill.setSelection(o.index+1,he.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(o){let t=this.quill.getModule("table");if(t){let[i,n,r,a]=t.getTable(o),s=yie(i,n,r,a);if(s==null)return;let l=i.offset();if(s<0){let c=new qn.default().retain(l).insert(`
2891
+ `);this.quill.updateContents(c,he.sources.USER),this.quill.setSelection(o.index+1,o.length,he.sources.SILENT)}else if(s>0){l+=i.length();let c=new qn.default().retain(l).insert(`
2892
+ `);this.quill.updateContents(c,he.sources.USER),this.quill.setSelection(l,he.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(o,t){let{event:i,line:n}=t,r=n.offset(this.quill.scroll);i.shiftKey?this.quill.setSelection(r-1,he.sources.USER):this.quill.setSelection(r+n.length(),he.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(o,t){if(this.quill.scroll.query("list")==null)return!0;let{length:i}=t.prefix,[n,r]=this.quill.getLine(o.index);if(r>i)return!0;let a;switch(t.prefix.trim()){case"[]":case"[ ]":a="unchecked";break;case"[x]":a="checked";break;case"-":case"*":a="bullet";break;default:a="ordered"}this.quill.insertText(o.index," ",he.sources.USER),this.quill.history.cutoff();let s=new qn.default().retain(o.index-r).delete(i+1).retain(n.length()-2-r).retain(1,{list:a});return this.quill.updateContents(s,he.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(o.index-i,he.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(o){let[t,i]=this.quill.getLine(o.index),n=2,r=t;for(;r!=null&&r.length()<=1&&r.formats()["code-block"];)if(r=r.prev,n-=1,n<=0){let a=new qn.default().retain(o.index+t.length()-i-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(a,he.sources.USER),this.quill.setSelection(o.index-1,he.sources.SILENT),!1}return!0}},"embed left":$v("ArrowLeft",!1),"embed left shift":$v("ArrowLeft",!0),"embed right":$v("ArrowRight",!1),"embed right shift":$v("ArrowRight",!0),"table down":r8(!1),"table up":r8(!0)}};zp.DEFAULTS=bie;function n8(o){return{key:"Tab",shiftKey:!o,format:{"code-block":!0},handler(t,i){let{event:n}=i,r=this.quill.scroll.query("code-block"),{TAB:a}=r;if(t.length===0&&!n.shiftKey){this.quill.insertText(t.index,a,he.sources.USER),this.quill.setSelection(t.index+a.length,he.sources.SILENT);return}let s=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t),{index:l,length:c}=t;s.forEach((d,f)=>{o?(d.insertAt(0,a),f===0?l+=a.length:c+=a.length):d.domNode.textContent.startsWith(a)&&(d.deleteAt(0,a.length),f===0?l-=a.length:c-=a.length)}),this.quill.update(he.sources.USER),this.quill.setSelection(l,c,he.sources.SILENT)}}}function $v(o,t){return{key:o,shiftKey:t,altKey:null,[o==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(n){let{index:r}=n;o==="ArrowRight"&&(r+=n.length+1);let[a]=this.quill.getLeaf(r);return a instanceof mi?(o==="ArrowLeft"?t?this.quill.setSelection(n.index-1,n.length+1,he.sources.USER):this.quill.setSelection(n.index-1,he.sources.USER):t?this.quill.setSelection(n.index,n.length+1,he.sources.USER):this.quill.setSelection(n.index+n.length+1,he.sources.USER),!1):!0}}}function Kk(o){return{key:o[0],shortKey:!0,handler(t,i){this.quill.format(o,!i.format[o],he.sources.USER)}}}function r8(o){return{key:o?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,i){let n=o?"prev":"next",r=i.line,a=r.parent[n];if(a!=null){if(a.statics.blotName==="table-row"){let s=a.children.head,l=r;for(;l.prev!=null;)l=l.prev,s=s.next;let c=s.offset(this.quill.scroll)+Math.min(i.offset,s.length()-1);this.quill.setSelection(c,0,he.sources.USER)}}else{let s=r.table()[n];s!=null&&(o?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,he.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,he.sources.USER))}return!1}}}function vie(o){if(typeof o=="string"||typeof o=="number")o={key:o};else if(typeof o=="object")o=ya(o);else return null;return o.shortKey&&(o[gie]=o.shortKey,delete o.shortKey),o}function Cp(o){let{quill:t,range:i}=o,n=t.getLines(i),r={};if(n.length>1){let a=n[0].formats(),s=n[n.length-1].formats();r=qn.AttributeMap.diff(s,a)||{}}t.deleteText(i,he.sources.USER),Object.keys(r).length>0&&t.formatLine(i.index,1,r,he.sources.USER),t.setSelection(i.index,he.sources.SILENT)}function yie(o,t,i,n){return t.prev==null&&t.next==null?i.prev==null&&i.next==null?n===0?-1:1:i.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}var xie=/font-weight:\s*normal/,wie=["P","OL","UL"],o8=o=>o&&wie.includes(o.tagName),kie=o=>{Array.from(o.querySelectorAll("br")).filter(t=>o8(t.previousElementSibling)&&o8(t.nextElementSibling)).forEach(t=>{var i;(i=t.parentNode)==null||i.removeChild(t)})},_ie=o=>{Array.from(o.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var i;return(i=t.getAttribute("style"))==null?void 0:i.match(xie)}).forEach(t=>{var n;let i=o.createDocumentFragment();i.append(...t.childNodes),(n=t.parentNode)==null||n.replaceChild(i,t)})};function Jk(o){o.querySelector('[id^="docs-internal-guid-"]')&&(_ie(o),kie(o))}var zie=/\bmso-list:[^;]*ignore/i,Cie=/\bmso-list:[^;]*\bl(\d+)/i,Sie=/\bmso-list:[^;]*\blevel(\d+)/i,Aie=(o,t)=>{let i=o.getAttribute("style"),n=i==null?void 0:i.match(Cie);if(!n)return null;let r=Number(n[1]),a=i==null?void 0:i.match(Sie),s=a?Number(a[1]):1,l=new RegExp(`@list l${r}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),c=t.match(l),d=c&&c[1]==="bullet"?"bullet":"ordered";return{id:r,indent:s,type:d,element:o}},Eie=o=>{var s,l;let t=Array.from(o.querySelectorAll("[style*=mso-list]")),i=[],n=[];t.forEach(c=>{(c.getAttribute("style")||"").match(zie)?i.push(c):n.push(c)}),i.forEach(c=>{var d;return(d=c.parentNode)==null?void 0:d.removeChild(c)});let r=o.documentElement.innerHTML,a=n.map(c=>Aie(c,r)).filter(c=>c);for(;a.length;){let c=[],d=a.shift();for(;d;)c.push(d),d=a.length&&((s=a[0])==null?void 0:s.element)===d.element.nextElementSibling&&a[0].id===d.id?a.shift():null;let f=document.createElement("ul");c.forEach(m=>{let v=document.createElement("li");v.setAttribute("data-list",m.type),m.indent>1&&v.setAttribute("class",`ql-indent-${m.indent-1}`),v.innerHTML=m.element.innerHTML,f.appendChild(v)});let h=(l=c[0])==null?void 0:l.element,{parentNode:p}=h!=null?h:{};h&&(p==null||p.replaceChild(f,h)),c.slice(1).forEach(m=>{let{element:v}=m;p==null||p.removeChild(v)})}};function Qk(o){o.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&Eie(o)}var Tie=[Qk,Jk],Mie=o=>{o.documentElement&&Tie.forEach(t=>{t(o)})},a8=Mie;var Lie=Ir("quill:clipboard"),qie=[[Node.TEXT_NODE,jie],[Node.TEXT_NODE,l8],["br",$ie],[Node.ELEMENT_NODE,l8],[Node.ELEMENT_NODE,Die],[Node.ELEMENT_NODE,Oie],[Node.ELEMENT_NODE,Bie],["li",Nie],["ol, ul",Hie],["pre",Iie],["tr",Wie],["b",Zk("bold")],["i",Zk("italic")],["strike",Zk("strike")],["style",Fie]],Pie=[ZM,Pv].reduce((o,t)=>(o[t.keyName]=t,o),{}),s8=[qv,_p,kp,Rv,Ov,Dv].reduce((o,t)=>(o[t.keyName]=t,o),{}),Sp=class extends li{constructor(t,i){var n;super(t,i),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=[],qie.concat((n=this.options.matchers)!=null?n:[]).forEach(r=>{let[a,s]=r;this.addMatcher(a,s)})}addMatcher(t,i){this.matchers.push([t,i])}convert(t){let{html:i,text:n}=t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r[Li.blotName])return new mr.default().insert(n||"",{[Li.blotName]:r[Li.blotName]});if(!i)return new mr.default().insert(n||"",r);let a=this.convertHTML(i);return Ap(a,`
2893
2893
  `)&&(a.ops[a.ops.length-1].attributes==null||r.table)?a.compose(new mr.default().retain(a.length()-1).delete(1)):a}normalizeHTML(t){a8(t)}convertHTML(t){let i=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(i);let n=i.body,r=new WeakMap,[a,s]=this.prepareMatching(n,r);return Fv(this.quill.scroll,n,a,s,r)}dangerouslyPasteHTML(t,i){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he.sources.API;if(typeof t=="string"){let r=this.convert({html:t,text:""});this.quill.setContents(r,i),this.quill.setSelection(0,he.sources.SILENT)}else{let r=this.convert({html:i,text:""});this.quill.updateContents(new mr.default().retain(t).concat(r),n),this.quill.setSelection(t+r.length(),he.sources.SILENT)}}onCaptureCopy(t){var s,l;let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();let[n]=this.quill.selection.getRange();if(n==null)return;let{html:r,text:a}=this.onCopy(n,i);(s=t.clipboardData)==null||s.setData("text/plain",a),(l=t.clipboardData)==null||l.setData("text/html",r),i&&Cp({range:n,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(i=>i[0]!=="#").join(`
2894
2894
  `)}onCapturePaste(t){var s,l,c,d,f;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();let i=this.quill.getSelection(!0);if(i==null)return;let n=(s=t.clipboardData)==null?void 0:s.getData("text/html"),r=(l=t.clipboardData)==null?void 0:l.getData("text/plain");if(!n&&!r){let h=(c=t.clipboardData)==null?void 0:c.getData("text/uri-list");h&&(r=this.normalizeURIList(h))}let a=Array.from(((d=t.clipboardData)==null?void 0:d.files)||[]);if(!n&&a.length>0){this.quill.uploader.upload(i,a);return}if(n&&a.length>0){let h=new DOMParser().parseFromString(n,"text/html");if(h.body.childElementCount===1&&((f=h.body.firstElementChild)==null?void 0:f.tagName)==="IMG"){this.quill.uploader.upload(i,a);return}}this.onPaste(i,{html:n,text:r})}onCopy(t){let i=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:i}}onPaste(t,i){let{text:n,html:r}=i,a=this.quill.getFormat(t.index),s=this.convert({text:n,html:r},a);Lie.log("onPaste",s,{text:n,html:r});let l=new mr.default().retain(t.index).delete(t.length).concat(s);this.quill.updateContents(l,he.sources.USER),this.quill.setSelection(l.length()-t.length,he.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,i){let n=[],r=[];return this.matchers.forEach(a=>{let[s,l]=a;switch(s){case Node.TEXT_NODE:r.push(l);break;case Node.ELEMENT_NODE:n.push(l);break;default:Array.from(t.querySelectorAll(s)).forEach(c=>{if(i.has(c)){let d=i.get(c);d==null||d.push(l)}else i.set(c,[l])});break}}),[n,r]}};ie(Sp,"DEFAULTS",{matchers:[]});function Yc(o,t,i,n){return n.query(t)?o.reduce((r,a)=>{if(!a.insert)return r;if(a.attributes&&a.attributes[t])return r.push(a);let s=i?{[t]:i}:{};return r.insert(a.insert,Ce(Ce({},s),a.attributes))},new mr.default):o}function Ap(o,t){let i="";for(let n=o.ops.length-1;n>=0&&i.length<t.length;--n){let r=o.ops[n];if(typeof r.insert!="string")break;i=r.insert+i}return i.slice(-1*t.length)===t}function zl(o,t){if(!(o instanceof Element))return!1;let i=t.query(o);return i&&i.prototype instanceof mi?!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(o.tagName.toLowerCase())}function Rie(o,t){return o.previousElementSibling&&o.nextElementSibling&&!zl(o.previousElementSibling,t)&&!zl(o.nextElementSibling,t)}var Iv=new WeakMap;function c8(o){return o==null?!1:(Iv.has(o)||(o.tagName==="PRE"?Iv.set(o,!0):Iv.set(o,c8(o.parentNode))),Iv.get(o))}function Fv(o,t,i,n,r){return t.nodeType===t.TEXT_NODE?n.reduce((a,s)=>s(t,a,o),new mr.default):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((a,s)=>{let l=Fv(o,s,i,n,r);return s.nodeType===t.ELEMENT_NODE&&(l=i.reduce((c,d)=>d(s,c,o),l),l=(r.get(s)||[]).reduce((c,d)=>d(s,c,o),l)),a.concat(l)},new mr.default):new mr.default}function Zk(o){return(t,i,n)=>Yc(i,o,!0,n)}function Oie(o,t,i){let n=Un.keys(o),r=$i.keys(o),a=ur.keys(o),s={};return n.concat(r).concat(a).forEach(l=>{let c=i.query(l,Me.ATTRIBUTE);c!=null&&(s[c.attrName]=c.value(o),s[c.attrName])||(c=Pie[l],c!=null&&(c.attrName===l||c.keyName===l)&&(s[c.attrName]=c.value(o)||void 0),c=s8[l],c!=null&&(c.attrName===l||c.keyName===l)&&(c=s8[l],s[c.attrName]=c.value(o)||void 0))}),Object.entries(s).reduce((l,c)=>{let[d,f]=c;return Yc(l,d,f,i)},t)}function Die(o,t,i){let n=i.query(o);if(n==null)return t;if(n.prototype instanceof mi){let r={},a=n.value(o);if(a!=null)return r[n.blotName]=a,new mr.default().insert(r,n.formats(o,i))}else if(n.prototype instanceof Ic&&!Ap(t,`
2895
2895
  `)&&t.insert(`
@@ -2902,11 +2902,11 @@ ${Gc(this.code(t,i))}
2902
2902
  `);let r=i.query(n);if(r&&r.prototype instanceof Yi)return t.insert(`
2903
2903
  `);n=n.firstChild}}}return t}function Bie(o,t,i){var a;let n={},r=o.style||{};return r.fontStyle==="italic"&&(n.italic=!0),r.textDecoration==="underline"&&(n.underline=!0),r.textDecoration==="line-through"&&(n.strike=!0),((a=r.fontWeight)!=null&&a.startsWith("bold")||parseInt(r.fontWeight,10)>=700)&&(n.bold=!0),t=Object.entries(n).reduce((s,l)=>{let[c,d]=l;return Yc(s,c,d,i)},t),parseFloat(r.textIndent||0)>0?new mr.default().insert(" ").concat(t):t}function Wie(o,t,i){var r,a;let n=((r=o.parentElement)==null?void 0:r.tagName)==="TABLE"?o.parentElement:(a=o.parentElement)==null?void 0:a.parentElement;if(n!=null){let l=Array.from(n.querySelectorAll("tr")).indexOf(o)+1;return Yc(t,"table",l,i)}return t}function jie(o,t,i){var r;let n=o.data;if(((r=o.parentElement)==null?void 0:r.tagName)==="O:P")return t.insert(n.trim());if(!c8(o)){if(n.trim().length===0&&n.includes(`
2904
2904
  `)&&!Rie(o,i))return t;n=n.replace(/[^\S\u00a0]/g," "),n=n.replace(/ {2,}/g," "),(o.previousSibling==null&&o.parentElement!=null&&zl(o.parentElement,i)||o.previousSibling instanceof Element&&zl(o.previousSibling,i))&&(n=n.replace(/^ /,"")),(o.nextSibling==null&&o.parentElement!=null&&zl(o.parentElement,i)||o.nextSibling instanceof Element&&zl(o.nextSibling,i))&&(n=n.replace(/ $/,"")),n=n.replaceAll("\xA0"," ")}return t.insert(n)}var Ep=class extends li{constructor(i,n){super(i,n);ie(this,"lastRecorded",0);ie(this,"ignoreChange",!1);ie(this,"stack",{undo:[],redo:[]});ie(this,"currentRange",null);this.quill.on(he.events.EDITOR_CHANGE,(r,a,s,l)=>{r===he.events.SELECTION_CHANGE?a&&l!==he.sources.SILENT&&(this.currentRange=a):r===he.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||l===he.sources.USER?this.record(a,s):this.transform(a)),this.currentRange=e_(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",r=>{r.inputType==="historyUndo"?(this.undo(),r.preventDefault()):r.inputType==="historyRedo"&&(this.redo(),r.preventDefault())})}change(i,n){if(this.stack[i].length===0)return;let r=this.stack[i].pop();if(!r)return;let a=this.quill.getContents(),s=r.delta.invert(a);this.stack[n].push({delta:s,range:e_(r.range,s)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,he.sources.USER),this.ignoreChange=!1,this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(i,n){if(i.ops.length===0)return;this.stack.redo=[];let r=i.invert(n),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&&(r=r.compose(l.delta),a=l.range)}else this.lastRecorded=s;r.length()!==0&&(this.stack.undo.push({delta:r,range:a}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(i){d8(this.stack.undo,i),d8(this.stack.redo,i)}undo(){this.change("undo","redo")}restoreSelection(i){if(i.range)this.quill.setSelection(i.range,he.sources.USER);else{let n=Uie(this.quill.scroll,i.delta);this.quill.setSelection(n,he.sources.USER)}}};ie(Ep,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function d8(o,t){let i=t;for(let n=o.length-1;n>=0;n-=1){let r=o[n];o[n]={delta:i.transform(r.delta,!0),range:r.range&&e_(r.range,i)},i=r.delta.transform(i),o[n].delta.length()===0&&o.splice(n,1)}}function Vie(o,t){let i=t.ops[t.ops.length-1];return i==null?!1:i.insert!=null?typeof i.insert=="string"&&i.insert.endsWith(`
2905
- `):i.attributes!=null?Object.keys(i.attributes).some(n=>o.query(n,Me.BLOCK)!=null):!1}function Uie(o,t){let i=t.reduce((r,a)=>r+(a.delete||0),0),n=t.length()-i;return Vie(o,t)&&(n-=1),n}function e_(o,t){if(!o)return o;let i=t.transformPosition(o.index),n=t.transformPosition(o.index+o.length);return{index:i,length:n-i}}var f8=sn($r(),1);var Nv=class extends li{constructor(t,i){super(t,i),t.root.addEventListener("drop",n=>{var s;n.preventDefault();let r=null;if(document.caretRangeFromPoint)r=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){let l=document.caretPositionFromPoint(n.clientX,n.clientY);r=document.createRange(),r.setStart(l.offsetNode,l.offset),r.setEnd(l.offsetNode,l.offset)}let a=r&&t.selection.normalizeNative(r);if(a){let l=t.selection.normalizedToRange(a);(s=n.dataTransfer)!=null&&s.files&&this.upload(l,n.dataTransfer.files)}})}upload(t,i){let n=[];Array.from(i).forEach(r=>{var a;r&&((a=this.options.mimetypes)!=null&&a.includes(r.type))&&n.push(r)}),n.length>0&&this.options.handler.call(this,t,n)}};Nv.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(o,t){if(!this.quill.scroll.query("image"))return;let i=t.map(n=>new Promise(r=>{let a=new FileReader;a.onload=()=>{r(a.result)},a.readAsDataURL(n)}));Promise.all(i).then(n=>{let r=n.reduce((a,s)=>a.insert({image:s}),new f8.default().retain(o.index).delete(o.length));this.quill.updateContents(r,$e.sources.USER),this.quill.setSelection(o.index+n.length,$e.sources.SILENT)})}};var h8=Nv;var _a=sn($r(),1);var u8=sn($r(),1);var Gie=["insertText","insertReplacementText"],t_=class extends li{constructor(t,i){super(t,i),t.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||t.on(he.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){Cp({range:t,quill:this.quill})}replaceText(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(i){let n=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new u8.default().retain(t.index).insert(i,n),he.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+i.length,0,he.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!Gie.includes(t.inputType))return;let i=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!i||i.collapsed===!0)return;let n=Yie(t);if(n==null)return;let r=this.quill.selection.normalizeNative(i),a=r?this.quill.selection.normalizedToRange(r):null;a&&this.replaceText(a,n)&&t.preventDefault()}handleCompositionStart(){let t=this.quill.getSelection();t&&this.replaceText(t)}};function Yie(o){var t;return typeof o.data=="string"?o.data:(t=o.dataTransfer)!=null&&t.types.includes("text/plain")?o.dataTransfer.getData("text/plain"):null}var p8=t_;var Xie=/Mac/i.test(navigator.platform),Kie=100,Jie=o=>!!(o.key==="ArrowLeft"||o.key==="ArrowRight"||o.key==="ArrowUp"||o.key==="ArrowDown"||o.key==="Home"||Xie&&o.key==="a"&&o.ctrlKey===!0),i_=class extends li{constructor(i,n){super(i,n);ie(this,"isListening",!1);ie(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(i,n){let{line:r,event:a}=n;if(!(r instanceof hr)||!r.uiNode)return!0;let s=getComputedStyle(r.domNode).direction==="rtl";return s&&a.key!=="ArrowRight"||!s&&a.key!=="ArrowLeft"?!0:(this.quill.setSelection(i.index-1,i.length+(a.shiftKey?1:0),he.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",i=>{!i.defaultPrevented&&Jie(i)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Kie,this.isListening)return;this.isListening=!0;let i=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",i,{once:!0})}handleSelectionChange(){let i=document.getSelection();if(!i)return;let n=i.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;let r=this.quill.scroll.find(n.startContainer);if(!(r instanceof hr)||!r.uiNode)return;let a=document.createRange();a.setStartAfter(r.uiNode),a.setEndAfter(r.uiNode),i.removeAllRanges(),i.addRange(a)}},m8=i_;he.register({"blots/block":Bt,"blots/block/embed":Yi,"blots/break":En,"blots/container":vo,"blots/cursor":wl,"blots/embed":Yf,"blots/inline":Tn,"blots/scroll":QM,"blots/text":Mi,"modules/clipboard":Sp,"modules/history":Ep,"modules/keyboard":zp,"modules/uploader":h8,"modules/input":p8,"modules/uiNode":m8});var Hv=he;var n_=class extends $i{add(t,i){let n=0;if(i==="+1"||i==="-1"){let r=this.value(t)||0;n=i==="+1"?r+1:r-1}else typeof i=="number"&&(n=i);return n===0?(this.remove(t),!0):super.add(t,n.toString())}canAdd(t,i){return super.canAdd(t,i)||super.canAdd(t,parseInt(i,10))}value(t){return parseInt(super.value(t),10)||void 0}},Qie=new n_("indent","ql-indent",{scope:Me.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),g8=Qie;var Tp=class extends Bt{};ie(Tp,"blotName","blockquote"),ie(Tp,"tagName","blockquote");var b8=Tp;var Mp=class extends Bt{static formats(t){return this.tagName.indexOf(t.tagName)+1}};ie(Mp,"blotName","header"),ie(Mp,"tagName",["H1","H2","H3","H4","H5","H6"]);var v8=Mp;var Xc=class extends vo{};Xc.blotName="list-container";Xc.tagName="OL";var Cl=class extends Bt{static create(t){let i=super.create();return i.setAttribute("data-list",t),i}static formats(t){return t.getAttribute("data-list")||void 0}static register(){he.register(Xc)}constructor(t,i){super(t,i);let n=i.ownerDocument.createElement("span"),r=a=>{if(!t.isEnabled())return;let s=this.statics.formats(i,t);s==="checked"?(this.format("list","unchecked"),a.preventDefault()):s==="unchecked"&&(this.format("list","checked"),a.preventDefault())};n.addEventListener("mousedown",r),n.addEventListener("touchstart",r),this.attachUI(n)}format(t,i){t===this.statics.blotName&&i?this.domNode.setAttribute("data-list",i):super.format(t,i)}};Cl.blotName="list";Cl.tagName="LI";Xc.allowedChildren=[Cl];Cl.requiredContainer=Xc;var Lp=class extends Tn{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}};ie(Lp,"blotName","bold"),ie(Lp,"tagName",["STRONG","B"]);var Qf=Lp;var qp=class extends Qf{};ie(qp,"blotName","italic"),ie(qp,"tagName",["EM","I"]);var y8=qp;var Fr=class extends Tn{static create(t){let i=super.create(t);return i.setAttribute("href",this.sanitize(t)),i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target","_blank"),i}static formats(t){return t.getAttribute("href")}static sanitize(t){return r_(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,i){t!==this.statics.blotName||!i?super.format(t,i):this.domNode.setAttribute("href",this.constructor.sanitize(i))}};ie(Fr,"blotName","link"),ie(Fr,"tagName","A"),ie(Fr,"SANITIZED_URL","about:blank"),ie(Fr,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function r_(o,t){let i=document.createElement("a");i.href=o;let n=i.href.slice(0,i.href.indexOf(":"));return t.indexOf(n)>-1}var Pp=class extends Tn{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}};ie(Pp,"blotName","script"),ie(Pp,"tagName",["SUB","SUP"]);var x8=Pp;var Rp=class extends Qf{};ie(Rp,"blotName","strike"),ie(Rp,"tagName",["S","STRIKE"]);var w8=Rp;var Op=class extends Tn{};ie(Op,"blotName","underline"),ie(Op,"tagName","U");var k8=Op;var Zf=class extends Yf{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");let i=super.create(t);return typeof t=="string"&&(window.katex.render(t,i,{throwOnError:!1,errorColor:"#f00"}),i.setAttribute("data-value",t)),i}static value(t){return t.getAttribute("data-value")}html(){let{formula:t}=this.value();return`<span>${t}</span>`}};ie(Zf,"blotName","formula"),ie(Zf,"className","ql-formula"),ie(Zf,"tagName","SPAN");var _8=Zf;var z8=["alt","height","width"],Dp=class extends mi{static create(t){let i=super.create(t);return typeof t=="string"&&i.setAttribute("src",this.sanitize(t)),i}static formats(t){return z8.reduce((i,n)=>(t.hasAttribute(n)&&(i[n]=t.getAttribute(n)),i),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return r_(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,i){z8.indexOf(t)>-1?i?this.domNode.setAttribute(t,i):this.domNode.removeAttribute(t):super.format(t,i)}};ie(Dp,"blotName","image"),ie(Dp,"tagName","IMG");var C8=Dp;var S8=["height","width"],eh=class extends Yi{static create(t){let i=super.create(t);return i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen","true"),i.setAttribute("src",this.sanitize(t)),i}static formats(t){return S8.reduce((i,n)=>(t.hasAttribute(n)&&(i[n]=t.getAttribute(n)),i),{})}static sanitize(t){return Fr.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,i){S8.indexOf(t)>-1?i?this.domNode.setAttribute(t,i):this.domNode.removeAttribute(t):super.format(t,i)}html(){let{video:t}=this.value();return`<a href="${t}">${t}</a>`}};ie(eh,"blotName","video"),ie(eh,"className","ql-video"),ie(eh,"tagName","IFRAME");var A8=eh;var Bv=sn($r(),1);var $p=new $i("code-token","hljs",{scope:Me.INLINE}),zs=class o extends Tn{static formats(t,i){for(;t!=null&&t!==i.domNode;){if(t.classList&&t.classList.contains(Li.className))return super.formats(t,i);t=t.parentNode}}constructor(t,i,n){super(t,i,n),$p.add(this.domNode,n)}format(t,i){t!==o.blotName?super.format(t,i):i?$p.add(this.domNode,i):($p.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),$p.value(this.domNode)||this.unwrap()}};zs.blotName="code-token";zs.className="ql-token";var gr=class extends Li{static create(t){let i=super.create(t);return typeof t=="string"&&i.setAttribute("data-language",t),i}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,i){t===this.statics.blotName&&i?this.domNode.setAttribute("data-language",i):super.format(t,i)}replaceWith(t,i){return this.formatAt(0,this.length(),zs.blotName,!1),super.replaceWith(t,i)}},Kc=class extends ka{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,i){t===gr.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(t,i)}))}formatAt(t,i,n,r){n===gr.blotName&&(this.forceNext=!0),super.formatAt(t,i,n,r)}highlight(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;let r=`${Array.from(this.domNode.childNodes).filter(s=>s!==this.uiNode).map(s=>s.textContent).join(`
2905
+ `):i.attributes!=null?Object.keys(i.attributes).some(n=>o.query(n,Me.BLOCK)!=null):!1}function Uie(o,t){let i=t.reduce((r,a)=>r+(a.delete||0),0),n=t.length()-i;return Vie(o,t)&&(n-=1),n}function e_(o,t){if(!o)return o;let i=t.transformPosition(o.index),n=t.transformPosition(o.index+o.length);return{index:i,length:n-i}}var f8=sn($r(),1);var Nv=class extends li{constructor(t,i){super(t,i),t.root.addEventListener("drop",n=>{var s;n.preventDefault();let r=null;if(document.caretRangeFromPoint)r=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){let l=document.caretPositionFromPoint(n.clientX,n.clientY);r=document.createRange(),r.setStart(l.offsetNode,l.offset),r.setEnd(l.offsetNode,l.offset)}let a=r&&t.selection.normalizeNative(r);if(a){let l=t.selection.normalizedToRange(a);(s=n.dataTransfer)!=null&&s.files&&this.upload(l,n.dataTransfer.files)}})}upload(t,i){let n=[];Array.from(i).forEach(r=>{var a;r&&((a=this.options.mimetypes)!=null&&a.includes(r.type))&&n.push(r)}),n.length>0&&this.options.handler.call(this,t,n)}};Nv.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(o,t){if(!this.quill.scroll.query("image"))return;let i=t.map(n=>new Promise(r=>{let a=new FileReader;a.onload=()=>{r(a.result)},a.readAsDataURL(n)}));Promise.all(i).then(n=>{let r=n.reduce((a,s)=>a.insert({image:s}),new f8.default().retain(o.index).delete(o.length));this.quill.updateContents(r,$e.sources.USER),this.quill.setSelection(o.index+n.length,$e.sources.SILENT)})}};var h8=Nv;var _a=sn($r(),1);var u8=sn($r(),1);var Gie=["insertText","insertReplacementText"],t_=class extends li{constructor(t,i){super(t,i),t.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||t.on(he.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){Cp({range:t,quill:this.quill})}replaceText(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(i){let n=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new u8.default().retain(t.index).insert(i,n),he.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+i.length,0,he.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!Gie.includes(t.inputType))return;let i=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!i||i.collapsed===!0)return;let n=Yie(t);if(n==null)return;let r=this.quill.selection.normalizeNative(i),a=r?this.quill.selection.normalizedToRange(r):null;a&&this.replaceText(a,n)&&t.preventDefault()}handleCompositionStart(){let t=this.quill.getSelection();t&&this.replaceText(t)}};function Yie(o){var t;return typeof o.data=="string"?o.data:(t=o.dataTransfer)!=null&&t.types.includes("text/plain")?o.dataTransfer.getData("text/plain"):null}var p8=t_;var Xie=/Mac/i.test(navigator.platform),Kie=100,Jie=o=>!!(o.key==="ArrowLeft"||o.key==="ArrowRight"||o.key==="ArrowUp"||o.key==="ArrowDown"||o.key==="Home"||Xie&&o.key==="a"&&o.ctrlKey===!0),i_=class extends li{constructor(i,n){super(i,n);ie(this,"isListening",!1);ie(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(i,n){let{line:r,event:a}=n;if(!(r instanceof hr)||!r.uiNode)return!0;let s=getComputedStyle(r.domNode).direction==="rtl";return s&&a.key!=="ArrowRight"||!s&&a.key!=="ArrowLeft"?!0:(this.quill.setSelection(i.index-1,i.length+(a.shiftKey?1:0),he.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",i=>{!i.defaultPrevented&&Jie(i)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Kie,this.isListening)return;this.isListening=!0;let i=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",i,{once:!0})}handleSelectionChange(){let i=document.getSelection();if(!i)return;let n=i.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;let r=this.quill.scroll.find(n.startContainer);if(!(r instanceof hr)||!r.uiNode)return;let a=document.createRange();a.setStartAfter(r.uiNode),a.setEndAfter(r.uiNode),i.removeAllRanges(),i.addRange(a)}},m8=i_;he.register({"blots/block":Bt,"blots/block/embed":Yi,"blots/break":Tn,"blots/container":vo,"blots/cursor":wl,"blots/embed":Yf,"blots/inline":Mn,"blots/scroll":QM,"blots/text":Mi,"modules/clipboard":Sp,"modules/history":Ep,"modules/keyboard":zp,"modules/uploader":h8,"modules/input":p8,"modules/uiNode":m8});var Hv=he;var n_=class extends $i{add(t,i){let n=0;if(i==="+1"||i==="-1"){let r=this.value(t)||0;n=i==="+1"?r+1:r-1}else typeof i=="number"&&(n=i);return n===0?(this.remove(t),!0):super.add(t,n.toString())}canAdd(t,i){return super.canAdd(t,i)||super.canAdd(t,parseInt(i,10))}value(t){return parseInt(super.value(t),10)||void 0}},Qie=new n_("indent","ql-indent",{scope:Me.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),g8=Qie;var Tp=class extends Bt{};ie(Tp,"blotName","blockquote"),ie(Tp,"tagName","blockquote");var b8=Tp;var Mp=class extends Bt{static formats(t){return this.tagName.indexOf(t.tagName)+1}};ie(Mp,"blotName","header"),ie(Mp,"tagName",["H1","H2","H3","H4","H5","H6"]);var v8=Mp;var Xc=class extends vo{};Xc.blotName="list-container";Xc.tagName="OL";var Cl=class extends Bt{static create(t){let i=super.create();return i.setAttribute("data-list",t),i}static formats(t){return t.getAttribute("data-list")||void 0}static register(){he.register(Xc)}constructor(t,i){super(t,i);let n=i.ownerDocument.createElement("span"),r=a=>{if(!t.isEnabled())return;let s=this.statics.formats(i,t);s==="checked"?(this.format("list","unchecked"),a.preventDefault()):s==="unchecked"&&(this.format("list","checked"),a.preventDefault())};n.addEventListener("mousedown",r),n.addEventListener("touchstart",r),this.attachUI(n)}format(t,i){t===this.statics.blotName&&i?this.domNode.setAttribute("data-list",i):super.format(t,i)}};Cl.blotName="list";Cl.tagName="LI";Xc.allowedChildren=[Cl];Cl.requiredContainer=Xc;var Lp=class extends Mn{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}};ie(Lp,"blotName","bold"),ie(Lp,"tagName",["STRONG","B"]);var Qf=Lp;var qp=class extends Qf{};ie(qp,"blotName","italic"),ie(qp,"tagName",["EM","I"]);var y8=qp;var Fr=class extends Mn{static create(t){let i=super.create(t);return i.setAttribute("href",this.sanitize(t)),i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target","_blank"),i}static formats(t){return t.getAttribute("href")}static sanitize(t){return r_(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,i){t!==this.statics.blotName||!i?super.format(t,i):this.domNode.setAttribute("href",this.constructor.sanitize(i))}};ie(Fr,"blotName","link"),ie(Fr,"tagName","A"),ie(Fr,"SANITIZED_URL","about:blank"),ie(Fr,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function r_(o,t){let i=document.createElement("a");i.href=o;let n=i.href.slice(0,i.href.indexOf(":"));return t.indexOf(n)>-1}var Pp=class extends Mn{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}};ie(Pp,"blotName","script"),ie(Pp,"tagName",["SUB","SUP"]);var x8=Pp;var Rp=class extends Qf{};ie(Rp,"blotName","strike"),ie(Rp,"tagName",["S","STRIKE"]);var w8=Rp;var Op=class extends Mn{};ie(Op,"blotName","underline"),ie(Op,"tagName","U");var k8=Op;var Zf=class extends Yf{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");let i=super.create(t);return typeof t=="string"&&(window.katex.render(t,i,{throwOnError:!1,errorColor:"#f00"}),i.setAttribute("data-value",t)),i}static value(t){return t.getAttribute("data-value")}html(){let{formula:t}=this.value();return`<span>${t}</span>`}};ie(Zf,"blotName","formula"),ie(Zf,"className","ql-formula"),ie(Zf,"tagName","SPAN");var _8=Zf;var z8=["alt","height","width"],Dp=class extends mi{static create(t){let i=super.create(t);return typeof t=="string"&&i.setAttribute("src",this.sanitize(t)),i}static formats(t){return z8.reduce((i,n)=>(t.hasAttribute(n)&&(i[n]=t.getAttribute(n)),i),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return r_(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,i){z8.indexOf(t)>-1?i?this.domNode.setAttribute(t,i):this.domNode.removeAttribute(t):super.format(t,i)}};ie(Dp,"blotName","image"),ie(Dp,"tagName","IMG");var C8=Dp;var S8=["height","width"],eh=class extends Yi{static create(t){let i=super.create(t);return i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen","true"),i.setAttribute("src",this.sanitize(t)),i}static formats(t){return S8.reduce((i,n)=>(t.hasAttribute(n)&&(i[n]=t.getAttribute(n)),i),{})}static sanitize(t){return Fr.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,i){S8.indexOf(t)>-1?i?this.domNode.setAttribute(t,i):this.domNode.removeAttribute(t):super.format(t,i)}html(){let{video:t}=this.value();return`<a href="${t}">${t}</a>`}};ie(eh,"blotName","video"),ie(eh,"className","ql-video"),ie(eh,"tagName","IFRAME");var A8=eh;var Bv=sn($r(),1);var $p=new $i("code-token","hljs",{scope:Me.INLINE}),zs=class o extends Mn{static formats(t,i){for(;t!=null&&t!==i.domNode;){if(t.classList&&t.classList.contains(Li.className))return super.formats(t,i);t=t.parentNode}}constructor(t,i,n){super(t,i,n),$p.add(this.domNode,n)}format(t,i){t!==o.blotName?super.format(t,i):i?$p.add(this.domNode,i):($p.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),$p.value(this.domNode)||this.unwrap()}};zs.blotName="code-token";zs.className="ql-token";var gr=class extends Li{static create(t){let i=super.create(t);return typeof t=="string"&&i.setAttribute("data-language",t),i}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,i){t===this.statics.blotName&&i?this.domNode.setAttribute("data-language",i):super.format(t,i)}replaceWith(t,i){return this.formatAt(0,this.length(),zs.blotName,!1),super.replaceWith(t,i)}},Kc=class extends ka{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,i){t===gr.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(t,i)}))}formatAt(t,i,n,r){n===gr.blotName&&(this.forceNext=!0),super.formatAt(t,i,n,r)}highlight(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;let r=`${Array.from(this.domNode.childNodes).filter(s=>s!==this.uiNode).map(s=>s.textContent).join(`
2906
2906
  `)}
2907
2907
  `,a=gr.formats(this.children.head.domNode);if(i||this.forceNext||this.cachedText!==r){if(r.trim().length>0||this.cachedText==null){let s=this.children.reduce((c,d)=>c.concat(zk(d,!1)),new Bv.default),l=t(r,a);s.diff(l).reduce((c,d)=>{let{retain:f,attributes:h}=d;return f?(h&&Object.keys(h).forEach(p=>{[gr.blotName,zs.blotName].includes(p)&&this.formatAt(c,f,p,h[p])}),c+f):c},0)}this.cachedText=r,this.forceNext=!1}}html(t,i){let[n]=this.children.find(t);return`<pre data-language="${n?gr.formats(n.domNode):"plain"}">
2908
2908
  ${Gc(this.code(t,i))}
2909
- </pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){let i=gr.formats(this.children.head.domNode);i!==this.uiNode.value&&(this.uiNode.value=i)}}};Kc.allowedChildren=[gr];gr.requiredContainer=Kc;gr.allowedChildren=[zs,wl,Mi,En];var Zie=(o,t,i)=>{if(typeof o.versionString=="string"){let n=o.versionString.split(".")[0];if(parseInt(n,10)>=11)return o.highlight(i,{language:t}).value}return o.highlight(t,i).value},Ip=class extends li{static register(){he.register(zs,!0),he.register(gr,!0),he.register(Kc,!0)}constructor(t,i){if(super(t,i),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((n,r)=>{let{key:a}=r;return n[a]=!0,n},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(he.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof Kc))return;let i=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(n=>{let{key:r,label:a}=n,s=i.ownerDocument.createElement("option");s.textContent=a,s.setAttribute("value",r),i.appendChild(s)}),i.addEventListener("change",()=>{t.format(gr.blotName,i.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(i),t.children.head&&(i.value=gr.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(he.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(he.sources.USER);let n=this.quill.getSelection();(t==null?this.quill.scroll.descendants(Kc):[t]).forEach(a=>{a.highlight(this.highlightBlot,i)}),this.quill.update(he.sources.SILENT),n!=null&&this.quill.setSelection(n,he.sources.SILENT)}highlightBlot(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(i=this.languages[i]?i:"plain",i==="plain")return Gc(t).split(`
2909
+ </pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){let i=gr.formats(this.children.head.domNode);i!==this.uiNode.value&&(this.uiNode.value=i)}}};Kc.allowedChildren=[gr];gr.requiredContainer=Kc;gr.allowedChildren=[zs,wl,Mi,Tn];var Zie=(o,t,i)=>{if(typeof o.versionString=="string"){let n=o.versionString.split(".")[0];if(parseInt(n,10)>=11)return o.highlight(i,{language:t}).value}return o.highlight(t,i).value},Ip=class extends li{static register(){he.register(zs,!0),he.register(gr,!0),he.register(Kc,!0)}constructor(t,i){if(super(t,i),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((n,r)=>{let{key:a}=r;return n[a]=!0,n},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(he.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof Kc))return;let i=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(n=>{let{key:r,label:a}=n,s=i.ownerDocument.createElement("option");s.textContent=a,s.setAttribute("value",r),i.appendChild(s)}),i.addEventListener("change",()=>{t.format(gr.blotName,i.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(i),t.children.head&&(i.value=gr.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(he.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(he.sources.USER);let n=this.quill.getSelection();(t==null?this.quill.scroll.descendants(Kc):[t]).forEach(a=>{a.highlight(this.highlightBlot,i)}),this.quill.update(he.sources.SILENT),n!=null&&this.quill.setSelection(n,he.sources.SILENT)}highlightBlot(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(i=this.languages[i]?i:"plain",i==="plain")return Gc(t).split(`
2910
2910
  `).reduce((r,a,s)=>(s!==0&&r.insert(`
2911
2911
  `,{[Li.blotName]:i}),r.insert(a)),new Bv.default);let n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(Li.className),n.innerHTML=Zie(this.options.hljs,i,t),Fv(this.quill.scroll,n,[(r,a)=>{let s=$p.value(r);return s?a.compose(new Bv.default().retain(a.length(),{[zs.blotName]:s})):a}],[(r,a)=>r.data.split(`
2912
2912
  `).reduce((s,l,c)=>(c!==0&&s.insert(`
@@ -2914,7 +2914,7 @@ ${Gc(this.code(t,i))}
2914
2914
  `).join("");return a.insert(s,{table:Wv()})},new E8.default().retain(n.index));this.quill.updateContents(r,he.sources.USER),this.quill.setSelection(n.index,he.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(he.events.SCROLL_OPTIMIZE,t=>{t.some(i=>["TD","TR","TBODY","TABLE"].includes(i.target.tagName)?(this.quill.once(he.events.TEXT_CHANGE,(n,r,a)=>{a===he.sources.USER&&this.balanceTables()}),!0):!1)})}},T8=o_;var q8=sn($r(),1);var M8=Ir("quill:toolbar"),Sl=class extends li{constructor(t,i){var n,r;if(super(t,i),Array.isArray(this.options.container)){let a=document.createElement("div");a.setAttribute("role","toolbar"),ene(a,this.options.container),(r=(n=t.container)==null?void 0:n.parentNode)==null||r.insertBefore(a,t.container),this.container=a}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){M8.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(a=>{var l;let s=(l=this.options.handlers)==null?void 0:l[a];s&&this.addHandler(a,s)}),Array.from(this.container.querySelectorAll("button, select")).forEach(a=>{this.attach(a)}),this.quill.on(he.events.EDITOR_CHANGE,()=>{let[a]=this.quill.selection.getRange();this.update(a)})}addHandler(t,i){this.handlers[t]=i}attach(t){let i=Array.from(t.classList).find(r=>r.indexOf("ql-")===0);if(!i)return;if(i=i.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[i]==null&&this.quill.scroll.query(i)==null){M8.warn("ignoring attaching to nonexistent format",i,t);return}let n=t.tagName==="SELECT"?"change":"click";t.addEventListener(n,r=>{let a;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;let l=t.options[t.selectedIndex];l.hasAttribute("selected")?a=!1:a=l.value||!1}else t.classList.contains("ql-active")?a=!1:a=t.value||!t.hasAttribute("value"),r.preventDefault();this.quill.focus();let[s]=this.quill.selection.getRange();if(this.handlers[i]!=null)this.handlers[i].call(this,a);else if(this.quill.scroll.query(i).prototype instanceof mi){if(a=prompt(`Enter ${i}`),!a)return;this.quill.updateContents(new q8.default().retain(s.index).delete(s.length).insert({[i]:a}),he.sources.USER)}else this.quill.format(i,a,he.sources.USER);this.update(s)}),this.controls.push([i,t])}update(t){let i=t==null?{}:this.quill.getFormat(t);this.controls.forEach(n=>{let[r,a]=n;if(a.tagName==="SELECT"){let s=null;if(t==null)s=null;else if(i[r]==null)s=a.querySelector("option[selected]");else if(!Array.isArray(i[r])){let l=i[r];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(t==null)a.classList.remove("ql-active"),a.setAttribute("aria-pressed","false");else if(a.hasAttribute("value")){let s=i[r],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=i[r]!=null;a.classList.toggle("ql-active",s),a.setAttribute("aria-pressed",s.toString())}})}};Sl.DEFAULTS={};function L8(o,t,i){let n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${t}`),n.setAttribute("aria-pressed","false"),i!=null?(n.value=i,n.setAttribute("aria-label",`${t}: ${i}`)):n.setAttribute("aria-label",t),o.appendChild(n)}function ene(o,t){Array.isArray(t[0])||(t=[t]),t.forEach(i=>{let n=document.createElement("span");n.classList.add("ql-formats"),i.forEach(r=>{if(typeof r=="string")L8(n,r);else{let a=Object.keys(r)[0],s=r[a];Array.isArray(s)?tne(n,a,s):L8(n,a,s)}}),o.appendChild(n)})}function tne(o,t,i){let n=document.createElement("select");n.classList.add(`ql-${t}`),i.forEach(r=>{let a=document.createElement("option");r!==!1?a.setAttribute("value",String(r)):a.setAttribute("selected","selected"),n.appendChild(a)}),o.appendChild(n)}Sl.DEFAULTS={container:null,handlers:{clean(){let o=this.quill.getSelection();if(o!=null)if(o.length===0){let t=this.quill.getFormat();Object.keys(t).forEach(i=>{this.quill.scroll.query(i,Me.INLINE)!=null&&this.quill.format(i,!1,he.sources.USER)})}else this.quill.removeFormat(o.index,o.length,he.sources.USER)},direction(o){let{align:t}=this.quill.getFormat();o==="rtl"&&t==null?this.quill.format("align","right",he.sources.USER):!o&&t==="right"&&this.quill.format("align",!1,he.sources.USER),this.quill.format("direction",o,he.sources.USER)},indent(o){let t=this.quill.getSelection(),i=this.quill.getFormat(t),n=parseInt(i.indent||0,10);if(o==="+1"||o==="-1"){let r=o==="+1"?1:-1;i.direction==="rtl"&&(r*=-1),this.quill.format("indent",n+r,he.sources.USER)}},link(o){o===!0&&(o=prompt("Enter link URL:")),this.quill.format("link",o,he.sources.USER)},list(o){let t=this.quill.getSelection(),i=this.quill.getFormat(t);o==="check"?i.list==="checked"||i.list==="unchecked"?this.quill.format("list",!1,he.sources.USER):this.quill.format("list","unchecked",he.sources.USER):this.quill.format("list",o,he.sources.USER)}}};var ine='<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>',nne='<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>',rne='<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>',one='<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>',ane='<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>',sne='<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>',lne='<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>',cne='<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>',P8='<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>',dne='<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>',fne='<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>',hne='<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>',une='<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>',pne='<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>',mne='<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>',gne='<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>',bne='<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>',vne='<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>',yne='<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>',xne='<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>',wne='<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>',kne='<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>',_ne='<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>',zne='<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>',Cne='<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>',Sne='<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>',Ane='<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>',Ene='<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>',Tne='<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>',Mne='<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>',Lne='<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>',qne='<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>',Pne='<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>',Al={align:{"":ine,center:nne,right:rne,justify:one},background:ane,blockquote:sne,bold:lne,clean:cne,code:P8,"code-block":P8,color:dne,direction:{"":fne,rtl:hne},formula:une,header:{1:pne,2:mne,3:gne,4:bne,5:vne,6:yne},italic:xne,image:wne,indent:{"+1":kne,"-1":_ne},link:zne,list:{bullet:Cne,check:Sne,ordered:Ane},script:{sub:Ene,super:Tne},strike:Mne,table:Lne,underline:qne,video:Pne};var Rne='<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>',R8=0;function O8(o,t){o.setAttribute(t,`${o.getAttribute(t)!=="true"}`)}var a_=class{constructor(t){this.select=t,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",i=>{switch(i.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),i.preventDefault();break;default:}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),O8(this.label,"aria-expanded"),O8(this.options,"aria-hidden")}buildItem(t){let i=document.createElement("span");i.tabIndex="0",i.setAttribute("role","button"),i.classList.add("ql-picker-item");let n=t.getAttribute("value");return n&&i.setAttribute("data-value",n),t.textContent&&i.setAttribute("data-label",t.textContent),i.addEventListener("click",()=>{this.selectItem(i,!0)}),i.addEventListener("keydown",r=>{switch(r.key){case"Enter":this.selectItem(i,!0),r.preventDefault();break;case"Escape":this.escape(),r.preventDefault();break;default:}}),i}buildLabel(){let t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=Rne,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){let t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${R8}`,R8+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(i=>{let n=this.buildItem(i);t.appendChild(n),i.selected===!0&&this.selectItem(n)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.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(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=this.container.querySelector(".ql-selected");t!==n&&(n!=null&&n.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),i&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){let n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);let i=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",i)}},El=a_;var s_=class extends El{constructor(t,i){super(t),this.label.innerHTML=i,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(t){let i=super.buildItem(t);return i.style.backgroundColor=t.getAttribute("value")||"",i}selectItem(t,i){super.selectItem(t,i);let n=this.label.querySelector(".ql-color-label"),r=t&&t.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=r:n.style.fill=r)}},jv=s_;var l_=class extends El{constructor(t,i){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=i[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,i){super.selectItem(t,i);let n=t||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}},Vv=l_;var One=o=>{let{overflowY:t}=getComputedStyle(o,null);return t!=="visible"&&t!=="clip"},c_=class{constructor(t,i){this.quill=t,this.boundsContainer=i||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,One(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(t){let i=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${i}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");let r=this.boundsContainer.getBoundingClientRect(),a=this.root.getBoundingClientRect(),s=0;if(a.right>r.right&&(s=r.right-a.right,this.root.style.left=`${i+s}px`),a.left<r.left&&(s=r.left-a.left,this.root.style.left=`${i+s}px`),a.bottom>r.bottom){let l=a.bottom-a.top,c=t.bottom-t.top+l;this.root.style.top=`${n-c}px`,this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}},Uv=c_;var Dne=[!1,"center","right","justify"],$ne=["#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"],Ine=[!1,"serif","monospace"],Fne=["1","2","3",!1],Nne=["small",!1,"large","huge"],Ss=class extends Xf{constructor(t,i){super(t,i);let n=r=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(r.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(a=>{a.container.contains(r.target)||a.close()})};t.emitter.listenDOM("click",document.body,n)}addModule(t){let i=super.addModule(t);return t==="toolbar"&&this.extendToolbar(i),i}buildButtons(t,i){Array.from(t).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(a=>{if(a.startsWith("ql-")&&(a=a.slice(3),i[a]!=null))if(a==="direction")n.innerHTML=i[a][""]+i[a].rtl;else if(typeof i[a]=="string")n.innerHTML=i[a];else{let s=n.value||"";s!=null&&i[a][s]&&(n.innerHTML=i[a][s])}})})}buildPickers(t,i){this.pickers=Array.from(t).map(r=>{if(r.classList.contains("ql-align")&&(r.querySelector("option")==null&&Np(r,Dne),typeof i.align=="object"))return new Vv(r,i.align);if(r.classList.contains("ql-background")||r.classList.contains("ql-color")){let a=r.classList.contains("ql-background")?"background":"color";return r.querySelector("option")==null&&Np(r,$ne,a==="background"?"#ffffff":"#000000"),new jv(r,i[a])}return r.querySelector("option")==null&&(r.classList.contains("ql-font")?Np(r,Ine):r.classList.contains("ql-header")?Np(r,Fne):r.classList.contains("ql-size")&&Np(r,Nne)),new El(r)});let n=()=>{this.pickers.forEach(r=>{r.update()})};this.quill.on($e.events.EDITOR_CHANGE,n)}};Ss.DEFAULTS=fr({},Xf.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let o=this.container.querySelector("input.ql-image[type=file]");o==null&&(o=document.createElement("input"),o.setAttribute("type","file"),o.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),o.classList.add("ql-image"),o.addEventListener("change",()=>{let t=this.quill.getSelection(!0);this.quill.uploader.upload(t,o.files),o.value=""}),this.container.appendChild(o)),o.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});var th=class extends Uv{constructor(t,i){super(t,i),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",i=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;i!=null?this.textbox.value=i:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");let n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{let{scrollTop:i}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,$e.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,$e.sources.USER)),this.quill.root.scrollTop=i;break}case"video":t=Hne(t);case"formula":{if(!t)break;let i=this.quill.getSelection(!0);if(i!=null){let n=i.index+i.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,$e.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",$e.sources.USER),this.quill.setSelection(n+2,$e.sources.USER)}break}default:}this.textbox.value="",this.hide()}};function Hne(o){let t=o.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||o.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=o.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:o}function Np(o,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(n=>{let r=document.createElement("option");n===i?r.setAttribute("selected","selected"):r.setAttribute("value",String(n)),o.appendChild(r)})}var Bne=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],Gv=class extends th{constructor(t,i){super(t,i),this.quill.on($e.events.EDITOR_CHANGE,(n,r,a,s)=>{if(n===$e.events.SELECTION_CHANGE)if(r!=null&&r.length>0&&s===$e.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(r.index,r.length);if(l.length===1){let c=this.quill.getBounds(r);c!=null&&this.position(c)}else{let c=l[l.length-1],d=this.quill.getIndex(c),f=Math.min(c.length()-1,r.index+r.length-d),h=this.quill.getBounds(new Xn(d,f));h!=null&&this.position(h)}}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($e.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;let t=this.quill.getSelection();if(t!=null){let i=this.quill.getBounds(t);i!=null&&this.position(i)}},1)})}cancel(){this.show()}position(t){let i=super.position(t),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",i!==0&&(n.style.marginLeft=`${-1*i-n.offsetWidth/2}px`),i}};ie(Gv,"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 Hp=class extends Ss{constructor(t,i){i.modules.toolbar!=null&&i.modules.toolbar.container==null&&(i.modules.toolbar.container=Bne),super(t,i),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new Gv(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),Al),this.buildPickers(t.container.querySelectorAll("select"),Al))}};Hp.DEFAULTS=fr({},Ss.DEFAULTS,{modules:{toolbar:{handlers:{link(o){o?this.quill.theme.tooltip.edit():this.quill.format("link",!1,he.sources.USER)}}}}});var Wne=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],Yv=class extends th{constructor(){super(...arguments);ie(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",i=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),i.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",i=>{if(this.linkRange!=null){let n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,$e.sources.USER),delete this.linkRange}i.preventDefault(),this.hide()}),this.quill.on($e.events.SELECTION_CHANGE,(i,n,r)=>{if(i!=null){if(i.length===0&&r===$e.sources.USER){let[a,s]=this.quill.scroll.descendant(Fr,i.index);if(a!=null){this.linkRange=new Xn(i.index-s,a.length());let l=Fr.formats(a.domNode);this.preview.textContent=l,this.preview.setAttribute("href",l),this.show();let c=this.quill.getBounds(this.linkRange);c!=null&&this.position(c);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}};ie(Yv,"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 Xv=class extends Ss{constructor(t,i){i.modules.toolbar!=null&&i.modules.toolbar.container==null&&(i.modules.toolbar.container=Wne),super(t,i),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),Al),this.buildPickers(t.container.querySelectorAll("select"),Al),this.tooltip=new Yv(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(i,n)=>{t.handlers.link.call(t,!n.format.link)}))}};Xv.DEFAULTS=fr({},Ss.DEFAULTS,{modules:{toolbar:{handlers:{link(o){if(o){let t=this.quill.getSelection();if(t==null||t.length===0)return;let i=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(i)&&i.indexOf("mailto:")!==0&&(i=`mailto:${i}`);let{tooltip:n}=this.quill.theme;n.edit("link",i)}else this.quill.format("link",!1,he.sources.USER)}}}}});var D8=Xv;Hv.register({"attributors/attribute/direction":Pv,"attributors/class/align":jk,"attributors/class/background":t8,"attributors/class/color":e8,"attributors/class/direction":Uk,"attributors/class/font":Yk,"attributors/class/size":Xk,"attributors/style/align":qv,"attributors/style/background":_p,"attributors/style/color":kp,"attributors/style/direction":Rv,"attributors/style/font":Ov,"attributors/style/size":Dv},!0);Hv.register({"formats/align":jk,"formats/direction":Uk,"formats/indent":g8,"formats/background":_p,"formats/color":kp,"formats/font":Yk,"formats/size":Xk,"formats/blockquote":b8,"formats/code-block":Li,"formats/header":v8,"formats/list":Cl,"formats/bold":Qf,"formats/code":Jf,"formats/italic":y8,"formats/link":Fr,"formats/script":x8,"formats/strike":w8,"formats/underline":k8,"formats/formula":_8,"formats/image":C8,"formats/video":A8,"modules/syntax":Ip,"modules/table":T8,"modules/toolbar":Sl,"themes/bubble":Hp,"themes/snow":D8,"ui/icons":Al,"ui/picker":El,"ui/icon-picker":Vv,"ui/color-picker":jv,"ui/tooltip":Uv},!0);var Ge=Hv;var Hr=class extends J{render(){return T`
2915
2915
  <div style="display: none;"></div>`}};y([_()],Hr.prototype,"uri",2),y([_()],Hr.prototype,"label",2),y([_()],Hr.prototype,"content",2),y([_()],Hr.prototype,"key",2),y([_()],Hr.prototype,"icon",2),y([_({type:Number})],Hr.prototype,"order",2);Hr.define("zn-editor-quick-action");var d_=Hr;Hr.define("zn-editor-quick-action");var f_=class{constructor(t,i){this._startIndex=-1;this._keydownHandler=t=>this.onKeydown(t);this._docClickHandler=t=>this.onDocumentClick(t);this._featureConfig={};this._quill=t,this._toolbarModule=t.getModule("toolbar"),this._featureConfig=i.config||{},this.initComponent(),this.attachEvents()}initComponent(){this._component=this.createComponent(),this._quill.container.ownerDocument.body.appendChild(this._component)}attachEvents(){this._quill.on(Ge.events.TEXT_CHANGE,()=>this.updateFromEditor()),this._quill.on(Ge.events.EDITOR_CHANGE,()=>this.updateFromEditor()),this._quill.root.addEventListener("keydown",this._keydownHandler),this._component.addEventListener("zn-format-select",t=>this.onToolbarSelect(t)),this._quill.on("editor-change",()=>this.positionComponent()),this._quill.focus()}createComponent(){let t=T`
2916
2916
  <zn-context-menu></zn-context-menu>`;return pi(t)}onDocumentClick(t){let i=t.composedPath?t.composedPath()[0]:t.target;i&&!this._component.contains(i)&&!this._quill.root.contains(i)&&this.hide()}updateFromEditor(){let t=this.getToolbarQuery();if(!t){this.hide();return}let{start:i,formatQuery:n}=t;this._startIndex=i;try{let r=n.toLowerCase();this._component.results=this._getOptions().filter(a=>{var s;return!r||a.label.toLowerCase().includes(r)||((s=a==null?void 0:a.format)==null?void 0:s.toLowerCase().includes(r))})}catch(r){this._component.results=[]}this._component.query=n,this.show(),this.positionComponent()}positionComponent(){if(!this._component||!this._component.open)return;let t=this._quill.getSelection();if(!t)return;let i=this._quill.getBounds(t.index);if(!i)return;let n=this._quill.container.getBoundingClientRect(),r=Math.max(0,n.left+i.left),a=n.top+i.bottom+4;this._component.setPosition(r,a)}getToolbarQuery(){try{let t=this._quill.getSelection();if(!t)return null;let i=t.index,n=50,r=this._quill.getText(Math.max(0,i-n),Math.min(n,i)),a=i-Math.max(0,i-n),s=r.slice(0,a),l=s.lastIndexOf("/");if(l===-1)return null;let c=l>0?s[l-1]:" ";if(c&&/[^\s\n]/.test(c))return null;let d=s.substring(l+1);return/[\s\n]/.test(d)?null:{start:i-d.length-1,formatQuery:d}}catch(t){return null}}onKeydown(t){var i,n,r,a,s,l,c,d,f,h,p,m,v;if((i=this._component)!=null&&i.open){if(t.key==="Escape"){t.preventDefault(),t.stopPropagation(),this.hide();return}if(t.key==="ArrowDown"){t.preventDefault(),t.stopPropagation();let b=((a=(r=(n=this._component).getActiveIndex)==null?void 0:r.call(n))!=null?a:-1)+1;(l=(s=this._component).setActiveIndex)==null||l.call(s,b);return}if(t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation();let b=((f=(d=(c=this._component).getActiveIndex)==null?void 0:d.call(c))!=null?f:0)-1;(p=(h=this._component).setActiveIndex)==null||p.call(h,b);return}if(t.key==="Enter"){let b=(v=(m=this._component).getActiveIndex)==null?void 0:v.call(m),x=this._component.results||[],k=typeof b=="number"&&b>=0&&b<x.length?x[b]:void 0;if((k==null?void 0:k.format)==="toolbar"&&(k!=null&&k.key)){t.preventDefault(),t.stopPropagation(),this._clickToolbarItem(k.key);return}k!=null&&k.format&&(t.preventDefault(),t.stopPropagation(),this._applySelectedFormat(k.format,k.value))}}}onToolbarSelect(t){var a,s,l;let i=(a=t.detail)==null?void 0:a.key;if(i){this._clickToolbarItem(i);return}let n=((s=t.detail)==null?void 0:s.format)||"",r=(l=t.detail)==null?void 0:l.value;n&&this._applySelectedFormat(n,r)}_clickToolbarItem(t){var i,n;this.deleteLastIndex(),(n=(i=this._toolbarModule).trigger)==null||n.call(i,t),this.hide()}_applySelectedFormat(t,i){if(this.deleteLastIndex(),t==="insert"&&typeof i=="string"){let n=this._quill.getSelection();if(n){let r=n.index-1;this._quill.deleteText(r,1,Ge.sources.USER),this._quill.getText(r-1,1)!==" "&&r>0&&(this._quill.insertText(r," ",Ge.sources.USER),r+=1);let s=this._quill.clipboard.convert({html:i});this._quill.updateContents(new _a.default().retain(r).concat(s),Ge.sources.USER),setTimeout(()=>this._quill.setSelection(r+s.length()+1,0,Ge.sources.SILENT),0)}this._quill.focus(),this.hide();return}this._toolbarModule.callFormat(t,i),this._quill.focus(),this.hide()}deleteLastIndex(){let t=this._quill.getSelection();if(t&&this._startIndex>=0){let i=this._startIndex,n=t.index-i;n>=0&&(this._quill.deleteText(i,n,Ge.sources.USER),this._quill.setSelection(i,0,Ge.sources.SILENT))}}_getOptions(){let t=[],i=0,n=this._quill.container.getRootNode();if(n!=null&&n.host){let r=n.querySelector('slot[name="context-items"]');(r?r.assignedElements({flatten:!0}):[]).forEach(s=>{if(!(s instanceof d_))return;let{label:l,content:c,uri:d,icon:f,key:h}=s,p;typeof s.order=="number"?p=s.order:p=i++,l&&f&&(h?t.push({icon:f,label:l,format:"toolbar",key:h,order:p}):d?t.push({icon:f,label:l,format:"dialog",value:d,order:p}):c&&t.push({icon:f,label:l,format:"insert",value:c,order:p}))})}return t.push({icon:"format_bold",label:"Bold",format:"bold",order:i++},{icon:"format_italic",label:"Italic",format:"italic",order:i++},{icon:"format_underlined",label:"Underline",format:"underline",order:i++},{icon:"strikethrough_s",label:"Strikethrough",format:"strike",order:i++},{icon:"format_quote",label:"Blockquote",format:"blockquote",order:i++}),this._featureConfig.codeEnabled!==!1&&t.push({icon:"code",label:"Inline Code",format:"code",order:i++}),this._featureConfig.codeBlocksEnabled!==!1&&t.push({icon:"code_blocks",label:"Code Block",format:"code-block",order:i++}),t.push({icon:"format_h1",label:"Heading 1",format:"header",value:"1",order:i++},{icon:"format_h2",label:"Heading 2",format:"header",value:"2",order:i++},{icon:"match_case",label:"Normal Text",format:"header",value:"",order:i++},{icon:"format_list_bulleted",label:"Bulleted List",format:"list",value:"bullet",order:i++},{icon:"format_list_numbered",label:"Numbered List",format:"list",value:"ordered",order:i++},{icon:"checklist",label:"Checklist",format:"list",value:"checked",order:i++}),this._featureConfig.linksEnabled!==!1&&t.push({icon:"link",label:"Link",format:"link",value:!0,order:i++}),this._featureConfig.dividersEnabled!==!1&&t.push({icon:"horizontal_rule",label:"Divider",format:"divider",order:i++}),this._featureConfig.attachmentsEnabled!==!1&&t.push({icon:"attachment",label:"Attachment",format:"attachment",order:i++}),this._featureConfig.imagesEnabled!==!1&&t.push({icon:"image",label:"Image",format:"image",order:i++}),this._featureConfig.videosEnabled!==!1&&t.push({icon:"video_camera_back",label:"Video",format:"video",order:i++}),this._featureConfig.datesEnabled!==!1&&t.push({icon:"calendar_today",label:"Date",format:"date",order:i++}),t.push({icon:"format_clear",label:"Clear Formatting",format:"clean",order:i++}),t.sort((r,a)=>{var s,l;return((s=r.order)!=null?s:0)-((l=a.order)!=null?l:0)}),t}show(){this._component.open||(this._component.show(),this._quill.container.ownerDocument.addEventListener("click",this._docClickHandler))}hide(){this._component.hide(),this._startIndex=-1,this._quill.container.ownerDocument.removeEventListener("click",this._docClickHandler)}isOpen(){var t;return(t=this._component)==null?void 0:t.open}},$8=f_;var I8=sn(u_(),1);var p_=class{constructor(t){this._quill=t,this._initPicker()}_initPicker(){this.getToolbarDateContainer().then(t=>{t&&(t.innerHTML="",new I8.default(t,{inline:!0,locale:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:ii aa",firstDay:0},onSelect:({formattedDate:i})=>this._onDateSelect(i)}))})}async getToolbarDateContainer(){var t,i,n,r;try{let a=(i=(t=this._quill.container)==null?void 0:t.getRootNode)==null?void 0:i.call(t);if(!a)return null;let s=(n=a.getElementById)==null?void 0:n.call(a,"toolbar");await(s==null?void 0:s.updateComplete);let l=s==null?void 0:s.shadowRoot,c=(r=l==null?void 0:l.querySelector)==null?void 0:r.call(l,".date-picker");return c!=null?c:null}catch(a){return null}}_onDateSelect(t){try{if(!t||!this._quill)return;let i=this._quill.getSelection(!0);if(i){let n=Array.isArray(t)?t.join(", "):t;this._quill.insertText(i.index,n,Ge.sources.USER),this._quill.setSelection(i.index+n.length,0,Ge.sources.USER)}else{let n=Math.max(0,this._quill.getLength()-1),r=Array.isArray(t)?t.join(", "):t;this._quill.insertText(n,r,Ge.sources.USER),this._quill.setSelection(n+r.length,0,Ge.sources.USER)}}catch(i){}}},F8=p_;var m_=class{constructor(t,i){this._quill=t,this._editorId=i.editorId,this._document=this._quill.container.ownerDocument,this._initDialog()}_initDialog(){let t=this._document.querySelector("zn-editor-dialog");t?this._component=t:(this._component=this.createComponent(),this._document.body.appendChild(this._component)),this._component.editorId=this._editorId}createComponent(){let t=T`
2917
- <zn-editor-dialog></zn-editor-dialog>`;return pi(t)}isOpen(){return this._component.dialogEl.open}close(){this._component.dialogEl.close()}},N8=m_;var jne={onDrop:()=>{},draggableContentTypePattern:"^image\\/",draggables:[]},Wp=class{constructor(t,i){this._container=null;this._draggables=[];this.nullReturner=()=>null;this.handleDrop=t=>{var s;let i=this._options.onDrop,n=t.target&&t.target["ql-data"]?t.target:this._container,r=(s=t.dataTransfer)==null?void 0:s.files,a=Une(r,this._draggables);a.length!==0&&(t.stopPropagation(),t.preventDefault(),Promise.all(a.map(l=>Promise.resolve((i||this.nullReturner)(l.file,{tag:l.tag,attr:l.attr})).then(c=>({on_drop_ret_val:c,fileInfo:l})))).then(l=>Promise.all(l.map(({on_drop_ret_val:c,fileInfo:d})=>{if(c===!1)return;let{tag:f,attr:h}=d,p;return c===null||(p=c),Promise.resolve(p).then(m=>({data:m,tag:f,attr:h}))}))).then(l=>l.forEach(c=>{if(c){let{data:d,tag:f,attr:h}=c,p=document.createElement(f);p.setAttribute(h,d),n.appendChild(p)}})))};this._quill=t,this._options=Object.assign({},jne,i),this._container=this._quill.addContainer("ql-editor"),this._draggables=this._options.draggables.map(Vne),this._quill.root.addEventListener("drop",this.handleDrop)}},Vne=o=>{if(o.content_type_pattern&&o.tag&&o.attr){let t=Object.assign({},o);return t.content_type_regex=new RegExp(o.content_type_pattern),delete t.content_type_pattern,t}e.draggable=o},Une=(o,t)=>{let i=[];if(o)for(let n=0;n<o.length;n++){let r=o.item(n),a=t.find(s=>s.content_type_regex.test(r.type));a&&i.push({file:r,tag:a.tag,attr:a.attr})}return i};function cL(o){return o&&o.__esModule?o.default:o}function ko(o,t,i){return t in o?Object.defineProperty(o,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[t]=i,o}var l0,Ke,dL,Gne,jp,fL,H8,Yne,e0={},hL=[],Xne=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Tl(o,t){for(var i in t)o[i]=t[i];return o}function uL(o){var t=o.parentNode;t&&t.removeChild(o)}function x_(o,t,i){var n,r,a,s={};for(a in t)a=="key"?n=t[a]:a=="ref"?r=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?l0.call(arguments,2):i),typeof o=="function"&&o.defaultProps!=null)for(a in o.defaultProps)s[a]===void 0&&(s[a]=o.defaultProps[a]);return Qv(o,s,n,r,null)}function Qv(o,t,i,n,r){var a={type:o,props:t,key:i,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r==null?++dL:r};return r==null&&Ke.vnode!=null&&Ke.vnode(a),a}function As(){return{current:null}}function ih(o){return o.children}function za(o,t){this.props=o,this.context=t}function nh(o,t){if(t==null)return o.__?nh(o.__,o.__.__k.indexOf(o)+1):null;for(var i;t<o.__k.length;t++)if((i=o.__k[t])!=null&&i.__e!=null)return i.__e;return typeof o.type=="function"?nh(o):null}function pL(o){var t,i;if((o=o.__)!=null&&o.__c!=null){for(o.__e=o.__c.base=null,t=0;t<o.__k.length;t++)if((i=o.__k[t])!=null&&i.__e!=null){o.__e=o.__c.base=i.__e;break}return pL(o)}}function B8(o){(!o.__d&&(o.__d=!0)&&jp.push(o)&&!t0.__r++||H8!==Ke.debounceRendering)&&((H8=Ke.debounceRendering)||fL)(t0)}function t0(){for(var o;t0.__r=jp.length;)o=jp.sort(function(t,i){return t.__v.__b-i.__v.__b}),jp=[],o.some(function(t){var i,n,r,a,s,l;t.__d&&(s=(a=(i=t).__v).__e,(l=i.__P)&&(n=[],(r=Tl({},a)).__v=a.__v+1,M_(l,a,r,i.__n,l.ownerSVGElement!==void 0,a.__h!=null?[s]:null,n,s==null?nh(a):s,a.__h),vL(n,a),a.__e!=s&&pL(a)))})}function mL(o,t,i,n,r,a,s,l,c,d){var f,h,p,m,v,b,x,k=n&&n.__k||hL,z=k.length;for(i.__k=[],f=0;f<t.length;f++)if((m=i.__k[f]=(m=t[f])==null||typeof m=="boolean"?null:typeof m=="string"||typeof m=="number"||typeof m=="bigint"?Qv(null,m,null,null,m):Array.isArray(m)?Qv(ih,{children:m},null,null,null):m.__b>0?Qv(m.type,m.props,m.key,null,m.__v):m)!=null){if(m.__=i,m.__b=i.__b+1,(p=k[f])===null||p&&m.key==p.key&&m.type===p.type)k[f]=void 0;else for(h=0;h<z;h++){if((p=k[h])&&m.key==p.key&&m.type===p.type){k[h]=void 0;break}p=null}M_(o,m,p=p||e0,r,a,s,l,c,d),v=m.__e,(h=m.ref)&&p.ref!=h&&(x||(x=[]),p.ref&&x.push(p.ref,null,m),x.push(h,m.__c||v,m)),v!=null?(b==null&&(b=v),typeof m.type=="function"&&m.__k===p.__k?m.__d=c=gL(m,c,o):c=bL(o,m,p,k,v,c),typeof i.type=="function"&&(i.__d=c)):c&&p.__e==c&&c.parentNode!=o&&(c=nh(p))}for(i.__e=b,f=z;f--;)k[f]!=null&&(typeof i.type=="function"&&k[f].__e!=null&&k[f].__e==i.__d&&(i.__d=nh(n,f+1)),xL(k[f],k[f]));if(x)for(f=0;f<x.length;f++)yL(x[f],x[++f],x[++f])}function gL(o,t,i){for(var n,r=o.__k,a=0;r&&a<r.length;a++)(n=r[a])&&(n.__=o,t=typeof n.type=="function"?gL(n,t,i):bL(i,n,n,r,n.__e,t));return t}function i0(o,t){return t=t||[],o==null||typeof o=="boolean"||(Array.isArray(o)?o.some(function(i){i0(i,t)}):t.push(o)),t}function bL(o,t,i,n,r,a){var s,l,c;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(i==null||r!=a||r.parentNode==null)e:if(a==null||a.parentNode!==o)o.appendChild(r),s=null;else{for(l=a,c=0;(l=l.nextSibling)&&c<n.length;c+=2)if(l==r)break e;o.insertBefore(r,a),s=a}return s!==void 0?s:r.nextSibling}function Kne(o,t,i,n,r){var a;for(a in i)a==="children"||a==="key"||a in t||n0(o,a,null,i[a],n);for(a in t)r&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||i[a]===t[a]||n0(o,a,t[a],i[a],n)}function W8(o,t,i){t[0]==="-"?o.setProperty(t,i):o[t]=i==null?"":typeof i!="number"||Xne.test(t)?i:i+"px"}function n0(o,t,i,n,r){var a;e:if(t==="style")if(typeof i=="string")o.style.cssText=i;else{if(typeof n=="string"&&(o.style.cssText=n=""),n)for(t in n)i&&t in i||W8(o.style,t,"");if(i)for(t in i)n&&i[t]===n[t]||W8(o.style,t,i[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in o?t.toLowerCase().slice(2):t.slice(2),o.l||(o.l={}),o.l[t+a]=i,i?n||o.addEventListener(t,a?V8:j8,a):o.removeEventListener(t,a?V8:j8,a);else if(t!=="dangerouslySetInnerHTML"){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in o)try{o[t]=i==null?"":i;break e}catch(s){}typeof i=="function"||(i!=null&&(i!==!1||t[0]==="a"&&t[1]==="r")?o.setAttribute(t,i):o.removeAttribute(t))}}function j8(o){this.l[o.type+!1](Ke.event?Ke.event(o):o)}function V8(o){this.l[o.type+!0](Ke.event?Ke.event(o):o)}function M_(o,t,i,n,r,a,s,l,c){var d,f,h,p,m,v,b,x,k,z,E,A=t.type;if(t.constructor!==void 0)return null;i.__h!=null&&(c=i.__h,l=t.__e=i.__e,t.__h=null,a=[l]),(d=Ke.__b)&&d(t);try{e:if(typeof A=="function"){if(x=t.props,k=(d=A.contextType)&&n[d.__c],z=d?k?k.props.value:d.__:n,i.__c?b=(f=t.__c=i.__c).__=f.__E:("prototype"in A&&A.prototype.render?t.__c=f=new A(x,z):(t.__c=f=new za(x,z),f.constructor=A,f.render=Qne),k&&k.sub(f),f.props=x,f.state||(f.state={}),f.context=z,f.__n=n,h=f.__d=!0,f.__h=[]),f.__s==null&&(f.__s=f.state),A.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Tl({},f.__s)),Tl(f.__s,A.getDerivedStateFromProps(x,f.__s))),p=f.props,m=f.state,h)A.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(A.getDerivedStateFromProps==null&&x!==p&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(x,z),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(x,f.__s,z)===!1||t.__v===i.__v){f.props=x,f.state=f.__s,t.__v!==i.__v&&(f.__d=!1),f.__v=t,t.__e=i.__e,t.__k=i.__k,t.__k.forEach(function(C){C&&(C.__=t)}),f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(x,f.__s,z),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(p,m,v)})}f.context=z,f.props=x,f.state=f.__s,(d=Ke.__r)&&d(t),f.__d=!1,f.__v=t,f.__P=o,d=f.render(f.props,f.state,f.context),f.state=f.__s,f.getChildContext!=null&&(n=Tl(Tl({},n),f.getChildContext())),h||f.getSnapshotBeforeUpdate==null||(v=f.getSnapshotBeforeUpdate(p,m)),E=d!=null&&d.type===ih&&d.key==null?d.props.children:d,mL(o,Array.isArray(E)?E:[E],t,i,n,r,a,s,l,c),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),b&&(f.__E=f.__=null),f.__e=!1}else a==null&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=Jne(i.__e,t,i,n,r,a,s,c);(d=Ke.diffed)&&d(t)}catch(C){t.__v=null,(c||a!=null)&&(t.__e=l,t.__h=!!c,a[a.indexOf(l)]=null),Ke.__e(C,t,i)}}function vL(o,t){Ke.__c&&Ke.__c(t,o),o.some(function(i){try{o=i.__h,i.__h=[],o.some(function(n){n.call(i)})}catch(n){Ke.__e(n,i.__v)}})}function Jne(o,t,i,n,r,a,s,l){var c,d,f,h=i.props,p=t.props,m=t.type,v=0;if(m==="svg"&&(r=!0),a!=null){for(;v<a.length;v++)if((c=a[v])&&"setAttribute"in c==!!m&&(m?c.localName===m:c.nodeType===3)){o=c,a[v]=null;break}}if(o==null){if(m===null)return document.createTextNode(p);o=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),a=null,l=!1}if(m===null)h===p||l&&o.data===p||(o.data=p);else{if(a=a&&l0.call(o.childNodes),d=(h=i.props||e0).dangerouslySetInnerHTML,f=p.dangerouslySetInnerHTML,!l){if(a!=null)for(h={},v=0;v<o.attributes.length;v++)h[o.attributes[v].name]=o.attributes[v].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===o.innerHTML)||(o.innerHTML=f&&f.__html||""))}if(Kne(o,p,h,r,l),f)t.__k=[];else if(v=t.props.children,mL(o,Array.isArray(v)?v:[v],t,i,n,r&&m!=="foreignObject",a,s,a?a[0]:i.__k&&nh(i,0),l),a!=null)for(v=a.length;v--;)a[v]!=null&&uL(a[v]);l||("value"in p&&(v=p.value)!==void 0&&(v!==h.value||v!==o.value||m==="progress"&&!v)&&n0(o,"value",v,h.value,!1),"checked"in p&&(v=p.checked)!==void 0&&v!==o.checked&&n0(o,"checked",v,h.checked,!1))}return o}function yL(o,t,i){try{typeof o=="function"?o(t):o.current=t}catch(n){Ke.__e(n,i)}}function xL(o,t,i){var n,r;if(Ke.unmount&&Ke.unmount(o),(n=o.ref)&&(n.current&&n.current!==o.__e||yL(n,null,t)),(n=o.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){Ke.__e(a,t)}n.base=n.__P=null}if(n=o.__k)for(r=0;r<n.length;r++)n[r]&&xL(n[r],t,typeof o.type!="function");i||o.__e==null||uL(o.__e),o.__e=o.__d=void 0}function Qne(o,t,i){return this.constructor(o,i)}function wL(o,t,i){var n,r,a;Ke.__&&Ke.__(o,t),r=(n=typeof i=="function")?null:i&&i.__k||t.__k,a=[],M_(t,o=(!n&&i||t).__k=x_(ih,null,[o]),r||e0,e0,t.ownerSVGElement!==void 0,!n&&i?[i]:r?null:t.firstChild?l0.call(t.childNodes):null,a,!n&&i?i:r?r.__e:t.firstChild,n),vL(a,o)}l0=hL.slice,Ke={__e:function(o,t){for(var i,n,r;t=t.__;)if((i=t.__c)&&!i.__)try{if((n=i.constructor)&&n.getDerivedStateFromError!=null&&(i.setState(n.getDerivedStateFromError(o)),r=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(o),r=i.__d),r)return i.__E=i}catch(a){o=a}throw o}},dL=0,Gne=function(o){return o!=null&&o.constructor===void 0},za.prototype.setState=function(o,t){var i;i=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Tl({},this.state),typeof o=="function"&&(o=o(Tl({},i),this.props)),o&&Tl(i,o),o!=null&&this.__v&&(t&&this.__h.push(t),B8(this))},za.prototype.forceUpdate=function(o){this.__v&&(this.__e=!0,o&&this.__h.push(o),B8(this))},za.prototype.render=ih,jp=[],fL=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,t0.__r=0,Yne=0;var Zne=0;function ye(o,t,i,n,r){var a,s,l={};for(s in t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:o,props:l,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Zne,__source:n,__self:r};if(typeof o=="function"&&(a=o.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return Ke.vnode&&Ke.vnode(c),c}function ere(o,t){try{window.localStorage[`emoji-mart.${o}`]=JSON.stringify(t)}catch(i){}}function tre(o){try{let t=window.localStorage[`emoji-mart.${o}`];if(t)return JSON.parse(t)}catch(t){}}var Ml={set:ere,get:tre},g_=new Map,ire=[{v:15,emoji:"\u{1FAE8}"},{v:14,emoji:"\u{1FAE0}"},{v:13.1,emoji:"\u{1F636}\u200D\u{1F32B}\uFE0F"},{v:13,emoji:"\u{1F978}"},{v:12.1,emoji:"\u{1F9D1}\u200D\u{1F9B0}"},{v:12,emoji:"\u{1F971}"},{v:11,emoji:"\u{1F970}"},{v:5,emoji:"\u{1F929}"},{v:4,emoji:"\u{1F471}\u200D\u2640\uFE0F"},{v:3,emoji:"\u{1F923}"},{v:2,emoji:"\u{1F44B}\u{1F3FB}"},{v:1,emoji:"\u{1F643}"}];function nre(){for(let{v:o,emoji:t}of ire)if(kL(t))return o}function rre(){return!kL("\u{1F1E8}\u{1F1E6}")}function kL(o){if(g_.has(o))return g_.get(o);let t=ore(o);return g_.set(o,t),t}var ore=(()=>{let o=null;try{navigator.userAgent.includes("jsdom")||(o=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch(r){}if(!o)return()=>!1;let t=25,i=20,n=Math.floor(t/2);return o.font=n+"px Arial, Sans-Serif",o.textBaseline="top",o.canvas.width=i*2,o.canvas.height=t,r=>{o.clearRect(0,0,i*2,t),o.fillStyle="#FF0000",o.fillText(r,0,22),o.fillStyle="#0000FF",o.fillText(r,i,22);let a=o.getImageData(0,0,i,t).data,s=a.length,l=0;for(;l<s&&!a[l+3];l+=4);if(l>=s)return!1;let c=i+l/4%i,d=Math.floor(l/4/i),f=o.getImageData(c,d,1,1).data;return!(a[l]!==f[0]||a[l+2]!==f[2]||o.measureText(r).width>=i)}})(),U8={latestVersion:nre,noCountryFlags:rre},w_=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"],yn=null;function are(o){yn||(yn=Ml.get("frequently")||{});let t=o.id||o;t&&(yn[t]||(yn[t]=0),yn[t]+=1,Ml.set("last",t),Ml.set("frequently",yn))}function sre({maxFrequentRows:o,perLine:t}){if(!o)return[];yn||(yn=Ml.get("frequently"));let i=[];if(!yn){yn={};for(let a in w_.slice(0,t)){let s=w_[a];yn[s]=t-a,i.push(s)}return i}let n=o*t,r=Ml.get("last");for(let a in yn)i.push(a);if(i.sort((a,s)=>{let l=yn[s],c=yn[a];return l==c?a.localeCompare(s):l-c}),i.length>n){let a=i.slice(n);i=i.slice(0,n);for(let s of a)s!=r&&delete yn[s];r&&i.indexOf(r)==-1&&(delete yn[i[i.length-1]],i.splice(-1,1,r)),Ml.set("frequently",yn)}return i}var _L={add:are,get:sre,DEFAULTS:w_},zL={};zL=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn\u2019t be found","pick":"Pick an emoji\u2026","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Es={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}},qn=null,bt=null,b_={};async function G8(o){if(b_[o])return b_[o];let i=await(await fetch(o)).json();return b_[o]=i,i}var v_=null;var CL=null,SL=!1;function ql(o,{caller:t}={}){return v_||(v_=new Promise(i=>{CL=i})),o?lre(o):t&&!SL&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),v_}async function lre(o){SL=!0;let{emojiVersion:t,set:i,locale:n}=o;if(t||(t=Es.emojiVersion.value),i||(i=Es.set.value),n||(n=Es.locale.value),bt)bt.categories=bt.categories.filter(c=>!c.name);else{bt=(typeof o.data=="function"?await o.data():o.data)||await G8(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${i}.json`),bt.emoticons={},bt.natives={},bt.categories.unshift({id:"frequent",emojis:[]});for(let c in bt.aliases){let d=bt.aliases[c],f=bt.emojis[d];f&&(f.aliases||(f.aliases=[]),f.aliases.push(c))}bt.originalCategories=bt.categories}if(qn=(typeof o.i18n=="function"?await o.i18n():o.i18n)||(n=="en"?cL(zL):await G8(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${n}.json`)),o.custom)for(let c in o.custom){c=parseInt(c);let d=o.custom[c],f=o.custom[c-1];if(!(!d.emojis||!d.emojis.length)){d.id||(d.id=`custom_${c+1}`),d.name||(d.name=qn.categories.custom),f&&!d.icon&&(d.target=f.target||f),bt.categories.push(d);for(let h of d.emojis)bt.emojis[h.id]=h}}o.categories&&(bt.categories=bt.originalCategories.filter(c=>o.categories.indexOf(c.id)!=-1).sort((c,d)=>{let f=o.categories.indexOf(c.id),h=o.categories.indexOf(d.id);return f-h}));let r=null,a=null;i=="native"&&(r=U8.latestVersion(),a=o.noCountryFlags||U8.noCountryFlags());let s=bt.categories.length,l=!1;for(;s--;){let c=bt.categories[s];if(c.id=="frequent"){let{maxFrequentRows:h,perLine:p}=o;h=h>=0?h:Es.maxFrequentRows.value,p||(p=Es.perLine.value),c.emojis=_L.get({maxFrequentRows:h,perLine:p})}if(!c.emojis||!c.emojis.length){bt.categories.splice(s,1);continue}let{categoryIcons:d}=o;if(d){let h=d[c.id];h&&!c.icon&&(c.icon=h)}let f=c.emojis.length;for(;f--;){let h=c.emojis[f],p=h.id?h:bt.emojis[h],m=()=>{c.emojis.splice(f,1)};if(!p||o.exceptEmojis&&o.exceptEmojis.includes(p.id)){m();continue}if(r&&p.version>r){m();continue}if(a&&c.id=="flags"&&!ure.includes(p.id)){m();continue}if(!p.search){if(l=!0,p.search=","+[[p.id,!1],[p.name,!0],[p.keywords,!1],[p.emoticons,!1]].map(([b,x])=>{if(b)return(Array.isArray(b)?b:[b]).map(k=>(x?k.split(/[-|_|\s]+/):[k]).map(z=>z.toLowerCase())).flat()}).flat().filter(b=>b&&b.trim()).join(","),p.emoticons)for(let b of p.emoticons)bt.emoticons[b]||(bt.emoticons[b]=p.id);let v=0;for(let b of p.skins){if(!b)continue;v++;let{native:x}=b;x&&(bt.natives[x]=p.id,p.search+=`,${x}`);let k=v==1?"":`:skin-tone-${v}:`;b.shortcodes=`:${p.id}:${k}`}}}}l&&Ll.reset(),CL()}function AL(o,t,i){o||(o={});let n={};for(let r in t)n[r]=EL(r,o,t,i);return n}function EL(o,t,i,n){let r=i[o],a=n&&n.getAttribute(o)||(t[o]!=null&&t[o]!=null?t[o]:null);return r&&(a!=null&&r.value&&typeof r.value!=typeof a&&(typeof r.value=="boolean"?a=a!="false":a=r.value.constructor(a)),r.transform&&a&&(a=r.transform(a)),(a==null||r.choices&&r.choices.indexOf(a)==-1)&&(a=r.value)),a}var cre=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,k_=null;function dre(o){return o.id?o:bt.emojis[o]||bt.emojis[bt.aliases[o]]||bt.emojis[bt.natives[o]]}function fre(){k_=null}async function hre(o,{maxResults:t,caller:i}={}){if(!o||!o.trim().length)return null;t||(t=90),await ql(null,{caller:i||"SearchIndex.search"});let n=o.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((l,c,d)=>l.trim()&&d.indexOf(l)==c);if(!n.length)return;let r=k_||(k_=Object.values(bt.emojis)),a,s;for(let l of n){if(!r.length)break;a=[],s={};for(let c of r){if(!c.search)continue;let d=c.search.indexOf(`,${l}`);d!=-1&&(a.push(c),s[c.id]||(s[c.id]=0),s[c.id]+=c.id==l?0:d+1)}r=a}return a.length<2||(a.sort((l,c)=>{let d=s[l.id],f=s[c.id];return d==f?l.id.localeCompare(c.id):d-f}),a.length>t&&(a=a.slice(0,t))),a}var Ll={search:hre,get:dre,reset:fre,SHORTCODES_REGEX:cre},ure=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function pre(o,t){return Array.isArray(o)&&Array.isArray(t)&&o.length===t.length&&o.every((i,n)=>i==t[n])}async function mre(o=1){for(let t in[...Array(o).keys()])await new Promise(requestAnimationFrame)}function gre(o,{skinIndex:t=0}={}){let i=o.skins[t]||(t=0,o.skins[t]),n={id:o.id,name:o.name,native:i.native,unified:i.unified,keywords:o.keywords,shortcodes:i.shortcodes||o.shortcodes};return o.skins.length>1&&(n.skin=t+1),i.src&&(n.src=i.src),o.aliases&&o.aliases.length&&(n.aliases=o.aliases),o.emoticons&&o.emoticons.length&&(n.emoticons=o.emoticons),n}var bre={activity:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ye("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:ye("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ye("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ye("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),ye("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),ye("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:ye("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),ye("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:ye("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),ye("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),ye("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ye("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},vre={loupe:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ye("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ye("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})},r0={categories:bre,search:vre};function __(o){let{id:t,skin:i,emoji:n}=o;if(o.shortcodes){let l=o.shortcodes.match(Ll.SHORTCODES_REGEX);l&&(t=l[1],l[2]&&(i=l[2]))}if(n||(n=Ll.get(t||o.native)),!n)return o.fallback;let r=n.skins[i-1]||n.skins[0],a=r.src||(o.set!="native"&&!o.spritesheet?typeof o.getImageURL=="function"?o.getImageURL(o.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${o.set}@15.0.1/img/${o.set}/64/${r.unified}.png`:void 0),s=typeof o.getSpritesheetURL=="function"?o.getSpritesheetURL(o.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${o.set}@15.0.1/img/${o.set}/sheets-256/64.png`;return ye("span",{class:"emoji-mart-emoji","data-emoji-set":o.set,children:a?ye("img",{style:{maxWidth:o.size||"1em",maxHeight:o.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):o.set=="native"?ye("span",{style:{fontSize:o.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):ye("span",{style:{display:"block",width:o.size,height:o.size,backgroundImage:`url(${s})`,backgroundSize:`${100*bt.sheet.cols}% ${100*bt.sheet.rows}%`,backgroundPosition:`${100/(bt.sheet.cols-1)*r.x}% ${100/(bt.sheet.rows-1)*r.y}%`}})})}var yre=typeof window!="undefined"&&window.HTMLElement?window.HTMLElement:Object,o0=class extends yre{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let i in t)this.attributeChangedCallback(i,null,t[i])}attributeChangedCallback(t,i,n){if(!this.component)return;let r=EL(t,{[t]:n},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:r}):(this.component.props[t]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let i=null,n=t.parent||(i=t.ref&&t.ref.current);i&&(i.innerHTML=""),n&&n.appendChild(this)}}},z_=class extends o0{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;let i=document.createElement("style");i.textContent=t,this.shadowRoot.insertBefore(i,this.shadowRoot.firstChild)}constructor(t,{styles:i}={}){super(t),this.setShadow(),this.injectStyles(i)}},TL={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:o=>/\D/.test(o)?o:`${o}px`},set:Es.set,skin:Es.skin},a0=class extends o0{async connectedCallback(){let t=AL(this.props,TL,this);t.element=this,t.ref=i=>{this.component=i},await ql(),!this.disconnected&&wL(ye(__,Ce({},t)),this)}constructor(t){super(t)}};ko(a0,"Props",TL);typeof customElements!="undefined"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",a0);var xre,Jc,Y8;var C_=[],X8=Ke.__b,K8=Ke.__r,J8=Ke.diffed,Q8=Ke.__c,Z8=Ke.unmount;function wre(){var o;for(C_.sort(function(t,i){return t.__v.__b-i.__v.__b});o=C_.pop();)if(o.__P)try{o.__H.__h.forEach(Zv),o.__H.__h.forEach(S_),o.__H.__h=[]}catch(t){o.__H.__h=[],Ke.__e(t,o.__v)}}Ke.__b=function(o){Jc=null,X8&&X8(o)},Ke.__r=function(o){K8&&K8(o),xre=0;var t=(Jc=o.__c).__H;t&&(t.__h.forEach(Zv),t.__h.forEach(S_),t.__h=[])},Ke.diffed=function(o){J8&&J8(o);var t=o.__c;t&&t.__H&&t.__H.__h.length&&(C_.push(t)!==1&&Y8===Ke.requestAnimationFrame||((Y8=Ke.requestAnimationFrame)||function(i){var n,r=function(){clearTimeout(a),eL&&cancelAnimationFrame(n),setTimeout(i)},a=setTimeout(r,100);eL&&(n=requestAnimationFrame(r))})(wre)),Jc=null},Ke.__c=function(o,t){t.some(function(i){try{i.__h.forEach(Zv),i.__h=i.__h.filter(function(n){return!n.__||S_(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Ke.__e(n,i.__v)}}),Q8&&Q8(o,t)},Ke.unmount=function(o){Z8&&Z8(o);var t,i=o.__c;i&&i.__H&&(i.__H.__.forEach(function(n){try{Zv(n)}catch(r){t=r}}),t&&Ke.__e(t,i.__v))};var eL=typeof requestAnimationFrame=="function";function Zv(o){var t=Jc,i=o.__c;typeof i=="function"&&(o.__c=void 0,i()),Jc=t}function S_(o){var t=Jc;o.__c=o.__(),Jc=t}function kre(o,t){for(var i in t)o[i]=t[i];return o}function tL(o,t){for(var i in o)if(i!=="__source"&&!(i in t))return!0;for(var n in t)if(n!=="__source"&&o[n]!==t[n])return!0;return!1}function s0(o){this.props=o}(s0.prototype=new za).isPureReactComponent=!0,s0.prototype.shouldComponentUpdate=function(o,t){return tL(this.props,o)||tL(this.state,t)};var iL=Ke.__b;Ke.__b=function(o){o.type&&o.type.__f&&o.ref&&(o.props.ref=o.ref,o.ref=null),iL&&iL(o)};var REe=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var _re=Ke.__e;Ke.__e=function(o,t,i){if(o.then){for(var n,r=t;r=r.__;)if((n=r.__c)&&n.__c)return t.__e==null&&(t.__e=i.__e,t.__k=i.__k),n.__c(o,t)}_re(o,t,i)};var nL=Ke.unmount;function y_(){this.__u=0,this.t=null,this.__b=null}function ML(o){var t=o.__.__c;return t&&t.__e&&t.__e(o)}function Kv(){this.u=null,this.o=null}Ke.unmount=function(o){var t=o.__c;t&&t.__R&&t.__R(),t&&o.__h===!0&&(o.type=null),nL&&nL(o)},(y_.prototype=new za).__c=function(o,t){var i=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(i);var r=ML(n.__v),a=!1,s=function(){a||(a=!0,i.__R=null,r?r(l):l())};i.__R=s;var l=function(){if(!--n.__u){if(n.state.__e){var d=n.state.__e;n.__v.__k[0]=function h(p,m,v){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(b){return h(b,m,v)}),p.__c&&p.__c.__P===m&&(p.__e&&v.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=v)),p}(d,d.__c.__P,d.__c.__O)}var f;for(n.setState({__e:n.__b=null});f=n.t.pop();)f.forceUpdate()}},c=t.__h===!0;n.__u++||c||n.setState({__e:n.__b=n.__v.__k[0]}),o.then(s,s)},y_.prototype.componentWillUnmount=function(){this.t=[]},y_.prototype.render=function(o,t){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function a(s,l,c){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),s.__c.__H=null),(s=kre({},s)).__c!=null&&(s.__c.__P===c&&(s.__c.__P=l),s.__c=null),s.__k=s.__k&&s.__k.map(function(d){return a(d,l,c)})),s}(this.__b,i,n.__O=n.__P)}this.__b=null}var r=t.__e&&x_(ih,null,o.fallback);return r&&(r.__h=null),[x_(ih,null,t.__e?null:o.children),r]};var rL=function(o,t,i){if(++i[1]===i[0]&&o.o.delete(t),o.props.revealOrder&&(o.props.revealOrder[0]!=="t"||!o.o.size))for(i=o.u;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;o.u=i=i[2]}};(Kv.prototype=new za).__e=function(o){var t=this,i=ML(t.__v),n=t.o.get(o);return n[0]++,function(r){var a=function(){t.props.revealOrder?(n.push(r),rL(t,o,n)):r()};i?i(a):a()}},Kv.prototype.render=function(o){this.u=null,this.o=new Map;var t=i0(o.children);o.revealOrder&&o.revealOrder[0]==="b"&&t.reverse();for(var i=t.length;i--;)this.o.set(t[i],this.u=[1,0,this.u]);return o.children},Kv.prototype.componentDidUpdate=Kv.prototype.componentDidMount=function(){var o=this;this.o.forEach(function(t,i){rL(o,i,t)})};var zre=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Cre=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Sre=typeof document!="undefined",Are=function(o){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(o)};za.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(o){Object.defineProperty(za.prototype,o,{configurable:!0,get:function(){return this["UNSAFE_"+o]},set:function(t){Object.defineProperty(this,o,{configurable:!0,writable:!0,value:t})}})});var oL=Ke.event;function Ere(){}function Tre(){return this.cancelBubble}function Mre(){return this.defaultPrevented}Ke.event=function(o){return oL&&(o=oL(o)),o.persist=Ere,o.isPropagationStopped=Tre,o.isDefaultPrevented=Mre,o.nativeEvent=o};var Lre,aL={configurable:!0,get:function(){return this.class}},sL=Ke.vnode;Ke.vnode=function(o){var t=o.type,i=o.props,n=i;if(typeof t=="string"){var r=t.indexOf("-")===-1;for(var a in n={},i){var s=i[a];Sre&&a==="children"&&t==="noscript"||a==="value"&&"defaultValue"in i&&s==null||(a==="defaultValue"&&"value"in i&&i.value==null?a="value":a==="download"&&s===!0?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!Are(i.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(a)?a=a.toLowerCase():r&&Cre.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():s===null&&(s=void 0),n[a]=s)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=i0(i.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=i0(i.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value})),o.props=n,i.class!=i.className&&(aL.enumerable="className"in i,i.className!=null&&(n.class=i.className),Object.defineProperty(n,"className",aL))}o.$$typeof=zre,sL&&sL(o)};var lL=Ke.__r;Ke.__r=function(o){lL&&lL(o),Lre=o.__c};var qre={light:"outline",dark:"solid"},A_=class extends s0{renderIcon(t){let{icon:i}=t;if(i){if(i.svg)return ye("span",{class:"flex",dangerouslySetInnerHTML:{__html:i.svg}});if(i.src)return ye("img",{src:i.src})}let n=r0.categories[t.id]||r0.categories.custom,r=this.props.icons=="auto"?qre[this.props.theme]:this.props.icons;return n[r]||n}render(){let t=null;return ye("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:ye("div",{class:"flex relative",children:[this.categories.map((i,n)=>{let r=i.name||qn.categories[i.id],a=!this.props.unfocused&&i.id==this.state.categoryId;return a&&(t=n),ye("button",{"aria-label":r,"aria-selected":a||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:s=>s.preventDefault(),onClick:()=>{this.props.onClick({category:i,i:n})},children:this.renderIcon(i)})}),ye("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=bt.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}},E_=class extends s0{shouldComponentUpdate(t){for(let i in t)if(i!="children"&&t[i]!=this.props[i])return!0;return!1}render(){return this.props.children}},Jv={rowsPerRender:10},T_=class extends za{getInitialState(t=this.props){return{skin:Ml.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=qn.rtl?"rtl":"ltr",this.refs={menu:As(),navigation:As(),scroll:As(),search:As(),searchInput:As(),skinToneButton:As(),skinToneRadio:As()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){let{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(let i in t)this.nextState[i]=t[i];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let i=!1;for(let r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(i=!0);delete this.nextState;let n=this.getInitialState();if(i)return this.reset(n);this.setState(n)})}componentWillUnmount(){this.unregister()}async reset(t={}){await ql(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(let i of this.observers)t.includes(i)||i.disconnect();this.observers=[].concat(t)}initGrid(){let{categories:t}=bt;this.refs.categories=new Map;let i=bt.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=i&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=i,this.grid=[],this.grid.setsize=0;let n=(r,a)=>{let s=[];s.__categoryId=a.id,s.__index=r.length,this.grid.push(s);let l=this.grid.length-1,c=l%Jv.rowsPerRender?{}:As();return c.index=l,c.posinset=this.grid.setsize+1,r.push(c),s};for(let r of t){let a=[],s=n(a,r);for(let l of r.emojis)s.length==this.getPerLine()&&(s=n(a,r)),this.grid.setsize+=1,s.push(l);this.refs.categories.set(r.id,{root:As(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;let{element:i,emojiButtonSize:n}=t,r=()=>{let{width:s}=i.getBoundingClientRect();return Math.floor(s/n)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(i),this.observers.push(a),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,i]){let n=this.state.searchResults||this.grid,r=n[t]&&n[t][i];if(r)return Ll.get(r)}observeCategories(){let t=this.refs.navigation.current;if(!t)return;let i=new Map,n=s=>{s!=t.state.categoryId&&t.setState({categoryId:s})},r={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(s=>{for(let c of s){let d=c.target.dataset.id;i.set(d,c.intersectionRatio)}let l=[...i];for(let[c,d]of l)if(d){n(c);break}},r);for(let{root:s}of this.refs.categories.values())a.observe(s.current);this.observers.push(a)}observeRows(){let t=Ce({},this.state.visibleRows),i=new IntersectionObserver(n=>{for(let r of n){let a=parseInt(r.target.dataset.index);r.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(Jv.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*Jv.rowsPerRender}px`});for(let{rows:n}of this.refs.categories.values())for(let r of n)r.current&&i.observe(r.current);this.observers.push(i)}preventDefault(t){t.preventDefault()}unfocusSearch(){let t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:i,left:n,right:r,up:a,down:s}){let l=this.state.searchResults||this.grid;if(!l.length)return;let[c,d]=this.state.pos,f=(()=>{if(c==0&&d==0&&!t.repeat&&(n||a))return null;if(c==-1)return!t.repeat&&(r||s)&&i.selectionStart==i.value.length?[0,0]:null;if(n||r){let h=l[c],p=n?-1:1;if(d+=p,!h[d]){if(c+=p,h=l[c],!h)return c=n?0:l.length-1,d=n?0:l[c].length-1,[c,d];d=n?h.length-1:0}return[c,d]}if(a||s){c+=a?-1:1;let h=l[c];return h?(h[d]||(d=h.length-1),[c,d]):(c=a?0:l.length-1,d=a?0:l[c].length-1,[c,d])}})();if(f)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:f,keyboard:!0},()=>{this.scrollTo({row:f[0]})})}scrollTo({categoryId:t,row:i}){let n=this.state.searchResults||this.grid;if(!n.length)return;let r=this.refs.scroll.current,a=r.getBoundingClientRect(),s=0;if(i>=0&&(t=n[i].__categoryId),t&&(s=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-r.scrollTop)+1),i>=0)if(!i)s=0;else{let l=n[i].__index,c=s+l*this.props.emojiButtonSize,d=c+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(c<r.scrollTop)s=c;else if(d>r.scrollTop+a.height)s=d-a.height;else return}this.ignoreMouse(),r.scrollTop=s}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:i,pos:n}){if(this.props.onEmojiSelect&&(!i&&n&&(i=this.getEmojiByPos(n)),i)){let r=gre(i,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&_L.add(r,this.props),this.props.onEmojiSelect(r,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),Ml.set("skin",t)}renderNav(){return ye(A_,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){let t=this.getEmojiByPos(this.state.pos),i=this.state.searchResults&&!this.state.searchResults.length;return ye("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[ye("div",{class:"flex flex-middle flex-grow",children:[ye("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:ye(__,{emoji:t,id:i?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),ye("div",{class:`margin-${this.dir[0]}`,children:t||i?ye("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[ye("div",{class:"preview-title ellipsis",children:t?t.name:qn.search_no_results_1}),ye("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:qn.search_no_results_2})]}):ye("div",{class:"preview-placeholder color-c",children:qn.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:i,posinset:n,grid:r}){let a=this.props.emojiButtonSize,s=this.state.tempSkin||this.state.skin,c=(t.skins[s-1]||t.skins[0]).native,d=pre(this.state.pos,i),f=i.concat(t.id).join("");return ye(E_,{selected:d,skin:s,size:a,children:ye("button",{"aria-label":c,"aria-selected":d||void 0,"aria-posinset":n,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:h=>this.handleEmojiClick({e:h,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(i),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[ye("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(n-1)%this.props.emojiButtonColors.length]:void 0}}),ye(__,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:s,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},f)}renderSearch(){let t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return ye("div",{children:[ye("div",{class:"spacer"}),ye("div",{class:"flex flex-middle",children:[ye("div",{class:"search relative flex-grow",children:[ye("input",{type:"search",ref:this.refs.searchInput,placeholder:qn.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),ye("span",{class:"icon loupe flex",children:r0.search.loupe}),this.state.searchResults&&ye("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:r0.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){let{searchResults:t}=this.state;return t?ye("div",{class:"category",ref:this.refs.search,children:[ye("div",{class:`sticky padding-small align-${this.dir[0]}`,children:qn.categories.search}),ye("div",{children:t.length?t.map((i,n)=>ye("div",{class:"flex",children:i.map((r,a)=>this.renderEmojiButton(r,{pos:[n,a],posinset:n*this.props.perLine+a+1,grid:t}))})):ye("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&ye("a",{onClick:this.props.onAddCustomEmoji,children:qn.add_custom})})})]}):null}renderCategories(){let{categories:t}=bt,i=!!this.state.searchResults,n=this.getPerLine();return ye("div",{style:{visibility:i?"hidden":void 0,display:i?"none":void 0,height:"100%"},children:t.map(r=>{let{root:a,rows:s}=this.refs.categories.get(r.id);return ye("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[ye("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||qn.categories[r.id]}),ye("div",{class:"relative",style:{height:s.length*this.props.emojiButtonSize},children:s.map((l,c)=>{let d=l.index-l.index%Jv.rowsPerRender,f=this.state.visibleRows[d],h="current"in l?l:void 0;if(!f&&!h)return null;let p=c*n,m=p+n,v=r.emojis.slice(p,m);return v.length<n&&v.push(...new Array(n-v.length)),ye("div",{"data-index":l.index,ref:h,class:"flex row",style:{top:c*this.props.emojiButtonSize},children:f&&v.map((b,x)=>{if(!b)return ye("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});let k=Ll.get(b);return this.renderEmojiButton(k,{pos:[l.index,x],posinset:l.posinset+x,grid:this.grid})})},l.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:ye("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:ye("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":qn.skins.choose,title:qn.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:ye("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){let t=this.getEmojiByPos(this.state.pos),i=t?t.name:"";return ye("div",{"aria-live":"polite",class:"sr-only",children:i})}renderSkins(){let i=this.refs.skinToneButton.current.getBoundingClientRect(),n=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=n.right-i.right-3:r.left=i.left-n.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=n.bottom-i.top+6:(r.top=i.bottom-n.top+3,r.bottom="auto"),ye("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":qn.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{let s=a+1,l=this.state.skin==s;return ye("div",{children:[ye("input",{type:"radio",name:"skin-tone",value:s,"aria-label":qn.skins[s],ref:l?this.refs.skinToneRadio:null,defaultChecked:l,onChange:()=>this.handleSkinMouseOver(s),onKeyDown:c=>{(c.code=="Enter"||c.code=="Space"||c.code=="Tab")&&(c.preventDefault(),this.handleSkinClick(s))}}),ye("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(s),onMouseEnter:()=>this.handleSkinMouseOver(s),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[ye("span",{class:`skin-tone skin-tone-${s}`}),ye("span",{class:"margin-small-lr",children:qn.skins[s]})]})]})})})}render(){let t=this.props.perLine*this.props.emojiButtonSize;return ye("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&ye("div",{class:"padding-lr",children:this.renderSearch()}),ye("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:ye("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),ko(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),ko(this,"handleClickOutside",i=>{let{element:n}=this.props;i.target!=n&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(i))}),ko(this,"handleBaseClick",i=>{this.state.showSkins&&(i.target.closest(".menu")||(i.preventDefault(),i.stopImmediatePropagation(),this.closeSkins()))}),ko(this,"handleBaseKeydown",i=>{this.state.showSkins&&i.key=="Escape"&&(i.preventDefault(),i.stopImmediatePropagation(),this.closeSkins())}),ko(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),ko(this,"handleSearchInput",async()=>{let i=this.refs.searchInput.current;if(!i)return;let{value:n}=i,r=await Ll.search(n),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},a);let s=i.selectionStart==i.value.length?[0,0]:[-1,-1],l=[];l.setsize=r.length;let c=null;for(let d of r)(!l.length||c.length==this.getPerLine())&&(c=[],c.__categoryId="search",c.__index=l.length,l.push(c)),c.push(d);this.ignoreMouse(),this.setState({searchResults:l,pos:s},a)}),ko(this,"handleSearchKeyDown",i=>{let n=i.currentTarget;switch(i.stopImmediatePropagation(),i.key){case"ArrowLeft":this.navigate({e:i,input:n,left:!0});break;case"ArrowRight":this.navigate({e:i,input:n,right:!0});break;case"ArrowUp":this.navigate({e:i,input:n,up:!0});break;case"ArrowDown":this.navigate({e:i,input:n,down:!0});break;case"Enter":i.preventDefault(),this.handleEmojiClick({e:i,pos:this.state.pos});break;case"Escape":i.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break;default:break}}),ko(this,"clearSearch",()=>{let i=this.refs.searchInput.current;i&&(i.value="",i.focus(),this.handleSearchInput())}),ko(this,"handleCategoryClick",({category:i,i:n})=>{this.scrollTo(n==0?{row:-1}:{categoryId:i.id})}),ko(this,"openSkins",i=>{let{currentTarget:n}=i,r=n.getBoundingClientRect();this.setState({showSkins:r},async()=>{await mre(2);let a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state=Ce({pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0}},this.getInitialState(t))}},rh=class extends z_{async connectedCallback(){let t=AL(this.props,Es,this);t.element=this,t.ref=i=>{this.component=i},await ql(t),!this.disconnected&&wL(ye(T_,Ce({},t)),this.shadowRoot)}constructor(t){super(t,{styles:cL(LL)})}};ko(rh,"Props",Es);typeof customElements!="undefined"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",rh);var LL={};LL=`:host {
2917
+ <zn-editor-dialog></zn-editor-dialog>`;return pi(t)}isOpen(){return this._component.dialogEl.open}close(){this._component.dialogEl.close()}},N8=m_;var jne={onDrop:()=>{},draggableContentTypePattern:"^image\\/",draggables:[]},Wp=class{constructor(t,i){this._container=null;this._draggables=[];this.nullReturner=()=>null;this.handleDrop=t=>{var s;let i=this._options.onDrop,n=t.target&&t.target["ql-data"]?t.target:this._container,r=(s=t.dataTransfer)==null?void 0:s.files,a=Une(r,this._draggables);a.length!==0&&(t.stopPropagation(),t.preventDefault(),Promise.all(a.map(l=>Promise.resolve((i||this.nullReturner)(l.file,{tag:l.tag,attr:l.attr})).then(c=>({on_drop_ret_val:c,fileInfo:l})))).then(l=>Promise.all(l.map(({on_drop_ret_val:c,fileInfo:d})=>{if(c===!1)return;let{tag:f,attr:h}=d,p;return c===null||(p=c),Promise.resolve(p).then(m=>({data:m,tag:f,attr:h}))}))).then(l=>l.forEach(c=>{if(c){let{data:d,tag:f,attr:h}=c,p=document.createElement(f);p.setAttribute(h,d),n.appendChild(p)}})))};this._quill=t,this._options=Object.assign({},jne,i),this._container=this._quill.addContainer("ql-editor"),this._draggables=this._options.draggables.map(Vne),this._quill.root.addEventListener("drop",this.handleDrop)}},Vne=o=>{if(o.content_type_pattern&&o.tag&&o.attr){let t=Object.assign({},o);return t.content_type_regex=new RegExp(o.content_type_pattern),delete t.content_type_pattern,t}e.draggable=o},Une=(o,t)=>{let i=[];if(o)for(let n=0;n<o.length;n++){let r=o.item(n),a=t.find(s=>s.content_type_regex.test(r.type));a&&i.push({file:r,tag:a.tag,attr:a.attr})}return i};function cL(o){return o&&o.__esModule?o.default:o}function ko(o,t,i){return t in o?Object.defineProperty(o,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[t]=i,o}var l0,Ke,dL,Gne,jp,fL,H8,Yne,e0={},hL=[],Xne=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Tl(o,t){for(var i in t)o[i]=t[i];return o}function uL(o){var t=o.parentNode;t&&t.removeChild(o)}function x_(o,t,i){var n,r,a,s={};for(a in t)a=="key"?n=t[a]:a=="ref"?r=t[a]:s[a]=t[a];if(arguments.length>2&&(s.children=arguments.length>3?l0.call(arguments,2):i),typeof o=="function"&&o.defaultProps!=null)for(a in o.defaultProps)s[a]===void 0&&(s[a]=o.defaultProps[a]);return Qv(o,s,n,r,null)}function Qv(o,t,i,n,r){var a={type:o,props:t,key:i,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:r==null?++dL:r};return r==null&&Ke.vnode!=null&&Ke.vnode(a),a}function As(){return{current:null}}function ih(o){return o.children}function za(o,t){this.props=o,this.context=t}function nh(o,t){if(t==null)return o.__?nh(o.__,o.__.__k.indexOf(o)+1):null;for(var i;t<o.__k.length;t++)if((i=o.__k[t])!=null&&i.__e!=null)return i.__e;return typeof o.type=="function"?nh(o):null}function pL(o){var t,i;if((o=o.__)!=null&&o.__c!=null){for(o.__e=o.__c.base=null,t=0;t<o.__k.length;t++)if((i=o.__k[t])!=null&&i.__e!=null){o.__e=o.__c.base=i.__e;break}return pL(o)}}function B8(o){(!o.__d&&(o.__d=!0)&&jp.push(o)&&!t0.__r++||H8!==Ke.debounceRendering)&&((H8=Ke.debounceRendering)||fL)(t0)}function t0(){for(var o;t0.__r=jp.length;)o=jp.sort(function(t,i){return t.__v.__b-i.__v.__b}),jp=[],o.some(function(t){var i,n,r,a,s,l;t.__d&&(s=(a=(i=t).__v).__e,(l=i.__P)&&(n=[],(r=Tl({},a)).__v=a.__v+1,M_(l,a,r,i.__n,l.ownerSVGElement!==void 0,a.__h!=null?[s]:null,n,s==null?nh(a):s,a.__h),vL(n,a),a.__e!=s&&pL(a)))})}function mL(o,t,i,n,r,a,s,l,c,d){var f,h,p,m,v,b,x,k=n&&n.__k||hL,z=k.length;for(i.__k=[],f=0;f<t.length;f++)if((m=i.__k[f]=(m=t[f])==null||typeof m=="boolean"?null:typeof m=="string"||typeof m=="number"||typeof m=="bigint"?Qv(null,m,null,null,m):Array.isArray(m)?Qv(ih,{children:m},null,null,null):m.__b>0?Qv(m.type,m.props,m.key,null,m.__v):m)!=null){if(m.__=i,m.__b=i.__b+1,(p=k[f])===null||p&&m.key==p.key&&m.type===p.type)k[f]=void 0;else for(h=0;h<z;h++){if((p=k[h])&&m.key==p.key&&m.type===p.type){k[h]=void 0;break}p=null}M_(o,m,p=p||e0,r,a,s,l,c,d),v=m.__e,(h=m.ref)&&p.ref!=h&&(x||(x=[]),p.ref&&x.push(p.ref,null,m),x.push(h,m.__c||v,m)),v!=null?(b==null&&(b=v),typeof m.type=="function"&&m.__k===p.__k?m.__d=c=gL(m,c,o):c=bL(o,m,p,k,v,c),typeof i.type=="function"&&(i.__d=c)):c&&p.__e==c&&c.parentNode!=o&&(c=nh(p))}for(i.__e=b,f=z;f--;)k[f]!=null&&(typeof i.type=="function"&&k[f].__e!=null&&k[f].__e==i.__d&&(i.__d=nh(n,f+1)),xL(k[f],k[f]));if(x)for(f=0;f<x.length;f++)yL(x[f],x[++f],x[++f])}function gL(o,t,i){for(var n,r=o.__k,a=0;r&&a<r.length;a++)(n=r[a])&&(n.__=o,t=typeof n.type=="function"?gL(n,t,i):bL(i,n,n,r,n.__e,t));return t}function i0(o,t){return t=t||[],o==null||typeof o=="boolean"||(Array.isArray(o)?o.some(function(i){i0(i,t)}):t.push(o)),t}function bL(o,t,i,n,r,a){var s,l,c;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(i==null||r!=a||r.parentNode==null)e:if(a==null||a.parentNode!==o)o.appendChild(r),s=null;else{for(l=a,c=0;(l=l.nextSibling)&&c<n.length;c+=2)if(l==r)break e;o.insertBefore(r,a),s=a}return s!==void 0?s:r.nextSibling}function Kne(o,t,i,n,r){var a;for(a in i)a==="children"||a==="key"||a in t||n0(o,a,null,i[a],n);for(a in t)r&&typeof t[a]!="function"||a==="children"||a==="key"||a==="value"||a==="checked"||i[a]===t[a]||n0(o,a,t[a],i[a],n)}function W8(o,t,i){t[0]==="-"?o.setProperty(t,i):o[t]=i==null?"":typeof i!="number"||Xne.test(t)?i:i+"px"}function n0(o,t,i,n,r){var a;e:if(t==="style")if(typeof i=="string")o.style.cssText=i;else{if(typeof n=="string"&&(o.style.cssText=n=""),n)for(t in n)i&&t in i||W8(o.style,t,"");if(i)for(t in i)n&&i[t]===n[t]||W8(o.style,t,i[t])}else if(t[0]==="o"&&t[1]==="n")a=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in o?t.toLowerCase().slice(2):t.slice(2),o.l||(o.l={}),o.l[t+a]=i,i?n||o.addEventListener(t,a?V8:j8,a):o.removeEventListener(t,a?V8:j8,a);else if(t!=="dangerouslySetInnerHTML"){if(r)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t in o)try{o[t]=i==null?"":i;break e}catch(s){}typeof i=="function"||(i!=null&&(i!==!1||t[0]==="a"&&t[1]==="r")?o.setAttribute(t,i):o.removeAttribute(t))}}function j8(o){this.l[o.type+!1](Ke.event?Ke.event(o):o)}function V8(o){this.l[o.type+!0](Ke.event?Ke.event(o):o)}function M_(o,t,i,n,r,a,s,l,c){var d,f,h,p,m,v,b,x,k,z,E,A=t.type;if(t.constructor!==void 0)return null;i.__h!=null&&(c=i.__h,l=t.__e=i.__e,t.__h=null,a=[l]),(d=Ke.__b)&&d(t);try{e:if(typeof A=="function"){if(x=t.props,k=(d=A.contextType)&&n[d.__c],z=d?k?k.props.value:d.__:n,i.__c?b=(f=t.__c=i.__c).__=f.__E:("prototype"in A&&A.prototype.render?t.__c=f=new A(x,z):(t.__c=f=new za(x,z),f.constructor=A,f.render=Qne),k&&k.sub(f),f.props=x,f.state||(f.state={}),f.context=z,f.__n=n,h=f.__d=!0,f.__h=[]),f.__s==null&&(f.__s=f.state),A.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Tl({},f.__s)),Tl(f.__s,A.getDerivedStateFromProps(x,f.__s))),p=f.props,m=f.state,h)A.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(A.getDerivedStateFromProps==null&&x!==p&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(x,z),!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(x,f.__s,z)===!1||t.__v===i.__v){f.props=x,f.state=f.__s,t.__v!==i.__v&&(f.__d=!1),f.__v=t,t.__e=i.__e,t.__k=i.__k,t.__k.forEach(function(C){C&&(C.__=t)}),f.__h.length&&s.push(f);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(x,f.__s,z),f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(p,m,v)})}f.context=z,f.props=x,f.state=f.__s,(d=Ke.__r)&&d(t),f.__d=!1,f.__v=t,f.__P=o,d=f.render(f.props,f.state,f.context),f.state=f.__s,f.getChildContext!=null&&(n=Tl(Tl({},n),f.getChildContext())),h||f.getSnapshotBeforeUpdate==null||(v=f.getSnapshotBeforeUpdate(p,m)),E=d!=null&&d.type===ih&&d.key==null?d.props.children:d,mL(o,Array.isArray(E)?E:[E],t,i,n,r,a,s,l,c),f.base=t.__e,t.__h=null,f.__h.length&&s.push(f),b&&(f.__E=f.__=null),f.__e=!1}else a==null&&t.__v===i.__v?(t.__k=i.__k,t.__e=i.__e):t.__e=Jne(i.__e,t,i,n,r,a,s,c);(d=Ke.diffed)&&d(t)}catch(C){t.__v=null,(c||a!=null)&&(t.__e=l,t.__h=!!c,a[a.indexOf(l)]=null),Ke.__e(C,t,i)}}function vL(o,t){Ke.__c&&Ke.__c(t,o),o.some(function(i){try{o=i.__h,i.__h=[],o.some(function(n){n.call(i)})}catch(n){Ke.__e(n,i.__v)}})}function Jne(o,t,i,n,r,a,s,l){var c,d,f,h=i.props,p=t.props,m=t.type,v=0;if(m==="svg"&&(r=!0),a!=null){for(;v<a.length;v++)if((c=a[v])&&"setAttribute"in c==!!m&&(m?c.localName===m:c.nodeType===3)){o=c,a[v]=null;break}}if(o==null){if(m===null)return document.createTextNode(p);o=r?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,p.is&&p),a=null,l=!1}if(m===null)h===p||l&&o.data===p||(o.data=p);else{if(a=a&&l0.call(o.childNodes),d=(h=i.props||e0).dangerouslySetInnerHTML,f=p.dangerouslySetInnerHTML,!l){if(a!=null)for(h={},v=0;v<o.attributes.length;v++)h[o.attributes[v].name]=o.attributes[v].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===o.innerHTML)||(o.innerHTML=f&&f.__html||""))}if(Kne(o,p,h,r,l),f)t.__k=[];else if(v=t.props.children,mL(o,Array.isArray(v)?v:[v],t,i,n,r&&m!=="foreignObject",a,s,a?a[0]:i.__k&&nh(i,0),l),a!=null)for(v=a.length;v--;)a[v]!=null&&uL(a[v]);l||("value"in p&&(v=p.value)!==void 0&&(v!==h.value||v!==o.value||m==="progress"&&!v)&&n0(o,"value",v,h.value,!1),"checked"in p&&(v=p.checked)!==void 0&&v!==o.checked&&n0(o,"checked",v,h.checked,!1))}return o}function yL(o,t,i){try{typeof o=="function"?o(t):o.current=t}catch(n){Ke.__e(n,i)}}function xL(o,t,i){var n,r;if(Ke.unmount&&Ke.unmount(o),(n=o.ref)&&(n.current&&n.current!==o.__e||yL(n,null,t)),(n=o.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){Ke.__e(a,t)}n.base=n.__P=null}if(n=o.__k)for(r=0;r<n.length;r++)n[r]&&xL(n[r],t,typeof o.type!="function");i||o.__e==null||uL(o.__e),o.__e=o.__d=void 0}function Qne(o,t,i){return this.constructor(o,i)}function wL(o,t,i){var n,r,a;Ke.__&&Ke.__(o,t),r=(n=typeof i=="function")?null:i&&i.__k||t.__k,a=[],M_(t,o=(!n&&i||t).__k=x_(ih,null,[o]),r||e0,e0,t.ownerSVGElement!==void 0,!n&&i?[i]:r?null:t.firstChild?l0.call(t.childNodes):null,a,!n&&i?i:r?r.__e:t.firstChild,n),vL(a,o)}l0=hL.slice,Ke={__e:function(o,t){for(var i,n,r;t=t.__;)if((i=t.__c)&&!i.__)try{if((n=i.constructor)&&n.getDerivedStateFromError!=null&&(i.setState(n.getDerivedStateFromError(o)),r=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(o),r=i.__d),r)return i.__E=i}catch(a){o=a}throw o}},dL=0,Gne=function(o){return o!=null&&o.constructor===void 0},za.prototype.setState=function(o,t){var i;i=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Tl({},this.state),typeof o=="function"&&(o=o(Tl({},i),this.props)),o&&Tl(i,o),o!=null&&this.__v&&(t&&this.__h.push(t),B8(this))},za.prototype.forceUpdate=function(o){this.__v&&(this.__e=!0,o&&this.__h.push(o),B8(this))},za.prototype.render=ih,jp=[],fL=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,t0.__r=0,Yne=0;var Zne=0;function ye(o,t,i,n,r){var a,s,l={};for(s in t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:o,props:l,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Zne,__source:n,__self:r};if(typeof o=="function"&&(a=o.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return Ke.vnode&&Ke.vnode(c),c}function ere(o,t){try{window.localStorage[`emoji-mart.${o}`]=JSON.stringify(t)}catch(i){}}function tre(o){try{let t=window.localStorage[`emoji-mart.${o}`];if(t)return JSON.parse(t)}catch(t){}}var Ml={set:ere,get:tre},g_=new Map,ire=[{v:15,emoji:"\u{1FAE8}"},{v:14,emoji:"\u{1FAE0}"},{v:13.1,emoji:"\u{1F636}\u200D\u{1F32B}\uFE0F"},{v:13,emoji:"\u{1F978}"},{v:12.1,emoji:"\u{1F9D1}\u200D\u{1F9B0}"},{v:12,emoji:"\u{1F971}"},{v:11,emoji:"\u{1F970}"},{v:5,emoji:"\u{1F929}"},{v:4,emoji:"\u{1F471}\u200D\u2640\uFE0F"},{v:3,emoji:"\u{1F923}"},{v:2,emoji:"\u{1F44B}\u{1F3FB}"},{v:1,emoji:"\u{1F643}"}];function nre(){for(let{v:o,emoji:t}of ire)if(kL(t))return o}function rre(){return!kL("\u{1F1E8}\u{1F1E6}")}function kL(o){if(g_.has(o))return g_.get(o);let t=ore(o);return g_.set(o,t),t}var ore=(()=>{let o=null;try{navigator.userAgent.includes("jsdom")||(o=document.createElement("canvas").getContext("2d",{willReadFrequently:!0}))}catch(r){}if(!o)return()=>!1;let t=25,i=20,n=Math.floor(t/2);return o.font=n+"px Arial, Sans-Serif",o.textBaseline="top",o.canvas.width=i*2,o.canvas.height=t,r=>{o.clearRect(0,0,i*2,t),o.fillStyle="#FF0000",o.fillText(r,0,22),o.fillStyle="#0000FF",o.fillText(r,i,22);let a=o.getImageData(0,0,i,t).data,s=a.length,l=0;for(;l<s&&!a[l+3];l+=4);if(l>=s)return!1;let c=i+l/4%i,d=Math.floor(l/4/i),f=o.getImageData(c,d,1,1).data;return!(a[l]!==f[0]||a[l+2]!==f[2]||o.measureText(r).width>=i)}})(),U8={latestVersion:nre,noCountryFlags:rre},w_=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart"],yn=null;function are(o){yn||(yn=Ml.get("frequently")||{});let t=o.id||o;t&&(yn[t]||(yn[t]=0),yn[t]+=1,Ml.set("last",t),Ml.set("frequently",yn))}function sre({maxFrequentRows:o,perLine:t}){if(!o)return[];yn||(yn=Ml.get("frequently"));let i=[];if(!yn){yn={};for(let a in w_.slice(0,t)){let s=w_[a];yn[s]=t-a,i.push(s)}return i}let n=o*t,r=Ml.get("last");for(let a in yn)i.push(a);if(i.sort((a,s)=>{let l=yn[s],c=yn[a];return l==c?a.localeCompare(s):l-c}),i.length>n){let a=i.slice(n);i=i.slice(0,n);for(let s of a)s!=r&&delete yn[s];r&&i.indexOf(r)==-1&&(delete yn[i[i.length-1]],i.splice(-1,1,r)),Ml.set("frequently",yn)}return i}var _L={add:are,get:sre,DEFAULTS:w_},zL={};zL=JSON.parse('{"search":"Search","search_no_results_1":"Oh no!","search_no_results_2":"That emoji couldn\u2019t be found","pick":"Pick an emoji\u2026","add_custom":"Add custom emoji","categories":{"activity":"Activity","custom":"Custom","flags":"Flags","foods":"Food & Drink","frequent":"Frequently used","nature":"Animals & Nature","objects":"Objects","people":"Smileys & People","places":"Travel & Places","search":"Search Results","symbols":"Symbols"},"skins":{"1":"Default","2":"Light","3":"Medium-Light","4":"Medium","5":"Medium-Dark","6":"Dark","choose":"Choose default skin tone"}}');var Es={autoFocus:{value:!1},dynamicWidth:{value:!1},emojiButtonColors:{value:null},emojiButtonRadius:{value:"100%"},emojiButtonSize:{value:36},emojiSize:{value:24},emojiVersion:{value:15,choices:[1,2,3,4,5,11,12,12.1,13,13.1,14,15]},exceptEmojis:{value:[]},icons:{value:"auto",choices:["auto","outline","solid"]},locale:{value:"en",choices:["en","ar","be","cs","de","es","fa","fi","fr","hi","it","ja","ko","nl","pl","pt","ru","sa","tr","uk","vi","zh"]},maxFrequentRows:{value:4},navPosition:{value:"top",choices:["top","bottom","none"]},noCountryFlags:{value:!1},noResultsEmoji:{value:null},perLine:{value:9},previewEmoji:{value:null},previewPosition:{value:"bottom",choices:["top","bottom","none"]},searchPosition:{value:"sticky",choices:["sticky","static","none"]},set:{value:"native",choices:["native","apple","facebook","google","twitter"]},skin:{value:1,choices:[1,2,3,4,5,6]},skinTonePosition:{value:"preview",choices:["preview","search","none"]},theme:{value:"auto",choices:["auto","light","dark"]},categories:null,categoryIcons:null,custom:null,data:null,i18n:null,getImageURL:null,getSpritesheetURL:null,onAddCustomEmoji:null,onClickOutside:null,onEmojiSelect:null,stickySearch:{deprecated:!0,value:!0}},Pn=null,bt=null,b_={};async function G8(o){if(b_[o])return b_[o];let i=await(await fetch(o)).json();return b_[o]=i,i}var v_=null;var CL=null,SL=!1;function ql(o,{caller:t}={}){return v_||(v_=new Promise(i=>{CL=i})),o?lre(o):t&&!SL&&console.warn(`\`${t}\` requires data to be initialized first. Promise will be pending until \`init\` is called.`),v_}async function lre(o){SL=!0;let{emojiVersion:t,set:i,locale:n}=o;if(t||(t=Es.emojiVersion.value),i||(i=Es.set.value),n||(n=Es.locale.value),bt)bt.categories=bt.categories.filter(c=>!c.name);else{bt=(typeof o.data=="function"?await o.data():o.data)||await G8(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/sets/${t}/${i}.json`),bt.emoticons={},bt.natives={},bt.categories.unshift({id:"frequent",emojis:[]});for(let c in bt.aliases){let d=bt.aliases[c],f=bt.emojis[d];f&&(f.aliases||(f.aliases=[]),f.aliases.push(c))}bt.originalCategories=bt.categories}if(Pn=(typeof o.i18n=="function"?await o.i18n():o.i18n)||(n=="en"?cL(zL):await G8(`https://cdn.jsdelivr.net/npm/@emoji-mart/data@latest/i18n/${n}.json`)),o.custom)for(let c in o.custom){c=parseInt(c);let d=o.custom[c],f=o.custom[c-1];if(!(!d.emojis||!d.emojis.length)){d.id||(d.id=`custom_${c+1}`),d.name||(d.name=Pn.categories.custom),f&&!d.icon&&(d.target=f.target||f),bt.categories.push(d);for(let h of d.emojis)bt.emojis[h.id]=h}}o.categories&&(bt.categories=bt.originalCategories.filter(c=>o.categories.indexOf(c.id)!=-1).sort((c,d)=>{let f=o.categories.indexOf(c.id),h=o.categories.indexOf(d.id);return f-h}));let r=null,a=null;i=="native"&&(r=U8.latestVersion(),a=o.noCountryFlags||U8.noCountryFlags());let s=bt.categories.length,l=!1;for(;s--;){let c=bt.categories[s];if(c.id=="frequent"){let{maxFrequentRows:h,perLine:p}=o;h=h>=0?h:Es.maxFrequentRows.value,p||(p=Es.perLine.value),c.emojis=_L.get({maxFrequentRows:h,perLine:p})}if(!c.emojis||!c.emojis.length){bt.categories.splice(s,1);continue}let{categoryIcons:d}=o;if(d){let h=d[c.id];h&&!c.icon&&(c.icon=h)}let f=c.emojis.length;for(;f--;){let h=c.emojis[f],p=h.id?h:bt.emojis[h],m=()=>{c.emojis.splice(f,1)};if(!p||o.exceptEmojis&&o.exceptEmojis.includes(p.id)){m();continue}if(r&&p.version>r){m();continue}if(a&&c.id=="flags"&&!ure.includes(p.id)){m();continue}if(!p.search){if(l=!0,p.search=","+[[p.id,!1],[p.name,!0],[p.keywords,!1],[p.emoticons,!1]].map(([b,x])=>{if(b)return(Array.isArray(b)?b:[b]).map(k=>(x?k.split(/[-|_|\s]+/):[k]).map(z=>z.toLowerCase())).flat()}).flat().filter(b=>b&&b.trim()).join(","),p.emoticons)for(let b of p.emoticons)bt.emoticons[b]||(bt.emoticons[b]=p.id);let v=0;for(let b of p.skins){if(!b)continue;v++;let{native:x}=b;x&&(bt.natives[x]=p.id,p.search+=`,${x}`);let k=v==1?"":`:skin-tone-${v}:`;b.shortcodes=`:${p.id}:${k}`}}}}l&&Ll.reset(),CL()}function AL(o,t,i){o||(o={});let n={};for(let r in t)n[r]=EL(r,o,t,i);return n}function EL(o,t,i,n){let r=i[o],a=n&&n.getAttribute(o)||(t[o]!=null&&t[o]!=null?t[o]:null);return r&&(a!=null&&r.value&&typeof r.value!=typeof a&&(typeof r.value=="boolean"?a=a!="false":a=r.value.constructor(a)),r.transform&&a&&(a=r.transform(a)),(a==null||r.choices&&r.choices.indexOf(a)==-1)&&(a=r.value)),a}var cre=/^(?:\:([^\:]+)\:)(?:\:skin-tone-(\d)\:)?$/,k_=null;function dre(o){return o.id?o:bt.emojis[o]||bt.emojis[bt.aliases[o]]||bt.emojis[bt.natives[o]]}function fre(){k_=null}async function hre(o,{maxResults:t,caller:i}={}){if(!o||!o.trim().length)return null;t||(t=90),await ql(null,{caller:i||"SearchIndex.search"});let n=o.toLowerCase().replace(/(\w)-/,"$1 ").split(/[\s|,]+/).filter((l,c,d)=>l.trim()&&d.indexOf(l)==c);if(!n.length)return;let r=k_||(k_=Object.values(bt.emojis)),a,s;for(let l of n){if(!r.length)break;a=[],s={};for(let c of r){if(!c.search)continue;let d=c.search.indexOf(`,${l}`);d!=-1&&(a.push(c),s[c.id]||(s[c.id]=0),s[c.id]+=c.id==l?0:d+1)}r=a}return a.length<2||(a.sort((l,c)=>{let d=s[l.id],f=s[c.id];return d==f?l.id.localeCompare(c.id):d-f}),a.length>t&&(a=a.slice(0,t))),a}var Ll={search:hre,get:dre,reset:fre,SHORTCODES_REGEX:cre},ure=["checkered_flag","crossed_flags","pirate_flag","rainbow-flag","transgender_flag","triangular_flag_on_post","waving_black_flag","waving_white_flag"];function pre(o,t){return Array.isArray(o)&&Array.isArray(t)&&o.length===t.length&&o.every((i,n)=>i==t[n])}async function mre(o=1){for(let t in[...Array(o).keys()])await new Promise(requestAnimationFrame)}function gre(o,{skinIndex:t=0}={}){let i=o.skins[t]||(t=0,o.skins[t]),n={id:o.id,name:o.name,native:i.native,unified:i.unified,keywords:o.keywords,shortcodes:i.shortcodes||o.shortcodes};return o.skins.length>1&&(n.skin=t+1),i.src&&(n.src=i.src),o.aliases&&o.aliases.length&&(n.aliases=o.aliases),o.emoticons&&o.emoticons.length&&(n.emoticons=o.emoticons),n}var bre={activity:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ye("path",{d:"M12 0C5.373 0 0 5.372 0 12c0 6.627 5.373 12 12 12 6.628 0 12-5.373 12-12 0-6.628-5.372-12-12-12m9.949 11H17.05c.224-2.527 1.232-4.773 1.968-6.113A9.966 9.966 0 0 1 21.949 11M13 11V2.051a9.945 9.945 0 0 1 4.432 1.564c-.858 1.491-2.156 4.22-2.392 7.385H13zm-2 0H8.961c-.238-3.165-1.536-5.894-2.393-7.385A9.95 9.95 0 0 1 11 2.051V11zm0 2v8.949a9.937 9.937 0 0 1-4.432-1.564c.857-1.492 2.155-4.221 2.393-7.385H11zm4.04 0c.236 3.164 1.534 5.893 2.392 7.385A9.92 9.92 0 0 1 13 21.949V13h2.04zM4.982 4.887C5.718 6.227 6.726 8.473 6.951 11h-4.9a9.977 9.977 0 0 1 2.931-6.113M2.051 13h4.9c-.226 2.527-1.233 4.771-1.969 6.113A9.972 9.972 0 0 1 2.051 13m16.967 6.113c-.735-1.342-1.744-3.586-1.968-6.113h4.899a9.961 9.961 0 0 1-2.931 6.113"})}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M16.17 337.5c0 44.98 7.565 83.54 13.98 107.9C35.22 464.3 50.46 496 174.9 496c9.566 0 19.59-.4707 29.84-1.271L17.33 307.3C16.53 317.6 16.17 327.7 16.17 337.5zM495.8 174.5c0-44.98-7.565-83.53-13.98-107.9c-4.688-17.54-18.34-31.23-36.04-35.95C435.5 27.91 392.9 16 337 16c-9.564 0-19.59 .4707-29.84 1.271l187.5 187.5C495.5 194.4 495.8 184.3 495.8 174.5zM26.77 248.8l236.3 236.3c142-36.1 203.9-150.4 222.2-221.1L248.9 26.87C106.9 62.96 45.07 177.2 26.77 248.8zM256 335.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L164.7 283.3C161.6 280.2 160 276.1 160 271.1c0-8.529 6.865-16 16-16c4.095 0 8.189 1.562 11.31 4.688l64.01 64C254.4 327.8 256 331.9 256 335.1zM304 287.1c0 9.141-7.474 16-16 16c-4.094 0-8.188-1.564-11.31-4.689L212.7 235.3C209.6 232.2 208 228.1 208 223.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01C302.5 279.8 304 283.9 304 287.1zM256 175.1c0-9.141 7.473-16 16-16c4.094 0 8.188 1.562 11.31 4.688l64.01 64.01c3.125 3.125 4.688 7.219 4.688 11.31c0 9.133-7.468 16-16 16c-4.094 0-8.189-1.562-11.31-4.688l-64.01-64.01C257.6 184.2 256 180.1 256 175.1z"})})},custom:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:ye("path",{d:"M417.1 368c-5.937 10.27-16.69 16-27.75 16c-5.422 0-10.92-1.375-15.97-4.281L256 311.4V448c0 17.67-14.33 32-31.1 32S192 465.7 192 448V311.4l-118.3 68.29C68.67 382.6 63.17 384 57.75 384c-11.06 0-21.81-5.734-27.75-16c-8.828-15.31-3.594-34.88 11.72-43.72L159.1 256L41.72 187.7C26.41 178.9 21.17 159.3 29.1 144C36.63 132.5 49.26 126.7 61.65 128.2C65.78 128.7 69.88 130.1 73.72 132.3L192 200.6V64c0-17.67 14.33-32 32-32S256 46.33 256 64v136.6l118.3-68.29c3.838-2.213 7.939-3.539 12.07-4.051C398.7 126.7 411.4 132.5 417.1 144c8.828 15.31 3.594 34.88-11.72 43.72L288 256l118.3 68.28C421.6 333.1 426.8 352.7 417.1 368z"})}),flags:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ye("path",{d:"M0 0l6.084 24H8L1.916 0zM21 5h-4l-1-4H4l3 12h3l1 4h13L21 5zM6.563 3h7.875l2 8H8.563l-2-8zm8.832 10l-2.856 1.904L12.063 13h3.332zM19 13l-1.5-6h1.938l2 8H16l3-2z"})}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M64 496C64 504.8 56.75 512 48 512h-32C7.25 512 0 504.8 0 496V32c0-17.75 14.25-32 32-32s32 14.25 32 32V496zM476.3 0c-6.365 0-13.01 1.35-19.34 4.233c-45.69 20.86-79.56 27.94-107.8 27.94c-59.96 0-94.81-31.86-163.9-31.87C160.9 .3055 131.6 4.867 96 15.75v350.5c32-9.984 59.87-14.1 84.85-14.1c73.63 0 124.9 31.78 198.6 31.78c31.91 0 68.02-5.971 111.1-23.09C504.1 355.9 512 344.4 512 332.1V30.73C512 11.1 495.3 0 476.3 0z"})})},foods:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ye("path",{d:"M17 4.978c-1.838 0-2.876.396-3.68.934.513-1.172 1.768-2.934 4.68-2.934a1 1 0 0 0 0-2c-2.921 0-4.629 1.365-5.547 2.512-.064.078-.119.162-.18.244C11.73 1.838 10.798.023 9.207.023 8.579.022 7.85.306 7 .978 5.027 2.54 5.329 3.902 6.492 4.999 3.609 5.222 0 7.352 0 12.969c0 4.582 4.961 11.009 9 11.009 1.975 0 2.371-.486 3-1 .629.514 1.025 1 3 1 4.039 0 9-6.418 9-11 0-5.953-4.055-8-7-8M8.242 2.546c.641-.508.943-.523.965-.523.426.169.975 1.405 1.357 3.055-1.527-.629-2.741-1.352-2.98-1.846.059-.112.241-.356.658-.686M15 21.978c-1.08 0-1.21-.109-1.559-.402l-.176-.146c-.367-.302-.816-.452-1.266-.452s-.898.15-1.266.452l-.176.146c-.347.292-.477.402-1.557.402-2.813 0-7-5.389-7-9.009 0-5.823 4.488-5.991 5-5.991 1.939 0 2.484.471 3.387 1.251l.323.276a1.995 1.995 0 0 0 2.58 0l.323-.276c.902-.78 1.447-1.251 3.387-1.251.512 0 5 .168 5 6 0 3.617-4.187 9-7 9"})}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M481.9 270.1C490.9 279.1 496 291.3 496 304C496 316.7 490.9 328.9 481.9 337.9C472.9 346.9 460.7 352 448 352H64C51.27 352 39.06 346.9 30.06 337.9C21.06 328.9 16 316.7 16 304C16 291.3 21.06 279.1 30.06 270.1C39.06 261.1 51.27 256 64 256H448C460.7 256 472.9 261.1 481.9 270.1zM475.3 388.7C478.3 391.7 480 395.8 480 400V416C480 432.1 473.3 449.3 461.3 461.3C449.3 473.3 432.1 480 416 480H96C79.03 480 62.75 473.3 50.75 461.3C38.74 449.3 32 432.1 32 416V400C32 395.8 33.69 391.7 36.69 388.7C39.69 385.7 43.76 384 48 384H464C468.2 384 472.3 385.7 475.3 388.7zM50.39 220.8C45.93 218.6 42.03 215.5 38.97 211.6C35.91 207.7 33.79 203.2 32.75 198.4C31.71 193.5 31.8 188.5 32.99 183.7C54.98 97.02 146.5 32 256 32C365.5 32 457 97.02 479 183.7C480.2 188.5 480.3 193.5 479.2 198.4C478.2 203.2 476.1 207.7 473 211.6C469.1 215.5 466.1 218.6 461.6 220.8C457.2 222.9 452.3 224 447.3 224H64.67C59.73 224 54.84 222.9 50.39 220.8zM372.7 116.7C369.7 119.7 368 123.8 368 128C368 131.2 368.9 134.3 370.7 136.9C372.5 139.5 374.1 141.6 377.9 142.8C380.8 143.1 384 144.3 387.1 143.7C390.2 143.1 393.1 141.6 395.3 139.3C397.6 137.1 399.1 134.2 399.7 131.1C400.3 128 399.1 124.8 398.8 121.9C397.6 118.1 395.5 116.5 392.9 114.7C390.3 112.9 387.2 111.1 384 111.1C379.8 111.1 375.7 113.7 372.7 116.7V116.7zM244.7 84.69C241.7 87.69 240 91.76 240 96C240 99.16 240.9 102.3 242.7 104.9C244.5 107.5 246.1 109.6 249.9 110.8C252.8 111.1 256 112.3 259.1 111.7C262.2 111.1 265.1 109.6 267.3 107.3C269.6 105.1 271.1 102.2 271.7 99.12C272.3 96.02 271.1 92.8 270.8 89.88C269.6 86.95 267.5 84.45 264.9 82.7C262.3 80.94 259.2 79.1 256 79.1C251.8 79.1 247.7 81.69 244.7 84.69V84.69zM116.7 116.7C113.7 119.7 112 123.8 112 128C112 131.2 112.9 134.3 114.7 136.9C116.5 139.5 118.1 141.6 121.9 142.8C124.8 143.1 128 144.3 131.1 143.7C134.2 143.1 137.1 141.6 139.3 139.3C141.6 137.1 143.1 134.2 143.7 131.1C144.3 128 143.1 124.8 142.8 121.9C141.6 118.1 139.5 116.5 136.9 114.7C134.3 112.9 131.2 111.1 128 111.1C123.8 111.1 119.7 113.7 116.7 116.7L116.7 116.7z"})})},frequent:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M13 4h-2l-.001 7H9v2h2v2h2v-2h4v-2h-4z"}),ye("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512zM232 256C232 264 236 271.5 242.7 275.1L338.7 339.1C349.7 347.3 364.6 344.3 371.1 333.3C379.3 322.3 376.3 307.4 365.3 300L280 243.2V120C280 106.7 269.3 96 255.1 96C242.7 96 231.1 106.7 231.1 120L232 256z"})})},nature:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M15.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 15.5 8M8.5 8a1.5 1.5 0 1 0 .001 3.001A1.5 1.5 0 0 0 8.5 8"}),ye("path",{d:"M18.933 0h-.027c-.97 0-2.138.787-3.018 1.497-1.274-.374-2.612-.51-3.887-.51-1.285 0-2.616.133-3.874.517C7.245.79 6.069 0 5.093 0h-.027C3.352 0 .07 2.67.002 7.026c-.039 2.479.276 4.238 1.04 5.013.254.258.882.677 1.295.882.191 3.177.922 5.238 2.536 6.38.897.637 2.187.949 3.2 1.102C8.04 20.6 8 20.795 8 21c0 1.773 2.35 3 4 3 1.648 0 4-1.227 4-3 0-.201-.038-.393-.072-.586 2.573-.385 5.435-1.877 5.925-7.587.396-.22.887-.568 1.104-.788.763-.774 1.079-2.534 1.04-5.013C23.929 2.67 20.646 0 18.933 0M3.223 9.135c-.237.281-.837 1.155-.884 1.238-.15-.41-.368-1.349-.337-3.291.051-3.281 2.478-4.972 3.091-5.031.256.015.731.27 1.265.646-1.11 1.171-2.275 2.915-2.352 5.125-.133.546-.398.858-.783 1.313M12 22c-.901 0-1.954-.693-2-1 0-.654.475-1.236 1-1.602V20a1 1 0 1 0 2 0v-.602c.524.365 1 .947 1 1.602-.046.307-1.099 1-2 1m3-3.48v.02a4.752 4.752 0 0 0-1.262-1.02c1.092-.516 2.239-1.334 2.239-2.217 0-1.842-1.781-2.195-3.977-2.195-2.196 0-3.978.354-3.978 2.195 0 .883 1.148 1.701 2.238 2.217A4.8 4.8 0 0 0 9 18.539v-.025c-1-.076-2.182-.281-2.973-.842-1.301-.92-1.838-3.045-1.853-6.478l.023-.041c.496-.826 1.49-1.45 1.804-3.102 0-2.047 1.357-3.631 2.362-4.522C9.37 3.178 10.555 3 11.948 3c1.447 0 2.685.192 3.733.57 1 .9 2.316 2.465 2.316 4.48.313 1.651 1.307 2.275 1.803 3.102.035.058.068.117.102.178-.059 5.967-1.949 7.01-4.902 7.19m6.628-8.202c-.037-.065-.074-.13-.113-.195a7.587 7.587 0 0 0-.739-.987c-.385-.455-.648-.768-.782-1.313-.076-2.209-1.241-3.954-2.353-5.124.531-.376 1.004-.63 1.261-.647.636.071 3.044 1.764 3.096 5.031.027 1.81-.347 3.218-.37 3.235"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512",children:ye("path",{d:"M332.7 19.85C334.6 8.395 344.5 0 356.1 0C363.6 0 370.6 3.52 375.1 9.502L392 32H444.1C456.8 32 469.1 37.06 478.1 46.06L496 64H552C565.3 64 576 74.75 576 88V112C576 156.2 540.2 192 496 192H426.7L421.6 222.5L309.6 158.5L332.7 19.85zM448 64C439.2 64 432 71.16 432 80C432 88.84 439.2 96 448 96C456.8 96 464 88.84 464 80C464 71.16 456.8 64 448 64zM416 256.1V480C416 497.7 401.7 512 384 512H352C334.3 512 320 497.7 320 480V364.8C295.1 377.1 268.8 384 240 384C211.2 384 184 377.1 160 364.8V480C160 497.7 145.7 512 128 512H96C78.33 512 64 497.7 64 480V249.8C35.23 238.9 12.64 214.5 4.836 183.3L.9558 167.8C-3.331 150.6 7.094 133.2 24.24 128.1C41.38 124.7 58.76 135.1 63.05 152.2L66.93 167.8C70.49 182 83.29 191.1 97.97 191.1H303.8L416 256.1z"})})},objects:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M12 0a9 9 0 0 0-5 16.482V21s2.035 3 5 3 5-3 5-3v-4.518A9 9 0 0 0 12 0zm0 2c3.86 0 7 3.141 7 7s-3.14 7-7 7-7-3.141-7-7 3.14-7 7-7zM9 17.477c.94.332 1.946.523 3 .523s2.06-.19 3-.523v.834c-.91.436-1.925.689-3 .689a6.924 6.924 0 0 1-3-.69v-.833zm.236 3.07A8.854 8.854 0 0 0 12 21c.965 0 1.888-.167 2.758-.451C14.155 21.173 13.153 22 12 22c-1.102 0-2.117-.789-2.764-1.453z"}),ye("path",{d:"M14.745 12.449h-.004c-.852-.024-1.188-.858-1.577-1.824-.421-1.061-.703-1.561-1.182-1.566h-.009c-.481 0-.783.497-1.235 1.537-.436.982-.801 1.811-1.636 1.791l-.276-.043c-.565-.171-.853-.691-1.284-1.794-.125-.313-.202-.632-.27-.913-.051-.213-.127-.53-.195-.634C7.067 9.004 7.039 9 6.99 9A1 1 0 0 1 7 7h.01c1.662.017 2.015 1.373 2.198 2.134.486-.981 1.304-2.058 2.797-2.075 1.531.018 2.28 1.153 2.731 2.141l.002-.008C14.944 8.424 15.327 7 16.979 7h.032A1 1 0 1 1 17 9h-.011c-.149.076-.256.474-.319.709a6.484 6.484 0 0 1-.311.951c-.429.973-.79 1.789-1.614 1.789"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:ye("path",{d:"M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z"})})},people:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M12 0C5.373 0 0 5.373 0 12s5.373 12 12 12 12-5.373 12-12S18.627 0 12 0m0 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10"}),ye("path",{d:"M8 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 8 7M16 7a2 2 0 1 0-.001 3.999A2 2 0 0 0 16 7M15.232 15c-.693 1.195-1.87 2-3.349 2-1.477 0-2.655-.805-3.347-2H15m3-2H6a6 6 0 1 0 12 0"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256zM256 432C332.1 432 396.2 382 415.2 314.1C419.1 300.4 407.8 288 393.6 288H118.4C104.2 288 92.92 300.4 96.76 314.1C115.8 382 179.9 432 256 432V432zM176.4 160C158.7 160 144.4 174.3 144.4 192C144.4 209.7 158.7 224 176.4 224C194 224 208.4 209.7 208.4 192C208.4 174.3 194 160 176.4 160zM336.4 224C354 224 368.4 209.7 368.4 192C368.4 174.3 354 160 336.4 160C318.7 160 304.4 174.3 304.4 192C304.4 209.7 318.7 224 336.4 224z"})})},places:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[ye("path",{d:"M6.5 12C5.122 12 4 13.121 4 14.5S5.122 17 6.5 17 9 15.879 9 14.5 7.878 12 6.5 12m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5M17.5 12c-1.378 0-2.5 1.121-2.5 2.5s1.122 2.5 2.5 2.5 2.5-1.121 2.5-2.5-1.122-2.5-2.5-2.5m0 3c-.275 0-.5-.225-.5-.5s.225-.5.5-.5.5.225.5.5-.225.5-.5.5"}),ye("path",{d:"M22.482 9.494l-1.039-.346L21.4 9h.6c.552 0 1-.439 1-.992 0-.006-.003-.008-.003-.008H23c0-1-.889-2-1.984-2h-.642l-.731-1.717C19.262 3.012 18.091 2 16.764 2H7.236C5.909 2 4.738 3.012 4.357 4.283L3.626 6h-.642C1.889 6 1 7 1 8h.003S1 8.002 1 8.008C1 8.561 1.448 9 2 9h.6l-.043.148-1.039.346a2.001 2.001 0 0 0-1.359 2.097l.751 7.508a1 1 0 0 0 .994.901H3v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h6v1c0 1.103.896 2 2 2h2c1.104 0 2-.897 2-2v-1h1.096a.999.999 0 0 0 .994-.901l.751-7.508a2.001 2.001 0 0 0-1.359-2.097M6.273 4.857C6.402 4.43 6.788 4 7.236 4h9.527c.448 0 .834.43.963.857L19.313 9H4.688l1.585-4.143zM7 21H5v-1h2v1zm12 0h-2v-1h2v1zm2.189-3H2.811l-.662-6.607L3 11h18l.852.393L21.189 18z"})]}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M39.61 196.8L74.8 96.29C88.27 57.78 124.6 32 165.4 32H346.6C387.4 32 423.7 57.78 437.2 96.29L472.4 196.8C495.6 206.4 512 229.3 512 256V448C512 465.7 497.7 480 480 480H448C430.3 480 416 465.7 416 448V400H96V448C96 465.7 81.67 480 64 480H32C14.33 480 0 465.7 0 448V256C0 229.3 16.36 206.4 39.61 196.8V196.8zM109.1 192H402.9L376.8 117.4C372.3 104.6 360.2 96 346.6 96H165.4C151.8 96 139.7 104.6 135.2 117.4L109.1 192zM96 256C78.33 256 64 270.3 64 288C64 305.7 78.33 320 96 320C113.7 320 128 305.7 128 288C128 270.3 113.7 256 96 256zM416 320C433.7 320 448 305.7 448 288C448 270.3 433.7 256 416 256C398.3 256 384 270.3 384 288C384 305.7 398.3 320 416 320z"})})},symbols:{outline:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:ye("path",{d:"M0 0h11v2H0zM4 11h3V6h4V4H0v2h4zM15.5 17c1.381 0 2.5-1.116 2.5-2.493s-1.119-2.493-2.5-2.493S13 13.13 13 14.507 14.119 17 15.5 17m0-2.986c.276 0 .5.222.5.493 0 .272-.224.493-.5.493s-.5-.221-.5-.493.224-.493.5-.493M21.5 19.014c-1.381 0-2.5 1.116-2.5 2.493S20.119 24 21.5 24s2.5-1.116 2.5-2.493-1.119-2.493-2.5-2.493m0 2.986a.497.497 0 0 1-.5-.493c0-.271.224-.493.5-.493s.5.222.5.493a.497.497 0 0 1-.5.493M22 13l-9 9 1.513 1.5 8.99-9.009zM17 11c2.209 0 4-1.119 4-2.5V2s.985-.161 1.498.949C23.01 4.055 23 6 23 6s1-1.119 1-3.135C24-.02 21 0 21 0h-2v6.347A5.853 5.853 0 0 0 17 6c-2.209 0-4 1.119-4 2.5s1.791 2.5 4 2.5M10.297 20.482l-1.475-1.585a47.54 47.54 0 0 1-1.442 1.129c-.307-.288-.989-1.016-2.045-2.183.902-.836 1.479-1.466 1.729-1.892s.376-.871.376-1.336c0-.592-.273-1.178-.818-1.759-.546-.581-1.329-.871-2.349-.871-1.008 0-1.79.293-2.344.879-.556.587-.832 1.181-.832 1.784 0 .813.419 1.748 1.256 2.805-.847.614-1.444 1.208-1.794 1.784a3.465 3.465 0 0 0-.523 1.833c0 .857.308 1.56.924 2.107.616.549 1.423.823 2.42.823 1.173 0 2.444-.379 3.813-1.137L8.235 24h2.819l-2.09-2.383 1.333-1.135zm-6.736-6.389a1.02 1.02 0 0 1 .73-.286c.31 0 .559.085.747.254a.849.849 0 0 1 .283.659c0 .518-.419 1.112-1.257 1.784-.536-.651-.805-1.231-.805-1.742a.901.901 0 0 1 .302-.669M3.74 22c-.427 0-.778-.116-1.057-.349-.279-.232-.418-.487-.418-.766 0-.594.509-1.288 1.527-2.083.968 1.134 1.717 1.946 2.248 2.438-.921.507-1.686.76-2.3.76"})}),solid:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:ye("path",{d:"M500.3 7.251C507.7 13.33 512 22.41 512 31.1V175.1C512 202.5 483.3 223.1 447.1 223.1C412.7 223.1 383.1 202.5 383.1 175.1C383.1 149.5 412.7 127.1 447.1 127.1V71.03L351.1 90.23V207.1C351.1 234.5 323.3 255.1 287.1 255.1C252.7 255.1 223.1 234.5 223.1 207.1C223.1 181.5 252.7 159.1 287.1 159.1V63.1C287.1 48.74 298.8 35.61 313.7 32.62L473.7 .6198C483.1-1.261 492.9 1.173 500.3 7.251H500.3zM74.66 303.1L86.5 286.2C92.43 277.3 102.4 271.1 113.1 271.1H174.9C185.6 271.1 195.6 277.3 201.5 286.2L213.3 303.1H239.1C266.5 303.1 287.1 325.5 287.1 351.1V463.1C287.1 490.5 266.5 511.1 239.1 511.1H47.1C21.49 511.1-.0019 490.5-.0019 463.1V351.1C-.0019 325.5 21.49 303.1 47.1 303.1H74.66zM143.1 359.1C117.5 359.1 95.1 381.5 95.1 407.1C95.1 434.5 117.5 455.1 143.1 455.1C170.5 455.1 191.1 434.5 191.1 407.1C191.1 381.5 170.5 359.1 143.1 359.1zM440.3 367.1H496C502.7 367.1 508.6 372.1 510.1 378.4C513.3 384.6 511.6 391.7 506.5 396L378.5 508C372.9 512.1 364.6 513.3 358.6 508.9C352.6 504.6 350.3 496.6 353.3 489.7L391.7 399.1H336C329.3 399.1 323.4 395.9 321 389.6C318.7 383.4 320.4 376.3 325.5 371.1L453.5 259.1C459.1 255 467.4 254.7 473.4 259.1C479.4 263.4 481.6 271.4 478.7 278.3L440.3 367.1zM116.7 219.1L19.85 119.2C-8.112 90.26-6.614 42.31 24.85 15.34C51.82-8.137 93.26-3.642 118.2 21.83L128.2 32.32L137.7 21.83C162.7-3.642 203.6-8.137 231.6 15.34C262.6 42.31 264.1 90.26 236.1 119.2L139.7 219.1C133.2 225.6 122.7 225.6 116.7 219.1H116.7z"})})}},vre={loupe:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ye("path",{d:"M12.9 14.32a8 8 0 1 1 1.41-1.41l5.35 5.33-1.42 1.42-5.33-5.34zM8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"})}),delete:ye("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:ye("path",{d:"M10 8.586L2.929 1.515 1.515 2.929 8.586 10l-7.071 7.071 1.414 1.414L10 11.414l7.071 7.071 1.414-1.414L11.414 10l7.071-7.071-1.414-1.414L10 8.586z"})})},r0={categories:bre,search:vre};function __(o){let{id:t,skin:i,emoji:n}=o;if(o.shortcodes){let l=o.shortcodes.match(Ll.SHORTCODES_REGEX);l&&(t=l[1],l[2]&&(i=l[2]))}if(n||(n=Ll.get(t||o.native)),!n)return o.fallback;let r=n.skins[i-1]||n.skins[0],a=r.src||(o.set!="native"&&!o.spritesheet?typeof o.getImageURL=="function"?o.getImageURL(o.set,r.unified):`https://cdn.jsdelivr.net/npm/emoji-datasource-${o.set}@15.0.1/img/${o.set}/64/${r.unified}.png`:void 0),s=typeof o.getSpritesheetURL=="function"?o.getSpritesheetURL(o.set):`https://cdn.jsdelivr.net/npm/emoji-datasource-${o.set}@15.0.1/img/${o.set}/sheets-256/64.png`;return ye("span",{class:"emoji-mart-emoji","data-emoji-set":o.set,children:a?ye("img",{style:{maxWidth:o.size||"1em",maxHeight:o.size||"1em",display:"inline-block"},alt:r.native||r.shortcodes,src:a}):o.set=="native"?ye("span",{style:{fontSize:o.size,fontFamily:'"EmojiMart", "Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "Android Emoji"'},children:r.native}):ye("span",{style:{display:"block",width:o.size,height:o.size,backgroundImage:`url(${s})`,backgroundSize:`${100*bt.sheet.cols}% ${100*bt.sheet.rows}%`,backgroundPosition:`${100/(bt.sheet.cols-1)*r.x}% ${100/(bt.sheet.rows-1)*r.y}%`}})})}var yre=typeof window!="undefined"&&window.HTMLElement?window.HTMLElement:Object,o0=class extends yre{static get observedAttributes(){return Object.keys(this.Props)}update(t={}){for(let i in t)this.attributeChangedCallback(i,null,t[i])}attributeChangedCallback(t,i,n){if(!this.component)return;let r=EL(t,{[t]:n},this.constructor.Props,this);this.component.componentWillReceiveProps?this.component.componentWillReceiveProps({[t]:r}):(this.component.props[t]=r,this.component.forceUpdate())}disconnectedCallback(){this.disconnected=!0,this.component&&this.component.unregister&&this.component.unregister()}constructor(t={}){if(super(),this.props=t,t.parent||t.ref){let i=null,n=t.parent||(i=t.ref&&t.ref.current);i&&(i.innerHTML=""),n&&n.appendChild(this)}}},z_=class extends o0{setShadow(){this.attachShadow({mode:"open"})}injectStyles(t){if(!t)return;let i=document.createElement("style");i.textContent=t,this.shadowRoot.insertBefore(i,this.shadowRoot.firstChild)}constructor(t,{styles:i}={}){super(t),this.setShadow(),this.injectStyles(i)}},TL={fallback:"",id:"",native:"",shortcodes:"",size:{value:"",transform:o=>/\D/.test(o)?o:`${o}px`},set:Es.set,skin:Es.skin},a0=class extends o0{async connectedCallback(){let t=AL(this.props,TL,this);t.element=this,t.ref=i=>{this.component=i},await ql(),!this.disconnected&&wL(ye(__,Ce({},t)),this)}constructor(t){super(t)}};ko(a0,"Props",TL);typeof customElements!="undefined"&&!customElements.get("em-emoji")&&customElements.define("em-emoji",a0);var xre,Jc,Y8;var C_=[],X8=Ke.__b,K8=Ke.__r,J8=Ke.diffed,Q8=Ke.__c,Z8=Ke.unmount;function wre(){var o;for(C_.sort(function(t,i){return t.__v.__b-i.__v.__b});o=C_.pop();)if(o.__P)try{o.__H.__h.forEach(Zv),o.__H.__h.forEach(S_),o.__H.__h=[]}catch(t){o.__H.__h=[],Ke.__e(t,o.__v)}}Ke.__b=function(o){Jc=null,X8&&X8(o)},Ke.__r=function(o){K8&&K8(o),xre=0;var t=(Jc=o.__c).__H;t&&(t.__h.forEach(Zv),t.__h.forEach(S_),t.__h=[])},Ke.diffed=function(o){J8&&J8(o);var t=o.__c;t&&t.__H&&t.__H.__h.length&&(C_.push(t)!==1&&Y8===Ke.requestAnimationFrame||((Y8=Ke.requestAnimationFrame)||function(i){var n,r=function(){clearTimeout(a),eL&&cancelAnimationFrame(n),setTimeout(i)},a=setTimeout(r,100);eL&&(n=requestAnimationFrame(r))})(wre)),Jc=null},Ke.__c=function(o,t){t.some(function(i){try{i.__h.forEach(Zv),i.__h=i.__h.filter(function(n){return!n.__||S_(n)})}catch(n){t.some(function(r){r.__h&&(r.__h=[])}),t=[],Ke.__e(n,i.__v)}}),Q8&&Q8(o,t)},Ke.unmount=function(o){Z8&&Z8(o);var t,i=o.__c;i&&i.__H&&(i.__H.__.forEach(function(n){try{Zv(n)}catch(r){t=r}}),t&&Ke.__e(t,i.__v))};var eL=typeof requestAnimationFrame=="function";function Zv(o){var t=Jc,i=o.__c;typeof i=="function"&&(o.__c=void 0,i()),Jc=t}function S_(o){var t=Jc;o.__c=o.__(),Jc=t}function kre(o,t){for(var i in t)o[i]=t[i];return o}function tL(o,t){for(var i in o)if(i!=="__source"&&!(i in t))return!0;for(var n in t)if(n!=="__source"&&o[n]!==t[n])return!0;return!1}function s0(o){this.props=o}(s0.prototype=new za).isPureReactComponent=!0,s0.prototype.shouldComponentUpdate=function(o,t){return tL(this.props,o)||tL(this.state,t)};var iL=Ke.__b;Ke.__b=function(o){o.type&&o.type.__f&&o.ref&&(o.props.ref=o.ref,o.ref=null),iL&&iL(o)};var REe=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var _re=Ke.__e;Ke.__e=function(o,t,i){if(o.then){for(var n,r=t;r=r.__;)if((n=r.__c)&&n.__c)return t.__e==null&&(t.__e=i.__e,t.__k=i.__k),n.__c(o,t)}_re(o,t,i)};var nL=Ke.unmount;function y_(){this.__u=0,this.t=null,this.__b=null}function ML(o){var t=o.__.__c;return t&&t.__e&&t.__e(o)}function Kv(){this.u=null,this.o=null}Ke.unmount=function(o){var t=o.__c;t&&t.__R&&t.__R(),t&&o.__h===!0&&(o.type=null),nL&&nL(o)},(y_.prototype=new za).__c=function(o,t){var i=t.__c,n=this;n.t==null&&(n.t=[]),n.t.push(i);var r=ML(n.__v),a=!1,s=function(){a||(a=!0,i.__R=null,r?r(l):l())};i.__R=s;var l=function(){if(!--n.__u){if(n.state.__e){var d=n.state.__e;n.__v.__k[0]=function h(p,m,v){return p&&(p.__v=null,p.__k=p.__k&&p.__k.map(function(b){return h(b,m,v)}),p.__c&&p.__c.__P===m&&(p.__e&&v.insertBefore(p.__e,p.__d),p.__c.__e=!0,p.__c.__P=v)),p}(d,d.__c.__P,d.__c.__O)}var f;for(n.setState({__e:n.__b=null});f=n.t.pop();)f.forceUpdate()}},c=t.__h===!0;n.__u++||c||n.setState({__e:n.__b=n.__v.__k[0]}),o.then(s,s)},y_.prototype.componentWillUnmount=function(){this.t=[]},y_.prototype.render=function(o,t){if(this.__b){if(this.__v.__k){var i=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=function a(s,l,c){return s&&(s.__c&&s.__c.__H&&(s.__c.__H.__.forEach(function(d){typeof d.__c=="function"&&d.__c()}),s.__c.__H=null),(s=kre({},s)).__c!=null&&(s.__c.__P===c&&(s.__c.__P=l),s.__c=null),s.__k=s.__k&&s.__k.map(function(d){return a(d,l,c)})),s}(this.__b,i,n.__O=n.__P)}this.__b=null}var r=t.__e&&x_(ih,null,o.fallback);return r&&(r.__h=null),[x_(ih,null,t.__e?null:o.children),r]};var rL=function(o,t,i){if(++i[1]===i[0]&&o.o.delete(t),o.props.revealOrder&&(o.props.revealOrder[0]!=="t"||!o.o.size))for(i=o.u;i;){for(;i.length>3;)i.pop()();if(i[1]<i[0])break;o.u=i=i[2]}};(Kv.prototype=new za).__e=function(o){var t=this,i=ML(t.__v),n=t.o.get(o);return n[0]++,function(r){var a=function(){t.props.revealOrder?(n.push(r),rL(t,o,n)):r()};i?i(a):a()}},Kv.prototype.render=function(o){this.u=null,this.o=new Map;var t=i0(o.children);o.revealOrder&&o.revealOrder[0]==="b"&&t.reverse();for(var i=t.length;i--;)this.o.set(t[i],this.u=[1,0,this.u]);return o.children},Kv.prototype.componentDidUpdate=Kv.prototype.componentDidMount=function(){var o=this;this.o.forEach(function(t,i){rL(o,i,t)})};var zre=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Cre=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Sre=typeof document!="undefined",Are=function(o){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/i:/fil|che|ra/i).test(o)};za.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(o){Object.defineProperty(za.prototype,o,{configurable:!0,get:function(){return this["UNSAFE_"+o]},set:function(t){Object.defineProperty(this,o,{configurable:!0,writable:!0,value:t})}})});var oL=Ke.event;function Ere(){}function Tre(){return this.cancelBubble}function Mre(){return this.defaultPrevented}Ke.event=function(o){return oL&&(o=oL(o)),o.persist=Ere,o.isPropagationStopped=Tre,o.isDefaultPrevented=Mre,o.nativeEvent=o};var Lre,aL={configurable:!0,get:function(){return this.class}},sL=Ke.vnode;Ke.vnode=function(o){var t=o.type,i=o.props,n=i;if(typeof t=="string"){var r=t.indexOf("-")===-1;for(var a in n={},i){var s=i[a];Sre&&a==="children"&&t==="noscript"||a==="value"&&"defaultValue"in i&&s==null||(a==="defaultValue"&&"value"in i&&i.value==null?a="value":a==="download"&&s===!0?s="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!Are(i.type)?a="oninput":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp)/.test(a)?a=a.toLowerCase():r&&Cre.test(a)?a=a.replace(/[A-Z0-9]/,"-$&").toLowerCase():s===null&&(s=void 0),n[a]=s)}t=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=i0(i.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),t=="select"&&n.defaultValue!=null&&(n.value=i0(i.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value})),o.props=n,i.class!=i.className&&(aL.enumerable="className"in i,i.className!=null&&(n.class=i.className),Object.defineProperty(n,"className",aL))}o.$$typeof=zre,sL&&sL(o)};var lL=Ke.__r;Ke.__r=function(o){lL&&lL(o),Lre=o.__c};var qre={light:"outline",dark:"solid"},A_=class extends s0{renderIcon(t){let{icon:i}=t;if(i){if(i.svg)return ye("span",{class:"flex",dangerouslySetInnerHTML:{__html:i.svg}});if(i.src)return ye("img",{src:i.src})}let n=r0.categories[t.id]||r0.categories.custom,r=this.props.icons=="auto"?qre[this.props.theme]:this.props.icons;return n[r]||n}render(){let t=null;return ye("nav",{id:"nav",class:"padding","data-position":this.props.position,dir:this.props.dir,children:ye("div",{class:"flex relative",children:[this.categories.map((i,n)=>{let r=i.name||Pn.categories[i.id],a=!this.props.unfocused&&i.id==this.state.categoryId;return a&&(t=n),ye("button",{"aria-label":r,"aria-selected":a||void 0,title:r,type:"button",class:"flex flex-grow flex-center",onMouseDown:s=>s.preventDefault(),onClick:()=>{this.props.onClick({category:i,i:n})},children:this.renderIcon(i)})}),ye("div",{class:"bar",style:{width:`${100/this.categories.length}%`,opacity:t==null?0:1,transform:this.props.dir==="rtl"?`scaleX(-1) translateX(${t*100}%)`:`translateX(${t*100}%)`}})]})})}constructor(){super(),this.categories=bt.categories.filter(t=>!t.target),this.state={categoryId:this.categories[0].id}}},E_=class extends s0{shouldComponentUpdate(t){for(let i in t)if(i!="children"&&t[i]!=this.props[i])return!0;return!1}render(){return this.props.children}},Jv={rowsPerRender:10},T_=class extends za{getInitialState(t=this.props){return{skin:Ml.get("skin")||t.skin,theme:this.initTheme(t.theme)}}componentWillMount(){this.dir=Pn.rtl?"rtl":"ltr",this.refs={menu:As(),navigation:As(),scroll:As(),search:As(),searchInput:As(),skinToneButton:As(),skinToneRadio:As()},this.initGrid(),this.props.stickySearch==!1&&this.props.searchPosition=="sticky"&&(console.warn("[EmojiMart] Deprecation warning: `stickySearch` has been renamed `searchPosition`."),this.props.searchPosition="static")}componentDidMount(){if(this.register(),this.shadowRoot=this.base.parentNode,this.props.autoFocus){let{searchInput:t}=this.refs;t.current&&t.current.focus()}}componentWillReceiveProps(t){this.nextState||(this.nextState={});for(let i in t)this.nextState[i]=t[i];clearTimeout(this.nextStateTimer),this.nextStateTimer=setTimeout(()=>{let i=!1;for(let r in this.nextState)this.props[r]=this.nextState[r],(r==="custom"||r==="categories")&&(i=!0);delete this.nextState;let n=this.getInitialState();if(i)return this.reset(n);this.setState(n)})}componentWillUnmount(){this.unregister()}async reset(t={}){await ql(this.props),this.initGrid(),this.unobserve(),this.setState(t,()=>{this.observeCategories(),this.observeRows()})}register(){document.addEventListener("click",this.handleClickOutside),this.observe()}unregister(){var t;document.removeEventListener("click",this.handleClickOutside),(t=this.darkMedia)==null||t.removeEventListener("change",this.darkMediaCallback),this.unobserve()}observe(){this.observeCategories(),this.observeRows()}unobserve({except:t=[]}={}){Array.isArray(t)||(t=[t]);for(let i of this.observers)t.includes(i)||i.disconnect();this.observers=[].concat(t)}initGrid(){let{categories:t}=bt;this.refs.categories=new Map;let i=bt.categories.map(r=>r.id).join(",");this.navKey&&this.navKey!=i&&this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0),this.navKey=i,this.grid=[],this.grid.setsize=0;let n=(r,a)=>{let s=[];s.__categoryId=a.id,s.__index=r.length,this.grid.push(s);let l=this.grid.length-1,c=l%Jv.rowsPerRender?{}:As();return c.index=l,c.posinset=this.grid.setsize+1,r.push(c),s};for(let r of t){let a=[],s=n(a,r);for(let l of r.emojis)s.length==this.getPerLine()&&(s=n(a,r)),this.grid.setsize+=1,s.push(l);this.refs.categories.set(r.id,{root:As(),rows:a})}}initTheme(t){if(t!="auto")return t;if(!this.darkMedia){if(this.darkMedia=matchMedia("(prefers-color-scheme: dark)"),this.darkMedia.media.match(/^not/))return"light";this.darkMedia.addEventListener("change",this.darkMediaCallback)}return this.darkMedia.matches?"dark":"light"}initDynamicPerLine(t=this.props){if(!t.dynamicWidth)return;let{element:i,emojiButtonSize:n}=t,r=()=>{let{width:s}=i.getBoundingClientRect();return Math.floor(s/n)},a=new ResizeObserver(()=>{this.unobserve({except:a}),this.setState({perLine:r()},()=>{this.initGrid(),this.forceUpdate(()=>{this.observeCategories(),this.observeRows()})})});return a.observe(i),this.observers.push(a),r()}getPerLine(){return this.state.perLine||this.props.perLine}getEmojiByPos([t,i]){let n=this.state.searchResults||this.grid,r=n[t]&&n[t][i];if(r)return Ll.get(r)}observeCategories(){let t=this.refs.navigation.current;if(!t)return;let i=new Map,n=s=>{s!=t.state.categoryId&&t.setState({categoryId:s})},r={root:this.refs.scroll.current,threshold:[0,1]},a=new IntersectionObserver(s=>{for(let c of s){let d=c.target.dataset.id;i.set(d,c.intersectionRatio)}let l=[...i];for(let[c,d]of l)if(d){n(c);break}},r);for(let{root:s}of this.refs.categories.values())a.observe(s.current);this.observers.push(a)}observeRows(){let t=Ce({},this.state.visibleRows),i=new IntersectionObserver(n=>{for(let r of n){let a=parseInt(r.target.dataset.index);r.isIntersecting?t[a]=!0:delete t[a]}this.setState({visibleRows:t})},{root:this.refs.scroll.current,rootMargin:`${this.props.emojiButtonSize*(Jv.rowsPerRender+5)}px 0px ${this.props.emojiButtonSize*Jv.rowsPerRender}px`});for(let{rows:n}of this.refs.categories.values())for(let r of n)r.current&&i.observe(r.current);this.observers.push(i)}preventDefault(t){t.preventDefault()}unfocusSearch(){let t=this.refs.searchInput.current;t&&t.blur()}navigate({e:t,input:i,left:n,right:r,up:a,down:s}){let l=this.state.searchResults||this.grid;if(!l.length)return;let[c,d]=this.state.pos,f=(()=>{if(c==0&&d==0&&!t.repeat&&(n||a))return null;if(c==-1)return!t.repeat&&(r||s)&&i.selectionStart==i.value.length?[0,0]:null;if(n||r){let h=l[c],p=n?-1:1;if(d+=p,!h[d]){if(c+=p,h=l[c],!h)return c=n?0:l.length-1,d=n?0:l[c].length-1,[c,d];d=n?h.length-1:0}return[c,d]}if(a||s){c+=a?-1:1;let h=l[c];return h?(h[d]||(d=h.length-1),[c,d]):(c=a?0:l.length-1,d=a?0:l[c].length-1,[c,d])}})();if(f)t.preventDefault();else{this.state.pos[0]>-1&&this.setState({pos:[-1,-1]});return}this.setState({pos:f,keyboard:!0},()=>{this.scrollTo({row:f[0]})})}scrollTo({categoryId:t,row:i}){let n=this.state.searchResults||this.grid;if(!n.length)return;let r=this.refs.scroll.current,a=r.getBoundingClientRect(),s=0;if(i>=0&&(t=n[i].__categoryId),t&&(s=(this.refs[t]||this.refs.categories.get(t).root).current.getBoundingClientRect().top-(a.top-r.scrollTop)+1),i>=0)if(!i)s=0;else{let l=n[i].__index,c=s+l*this.props.emojiButtonSize,d=c+this.props.emojiButtonSize+this.props.emojiButtonSize*.88;if(c<r.scrollTop)s=c;else if(d>r.scrollTop+a.height)s=d-a.height;else return}this.ignoreMouse(),r.scrollTop=s}ignoreMouse(){this.mouseIsIgnored=!0,clearTimeout(this.ignoreMouseTimer),this.ignoreMouseTimer=setTimeout(()=>{delete this.mouseIsIgnored},100)}handleEmojiOver(t){this.mouseIsIgnored||this.state.showSkins||this.setState({pos:t||[-1,-1],keyboard:!1})}handleEmojiClick({e:t,emoji:i,pos:n}){if(this.props.onEmojiSelect&&(!i&&n&&(i=this.getEmojiByPos(n)),i)){let r=gre(i,{skinIndex:this.state.skin-1});this.props.maxFrequentRows&&_L.add(r,this.props),this.props.onEmojiSelect(r,t)}}closeSkins(){this.state.showSkins&&(this.setState({showSkins:null,tempSkin:null}),this.base.removeEventListener("click",this.handleBaseClick),this.base.removeEventListener("keydown",this.handleBaseKeydown))}handleSkinMouseOver(t){this.setState({tempSkin:t})}handleSkinClick(t){this.ignoreMouse(),this.closeSkins(),this.setState({skin:t,tempSkin:null}),Ml.set("skin",t)}renderNav(){return ye(A_,{ref:this.refs.navigation,icons:this.props.icons,theme:this.state.theme,dir:this.dir,unfocused:!!this.state.searchResults,position:this.props.navPosition,onClick:this.handleCategoryClick},this.navKey)}renderPreview(){let t=this.getEmojiByPos(this.state.pos),i=this.state.searchResults&&!this.state.searchResults.length;return ye("div",{id:"preview",class:"flex flex-middle",dir:this.dir,"data-position":this.props.previewPosition,children:[ye("div",{class:"flex flex-middle flex-grow",children:[ye("div",{class:"flex flex-auto flex-middle flex-center",style:{height:this.props.emojiButtonSize,fontSize:this.props.emojiButtonSize},children:ye(__,{emoji:t,id:i?this.props.noResultsEmoji||"cry":this.props.previewEmoji||(this.props.previewPosition=="top"?"point_down":"point_up"),set:this.props.set,size:this.props.emojiButtonSize,skin:this.state.tempSkin||this.state.skin,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})}),ye("div",{class:`margin-${this.dir[0]}`,children:t||i?ye("div",{class:`padding-${this.dir[2]} align-${this.dir[0]}`,children:[ye("div",{class:"preview-title ellipsis",children:t?t.name:Pn.search_no_results_1}),ye("div",{class:"preview-subtitle ellipsis color-c",children:t?t.skins[0].shortcodes:Pn.search_no_results_2})]}):ye("div",{class:"preview-placeholder color-c",children:Pn.pick})})]}),!t&&this.props.skinTonePosition=="preview"&&this.renderSkinToneButton()]})}renderEmojiButton(t,{pos:i,posinset:n,grid:r}){let a=this.props.emojiButtonSize,s=this.state.tempSkin||this.state.skin,c=(t.skins[s-1]||t.skins[0]).native,d=pre(this.state.pos,i),f=i.concat(t.id).join("");return ye(E_,{selected:d,skin:s,size:a,children:ye("button",{"aria-label":c,"aria-selected":d||void 0,"aria-posinset":n,"aria-setsize":r.setsize,"data-keyboard":this.state.keyboard,title:this.props.previewPosition=="none"?t.name:void 0,type:"button",class:"flex flex-center flex-middle",tabindex:"-1",onClick:h=>this.handleEmojiClick({e:h,emoji:t}),onMouseEnter:()=>this.handleEmojiOver(i),onMouseLeave:()=>this.handleEmojiOver(),style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize,fontSize:this.props.emojiSize,lineHeight:0},children:[ye("div",{"aria-hidden":"true",class:"background",style:{borderRadius:this.props.emojiButtonRadius,backgroundColor:this.props.emojiButtonColors?this.props.emojiButtonColors[(n-1)%this.props.emojiButtonColors.length]:void 0}}),ye(__,{emoji:t,set:this.props.set,size:this.props.emojiSize,skin:s,spritesheet:!0,getSpritesheetURL:this.props.getSpritesheetURL})]})},f)}renderSearch(){let t=this.props.previewPosition=="none"||this.props.skinTonePosition=="search";return ye("div",{children:[ye("div",{class:"spacer"}),ye("div",{class:"flex flex-middle",children:[ye("div",{class:"search relative flex-grow",children:[ye("input",{type:"search",ref:this.refs.searchInput,placeholder:Pn.search,onClick:this.handleSearchClick,onInput:this.handleSearchInput,onKeyDown:this.handleSearchKeyDown,autoComplete:"off"}),ye("span",{class:"icon loupe flex",children:r0.search.loupe}),this.state.searchResults&&ye("button",{title:"Clear","aria-label":"Clear",type:"button",class:"icon delete flex",onClick:this.clearSearch,onMouseDown:this.preventDefault,children:r0.search.delete})]}),t&&this.renderSkinToneButton()]})]})}renderSearchResults(){let{searchResults:t}=this.state;return t?ye("div",{class:"category",ref:this.refs.search,children:[ye("div",{class:`sticky padding-small align-${this.dir[0]}`,children:Pn.categories.search}),ye("div",{children:t.length?t.map((i,n)=>ye("div",{class:"flex",children:i.map((r,a)=>this.renderEmojiButton(r,{pos:[n,a],posinset:n*this.props.perLine+a+1,grid:t}))})):ye("div",{class:`padding-small align-${this.dir[0]}`,children:this.props.onAddCustomEmoji&&ye("a",{onClick:this.props.onAddCustomEmoji,children:Pn.add_custom})})})]}):null}renderCategories(){let{categories:t}=bt,i=!!this.state.searchResults,n=this.getPerLine();return ye("div",{style:{visibility:i?"hidden":void 0,display:i?"none":void 0,height:"100%"},children:t.map(r=>{let{root:a,rows:s}=this.refs.categories.get(r.id);return ye("div",{"data-id":r.target?r.target.id:r.id,class:"category",ref:a,children:[ye("div",{class:`sticky padding-small align-${this.dir[0]}`,children:r.name||Pn.categories[r.id]}),ye("div",{class:"relative",style:{height:s.length*this.props.emojiButtonSize},children:s.map((l,c)=>{let d=l.index-l.index%Jv.rowsPerRender,f=this.state.visibleRows[d],h="current"in l?l:void 0;if(!f&&!h)return null;let p=c*n,m=p+n,v=r.emojis.slice(p,m);return v.length<n&&v.push(...new Array(n-v.length)),ye("div",{"data-index":l.index,ref:h,class:"flex row",style:{top:c*this.props.emojiButtonSize},children:f&&v.map((b,x)=>{if(!b)return ye("div",{style:{width:this.props.emojiButtonSize,height:this.props.emojiButtonSize}});let k=Ll.get(b);return this.renderEmojiButton(k,{pos:[l.index,x],posinset:l.posinset+x,grid:this.grid})})},l.index)})})]})})})}renderSkinToneButton(){return this.props.skinTonePosition=="none"?null:ye("div",{class:"flex flex-auto flex-center flex-middle",style:{position:"relative",width:this.props.emojiButtonSize,height:this.props.emojiButtonSize},children:ye("button",{type:"button",ref:this.refs.skinToneButton,class:"skin-tone-button flex flex-auto flex-center flex-middle","aria-selected":this.state.showSkins?"":void 0,"aria-label":Pn.skins.choose,title:Pn.skins.choose,onClick:this.openSkins,style:{width:this.props.emojiSize,height:this.props.emojiSize},children:ye("span",{class:`skin-tone skin-tone-${this.state.skin}`})})})}renderLiveRegion(){let t=this.getEmojiByPos(this.state.pos),i=t?t.name:"";return ye("div",{"aria-live":"polite",class:"sr-only",children:i})}renderSkins(){let i=this.refs.skinToneButton.current.getBoundingClientRect(),n=this.base.getBoundingClientRect(),r={};return this.dir=="ltr"?r.right=n.right-i.right-3:r.left=i.left-n.left-3,this.props.previewPosition=="bottom"&&this.props.skinTonePosition=="preview"?r.bottom=n.bottom-i.top+6:(r.top=i.bottom-n.top+3,r.bottom="auto"),ye("div",{ref:this.refs.menu,role:"radiogroup",dir:this.dir,"aria-label":Pn.skins.choose,class:"menu hidden","data-position":r.top?"top":"bottom",style:r,children:[...Array(6).keys()].map(a=>{let s=a+1,l=this.state.skin==s;return ye("div",{children:[ye("input",{type:"radio",name:"skin-tone",value:s,"aria-label":Pn.skins[s],ref:l?this.refs.skinToneRadio:null,defaultChecked:l,onChange:()=>this.handleSkinMouseOver(s),onKeyDown:c=>{(c.code=="Enter"||c.code=="Space"||c.code=="Tab")&&(c.preventDefault(),this.handleSkinClick(s))}}),ye("button",{"aria-hidden":"true",tabindex:"-1",onClick:()=>this.handleSkinClick(s),onMouseEnter:()=>this.handleSkinMouseOver(s),onMouseLeave:()=>this.handleSkinMouseOver(),class:"option flex flex-grow flex-middle",children:[ye("span",{class:`skin-tone skin-tone-${s}`}),ye("span",{class:"margin-small-lr",children:Pn.skins[s]})]})]})})})}render(){let t=this.props.perLine*this.props.emojiButtonSize;return ye("section",{id:"root",class:"flex flex-column",dir:this.dir,style:{width:this.props.dynamicWidth?"100%":`calc(${t}px + (var(--padding) + var(--sidebar-width)))`},"data-emoji-set":this.props.set,"data-theme":this.state.theme,"data-menu":this.state.showSkins?"":void 0,children:[this.props.previewPosition=="top"&&this.renderPreview(),this.props.navPosition=="top"&&this.renderNav(),this.props.searchPosition=="sticky"&&ye("div",{class:"padding-lr",children:this.renderSearch()}),ye("div",{ref:this.refs.scroll,class:"scroll flex-grow padding-lr",children:ye("div",{style:{width:this.props.dynamicWidth?"100%":t,height:"100%"},children:[this.props.searchPosition=="static"&&this.renderSearch(),this.renderSearchResults(),this.renderCategories()]})}),this.props.navPosition=="bottom"&&this.renderNav(),this.props.previewPosition=="bottom"&&this.renderPreview(),this.state.showSkins&&this.renderSkins(),this.renderLiveRegion()]})}constructor(t){super(),ko(this,"darkMediaCallback",()=>{this.props.theme=="auto"&&this.setState({theme:this.darkMedia.matches?"dark":"light"})}),ko(this,"handleClickOutside",i=>{let{element:n}=this.props;i.target!=n&&(this.state.showSkins&&this.closeSkins(),this.props.onClickOutside&&this.props.onClickOutside(i))}),ko(this,"handleBaseClick",i=>{this.state.showSkins&&(i.target.closest(".menu")||(i.preventDefault(),i.stopImmediatePropagation(),this.closeSkins()))}),ko(this,"handleBaseKeydown",i=>{this.state.showSkins&&i.key=="Escape"&&(i.preventDefault(),i.stopImmediatePropagation(),this.closeSkins())}),ko(this,"handleSearchClick",()=>{this.getEmojiByPos(this.state.pos)&&this.setState({pos:[-1,-1]})}),ko(this,"handleSearchInput",async()=>{let i=this.refs.searchInput.current;if(!i)return;let{value:n}=i,r=await Ll.search(n),a=()=>{this.refs.scroll.current&&(this.refs.scroll.current.scrollTop=0)};if(!r)return this.setState({searchResults:r,pos:[-1,-1]},a);let s=i.selectionStart==i.value.length?[0,0]:[-1,-1],l=[];l.setsize=r.length;let c=null;for(let d of r)(!l.length||c.length==this.getPerLine())&&(c=[],c.__categoryId="search",c.__index=l.length,l.push(c)),c.push(d);this.ignoreMouse(),this.setState({searchResults:l,pos:s},a)}),ko(this,"handleSearchKeyDown",i=>{let n=i.currentTarget;switch(i.stopImmediatePropagation(),i.key){case"ArrowLeft":this.navigate({e:i,input:n,left:!0});break;case"ArrowRight":this.navigate({e:i,input:n,right:!0});break;case"ArrowUp":this.navigate({e:i,input:n,up:!0});break;case"ArrowDown":this.navigate({e:i,input:n,down:!0});break;case"Enter":i.preventDefault(),this.handleEmojiClick({e:i,pos:this.state.pos});break;case"Escape":i.preventDefault(),this.state.searchResults?this.clearSearch():this.unfocusSearch();break;default:break}}),ko(this,"clearSearch",()=>{let i=this.refs.searchInput.current;i&&(i.value="",i.focus(),this.handleSearchInput())}),ko(this,"handleCategoryClick",({category:i,i:n})=>{this.scrollTo(n==0?{row:-1}:{categoryId:i.id})}),ko(this,"openSkins",i=>{let{currentTarget:n}=i,r=n.getBoundingClientRect();this.setState({showSkins:r},async()=>{await mre(2);let a=this.refs.menu.current;a&&(a.classList.remove("hidden"),this.refs.skinToneRadio.current.focus(),this.base.addEventListener("click",this.handleBaseClick,!0),this.base.addEventListener("keydown",this.handleBaseKeydown,!0))})}),this.observers=[],this.state=Ce({pos:[-1,-1],perLine:this.initDynamicPerLine(t),visibleRows:{0:!0}},this.getInitialState(t))}},rh=class extends z_{async connectedCallback(){let t=AL(this.props,Es,this);t.element=this,t.ref=i=>{this.component=i},await ql(t),!this.disconnected&&wL(ye(T_,Ce({},t)),this.shadowRoot)}constructor(t){super(t,{styles:cL(LL)})}};ko(rh,"Props",Es);typeof customElements!="undefined"&&!customElements.get("em-emoji-picker")&&customElements.define("em-emoji-picker",rh);var LL={};LL=`:host {
2918
2918
  width: min-content;
2919
2919
  height: 435px;
2920
2920
  min-height: 230px;
@@ -4408,7 +4408,7 @@ button {
4408
4408
  </div>
4409
4409
  </label>
4410
4410
  </div>
4411
- `}};Qt.styles=Z(ZL),Qt.dependencies={"zn-icon":Ci},y([ge('input[type="radio"]')],Qt.prototype,"input",2),y([We()],Qt.prototype,"hasFocus",2),y([_()],Qt.prototype,"title",2),y([_()],Qt.prototype,"name",2),y([_()],Qt.prototype,"value",2),y([_({reflect:!0})],Qt.prototype,"size",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"disabled",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"checked",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"contained",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"horizontal",2),y([rn("checked")],Qt.prototype,"defaultChecked",2),y([_({reflect:!0})],Qt.prototype,"form",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"required",2),y([_({attribute:"description"})],Qt.prototype,"description",2),y([_()],Qt.prototype,"label",2),y([_({attribute:"label-tooltip"})],Qt.prototype,"labelTooltip",2),y([He("disabled",{waitUntilFirstUpdate:!0})],Qt.prototype,"handleDisabledChange",1),y([He(["checked"],{waitUntilFirstUpdate:!0})],Qt.prototype,"handleStateChange",1);var Wre=Qt;Qt.define("zn-radio");var t7=sn(_w(),1);var e7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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:0 auto}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--symbol-color:rgb(var(--zn-border-color));--symbol-color-active:var(--zn-color-amber-400);--symbol-size:1.2rem;--symbol-spacing:4px;display:block}.rating{position:relative;display:inline-flex;border-radius:var(--zn-border-radius-medium);vertical-align:middle}.rating:focus{outline:none}.rating:focus-visible{outline:rgb(var(--zn-primary));outline-offset:2px}.rating__symbols{display:inline-flex;position:relative;font-size:var(--symbol-size);line-height:0;color:var(--symbol-color);white-space:nowrap;cursor:pointer}.rating__symbols>*{padding:var(--symbol-spacing)}.rating__symbol--active,.rating__partial--filled{color:var(--symbol-color-active)}.rating__partial-symbol-container{position:relative}.rating__partial--filled{position:absolute;top:var(--symbol-spacing);left:var(--symbol-spacing)}.rating__symbol{transition:var(--zn-transition-fast) scale;pointer-events:none}.rating__symbol--hover{scale:1.2}.rating--disabled .rating__symbols,.rating--readonly .rating__symbols{cursor:default}.rating--disabled .rating__symbol--hover,.rating--readonly .rating__symbol--hover{scale:none}.rating--disabled{opacity:0.5}.rating--disabled .rating__symbols{cursor:not-allowed}.rating--small{--symbol-size:1rem;--symbol-spacing:2px}.rating--medium{--symbol-size:1.2rem}.rating--large{--symbol-size:1.5rem;--symbol-spacing:6px}`;var Xi=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hoverValue=0;this.isHovering=!1;this.value=0;this.max=5;this.precision=1;this.readonly=!1;this.disabled=!1;this.size="medium";this.getSymbol=()=>'<zn-icon src="star" library="material"></zn-icon>'}get validity(){return kn}get validationMessage(){return""}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(){this.formControlController.updateValidity()}_roundToPrecision(i,n){let r=1/n;return Math.ceil(i*r)/r}_getValueFromXCoordinate(i){let{left:n,width:r}=this.rating.getBoundingClientRect(),a=this._roundToPrecision((i-n)/r*this.max,this.precision);return(0,t7.clamp)(a,0,this.max)}_getValueFromMousePosition(i){return this._getValueFromXCoordinate(i.clientX)}_getValueFromTouchPosition(i){return this._getValueFromXCoordinate(i.touches[0].clientX)}_setValue(i){this.disabled||this.readonly||(this.value=i===this.value?0:i,this.isHovering=!1)}_handleClick(i){this.readonly||this.disabled||this._setValue(this._getValueFromMousePosition(i))}_handleMouseEnter(i){this.isHovering=!0,this.hoverValue=this._getValueFromMousePosition(i)}_handleMouseMove(i){this.hoverValue=this._getValueFromMousePosition(i)}_handleMouseLeave(){this.isHovering=!1}_handleTouchStart(i){this.isHovering=!0,this.hoverValue=this._getValueFromTouchPosition(i)}_handleTouchMove(i){this.hoverValue=this._getValueFromTouchPosition(i)}_handleTouchEnd(i){this.isHovering=!1,this._setValue(this._getValueFromTouchPosition(i)),i.preventDefault()}render(){let i=Array.from(Array(this.max).keys()),n=0;return this.disabled||this.readonly?n=this.value:n=this.isHovering?this.hoverValue:this.value,T`
4411
+ `}};Qt.styles=Z(ZL),Qt.dependencies={"zn-icon":Ci},y([ge('input[type="radio"]')],Qt.prototype,"input",2),y([We()],Qt.prototype,"hasFocus",2),y([_()],Qt.prototype,"title",2),y([_()],Qt.prototype,"name",2),y([_()],Qt.prototype,"value",2),y([_({reflect:!0})],Qt.prototype,"size",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"disabled",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"checked",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"contained",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"horizontal",2),y([rn("checked")],Qt.prototype,"defaultChecked",2),y([_({reflect:!0})],Qt.prototype,"form",2),y([_({type:Boolean,reflect:!0})],Qt.prototype,"required",2),y([_({attribute:"description"})],Qt.prototype,"description",2),y([_()],Qt.prototype,"label",2),y([_({attribute:"label-tooltip"})],Qt.prototype,"labelTooltip",2),y([He("disabled",{waitUntilFirstUpdate:!0})],Qt.prototype,"handleDisabledChange",1),y([He(["checked"],{waitUntilFirstUpdate:!0})],Qt.prototype,"handleStateChange",1);var Wre=Qt;Qt.define("zn-radio");var t7=sn(_w(),1);var e7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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:0 auto}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--symbol-color:rgb(var(--zn-border-color));--symbol-color-active:var(--zn-color-amber-400);--symbol-size:1.2rem;--symbol-spacing:4px;display:block}.rating{position:relative;display:inline-flex;border-radius:var(--zn-border-radius-medium);vertical-align:middle}.rating:focus{outline:none}.rating:focus-visible{outline:rgb(var(--zn-primary));outline-offset:2px}.rating__symbols{display:inline-flex;position:relative;font-size:var(--symbol-size);line-height:0;color:var(--symbol-color);white-space:nowrap;cursor:pointer}.rating__symbols>*{padding:var(--symbol-spacing)}.rating__symbol--active,.rating__partial--filled{color:var(--symbol-color-active)}.rating__partial-symbol-container{position:relative}.rating__partial--filled{position:absolute;top:var(--symbol-spacing);left:var(--symbol-spacing)}.rating__symbol{transition:var(--zn-transition-fast) scale;pointer-events:none}.rating__symbol--hover{scale:1.2}.rating--disabled .rating__symbols,.rating--readonly .rating__symbols{cursor:default}.rating--disabled .rating__symbol--hover,.rating--readonly .rating__symbol--hover{scale:none}.rating--disabled{opacity:0.5}.rating--disabled .rating__symbols{cursor:not-allowed}.rating--small{--symbol-size:1rem;--symbol-spacing:2px}.rating--medium{--symbol-size:1.2rem}.rating--large{--symbol-size:1.5rem;--symbol-spacing:6px}`;var Xi=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this,{assumeInteractionOn:["zn-blur","zn-input"]});this.hoverValue=0;this.isHovering=!1;this.value=0;this.max=5;this.precision=1;this.readonly=!1;this.disabled=!1;this.size="medium";this.getSymbol=()=>'<zn-icon src="star" library="material"></zn-icon>'}get validity(){return _n}get validationMessage(){return""}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(){this.formControlController.updateValidity()}_roundToPrecision(i,n){let r=1/n;return Math.ceil(i*r)/r}_getValueFromXCoordinate(i){let{left:n,width:r}=this.rating.getBoundingClientRect(),a=this._roundToPrecision((i-n)/r*this.max,this.precision);return(0,t7.clamp)(a,0,this.max)}_getValueFromMousePosition(i){return this._getValueFromXCoordinate(i.clientX)}_getValueFromTouchPosition(i){return this._getValueFromXCoordinate(i.touches[0].clientX)}_setValue(i){this.disabled||this.readonly||(this.value=i===this.value?0:i,this.isHovering=!1)}_handleClick(i){this.readonly||this.disabled||this._setValue(this._getValueFromMousePosition(i))}_handleMouseEnter(i){this.isHovering=!0,this.hoverValue=this._getValueFromMousePosition(i)}_handleMouseMove(i){this.hoverValue=this._getValueFromMousePosition(i)}_handleMouseLeave(){this.isHovering=!1}_handleTouchStart(i){this.isHovering=!0,this.hoverValue=this._getValueFromTouchPosition(i)}_handleTouchMove(i){this.hoverValue=this._getValueFromTouchPosition(i)}_handleTouchEnd(i){this.isHovering=!1,this._setValue(this._getValueFromTouchPosition(i)),i.preventDefault()}render(){let i=Array.from(Array(this.max).keys()),n=0;return this.disabled||this.readonly?n=this.value:n=this.isHovering?this.hoverValue:this.value,T`
4412
4412
  <div
4413
4413
  part="base"
4414
4414
  class="${ce({rating:!0,"rating--readonly":this.readonly,"rating--disabled":this.disabled,"rating--small":this.size==="small","rating--medium":this.size==="medium","rating--large":this.size==="large"})}"
@@ -4450,7 +4450,7 @@ button {
4450
4450
  </span>`)}
4451
4451
  </span>
4452
4452
  </div>
4453
- `}};Xi.styles=Z(e7),y([ge(".rating")],Xi.prototype,"rating",2),y([We()],Xi.prototype,"hoverValue",2),y([We()],Xi.prototype,"isHovering",2),y([_()],Xi.prototype,"label",2),y([_()],Xi.prototype,"name",2),y([_({type:Number})],Xi.prototype,"value",2),y([_({type:Number})],Xi.prototype,"max",2),y([_({type:Number})],Xi.prototype,"precision",2),y([_({type:Boolean})],Xi.prototype,"readonly",2),y([_({type:Boolean})],Xi.prototype,"disabled",2),y([_({})],Xi.prototype,"size",2),y([_()],Xi.prototype,"getSymbol",2);var jre=Xi;Xi.define("zn-rating");var i7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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}.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-font-weight-semibold);margin-bottom:var(--zn-spacing-2x-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;line-height:var(--zn-line-height-dense)}:host([horizontal]) .form-control-input{display:flex;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large)}:host([contained]) .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{margin-top:var(--zn-spacing-medium);display:grid;grid-template-columns:repeat(auto-fit,minmax(152px,1fr));gap:var(--zn-spacing-x-small)}::slotted(zn-radio){margin-top:var(--zn-spacing-medium)}::slotted(zn-radio[horizontal]),::slotted(zn-radio[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-radio[horizontal][contained]){margin-top:0;height:100%}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}`;var bi=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this);this.hasSlotController=new Ue(this,"help-text","label");this.customValidityMessage="";this.errorMessage="";this.defaultValue="";this.label="";this.labelTooltip="";this.helpText="";this.name="";this.value="";this.size="medium";this.horizontal=!1;this.contained=!1;this.form="";this.required=!1}get validity(){let i=this.required&&!this.value;return this.customValidityMessage!==""?sg:i?lg:kn}get validationMessage(){let i=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:i?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(i){super.firstUpdated(i),this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("zn-radio")]}handleRadioClick(i){let n=i.target.closest("zn-radio"),r=this.getAllRadios();!n||n.disabled||(this.value=n.value,r.forEach(a=>a.checked=a===n))}handleKeyDown(i){var l;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(i.key))return;let n=this.getAllRadios().filter(c=>!c.disabled),r=(l=n.find(c=>c.checked))!=null?l:n[0],a=i.key===" "?0:["ArrowUp","ArrowLeft"].includes(i.key)?-1:1,s=n.indexOf(r)+a;s<0&&(s=n.length-1),s>n.length-1&&(s=0),this.getAllRadios().forEach(c=>{c.checked=!1}),this.value=n[s].value,n[s].checked=!0,n[s].shadowRoot.querySelector("button").focus(),i.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(i){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(i)}async syncRadioElements(){let i=this.getAllRadios();await Promise.all(i.map(async n=>{await n.updateComplete,n.checked=n.value===this.value,n.size=this.size,n.horizontal=this.horizontal,n.contained=this.contained})),i.length>0&&!i.some(n=>n.checked)&&i[0].setAttribute("tabindex","0")}syncRadios(){if(customElements.get("zn-radio")){this.syncRadioElements();return}customElements.get("zn-radio")?this.syncRadioElements():customElements.whenDefined("zn-radio").then(()=>this.syncRadios())}updateCheckedRadio(){var n;this.getAllRadios().forEach(r=>r.checked=r.value===this.value),this.formControlController.setValidity((n=this.validity)==null?void 0:n.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let i=this.required&&!this.value,n=this.customValidityMessage!=="";return i||n?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){var n;let i=(n=this.validity)==null?void 0:n.valid;return this.errorMessage=this.customValidityMessage||i?"":this.validationInput.validationMessage,this.formControlController.setValidity(i),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),i||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),i}setCustomValidity(i=""){this.customValidityMessage=i,this.errorMessage=i,this.validationInput.setCustomValidity(i),this.formControlController.updateValidity()}focus(i){let n=this.getAllRadios(),r=n.find(l=>l.checked),a=n.find(l=>!l.disabled),s=r||a;s&&s.focus(i)}render(){let i=this.hasSlotController.test("label"),n=this.hasSlotController.test("label-tooltip"),r=this.hasSlotController.test("help-text"),a=this.label?!0:!!i,s=this.labelTooltip?!0:n,l=this.helpText?!0:!!r,c=T`
4453
+ `}};Xi.styles=Z(e7),y([ge(".rating")],Xi.prototype,"rating",2),y([We()],Xi.prototype,"hoverValue",2),y([We()],Xi.prototype,"isHovering",2),y([_()],Xi.prototype,"label",2),y([_()],Xi.prototype,"name",2),y([_({type:Number})],Xi.prototype,"value",2),y([_({type:Number})],Xi.prototype,"max",2),y([_({type:Number})],Xi.prototype,"precision",2),y([_({type:Boolean})],Xi.prototype,"readonly",2),y([_({type:Boolean})],Xi.prototype,"disabled",2),y([_({})],Xi.prototype,"size",2),y([_()],Xi.prototype,"getSymbol",2);var jre=Xi;Xi.define("zn-rating");var i7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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}.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-font-weight-semibold);margin-bottom:var(--zn-spacing-2x-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;line-height:var(--zn-line-height-dense)}:host([horizontal]) .form-control-input{display:flex;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large)}:host([contained]) .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{margin-top:var(--zn-spacing-medium);display:grid;grid-template-columns:repeat(auto-fit,minmax(152px,1fr));gap:var(--zn-spacing-x-small)}::slotted(zn-radio){margin-top:var(--zn-spacing-medium)}::slotted(zn-radio[horizontal]),::slotted(zn-radio[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-radio[horizontal][contained]){margin-top:0;height:100%}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}`;var bi=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this);this.hasSlotController=new Ue(this,"help-text","label");this.customValidityMessage="";this.errorMessage="";this.defaultValue="";this.label="";this.labelTooltip="";this.helpText="";this.name="";this.value="";this.size="medium";this.horizontal=!1;this.contained=!1;this.form="";this.required=!1}get validity(){let i=this.required&&!this.value;return this.customValidityMessage!==""?sg:i?lg:_n}get validationMessage(){let i=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:i?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(i){super.firstUpdated(i),this.formControlController.updateValidity()}getAllRadios(){return[...this.querySelectorAll("zn-radio")]}handleRadioClick(i){let n=i.target.closest("zn-radio"),r=this.getAllRadios();!n||n.disabled||(this.value=n.value,r.forEach(a=>a.checked=a===n))}handleKeyDown(i){var l;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(i.key))return;let n=this.getAllRadios().filter(c=>!c.disabled),r=(l=n.find(c=>c.checked))!=null?l:n[0],a=i.key===" "?0:["ArrowUp","ArrowLeft"].includes(i.key)?-1:1,s=n.indexOf(r)+a;s<0&&(s=n.length-1),s>n.length-1&&(s=0),this.getAllRadios().forEach(c=>{c.checked=!1}),this.value=n[s].value,n[s].checked=!0,n[s].shadowRoot.querySelector("button").focus(),i.preventDefault()}handleLabelClick(){this.focus()}handleInvalid(i){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(i)}async syncRadioElements(){let i=this.getAllRadios();await Promise.all(i.map(async n=>{await n.updateComplete,n.checked=n.value===this.value,n.size=this.size,n.horizontal=this.horizontal,n.contained=this.contained})),i.length>0&&!i.some(n=>n.checked)&&i[0].setAttribute("tabindex","0")}syncRadios(){if(customElements.get("zn-radio")){this.syncRadioElements();return}customElements.get("zn-radio")?this.syncRadioElements():customElements.whenDefined("zn-radio").then(()=>this.syncRadios())}updateCheckedRadio(){var n;this.getAllRadios().forEach(r=>r.checked=r.value===this.value),this.formControlController.setValidity((n=this.validity)==null?void 0:n.valid)}handleSizeChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&this.updateCheckedRadio()}checkValidity(){let i=this.required&&!this.value,n=this.customValidityMessage!=="";return i||n?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){var n;let i=(n=this.validity)==null?void 0:n.valid;return this.errorMessage=this.customValidityMessage||i?"":this.validationInput.validationMessage,this.formControlController.setValidity(i),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),i||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),i}setCustomValidity(i=""){this.customValidityMessage=i,this.errorMessage=i,this.validationInput.setCustomValidity(i),this.formControlController.updateValidity()}focus(i){let n=this.getAllRadios(),r=n.find(l=>l.checked),a=n.find(l=>!l.disabled),s=r||a;s&&s.focus(i)}render(){let i=this.hasSlotController.test("label"),n=this.hasSlotController.test("label-tooltip"),r=this.hasSlotController.test("help-text"),a=this.label?!0:!!i,s=this.labelTooltip?!0:n,l=this.helpText?!0:!!r,c=T`
4454
4454
  <slot @slotchange=${this.syncRadios} @click=${this.handleRadioClick} @keydown=${this.handleKeyDown}></slot>
4455
4455
  `;return T`
4456
4456
  <fieldset
@@ -4604,7 +4604,7 @@ button {
4604
4604
  type="file"
4605
4605
  tabindex="-1"
4606
4606
  ?webkitdirectory=${this.webkitdirectory}>
4607
- </div>`}};Ct.styles=Z(o7),y([We()],Ct.prototype,"userIsDragging",2),y([ge(".input__control")],Ct.prototype,"input",2),y([ge(".button")],Ct.prototype,"button",2),y([ge(".droparea")],Ct.prototype,"dropareaWrapper",2),y([ge(".droparea__icon")],Ct.prototype,"dropareaIcon",2),y([ge(".input__value")],Ct.prototype,"inputChosen",2),y([_({type:Object})],Ct.prototype,"files",1),y([_({type:String})],Ct.prototype,"name",2),y([_({type:String})],Ct.prototype,"value",1),y([rn()],Ct.prototype,"defaultValue",2),y([_({reflect:!0})],Ct.prototype,"size",2),y([_()],Ct.prototype,"label",2),y([_({type:Boolean})],Ct.prototype,"clearable",2),y([_({attribute:"help-text"})],Ct.prototype,"helpText",2),y([_({reflect:!0,type:Boolean})],Ct.prototype,"disabled",2),y([_({type:Boolean})],Ct.prototype,"droparea",2),y([_({type:String})],Ct.prototype,"accept",2),y([_({type:String})],Ct.prototype,"capture",2),y([_({reflect:!0,type:Boolean})],Ct.prototype,"multiple",2),y([_({reflect:!0,type:Boolean})],Ct.prototype,"webkitdirectory",2),y([_({reflect:!0})],Ct.prototype,"form",2),y([_({reflect:!0,type:Boolean})],Ct.prototype,"required",2),y([_({attribute:"hide-value",type:Boolean})],Ct.prototype,"hideValue",2),y([He("disabled",{waitUntilFirstUpdate:!0})],Ct.prototype,"handleDisabledChange",1),y([He("value",{waitUntilFirstUpdate:!0})],Ct.prototype,"handleValueChange",1);ua("file.iconDrop",{keyframes:[{scale:1},{scale:.7},{scale:1}],options:{duration:600,easing:"ease-out"}});ua("file.text.disappear",{keyframes:[{opacity:1},{opacity:0,transform:"translateY(-40%)"}],options:{duration:300,easing:"cubic-bezier(0.45, 1.45, 0.8, 1)"}});ua("file.text.appear",{keyframes:[{opacity:0,transform:"translateY(40%)"},{opacity:1}],options:{duration:300,easing:"cubic-bezier(0.45, 1.45, 0.8, 1)"}});var Ure=Ct;Ct.define("zn-file");var a7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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}.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-font-weight-semibold);margin-bottom:var(--zn-spacing-2x-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;line-height:var(--zn-line-height-dense)}:host([horizontal]) .form-control-input{display:flex;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large)}:host([contained]) .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{margin-top:var(--zn-spacing-medium);display:grid;grid-template-columns:repeat(auto-fit,minmax(152px,1fr));gap:var(--zn-spacing-x-small)}::slotted(zn-checkbox){margin-top:var(--zn-spacing-medium)}::slotted(zn-checkbox[horizontal]),::slotted(zn-checkbox[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-checkbox[horizontal][contained]){margin-top:0;height:100%}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}`;var ki=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this);this.hasSlotController=new Ue(this,"help-text","label");this.customValidityMessage="";this.errorMessage="";this.label="";this.labelTooltip="";this.helpText="";this.name="";this.value=[];this.size="medium";this.horizontal=!1;this.contained=!1;this.form="";this.required=!1}get validity(){let i=this.value.length>0,n=this.required&&!i;return this.customValidityMessage!==""?sg:n?lg:kn}get validationMessage(){let i=this.value.length>0,n=this.required&&!i;return this.customValidityMessage!==""?this.customValidityMessage:n?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.addEventListenerToCheckboxes(),this.getValueFromCheckboxes()}firstUpdated(){this.updateCheckboxValidity(),this.formControlController.updateValidity()}getAllCheckboxes(){return[...this.querySelectorAll("zn-checkbox")]}handleCheckboxClick(i){i.currentTarget.disabled||(this.getValueFromCheckboxes(),this.updateCheckboxValidity(),this.emit("zn-change"),this.emit("zn-input"),i.stopPropagation())}handleInvalid(i){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(i)}async syncCheckboxElements(){let i=this.getAllCheckboxes();await Promise.all(i.map(async n=>{await n.updateComplete,n.size=this.size,n.horizontal=this.horizontal,n.classList.add("groupedCheckbox"),i.some(a=>a.contained)?i.forEach(a=>{a.contained=!0}):n.contained=this.contained,this.getValueFromCheckboxes()}))}syncCheckboxes(){customElements.get("zn-checkbox")?this.syncCheckboxElements():customElements.whenDefined("zn-checkbox").then(()=>this.syncCheckboxes())}updateCheckboxValidity(){if(this.required){let i=this.value.length>0,n=this.getAllCheckboxes();this.updateComplete.then(()=>{var a;let r=((a=this.dataset)==null?void 0:a.userInvalid)!==void 0;n.forEach(s=>{s.required=!i,r?s.classList.add("checkbox-user-invalid"):s.classList.remove("checkbox-user-invalid")})})}}getValueFromCheckboxes(){let i=this.getAllCheckboxes();this.value=i.filter(n=>n.checked).map(n=>n.value)}addEventListenerToCheckboxes(){this.getAllCheckboxes().forEach(n=>{n.addEventListener("zn-change",this.handleCheckboxClick.bind(this))})}handleSizeChange(){this.syncCheckboxes()}handleValueChange(){this.hasUpdated&&(this.getValueFromCheckboxes(),this.updateCheckboxValidity())}checkValidity(){let i=this.value.length>0,n=this.required&&!i,r=this.customValidityMessage!=="";return n||r?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){var n;let i=(n=this.validity)==null?void 0:n.valid;return this.errorMessage=this.customValidityMessage||i?"":this.validationInput.validationMessage,this.formControlController.setValidity(i),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),i||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),i}setCustomValidity(i=""){this.customValidityMessage=i,this.errorMessage=i,this.validationInput.setCustomValidity(i),this.formControlController.updateValidity()}render(){let i=this.hasSlotController.test("label"),n=this.hasSlotController.test("label-tooltip"),r=this.hasSlotController.test("help-text"),a=this.label?!0:i,s=this.labelTooltip?!0:n,l=this.helpText?!0:r,c=T`
4607
+ </div>`}};Ct.styles=Z(o7),y([We()],Ct.prototype,"userIsDragging",2),y([ge(".input__control")],Ct.prototype,"input",2),y([ge(".button")],Ct.prototype,"button",2),y([ge(".droparea")],Ct.prototype,"dropareaWrapper",2),y([ge(".droparea__icon")],Ct.prototype,"dropareaIcon",2),y([ge(".input__value")],Ct.prototype,"inputChosen",2),y([_({type:Object})],Ct.prototype,"files",1),y([_({type:String})],Ct.prototype,"name",2),y([_({type:String})],Ct.prototype,"value",1),y([rn()],Ct.prototype,"defaultValue",2),y([_({reflect:!0})],Ct.prototype,"size",2),y([_()],Ct.prototype,"label",2),y([_({type:Boolean})],Ct.prototype,"clearable",2),y([_({attribute:"help-text"})],Ct.prototype,"helpText",2),y([_({reflect:!0,type:Boolean})],Ct.prototype,"disabled",2),y([_({type:Boolean})],Ct.prototype,"droparea",2),y([_({type:String})],Ct.prototype,"accept",2),y([_({type:String})],Ct.prototype,"capture",2),y([_({reflect:!0,type:Boolean})],Ct.prototype,"multiple",2),y([_({reflect:!0,type:Boolean})],Ct.prototype,"webkitdirectory",2),y([_({reflect:!0})],Ct.prototype,"form",2),y([_({reflect:!0,type:Boolean})],Ct.prototype,"required",2),y([_({attribute:"hide-value",type:Boolean})],Ct.prototype,"hideValue",2),y([He("disabled",{waitUntilFirstUpdate:!0})],Ct.prototype,"handleDisabledChange",1),y([He("value",{waitUntilFirstUpdate:!0})],Ct.prototype,"handleValueChange",1);ua("file.iconDrop",{keyframes:[{scale:1},{scale:.7},{scale:1}],options:{duration:600,easing:"ease-out"}});ua("file.text.disappear",{keyframes:[{opacity:1},{opacity:0,transform:"translateY(-40%)"}],options:{duration:300,easing:"cubic-bezier(0.45, 1.45, 0.8, 1)"}});ua("file.text.appear",{keyframes:[{opacity:0,transform:"translateY(40%)"},{opacity:1}],options:{duration:300,easing:"cubic-bezier(0.45, 1.45, 0.8, 1)"}});var Ure=Ct;Ct.define("zn-file");var a7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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}.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-font-weight-semibold);margin-bottom:var(--zn-spacing-2x-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;line-height:var(--zn-line-height-dense)}:host([horizontal]) .form-control-input{display:flex;-moz-column-gap:var(--zn-spacing-2x-large);column-gap:var(--zn-spacing-2x-large)}:host([contained]) .form-control-input{margin-top:var(--zn-spacing-medium)}:host([horizontal][contained]) .form-control-input{margin-top:var(--zn-spacing-medium);display:grid;grid-template-columns:repeat(auto-fit,minmax(152px,1fr));gap:var(--zn-spacing-x-small)}::slotted(zn-checkbox){margin-top:var(--zn-spacing-medium)}::slotted(zn-checkbox[horizontal]),::slotted(zn-checkbox[contained]){margin-top:var(--zn-spacing-small)}::slotted(zn-checkbox[horizontal][contained]){margin-top:0;height:100%}.form-control{position:relative;border:none;padding:0;margin:0}.form-control__label{padding:0}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}`;var ki=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this);this.hasSlotController=new Ue(this,"help-text","label");this.customValidityMessage="";this.errorMessage="";this.label="";this.labelTooltip="";this.helpText="";this.name="";this.value=[];this.size="medium";this.horizontal=!1;this.contained=!1;this.form="";this.required=!1}get validity(){let i=this.value.length>0,n=this.required&&!i;return this.customValidityMessage!==""?sg:n?lg:_n}get validationMessage(){let i=this.value.length>0,n=this.required&&!i;return this.customValidityMessage!==""?this.customValidityMessage:n?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.addEventListenerToCheckboxes(),this.getValueFromCheckboxes()}firstUpdated(){this.updateCheckboxValidity(),this.formControlController.updateValidity()}getAllCheckboxes(){return[...this.querySelectorAll("zn-checkbox")]}handleCheckboxClick(i){i.currentTarget.disabled||(this.getValueFromCheckboxes(),this.updateCheckboxValidity(),this.emit("zn-change"),this.emit("zn-input"),i.stopPropagation())}handleInvalid(i){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(i)}async syncCheckboxElements(){let i=this.getAllCheckboxes();await Promise.all(i.map(async n=>{await n.updateComplete,n.size=this.size,n.horizontal=this.horizontal,n.classList.add("groupedCheckbox"),i.some(a=>a.contained)?i.forEach(a=>{a.contained=!0}):n.contained=this.contained,this.getValueFromCheckboxes()}))}syncCheckboxes(){customElements.get("zn-checkbox")?this.syncCheckboxElements():customElements.whenDefined("zn-checkbox").then(()=>this.syncCheckboxes())}updateCheckboxValidity(){if(this.required){let i=this.value.length>0,n=this.getAllCheckboxes();this.updateComplete.then(()=>{var a;let r=((a=this.dataset)==null?void 0:a.userInvalid)!==void 0;n.forEach(s=>{s.required=!i,r?s.classList.add("checkbox-user-invalid"):s.classList.remove("checkbox-user-invalid")})})}}getValueFromCheckboxes(){let i=this.getAllCheckboxes();this.value=i.filter(n=>n.checked).map(n=>n.value)}addEventListenerToCheckboxes(){this.getAllCheckboxes().forEach(n=>{n.addEventListener("zn-change",this.handleCheckboxClick.bind(this))})}handleSizeChange(){this.syncCheckboxes()}handleValueChange(){this.hasUpdated&&(this.getValueFromCheckboxes(),this.updateCheckboxValidity())}checkValidity(){let i=this.value.length>0,n=this.required&&!i,r=this.customValidityMessage!=="";return n||r?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){var n;let i=(n=this.validity)==null?void 0:n.valid;return this.errorMessage=this.customValidityMessage||i?"":this.validationInput.validationMessage,this.formControlController.setValidity(i),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),i||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),i}setCustomValidity(i=""){this.customValidityMessage=i,this.errorMessage=i,this.validationInput.setCustomValidity(i),this.formControlController.updateValidity()}render(){let i=this.hasSlotController.test("label"),n=this.hasSlotController.test("label-tooltip"),r=this.hasSlotController.test("help-text"),a=this.label?!0:i,s=this.labelTooltip?!0:n,l=this.helpText?!0:r,c=T`
4608
4608
  <slot @slotchange=${this.syncCheckboxes}></slot> `;return T`
4609
4609
  <fieldset
4610
4610
  part="form-control"
@@ -4705,7 +4705,7 @@ button {
4705
4705
  slot="${this.iconPosition==="end"?"suffix":"prefix"}">${a.prefix}</span>`:""}
4706
4706
  ${this.iconOnly?void 0:a.value}
4707
4707
  </zn-option>`)}
4708
- </zn-select>`}_updatePrefix(){let i=this.select.selectedOptions[0];if(i&&(this.iconPosition!=="none"||this.iconOnly)&&this.selectPrefix){this.iconPosition==="none"&&this.iconOnly&&(this.iconPosition="start");let n=this.iconPosition==="start"?i.querySelector('[slot="prefix"]'):i.querySelector('[slot="suffix"]');n?(this.selectPrefix.innerHTML="",this.selectPrefix.appendChild(n.cloneNode(!0))):this.selectPrefix.innerHTML=""}else this.selectPrefix&&(this.selectPrefix.innerHTML="")}getPlaceholder(i){return this.value?"":`Choose a ${i.getName}`}};Zt.styles=Z(v7),y([ge("#select")],Zt.prototype,"select",2),y([ge("#select__prefix")],Zt.prototype,"selectPrefix",2),y([_()],Zt.prototype,"name",2),y([_()],Zt.prototype,"value",2),y([_()],Zt.prototype,"provider",2),y([_({attribute:"icon-position"})],Zt.prototype,"iconPosition",2),y([_({attribute:"filter",converter:{fromAttribute:i=>i.split(","),toAttribute:i=>i.join(",")}})],Zt.prototype,"filter",2),y([_({reflect:!0})],Zt.prototype,"size",2),y([_({type:Boolean})],Zt.prototype,"clearable",2),y([_({type:Boolean,attribute:"allow-all"})],Zt.prototype,"allowAll",2),y([_()],Zt.prototype,"label",2),y([_({attribute:"label-tooltip"})],Zt.prototype,"labelTooltip",2),y([_({attribute:"context-note"})],Zt.prototype,"contextNote",2),y([_({reflect:!0})],Zt.prototype,"placement",2),y([_({attribute:"help-text"})],Zt.prototype,"helpText",2),y([_({type:Boolean,reflect:!0})],Zt.prototype,"required",2),y([_({attribute:"icon-only",type:Boolean,reflect:!0})],Zt.prototype,"iconOnly",2),y([_({type:Boolean})],Zt.prototype,"multiple",2),y([He("value",{waitUntilFirstUpdate:!0})],Zt.prototype,"handleValueChange",1);var soe=Zt;Zt.define("zn-data-select");var y7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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-2x-small)}.button-menu--no-gap{--menu-gap:0}.button-menu{display:flex;flex-direction:row;justify-content:flex-end;padding:var(--zn-spacing-small) 0;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 Pn=class extends J{constructor(){super(...arguments);this.limit=-1;this.maxLevel=2;this.size="medium";this.iconSize=24;this._buttons=[];this._originalButtons=[];this.resizeObserver=null;this.handleResize=()=>{this.containerWidth=this.offsetWidth}}async firstUpdated(i){super.firstUpdated(i);let n=this.querySelectorAll("zn-button");for(let r of n)await r.updateComplete;this._originalButtons=Array.from(n).map(r=>({button:r,width:Math.max(r.offsetWidth,150)})),this.querySelectorAll("zn-button").forEach(r=>{r.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.resizeObserver=new ResizeObserver(this.handleResize.bind(this)),this.resizeObserver.observe(this.parentNode)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}calculateVisibleButtons(){var f,h;let i=this.containerWidth,n=0,r=0,a=0,s=0,l=i;this._buttons=[...this._originalButtons],l-=50,this._buttons.sort((p,m)=>{let v=p.button.hasAttribute("primary")?1:p.button.hasAttribute("secondary")?2:3,b=m.button.hasAttribute("primary")?1:m.button.hasAttribute("secondary")?2:3;return v-b}),this._buttons.forEach(p=>{s++,p.button.hasAttribute("primary")?n++:p.button.hasAttribute("secondary")&&r++,l-p.width>0?(l-=p.width,a++):l=0}),this.maxLevel<2?this.limit=this.limit>0?Math.min(this.limit,n):n:this.maxLevel<3&&(this.limit=this.limit>0?Math.min(this.limit,n+r):n+r),this.limit>-1&&(a=Math.min(a,this.limit));let c=(f=this.shadowRoot)==null?void 0:f.querySelector(".button-menu__container");c&&(c.innerHTML="");let d=(h=this.shadowRoot)==null?void 0:h.querySelector("zn-menu");d&&(d.innerHTML=""),this._buttons.forEach((p,m)=>{var v,b;m<a&&((b=(v=this.shadowRoot)==null?void 0:v.querySelector(".button-menu__container"))==null||b.appendChild(p.button),p.button.hasAttribute("color")||p.button.setAttribute("color",p.button.hasAttribute("primary")?"primary":p.button.hasAttribute("secondary")?"secondary":"transparent"),(p.button.hasAttribute("primary")||p.button.hasAttribute("secondary"))&&p.button.setAttribute("text",""),p.button.setAttribute("size",this.size))}),this.calculateMenuButtons(s,a,this._buttons)}calculateMenuButtons(i,n,r){var c,d;let a=(c=this.shadowRoot)==null?void 0:c.querySelector("zn-menu"),s=(d=this.shadowRoot)==null?void 0:d.querySelector("zn-dropdown");if(a&&s){let f=new Set,h={};s.toggleAttribute("hidden",r.length===0||r.length<=n),n!==r.length&&i>0&&(r.forEach((p,m)=>{if(m>=n){let v=document.createElement("zn-menu-item");v.innerText=p.button.innerText,v.setAttribute("id",p.button.id||`zn-button-menu-item-${m}`),v.setAttribute("role","menuitem");let b=p.button.attributes;for(let z=0;z<b.length;z++){let E=b[z];E.name!=="icon"&&E.name!=="category"&&v.setAttribute(E.name,E.value)}let x=p.button.getAttribute("icon");if(x){let z=document.createElement("zn-icon");z.setAttribute("src",x),z.setAttribute("size","18"),z.setAttribute("slot","prefix"),v.appendChild(z)}let k=p.button.getAttribute("category")||"default";f.add(k),h[k]||(h[k]=[]),h[k].push(v)}}),f.forEach(p=>{if(p==="default")h[p].forEach(m=>{a.appendChild(m)});else if(h[p].length===1){let m=h[p][0];a.appendChild(m)}else{let m=document.createElement("zn-menu-item");m.innerText=p.charAt(0).toUpperCase()+p.slice(1);let v=document.createElement("zn-menu");v.setAttribute("slot","submenu"),h[p].forEach(b=>{v.appendChild(b)}),m.appendChild(v),a.appendChild(m)}}))}Ai("zn-confirm",this,"").forEach(f=>{f.updateTriggers()})}render(){return T`
4708
+ </zn-select>`}_updatePrefix(){let i=this.select.selectedOptions[0];if(i&&(this.iconPosition!=="none"||this.iconOnly)&&this.selectPrefix){this.iconPosition==="none"&&this.iconOnly&&(this.iconPosition="start");let n=this.iconPosition==="start"?i.querySelector('[slot="prefix"]'):i.querySelector('[slot="suffix"]');n?(this.selectPrefix.innerHTML="",this.selectPrefix.appendChild(n.cloneNode(!0))):this.selectPrefix.innerHTML=""}else this.selectPrefix&&(this.selectPrefix.innerHTML="")}getPlaceholder(i){return this.value?"":`Choose a ${i.getName}`}};Zt.styles=Z(v7),y([ge("#select")],Zt.prototype,"select",2),y([ge("#select__prefix")],Zt.prototype,"selectPrefix",2),y([_()],Zt.prototype,"name",2),y([_()],Zt.prototype,"value",2),y([_()],Zt.prototype,"provider",2),y([_({attribute:"icon-position"})],Zt.prototype,"iconPosition",2),y([_({attribute:"filter",converter:{fromAttribute:i=>i.split(","),toAttribute:i=>i.join(",")}})],Zt.prototype,"filter",2),y([_({reflect:!0})],Zt.prototype,"size",2),y([_({type:Boolean})],Zt.prototype,"clearable",2),y([_({type:Boolean,attribute:"allow-all"})],Zt.prototype,"allowAll",2),y([_()],Zt.prototype,"label",2),y([_({attribute:"label-tooltip"})],Zt.prototype,"labelTooltip",2),y([_({attribute:"context-note"})],Zt.prototype,"contextNote",2),y([_({reflect:!0})],Zt.prototype,"placement",2),y([_({attribute:"help-text"})],Zt.prototype,"helpText",2),y([_({type:Boolean,reflect:!0})],Zt.prototype,"required",2),y([_({attribute:"icon-only",type:Boolean,reflect:!0})],Zt.prototype,"iconOnly",2),y([_({type:Boolean})],Zt.prototype,"multiple",2),y([He("value",{waitUntilFirstUpdate:!0})],Zt.prototype,"handleValueChange",1);var soe=Zt;Zt.define("zn-data-select");var y7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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-2x-small)}.button-menu--no-gap{--menu-gap:0}.button-menu{display:flex;flex-direction:row;justify-content:flex-end;padding:var(--zn-spacing-small) 0;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 Rn=class extends J{constructor(){super(...arguments);this.limit=-1;this.maxLevel=2;this.size="medium";this.iconSize=24;this._buttons=[];this._originalButtons=[];this.resizeObserver=null;this.handleResize=()=>{this.containerWidth=this.offsetWidth}}async firstUpdated(i){super.firstUpdated(i);let n=this.querySelectorAll("zn-button");for(let r of n)await r.updateComplete;this._originalButtons=Array.from(n).map(r=>({button:r,width:Math.max(r.offsetWidth,150)})),this.querySelectorAll("zn-button").forEach(r=>{r.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.resizeObserver=new ResizeObserver(this.handleResize.bind(this)),this.resizeObserver.observe(this.parentNode)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}calculateVisibleButtons(){var f,h;let i=this.containerWidth,n=0,r=0,a=0,s=0,l=i;this._buttons=[...this._originalButtons],l-=50,this._buttons.sort((p,m)=>{let v=p.button.hasAttribute("primary")?1:p.button.hasAttribute("secondary")?2:3,b=m.button.hasAttribute("primary")?1:m.button.hasAttribute("secondary")?2:3;return v-b}),this._buttons.forEach(p=>{s++,p.button.hasAttribute("primary")?n++:p.button.hasAttribute("secondary")&&r++,l-p.width>0?(l-=p.width,a++):l=0}),this.maxLevel<2?this.limit=this.limit>0?Math.min(this.limit,n):n:this.maxLevel<3&&(this.limit=this.limit>0?Math.min(this.limit,n+r):n+r),this.limit>-1&&(a=Math.min(a,this.limit));let c=(f=this.shadowRoot)==null?void 0:f.querySelector(".button-menu__container");c&&(c.innerHTML="");let d=(h=this.shadowRoot)==null?void 0:h.querySelector("zn-menu");d&&(d.innerHTML=""),this._buttons.forEach((p,m)=>{var v,b;m<a&&((b=(v=this.shadowRoot)==null?void 0:v.querySelector(".button-menu__container"))==null||b.appendChild(p.button),p.button.hasAttribute("color")||p.button.setAttribute("color",p.button.hasAttribute("primary")?"primary":p.button.hasAttribute("secondary")?"secondary":"transparent"),(p.button.hasAttribute("primary")||p.button.hasAttribute("secondary"))&&p.button.setAttribute("text",""),p.button.setAttribute("size",this.size))}),this.calculateMenuButtons(s,a,this._buttons)}calculateMenuButtons(i,n,r){var c,d;let a=(c=this.shadowRoot)==null?void 0:c.querySelector("zn-menu"),s=(d=this.shadowRoot)==null?void 0:d.querySelector("zn-dropdown");if(a&&s){let f=new Set,h={};s.toggleAttribute("hidden",r.length===0||r.length<=n),n!==r.length&&i>0&&(r.forEach((p,m)=>{if(m>=n){let v=document.createElement("zn-menu-item");v.innerText=p.button.innerText,v.setAttribute("id",p.button.id||`zn-button-menu-item-${m}`),v.setAttribute("role","menuitem");let b=p.button.attributes;for(let z=0;z<b.length;z++){let E=b[z];E.name!=="icon"&&E.name!=="category"&&v.setAttribute(E.name,E.value)}let x=p.button.getAttribute("icon");if(x){let z=document.createElement("zn-icon");z.setAttribute("src",x),z.setAttribute("size","18"),z.setAttribute("slot","prefix"),v.appendChild(z)}let k=p.button.getAttribute("category")||"default";f.add(k),h[k]||(h[k]=[]),h[k].push(v)}}),f.forEach(p=>{if(p==="default")h[p].forEach(m=>{a.appendChild(m)});else if(h[p].length===1){let m=h[p][0];a.appendChild(m)}else{let m=document.createElement("zn-menu-item");m.innerText=p.charAt(0).toUpperCase()+p.slice(1);let v=document.createElement("zn-menu");v.setAttribute("slot","submenu"),h[p].forEach(b=>{v.appendChild(b)}),m.appendChild(v),a.appendChild(m)}}))}Ai("zn-confirm",this,"").forEach(f=>{f.updateTriggers()})}render(){return T`
4709
4709
  <div class=${ce({"button-menu":!0,"button-menu--no-padding":this.noPadding,"button-menu--no-gap":this.noGap})}>
4710
4710
  <div class="button-menu__container"></div>
4711
4711
  <zn-dropdown placement="bottom-end">
@@ -4713,7 +4713,7 @@ button {
4713
4713
  <zn-menu></zn-menu>
4714
4714
  </zn-dropdown>
4715
4715
  <slot></slot>
4716
- </div>`}addButton(i){i&&(i.classList.add("zn-button-menu__added"),this._originalButtons.push({button:i,width:Math.max(i.offsetWidth,150)}),this.calculateVisibleButtons())}setDynamicButtons(i){this.removeAllButtons(),!(!i||i.length===0)&&i.forEach(n=>{this.addButton(n)})}removeButton(i){var a;let n=this.querySelector(`zn-button.${i}`);n&&(this._originalButtons=this._originalButtons.filter(s=>s.button!==n),n.remove());let r=this.querySelector(`zn-menu-item#${i}`);r&&((a=this.shadowRoot)!=null&&a.querySelector("zn-menu"))&&r.remove(),this.calculateVisibleButtons()}removeAllButtons(){var r,a;let i=(r=this.shadowRoot)==null?void 0:r.querySelectorAll("zn-button.zn-button-menu__added");i&&i.forEach(s=>{s.remove()});let n=(a=this.shadowRoot)==null?void 0:a.querySelectorAll("zn-menu-item.zn-button-menu__added");n&&(n==null||n.forEach(s=>{s.remove()})),this._buttons=[],this._originalButtons=this._originalButtons.filter(s=>!s.button.classList.contains("zn-button-menu__added")),this.calculateVisibleButtons()}};Pn.styles=Z(y7),y([_({type:Number,attribute:"max-width"})],Pn.prototype,"maxWidth",2),y([_({type:Number})],Pn.prototype,"containerWidth",2),y([_({type:Number,attribute:"limit"})],Pn.prototype,"limit",2),y([_({type:Number,attribute:"max-level"})],Pn.prototype,"maxLevel",2),y([_({})],Pn.prototype,"size",2),y([_({type:Number,attribute:"icon-size",reflect:!0})],Pn.prototype,"iconSize",2),y([_({type:Boolean,attribute:"no-gap"})],Pn.prototype,"noGap",2),y([_({type:Boolean,attribute:"no-padding"})],Pn.prototype,"noPadding",2),y([He("containerWidth",{waitUntilFirstUpdate:!0})],Pn.prototype,"watchContainerMaxWidth",1);var loe=Pn;Pn.define("zn-button-menu");var x7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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:0 auto}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--width:min(100vw,46rem);--header-spacing:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-medium);--body-spacing:var(--zn-spacing-medium) var(--zn-spacing-large);--footer-spacing:var(--zn-spacing-large);--icon-background-color:var(--zn-color-primary-200);--icon-color:var(--zn-color-primary-600);--caption-color:var(--zn-color-primary-600);display:contents}.slideout{left:unset;top:0;bottom:0;right:0;margin:0;max-height:100%;height:100%;overflow:hidden;overflow-y:auto;flex-direction:column;z-index:2;padding:0;width:var(--width);background-color:var(--zn-panel-background-color);box-shadow:var(--zn-shadow-x-large)}.slideout__header{flex:0 0 auto;display:flex;border-bottom:1px solid rgb(var(--zn-border-color))}.slideout__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0;color:rgb(var(--zn-text-panel-title));font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-font-size-x-large);padding:var(--header-spacing)}.slideout__header-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:end;align-items:center;margin-left:auto;gap:var(--zn-spacing-x-small);padding:var(--header-spacing)}.slideout__header-actions zn-button,.slideout__header-actions::slotted(zn-button){flex:0 0 auto;display:flex;align-items:center;font-size:var(--zn-font-size-medium)}.slideout__body{flex:1 1 auto;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.slideout__footer{display:flex;justify-content:space-between;flex:0 0 auto;padding:var(--footer-spacing);border-top:1px solid rgb(var(--zn-border-color))}.slideout__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}`;var br=class extends J{constructor(){super(...arguments);this.localize=new tn(this);this.open=!1;this.closeClickHandler=i=>{i.target instanceof HTMLElement&&i.target.hasAttribute("slideout-closer")&&this.hide()}}firstUpdated(i){super.firstUpdated(i),this.open&&this.show()}connectedCallback(){var i,n;if(super.connectedCallback(),this.addEventListener("click",this.closeClickHandler),(i=this.shadowRoot)==null||i.addEventListener("click",this.closeClickHandler),this.trigger){let r=(n=this.parentNode)==null?void 0:n.querySelector("#"+this.trigger);r&&r.addEventListener("click",()=>this.show())}}disconnectedCallback(){var i,n;if(super.disconnectedCallback(),this.slideout.close(),Tg(this),(i=this.closeWatcher)==null||i.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let r=(n=this.parentElement)==null?void 0:n.querySelector("#"+this.trigger);r&&r.removeEventListener("click",()=>this.show())}}requestClose(i){this.emit("zn-request-close",{cancelable:!0,detail:{source:i}}).defaultPrevented||this.hide()}addOpenListeners(){var i;"CloseWatcher"in window&&((i=this.closeWatcher)==null||i.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){var i;(i=this.closeWatcher)==null||i.destroy()}async show(){this.emit("zn-show"),this.addOpenListeners(),this.open=!0,this.slideout.showModal();let{keyframes:i,options:n}=pa(this,"slideout.show",{dir:this.localize.dir()});await ha(this.slideout,i,n)}async hide(){this.emit("zn-close"),this.removeOpenListeners();let{keyframes:i,options:n}=pa(this,"slideout.hide",{dir:this.localize.dir()});await ha(this.slideout,i,n),this.open=!1,this.slideout.close()}render(){return T`
4716
+ </div>`}addButton(i){i&&(i.classList.add("zn-button-menu__added"),this._originalButtons.push({button:i,width:Math.max(i.offsetWidth,150)}),this.calculateVisibleButtons())}setDynamicButtons(i){this.removeAllButtons(),!(!i||i.length===0)&&i.forEach(n=>{this.addButton(n)})}removeButton(i){var a;let n=this.querySelector(`zn-button.${i}`);n&&(this._originalButtons=this._originalButtons.filter(s=>s.button!==n),n.remove());let r=this.querySelector(`zn-menu-item#${i}`);r&&((a=this.shadowRoot)!=null&&a.querySelector("zn-menu"))&&r.remove(),this.calculateVisibleButtons()}removeAllButtons(){var r,a;let i=(r=this.shadowRoot)==null?void 0:r.querySelectorAll("zn-button.zn-button-menu__added");i&&i.forEach(s=>{s.remove()});let n=(a=this.shadowRoot)==null?void 0:a.querySelectorAll("zn-menu-item.zn-button-menu__added");n&&(n==null||n.forEach(s=>{s.remove()})),this._buttons=[],this._originalButtons=this._originalButtons.filter(s=>!s.button.classList.contains("zn-button-menu__added")),this.calculateVisibleButtons()}};Rn.styles=Z(y7),y([_({type:Number,attribute:"max-width"})],Rn.prototype,"maxWidth",2),y([_({type:Number})],Rn.prototype,"containerWidth",2),y([_({type:Number,attribute:"limit"})],Rn.prototype,"limit",2),y([_({type:Number,attribute:"max-level"})],Rn.prototype,"maxLevel",2),y([_({})],Rn.prototype,"size",2),y([_({type:Number,attribute:"icon-size",reflect:!0})],Rn.prototype,"iconSize",2),y([_({type:Boolean,attribute:"no-gap"})],Rn.prototype,"noGap",2),y([_({type:Boolean,attribute:"no-padding"})],Rn.prototype,"noPadding",2),y([He("containerWidth",{waitUntilFirstUpdate:!0})],Rn.prototype,"watchContainerMaxWidth",1);var loe=Rn;Rn.define("zn-button-menu");var x7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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:0 auto}.width-container{max-width:var(--zn-container)}.form-container{max-width:var(--zn-container-ph)}.wide-form-container{max-width:var(--zn-container-lg)}:host{--width:min(100vw,46rem);--header-spacing:var(--zn-spacing-large) var(--zn-spacing-large) var(--zn-spacing-medium);--body-spacing:var(--zn-spacing-medium) var(--zn-spacing-large);--footer-spacing:var(--zn-spacing-large);--icon-background-color:var(--zn-color-primary-200);--icon-color:var(--zn-color-primary-600);--caption-color:var(--zn-color-primary-600);display:contents}.slideout{left:unset;top:0;bottom:0;right:0;margin:0;max-height:100%;height:100%;overflow:hidden;overflow-y:auto;flex-direction:column;z-index:2;padding:0;width:var(--width);background-color:var(--zn-panel-background-color);box-shadow:var(--zn-shadow-x-large)}.slideout__header{flex:0 0 auto;display:flex;border-bottom:1px solid rgb(var(--zn-border-color))}.slideout__title{display:flex;flex:1 1 auto;align-items:center;font:inherit;margin:0;color:rgb(var(--zn-text-panel-title));font-size:var(--zn-font-size-x-large);font-weight:var(--zn-font-weight-semibold);letter-spacing:var(--zn-letter-spacing-normal);line-height:var(--zn-font-size-x-large);padding:var(--header-spacing)}.slideout__header-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:end;align-items:center;margin-left:auto;gap:var(--zn-spacing-x-small);padding:var(--header-spacing)}.slideout__header-actions zn-button,.slideout__header-actions::slotted(zn-button){flex:0 0 auto;display:flex;align-items:center;font-size:var(--zn-font-size-medium)}.slideout__body{flex:1 1 auto;display:block;padding:var(--body-spacing);overflow:auto;-webkit-overflow-scrolling:touch;color:var(--zn-color-text-default);font-size:var(--zn-font-size-medium);font-weight:var(--zn-font-weight-normal);letter-spacing:var(--zn-tracking-normal);line-height:var(--zn-line-height-dense)}.slideout__footer{display:flex;justify-content:space-between;flex:0 0 auto;padding:var(--footer-spacing);border-top:1px solid rgb(var(--zn-border-color))}.slideout__footer ::slotted(zn-button:not(:first-of-type)){margin-inline-start:var(--zn-spacing-x-small)}`;var br=class extends J{constructor(){super(...arguments);this.localize=new tn(this);this.open=!1;this.closeClickHandler=i=>{i.target instanceof HTMLElement&&i.target.hasAttribute("slideout-closer")&&this.hide()}}firstUpdated(i){super.firstUpdated(i),this.open&&this.show()}connectedCallback(){var i,n;if(super.connectedCallback(),this.addEventListener("click",this.closeClickHandler),(i=this.shadowRoot)==null||i.addEventListener("click",this.closeClickHandler),this.trigger){let r=(n=this.parentNode)==null?void 0:n.querySelector("#"+this.trigger);r&&r.addEventListener("click",()=>this.show())}}disconnectedCallback(){var i,n;if(super.disconnectedCallback(),this.slideout.close(),Tg(this),(i=this.closeWatcher)==null||i.destroy(),this.removeEventListener("click",this.closeClickHandler),this.trigger){let r=(n=this.parentElement)==null?void 0:n.querySelector("#"+this.trigger);r&&r.removeEventListener("click",()=>this.show())}}requestClose(i){this.emit("zn-request-close",{cancelable:!0,detail:{source:i}}).defaultPrevented||this.hide()}addOpenListeners(){var i;"CloseWatcher"in window&&((i=this.closeWatcher)==null||i.destroy(),this.closeWatcher=new CloseWatcher,this.closeWatcher.onclose=()=>this.requestClose("keyboard"))}removeOpenListeners(){var i;(i=this.closeWatcher)==null||i.destroy()}async show(){this.emit("zn-show"),this.addOpenListeners(),this.open=!0,this.slideout.showModal();let{keyframes:i,options:n}=pa(this,"slideout.show",{dir:this.localize.dir()});await ha(this.slideout,i,n)}async hide(){this.emit("zn-close"),this.removeOpenListeners();let{keyframes:i,options:n}=pa(this,"slideout.hide",{dir:this.localize.dir()});await ha(this.slideout,i,n),this.open=!1,this.slideout.close()}render(){return T`
4717
4717
  <dialog
4718
4718
  part="base"
4719
4719
  role="alertdialog"
@@ -4878,9 +4878,9 @@ button {
4878
4878
  <zn-button icon="keyboard_arrow_down"></zn-button>
4879
4879
  </zn-button-group>
4880
4880
  </div>
4881
- `}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(i){this._isButton()&&(this.button.setCustomValidity(i),this.formControlController.updateValidity())}get validity(){return this._isButton()&&this.button?this.button.validity:kn}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}_isButton(){return this.type==="submit"||this.type==="button"||this.type==="reset"}};Jn.styles=Z(S7),y([_()],Jn.prototype,"caption",2),y([_()],Jn.prototype,"href",2),y([_()],Jn.prototype,"name",2),y([_()],Jn.prototype,"value",2),y([rn()],Jn.prototype,"defaultValue",2),y([_()],Jn.prototype,"type",2),y([ge("zn-dropdown")],Jn.prototype,"dropdown",2),y([ge("zn-button#trigger-btn")],Jn.prototype,"button",2);var moe=Jn;Jn.define("zn-split-button");var Xp=globalThis,f0=Xp.trustedTypes,A7=f0?f0.createPolicy("lit-html",{createHTML:o=>o}):void 0,R7="$lit$",Ol=`lit$${Math.random().toFixed(9).slice(2)}$`,O7="?"+Ol,goe=`<${O7}>`,id=document,h0=()=>id.createComment(""),Kp=o=>o===null||typeof o!="object"&&typeof o!="function",W_=Array.isArray,boe=o=>W_(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",D_=`[
4881
+ `}checkValidity(){return this._isButton()&&this.button?this.button.checkValidity():!0}getForm(){return this.formControlController.getForm()}reportValidity(){return this._isButton()&&this.button?this.button.reportValidity():!0}setCustomValidity(i){this._isButton()&&(this.button.setCustomValidity(i),this.formControlController.updateValidity())}get validity(){return this._isButton()&&this.button?this.button.validity:_n}get validationMessage(){return this._isButton()&&this.button?this.button.validationMessage:""}_isButton(){return this.type==="submit"||this.type==="button"||this.type==="reset"}};Jn.styles=Z(S7),y([_()],Jn.prototype,"caption",2),y([_()],Jn.prototype,"href",2),y([_()],Jn.prototype,"name",2),y([_()],Jn.prototype,"value",2),y([rn()],Jn.prototype,"defaultValue",2),y([_()],Jn.prototype,"type",2),y([ge("zn-dropdown")],Jn.prototype,"dropdown",2),y([ge("zn-button#trigger-btn")],Jn.prototype,"button",2);var moe=Jn;Jn.define("zn-split-button");var Xp=globalThis,f0=Xp.trustedTypes,A7=f0?f0.createPolicy("lit-html",{createHTML:o=>o}):void 0,R7="$lit$",Ol=`lit$${Math.random().toFixed(9).slice(2)}$`,O7="?"+Ol,goe=`<${O7}>`,id=document,h0=()=>id.createComment(""),Kp=o=>o===null||typeof o!="object"&&typeof o!="function",W_=Array.isArray,boe=o=>W_(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",D_=`[
4882
4882
  \f\r]`,Yp=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E7=/-->/g,T7=/>/g,ed=RegExp(`>|${D_}(?:([^\\s"'>=/]+)(${D_}*=${D_}*(?:[^
4883
- \f\r"'\`<>=]|("|')|))|$)`,"g"),M7=/'/g,L7=/"/g,D7=/^(?:script|style|textarea|title)$/i,j_=o=>(t,...i)=>({_$litType$:o,strings:t,values:i}),oOe=j_(1),aOe=j_(2),sOe=j_(3),nd=Symbol.for("lit-noChange"),qi=Symbol.for("lit-nothing"),q7=new WeakMap,td=id.createTreeWalker(id,129);function $7(o,t){if(!W_(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return A7!==void 0?A7.createHTML(t):t}var voe=(o,t)=>{let i=o.length-1,n=[],r,a=t===2?"<svg>":t===3?"<math>":"",s=Yp;for(let l=0;l<i;l++){let c=o[l],d,f,h=-1,p=0;for(;p<c.length&&(s.lastIndex=p,f=s.exec(c),f!==null);)p=s.lastIndex,s===Yp?f[1]==="!--"?s=E7:f[1]!==void 0?s=T7:f[2]!==void 0?(D7.test(f[2])&&(r=RegExp("</"+f[2],"g")),s=ed):f[3]!==void 0&&(s=ed):s===ed?f[0]===">"?(s=r!=null?r:Yp,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,d=f[1],s=f[3]===void 0?ed:f[3]==='"'?L7:M7):s===L7||s===M7?s=ed:s===E7||s===T7?s=Yp:(s=ed,r=void 0);let m=s===ed&&o[l+1].startsWith("/>")?" ":"";a+=s===Yp?c+goe:h>=0?(n.push(d),c.slice(0,h)+R7+c.slice(h)+Ol+m):c+Ol+(h===-2?l:m)}return[$7(o,a+(o[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Jp=class o{constructor({strings:t,_$litType$:i},n){let r;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,f]=voe(t,i);if(this.el=o.createElement(d,n),td.currentNode=this.el.content,i===2||i===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=td.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(R7)){let p=f[s++],m=r.getAttribute(h).split(Ol),v=/([.?@])?(.*)/.exec(p);c.push({type:1,index:a,name:v[2],strings:m,ctor:v[1]==="."?F_:v[1]==="?"?N_:v[1]==="@"?H_:ah}),r.removeAttribute(h)}else h.startsWith(Ol)&&(c.push({type:6,index:a}),r.removeAttribute(h));if(D7.test(r.tagName)){let h=r.textContent.split(Ol),p=h.length-1;if(p>0){r.textContent=f0?f0.emptyScript:"";for(let m=0;m<p;m++)r.append(h[m],h0()),td.nextNode(),c.push({type:2,index:++a});r.append(h[p],h0())}}}else if(r.nodeType===8)if(r.data===O7)c.push({type:2,index:a});else{let h=-1;for(;(h=r.data.indexOf(Ol,h+1))!==-1;)c.push({type:7,index:a}),h+=Ol.length-1}a++}}static createElement(t,i){let n=id.createElement("template");return n.innerHTML=t,n}};function oh(o,t,i=o,n){var s,l,c;if(t===nd)return t;let r=n!==void 0?(s=i._$Co)==null?void 0:s[n]:i._$Cl,a=Kp(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==a&&((l=r==null?void 0:r._$AO)==null||l.call(r,!1),a===void 0?r=void 0:(r=new a(o),r._$AT(o,i,n)),n!==void 0?((c=i._$Co)!=null?c:i._$Co=[])[n]=r:i._$Cl=r),r!==void 0&&(t=oh(o,r._$AS(o,t.values),r,n)),t}var I_=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;let{el:{content:i},parts:n}=this._$AD,r=((d=t==null?void 0:t.creationScope)!=null?d:id).importNode(i,!0);td.currentNode=r;let a=td.nextNode(),s=0,l=0,c=n[0];for(;c!==void 0;){if(s===c.index){let f;c.type===2?f=new u0(a,a.nextSibling,this,t):c.type===1?f=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(f=new B_(a,this,t)),this._$AV.push(f),c=n[++l]}s!==(c==null?void 0:c.index)&&(a=td.nextNode(),s++)}return td.currentNode=id,r}p(t){let i=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}},u0=class o{get _$AU(){var t,i;return(i=(t=this._$AM)==null?void 0:t._$AU)!=null?i:this._$Cv}constructor(t,i,n,r){var a;this.type=2,this._$AH=qi,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=r,this._$Cv=(a=r==null?void 0:r.isConnected)!=null?a:!0}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=oh(this,t,i),Kp(t)?t===qi||t==null||t===""?(this._$AH!==qi&&this._$AR(),this._$AH=qi):t!==this._$AH&&t!==nd&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):boe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==qi&&Kp(this._$AH)?this._$AA.nextSibling.data=t:this.T(id.createTextNode(t)),this._$AH=t}$(t){var a;let{values:i,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Jp.createElement($7(n.h,n.h[0]),this.options)),n);if(((a=this._$AH)==null?void 0:a._$AD)===r)this._$AH.p(i);else{let s=new I_(r,this),l=s.u(this.options);s.p(i),this.T(l),this._$AH=s}}_$AC(t){let i=q7.get(t.strings);return i===void 0&&q7.set(t.strings,i=new Jp(t)),i}k(t){W_(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,n,r=0;for(let a of t)r===i.length?i.push(n=new o(this.O(h0()),this.O(h0()),this,this.options)):n=i[r],n._$AI(a),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,i);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cv=t,(i=this._$AP)==null||i.call(this,t))}},ah=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,n,r,a){this.type=1,this._$AH=qi,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=qi}_$AI(t,i=this,n,r){let a=this.strings,s=!1;if(a===void 0)t=oh(this,t,i,0),s=!Kp(t)||t!==this._$AH&&t!==nd,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=oh(this,l[n+c],i,c),d===nd&&(d=this._$AH[c]),s||(s=!Kp(d)||d!==this._$AH[c]),d===qi?t=qi:t!==qi&&(t+=(d!=null?d:"")+a[c+1]),this._$AH[c]=d}s&&!r&&this.j(t)}j(t){t===qi?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},F_=class extends ah{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===qi?void 0:t}},N_=class extends ah{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==qi)}},H_=class extends ah{constructor(t,i,n,r,a){super(t,i,n,r,a),this.type=5}_$AI(t,i=this){var s;if((t=(s=oh(this,t,i,0))!=null?s:qi)===nd)return;let n=this._$AH,r=t===qi&&n!==qi||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,a=t!==qi&&(n===qi||r);r&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,n;typeof this._$AH=="function"?this._$AH.call((n=(i=this.options)==null?void 0:i.host)!=null?n:this.element,t):this._$AH.handleEvent(t)}},B_=class{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){oh(this,t)}};var $_=Xp.litHtmlPolyfillSupport,P7;$_==null||$_(Jp,u0),((P7=Xp.litHtmlVersions)!=null?P7:Xp.litHtmlVersions=[]).push("3.3.0");var I7={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},F7=o=>(...t)=>({_$litDirective$:o,values:t}),p0=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,n){this._$Ct=t,this._$AM=i,this._$Ci=n}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};var Qp=class extends p0{constructor(t){if(super(t),this.it=qi,t.type!==I7.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===qi||t==null)return this._t=void 0,this.it=t;if(t===nd)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};Qp.directiveName="unsafeHTML",Qp.resultType=1;var N7=F7(Qp);var H7=te`@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}: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: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{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}zn-header div[slot=actions]{display:flex;align-items:center;gap:10px}.content-block--collapsible zn-header::part(base){cursor:pointer}zn-header::part(header-left){flex-direction:row;align-items:center;gap:10px}zn-navbar{cursor:default}.content-block--short zn-sp,.content-block--short zn-navbar{display:none}.content-block--short zn-header::part(base){border-bottom:none}zn-panel.content-block--short::part(mid){display:none}@container (max-width:599px){zn-panel.content-block--short zn-header::part(header-description){display:none}}zn-panel:not(.content-block--short) zn-header::part(header-description){display:none}.text-section{font-size:13px;line-height:19px}.text-section a{font-size:10px;opacity:0.8}.hidden{display:none}ol{counter-reset:list-0 0}@supports (counter-set:none){ol li,ul li{counter-set:list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0}}ol,ul{padding:0;margin:0}li[data-list=checked]>.ql-ui,li[data-list=unchecked]>.ql-ui{color:#777}li{list-style-type:none;padding-left:1em;position:relative}ul>li::before{content:"•"}ol>li{counter-increment:list-0}ol>li::before{content:counter(list-0) ". "}li[data-list=checked]::before{content:"☑"}li[data-list=unchecked]::before{content:"☐"}li[data-list=checked]::before,li[data-list=unchecked]::before{color:#777}ol li::before,ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}li:has(>.ql-ui)::before{content:none;display:none}`;var Rn=class extends J{constructor(){super(...arguments);this.time="";this.sender="";this.avatar="";this.outbound=!1;this.noCollapse=!1;this.short=!1;this.defaultDisplay="text";this.hasSlotController=new Ue(this,"text","html");this._textRows=[];this._replaceDebounce=0}connectedCallback(){super.connectedCallback(),this.iframe.then(i=>{var n;if(i.contentDocument){let r=this.htmlNodes[0];if(r){let a=(n=r==null?void 0:r.innerHTML)!=null?n:"";a=a.replace(/&nbsp;/g," "),a=a.replace(/&lt;/g,"<"),a=a.replace(/&gt;/g,">"),a=a.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");let s="<style>body,html{background-color: #ffffff}img{max-width:100%; max-height: 500px;}</style>";i.srcdoc=s+a}}i.addEventListener("load",()=>{setTimeout(()=>this._resizeIframe(i),50)})})}disconnectedCallback(){var i;try{this._footerObserver&&(this._footerObserver.disconnect(),this._footerObserver=void 0),this._replaceDebounce&&(clearTimeout(this._replaceDebounce),this._replaceDebounce=0)}finally{(i=super.disconnectedCallback)==null||i.call(this)}}_collapseContent(i){var a;if(this.noCollapse)return;let n=i.target;(n.classList.contains("content-block-header")||((a=n.parentElement)==null?void 0:a.classList.contains("content-block-header")))&&n.slot!=="nav"&&(this.short=!this.short,this.requestUpdate(),this.updateComplete.then(()=>{this.short||this.iframe.then(s=>{s&&!s.classList.contains("hidden")&&this._resizeIframe(s)})}))}_toggleText(){var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector(".text-content");this.iframe.then(r=>{i&&(r.classList.add("hidden"),i.classList.remove("hidden"))})}_toggleHtml(){var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector(".text-content");this.iframe.then(r=>{i&&(r.classList.remove("hidden"),i.classList.add("hidden"),setTimeout(()=>this._resizeIframe(r),0))})}_resizeIframe(i){let n=r=>{var f,h,p,m;let a=r.contentDocument;if(!a)return;r.style.height="auto";let s=a.body,l=a.documentElement,c=[(f=s==null?void 0:s.scrollHeight)!=null?f:0,(h=l==null?void 0:l.scrollHeight)!=null?h:0,(p=s==null?void 0:s.offsetHeight)!=null?p:0,(m=l==null?void 0:l.offsetHeight)!=null?m:0],d=Math.max(...c);d>0&&(r.style.height=`${d}px`)};i?n(i):this.iframe.then(r=>{r!=null&&r.contentDocument&&requestAnimationFrame(()=>n(r))})}firstUpdated(i){var r;super.firstUpdated(i);let n=(r=this.shadowRoot)==null?void 0:r.querySelectorAll(".text-section");n&&n.length>0&&n.forEach(a=>{a.innerHTML=a.innerHTML.replace(/&nbsp;/g," "),a.innerHTML=a.innerHTML.replace(/<!--[\s\S]*?-->/g,""),a.innerHTML=a.innerHTML.replace(/<\/p><br>/g,"</p>")})}render(){let i=this.getTextSections(),n=this.querySelector(':scope > [slot="footer"]')!==null,r=this.hasSlotController.test("text"),a=this.hasSlotController.test("html"),s=r&&a,l=a&&(!r||this.defaultDisplay==="html");return T`
4883
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),M7=/'/g,L7=/"/g,D7=/^(?:script|style|textarea|title)$/i,j_=o=>(t,...i)=>({_$litType$:o,strings:t,values:i}),oOe=j_(1),aOe=j_(2),sOe=j_(3),nd=Symbol.for("lit-noChange"),qi=Symbol.for("lit-nothing"),q7=new WeakMap,td=id.createTreeWalker(id,129);function $7(o,t){if(!W_(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return A7!==void 0?A7.createHTML(t):t}var voe=(o,t)=>{let i=o.length-1,n=[],r,a=t===2?"<svg>":t===3?"<math>":"",s=Yp;for(let l=0;l<i;l++){let c=o[l],d,f,h=-1,p=0;for(;p<c.length&&(s.lastIndex=p,f=s.exec(c),f!==null);)p=s.lastIndex,s===Yp?f[1]==="!--"?s=E7:f[1]!==void 0?s=T7:f[2]!==void 0?(D7.test(f[2])&&(r=RegExp("</"+f[2],"g")),s=ed):f[3]!==void 0&&(s=ed):s===ed?f[0]===">"?(s=r!=null?r:Yp,h=-1):f[1]===void 0?h=-2:(h=s.lastIndex-f[2].length,d=f[1],s=f[3]===void 0?ed:f[3]==='"'?L7:M7):s===L7||s===M7?s=ed:s===E7||s===T7?s=Yp:(s=ed,r=void 0);let m=s===ed&&o[l+1].startsWith("/>")?" ":"";a+=s===Yp?c+goe:h>=0?(n.push(d),c.slice(0,h)+R7+c.slice(h)+Ol+m):c+Ol+(h===-2?l:m)}return[$7(o,a+(o[i]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},Jp=class o{constructor({strings:t,_$litType$:i},n){let r;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,f]=voe(t,i);if(this.el=o.createElement(d,n),td.currentNode=this.el.content,i===2||i===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=td.nextNode())!==null&&c.length<l;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(R7)){let p=f[s++],m=r.getAttribute(h).split(Ol),v=/([.?@])?(.*)/.exec(p);c.push({type:1,index:a,name:v[2],strings:m,ctor:v[1]==="."?F_:v[1]==="?"?N_:v[1]==="@"?H_:ah}),r.removeAttribute(h)}else h.startsWith(Ol)&&(c.push({type:6,index:a}),r.removeAttribute(h));if(D7.test(r.tagName)){let h=r.textContent.split(Ol),p=h.length-1;if(p>0){r.textContent=f0?f0.emptyScript:"";for(let m=0;m<p;m++)r.append(h[m],h0()),td.nextNode(),c.push({type:2,index:++a});r.append(h[p],h0())}}}else if(r.nodeType===8)if(r.data===O7)c.push({type:2,index:a});else{let h=-1;for(;(h=r.data.indexOf(Ol,h+1))!==-1;)c.push({type:7,index:a}),h+=Ol.length-1}a++}}static createElement(t,i){let n=id.createElement("template");return n.innerHTML=t,n}};function oh(o,t,i=o,n){var s,l,c;if(t===nd)return t;let r=n!==void 0?(s=i._$Co)==null?void 0:s[n]:i._$Cl,a=Kp(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==a&&((l=r==null?void 0:r._$AO)==null||l.call(r,!1),a===void 0?r=void 0:(r=new a(o),r._$AT(o,i,n)),n!==void 0?((c=i._$Co)!=null?c:i._$Co=[])[n]=r:i._$Cl=r),r!==void 0&&(t=oh(o,r._$AS(o,t.values),r,n)),t}var I_=class{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;let{el:{content:i},parts:n}=this._$AD,r=((d=t==null?void 0:t.creationScope)!=null?d:id).importNode(i,!0);td.currentNode=r;let a=td.nextNode(),s=0,l=0,c=n[0];for(;c!==void 0;){if(s===c.index){let f;c.type===2?f=new u0(a,a.nextSibling,this,t):c.type===1?f=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(f=new B_(a,this,t)),this._$AV.push(f),c=n[++l]}s!==(c==null?void 0:c.index)&&(a=td.nextNode(),s++)}return td.currentNode=id,r}p(t){let i=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,i),i+=n.strings.length-2):n._$AI(t[i])),i++}},u0=class o{get _$AU(){var t,i;return(i=(t=this._$AM)==null?void 0:t._$AU)!=null?i:this._$Cv}constructor(t,i,n,r){var a;this.type=2,this._$AH=qi,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=n,this.options=r,this._$Cv=(a=r==null?void 0:r.isConnected)!=null?a:!0}get parentNode(){let t=this._$AA.parentNode,i=this._$AM;return i!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=oh(this,t,i),Kp(t)?t===qi||t==null||t===""?(this._$AH!==qi&&this._$AR(),this._$AH=qi):t!==this._$AH&&t!==nd&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):boe(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==qi&&Kp(this._$AH)?this._$AA.nextSibling.data=t:this.T(id.createTextNode(t)),this._$AH=t}$(t){var a;let{values:i,_$litType$:n}=t,r=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=Jp.createElement($7(n.h,n.h[0]),this.options)),n);if(((a=this._$AH)==null?void 0:a._$AD)===r)this._$AH.p(i);else{let s=new I_(r,this),l=s.u(this.options);s.p(i),this.T(l),this._$AH=s}}_$AC(t){let i=q7.get(t.strings);return i===void 0&&q7.set(t.strings,i=new Jp(t)),i}k(t){W_(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,n,r=0;for(let a of t)r===i.length?i.push(n=new o(this.O(h0()),this.O(h0()),this,this.options)):n=i[r],n._$AI(a),r++;r<i.length&&(this._$AR(n&&n._$AB.nextSibling,r),i.length=r)}_$AR(t=this._$AA.nextSibling,i){var n;for((n=this._$AP)==null?void 0:n.call(this,!1,!0,i);t&&t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){var i;this._$AM===void 0&&(this._$Cv=t,(i=this._$AP)==null||i.call(this,t))}},ah=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,n,r,a){this.type=1,this._$AH=qi,this._$AN=void 0,this.element=t,this.name=i,this._$AM=r,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=qi}_$AI(t,i=this,n,r){let a=this.strings,s=!1;if(a===void 0)t=oh(this,t,i,0),s=!Kp(t)||t!==this._$AH&&t!==nd,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=oh(this,l[n+c],i,c),d===nd&&(d=this._$AH[c]),s||(s=!Kp(d)||d!==this._$AH[c]),d===qi?t=qi:t!==qi&&(t+=(d!=null?d:"")+a[c+1]),this._$AH[c]=d}s&&!r&&this.j(t)}j(t){t===qi?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}},F_=class extends ah{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===qi?void 0:t}},N_=class extends ah{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==qi)}},H_=class extends ah{constructor(t,i,n,r,a){super(t,i,n,r,a),this.type=5}_$AI(t,i=this){var s;if((t=(s=oh(this,t,i,0))!=null?s:qi)===nd)return;let n=this._$AH,r=t===qi&&n!==qi||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,a=t!==qi&&(n===qi||r);r&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,n;typeof this._$AH=="function"?this._$AH.call((n=(i=this.options)==null?void 0:i.host)!=null?n:this.element,t):this._$AH.handleEvent(t)}},B_=class{constructor(t,i,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){oh(this,t)}};var $_=Xp.litHtmlPolyfillSupport,P7;$_==null||$_(Jp,u0),((P7=Xp.litHtmlVersions)!=null?P7:Xp.litHtmlVersions=[]).push("3.3.0");var I7={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},F7=o=>(...t)=>({_$litDirective$:o,values:t}),p0=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,n){this._$Ct=t,this._$AM=i,this._$Ci=n}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}};var Qp=class extends p0{constructor(t){if(super(t),this.it=qi,t.type!==I7.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===qi||t==null)return this._t=void 0,this.it=t;if(t===nd)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}};Qp.directiveName="unsafeHTML",Qp.resultType=1;var N7=F7(Qp);var H7=te`@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}: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: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{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}:host *,:host *::before,:host *::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgb(var(--zn-border-color))}zn-header div[slot=actions]{display:flex;align-items:center;gap:10px}.content-block--collapsible zn-header::part(base){cursor:pointer}zn-header::part(header-left){flex-direction:row;align-items:center;gap:10px}zn-navbar{cursor:default}.content-block--short zn-sp,.content-block--short zn-navbar{display:none}.content-block--short zn-header::part(base){border-bottom:none}zn-panel.content-block--short::part(mid){display:none}@container (max-width:599px){zn-panel.content-block--short zn-header::part(header-description){display:none}}zn-panel:not(.content-block--short) zn-header::part(header-description){display:none}.text-section{font-size:13px;line-height:19px}.text-section a{font-size:10px;opacity:0.8}.hidden{display:none}ol{counter-reset:list-0 0}@supports (counter-set:none){ol li,ul li{counter-set:list-1 0 list-2 0 list-3 0 list-4 0 list-5 0 list-6 0 list-7 0 list-8 0 list-9 0}}ol,ul{padding:0;margin:0}li[data-list=checked]>.ql-ui,li[data-list=unchecked]>.ql-ui{color:#777}li{list-style-type:none;padding-left:1em;position:relative}ul>li::before{content:"•"}ol>li{counter-increment:list-0}ol>li::before{content:counter(list-0) ". "}li[data-list=checked]::before{content:"☑"}li[data-list=unchecked]::before{content:"☐"}li[data-list=checked]::before,li[data-list=unchecked]::before{color:#777}ol li::before,ul li::before{display:inline-block;margin-left:-1.5em;margin-right:0.3em;text-align:right;white-space:nowrap;width:1.2em}li:has(>.ql-ui)::before{content:none;display:none}`;var On=class extends J{constructor(){super(...arguments);this.time="";this.sender="";this.avatar="";this.outbound=!1;this.noCollapse=!1;this.short=!1;this.defaultDisplay="text";this.hasSlotController=new Ue(this,"text","html");this._textRows=[];this._replaceDebounce=0}connectedCallback(){super.connectedCallback(),this.iframe.then(i=>{var n;if(i.contentDocument){let r=this.htmlNodes[0];if(r){let a=(n=r==null?void 0:r.innerHTML)!=null?n:"";a=a.replace(/&nbsp;/g," "),a=a.replace(/&lt;/g,"<"),a=a.replace(/&gt;/g,">"),a=a.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");let s="<style>body,html{background-color: #ffffff}img{max-width:100%; max-height: 500px;}</style>";i.srcdoc=s+a}}i.addEventListener("load",()=>{setTimeout(()=>this._resizeIframe(i),50)})})}disconnectedCallback(){var i;try{this._footerObserver&&(this._footerObserver.disconnect(),this._footerObserver=void 0),this._replaceDebounce&&(clearTimeout(this._replaceDebounce),this._replaceDebounce=0)}finally{(i=super.disconnectedCallback)==null||i.call(this)}}_collapseContent(i){var a;if(this.noCollapse)return;let n=i.target;(n.classList.contains("content-block-header")||((a=n.parentElement)==null?void 0:a.classList.contains("content-block-header")))&&n.slot!=="nav"&&(this.short=!this.short,this.requestUpdate(),this.updateComplete.then(()=>{this.short||this.iframe.then(s=>{s&&!s.classList.contains("hidden")&&this._resizeIframe(s)})}))}_toggleText(){var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector(".text-content");this.iframe.then(r=>{i&&(r.classList.add("hidden"),i.classList.remove("hidden"))})}_toggleHtml(){var n;let i=(n=this.shadowRoot)==null?void 0:n.querySelector(".text-content");this.iframe.then(r=>{i&&(r.classList.remove("hidden"),i.classList.add("hidden"),setTimeout(()=>this._resizeIframe(r),0))})}_resizeIframe(i){let n=r=>{var f,h,p,m;let a=r.contentDocument;if(!a)return;r.style.height="auto";let s=a.body,l=a.documentElement,c=[(f=s==null?void 0:s.scrollHeight)!=null?f:0,(h=l==null?void 0:l.scrollHeight)!=null?h:0,(p=s==null?void 0:s.offsetHeight)!=null?p:0,(m=l==null?void 0:l.offsetHeight)!=null?m:0],d=Math.max(...c);d>0&&(r.style.height=`${d}px`)};i?n(i):this.iframe.then(r=>{r!=null&&r.contentDocument&&requestAnimationFrame(()=>n(r))})}firstUpdated(i){var r;super.firstUpdated(i);let n=(r=this.shadowRoot)==null?void 0:r.querySelectorAll(".text-section");n&&n.length>0&&n.forEach(a=>{a.innerHTML=a.innerHTML.replace(/&nbsp;/g," "),a.innerHTML=a.innerHTML.replace(/<!--[\s\S]*?-->/g,""),a.innerHTML=a.innerHTML.replace(/<\/p><br>/g,"</p>")})}render(){let i=this.getTextSections(),n=this.querySelector(':scope > [slot="footer"]')!==null,r=this.hasSlotController.test("text"),a=this.hasSlotController.test("html"),s=r&&a,l=a&&(!r||this.defaultDisplay==="html");return T`
4884
4884
  <zn-panel flush
4885
4885
  tabbed
4886
4886
  flush-footer="${n||Ve}"
@@ -4937,7 +4937,7 @@ button {
4937
4937
  <slot slot="footer" name="footer" @slotchange="${this._handleSlotChange}"></slot>`:""}
4938
4938
  </zn-panel>
4939
4939
  `}truncateText(){let i=this.querySelector('[slot="text"]');if(!i)return"";let n=i.innerText.replace(/<[^>]*>/g,"").trim();return n.length>32?n.substring(0,32)+"...":n}_handleSlotChange(i){let r=i.target.assignedElements({flatten:!0});if(!r||r.length===0)return;this._footerObserver&&(this._footerObserver.disconnect(),this._footerObserver=void 0);let a=new MutationObserver(()=>{this._debouncedReplace()});this._footerObserver=a,r.forEach(s=>{a.observe(s,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["href","download","caption"]})}),this._replaceImagePlaceholders(),setTimeout(()=>this._replaceImagePlaceholders(),50)}_debouncedReplace(){this._replaceDebounce&&clearTimeout(this._replaceDebounce),this._replaceDebounce=window.setTimeout(()=>this._replaceImagePlaceholders(),50)}_replaceImagePlaceholders(){var l;let i=(l=this.shadowRoot)==null?void 0:l.querySelector(".text-content");if(!i){this.updateComplete.then(()=>this._replaceImagePlaceholders());return}let n=this.querySelector(':scope > [slot="footer"]');if(!n)return;let r=Ai("a[href]",n,"");if(r.length===0)return;let a=i.innerHTML,s=new Set(["png","jpg","jpeg","gif","bmp","webp","svg","heic","tiff","tif","avif"]);r.forEach(c=>{var v,b,x;let d=new Set,f=c.querySelector("zn-tile"),h=((x=(b=f==null?void 0:f.caption)!=null?b:(v=f==null?void 0:f.getAttribute)==null?void 0:v.call(f,"caption"))!=null?x:"").trim();h&&d.add(h);let p=(c.getAttribute("download")||"").trim();p&&d.add(p);let m=c.getAttribute("href")||"";d.forEach(k=>{let z=(k||"").trim();if(!z)return;let E=z.includes("/")?z.split("/").pop():z,A=E.toLowerCase(),C=A.includes(".")?A.split(".").pop():"";if(C&&!s.has(C))return;let L=E.replace(/"/g,"&quot;");a=a.replace(`[image: ${E}]`,()=>`<img src="${m}" alt="${L}" style="max-height: 500px; max-width: 100%">`)})}),i.innerHTML=a}getTextSections(){let i=this.querySelector('[slot="text"]'),n=[];if(i){let a=i.innerText.split(`
4940
- `),s=null,l=!1,c="text",d=a.some(f=>f.startsWith(">"));a.forEach(f=>{let h=f;if((h.startsWith("On")&&h.endsWith("wrote:")||h.startsWith("From:"))&&!d&&(l=!0),h.startsWith("--")&&(l=!1),c=l||h.startsWith(">")?"reply":"text",h.startsWith("Sent from")&&(c="reply"),h.trim()===""&&s==="reply"&&(c="reply"),c==="reply"&&h.startsWith(">")&&(h=h.substring(1).trim()),s===c){if(n.length===0){n.push({lines:[h],type:c}),s=c;return}n[n.length-1].lines.push(h)}else n.push({lines:[h],type:c}),s=c})}return this._textRows=n,this._textRows}showReply(i){let r=i.target.nextElementSibling;r&&r.classList.toggle("hidden")}};Rn.styles=Z(H7),y([_()],Rn.prototype,"time",2),y([_()],Rn.prototype,"sender",2),y([_()],Rn.prototype,"avatar",2),y([_({type:Boolean,reflect:!0})],Rn.prototype,"outbound",2),y([_({type:Boolean,attribute:"no-collapse"})],Rn.prototype,"noCollapse",2),y([_({type:Boolean,reflect:!0})],Rn.prototype,"short",2),y([_({attribute:"default-display",reflect:!0})],Rn.prototype,"defaultDisplay",2),y([p4({slot:"html",flatten:!0})],Rn.prototype,"htmlNodes",2),y([h4("iframe")],Rn.prototype,"iframe",2);var yoe=Rn;Rn.define("zn-content-block");var B7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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 Dl=class extends J{constructor(){super(...arguments);this.button="Filter";this.hasSubmitButton=!1;this.handleSubmit=i=>{i.preventDefault();let n=this.closest("zn-data-table");if(n){let r=["zn-input","zn-select","zn-query-builder","zn-data-select","zn-datepicker","input","select","textarea"],a=Array.from(this.querySelectorAll(r.join(","))),s={};a.forEach(l=>{!l.value&&l.hasAttribute("omit-empty")||(s[l.name]=l.value)}),n.requestParams=s,n.refresh()}}}connectedCallback(){super.connectedCallback();let i=this.querySelector("zn-button[submit]");i&&(this.hasSubmitButton=!0,i.addEventListener("click",this.handleSubmit))}renderDefaultButton(){return T`
4940
+ `),s=null,l=!1,c="text",d=a.some(f=>f.startsWith(">"));a.forEach(f=>{let h=f;if((h.startsWith("On")&&h.endsWith("wrote:")||h.startsWith("From:"))&&!d&&(l=!0),h.startsWith("--")&&(l=!1),c=l||h.startsWith(">")?"reply":"text",h.startsWith("Sent from")&&(c="reply"),h.trim()===""&&s==="reply"&&(c="reply"),c==="reply"&&h.startsWith(">")&&(h=h.substring(1).trim()),s===c){if(n.length===0){n.push({lines:[h],type:c}),s=c;return}n[n.length-1].lines.push(h)}else n.push({lines:[h],type:c}),s=c})}return this._textRows=n,this._textRows}showReply(i){let r=i.target.nextElementSibling;r&&r.classList.toggle("hidden")}};On.styles=Z(H7),y([_()],On.prototype,"time",2),y([_()],On.prototype,"sender",2),y([_()],On.prototype,"avatar",2),y([_({type:Boolean,reflect:!0})],On.prototype,"outbound",2),y([_({type:Boolean,attribute:"no-collapse"})],On.prototype,"noCollapse",2),y([_({type:Boolean,reflect:!0})],On.prototype,"short",2),y([_({attribute:"default-display",reflect:!0})],On.prototype,"defaultDisplay",2),y([p4({slot:"html",flatten:!0})],On.prototype,"htmlNodes",2),y([h4("iframe")],On.prototype,"iframe",2);var yoe=On;On.define("zn-content-block");var B7=te`@keyframes rotate-gradient{from{--rotate:0deg}to{--rotate:360deg}}:host{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}: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: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 Dl=class extends J{constructor(){super(...arguments);this.button="Filter";this.hasSubmitButton=!1;this.handleSubmit=i=>{i.preventDefault();let n=this.closest("zn-data-table");if(n){let r=["zn-input","zn-select","zn-query-builder","zn-data-select","zn-datepicker","input","select","textarea"],a=Array.from(this.querySelectorAll(r.join(","))),s={};a.forEach(l=>{!l.value&&l.hasAttribute("omit-empty")||(s[l.name]=l.value)}),n.requestParams=s,n.refresh()}}}connectedCallback(){super.connectedCallback();let i=this.querySelector("zn-button[submit]");i&&(this.hasSubmitButton=!0,i.addEventListener("click",this.handleSubmit))}renderDefaultButton(){return T`
4941
4941
  <zn-button part="search-button"
4942
4942
  class="filter-wrapper__submit"
4943
4943
  type="submit"
@@ -5000,7 +5000,7 @@ button {
5000
5000
  <zn-option value="${i.url}">${i.name}</zn-option>
5001
5001
  `)}
5002
5002
  </zn-select>
5003
- `}};_o.styles=Z(U7),y([We()],_o.prototype,"_isPlaying",2),y([_()],_o.prototype,"value",2),y([_()],_o.prototype,"label",2),y([_()],_o.prototype,"placeholder",2),y([_({type:Object})],_o.prototype,"files",2);var zoe=_o;_o.define("zn-audio-select");var G7=te`.form-control-input{margin:var(--zn-spacing-2x-small) 3px 3px}.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-font-weight-semibold);margin-bottom:var(--zn-spacing-2x-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{display:flex;flex-direction:column;gap:var(--zn-spacing-small)}.input-container{padding:var(--zn-spacing-small) 0}`;var On=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this);this.hasSlotController=new Ue(this,"label");this.name="";this.value='{"en":""}';this.label="";this.disabled=!1;this.required=!1;this.languages={en:"English"};this.values={};this._activeLanguage="";this.handleLanguageAdd=i=>{let r=i.detail.element.getAttribute("data-path");r&&(this.values=et(Ce({},this.values),{[r]:""}),this._activeLanguage=r,this.updateValue())};this.handleNavbarClick=i=>{i.stopPropagation();let n=i.detail.item;if(n){let r=n.getAttribute("tab")||n.getAttribute("data-tab");r&&(this._activeLanguage=r,this.requestUpdate())}};this.handleValueUpdate=i=>{let n=i.target;if(this._activeLanguage){let r=n.value;r!==this.values[this._activeLanguage]&&(this.values=et(Ce({},this.values),{[this._activeLanguage]:r}),this.updateValue())}};this.handleKeyDown=i=>{if(i.key==="Enter"){if(i.target instanceof Tb)return;!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!i.defaultPrevented&&!i.isComposing&&this.formControlController.submit()}};this.handleSubmit=()=>{this.formControlController.submit()}}get validity(){return kn}get validationMessage(){return""}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(){}firstUpdated(){this.formControlController.updateValidity()}willUpdate(i){let n=i.has("value"),r=i.has("values");if(n&&r){let a=this.value==='{"en":""}',s=Object.keys(this.values).length===0;a&&!s?n=!1:!a&&s?r=!1:this.hasAttribute("values")&&!this.hasAttribute("value")?n=!1:this.hasAttribute("value")&&!this.hasAttribute("values")&&(r=!1)}if(n)try{let a=JSON.parse(this.value||"{}");JSON.stringify(a)!==JSON.stringify(this.values)&&(this.values=a)}catch(a){}if(r&&(this.value=JSON.stringify(this.values),!this._activeLanguage||!Object.prototype.hasOwnProperty.call(this.values,this._activeLanguage))){let a=Object.keys(this.values);a.length>0?this._activeLanguage=a[0]:this._activeLanguage=""}}updateValue(){this.value=JSON.stringify(this.values),this.emit("zn-change"),this.emit("zn-input")}render(){let i=Object.entries(this.languages).filter(([c])=>!Object.prototype.hasOwnProperty.call(this.values,c)).map(([c,d])=>({title:d,type:"dropdown",path:c})),n=Object.keys(this.values).map(c=>({title:this.languages[c]||c,active:c===this._activeLanguage,tab:c})),r=this.values[this._activeLanguage],a=r&&r.length>0,s=this.hasSlotController.test("label"),l=this.label?!0:s;return T`
5003
+ `}};_o.styles=Z(U7),y([We()],_o.prototype,"_isPlaying",2),y([_()],_o.prototype,"value",2),y([_()],_o.prototype,"label",2),y([_()],_o.prototype,"placeholder",2),y([_({type:Object})],_o.prototype,"files",2);var zoe=_o;_o.define("zn-audio-select");var G7=te`.form-control-input{margin:var(--zn-spacing-2x-small) 3px 3px}.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-font-weight-semibold);margin-bottom:var(--zn-spacing-2x-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{display:flex;flex-direction:column;padding:0 var(--zn-spacing-medium);gap:var(--zn-spacing-small)}.input-container{padding:var(--zn-spacing-small) 0}`;var xn=class extends J{constructor(){super(...arguments);this.formControlController=new rt(this);this.hasSlotController=new Ue(this,"label");this.name="";this.value='{"en":""}';this.label="";this.disabled=!1;this.required=!1;this.flush=!1;this.languages={en:"English"};this.values={};this._activeLanguage="en";this.handleLanguageAdd=i=>{let r=i.detail.element.getAttribute("data-path");r&&(this.values=et(Ce({},this.values),{[r]:""}),this._activeLanguage=r,this.updateValue())};this.handleNavbarClick=i=>{i.stopPropagation();let n=i.detail.item;if(n){let r=n.getAttribute("tab")||n.getAttribute("data-tab");r&&(this._activeLanguage=r,this.requestUpdate())}};this.handleValueUpdate=i=>{let n=i.target;if(this._activeLanguage){let r=n.value;r!==this.values[this._activeLanguage]&&(this.values=et(Ce({},this.values),{[this._activeLanguage]:r}),this.updateValue())}};this.handleKeyDown=i=>{if(i.key==="Enter"){if(i.target instanceof Tb)return;!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!i.defaultPrevented&&!i.isComposing&&this.formControlController.submit()}};this.handleSubmit=()=>{this.formControlController.submit()}}get validity(){return _n}get validationMessage(){return""}checkValidity(){return!0}getForm(){return this.formControlController.getForm()}reportValidity(){return!0}setCustomValidity(){}firstUpdated(){this.formControlController.updateValidity()}willUpdate(i){let n=i.has("value"),r=i.has("values");if(n&&r){let a=this.value==='{"en":""}',s=Object.keys(this.values).length===0;a&&!s?n=!1:!a&&s?r=!1:this.hasAttribute("values")&&!this.hasAttribute("value")?n=!1:this.hasAttribute("value")&&!this.hasAttribute("values")&&(r=!1)}if(n)try{let a=JSON.parse(this.value||"{}");JSON.stringify(a)!==JSON.stringify(this.values)&&(this.values=a)}catch(a){}if(r&&(this.value=JSON.stringify(this.values),!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")}render(){let i=Object.entries(this.languages).filter(([c])=>c!=="en"&&!Object.prototype.hasOwnProperty.call(this.values,c)).map(([c,d])=>({title:d,type:"dropdown",path:c})),n=Object.keys(this.values);n.includes("en")||n.unshift("en");let r=n.map(c=>({title:this.languages[c]||c,active:c===this._activeLanguage,tab:c})),a=this.values[this._activeLanguage],s=this.hasSlotController.test("label"),l=this.label?!0:s;return T`
5004
5004
  <div part="form-control"
5005
5005
  class="${ce({translations:!0,"form-control":!0,"form-control--medium":!0,"form-control--has-label":l})}"
5006
5006
  @keydown="${this.handleKeyDown}">
@@ -5010,33 +5010,24 @@ button {
5010
5010
  </label>
5011
5011
 
5012
5012
  <zn-navbar
5013
- .navigation="${n}"
5013
+ .navigation="${r}"
5014
5014
  .dropdown="${i}"
5015
5015
  name="${this.name}-translations-navbar"
5016
- isolated
5017
5016
  @zn-select="${this.handleNavbarClick}"
5018
5017
  @zn-menu-select="${this.handleLanguageAdd}"
5018
+ flush=${this.flush||Ve}
5019
+ isolated
5019
5020
  manual-add-items
5020
5021
  ></zn-navbar>
5021
5022
  <div class="input-container">
5022
- ${this._activeLanguage?T`
5023
- ${a?T`
5024
- <zn-inline-edit
5025
- .value=${r}
5026
- name="${this.name}"
5027
- @zn-change="${this.handleValueUpdate}"
5028
- @zn-input="${this.handleValueUpdate}"
5029
- @zn-submit="${this.handleSubmit}"
5030
- ></zn-inline-edit>
5031
- `:T`
5032
- <zn-input
5033
- .value="${r||""}"
5034
- name="${this.name}"
5035
- placeholder="Enter translation..."
5036
- @zn-change="${this.handleValueUpdate}"
5037
- ></zn-input>
5038
- `}
5039
- `:""}
5023
+ <zn-inline-edit
5024
+ .value=${a}
5025
+ name="${this.name}"
5026
+ placeholder="Enter translation..."
5027
+ @zn-change="${this.handleValueUpdate}"
5028
+ @zn-input="${this.handleValueUpdate}"
5029
+ @zn-submit="${this.handleSubmit}"
5030
+ ></zn-inline-edit>
5040
5031
  </div>
5041
5032
  </div>
5042
- `}};On.styles=Z(G7),On.dependencies={"zn-navbar":ww,"zn-input":Oc,"zn-inline-edit":Tb},y([_()],On.prototype,"name",2),y([_()],On.prototype,"value",2),y([_()],On.prototype,"label",2),y([_({type:Boolean,reflect:!0})],On.prototype,"disabled",2),y([_({type:Boolean,reflect:!0})],On.prototype,"required",2),y([_({type:Object})],On.prototype,"languages",2),y([_({type:Object})],On.prototype,"values",2),y([We()],On.prototype,"_activeLanguage",2);var Coe=On;On.define("zn-translations");})();
5033
+ `}};xn.styles=Z(G7),xn.dependencies={"zn-navbar":ww,"zn-input":Oc,"zn-inline-edit":Tb},y([_()],xn.prototype,"name",2),y([_()],xn.prototype,"value",2),y([_()],xn.prototype,"label",2),y([_({type:Boolean,reflect:!0})],xn.prototype,"disabled",2),y([_({type:Boolean,reflect:!0})],xn.prototype,"required",2),y([_({type:Boolean,reflect:!0})],xn.prototype,"flush",2),y([_({type:Object})],xn.prototype,"languages",2),y([_({type:Object})],xn.prototype,"values",2),y([We()],xn.prototype,"_activeLanguage",2);var Coe=xn;xn.define("zn-translations");})();