@arcgis/charts-components 5.0.4 → 5.0.6
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/cdn/{XSDBMXDE.js → 25L65XNX.js} +1 -1
- package/dist/cdn/{E6KTB6QM.js → 4W4NTZDU.js} +1 -1
- package/dist/cdn/{OHE7YRK7.js → 5LSYBPU5.js} +1 -1
- package/dist/cdn/{UH4W2XA2.js → 5M65ZHB6.js} +1 -1
- package/dist/cdn/{RVTOZIZA.js → 5YONFWGM.js} +1 -1
- package/dist/cdn/{U4TD6FOA.js → 64ZXL6TN.js} +1 -1
- package/dist/cdn/{DSFEVXJD.js → 6TOJ3STD.js} +1 -1
- package/dist/cdn/{TM2Q7DSE.js → 76XZWS4W.js} +1 -1
- package/dist/cdn/{73OXWJVZ.js → 7E6UQFAG.js} +1 -1
- package/dist/cdn/{64P7ROQB.js → 7HLMURTM.js} +1 -1
- package/dist/cdn/{5PM5GEK3.js → 7KFHTEVW.js} +1 -1
- package/dist/cdn/{2SXKNHGP.js → 7PVNG4EF.js} +1 -1
- package/dist/cdn/{DWJNZ62S.js → AF2VUAFV.js} +1 -1
- package/dist/cdn/{XCRBYDTR.js → AP3B7YEY.js} +1 -1
- package/dist/cdn/{N4VQ6XVD.js → AR7JUNS3.js} +1 -1
- package/dist/cdn/{HP6HQQYZ.js → AUSCS2CL.js} +1 -1
- package/dist/cdn/{DLAWIEAX.js → AVLREFA2.js} +1 -1
- package/dist/cdn/{AXQZLDDA.js → B26JTZLQ.js} +1 -1
- package/dist/cdn/B6ZWDXKM.js +2 -0
- package/dist/cdn/{SABI6QUF.js → BGUF6LTO.js} +1 -1
- package/dist/cdn/{WF4J4J5E.js → BPGZ7Z3G.js} +1 -1
- package/dist/cdn/{QWBD77H4.js → CASV35QP.js} +1 -1
- package/dist/cdn/{MBL7GWOQ.js → CBSWYZAO.js} +1 -1
- package/dist/cdn/{PJWEFUCZ.js → CE52HPJT.js} +1 -1
- package/dist/cdn/{XTKRTOCC.js → CPMBEJU4.js} +19 -19
- package/dist/cdn/{JQ54323D.js → CVVGPUCO.js} +1 -1
- package/dist/cdn/CZGWEAC4.js +2 -0
- package/dist/cdn/{CXQZVMUR.js → DTMKLNTX.js} +1 -1
- package/dist/cdn/{APW76JJT.js → E23ZJFV5.js} +1 -1
- package/dist/cdn/{TBQC35R3.js → EBBPI6ST.js} +1 -1
- package/dist/cdn/{2YE3LCHG.js → EG7LLCYZ.js} +1 -1
- package/dist/cdn/{XEFJFY3B.js → ER5NZZHJ.js} +1 -1
- package/dist/cdn/{DSX3YISR.js → FKRIAGJM.js} +1 -1
- package/dist/cdn/{HQC6AZI2.js → FWU6LLUA.js} +1 -1
- package/dist/cdn/{OKU4QU3I.js → GNNDY4DP.js} +1 -1
- package/dist/cdn/{I2A3IDNK.js → H6QL4MSJ.js} +1 -1
- package/dist/cdn/{MIKKA5OB.js → HA5O3EQD.js} +1 -1
- package/dist/cdn/{6QNY6RCO.js → IAIUWLH2.js} +1 -1
- package/dist/cdn/{DGP7BQGA.js → IAOXX23E.js} +1 -1
- package/dist/cdn/IHM4ZUO5.js +2 -0
- package/dist/cdn/{7JADUCZI.js → IHPEOODJ.js} +1 -1
- package/dist/cdn/INW2HD7F.js +2 -0
- package/dist/cdn/{K7RBSWNZ.js → INXVARZH.js} +1 -1
- package/dist/cdn/{35PYRXW2.js → ITOFZXO3.js} +1 -1
- package/dist/cdn/{BERJAUFR.js → IXRYT4II.js} +1 -1
- package/dist/cdn/{IFJKBGIM.js → JG4ZVK7J.js} +1 -1
- package/dist/cdn/{5OFKK6IK.js → KHGSDXTF.js} +1 -1
- package/dist/cdn/{YHFMRTW6.js → KITOZZK5.js} +1 -1
- package/dist/cdn/{NZMTDKKZ.js → KRBXVSYD.js} +1 -1
- package/dist/cdn/{775WUZ4C.js → KV27QP4X.js} +1 -1
- package/dist/cdn/{WCDACDMC.js → KYTQC53R.js} +1 -1
- package/dist/cdn/{WS6SV4IJ.js → L5ET35Q2.js} +1 -1
- package/dist/cdn/{746FOLWQ.js → LXQ6QQO7.js} +1 -1
- package/dist/cdn/{65ZCLVMH.js → MMT32MIK.js} +1 -1
- package/dist/cdn/{TRW3IP5V.js → MNRZSWNU.js} +1 -1
- package/dist/cdn/{7DGMDJUC.js → NHF2JVZM.js} +1 -1
- package/dist/cdn/NU3MLN2G.js +2 -0
- package/dist/cdn/{ZZXPVJUY.js → NX4VZINF.js} +1 -1
- package/dist/cdn/{BHVCX6WS.js → OGMVV7I3.js} +1 -1
- package/dist/cdn/{LSDMLOHK.js → OHCVXKPZ.js} +1 -1
- package/dist/cdn/{UIG4LY7Z.js → OKVBEZO2.js} +1 -1
- package/dist/cdn/{NMDNMRKM.js → OPZLHI7K.js} +1 -1
- package/dist/cdn/{RUKHUTSR.js → OSUQO24K.js} +1 -1
- package/dist/cdn/{C5USXEUX.js → P62YR5KB.js} +1 -1
- package/dist/cdn/{2RVI6WCT.js → P7O2CXBA.js} +1 -1
- package/dist/cdn/{STNKVNCO.js → PFLH47ND.js} +1 -1
- package/dist/cdn/{TU57O7LF.js → PHM2ANVG.js} +1 -1
- package/dist/cdn/{5PEPEKX3.js → POPQDHFN.js} +1 -1
- package/dist/cdn/{6HZ6LUOW.js → QISPLE7O.js} +1 -1
- package/dist/cdn/{MAP4KH23.js → QZDPUMJZ.js} +1 -1
- package/dist/cdn/{K7BK75N3.js → R24WPALO.js} +1 -1
- package/dist/cdn/{LW5EWELB.js → R2C5AHAD.js} +1 -1
- package/dist/cdn/{FGDXVDIW.js → RKHRZCAZ.js} +1 -1
- package/dist/cdn/{IB36HSWP.js → RU6XKPXI.js} +1 -1
- package/dist/cdn/{JASSTXLN.js → S3GXJRH4.js} +1 -1
- package/dist/cdn/{JHWMECWO.js → SBC6RJYI.js} +1 -1
- package/dist/cdn/{QG55UNB3.js → SIT25A2R.js} +1 -1
- package/dist/cdn/{Y2ICSLLL.js → SWA7P4OD.js} +1 -1
- package/dist/cdn/{FIYIEYRT.js → TXGLSJZO.js} +1 -1
- package/dist/cdn/{22C4P6T4.js → TXKDAURA.js} +1 -1
- package/dist/cdn/{CA7MMTCC.js → U4TA4KX5.js} +1 -1
- package/dist/cdn/{AIYQZ3C2.js → UFFMOYWH.js} +1 -1
- package/dist/cdn/{2X652PBT.js → UKLIL3YQ.js} +1 -1
- package/dist/cdn/{NRMWKUCF.js → V65XU7DU.js} +1 -1
- package/dist/cdn/{JRGCR3YE.js → VPXOYMLV.js} +1 -1
- package/dist/cdn/{PMJNH4J5.js → VVVOGXTZ.js} +1 -1
- package/dist/cdn/{FMNKV4BG.js → VYGSI4GY.js} +1 -1
- package/dist/cdn/{CWKEXEYX.js → W66CQUSB.js} +1 -1
- package/dist/cdn/{NCXILK3J.js → WC5D3HDI.js} +1 -1
- package/dist/cdn/{K4QCQ5PA.js → WFOYORCF.js} +1 -1
- package/dist/cdn/{EVVJP7YN.js → WIQE7A4U.js} +1 -1
- package/dist/cdn/{JQSLYVQ3.js → WLBENMXU.js} +1 -1
- package/dist/cdn/{WDNXCXUS.js → WUJHVVE4.js} +1 -1
- package/dist/cdn/{S4JM7ORZ.js → XF2N2XET.js} +1 -1
- package/dist/cdn/{RE7WTDTG.js → ZAV4MSAI.js} +1 -1
- package/dist/cdn/ZLQXY2BV.js +2 -0
- package/dist/cdn/{ARIQD3ZD.js → ZP2TAS7W.js} +1 -1
- package/dist/cdn/{HW4NCWCO.js → ZUTC2KZJ.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/class-breaks.js +207 -125
- package/dist/chunks/index.js +27 -27
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/serial-chart-data.js +3 -3
- package/dist/chunks/store.js +25 -16
- package/dist/components/arcgis-chart/customElement.js +5160 -5136
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +149 -153
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +170 -183
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +2 -2
- package/package.json +3 -3
- package/dist/cdn/42KFTXRH.js +0 -2
- package/dist/cdn/EGSZETEH.js +0 -2
- package/dist/cdn/NU3FXF5D.js +0 -2
- package/dist/cdn/SVS45YOT.js +0 -2
- package/dist/cdn/WNMDGQ7Y.js +0 -2
- package/dist/cdn/X5N3ATSV.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{A as Pe,B as Ce,F as Je,G as Wr,a as pa,g as jr,m as jo,n as er,p as Wo,t as Bn,v as Ie,w as hr,x as ha,y as mr,z as ye}from"./4B3QBH5T.js";import{c as ko,d as Mn,f as $t,g as yt}from"./MAP4KH23.js";import{a as b,b as j,c as Ge,e as ki,f as gt,h as ze,i as fa,j as Vo,k as G,l as bt,n as nt,o as Me,p as _o,q as fr,s as zo,t as Uo,v as st,y as Y}from"./NKG4FLLR.js";import{G as Pt}from"./I2A3IDNK.js";import{b as K,d as Ro}from"./OR4HXHSY.js";export default $arcgis.t(([ib,uo,Ei,{substitute:qe},Jc,ab,Yc,bn,nb,co,sb,ob,fp,lb,db,ub,cb,pb,po])=>{var Zd=K((YC,Ts)=>{function by(t,e){var r=e&&e.cache?e.cache:Ty,a=e&&e.serializer?e.serializer:xy,i=e&&e.strategy?e.strategy:Sy;return i(t,{cache:r,serializer:a})}function vy(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Gd(t,e,r,a){var i=vy(a)?a:r(a),n=e.get(i);return typeof n>"u"&&(n=t.call(this,a),e.set(i,n)),n}function Qd(t,e,r){var a=Array.prototype.slice.call(arguments,3),i=r(a),n=e.get(i);return typeof n>"u"&&(n=t.apply(this,a),e.set(i,n)),n}function xs(t,e,r,a,i){return r.bind(e,t,a,i)}function Sy(t,e){var r=t.length===1?Gd:Qd;return xs(t,this,r,e.cache.create(),e.serializer)}function wy(t,e){var r=Qd;return xs(t,this,r,e.cache.create(),e.serializer)}function Cy(t,e){var r=Gd;return xs(t,this,r,e.cache.create(),e.serializer)}function xy(){return JSON.stringify(arguments)}function Ha(){this.cache=Object.create(null)}Ha.prototype.has=function(t){return t in this.cache};Ha.prototype.get=function(t){return this.cache[t]};Ha.prototype.set=function(t,e){this.cache[t]=e};var Ty={create:function(){return new Ha}};Ts.exports=by;Ts.exports.strategies={variadic:wy,monadic:Cy}});var Jd=K((Ga,Kd)=>{(function(t,e){typeof Ga=="object"&&typeof Kd<"u"?e(Ga):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(Ga,(function(t){"use strict";function e(){for(var T=arguments.length,S=Array(T),I=0;I<T;I++)S[I]=arguments[I];if(S.length>1){S[0]=S[0].slice(0,-1);for(var D=S.length-1,M=1;M<D;++M)S[M]=S[M].slice(1,-1);return S[D]=S[D].slice(1),S.join("")}else return S[0]}function r(T){return"(?:"+T+")"}function a(T){return T===void 0?"undefined":T===null?"null":Object.prototype.toString.call(T).split(" ").pop().split("]").shift().toLowerCase()}function i(T){return T.toUpperCase()}function n(T){return T!=null?T instanceof Array?T:typeof T.length!="number"||T.split||T.setInterval||T.call?[T]:Array.prototype.slice.call(T):[]}function s(T,S){var I=T;if(S)for(var D in S)I[D]=S[D];return I}function o(T){var S="[A-Za-z]",I="[\\x0D]",D="[0-9]",M="[\\x22]",_=e(D,"[A-Fa-f]"),ee="[\\x0A]",de="[\\x20]",he=r(r("%[EFef]"+_+"%"+_+_+"%"+_+_)+"|"+r("%[89A-Fa-f]"+_+"%"+_+_)+"|"+r("%"+_+_)),je="[\\:\\/\\?\\#\\[\\]\\@]",se="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Le=e(je,se),We=T?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Oe=T?"[\\uE000-\\uF8FF]":"[]",ce=e(S,D,"[\\-\\.\\_\\~]",We),De=r(S+e(S,D,"[\\+\\-\\.]")+"*"),be=r(r(he+"|"+e(ce,se,"[\\:]"))+"*"),qr=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("[1-9]"+D)+"|"+D),ht=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("0?[1-9]"+D)+"|0?0?"+D),It=r(ht+"\\."+ht+"\\."+ht+"\\."+ht),we=r(_+"{1,4}"),mt=r(r(we+"\\:"+we)+"|"+It),Ot=r(r(we+"\\:")+"{6}"+mt),Gt=r("\\:\\:"+r(we+"\\:")+"{5}"+mt),Rr=r(r(we)+"?\\:\\:"+r(we+"\\:")+"{4}"+mt),Jt=r(r(r(we+"\\:")+"{0,1}"+we)+"?\\:\\:"+r(we+"\\:")+"{3}"+mt),Bi=r(r(r(we+"\\:")+"{0,2}"+we)+"?\\:\\:"+r(we+"\\:")+"{2}"+mt),da=r(r(r(we+"\\:")+"{0,3}"+we)+"?\\:\\:"+we+"\\:"+mt),ua=r(r(r(we+"\\:")+"{0,4}"+we)+"?\\:\\:"+mt),ri=r(r(r(we+"\\:")+"{0,5}"+we)+"?\\:\\:"+we),ii=r(r(r(we+"\\:")+"{0,6}"+we)+"?\\:\\:"),Yt=r([Ot,Gt,Rr,Jt,Bi,da,ua,ri,ii].join("|")),ai=r(r(ce+"|"+he)+"+"),Dn=r(Yt+"\\%25"+ai),kr=r(Yt+r("\\%25|\\%(?!"+_+"{2})")+ai),Cf=r("[vV]"+_+"+\\."+e(ce,se,"[\\:]")+"+"),xf=r("\\["+r(kr+"|"+Yt+"|"+Cf)+"\\]"),Bo=r(r(he+"|"+e(ce,se))+"*"),Mi=r(xf+"|"+It+"(?!"+Bo+")|"+Bo),$i=r(D+"*"),Mo=r(r(be+"@")+"?"+Mi+r("\\:"+$i)+"?"),qi=r(he+"|"+e(ce,se,"[\\:\\@]")),Tf=r(qi+"*"),$o=r(qi+"+"),Ff=r(r(he+"|"+e(ce,se,"[\\@]"))+"+"),Xt=r(r("\\/"+Tf)+"*"),ni=r("\\/"+r($o+Xt)+"?"),Nn=r(Ff+Xt),ca=r($o+Xt),si="(?!"+qi+")",pC=r(Xt+"|"+ni+"|"+Nn+"|"+ca+"|"+si),oi=r(r(qi+"|"+e("[\\/\\?]",Oe))+"*"),Ri=r(r(qi+"|[\\/\\?]")+"*"),qo=r(r("\\/\\/"+Mo+Xt)+"|"+ni+"|"+ca+"|"+si),If=r(De+"\\:"+qo+r("\\?"+oi)+"?"+r("\\#"+Ri)+"?"),Of=r(r("\\/\\/"+Mo+Xt)+"|"+ni+"|"+Nn+"|"+si),Pf=r(Of+r("\\?"+oi)+"?"+r("\\#"+Ri)+"?"),fC=r(If+"|"+Pf),hC=r(De+"\\:"+qo+r("\\?"+oi)+"?"),mC="^("+De+")\\:"+r(r("\\/\\/("+r("("+be+")@")+"?("+Mi+")"+r("\\:("+$i+")")+"?)")+"?("+Xt+"|"+ni+"|"+ca+"|"+si+")")+r("\\?("+oi+")")+"?"+r("\\#("+Ri+")")+"?$",yC="^(){0}"+r(r("\\/\\/("+r("("+be+")@")+"?("+Mi+")"+r("\\:("+$i+")")+"?)")+"?("+Xt+"|"+ni+"|"+Nn+"|"+si+")")+r("\\?("+oi+")")+"?"+r("\\#("+Ri+")")+"?$",gC="^("+De+")\\:"+r(r("\\/\\/("+r("("+be+")@")+"?("+Mi+")"+r("\\:("+$i+")")+"?)")+"?("+Xt+"|"+ni+"|"+ca+"|"+si+")")+r("\\?("+oi+")")+"?$",bC="^"+r("\\#("+Ri+")")+"?$",vC="^"+r("("+be+")@")+"?("+Mi+")"+r("\\:("+$i+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",S,D,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",ce,se),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",ce,se),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",ce,se),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",ce,se),"g"),NOT_QUERY:new RegExp(e("[^\\%]",ce,se,"[\\:\\@\\/\\?]",Oe),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",ce,se,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",ce,se),"g"),UNRESERVED:new RegExp(ce,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",ce,Le),"g"),PCT_ENCODED:new RegExp(he,"g"),IPV4ADDRESS:new RegExp("^("+It+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Yt+")"+r(r("\\%25|\\%(?!"+_+"{2})")+"("+ai+")")+"?\\]?$")}}var l=o(!1),d=o(!0),u=(function(){function T(S,I){var D=[],M=!0,_=!1,ee=void 0;try{for(var de=S[Symbol.iterator](),he;!(M=(he=de.next()).done)&&(D.push(he.value),!(I&&D.length===I));M=!0);}catch(je){_=!0,ee=je}finally{try{!M&&de.return&&de.return()}finally{if(_)throw ee}}return D}return function(S,I){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return T(S,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=function(T){if(Array.isArray(T)){for(var S=0,I=Array(T.length);S<T.length;S++)I[S]=T[S];return I}else return Array.from(T)},f=2147483647,p=36,h=1,m=26,y=38,g=700,v=72,w=128,x="-",F=/^xn--/,A=/[^\0-\x7E]/,q=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=p-h,B=Math.floor,N=String.fromCharCode;function R(T){throw new RangeError(L[T])}function $(T,S){for(var I=[],D=T.length;D--;)I[D]=S(T[D]);return I}function E(T,S){var I=T.split("@"),D="";I.length>1&&(D=I[0]+"@",T=I[1]),T=T.replace(q,".");var M=T.split("."),_=$(M,S).join(".");return D+_}function k(T){for(var S=[],I=0,D=T.length;I<D;){var M=T.charCodeAt(I++);if(M>=55296&&M<=56319&&I<D){var _=T.charCodeAt(I++);(_&64512)==56320?S.push(((M&1023)<<10)+(_&1023)+65536):(S.push(M),I--)}else S.push(M)}return S}var Q=function(S){return String.fromCodePoint.apply(String,c(S))},H=function(S){return S-48<10?S-22:S-65<26?S-65:S-97<26?S-97:p},V=function(S,I){return S+22+75*(S<26)-((I!=0)<<5)},Z=function(S,I,D){var M=0;for(S=D?B(S/g):S>>1,S+=B(S/I);S>P*m>>1;M+=p)S=B(S/P);return B(M+(P+1)*S/(S+y))},z=function(S){var I=[],D=S.length,M=0,_=w,ee=v,de=S.lastIndexOf(x);de<0&&(de=0);for(var he=0;he<de;++he)S.charCodeAt(he)>=128&&R("not-basic"),I.push(S.charCodeAt(he));for(var je=de>0?de+1:0;je<D;){for(var se=M,Le=1,We=p;;We+=p){je>=D&&R("invalid-input");var Oe=H(S.charCodeAt(je++));(Oe>=p||Oe>B((f-M)/Le))&&R("overflow"),M+=Oe*Le;var ce=We<=ee?h:We>=ee+m?m:We-ee;if(Oe<ce)break;var De=p-ce;Le>B(f/De)&&R("overflow"),Le*=De}var be=I.length+1;ee=Z(M-se,be,se==0),B(M/be)>f-_&&R("overflow"),_+=B(M/be),M%=be,I.splice(M++,0,_)}return String.fromCodePoint.apply(String,I)},ne=function(S){var I=[];S=k(S);var D=S.length,M=w,_=0,ee=v,de=!0,he=!1,je=void 0;try{for(var se=S[Symbol.iterator](),Le;!(de=(Le=se.next()).done);de=!0){var We=Le.value;We<128&&I.push(N(We))}}catch(kr){he=!0,je=kr}finally{try{!de&&se.return&&se.return()}finally{if(he)throw je}}var Oe=I.length,ce=Oe;for(Oe&&I.push(x);ce<D;){var De=f,be=!0,qr=!1,ht=void 0;try{for(var It=S[Symbol.iterator](),we;!(be=(we=It.next()).done);be=!0){var mt=we.value;mt>=M&&mt<De&&(De=mt)}}catch(kr){qr=!0,ht=kr}finally{try{!be&&It.return&&It.return()}finally{if(qr)throw ht}}var Ot=ce+1;De-M>B((f-_)/Ot)&&R("overflow"),_+=(De-M)*Ot,M=De;var Gt=!0,Rr=!1,Jt=void 0;try{for(var Bi=S[Symbol.iterator](),da;!(Gt=(da=Bi.next()).done);Gt=!0){var ua=da.value;if(ua<M&&++_>f&&R("overflow"),ua==M){for(var ri=_,ii=p;;ii+=p){var Yt=ii<=ee?h:ii>=ee+m?m:ii-ee;if(ri<Yt)break;var ai=ri-Yt,Dn=p-Yt;I.push(N(V(Yt+ai%Dn,0))),ri=B(ai/Dn)}I.push(N(V(ri,0))),ee=Z(_,Ot,ce==Oe),_=0,++ce}}}catch(kr){Rr=!0,Jt=kr}finally{try{!Gt&&Bi.return&&Bi.return()}finally{if(Rr)throw Jt}}++_,++M}return I.join("")},Re=function(S){return E(S,function(I){return F.test(I)?z(I.slice(4).toLowerCase()):I})},_e=function(S){return E(S,function(I){return A.test(I)?"xn--"+ne(I):I})},te={version:"2.1.0",ucs2:{decode:k,encode:Q},decode:z,encode:ne,toASCII:_e,toUnicode:Re},ge={};function Te(T){var S=T.charCodeAt(0),I=void 0;return S<16?I="%0"+S.toString(16).toUpperCase():S<128?I="%"+S.toString(16).toUpperCase():S<2048?I="%"+(S>>6|192).toString(16).toUpperCase()+"%"+(S&63|128).toString(16).toUpperCase():I="%"+(S>>12|224).toString(16).toUpperCase()+"%"+(S>>6&63|128).toString(16).toUpperCase()+"%"+(S&63|128).toString(16).toUpperCase(),I}function ke(T){for(var S="",I=0,D=T.length;I<D;){var M=parseInt(T.substr(I+1,2),16);if(M<128)S+=String.fromCharCode(M),I+=3;else if(M>=194&&M<224){if(D-I>=6){var _=parseInt(T.substr(I+4,2),16);S+=String.fromCharCode((M&31)<<6|_&63)}else S+=T.substr(I,6);I+=6}else if(M>=224){if(D-I>=9){var ee=parseInt(T.substr(I+4,2),16),de=parseInt(T.substr(I+7,2),16);S+=String.fromCharCode((M&15)<<12|(ee&63)<<6|de&63)}else S+=T.substr(I,9);I+=9}else S+=T.substr(I,3),I+=3}return S}function xt(T,S){function I(D){var M=ke(D);return M.match(S.UNRESERVED)?M:D}return T.scheme&&(T.scheme=String(T.scheme).replace(S.PCT_ENCODED,I).toLowerCase().replace(S.NOT_SCHEME,"")),T.userinfo!==void 0&&(T.userinfo=String(T.userinfo).replace(S.PCT_ENCODED,I).replace(S.NOT_USERINFO,Te).replace(S.PCT_ENCODED,i)),T.host!==void 0&&(T.host=String(T.host).replace(S.PCT_ENCODED,I).toLowerCase().replace(S.NOT_HOST,Te).replace(S.PCT_ENCODED,i)),T.path!==void 0&&(T.path=String(T.path).replace(S.PCT_ENCODED,I).replace(T.scheme?S.NOT_PATH:S.NOT_PATH_NOSCHEME,Te).replace(S.PCT_ENCODED,i)),T.query!==void 0&&(T.query=String(T.query).replace(S.PCT_ENCODED,I).replace(S.NOT_QUERY,Te).replace(S.PCT_ENCODED,i)),T.fragment!==void 0&&(T.fragment=String(T.fragment).replace(S.PCT_ENCODED,I).replace(S.NOT_FRAGMENT,Te).replace(S.PCT_ENCODED,i)),T}function it(T){return T.replace(/^0*(.*)/,"$1")||"0"}function Fe(T,S){var I=T.match(S.IPV4ADDRESS)||[],D=u(I,2),M=D[1];return M?M.split(".").map(it).join("."):T}function Se(T,S){var I=T.match(S.IPV6ADDRESS)||[],D=u(I,3),M=D[1],_=D[2];if(M){for(var ee=M.toLowerCase().split("::").reverse(),de=u(ee,2),he=de[0],je=de[1],se=je?je.split(":").map(it):[],Le=he.split(":").map(it),We=S.IPV4ADDRESS.test(Le[Le.length-1]),Oe=We?7:8,ce=Le.length-Oe,De=Array(Oe),be=0;be<Oe;++be)De[be]=se[be]||Le[ce+be]||"";We&&(De[Oe-1]=Fe(De[Oe-1],S));var qr=De.reduce(function(Ot,Gt,Rr){if(!Gt||Gt==="0"){var Jt=Ot[Ot.length-1];Jt&&Jt.index+Jt.length===Rr?Jt.length++:Ot.push({index:Rr,length:1})}return Ot},[]),ht=qr.sort(function(Ot,Gt){return Gt.length-Ot.length})[0],It=void 0;if(ht&&ht.length>1){var we=De.slice(0,ht.index),mt=De.slice(ht.index+ht.length);It=we.join(":")+"::"+mt.join(":")}else It=De.join(":");return _&&(It+="%"+_),It}else return T}var Tt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,He="".match(/(){0}/)[1]===void 0;function pe(T){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I={},D=S.iri!==!1?d:l;S.reference==="suffix"&&(T=(S.scheme?S.scheme+":":"")+"//"+T);var M=T.match(Tt);if(M){He?(I.scheme=M[1],I.userinfo=M[3],I.host=M[4],I.port=parseInt(M[5],10),I.path=M[6]||"",I.query=M[7],I.fragment=M[8],isNaN(I.port)&&(I.port=M[5])):(I.scheme=M[1]||void 0,I.userinfo=T.indexOf("@")!==-1?M[3]:void 0,I.host=T.indexOf("//")!==-1?M[4]:void 0,I.port=parseInt(M[5],10),I.path=M[6]||"",I.query=T.indexOf("?")!==-1?M[7]:void 0,I.fragment=T.indexOf("#")!==-1?M[8]:void 0,isNaN(I.port)&&(I.port=T.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?M[4]:void 0)),I.host&&(I.host=Se(Fe(I.host,D),D)),I.scheme===void 0&&I.userinfo===void 0&&I.host===void 0&&I.port===void 0&&!I.path&&I.query===void 0?I.reference="same-document":I.scheme===void 0?I.reference="relative":I.fragment===void 0?I.reference="absolute":I.reference="uri",S.reference&&S.reference!=="suffix"&&S.reference!==I.reference&&(I.error=I.error||"URI is not a "+S.reference+" reference.");var _=ge[(S.scheme||I.scheme||"").toLowerCase()];if(!S.unicodeSupport&&(!_||!_.unicodeSupport)){if(I.host&&(S.domainHost||_&&_.domainHost))try{I.host=te.toASCII(I.host.replace(D.PCT_ENCODED,ke).toLowerCase())}catch(ee){I.error=I.error||"Host's domain name can not be converted to ASCII via punycode: "+ee}xt(I,l)}else xt(I,D);_&&_.parse&&_.parse(I,S)}else I.error=I.error||"URI can not be parsed.";return I}function pr(T,S){var I=S.iri!==!1?d:l,D=[];return T.userinfo!==void 0&&(D.push(T.userinfo),D.push("@")),T.host!==void 0&&D.push(Se(Fe(String(T.host),I),I).replace(I.IPV6ADDRESS,function(M,_,ee){return"["+_+(ee?"%25"+ee:"")+"]"})),(typeof T.port=="number"||typeof T.port=="string")&&(D.push(":"),D.push(String(T.port))),D.length?D.join(""):void 0}var Kt=/^\.\.?\//,Mr=/^\/\.(\/|$)/,$r=/^\/\.\.(\/|$)/,Ke=/^\/?(?:.|\n)*?(?=\/|$)/;function Ft(T){for(var S=[];T.length;)if(T.match(Kt))T=T.replace(Kt,"");else if(T.match(Mr))T=T.replace(Mr,"/");else if(T.match($r))T=T.replace($r,"/"),S.pop();else if(T==="."||T==="..")T="";else{var I=T.match(Ke);if(I){var D=I[0];T=T.slice(D.length),S.push(D)}else throw new Error("Unexpected dot segment condition")}return S.join("")}function at(T){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=S.iri?d:l,D=[],M=ge[(S.scheme||T.scheme||"").toLowerCase()];if(M&&M.serialize&&M.serialize(T,S),T.host&&!I.IPV6ADDRESS.test(T.host)){if(S.domainHost||M&&M.domainHost)try{T.host=S.iri?te.toUnicode(T.host):te.toASCII(T.host.replace(I.PCT_ENCODED,ke).toLowerCase())}catch(de){T.error=T.error||"Host's domain name can not be converted to "+(S.iri?"Unicode":"ASCII")+" via punycode: "+de}}xt(T,I),S.reference!=="suffix"&&T.scheme&&(D.push(T.scheme),D.push(":"));var _=pr(T,S);if(_!==void 0&&(S.reference!=="suffix"&&D.push("//"),D.push(_),T.path&&T.path.charAt(0)!=="/"&&D.push("/")),T.path!==void 0){var ee=T.path;!S.absolutePath&&(!M||!M.absolutePath)&&(ee=Ft(ee)),_===void 0&&(ee=ee.replace(/^\/\//,"/%2F")),D.push(ee)}return T.query!==void 0&&(D.push("?"),D.push(T.query)),T.fragment!==void 0&&(D.push("#"),D.push(T.fragment)),D.join("")}function tt(T,S){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments[3],M={};return D||(T=pe(at(T,I),I),S=pe(at(S,I),I)),I=I||{},!I.tolerant&&S.scheme?(M.scheme=S.scheme,M.userinfo=S.userinfo,M.host=S.host,M.port=S.port,M.path=Ft(S.path||""),M.query=S.query):(S.userinfo!==void 0||S.host!==void 0||S.port!==void 0?(M.userinfo=S.userinfo,M.host=S.host,M.port=S.port,M.path=Ft(S.path||""),M.query=S.query):(S.path?(S.path.charAt(0)==="/"?M.path=Ft(S.path):((T.userinfo!==void 0||T.host!==void 0||T.port!==void 0)&&!T.path?M.path="/"+S.path:T.path?M.path=T.path.slice(0,T.path.lastIndexOf("/")+1)+S.path:M.path=S.path,M.path=Ft(M.path)),M.query=S.query):(M.path=T.path,S.query!==void 0?M.query=S.query:M.query=T.query),M.userinfo=T.userinfo,M.host=T.host,M.port=T.port),M.scheme=T.scheme),M.fragment=S.fragment,M}function Ut(T,S,I){var D=s({scheme:"null"},I);return at(tt(pe(T,D),pe(S,D),D,!0),D)}function ft(T,S){return typeof T=="string"?T=at(pe(T,S),S):a(T)==="object"&&(T=pe(at(T,S),S)),T}function la(T,S,I){return typeof T=="string"?T=at(pe(T,I),I):a(T)==="object"&&(T=at(T,I)),typeof S=="string"?S=at(pe(S,I),I):a(S)==="object"&&(S=at(S,I)),T===S}function En(T,S){return T&&T.toString().replace(!S||!S.iri?l.ESCAPE:d.ESCAPE,Te)}function Mt(T,S){return T&&T.toString().replace(!S||!S.iri?l.PCT_ENCODED:d.PCT_ENCODED,ke)}var Di={scheme:"http",domainHost:!0,parse:function(S,I){return S.host||(S.error=S.error||"HTTP URIs must have a host."),S},serialize:function(S,I){var D=String(S.scheme).toLowerCase()==="https";return(S.port===(D?443:80)||S.port==="")&&(S.port=void 0),S.path||(S.path="/"),S}},Io={scheme:"https",domainHost:Di.domainHost,parse:Di.parse,serialize:Di.serialize};function Oo(T){return typeof T.secure=="boolean"?T.secure:String(T.scheme).toLowerCase()==="wss"}var Ni={scheme:"ws",domainHost:!0,parse:function(S,I){var D=S;return D.secure=Oo(D),D.resourceName=(D.path||"/")+(D.query?"?"+D.query:""),D.path=void 0,D.query=void 0,D},serialize:function(S,I){if((S.port===(Oo(S)?443:80)||S.port==="")&&(S.port=void 0),typeof S.secure=="boolean"&&(S.scheme=S.secure?"wss":"ws",S.secure=void 0),S.resourceName){var D=S.resourceName.split("?"),M=u(D,2),_=M[0],ee=M[1];S.path=_&&_!=="/"?_:void 0,S.query=ee,S.resourceName=void 0}return S.fragment=void 0,S}},Po={scheme:"wss",domainHost:Ni.domainHost,parse:Ni.parse,serialize:Ni.serialize},uf={},cf=!0,Ao="[A-Za-z0-9\\-\\.\\_\\~"+(cf?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Ht="[0-9A-Fa-f]",pf=r(r("%[EFef]"+Ht+"%"+Ht+Ht+"%"+Ht+Ht)+"|"+r("%[89A-Fa-f]"+Ht+"%"+Ht+Ht)+"|"+r("%"+Ht+Ht)),ff="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",hf="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",mf=e(hf,'[\\"\\\\]'),yf="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",gf=new RegExp(Ao,"g"),ti=new RegExp(pf,"g"),bf=new RegExp(e("[^]",ff,"[\\.]",'[\\"]',mf),"g"),Eo=new RegExp(e("[^]",Ao,yf),"g"),vf=Eo;function Ln(T){var S=ke(T);return S.match(gf)?S:T}var Lo={scheme:"mailto",parse:function(S,I){var D=S,M=D.to=D.path?D.path.split(","):[];if(D.path=void 0,D.query){for(var _=!1,ee={},de=D.query.split("&"),he=0,je=de.length;he<je;++he){var se=de[he].split("=");switch(se[0]){case"to":for(var Le=se[1].split(","),We=0,Oe=Le.length;We<Oe;++We)M.push(Le[We]);break;case"subject":D.subject=Mt(se[1],I);break;case"body":D.body=Mt(se[1],I);break;default:_=!0,ee[Mt(se[0],I)]=Mt(se[1],I);break}}_&&(D.headers=ee)}D.query=void 0;for(var ce=0,De=M.length;ce<De;++ce){var be=M[ce].split("@");if(be[0]=Mt(be[0]),I.unicodeSupport)be[1]=Mt(be[1],I).toLowerCase();else try{be[1]=te.toASCII(Mt(be[1],I).toLowerCase())}catch(qr){D.error=D.error||"Email address's domain name can not be converted to ASCII via punycode: "+qr}M[ce]=be.join("@")}return D},serialize:function(S,I){var D=S,M=n(S.to);if(M){for(var _=0,ee=M.length;_<ee;++_){var de=String(M[_]),he=de.lastIndexOf("@"),je=de.slice(0,he).replace(ti,Ln).replace(ti,i).replace(bf,Te),se=de.slice(he+1);try{se=I.iri?te.toUnicode(se):te.toASCII(Mt(se,I).toLowerCase())}catch(ce){D.error=D.error||"Email address's domain name can not be converted to "+(I.iri?"Unicode":"ASCII")+" via punycode: "+ce}M[_]=je+"@"+se}D.path=M.join(",")}var Le=S.headers=S.headers||{};S.subject&&(Le.subject=S.subject),S.body&&(Le.body=S.body);var We=[];for(var Oe in Le)Le[Oe]!==uf[Oe]&&We.push(Oe.replace(ti,Ln).replace(ti,i).replace(Eo,Te)+"="+Le[Oe].replace(ti,Ln).replace(ti,i).replace(vf,Te));return We.length&&(D.query=We.join("&")),D}},Sf=/^([^\:]+)\:(.*)/,Do={scheme:"urn",parse:function(S,I){var D=S.path&&S.path.match(Sf),M=S;if(D){var _=I.scheme||M.scheme||"urn",ee=D[1].toLowerCase(),de=D[2],he=_+":"+(I.nid||ee),je=ge[he];M.nid=ee,M.nss=de,M.path=void 0,je&&(M=je.parse(M,I))}else M.error=M.error||"URN can not be parsed.";return M},serialize:function(S,I){var D=I.scheme||S.scheme||"urn",M=S.nid,_=D+":"+(I.nid||M),ee=ge[_];ee&&(S=ee.serialize(S,I));var de=S,he=S.nss;return de.path=(M||I.nid)+":"+he,de}},wf=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,No={scheme:"urn:uuid",parse:function(S,I){var D=S;return D.uuid=D.nss,D.nss=void 0,!I.tolerant&&(!D.uuid||!D.uuid.match(wf))&&(D.error=D.error||"UUID is not valid."),D},serialize:function(S,I){var D=S;return D.nss=(S.uuid||"").toLowerCase(),D}};ge[Di.scheme]=Di,ge[Io.scheme]=Io,ge[Ni.scheme]=Ni,ge[Po.scheme]=Po,ge[Lo.scheme]=Lo,ge[Do.scheme]=Do,ge[No.scheme]=No,t.SCHEMES=ge,t.pctEncChar=Te,t.pctDecChars=ke,t.parse=pe,t.removeDotSegments=Ft,t.serialize=at,t.resolveComponents=tt,t.resolve=Ut,t.normalize=ft,t.equal=la,t.escapeComponent=En,t.unescapeComponent=Mt,Object.defineProperty(t,"__esModule",{value:!0})}))});var Qa=K((XC,Yd)=>{"use strict";Yd.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var a,i,n;if(Array.isArray(e)){if(a=e.length,a!=r.length)return!1;for(i=a;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(n=Object.keys(e),a=n.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=a;i--!==0;){var s=n[i];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}});var eu=K((ex,Xd)=>{"use strict";Xd.exports=function(e){for(var r=0,a=e.length,i=0,n;i<a;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<a&&(n=e.charCodeAt(i),(n&64512)==56320&&i++);return r}});var Gr=K((tx,iu)=>{"use strict";iu.exports={copy:Fy,checkDataType:Fs,checkDataTypes:Iy,coerceToTypes:Oy,toHash:Os,getProperty:Ps,escapeQuotes:As,equal:Qa(),ucs2length:eu(),varOccurences:Ey,varReplace:Ly,schemaHasRules:Dy,schemaHasRulesExcept:Ny,schemaUnknownRules:By,toQuotedString:Is,getPathExpr:My,getPath:$y,getData:ky,unescapeFragment:jy,unescapeJsonPointer:Ls,escapeFragment:Wy,escapeJsonPointer:Es};function Fy(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function Fs(t,e,r,a){var i=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(t){case"null":return e+i+"null";case"array":return s+"Array.isArray("+e+")";case"object":return"("+s+e+n+"typeof "+e+i+'"object"'+n+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+i+'"number"'+n+o+"("+e+" % 1)"+n+e+i+e+(r?n+s+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+i+'"'+t+'"'+(r?n+s+"isFinite("+e+")":"")+")";default:return"typeof "+e+i+'"'+t+'"'}}function Iy(t,e,r){switch(t.length){case 1:return Fs(t[0],e,r,!0);default:var a="",i=Os(t);i.array&&i.object&&(a=i.null?"(":"(!"+e+" || ",a+="typeof "+e+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var n in i)a+=(a?" && ":"")+Fs(n,e,r,!0);return a}}var tu=Os(["string","number","integer","boolean","null"]);function Oy(t,e){if(Array.isArray(e)){for(var r=[],a=0;a<e.length;a++){var i=e[a];(tu[i]||t==="array"&&i==="array")&&(r[r.length]=i)}if(r.length)return r}else{if(tu[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Os(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var Py=/^[a-z$_][a-z$_0-9]*$/i,Ay=/'|\\/g;function Ps(t){return typeof t=="number"?"["+t+"]":Py.test(t)?"."+t:"['"+As(t)+"']"}function As(t){return t.replace(Ay,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Ey(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function Ly(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function Dy(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function Ny(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var a in t)if(a!=r&&e[a])return!0}function By(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function Is(t){return"'"+As(t)+"'"}function My(t,e,r,a){var i=r?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return ru(t,i)}function $y(t,e,r){var a=Is(r?"/"+Es(e):Ps(e));return ru(t,a)}var qy=/^\/(?:[^~]|~0|~1)*$/,Ry=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ky(t,e,r){var a,i,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!qy.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,n="rootData"}else{if(s=t.match(Ry),!s)throw new Error("Invalid JSON-pointer: "+t);if(a=+s[1],i=s[2],i=="#"){if(a>=e)throw new Error("Cannot access property/index "+a+" levels up, current level is "+e);return r[e-a]}if(a>e)throw new Error("Cannot access data "+a+" levels up, current level is "+e);if(n="data"+(e-a||""),!i)return n}for(var o=n,l=i.split("/"),d=0;d<l.length;d++){var u=l[d];u&&(n+=Ps(Ls(u)),o+=" && "+n)}return o}function ru(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function jy(t){return Ls(decodeURIComponent(t))}function Wy(t){return encodeURIComponent(Es(t))}function Es(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Ls(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var Ds=K((rx,au)=>{"use strict";var Vy=Gr();au.exports=_y;function _y(t){Vy.copy(t,this)}});var su=K((ix,nu)=>{"use strict";var Cr=nu.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var a=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Za(e,a,i,t,"",t)};Cr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Cr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Cr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Cr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Za(t,e,r,a,i,n,s,o,l,d){if(a&&typeof a=="object"&&!Array.isArray(a)){e(a,i,n,s,o,l,d);for(var u in a){var c=a[u];if(Array.isArray(c)){if(u in Cr.arrayKeywords)for(var f=0;f<c.length;f++)Za(t,e,r,c[f],i+"/"+u+"/"+f,n,i,u,a,f)}else if(u in Cr.propsKeywords){if(c&&typeof c=="object")for(var p in c)Za(t,e,r,c[p],i+"/"+u+"/"+zy(p),n,i,u,a,p)}else(u in Cr.keywords||t.allKeys&&!(u in Cr.skipKeywords))&&Za(t,e,r,c,i+"/"+u,n,i,u,a)}r(a,i,n,s,o,l,d)}}function zy(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var tn=K((ax,uu)=>{"use strict";var Ki=Jd(),ou=Qa(),Xa=Gr(),Ka=Ds(),Uy=su();uu.exports=Tr;Tr.normalizeId=xr;Tr.fullPath=Ja;Tr.url=Ya;Tr.ids=Ky;Tr.inlineRef=Ns;Tr.schema=en;function Tr(t,e,r){var a=this._refs[r];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return Tr.call(this,t,e,a);if(a=a||this._schemas[r],a instanceof Ka)return Ns(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var i=en.call(this,e,r),n,s,o;return i&&(n=i.schema,e=i.root,o=i.baseId),n instanceof Ka?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=Ns(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function en(t,e){var r=Ki.parse(e),a=du(r),i=Ja(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==i){var n=xr(a),s=this._refs[n];if(typeof s=="string")return Hy.call(this,t,s,r);if(s instanceof Ka)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof Ka){if(s.validate||this._compile(s),n==xr(e))return{schema:s,root:t,baseId:i};t=s}else return;if(!t.schema)return;i=Ja(this._getId(t.schema))}return lu.call(this,r,i,t.schema,t)}function Hy(t,e,r){var a=en.call(this,t,e);if(a){var i=a.schema,n=a.baseId;t=a.root;var s=this._getId(i);return s&&(n=Ya(n,s)),lu.call(this,r,n,i,t)}}var Gy=Xa.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function lu(t,e,r,a){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var i=t.fragment.split("/"),n=1;n<i.length;n++){var s=i[n];if(s){if(s=Xa.unescapeFragment(s),r=r[s],r===void 0)break;var o;if(!Gy[s]&&(o=this._getId(r),o&&(e=Ya(e,o)),r.$ref)){var l=Ya(e,r.$ref),d=en.call(this,a,l);d&&(r=d.schema,a=d.root,e=d.baseId)}}}if(r!==void 0&&r!==a.schema)return{schema:r,root:a,baseId:e}}}var Qy=Xa.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Ns(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Bs(t);if(e)return Ms(t)<=e}function Bs(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!Bs(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!Bs(e)))return!1;return!0}function Ms(t){var e=0,r;if(Array.isArray(t)){for(var a=0;a<t.length;a++)if(r=t[a],typeof r=="object"&&(e+=Ms(r)),e==1/0)return 1/0}else for(var i in t){if(i=="$ref")return 1/0;if(Qy[i])e++;else if(r=t[i],typeof r=="object"&&(e+=Ms(r)+1),e==1/0)return 1/0}return e}function Ja(t,e){e!==!1&&(t=xr(t));var r=Ki.parse(t);return du(r)}function du(t){return Ki.serialize(t).split("#")[0]+"#"}var Zy=/#\/?$/;function xr(t){return t?t.replace(Zy,""):""}function Ya(t,e){return e=xr(e),Ki.resolve(t,e)}function Ky(t){var e=xr(this._getId(t)),r={"":e},a={"":Ja(e,!1)},i={},n=this;return Uy(t,{allKeys:!0},function(s,o,l,d,u,c,f){if(o!==""){var p=n._getId(s),h=r[d],m=a[d]+"/"+u;if(f!==void 0&&(m+="/"+(typeof f=="number"?f:Xa.escapeFragment(f))),typeof p=="string"){p=h=xr(h?Ki.resolve(h,p):p);var y=n._refs[p];if(typeof y=="string"&&(y=n._refs[y]),y&&y.schema){if(!ou(s,y.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=xr(m))if(p[0]=="#"){if(i[p]&&!ou(s,i[p]))throw new Error('id "'+p+'" resolves to more than one schema');i[p]=s}else n._refs[p]=m}r[o]=h,a[o]=m}}),i}});var rn=K((nx,pu)=>{"use strict";var $s=tn();pu.exports={Validation:cu(Jy),MissingRef:cu(qs)};function Jy(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}qs.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function qs(t,e,r){this.message=r||qs.message(t,e),this.missingRef=$s.url(t,e),this.missingSchema=$s.normalizeId($s.fullPath(this.missingRef))}function cu(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Rs=K((sx,fu)=>{"use strict";fu.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,a=e.cmp&&(function(n){return function(s){return function(o,l){var d={key:o,value:s[o]},u={key:l,value:s[l]};return n(d,u)}}})(e.cmp),i=[];return(function n(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var o,l;if(Array.isArray(s)){for(l="[",o=0;o<s.length;o++)o&&(l+=","),l+=n(s[o])||"null";return l+"]"}if(s===null)return"null";if(i.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var d=i.push(s)-1,u=Object.keys(s).sort(a&&a(s));for(l="",o=0;o<u.length;o++){var c=u[o],f=n(s[c]);f&&(l&&(l+=","),l+=JSON.stringify(c)+":"+f)}return i.splice(d,1),"{"+l+"}"}})(t)}});var ks=K((ox,hu)=>{"use strict";hu.exports=function(e,r,a){var i="",n=e.schema.$async===!0,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var d="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(d);else throw new Error(d)}}if(e.isTop&&(i+=" var validate = ",n&&(e.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(i+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(s||e.schema.$ref)){var r="false schema",u=e.level,c=e.dataLevel,f=e.schema[r],p=e.schemaPath+e.util.getProperty(r),h=e.errSchemaPath+"/"+r,F=!e.opts.allErrors,L,m="data"+(c||""),x="valid"+u;if(e.schema===!1){e.isTop?F=!0:i+=" var "+x+" = false; ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+x+" = true; ";return e.isTop&&(i+=" }; return validate; "),i}if(e.isTop){var v=e.isTop,u=e.level=0,c=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var w="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,c=e.dataLevel,m="data"+(c||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");i+=" var errs_"+u+" = errors;"}var x="valid"+u,F=!e.opts.allErrors,A="",q="",L,P=e.schema.type,B=Array.isArray(P);if(P&&e.opts.nullable&&e.schema.nullable===!0&&(B?P.indexOf("null")==-1&&(P=P.concat("null")):P!="null"&&(P=[P,"null"],B=!0)),B&&P.length==1&&(P=P[0],B=!1),e.schema.$ref&&s){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(s=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(i+=" "+e.RULES.all.$comment.code(e,"$comment")),P){if(e.opts.coerceTypes)var N=e.util.coerceToTypes(e.opts.coerceTypes,P);var R=e.RULES.types[P];if(N||B||R===!0||R&&!Ke(R)){var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type",$=B?"checkDataTypes":"checkDataType";if(i+=" if ("+e.util[$](P,m,e.opts.strictNumbers,!0)+") { ",N){var E="dataType"+u,k="coerced"+u;i+=" var "+E+" = typeof "+m+"; var "+k+" = undefined; ",e.opts.coerceTypes=="array"&&(i+=" if ("+E+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+E+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+k+" = "+m+"; } "),i+=" if ("+k+" !== undefined) ; ";var Q=N;if(Q)for(var H,V=-1,Z=Q.length-1;V<Z;)H=Q[V+=1],H=="string"?i+=" else if ("+E+" == 'number' || "+E+" == 'boolean') "+k+" = '' + "+m+"; else if ("+m+" === null) "+k+" = ''; ":H=="number"||H=="integer"?(i+=" else if ("+E+" == 'boolean' || "+m+" === null || ("+E+" == 'string' && "+m+" && "+m+" == +"+m+" ",H=="integer"&&(i+=" && !("+m+" % 1)"),i+=")) "+k+" = +"+m+"; "):H=="boolean"?i+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+k+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+k+" = true; ":H=="null"?i+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+k+" = null; ":e.opts.coerceTypes=="array"&&H=="array"&&(i+=" else if ("+E+" == 'string' || "+E+" == 'number' || "+E+" == 'boolean' || "+m+" == null) "+k+" = ["+m+"]; ");i+=" else { ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",B?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",B?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+k+" !== undefined) { ";var z=c?"data"+(c-1||""):"parentData",ne=c?e.dataPathArr[c]:"parentDataProperty";i+=" "+m+" = "+k+"; ",c||(i+="if ("+z+" !== undefined)"),i+=" "+z+"["+ne+"] = "+k+"; } "}else{var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",B?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",B?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(e.schema.$ref&&!s)i+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",F&&(i+=" } if (errors === ",v?i+="0":i+="errs_"+u,i+=") { ",q+="}");else{var Re=e.RULES;if(Re){for(var R,_e=-1,te=Re.length-1;_e<te;)if(R=Re[_e+=1],Ke(R)){if(R.type&&(i+=" if ("+e.util.checkDataType(R.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(R.type=="object"&&e.schema.properties){var f=e.schema.properties,ge=Object.keys(f),Te=ge;if(Te)for(var ke,xt=-1,it=Te.length-1;xt<it;){ke=Te[xt+=1];var Fe=f[ke];if(Fe.default!==void 0){var Se=m+e.util.getProperty(ke);if(e.compositeRule){if(e.opts.strictDefaults){var w="default is ignored for: "+Se;if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}}else i+=" if ("+Se+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+Se+" === null || "+Se+" === '' "),i+=" ) "+Se+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Fe.default)+" ":i+=" "+JSON.stringify(Fe.default)+" ",i+="; "}}}else if(R.type=="array"&&Array.isArray(e.schema.items)){var Tt=e.schema.items;if(Tt){for(var Fe,V=-1,He=Tt.length-1;V<He;)if(Fe=Tt[V+=1],Fe.default!==void 0){var Se=m+"["+V+"]";if(e.compositeRule){if(e.opts.strictDefaults){var w="default is ignored for: "+Se;if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}}else i+=" if ("+Se+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+Se+" === null || "+Se+" === '' "),i+=" ) "+Se+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Fe.default)+" ":i+=" "+JSON.stringify(Fe.default)+" ",i+="; "}}}}var pe=R.rules;if(pe){for(var pr,Kt=-1,Mr=pe.length-1;Kt<Mr;)if(pr=pe[Kt+=1],Ft(pr)){var $r=pr.code(e,pr.keyword,R.type);$r&&(i+=" "+$r+" ",F&&(A+="}"))}}if(F&&(i+=" "+A+" ",A=""),R.type&&(i+=" } ",P&&P===R.type&&!N)){i+=" else { ";var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",B?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",B?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}F&&(i+=" if (errors === ",v?i+="0":i+="errs_"+u,i+=") { ",q+="}")}}}F&&(i+=" "+q+" "),v?(n?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+x+" = errors === errs_"+u+";";function Ke(tt){for(var Ut=tt.rules,ft=0;ft<Ut.length;ft++)if(Ft(Ut[ft]))return!0}function Ft(tt){return e.schema[tt.keyword]!==void 0||tt.implements&&at(tt)}function at(tt){for(var Ut=tt.implements,ft=0;ft<Ut.length;ft++)if(e.schema[Ut[ft]]!==void 0)return!0}return i}});var vu=K((lx,bu)=>{"use strict";var an=tn(),sn=Gr(),yu=rn(),Yy=Rs(),mu=ks(),Xy=sn.ucs2length,eg=Qa(),tg=yu.Validation;bu.exports=js;function js(t,e,r,a){var i=this,n=this._opts,s=[void 0],o={},l=[],d={},u=[],c={},f=[];e=e||{schema:t,refVal:s,refs:o};var p=rg.call(this,t,e,a),h=this._compilations[p.index];if(p.compiling)return h.callValidate=w;var m=this._formats,y=this.RULES;try{var g=x(t,e,r,a);h.validate=g;var v=h.callValidate;return v&&(v.schema=g.schema,v.errors=null,v.refs=g.refs,v.refVal=g.refVal,v.root=g.root,v.$async=g.$async,n.sourceCode&&(v.source=g.source)),g}finally{ig.call(this,t,e,a)}function w(){var $=h.validate,E=$.apply(this,arguments);return w.errors=$.errors,E}function x($,E,k,Q){var H=!E||E&&E.schema==$;if(E.schema!=e.schema)return js.call(i,$,E,k,Q);var V=$.$async===!0,Z=mu({isTop:!0,schema:$,isRoot:H,baseId:Q,root:E,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:yu.MissingRef,RULES:y,validate:mu,util:sn,resolve:an,resolveRef:F,usePattern:B,useDefault:N,useCustomRule:R,opts:n,formats:m,logger:i.logger,self:i});Z=nn(s,sg)+nn(l,ag)+nn(u,ng)+nn(f,og)+Z,n.processCode&&(Z=n.processCode(Z,$));var z;try{var ne=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",Z);z=ne(i,y,m,e,s,u,f,eg,Xy,tg),s[0]=z}catch(Re){throw i.logger.error("Error compiling schema, function code:",Z),Re}return z.schema=$,z.errors=null,z.refs=o,z.refVal=s,z.root=H?z:E,V&&(z.$async=!0),n.sourceCode===!0&&(z.source={code:Z,patterns:l,defaults:u}),z}function F($,E,k){E=an.url($,E);var Q=o[E],H,V;if(Q!==void 0)return H=s[Q],V="refVal["+Q+"]",P(H,V);if(!k&&e.refs){var Z=e.refs[E];if(Z!==void 0)return H=e.refVal[Z],V=A(E,H),P(H,V)}V=A(E);var z=an.call(i,x,e,E);if(z===void 0){var ne=r&&r[E];ne&&(z=an.inlineRef(ne,n.inlineRefs)?ne:js.call(i,ne,e,r,$))}if(z===void 0)q(E);else return L(E,z),P(z,V)}function A($,E){var k=s.length;return s[k]=E,o[$]=k,"refVal"+k}function q($){delete o[$]}function L($,E){var k=o[$];s[k]=E}function P($,E){return typeof $=="object"||typeof $=="boolean"?{code:E,schema:$,inline:!0}:{code:E,$async:$&&!!$.$async}}function B($){var E=d[$];return E===void 0&&(E=d[$]=l.length,l[E]=$),"pattern"+E}function N($){switch(typeof $){case"boolean":case"number":return""+$;case"string":return sn.toQuotedString($);case"object":if($===null)return"null";var E=Yy($),k=c[E];return k===void 0&&(k=c[E]=u.length,u[k]=$),"default"+k}}function R($,E,k,Q){if(i._opts.validateSchema!==!1){var H=$.definition.dependencies;if(H&&!H.every(function(Te){return Object.prototype.hasOwnProperty.call(k,Te)}))throw new Error("parent schema must have all required keywords: "+H.join(","));var V=$.definition.validateSchema;if(V){var Z=V(E);if(!Z){var z="keyword schema is invalid: "+i.errorsText(V.errors);if(i._opts.validateSchema=="log")i.logger.error(z);else throw new Error(z)}}}var ne=$.definition.compile,Re=$.definition.inline,_e=$.definition.macro,te;if(ne)te=ne.call(i,E,k,Q);else if(_e)te=_e.call(i,E,k,Q),n.validateSchema!==!1&&i.validateSchema(te,!0);else if(Re)te=Re.call(i,Q,$.keyword,E,k);else if(te=$.definition.validate,!te)return;if(te===void 0)throw new Error('custom keyword "'+$.keyword+'"failed to compile');var ge=f.length;return f[ge]=te,{code:"customRule"+ge,validate:te}}}function rg(t,e,r){var a=gu.call(this,t,e,r);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:t,root:e,baseId:r},{index:a,compiling:!1})}function ig(t,e,r){var a=gu.call(this,t,e,r);a>=0&&this._compilations.splice(a,1)}function gu(t,e,r){for(var a=0;a<this._compilations.length;a++){var i=this._compilations[a];if(i.schema==t&&i.root==e&&i.baseId==r)return a}return-1}function ag(t,e){return"var pattern"+t+" = new RegExp("+sn.toQuotedString(e[t])+");"}function ng(t){return"var default"+t+" = defaults["+t+"];"}function sg(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function og(t){return"var customRule"+t+" = customRules["+t+"];"}function nn(t,e){if(!t.length)return"";for(var r="",a=0;a<t.length;a++)r+=e(a,t);return r}});var wu=K((dx,Su)=>{"use strict";var on=Su.exports=function(){this._cache={}};on.prototype.put=function(e,r){this._cache[e]=r};on.prototype.get=function(e){return this._cache[e]};on.prototype.del=function(e){delete this._cache[e]};on.prototype.clear=function(){this._cache={}}});var Nu=K((ux,Du)=>{"use strict";var lg=Gr(),dg=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ug=[0,31,28,31,30,31,30,31,31,30,31,30,31],cg=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Cu=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,pg=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,fg=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,xu=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Tu=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Fu=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Iu=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Ou=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Pu=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Du.exports=ln;function ln(t){return t=t=="full"?"full":"fast",lg.copy(ln[t])}ln.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":xu,url:Tu,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Cu,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Lu,uuid:Fu,"json-pointer":Iu,"json-pointer-uri-fragment":Ou,"relative-json-pointer":Pu};ln.full={date:Au,time:Eu,"date-time":yg,uri:bg,"uri-reference":fg,"uri-template":xu,url:Tu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Cu,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Lu,uuid:Fu,"json-pointer":Iu,"json-pointer-uri-fragment":Ou,"relative-json-pointer":Pu};function hg(t){return t%4===0&&(t%100!==0||t%400===0)}function Au(t){var e=t.match(dg);if(!e)return!1;var r=+e[1],a=+e[2],i=+e[3];return a>=1&&a<=12&&i>=1&&i<=(a==2&&hg(r)?29:ug[a])}function Eu(t,e){var r=t.match(cg);if(!r)return!1;var a=r[1],i=r[2],n=r[3],s=r[5];return(a<=23&&i<=59&&n<=59||a==23&&i==59&&n==60)&&(!e||s)}var mg=/t|\s/i;function yg(t){var e=t.split(mg);return e.length==2&&Au(e[0])&&Eu(e[1],!0)}var gg=/\/|:/;function bg(t){return gg.test(t)&&pg.test(t)}var vg=/[^\\]\\Z/;function Lu(t){if(vg.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Mu=K((cx,Bu)=>{"use strict";Bu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.errSchemaPath+"/"+r,d=!e.opts.allErrors,u="data"+(s||""),c="valid"+n,f,p;if(o=="#"||o=="#/")e.isRoot?(f=e.async,p="validate"):(f=e.root.schema.$async===!0,p="root.refVal[0]");else{var h=e.resolveRef(e.baseId,o,e.isRoot);if(h===void 0){var m=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(m);var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&d?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(i+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),d&&(i+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,m)}else if(h.inline){var v=e.util.copy(e);v.level++;var w="valid"+v.level;v.schema=h.schema,v.schemaPath="",v.errSchemaPath=o;var x=e.validate(v).replace(/validate\.schema/g,h.code);i+=" "+x+" ",d&&(i+=" if ("+w+") { ")}else f=h.$async===!0||e.async&&h.$async!==!1,p=h.code}if(p){var y=y||[];y.push(i),i="",e.opts.passContext?i+=" "+p+".call(this, ":i+=" "+p+"( ",i+=" "+u+", (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var F=s?"data"+(s-1||""):"parentData",A=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+F+" , "+A+", rootData) ";var q=i;if(i=y.pop(),f){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(i+=" var "+c+"; "),i+=" try { await "+q+"; ",d&&(i+=" "+c+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",d&&(i+=" "+c+" = false; "),i+=" } ",d&&(i+=" if ("+c+") { ")}else i+=" if (!"+q+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",d&&(i+=" else { ")}return i}});var qu=K((px,$u)=>{"use strict";$u.exports=function(e,r,a){var i=" ",n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),o=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,d=e.util.copy(e),u="";d.level++;var c="valid"+d.level,f=d.baseId,p=!0,h=n;if(h)for(var m,y=-1,g=h.length-1;y<g;)m=h[y+=1],(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(p=!1,d.schema=m,d.schemaPath=s+"["+y+"]",d.errSchemaPath=o+"/"+y,i+=" "+e.validate(d)+" ",d.baseId=f,l&&(i+=" if ("+c+") { ",u+="}"));return l&&(p?i+=" if (true) { ":i+=" "+u.slice(0,-1)+" "),i}});var ku=K((fx,Ru)=>{"use strict";Ru.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g=o.every(function(L){return e.opts.strictKeywords?typeof L=="object"&&Object.keys(L).length>0||L===!1:e.util.schemaHasRules(L,e.RULES.all)});if(g){var v=h.baseId;i+=" var "+p+" = errors; var "+f+" = false; ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0;var x=o;if(x)for(var F,A=-1,q=x.length-1;A<q;)F=x[A+=1],h.schema=F,h.schemaPath=l+"["+A+"]",h.errSchemaPath=d+"/"+A,i+=" "+e.validate(h)+" ",h.baseId=v,i+=" "+f+" = "+f+" || "+y+"; if (!"+f+") { ",m+="}";e.compositeRule=h.compositeRule=w,i+=" "+m+" if (!"+f+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else u&&(i+=" if (true) { ");return i}});var Wu=K((hx,ju)=>{"use strict";ju.exports=function(e,r,a){var i=" ",n=e.schema[r],s=e.errSchemaPath+"/"+r,o=!e.opts.allErrors,l=e.util.toQuotedString(n);return e.opts.$comment===!0?i+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(i+=" self._opts.$comment("+l+", "+e.util.toQuotedString(s)+", validate.root.schema);"),i}});var _u=K((mx,Vu)=>{"use strict";Vu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,p||(i+=" var schema"+n+" = validate.schema"+l+";"),i+="var "+f+" = equal("+c+", schema"+n+"); if (!"+f+") { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var y=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",u&&(i+=" else { "),i}});var Uu=K((yx,zu)=>{"use strict";zu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g="i"+n,v=h.dataLevel=e.dataLevel+1,w="data"+v,x=e.baseId,F=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(i+="var "+p+" = errors;var "+f+";",F){var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,i+=" var "+y+" = false; for (var "+g+" = 0; "+g+" < "+c+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var q=c+"["+g+"]";h.dataPathArr[v]=g;var L=e.validate(h);h.baseId=x,e.util.varOccurences(L,w)<2?i+=" "+e.util.varReplace(L,w,q)+" ":i+=" var "+w+" = "+q+"; "+L+" ",i+=" if ("+y+") break; } ",e.compositeRule=h.compositeRule=A,i+=" "+m+" if (!"+y+") {"}else i+=" if ("+c+".length == 0) {";var P=P||[];P.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var B=i;return i=P.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+B+"]); ":i+=" validate.errors = ["+B+"]; return false; ":i+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",F&&(i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(i+=" } "),i}});var Gu=K((gx,Hu)=>{"use strict";Hu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level,y={},g={},v=e.opts.ownProperties;for(A in o)if(A!="__proto__"){var w=o[A],x=Array.isArray(w)?g:y;x[A]=w}i+="var "+f+" = errors;";var F=e.errorPath;i+="var missing"+n+";";for(var A in g)if(x=g[A],x.length){if(i+=" if ( "+c+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "),u){i+=" && ( ";var q=x;if(q)for(var L,P=-1,B=q.length-1;P<B;){L=q[P+=1],P&&(i+=" || ");var N=e.util.getProperty(L),R=c+N;i+=" ( ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(L)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?L:N)+") ) "}i+=")) { ";var $="missing"+n,E="' + "+$+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(F,$,!0):F+" + "+$);var k=k||[];k.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+E+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Q=i;i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Q+"]); ":i+=" validate.errors = ["+Q+"]; return false; ":i+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var H=x;if(H)for(var L,V=-1,Z=H.length-1;V<Z;){L=H[V+=1];var N=e.util.getProperty(L),E=e.util.escapeQuotes(L),R=c+N;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(F,L,e.opts.jsonPointers)),i+=" if ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(L)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+E+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",u&&(h+="}",i+=" else { ")}e.errorPath=F;var z=p.baseId;for(var A in y){var w=y[A];(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all))&&(i+=" "+m+" = true; if ( "+c+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "),i+=") { ",p.schema=w,p.schemaPath=l+e.util.getProperty(A),p.errSchemaPath=d+"/"+e.util.escapeFragment(A),i+=" "+e.validate(p)+" ",p.baseId=z,i+=" } ",u&&(i+=" if ("+m+") { ",h+="}"))}return u&&(i+=" "+h+" if ("+f+" == errors) {"),i}});var Zu=K((bx,Qu)=>{"use strict";Qu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var m="i"+n,y="schema"+n;p||(i+=" var "+y+" = validate.schema"+l+";"),i+="var "+f+";",p&&(i+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),i+=""+f+" = false;for (var "+m+"=0; "+m+"<"+y+".length; "+m+"++) if (equal("+c+", "+y+"["+m+"])) { "+f+" = true; break; }",p&&(i+=" } "),i+=" if (!"+f+") { ";var g=g||[];g.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var v=i;return i=g.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",u&&(i+=" else { "),i}});var Ju=K((vx,Ku)=>{"use strict";Ku.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||"");if(e.opts.format===!1)return u&&(i+=" if (true) { "),i;var f=e.opts.$data&&o&&o.$data,p;f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=e.opts.unknownFormats,m=Array.isArray(h);if(f){var y="format"+n,g="isObject"+n,v="formatType"+n;i+=" var "+y+" = formats["+p+"]; var "+g+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+v+" = "+g+" && "+y+".type || 'string'; if ("+g+") { ",e.async&&(i+=" var async"+n+" = "+y+".async; "),i+=" "+y+" = "+y+".validate; } if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" (",h!="ignore"&&(i+=" ("+p+" && !"+y+" ",m&&(i+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),i+=") || "),i+=" ("+y+" && "+v+" == '"+a+"' && !(typeof "+y+" == 'function' ? ",e.async?i+=" (async"+n+" ? await "+y+"("+c+") : "+y+"("+c+")) ":i+=" "+y+"("+c+") ",i+=" : "+y+".test("+c+"))))) {"}else{var y=e.formats[o];if(!y){if(h=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(i+=" if (true) { "),i;if(m&&h.indexOf(o)>=0)return u&&(i+=" if (true) { "),i;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var g=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,v=g&&y.type||"string";if(g){var w=y.async===!0;y=y.validate}if(v!=a)return u&&(i+=" if (true) { "),i;if(w){if(!e.async)throw new Error("async format in sync schema");var x="formats"+e.util.getProperty(o)+".validate";i+=" if (!(await "+x+"("+c+"))) { "}else{i+=" if (! ";var x="formats"+e.util.getProperty(o);g&&(x+=".validate"),typeof y=="function"?i+=" "+x+"("+c+") ":i+=" "+x+".test("+c+") ",i+=") { "}}var F=F||[];F.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",f?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match format "`,f?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var A=i;return i=F.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}});var Xu=K((Sx,Yu)=>{"use strict";Yu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e);h.level++;var m="valid"+h.level,y=e.schema.then,g=e.schema.else,v=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),w=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),x=h.baseId;if(v||w){var F;h.createErrors=!1,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,i+=" var "+p+" = errors; var "+f+" = true; ";var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,i+=" "+e.validate(h)+" ",h.baseId=x,h.createErrors=!0,i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=A,v?(i+=" if ("+m+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(h)+" ",h.baseId=x,i+=" "+f+" = "+m+"; ",v&&w?(F="ifClause"+n,i+=" var "+F+" = 'then'; "):F="'then'",i+=" } ",w&&(i+=" else { ")):i+=" if (!"+m+") { ",w&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(h)+" ",h.baseId=x,i+=" "+f+" = "+m+"; ",v&&w?(F="ifClause"+n,i+=" var "+F+" = 'else'; "):F="'else'",i+=" } "),i+=" if (!"+f+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+F+" } ",e.opts.messages!==!1&&(i+=` , message: 'should match "' + `+F+` + '" schema' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i}});var tc=K((wx,ec)=>{"use strict";ec.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g="i"+n,v=h.dataLevel=e.dataLevel+1,w="data"+v,x=e.baseId;if(i+="var "+p+" = errors;var "+f+";",Array.isArray(o)){var F=e.schema.additionalItems;if(F===!1){i+=" "+f+" = "+c+".length <= "+o.length+"; ";var A=d;d=e.errSchemaPath+"/additionalItems",i+=" if (!"+f+") { ";var q=q||[];q.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var L=i;i=q.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+L+"]); ":i+=" validate.errors = ["+L+"]; return false; ":i+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",d=A,u&&(m+="}",i+=" else { ")}var P=o;if(P){for(var B,N=-1,R=P.length-1;N<R;)if(B=P[N+=1],e.opts.strictKeywords?typeof B=="object"&&Object.keys(B).length>0||B===!1:e.util.schemaHasRules(B,e.RULES.all)){i+=" "+y+" = true; if ("+c+".length > "+N+") { ";var $=c+"["+N+"]";h.schema=B,h.schemaPath=l+"["+N+"]",h.errSchemaPath=d+"/"+N,h.errorPath=e.util.getPathExpr(e.errorPath,N,e.opts.jsonPointers,!0),h.dataPathArr[v]=N;var E=e.validate(h);h.baseId=x,e.util.varOccurences(E,w)<2?i+=" "+e.util.varReplace(E,w,$)+" ":i+=" var "+w+" = "+$+"; "+E+" ",i+=" } ",u&&(i+=" if ("+y+") { ",m+="}")}}if(typeof F=="object"&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all))){h.schema=F,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+y+" = true; if ("+c+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+c+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var $=c+"["+g+"]";h.dataPathArr[v]=g;var E=e.validate(h);h.baseId=x,e.util.varOccurences(E,w)<2?i+=" "+e.util.varReplace(E,w,$)+" ":i+=" var "+w+" = "+$+"; "+E+" ",u&&(i+=" if (!"+y+") break; "),i+=" } } ",u&&(i+=" if ("+y+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=l,h.errSchemaPath=d,i+=" for (var "+g+" = 0; "+g+" < "+c+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var $=c+"["+g+"]";h.dataPathArr[v]=g;var E=e.validate(h);h.baseId=x,e.util.varOccurences(E,w)<2?i+=" "+e.util.varReplace(E,w,$)+" ":i+=" var "+w+" = "+$+"; "+E+" ",u&&(i+=" if (!"+y+") break; "),i+=" }"}return u&&(i+=" "+m+" if ("+p+" == errors) {"),i}});var Ws=K((Cx,rc)=>{"use strict";rc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,x,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=r=="maximum",m=h?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[m],g=e.opts.$data&&y&&y.$data,v=h?"<":">",w=h?">":"<",x=void 0;if(!(f||typeof o=="number"||o===void 0))throw new Error(r+" must be number");if(!(g||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(m+" must be number or boolean");if(g){var F=e.util.getData(y.$data,s,e.dataPathArr),A="exclusive"+n,q="exclType"+n,L="exclIsNumber"+n,P="op"+n,B="' + "+P+" + '";i+=" var schemaExcl"+n+" = "+F+"; ",F="schemaExcl"+n,i+=" var "+A+"; var "+q+" = typeof "+F+"; if ("+q+" != 'boolean' && "+q+" != 'undefined' && "+q+" != 'number') { ";var x=m,N=N||[];N.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var R=i;i=N.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+q+" == 'number' ? ( ("+A+" = "+p+" === undefined || "+F+" "+v+"= "+p+") ? "+c+" "+w+"= "+F+" : "+c+" "+w+" "+p+" ) : ( ("+A+" = "+F+" === true) ? "+c+" "+w+"= "+p+" : "+c+" "+w+" "+p+" ) || "+c+" !== "+c+") { var op"+n+" = "+A+" ? '"+v+"' : '"+v+"='; ",o===void 0&&(x=m,d=e.errSchemaPath+"/"+m,p=F,f=g)}else{var L=typeof y=="number",B=v;if(L&&f){var P="'"+B+"'";i+=" if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" ( "+p+" === undefined || "+y+" "+v+"= "+p+" ? "+c+" "+w+"= "+y+" : "+c+" "+w+" "+p+" ) || "+c+" !== "+c+") { "}else{L&&o===void 0?(A=!0,x=m,d=e.errSchemaPath+"/"+m,p=y,w+="="):(L&&(p=Math[h?"min":"max"](y,o)),y===(L?p:!0)?(A=!0,x=m,d=e.errSchemaPath+"/"+m,w+="="):(A=!1,B+="="));var P="'"+B+"'";i+=" if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+c+" "+w+" "+p+" || "+c+" !== "+c+") { "}}x=x||r;var N=N||[];N.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+P+", limit: "+p+", exclusive: "+A+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+B+" ",f?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var R=i;return i=N.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}});var Vs=K((xx,ic)=>{"use strict";ic.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var h=r=="maxItems"?">":"<";i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+c+".length "+h+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxItems"?i+="more":i+="fewer",i+=" than ",f?i+="' + "+p+" + '":i+=""+o,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var g=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var _s=K((Tx,ac)=>{"use strict";ac.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var h=r=="maxLength"?">":"<";i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?i+=" "+c+".length ":i+=" ucs2length("+c+") ",i+=" "+h+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be ",r=="maxLength"?i+="longer":i+="shorter",i+=" than ",f?i+="' + "+p+" + '":i+=""+o,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var g=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var zs=K((Fx,nc)=>{"use strict";nc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var h=r=="maxProperties"?">":"<";i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" Object.keys("+c+").length "+h+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxProperties"?i+="more":i+="fewer",i+=" than ",f?i+="' + "+p+" + '":i+=""+o,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var g=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var oc=K((Ix,sc)=>{"use strict";sc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");i+="var division"+n+";if (",f&&(i+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),i+=" (division"+n+" = "+c+" / "+p+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+n+" !== parseInt(division"+n+") ",i+=" ) ",f&&(i+=" ) "),i+=" ) { ";var h=h||[];h.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",f?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var dc=K((Ox,lc)=>{"use strict";lc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="errs__"+n,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d,i+=" var "+f+" = errors; ";var m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var y;p.opts.allErrors&&(y=p.opts.allErrors,p.opts.allErrors=!1),i+=" "+e.validate(p)+" ",p.createErrors=!0,y&&(p.opts.allErrors=y),e.compositeRule=p.compositeRule=m,i+=" if ("+h+") { ";var g=g||[];g.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var v=i;i=g.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ");return i}});var cc=K((Px,uc)=>{"use strict";uc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g=h.baseId,v="prevValid"+n,w="passingSchemas"+n;i+="var "+p+" = errors , "+v+" = false , "+f+" = false , "+w+" = null; ";var x=e.compositeRule;e.compositeRule=h.compositeRule=!0;var F=o;if(F)for(var A,q=-1,L=F.length-1;q<L;)A=F[q+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(h.schema=A,h.schemaPath=l+"["+q+"]",h.errSchemaPath=d+"/"+q,i+=" "+e.validate(h)+" ",h.baseId=g):i+=" var "+y+" = true; ",q&&(i+=" if ("+y+" && "+v+") { "+f+" = false; "+w+" = ["+w+", "+q+"]; } else { ",m+="}"),i+=" if ("+y+") { "+f+" = "+v+" = true; "+w+" = "+q+"; }";return e.compositeRule=h.compositeRule=x,i+=""+m+"if (!"+f+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+w+" } ",e.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(i+=" } "),i}});var fc=K((Ax,pc)=>{"use strict";pc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=f?"(new RegExp("+p+"))":e.usePattern(o);i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" !"+h+".test("+c+") ) { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",f?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,f?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var y=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var mc=K((Ex,hc)=>{"use strict";hc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level,y="key"+n,g="idx"+n,v=p.dataLevel=e.dataLevel+1,w="data"+v,x="dataProperties"+n,F=Object.keys(o||{}).filter(V),A=e.schema.patternProperties||{},q=Object.keys(A).filter(V),L=e.schema.additionalProperties,P=F.length||q.length,B=L===!1,N=typeof L=="object"&&Object.keys(L).length,R=e.opts.removeAdditional,$=B||N||R,E=e.opts.ownProperties,k=e.baseId,Q=e.schema.required;if(Q&&!(e.opts.$data&&Q.$data)&&Q.length<e.opts.loopRequired)var H=e.util.toHash(Q);function V(Mt){return Mt!=="__proto__"}if(i+="var "+f+" = errors;var "+m+" = true;",E&&(i+=" var "+x+" = undefined;"),$){if(E?i+=" "+x+" = "+x+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+x+".length; "+g+"++) { var "+y+" = "+x+"["+g+"]; ":i+=" for (var "+y+" in "+c+") { ",P){if(i+=" var isAdditional"+n+" = !(false ",F.length)if(F.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var Z=F;if(Z)for(var z,ne=-1,Re=Z.length-1;ne<Re;)z=Z[ne+=1],i+=" || "+y+" == "+e.util.toQuotedString(z)+" "}if(q.length){var _e=q;if(_e)for(var te,ge=-1,Te=_e.length-1;ge<Te;)te=_e[ge+=1],i+=" || "+e.usePattern(te)+".test("+y+") "}i+=" ); if (isAdditional"+n+") { "}if(R=="all")i+=" delete "+c+"["+y+"]; ";else{var ke=e.errorPath,xt="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),B)if(R)i+=" delete "+c+"["+y+"]; ";else{i+=" "+m+" = false; ";var it=d;d=e.errSchemaPath+"/additionalProperties";var Fe=Fe||[];Fe.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+xt+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Se=i;i=Fe.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Se+"]); ":i+=" validate.errors = ["+Se+"]; return false; ":i+=" var err = "+Se+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=it,u&&(i+=" break; ")}else if(N)if(R=="failing"){i+=" var "+f+" = errors; ";var Tt=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=c+"["+y+"]";p.dataPathArr[v]=y;var pe=e.validate(p);p.baseId=k,e.util.varOccurences(pe,w)<2?i+=" "+e.util.varReplace(pe,w,He)+" ":i+=" var "+w+" = "+He+"; "+pe+" ",i+=" if (!"+m+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+y+"]; } ",e.compositeRule=p.compositeRule=Tt}else{p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=c+"["+y+"]";p.dataPathArr[v]=y;var pe=e.validate(p);p.baseId=k,e.util.varOccurences(pe,w)<2?i+=" "+e.util.varReplace(pe,w,He)+" ":i+=" var "+w+" = "+He+"; "+pe+" ",u&&(i+=" if (!"+m+") break; ")}e.errorPath=ke}P&&(i+=" } "),i+=" } ",u&&(i+=" if ("+m+") { ",h+="}")}var pr=e.opts.useDefaults&&!e.compositeRule;if(F.length){var Kt=F;if(Kt)for(var z,Mr=-1,$r=Kt.length-1;Mr<$r;){z=Kt[Mr+=1];var Ke=o[z];if(e.opts.strictKeywords?typeof Ke=="object"&&Object.keys(Ke).length>0||Ke===!1:e.util.schemaHasRules(Ke,e.RULES.all)){var Ft=e.util.getProperty(z),He=c+Ft,at=pr&&Ke.default!==void 0;p.schema=Ke,p.schemaPath=l+Ft,p.errSchemaPath=d+"/"+e.util.escapeFragment(z),p.errorPath=e.util.getPath(e.errorPath,z,e.opts.jsonPointers),p.dataPathArr[v]=e.util.toQuotedString(z);var pe=e.validate(p);if(p.baseId=k,e.util.varOccurences(pe,w)<2){pe=e.util.varReplace(pe,w,He);var tt=He}else{var tt=w;i+=" var "+w+" = "+He+"; "}if(at)i+=" "+pe+" ";else{if(H&&H[z]){i+=" if ( "+tt+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+m+" = false; ";var ke=e.errorPath,it=d,Ut=e.util.escapeQuotes(z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(ke,z,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Fe=Fe||[];Fe.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+Ut+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+Ut+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Se=i;i=Fe.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Se+"]); ":i+=" validate.errors = ["+Se+"]; return false; ":i+=" var err = "+Se+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=it,e.errorPath=ke,i+=" } else { "}else u?(i+=" if ( "+tt+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+m+" = true; } else { "):(i+=" if ("+tt+" !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=" ) { ");i+=" "+pe+" } "}}u&&(i+=" if ("+m+") { ",h+="}")}}if(q.length){var ft=q;if(ft)for(var te,la=-1,En=ft.length-1;la<En;){te=ft[la+=1];var Ke=A[te];if(e.opts.strictKeywords?typeof Ke=="object"&&Object.keys(Ke).length>0||Ke===!1:e.util.schemaHasRules(Ke,e.RULES.all)){p.schema=Ke,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(te),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(te),E?i+=" "+x+" = "+x+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+x+".length; "+g+"++) { var "+y+" = "+x+"["+g+"]; ":i+=" for (var "+y+" in "+c+") { ",i+=" if ("+e.usePattern(te)+".test("+y+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=c+"["+y+"]";p.dataPathArr[v]=y;var pe=e.validate(p);p.baseId=k,e.util.varOccurences(pe,w)<2?i+=" "+e.util.varReplace(pe,w,He)+" ":i+=" var "+w+" = "+He+"; "+pe+" ",u&&(i+=" if (!"+m+") break; "),i+=" } ",u&&(i+=" else "+m+" = true; "),i+=" } ",u&&(i+=" if ("+m+") { ",h+="}")}}}return u&&(i+=" "+h+" if ("+f+" == errors) {"),i}});var gc=K((Lx,yc)=>{"use strict";yc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level;if(i+="var "+f+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d;var y="key"+n,g="idx"+n,v="i"+n,w="' + "+y+" + '",x=p.dataLevel=e.dataLevel+1,F="data"+x,A="dataProperties"+n,q=e.opts.ownProperties,L=e.baseId;q&&(i+=" var "+A+" = undefined; "),q?i+=" "+A+" = "+A+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+A+".length; "+g+"++) { var "+y+" = "+A+"["+g+"]; ":i+=" for (var "+y+" in "+c+") { ",i+=" var startErrs"+n+" = errors; ";var P=y,B=e.compositeRule;e.compositeRule=p.compositeRule=!0;var N=e.validate(p);p.baseId=L,e.util.varOccurences(N,F)<2?i+=" "+e.util.varReplace(N,F,P)+" ":i+=" var "+F+" = "+P+"; "+N+" ",e.compositeRule=p.compositeRule=B,i+=" if (!"+m+") { for (var "+v+"=startErrs"+n+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+w+"' } ",e.opts.messages!==!1&&(i+=" , message: 'property name \\'"+w+"\\' is invalid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),u&&(i+=" break; "),i+=" } }"}return u&&(i+=" "+h+" if ("+f+" == errors) {"),i}});var vc=K((Dx,bc)=>{"use strict";bc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var m="schema"+n;if(!p)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],g=o;if(g)for(var v,w=-1,x=g.length-1;w<x;){v=g[w+=1];var F=e.schema.properties[v];F&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all))||(y[y.length]=v)}}else var y=o;if(p||y.length){var A=e.errorPath,q=p||y.length>=e.opts.loopRequired,L=e.opts.ownProperties;if(u)if(i+=" var missing"+n+"; ",q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var P="i"+n,B="schema"+n+"["+P+"]",N="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,B,e.opts.jsonPointers)),i+=" var "+f+" = true; ",p&&(i+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),i+=" for (var "+P+" = 0; "+P+" < "+m+".length; "+P+"++) { "+f+" = "+c+"["+m+"["+P+"]] !== undefined ",L&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", "+m+"["+P+"]) "),i+="; if (!"+f+") break; } ",p&&(i+=" } "),i+=" if (!"+f+") { ";var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var $=i;i=R.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+$+"]); ":i+=" validate.errors = ["+$+"]; return false; ":i+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var E=y;if(E)for(var k,P=-1,Q=E.length-1;P<Q;){k=E[P+=1],P&&(i+=" || ");var H=e.util.getProperty(k),V=c+H;i+=" ( ( "+V+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(k)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:H)+") ) "}i+=") { ";var B="missing"+n,N="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,B,!0):A+" + "+B);var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var $=i;i=R.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+$+"]); ":i+=" validate.errors = ["+$+"]; return false; ":i+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var P="i"+n,B="schema"+n+"["+P+"]",N="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,B,e.opts.jsonPointers)),p&&(i+=" if ("+m+" && !Array.isArray("+m+")) { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+m+" !== undefined) { "),i+=" for (var "+P+" = 0; "+P+" < "+m+".length; "+P+"++) { if ("+c+"["+m+"["+P+"]] === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+m+"["+P+"]) "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(i+=" } ")}else{var Z=y;if(Z)for(var k,z=-1,ne=Z.length-1;z<ne;){k=Z[z+=1];var H=e.util.getProperty(k),N=e.util.escapeQuotes(k),V=c+H;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,k,e.opts.jsonPointers)),i+=" if ( "+V+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(k)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=A}else u&&(i+=" if (true) {");return i}});var wc=K((Nx,Sc)=>{"use strict";Sc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;if(p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,(o||p)&&e.opts.uniqueItems!==!1){p&&(i+=" var "+f+"; if ("+h+" === false || "+h+" === undefined) "+f+" = true; else if (typeof "+h+" != 'boolean') "+f+" = false; else { "),i+=" var i = "+c+".length , "+f+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,y=Array.isArray(m);if(!m||m=="object"||m=="array"||y&&(m.indexOf("object")>=0||m.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+f+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var g="checkDataType"+(y?"s":"");i+=" if ("+e.util[g](m,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+f+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",p?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var w=i;i=v.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+w+"]); ":i+=" validate.errors = ["+w+"]; return false; ":i+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i}});var xc=K((Bx,Cc)=>{"use strict";Cc.exports={$ref:Mu(),allOf:qu(),anyOf:ku(),$comment:Wu(),const:_u(),contains:Uu(),dependencies:Gu(),enum:Zu(),format:Ju(),if:Xu(),items:tc(),maximum:Ws(),minimum:Ws(),maxItems:Vs(),minItems:Vs(),maxLength:_s(),minLength:_s(),maxProperties:zs(),minProperties:zs(),multipleOf:oc(),not:dc(),oneOf:cc(),pattern:fc(),properties:mc(),propertyNames:gc(),required:vc(),uniqueItems:wc(),validate:ks()}});var Ic=K((Mx,Fc)=>{"use strict";var Tc=xc(),Us=Gr().toHash;Fc.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return e.all=Us(r),e.types=Us(i),e.forEach(function(n){n.rules=n.rules.map(function(s){var o;if(typeof s=="object"){var l=Object.keys(s)[0];o=s[l],s=l,o.forEach(function(u){r.push(u),e.all[u]=!0})}r.push(s);var d=e.all[s]={keyword:s,code:Tc[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:Tc.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=Us(r.concat(a)),e.custom={},e}});var Ac=K(($x,Pc)=>{"use strict";var Oc=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Pc.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var a=e[r].split("/"),i=t,n;for(n=1;n<a.length;n++)i=i[a[n]];for(n=0;n<Oc.length;n++){var s=Oc[n],o=i[s];o&&(i[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var Dc=K((qx,Lc)=>{"use strict";var Sg=rn().MissingRef;Lc.exports=Ec;function Ec(t,e,r){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var i=n(t).then(function(){var o=a._addSchema(t,void 0,e);return o.validate||s(o)});return r&&i.then(function(o){r(null,o)},r),i;function n(o){var l=o.$schema;return l&&!a.getSchema(l)?Ec.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof Sg)return l(d);throw d}function l(d){var u=d.missingSchema;if(p(u))throw new Error("Schema "+u+" is loaded but "+d.missingRef+" cannot be resolved");var c=a._loadingSchemas[u];return c||(c=a._loadingSchemas[u]=a._opts.loadSchema(u),c.then(f,f)),c.then(function(h){if(!p(u))return n(h).then(function(){p(u)||a.addSchema(h,u,void 0,e)})}).then(function(){return s(o)});function f(){delete a._loadingSchemas[u]}function p(h){return a._refs[h]||a._schemas[h]}}}}});var Bc=K((Rx,Nc)=>{"use strict";Nc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c,f="data"+(s||""),p="valid"+n,h="errs__"+n,m=e.opts.$data&&o&&o.$data,y;m?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",y="schema"+n):y=o;var g=this,v="definition"+n,w=g.definition,x="",F,A,q,L,P;if(m&&w.$data){P="keywordValidate"+n;var B=w.validateSchema;i+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+P+" = "+v+".validate;"}else{if(L=e.useCustomRule(g,o,e.schema,e),!L)return;y="validate.schema"+l,P=L.code,F=w.compile,A=w.inline,q=w.macro}var N=P+".errors",R="i"+n,$="ruleErr"+n,E=w.async;if(E&&!e.async)throw new Error("async keyword in sync schema");if(A||q||(i+=""+N+" = null;"),i+="var "+h+" = errors;var "+p+";",m&&w.$data&&(x+="}",i+=" if ("+y+" === undefined) { "+p+" = true; } else { ",B&&(x+="}",i+=" "+p+" = "+v+".validateSchema("+y+"); if ("+p+") { ")),A)w.statements?i+=" "+L.validate+" ":i+=" "+p+" = "+L.validate+"; ";else if(q){var k=e.util.copy(e),x="";k.level++;var Q="valid"+k.level;k.schema=L.validate,k.schemaPath="";var H=e.compositeRule;e.compositeRule=k.compositeRule=!0;var V=e.validate(k).replace(/validate\.schema/g,P);e.compositeRule=k.compositeRule=H,i+=" "+V}else{var Z=Z||[];Z.push(i),i="",i+=" "+P+".call( ",e.opts.passContext?i+="this":i+="self",F||w.schema===!1?i+=" , "+f+" ":i+=" , "+y+" , "+f+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var z=s?"data"+(s-1||""):"parentData",ne=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+z+" , "+ne+" , rootData ) ";var Re=i;i=Z.pop(),w.errors===!1?(i+=" "+p+" = ",E&&(i+="await "),i+=""+Re+"; "):E?(N="customErrors"+n,i+=" var "+N+" = null; try { "+p+" = await "+Re+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+N+" = e.errors; else throw e; } "):i+=" "+N+" = null; "+p+" = "+Re+"; "}if(w.modifying&&(i+=" if ("+z+") "+f+" = "+z+"["+ne+"];"),i+=""+x,w.valid)u&&(i+=" if (true) { ");else{i+=" if ( ",w.valid===void 0?(i+=" !",q?i+=""+Q:i+=""+p):i+=" "+!w.valid+" ",i+=") { ",c=g.keyword;var Z=Z||[];Z.push(i),i="";var Z=Z||[];Z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+g.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var _e=i;i=Z.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+_e+"]); ":i+=" validate.errors = ["+_e+"]; return false; ":i+=" var err = "+_e+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var te=i;i=Z.pop(),A?w.errors?w.errors!="full"&&(i+=" for (var "+R+"="+h+"; "+R+"<errors; "+R+"++) { var "+$+" = vErrors["+R+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+f+"; "),i+=" } "):w.errors===!1?i+=" "+te+" ":(i+=" if ("+h+" == errors) { "+te+" } else { for (var "+R+"="+h+"; "+R+"<errors; "+R+"++) { var "+$+" = vErrors["+R+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+f+"; "),i+=" } } "):q?(i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+g.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):w.errors===!1?i+=" "+te+" ":(i+=" if (Array.isArray("+N+")) { if (vErrors === null) vErrors = "+N+"; else vErrors = vErrors.concat("+N+"); errors = vErrors.length; for (var "+R+"="+h+"; "+R+"<errors; "+R+"++) { var "+$+" = vErrors["+R+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; "+$+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+f+"; "),i+=" } } else { "+te+" } "),i+=" } ",u&&(i+=" else { ")}return i}});var Hs=K((kx,wg)=>{wg.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var qc=K((jx,$c)=>{"use strict";var Mc=Hs();$c.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Mc.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Mc.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var kc=K((Wx,Rc)=>{"use strict";var Cg=/^[a-z_$][a-z0-9_$-]*$/i,xg=Bc(),Tg=qc();Rc.exports={add:Fg,get:Ig,remove:Og,validate:Gs};function Fg(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Cg.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var i=0;i<a.length;i++)s(t,a[i],e);else s(t,a,e);var n=e.metaSchema;n&&(e.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(n,!0))}r.keywords[t]=r.all[t]=!0;function s(o,l,d){for(var u,c=0;c<r.length;c++){var f=r[c];if(f.type==l){u=f;break}}u||(u={type:l,rules:[]},r.push(u));var p={keyword:o,definition:d,custom:!0,code:xg,implements:d.implements};u.rules.push(p),r.custom[o]=p}return this}function Ig(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function Og(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var a=e[r].rules,i=0;i<a.length;i++)if(a[i].keyword==t){a.splice(i,1);break}return this}function Gs(t,e){Gs.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Tg,!0);if(r(t))return!0;if(Gs.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var jc=K((Vx,Pg)=>{Pg.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Kc=K((_x,Zc)=>{"use strict";var Vc=vu(),Qr=tn(),Ag=wu(),_c=Ds(),Eg=Rs(),Lg=Nu(),Dg=Ic(),zc=Ac(),Uc=Gr();Zc.exports=$e;$e.prototype.validate=Bg;$e.prototype.compile=Mg;$e.prototype.addSchema=$g;$e.prototype.addMetaSchema=qg;$e.prototype.validateSchema=Rg;$e.prototype.getSchema=jg;$e.prototype.removeSchema=Vg;$e.prototype.addFormat=Kg;$e.prototype.errorsText=Zg;$e.prototype._addSchema=_g;$e.prototype._compile=zg;$e.prototype.compileAsync=Dc();var cn=kc();$e.prototype.addKeyword=cn.add;$e.prototype.getKeyword=cn.get;$e.prototype.removeKeyword=cn.remove;$e.prototype.validateKeyword=cn.validate;var Hc=rn();$e.ValidationError=Hc.Validation;$e.MissingRefError=Hc.MissingRef;$e.$dataMetaSchema=zc;var un="http://json-schema.org/draft-07/schema",Wc=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Ng=["/properties"];function $e(t){if(!(this instanceof $e))return new $e(t);t=this._opts=Uc.copy(t)||{},rb(this),this._schemas={},this._refs={},this._fragments={},this._formats=Lg(t.format),this._cache=t.cache||new Ag,this._loadingSchemas={},this._compilations=[],this.RULES=Dg(),this._getId=Ug(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=Eg),this._metaOpts=tb(this),t.formats&&Xg(this),t.keywords&&eb(this),Jg(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),Yg(this)}function Bg(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var a=this._addSchema(t);r=a.validate||this._compile(a)}var i=r(e);return r.$async!==!0&&(this.errors=r.errors),i}function Mg(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function $g(t,e,r,a){if(Array.isArray(t)){for(var i=0;i<t.length;i++)this.addSchema(t[i],void 0,r,a);return this}var n=this._getId(t);if(n!==void 0&&typeof n!="string")throw new Error("schema id must be string");return e=Qr.normalizeId(e||n),Qc(this,e),this._schemas[e]=this._addSchema(t,r,a,!0),this}function qg(t,e,r){return this.addSchema(t,e,r,!0),this}function Rg(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||kg(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(r,t);if(!a&&e){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return a}function kg(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(un)?un:void 0,t._opts.defaultMeta}function jg(t){var e=Gc(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return Wg(this,t)}}function Wg(t,e){var r=Qr.schema.call(t,{schema:{}},e);if(r){var a=r.schema,i=r.root,n=r.baseId,s=Vc.call(t,a,i,void 0,n);return t._fragments[e]=new _c({ref:e,fragment:!0,schema:a,root:i,baseId:n,validate:s}),s}}function Gc(t,e){return e=Qr.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function Vg(t){if(t instanceof RegExp)return dn(this,this._schemas,t),dn(this,this._refs,t),this;switch(typeof t){case"undefined":return dn(this,this._schemas),dn(this,this._refs),this._cache.clear(),this;case"string":var e=Gc(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,a=r?r(t):t;this._cache.del(a);var i=this._getId(t);i&&(i=Qr.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function dn(t,e,r){for(var a in e){var i=e[a];!i.meta&&(!r||r.test(a))&&(t._cache.del(i.cacheKey),delete e[a])}}function _g(t,e,r,a){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,n=i?i(t):t,s=this._cache.get(n);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var o=Qr.normalizeId(this._getId(t));o&&a&&Qc(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==Qr.normalizeId(t.$schema))&&this.validateSchema(t,!0);var u=Qr.ids.call(this,t),c=new _c({id:o,schema:t,localRefs:u,cacheKey:n,meta:r});return o[0]!="#"&&a&&(this._refs[o]=c),this._cache.put(n,c),l&&d&&this.validateSchema(t,!0),c}function zg(t,e){if(t.compiling)return t.validate=i,i.schema=t.schema,i.errors=null,i.root=e||i,t.schema.$async===!0&&(i.$async=!0),i;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var a;try{a=Vc.call(this,t.schema,e,t.localRefs)}catch(n){throw delete t.validate,n}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=a,t.refs=a.refs,t.refVal=a.refVal,t.root=a.root,a;function i(){var n=t.validate,s=n.apply(this,arguments);return i.errors=n.errors,s}}function Ug(t){switch(t.schemaId){case"auto":return Qg;case"id":return Hg;default:return Gg}}function Hg(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function Gg(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function Qg(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function Zg(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,a=e.dataVar===void 0?"data":e.dataVar,i="",n=0;n<t.length;n++){var s=t[n];s&&(i+=a+s.dataPath+" "+s.message+r)}return i.slice(0,-r.length)}function Kg(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function Jg(t){var e;if(t._opts.$data&&(e=jc(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=Hs();t._opts.$data&&(r=zc(r,Ng)),t.addMetaSchema(r,un,!0),t._refs["http://json-schema.org/schema"]=un}}function Yg(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function Xg(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function eb(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function Qc(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function tb(t){for(var e=Uc.copy(t._opts),r=0;r<Wc.length;r++)delete e[Wc[r]];return e}function rb(t){var e=t._opts.logger;if(e===!1)t.logger={log:Qs,warn:Qs,error:Qs};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function Qs(){}});var rr=class extends Error{},Un=class extends rr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},Hn=class extends rr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},Gn=class extends rr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},br=class extends rr{},Ca=class extends rr{constructor(e){super(`Invalid unit ${e}`)}},Qe=class extends rr{},Qt=class extends rr{constructor(){super("Zone is an abstract class")}},W="numeric",kt="short",wt="long",xa={year:W,month:W,day:W},Cl={year:W,month:kt,day:W},Af={year:W,month:kt,day:W,weekday:kt},xl={year:W,month:wt,day:W},Tl={year:W,month:wt,day:W,weekday:wt},Fl={hour:W,minute:W},Il={hour:W,minute:W,second:W},Ol={hour:W,minute:W,second:W,timeZoneName:kt},Pl={hour:W,minute:W,second:W,timeZoneName:wt},Al={hour:W,minute:W,hourCycle:"h23"},El={hour:W,minute:W,second:W,hourCycle:"h23"},Ll={hour:W,minute:W,second:W,hourCycle:"h23",timeZoneName:kt},Dl={hour:W,minute:W,second:W,hourCycle:"h23",timeZoneName:wt},Nl={year:W,month:W,day:W,hour:W,minute:W},Bl={year:W,month:W,day:W,hour:W,minute:W,second:W},Ml={year:W,month:kt,day:W,hour:W,minute:W},$l={year:W,month:kt,day:W,hour:W,minute:W,second:W},Ef={year:W,month:kt,day:W,weekday:kt,hour:W,minute:W},ql={year:W,month:wt,day:W,hour:W,minute:W,timeZoneName:kt},Rl={year:W,month:wt,day:W,hour:W,minute:W,second:W,timeZoneName:kt},kl={year:W,month:wt,day:W,weekday:wt,hour:W,minute:W,timeZoneName:wt},jl={year:W,month:wt,day:W,weekday:wt,hour:W,minute:W,second:W,timeZoneName:wt},Ur=class{get type(){throw new Qt}get name(){throw new Qt}get ianaName(){return this.name}get isUniversal(){throw new Qt}offsetName(e,r){throw new Qt}formatOffset(e,r){throw new Qt}offset(e){throw new Qt}equals(e){throw new Qt}get isValid(){throw new Qt}},$n=null,Ta=class t extends Ur{static get instance(){return $n===null&&($n=new t),$n}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return Jl(e,r,a)}formatOffset(e,r){return zi(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},Qn=new Map;function Lf(t){let e=Qn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Qn.set(t,e)),e}var Df={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Nf(t,e){let r=t.format(e).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,n,s,o,l,d,u]=a;return[s,i,n,o,l,d,u]}function Bf(t,e){let r=t.formatToParts(e),a=[];for(let i=0;i<r.length;i++){let{type:n,value:s}=r[i],o=Df[n];n==="era"?a[o]=s:J(o)||(a[o]=parseInt(s,10))}return a}var qn=new Map,Sr=class t extends Ur{static create(e){let r=qn.get(e);return r===void 0&&qn.set(e,r=new t(e)),r}static resetCache(){qn.clear(),Qn.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return Jl(e,r,a,this.name)}formatOffset(e,r){return zi(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let a=Lf(this.name),[i,n,s,o,l,d,u]=a.formatToParts?Bf(a,r):Nf(a,r);o==="BC"&&(i=-Math.abs(i)+1);let f=Ea({year:i,month:n,day:s,hour:l===24?0:l,minute:d,second:u,millisecond:0}),p=+r,h=p%1e3;return p-=h>=0?h:1e3+h,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},Ho={};function Mf(t,e={}){let r=JSON.stringify([t,e]),a=Ho[r];return a||(a=new Intl.ListFormat(t,e),Ho[r]=a),a}var Zn=new Map;function Kn(t,e={}){let r=JSON.stringify([t,e]),a=Zn.get(r);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),Zn.set(r,a)),a}var Jn=new Map;function $f(t,e={}){let r=JSON.stringify([t,e]),a=Jn.get(r);return a===void 0&&(a=new Intl.NumberFormat(t,e),Jn.set(r,a)),a}var Yn=new Map;function qf(t,e={}){let{base:r,...a}=e,i=JSON.stringify([t,a]),n=Yn.get(i);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),Yn.set(i,n)),n}var Wi=null;function Rf(){return Wi||(Wi=new Intl.DateTimeFormat().resolvedOptions().locale,Wi)}var Xn=new Map;function Wl(t){let e=Xn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Xn.set(t,e)),e}var es=new Map;function kf(t){let e=es.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Vl,...e}),es.set(t,e)}return e}function jf(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let a,i;try{a=Kn(t).resolvedOptions(),i=t}catch{let l=t.substring(0,r);a=Kn(l).resolvedOptions(),i=l}let{numberingSystem:n,calendar:s}=a;return[i,n,s]}}function Wf(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Vf(t){let e=[];for(let r=1;r<=12;r++){let a=ae.utc(2009,r,1);e.push(t(a))}return e}function _f(t){let e=[];for(let r=1;r<=7;r++){let a=ae.utc(2016,11,13+r);e.push(t(a))}return e}function ma(t,e,r,a){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):a(e)}function zf(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Wl(t.locale).numberingSystem==="latn"}var ts=class{constructor(e,r,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:i,floor:n,...s}=a;if(!r||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=$f(e,o)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):fs(e,3);return Ve(r,this.padTo)}}},rs=class{constructor(e,r,a){this.opts=a,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&Sr.create(o).valid?(i=o,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||i,this.dtf=Kn(r,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:a}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},is=class{constructor(e,r,a){this.opts={style:"long",...a},!r&&Zl()&&(this.rtf=qf(e,a))}format(e,r){return this.rtf?this.rtf.format(e,r):ch(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},Vl={firstDay:1,minimalDays:4,weekend:[6,7]},xe=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,a,i,n=!1){let s=e||Ae.defaultLocale,o=s||(n?"en-US":Rf()),l=r||Ae.defaultNumberingSystem,d=a||Ae.defaultOutputCalendar,u=ss(i)||Ae.defaultWeekSettings;return new t(o,l,d,u,s)}static resetCache(){Wi=null,Zn.clear(),Jn.clear(),Yn.clear(),Xn.clear(),es.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:a,weekSettings:i}={}){return t.create(e,r,a,i)}constructor(e,r,a,i,n){let[s,o,l]=jf(e);this.locale=s,this.numberingSystem=r||o||null,this.outputCalendar=a||l||null,this.weekSettings=i,this.intl=Wf(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=zf(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,ss(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return ma(this,e,ed,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");r&=!a;let i=r?{month:e,day:"numeric"}:{month:e},n=r?"format":"standalone";if(!this.monthsCache[n][e]){let s=a?o=>this.dtFormatter(o,i).format():o=>this.extract(o,i,"month");this.monthsCache[n][e]=Vf(s)}return this.monthsCache[n][e]})}weekdays(e,r=!1){return ma(this,e,id,()=>{let a=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=_f(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return ma(this,void 0,()=>ad,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ae.utc(2016,11,13,9),ae.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ma(this,e,nd,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[ae.utc(-40,1,1),ae.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,r,a){let i=this.dtFormatter(e,r),n=i.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new ts(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new rs(e,this.intl,r)}relFormatter(e={}){return new is(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Mf(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Wl(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Kl()?kf(this.locale):Vl}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Rn=null,Dt=class t extends Ur{static get utcInstance(){return Rn===null&&(Rn=new t(0)),Rn}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(La(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${zi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${zi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return zi(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},as=class extends Ur{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function gr(t,e){if(J(t)||t===null)return e;if(t instanceof Ur)return t;if(Kf(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Ta.instance:r==="utc"||r==="gmt"?Dt.utcInstance:Dt.parseSpecifier(r)||Sr.create(t)}else return vr(t)?Dt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new as(t)}var ds={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Go={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Uf=ds.hanidec.replace(/[\[|\]]/g,"").split("");function Hf(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let a=t.charCodeAt(r);if(t[r].search(ds.hanidec)!==-1)e+=Uf.indexOf(t[r]);else for(let i in Go){let[n,s]=Go[i];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var ns=new Map;function Gf(){ns.clear()}function qt({numberingSystem:t},e=""){let r=t||"latn",a=ns.get(r);a===void 0&&(a=new Map,ns.set(r,a));let i=a.get(e);return i===void 0&&(i=new RegExp(`${ds[r]}${e}`),a.set(e,i)),i}var Qo=()=>Date.now(),Zo="system",Ko=null,Jo=null,Yo=null,Xo=60,el,tl=null,Ae=class{static get now(){return Qo}static set now(e){Qo=e}static set defaultZone(e){Zo=e}static get defaultZone(){return gr(Zo,Ta.instance)}static get defaultLocale(){return Ko}static set defaultLocale(e){Ko=e}static get defaultNumberingSystem(){return Jo}static set defaultNumberingSystem(e){Jo=e}static get defaultOutputCalendar(){return Yo}static set defaultOutputCalendar(e){Yo=e}static get defaultWeekSettings(){return tl}static set defaultWeekSettings(e){tl=ss(e)}static get twoDigitCutoffYear(){return Xo}static set twoDigitCutoffYear(e){Xo=e%100}static get throwOnInvalid(){return el}static set throwOnInvalid(e){el=e}static resetCaches(){xe.resetCache(),Sr.resetCache(),ae.resetCache(),Gf()}},St=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},_l=[0,31,59,90,120,151,181,212,243,273,304,334],zl=[0,31,60,91,121,152,182,213,244,274,305,335];function Et(t,e){return new St("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function us(t,e,r){let a=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let i=a.getUTCDay();return i===0?7:i}function Ul(t,e,r){return r+(Hi(t)?zl:_l)[e-1]}function Hl(t,e){let r=Hi(t)?zl:_l,a=r.findIndex(n=>n<e),i=e-r[a];return{month:a+1,day:i}}function cs(t,e){return(t-e+7)%7+1}function Fa(t,e=4,r=1){let{year:a,month:i,day:n}=t,s=Ul(a,i,n),o=cs(us(a,i,n),r),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=Ui(d,e,r)):l>Ui(a,e,r)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...Da(t)}}function rl(t,e=4,r=1){let{weekYear:a,weekNumber:i,weekday:n}=t,s=cs(us(a,1,e),r),o=pi(a),l=i*7+n-s-7+e,d;l<1?(d=a-1,l+=pi(d)):l>o?(d=a+1,l-=pi(a)):d=a;let{month:u,day:c}=Hl(d,l);return{year:d,month:u,day:c,...Da(t)}}function kn(t){let{year:e,month:r,day:a}=t,i=Ul(e,r,a);return{year:e,ordinal:i,...Da(t)}}function il(t){let{year:e,ordinal:r}=t,{month:a,day:i}=Hl(e,r);return{year:e,month:a,day:i,...Da(t)}}function al(t,e){if(!J(t.localWeekday)||!J(t.localWeekNumber)||!J(t.localWeekYear)){if(!J(t.weekday)||!J(t.weekNumber)||!J(t.weekYear))throw new br("Cannot mix locale-based week fields with ISO-based week fields");return J(t.localWeekday)||(t.weekday=t.localWeekday),J(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),J(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Qf(t,e=4,r=1){let a=Aa(t.weekYear),i=Lt(t.weekNumber,1,Ui(t.weekYear,e,r)),n=Lt(t.weekday,1,7);return a?i?n?!1:Et("weekday",t.weekday):Et("week",t.weekNumber):Et("weekYear",t.weekYear)}function Zf(t){let e=Aa(t.year),r=Lt(t.ordinal,1,pi(t.year));return e?r?!1:Et("ordinal",t.ordinal):Et("year",t.year)}function Gl(t){let e=Aa(t.year),r=Lt(t.month,1,12),a=Lt(t.day,1,Ia(t.year,t.month));return e?r?a?!1:Et("day",t.day):Et("month",t.month):Et("year",t.year)}function Ql(t){let{hour:e,minute:r,second:a,millisecond:i}=t,n=Lt(e,0,23)||e===24&&r===0&&a===0&&i===0,s=Lt(r,0,59),o=Lt(a,0,59),l=Lt(i,0,999);return n?s?o?l?!1:Et("millisecond",i):Et("second",a):Et("minute",r):Et("hour",e)}function J(t){return typeof t>"u"}function vr(t){return typeof t=="number"}function Aa(t){return typeof t=="number"&&t%1===0}function Kf(t){return typeof t=="string"}function Jf(t){return Object.prototype.toString.call(t)==="[object Date]"}function Zl(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Kl(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Yf(t){return Array.isArray(t)?t:[t]}function nl(t,e,r){if(t.length!==0)return t.reduce((a,i)=>{let n=[e(i),i];return a&&r(a[0],n[0])===a[0]?a:n},null)[1]}function Xf(t,e){return e.reduce((r,a)=>(r[a]=t[a],r),{})}function mi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ss(t){if(t==null)return null;if(typeof t!="object")throw new Qe("Week settings must be an object");if(!Lt(t.firstDay,1,7)||!Lt(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Lt(e,1,7)))throw new Qe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Lt(t,e,r){return Aa(t)&&t>=e&&t<=r}function eh(t,e){return t-e*Math.floor(t/e)}function Ve(t,e=2){let r=t<0,a;return r?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function yr(t){if(!(J(t)||t===null||t===""))return parseInt(t,10)}function Vr(t){if(!(J(t)||t===null||t===""))return parseFloat(t)}function ps(t){if(!(J(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function fs(t,e,r="round"){let a=10**e;switch(r){case"expand":return t>0?Math.ceil(t*a)/a:Math.floor(t*a)/a;case"trunc":return Math.trunc(t*a)/a;case"round":return Math.round(t*a)/a;case"floor":return Math.floor(t*a)/a;case"ceil":return Math.ceil(t*a)/a;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function Hi(t){return t%4===0&&(t%100!==0||t%400===0)}function pi(t){return Hi(t)?366:365}function Ia(t,e){let r=eh(e-1,12)+1,a=t+(e-r)/12;return r===2?Hi(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Ea(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function sl(t,e,r){return-cs(us(t,1,e),r)+e-1}function Ui(t,e=4,r=1){let a=sl(t,e,r),i=sl(t+1,e,r);return(pi(t)-a+i)/7}function os(t){return t>99?t:t>Ae.twoDigitCutoffYear?1900+t:2e3+t}function Jl(t,e,r,a=null){let i=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(n.timeZone=a);let s={timeZoneName:e,...n},o=new Intl.DateTimeFormat(r,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function La(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let a=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-a:a;return r*60+i}function Yl(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Qe(`Invalid unit value ${t}`);return e}function Oa(t,e){let r={};for(let a in t)if(mi(t,a)){let i=t[a];if(i==null)continue;r[e(a)]=Yl(i)}return r}function zi(t,e){let r=Math.trunc(Math.abs(t/60)),a=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${Ve(r,2)}:${Ve(a,2)}`;case"narrow":return`${i}${r}${a>0?`:${a}`:""}`;case"techie":return`${i}${Ve(r,2)}${Ve(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Da(t){return Xf(t,["hour","minute","second","millisecond"])}var th=["January","February","March","April","May","June","July","August","September","October","November","December"],Xl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rh=["J","F","M","A","M","J","J","A","S","O","N","D"];function ed(t){switch(t){case"narrow":return[...rh];case"short":return[...Xl];case"long":return[...th];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var td=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],rd=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ih=["M","T","W","T","F","S","S"];function id(t){switch(t){case"narrow":return[...ih];case"short":return[...rd];case"long":return[...td];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var ad=["AM","PM"],ah=["Before Christ","Anno Domini"],nh=["BC","AD"],sh=["B","A"];function nd(t){switch(t){case"narrow":return[...sh];case"short":return[...nh];case"long":return[...ah];default:return null}}function oh(t){return ad[t.hour<12?0:1]}function lh(t,e){return id(e)[t.weekday-1]}function dh(t,e){return ed(e)[t.month-1]}function uh(t,e){return nd(e)[t.year<0?0:1]}function ch(t,e,r="always",a=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&n){let c=t==="days";switch(e){case 1:return c?"tomorrow":`next ${i[t][0]}`;case-1:return c?"yesterday":`last ${i[t][0]}`;case 0:return c?"today":`this ${i[t][0]}`}}let s=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,d=i[t],u=a?l?d[1]:d[2]||d[1]:l?i[t][0]:t;return s?`${o} ${u} ago`:`in ${o} ${u}`}function ol(t,e){let r="";for(let a of t)a.literal?r+=a.val:r+=e(a.val);return r}var ph={D:xa,DD:Cl,DDD:xl,DDDD:Tl,t:Fl,tt:Il,ttt:Ol,tttt:Pl,T:Al,TT:El,TTT:Ll,TTTT:Dl,f:Nl,ff:Ml,fff:ql,ffff:kl,F:Bl,FF:$l,FFF:Rl,FFFF:jl},vt=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,a="",i=!1,n=[];for(let s=0;s<e.length;s++){let o=e.charAt(s);o==="'"?((a.length>0||i)&&n.push({literal:i||/^\s+$/.test(a),val:a===""?"'":a}),r=null,a="",i=!i):i||o===r?a+=o:(a.length>0&&n.push({literal:/^\s+$/.test(a),val:a}),a=o,r=o)}return a.length>0&&n.push({literal:i||/^\s+$/.test(a),val:a}),n}static macroTokenToFormatOpts(e){return ph[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,a=void 0){if(this.opts.forceSimple)return Ve(e,r);let i={...this.opts};return r>0&&(i.padTo=r),a&&(i.signDisplay=a),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){let a=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(p,h)=>this.loc.extract(e,p,h),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",o=()=>a?oh(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,h)=>a?dh(e,p):n(h?{month:p}:{month:p,day:"numeric"},"month"),d=(p,h)=>a?lh(e,p):n(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{let h=t.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(e,h):p},c=p=>a?uh(e,p):n({era:p},"era"),f=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return i?n({day:"numeric"},"day"):this.num(e.day);case"dd":return i?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?n({month:"numeric"},"month"):this.num(e.month);case"MM":return i?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?n({year:"numeric"},"year"):this.num(e.year);case"yy":return i?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(p)}};return ol(t.parseFormat(r),f)}formatDurationFromString(e,r){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,i=u=>{switch(u[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},n=(u,c)=>f=>{let p=i(f);if(p){let h=c.isNegativeDuration&&p!==c.largestUnit?a:1,m;return this.opts.signMode==="negativeLargestOnly"&&p!==c.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(u.get(p)*h,f.length,m)}else return f},s=t.parseFormat(r),o=s.reduce((u,{literal:c,val:f})=>c?u:u.concat(f),[]),l=e.shiftTo(...o.map(i).filter(u=>u)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return ol(s,n(l,d))}},sd=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function yi(...t){let e=t.reduce((r,a)=>r+a.source,"");return RegExp(`^${e}$`)}function gi(...t){return e=>t.reduce(([r,a,i],n)=>{let[s,o,l]=n(e,i);return[{...r,...s},o||a,l]},[{},null,1]).slice(0,2)}function bi(t,...e){if(t==null)return[null,null];for(let[r,a]of e){let i=r.exec(t);if(i)return a(i)}return[null,null]}function od(...t){return(e,r)=>{let a={},i;for(i=0;i<t.length;i++)a[t[i]]=yr(e[r+i]);return[a,null,r+i]}}var ld=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,fh=`(?:${ld.source}?(?:\\[(${sd.source})\\])?)?`,hs=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,dd=RegExp(`${hs.source}${fh}`),ms=RegExp(`(?:[Tt]${dd.source})?`),hh=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,mh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,yh=/(\d{4})-?(\d{3})/,gh=od("weekYear","weekNumber","weekDay"),bh=od("year","ordinal"),vh=/(\d{4})-(\d\d)-(\d\d)/,ud=RegExp(`${hs.source} ?(?:${ld.source}|(${sd.source}))?`),Sh=RegExp(`(?: ${ud.source})?`);function fi(t,e,r){let a=t[e];return J(a)?r:yr(a)}function wh(t,e){return[{year:fi(t,e),month:fi(t,e+1,1),day:fi(t,e+2,1)},null,e+3]}function vi(t,e){return[{hours:fi(t,e,0),minutes:fi(t,e+1,0),seconds:fi(t,e+2,0),milliseconds:ps(t[e+3])},null,e+4]}function Gi(t,e){let r=!t[e]&&!t[e+1],a=La(t[e+1],t[e+2]),i=r?null:Dt.instance(a);return[{},i,e+3]}function Qi(t,e){let r=t[e]?Sr.create(t[e]):null;return[{},r,e+1]}var Ch=RegExp(`^T?${hs.source}$`),xh=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Th(t){let[e,r,a,i,n,s,o,l,d]=t,u=e[0]==="-",c=l&&l[0]==="-",f=(p,h=!1)=>p!==void 0&&(h||p&&u)?-p:p;return[{years:f(Vr(r)),months:f(Vr(a)),weeks:f(Vr(i)),days:f(Vr(n)),hours:f(Vr(s)),minutes:f(Vr(o)),seconds:f(Vr(l),l==="-0"),milliseconds:f(ps(d),c)}]}var Fh={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ys(t,e,r,a,i,n,s){let o={year:e.length===2?os(yr(e)):yr(e),month:Xl.indexOf(r)+1,day:yr(a),hour:yr(i),minute:yr(n)};return s&&(o.second=yr(s)),t&&(o.weekday=t.length>3?td.indexOf(t)+1:rd.indexOf(t)+1),o}var Ih=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Oh(t){let[,e,r,a,i,n,s,o,l,d,u,c]=t,f=ys(e,i,a,r,n,s,o),p;return l?p=Fh[l]:d?p=0:p=La(u,c),[f,new Dt(p)]}function Ph(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Ah=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Eh=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Lh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ll(t){let[,e,r,a,i,n,s,o]=t;return[ys(e,i,a,r,n,s,o),Dt.utcInstance]}function Dh(t){let[,e,r,a,i,n,s,o]=t;return[ys(e,o,r,a,i,n,s),Dt.utcInstance]}var Nh=yi(hh,ms),Bh=yi(mh,ms),Mh=yi(yh,ms),$h=yi(dd),cd=gi(wh,vi,Gi,Qi),qh=gi(gh,vi,Gi,Qi),Rh=gi(bh,vi,Gi,Qi),kh=gi(vi,Gi,Qi);function jh(t){return bi(t,[Nh,cd],[Bh,qh],[Mh,Rh],[$h,kh])}function Wh(t){return bi(Ph(t),[Ih,Oh])}function Vh(t){return bi(t,[Ah,ll],[Eh,ll],[Lh,Dh])}function _h(t){return bi(t,[xh,Th])}var zh=gi(vi);function Uh(t){return bi(t,[Ch,zh])}var Hh=yi(vh,Sh),Gh=yi(ud),Qh=gi(vi,Gi,Qi);function Zh(t){return bi(t,[Hh,cd],[Gh,Qh])}var dl="Invalid Duration",pd={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Kh={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...pd},At=146097/400,li=146097/4800,Jh={years:{quarters:4,months:12,weeks:At/7,days:At,hours:At*24,minutes:At*24*60,seconds:At*24*60*60,milliseconds:At*24*60*60*1e3},quarters:{months:3,weeks:At/28,days:At/4,hours:At*24/4,minutes:At*24*60/4,seconds:At*24*60*60/4,milliseconds:At*24*60*60*1e3/4},months:{weeks:li/7,days:li,hours:li*24,minutes:li*24*60,seconds:li*24*60*60,milliseconds:li*24*60*60*1e3},...pd},zr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Yh=zr.slice(0).reverse();function tr(t,e,r=!1){let a={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ze(a)}function fd(t,e){let r=e.milliseconds??0;for(let a of Yh.slice(1))e[a]&&(r+=e[a]*t[a].milliseconds);return r}function ul(t,e){let r=fd(t,e)<0?-1:1;zr.reduceRight((a,i)=>{if(J(e[i]))return a;if(a){let n=e[a]*r,s=t[i][a],o=Math.floor(n/s);e[i]+=o*r,e[a]-=o*s*r}return i},null),zr.reduce((a,i)=>{if(J(e[i]))return a;if(a){let n=e[a]%1;e[a]-=n,e[i]+=n*t[a][i]}return i},null)}function cl(t){let e={};for(let[r,a]of Object.entries(t))a!==0&&(e[r]=a);return e}var Ze=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,a=r?Jh:Kh;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||xe.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Qe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:Oa(e,t.normalizeUnit),loc:xe.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(vr(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Qe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[a]=_h(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[a]=Uh(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Duration is invalid");let a=e instanceof St?e:new St(e,r);if(Ae.throwOnInvalid)throw new Gn(a);return new t({invalid:a})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new Ca(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let a={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?vt.create(this.loc,a).formatDurationFromString(this,e):dl}toHuman(e={}){if(!this.isValid)return dl;let r=e.showZeros!==!1,a=zr.map(i=>{let n=this.values[i];return J(n)||n===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(n)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=fs(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ae.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?fd(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),a={};for(let i of zr)(mi(r.values,i)||mi(this.values,i))&&(a[i]=r.get(i)+this.get(i));return tr(this,{values:a},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let a of Object.keys(this.values))r[a]=Yl(e(this.values[a],a));return tr(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...Oa(e,t.normalizeUnit)};return tr(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:a,matrix:i}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:a};return tr(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return ul(this.matrix,e),tr(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=cl(this.normalize().shiftToAll().toObject());return tr(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},a={},i=this.toObject(),n;for(let s of zr)if(e.indexOf(s)>=0){n=s;let o=0;for(let d in a)o+=this.matrix[d][s]*a[d],a[d]=0;vr(i[s])&&(o+=i[s]);let l=Math.trunc(o);r[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else vr(i[s])&&(a[s]=i[s]);for(let s in a)a[s]!==0&&(r[n]+=s===n?a[s]:a[s]/this.matrix[n][s]);return ul(this.matrix,r),tr(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return tr(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=cl(this.values);return tr(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(a,i){return a===void 0||a===0?i===void 0||i===0:a===i}for(let a of zr)if(!r(this.values[a],e.values[a]))return!1;return!0}},di="Invalid Interval";function Xh(t,e){return!t||!t.isValid?hi.invalid("missing or invalid start"):!e||!e.isValid?hi.invalid("missing or invalid end"):e<t?hi.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var hi=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Interval is invalid");let a=e instanceof St?e:new St(e,r);if(Ae.throwOnInvalid)throw new Hn(a);return new t({invalid:a})}static fromDateTimes(e,r){let a=ji(e),i=ji(r),n=Xh(a,i);return n??new t({start:a,end:i})}static after(e,r){let a=Ze.fromDurationLike(r),i=ji(e);return t.fromDateTimes(i,i.plus(a))}static before(e,r){let a=Ze.fromDurationLike(r),i=ji(e);return t.fromDateTimes(i.minus(a),i)}static fromISO(e,r){let[a,i]=(e||"").split("/",2);if(a&&i){let n,s;try{n=ae.fromISO(a,r),s=n.isValid}catch{s=!1}let o,l;try{o=ae.fromISO(i,r),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Ze.fromISO(i,r);if(d.isValid)return t.after(n,d)}else if(l){let d=Ze.fromISO(a,r);if(d.isValid)return t.before(o,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let a=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:a.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(a,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(ji).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:i}=this,n=0;for(;i<this.e;){let s=r[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(i,o)),i=o,n+=1}return a}splitBy(e){let r=Ze.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:a}=this,i=1,n,s=[];for(;a<this.e;){let o=this.start.plus(r.mapUnits(l=>l*i));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return r>=a?null:t.fromDateTimes(r,a)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,a)}static merge(e){let[r,a]=e.sort((i,n)=>i.s-n.s).reduce(([i,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[i,n.union(s)]:[i.concat([n]),s]:[i,s],[[],null]);return a&&r.push(a),r}static xor(e){let r=null,a=0,i=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?r=l.time:(r&&+r!=+l.time&&i.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:di}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=xa,r={}){return this.isValid?vt.create(this.s.loc.clone(r),e).formatInterval(this):di}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:di}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:di}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:di}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:di}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Ze.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},ci=class{static hasDST(e=Ae.defaultZone){let r=ae.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Sr.isValidZone(e)}static normalizeZone(e){return gr(e,Ae.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||xe.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||xe.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||xe.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||xe.create(r,a,n)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||xe.create(r,a,n)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||xe.create(r,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||xe.create(r,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return xe.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return xe.create(r,null,"gregory").eras(e)}static features(){return{relative:Zl(),localeWeek:Kl()}}};function pl(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=r(e)-r(t);return Math.floor(Ze.fromMillis(a).as("days"))}function em(t,e,r){let a=[["years",(l,d)=>d.year-l.year],["quarters",(l,d)=>d.quarter-l.quarter+(d.year-l.year)*4],["months",(l,d)=>d.month-l.month+(d.year-l.year)*12],["weeks",(l,d)=>{let u=pl(l,d);return(u-u%7)/7}],["days",pl]],i={},n=t,s,o;for(let[l,d]of a)r.indexOf(l)>=0&&(s=l,i[l]=d(t,e),o=n.plus(i),o>e?(i[l]--,t=n.plus(i),t>e&&(o=t,i[l]--,t=n.plus(i))):t=o);return[t,i,o,s]}function tm(t,e,r,a){let[i,n,s,o]=em(t,e,r),l=e-i,d=r.filter(c=>["hours","minutes","seconds","milliseconds"].indexOf(c)>=0);d.length===0&&(s<e&&(s=i.plus({[o]:1})),s!==i&&(n[o]=(n[o]||0)+l/(s-i)));let u=Ze.fromObject(n,a);return d.length>0?Ze.fromMillis(l,a).shiftTo(...d).plus(u):u}var rm="missing Intl.DateTimeFormat.formatToParts support";function fe(t,e=r=>r){return{regex:t,deser:([r])=>e(Hf(r))}}var im="\xA0",hd=`[ ${im}]`,md=new RegExp(hd,"g");function am(t){return t.replace(/\./g,"\\.?").replace(md,hd)}function fl(t){return t.replace(/\./g,"").replace(md," ").toLowerCase()}function Rt(t,e){return t===null?null:{regex:RegExp(t.map(am).join("|")),deser:([r])=>t.findIndex(a=>fl(r)===fl(a))+e}}function hl(t,e){return{regex:t,deser:([,r,a])=>La(r,a),groups:e}}function ya(t){return{regex:t,deser:([e])=>e}}function nm(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function sm(t,e){let r=qt(e),a=qt(e,"{2}"),i=qt(e,"{3}"),n=qt(e,"{4}"),s=qt(e,"{6}"),o=qt(e,"{1,2}"),l=qt(e,"{1,3}"),d=qt(e,"{1,6}"),u=qt(e,"{1,9}"),c=qt(e,"{2,4}"),f=qt(e,"{4,6}"),p=y=>({regex:RegExp(nm(y.val)),deser:([g])=>g,literal:!0}),m=(y=>{if(t.literal)return p(y);switch(y.val){case"G":return Rt(e.eras("short"),0);case"GG":return Rt(e.eras("long"),0);case"y":return fe(d);case"yy":return fe(c,os);case"yyyy":return fe(n);case"yyyyy":return fe(f);case"yyyyyy":return fe(s);case"M":return fe(o);case"MM":return fe(a);case"MMM":return Rt(e.months("short",!0),1);case"MMMM":return Rt(e.months("long",!0),1);case"L":return fe(o);case"LL":return fe(a);case"LLL":return Rt(e.months("short",!1),1);case"LLLL":return Rt(e.months("long",!1),1);case"d":return fe(o);case"dd":return fe(a);case"o":return fe(l);case"ooo":return fe(i);case"HH":return fe(a);case"H":return fe(o);case"hh":return fe(a);case"h":return fe(o);case"mm":return fe(a);case"m":return fe(o);case"q":return fe(o);case"qq":return fe(a);case"s":return fe(o);case"ss":return fe(a);case"S":return fe(l);case"SSS":return fe(i);case"u":return ya(u);case"uu":return ya(o);case"uuu":return fe(r);case"a":return Rt(e.meridiems(),0);case"kkkk":return fe(n);case"kk":return fe(c,os);case"W":return fe(o);case"WW":return fe(a);case"E":case"c":return fe(r);case"EEE":return Rt(e.weekdays("short",!1),1);case"EEEE":return Rt(e.weekdays("long",!1),1);case"ccc":return Rt(e.weekdays("short",!0),1);case"cccc":return Rt(e.weekdays("long",!0),1);case"Z":case"ZZ":return hl(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return hl(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ya(/[a-z_+-/]{1,256}?/i);case" ":return ya(/[^\S\n\r]/);default:return p(y)}})(t)||{invalidReason:rm};return m.token=t,m}var om={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function lm(t,e,r){let{type:a,value:i}=t;if(a==="literal"){let l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}let n=e[a],s=a;a==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let o=om[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function dm(t){return[`^${t.map(r=>r.regex).reduce((r,a)=>`${r}(${a.source})`,"")}$`,t]}function um(t,e,r){let a=t.match(e);if(a){let i={},n=1;for(let s in r)if(mi(r,s)){let o=r[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(i[o.token.val[0]]=o.deser(a.slice(n,n+l))),n+=l}return[a,i]}else return[a,{}]}function cm(t){let e=n=>{switch(n){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,a;return J(t.z)||(r=Sr.create(t.z)),J(t.Z)||(r||(r=new Dt(t.Z)),a=t.Z),J(t.q)||(t.M=(t.q-1)*3+1),J(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),J(t.u)||(t.S=ps(t.u)),[Object.keys(t).reduce((n,s)=>{let o=e(s);return o&&(n[o]=t[s]),n},{}),r,a]}var jn=null;function pm(){return jn||(jn=ae.fromMillis(1555555555555)),jn}function fm(t,e){if(t.literal)return t;let r=vt.macroTokenToFormatOpts(t.val),a=bd(r,e);return a==null||a.includes(void 0)?t:a}function yd(t,e){return Array.prototype.concat(...t.map(r=>fm(r,e)))}var Pa=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=yd(vt.parseFormat(r),e),this.units=this.tokens.map(a=>sm(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,i]=dm(this.units);this.regex=RegExp(a,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,a]=um(e,this.regex,this.handlers),[i,n,s]=a?cm(a):[null,null,void 0];if(mi(a,"a")&&mi(a,"H"))throw new br("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:a,result:i,zone:n,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function gd(t,e,r){return new Pa(t,r).explainFromTokens(e)}function hm(t,e,r){let{result:a,zone:i,specificOffset:n,invalidReason:s}=gd(t,e,r);return[a,i,n,s]}function bd(t,e){if(!t)return null;let a=vt.create(e,t).dtFormatter(pm()),i=a.formatToParts(),n=a.resolvedOptions();return i.map(s=>lm(s,t,n))}var Wn="Invalid DateTime",ml=864e13;function Vi(t){return new St("unsupported zone",`the zone "${t.name}" is not supported`)}function Vn(t){return t.weekData===null&&(t.weekData=Fa(t.c)),t.weekData}function _n(t){return t.localWeekData===null&&(t.localWeekData=Fa(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function _r(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ae({...r,...e,old:r})}function vd(t,e,r){let a=t-e*60*1e3,i=r.offset(a);if(e===i)return[a,e];a-=(i-e)*60*1e3;let n=r.offset(a);return i===n?[a,i]:[t-Math.min(i,n)*60*1e3,Math.max(i,n)]}function ga(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function va(t,e,r){return vd(Ea(t),e,r)}function yl(t,e){let r=t.o,a=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:a,month:i,day:Math.min(t.c.day,Ia(a,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Ze.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Ea(n),[l,d]=vd(o,r,t.zone);return s!==0&&(l+=s,d=t.zone.offset(l)),{ts:l,o:d}}function ui(t,e,r,a,i,n){let{setZone:s,zone:o}=r;if(t&&Object.keys(t).length!==0||e){let l=e||o,d=ae.fromObject(t,{...r,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ae.invalid(new St("unparsable",`the input "${i}" can't be parsed as ${a}`))}function ba(t,e,r=!0){return t.isValid?vt.create(xe.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function zn(t,e,r){let a=t.c.year>9999||t.c.year<0,i="";if(a&&t.c.year>=0&&(i+="+"),i+=Ve(t.c.year,a?6:4),r==="year")return i;if(e){if(i+="-",i+=Ve(t.c.month),r==="month")return i;i+="-"}else if(i+=Ve(t.c.month),r==="month")return i;return i+=Ve(t.c.day),i}function gl(t,e,r,a,i,n,s){let o=!r||t.c.millisecond!==0||t.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=Ve(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=Ve(t.c.minute),s==="minute")break;o&&(l+=":",l+=Ve(t.c.second))}else{if(l+=Ve(t.c.minute),s==="minute")break;o&&(l+=Ve(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=Ve(t.c.millisecond,3))}return i&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=Ve(Math.trunc(-t.o/60)),l+=":",l+=Ve(Math.trunc(-t.o%60))):(l+="+",l+=Ve(Math.trunc(t.o/60)),l+=":",l+=Ve(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var Sd={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},mm={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ym={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Sa=["year","month","day","hour","minute","second","millisecond"],gm=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],bm=["year","ordinal","hour","minute","second","millisecond"];function wa(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Ca(t);return e}function bl(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return wa(t)}}function vm(t){if(_i===void 0&&(_i=Ae.now()),t.type!=="iana")return t.offset(_i);let e=t.name,r=ls.get(e);return r===void 0&&(r=t.offset(_i),ls.set(e,r)),r}function vl(t,e){let r=gr(e.zone,Ae.defaultZone);if(!r.isValid)return ae.invalid(Vi(r));let a=xe.fromObject(e),i,n;if(J(t.year))i=Ae.now();else{for(let l of Sa)J(t[l])&&(t[l]=Sd[l]);let s=Gl(t)||Ql(t);if(s)return ae.invalid(s);let o=vm(r);[i,n]=va(t,o,r)}return new ae({ts:i,zone:r,loc:a,o:n})}function Sl(t,e,r){let a=J(r.round)?!0:r.round,i=J(r.rounding)?"trunc":r.rounding,n=(o,l)=>(o=fs(o,a||r.calendary?0:2,r.calendary?"round":i),e.loc.clone(r).relFormatter(r).format(o,l)),s=o=>r.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(r.unit)return n(s(r.unit),r.unit);for(let o of r.units){let l=s(o);if(Math.abs(l)>=1)return n(l,o)}return n(t>e?-0:0,r.units[r.units.length-1])}function wl(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var _i,ls=new Map,ae=class t{constructor(e){let r=e.zone||Ae.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new St("invalid input"):null)||(r.isValid?null:Vi(r));this.ts=J(e.ts)?Ae.now():e.ts;let i=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,n]=[e.old.c,e.old.o];else{let o=vr(e.o)&&!e.old?e.o:r.offset(this.ts);i=ga(this.ts,o),a=Number.isNaN(i.year)?new St("invalid input"):null,i=a?null:i,n=a?null:o}this._zone=r,this.loc=e.loc||xe.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=i,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=wl(arguments),[a,i,n,s,o,l,d]=r;return vl({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,r]=wl(arguments),[a,i,n,s,o,l,d]=r;return e.zone=Dt.utcInstance,vl({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,r={}){let a=Jf(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let i=gr(r.zone,Ae.defaultZone);return i.isValid?new t({ts:a,zone:i,loc:xe.fromObject(r)}):t.invalid(Vi(i))}static fromMillis(e,r={}){if(vr(e))return e<-ml||e>ml?t.invalid("Timestamp out of range"):new t({ts:e,zone:gr(r.zone,Ae.defaultZone),loc:xe.fromObject(r)});throw new Qe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(vr(e))return new t({ts:e*1e3,zone:gr(r.zone,Ae.defaultZone),loc:xe.fromObject(r)});throw new Qe("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let a=gr(r.zone,Ae.defaultZone);if(!a.isValid)return t.invalid(Vi(a));let i=xe.fromObject(r),n=Oa(e,bl),{minDaysInFirstWeek:s,startOfWeek:o}=al(n,i),l=Ae.now(),d=J(r.specificOffset)?a.offset(l):r.specificOffset,u=!J(n.ordinal),c=!J(n.year),f=!J(n.month)||!J(n.day),p=c||f,h=n.weekYear||n.weekNumber;if((p||u)&&h)throw new br("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new br("Can't mix ordinal dates with month/day");let m=h||n.weekday&&!p,y,g,v=ga(l,d);m?(y=gm,g=mm,v=Fa(v,s,o)):u?(y=bm,g=ym,v=kn(v)):(y=Sa,g=Sd);let w=!1;for(let B of y){let N=n[B];J(N)?w?n[B]=g[B]:n[B]=v[B]:w=!0}let x=m?Qf(n,s,o):u?Zf(n):Gl(n),F=x||Ql(n);if(F)return t.invalid(F);let A=m?rl(n,s,o):u?il(n):n,[q,L]=va(A,d,a),P=new t({ts:q,zone:a,o:L,loc:i});return n.weekday&&p&&e.weekday!==P.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${P.toISO()}`):P.isValid?P:t.invalid(P.invalid)}static fromISO(e,r={}){let[a,i]=jh(e);return ui(a,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[a,i]=Wh(e);return ui(a,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[a,i]=Vh(e);return ui(a,i,r,"HTTP",r)}static fromFormat(e,r,a={}){if(J(e)||J(r))throw new Qe("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:n=null}=a,s=xe.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0}),[o,l,d,u]=hm(s,e,r);return u?t.invalid(u):ui(o,l,a,`format ${r}`,e,d)}static fromString(e,r,a={}){return t.fromFormat(e,r,a)}static fromSQL(e,r={}){let[a,i]=Zh(e);return ui(a,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the DateTime is invalid");let a=e instanceof St?e:new St(e,r);if(Ae.throwOnInvalid)throw new Un(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let a=bd(e,xe.fromObject(r));return a?a.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return yd(vt.parseFormat(e),xe.fromObject(r)).map(i=>i.val).join("")}static resetCache(){_i=void 0,ls.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Vn(this).weekYear:NaN}get weekNumber(){return this.isValid?Vn(this).weekNumber:NaN}get weekday(){return this.isValid?Vn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?_n(this).weekday:NaN}get localWeekNumber(){return this.isValid?_n(this).weekNumber:NaN}get localWeekYear(){return this.isValid?_n(this).weekYear:NaN}get ordinal(){return this.isValid?kn(this.c).ordinal:NaN}get monthShort(){return this.isValid?ci.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ci.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ci.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ci.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,a=Ea(this.c),i=this.zone.offset(a-e),n=this.zone.offset(a+e),s=this.zone.offset(a-i*r),o=this.zone.offset(a-n*r);if(s===o)return[this];let l=a-s*r,d=a-o*r,u=ga(l,s),c=ga(d,o);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[_r(this,{ts:l}),_r(this,{ts:d})]:[this]}get isInLeapYear(){return Hi(this.year)}get daysInMonth(){return Ia(this.year,this.month)}get daysInYear(){return this.isValid?pi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ui(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ui(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:a,calendar:i}=vt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:a,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(Dt.instance(e),r)}toLocal(){return this.setZone(Ae.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:a=!1}={}){if(e=gr(e,Ae.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||a){let n=e.offset(this.ts),s=this.toObject();[i]=va(s,n,e)}return _r(this,{ts:i,zone:e})}else return t.invalid(Vi(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:a}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:a});return _r(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=Oa(e,bl),{minDaysInFirstWeek:a,startOfWeek:i}=al(r,this.loc),n=!J(r.weekYear)||!J(r.weekNumber)||!J(r.weekday),s=!J(r.ordinal),o=!J(r.year),l=!J(r.month)||!J(r.day),d=o||l,u=r.weekYear||r.weekNumber;if((d||s)&&u)throw new br("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new br("Can't mix ordinal dates with month/day");let c;n?c=rl({...Fa(this.c,a,i),...r},a,i):J(r.ordinal)?(c={...this.toObject(),...r},J(r.day)&&(c.day=Math.min(Ia(c.year,c.month),c.day))):c=il({...kn(this.c),...r});let[f,p]=va(c,this.o,this.zone);return _r(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e);return _r(this,yl(this,r))}minus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e).negate();return _r(this,yl(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let a={},i=Ze.normalizeUnit(e);switch(i){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(i==="weeks")if(r){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(i==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?vt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):Wn}toLocaleString(e=xa,r={}){return this.isValid?vt.create(this.loc.clone(r),e).formatDateTime(this):Wn}toLocaleParts(e={}){return this.isValid?vt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:a=!1,includeOffset:i=!0,extendedZone:n=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=wa(s);let o=e==="extended",l=zn(this,o,s);return Sa.indexOf(s)>=3&&(l+="T"),l+=gl(this,o,r,a,i,n,s),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?zn(this,e==="extended",wa(r)):null}toISOWeekDate(){return ba(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:a=!0,includePrefix:i=!1,extendedZone:n=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=wa(o),(i&&Sa.indexOf(o)>=3?"T":"")+gl(this,s==="extended",r,e,a,n,o)):null}toRFC2822(){return ba(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ba(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?zn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:a=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(a&&(i+=" "),r?i+="z":e&&(i+="ZZ")),ba(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Wn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",a={}){if(!this.isValid||!e.isValid)return Ze.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=Yf(r).map(Ze.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=tm(o,l,n,i);return s?d.negate():d}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?hi.fromDateTimes(this,e):this}hasSame(e,r,a){if(!this.isValid)return!1;let i=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(r,a)<=i&&i<=n.endOf(r,a)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),a=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(i=e.unit,n=void 0),Sl(r,this.plus(a),{...e,numeric:"always",units:i,unit:n})}toRelativeCalendar(e={}){return this.isValid?Sl(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Qe("min requires all arguments be DateTimes");return nl(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Qe("max requires all arguments be DateTimes");return nl(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,a={}){let{locale:i=null,numberingSystem:n=null}=a,s=xe.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});return gd(s,e,r)}static fromStringExplain(e,r,a={}){return t.fromFormatExplain(e,r,a)}static buildFormatParser(e,r={}){let{locale:a=null,numberingSystem:i=null}=r,n=xe.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return new Pa(n,e)}static fromFormatParser(e,r,a={}){if(J(e)||J(r))throw new Qe("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:n=null}=a,s=xe.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});if(!s.equals(r.locale))throw new Qe(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:u}=r.explainFromTokens(e);return u?t.invalid(u):ui(o,l,a,`format ${r.format}`,e,d)}static get DATE_SHORT(){return xa}static get DATE_MED(){return Cl}static get DATE_MED_WITH_WEEKDAY(){return Af}static get DATE_FULL(){return xl}static get DATE_HUGE(){return Tl}static get TIME_SIMPLE(){return Fl}static get TIME_WITH_SECONDS(){return Il}static get TIME_WITH_SHORT_OFFSET(){return Ol}static get TIME_WITH_LONG_OFFSET(){return Pl}static get TIME_24_SIMPLE(){return Al}static get TIME_24_WITH_SECONDS(){return El}static get TIME_24_WITH_SHORT_OFFSET(){return Ll}static get TIME_24_WITH_LONG_OFFSET(){return Dl}static get DATETIME_SHORT(){return Nl}static get DATETIME_SHORT_WITH_SECONDS(){return Bl}static get DATETIME_MED(){return Ml}static get DATETIME_MED_WITH_SECONDS(){return $l}static get DATETIME_MED_WITH_WEEKDAY(){return Ef}static get DATETIME_FULL(){return ql}static get DATETIME_FULL_WITH_SECONDS(){return Rl}static get DATETIME_HUGE(){return kl}static get DATETIME_HUGE_WITH_SECONDS(){return jl}};function ji(t){if(ae.isDateTime(t))return t;if(t&&t.valueOf&&vr(t.valueOf()))return ae.fromJSDate(t);if(t&&typeof t=="object")return ae.fromObject(t);throw new Qe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function wd(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var a=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,n=new Array(i);++a<i;)n[a]=t+a*r;return n}function Si(t,e){let r,a;if(e===void 0)for(let i of t)i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)));else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r===void 0?n>=n&&(r=a=n):(r>n&&(r=n),a<n&&(a=n)))}return[r,a]}var Na=class extends Map{constructor(e,r=Cm){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[a,i]of e)this.set(a,i)}get(e){return super.get(Cd(this,e))}has(e){return super.has(Cd(this,e))}set(e,r){return super.set(Sm(this,e),r)}delete(e){return super.delete(wm(this,e))}};function Cd({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):r}function Sm({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function wm({_intern:t,_key:e},r){let a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function Cm(t){return t!==null&&typeof t=="object"?t.valueOf():t}function gs(t){return t}function bs(t,e,...r){return xm(t,gs,e,r)}function xm(t,e,r,a){return(function i(n,s){if(s>=a.length)return r(n);let o=new Na,l=a[s++],d=-1;for(let u of n){let c=l(u,++d,n),f=o.get(c);f?f.push(u):o.set(c,[u])}for(let[u,c]of o)o.set(u,i(c,s));return e(o)})(t,0)}function Ba(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function Ma(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function $a(t,e){let r=0,a=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++r,a+=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(n=+n)>=n&&(++r,a+=n)}if(r)return a/r}function qa(t,e){let r=0;if(e===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let i of t)(i=+e(i,++a,t))&&(r+=i)}return r}var Va=function(){return Va=Object.assign||function(e){for(var r,a=1,i=arguments.length;a<i;a++){r=arguments[a];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Va.apply(this,arguments)},vs={exports:{}},Ne={},Ss={exports:{}},Hr={};function Od(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function Tm(t,e,r){}function Fm(t,e,r){}var Im=/javascript\s*\:/img;function Om(t,e){return Im.test(e)?"":e}Hr.whiteList=Od();Hr.getDefaultWhiteList=Od;Hr.onAttr=Tm;Hr.onIgnoreAttr=Fm;Hr.safeAttrValue=Om;var Pm={indexOf:function(t,e){var r,a;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var a,i;if(Array.prototype.forEach)return t.forEach(e,r);for(a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Zi=Pm;function Am(t,e){t=Zi.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,a=!1,i=0,n=0,s="";function o(){if(!a){var u=Zi.trim(t.slice(i,n)),c=u.indexOf(":");if(c!==-1){var f=Zi.trim(u.slice(0,c)),p=Zi.trim(u.slice(c+1));if(f){var h=e(i,s.length,f,p,u);h&&(s+=h+"; ")}}}i=n+1}for(;n<r;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,i=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
|
|
2
|
+
import{A as Pe,B as Ce,F as Je,G as Wr,a as pa,g as jr,m as jo,n as er,p as Wo,t as Bn,v as Ie,w as hr,x as ha,y as mr,z as ye}from"./4B3QBH5T.js";import{c as ko,d as Mn,f as $t,g as yt}from"./QZDPUMJZ.js";import{a as b,b as j,c as Ge,e as ki,f as gt,h as ze,i as fa,j as Vo,k as G,l as bt,n as nt,o as Me,p as _o,q as fr,s as zo,t as Uo,v as st,y as Y}from"./NKG4FLLR.js";import{G as Pt}from"./H6QL4MSJ.js";import{b as K,d as Ro}from"./OR4HXHSY.js";export default $arcgis.t(([ib,uo,Ei,{substitute:qe},Jc,ab,Yc,bn,nb,co,sb,ob,fp,lb,db,ub,cb,pb,po])=>{var Zd=K((YC,Ts)=>{function by(t,e){var r=e&&e.cache?e.cache:Ty,a=e&&e.serializer?e.serializer:xy,i=e&&e.strategy?e.strategy:Sy;return i(t,{cache:r,serializer:a})}function vy(t){return t==null||typeof t=="number"||typeof t=="boolean"}function Gd(t,e,r,a){var i=vy(a)?a:r(a),n=e.get(i);return typeof n>"u"&&(n=t.call(this,a),e.set(i,n)),n}function Qd(t,e,r){var a=Array.prototype.slice.call(arguments,3),i=r(a),n=e.get(i);return typeof n>"u"&&(n=t.apply(this,a),e.set(i,n)),n}function xs(t,e,r,a,i){return r.bind(e,t,a,i)}function Sy(t,e){var r=t.length===1?Gd:Qd;return xs(t,this,r,e.cache.create(),e.serializer)}function wy(t,e){var r=Qd;return xs(t,this,r,e.cache.create(),e.serializer)}function Cy(t,e){var r=Gd;return xs(t,this,r,e.cache.create(),e.serializer)}function xy(){return JSON.stringify(arguments)}function Ha(){this.cache=Object.create(null)}Ha.prototype.has=function(t){return t in this.cache};Ha.prototype.get=function(t){return this.cache[t]};Ha.prototype.set=function(t,e){this.cache[t]=e};var Ty={create:function(){return new Ha}};Ts.exports=by;Ts.exports.strategies={variadic:wy,monadic:Cy}});var Jd=K((Ga,Kd)=>{(function(t,e){typeof Ga=="object"&&typeof Kd<"u"?e(Ga):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(Ga,(function(t){"use strict";function e(){for(var T=arguments.length,S=Array(T),I=0;I<T;I++)S[I]=arguments[I];if(S.length>1){S[0]=S[0].slice(0,-1);for(var D=S.length-1,M=1;M<D;++M)S[M]=S[M].slice(1,-1);return S[D]=S[D].slice(1),S.join("")}else return S[0]}function r(T){return"(?:"+T+")"}function a(T){return T===void 0?"undefined":T===null?"null":Object.prototype.toString.call(T).split(" ").pop().split("]").shift().toLowerCase()}function i(T){return T.toUpperCase()}function n(T){return T!=null?T instanceof Array?T:typeof T.length!="number"||T.split||T.setInterval||T.call?[T]:Array.prototype.slice.call(T):[]}function s(T,S){var I=T;if(S)for(var D in S)I[D]=S[D];return I}function o(T){var S="[A-Za-z]",I="[\\x0D]",D="[0-9]",M="[\\x22]",_=e(D,"[A-Fa-f]"),ee="[\\x0A]",de="[\\x20]",he=r(r("%[EFef]"+_+"%"+_+_+"%"+_+_)+"|"+r("%[89A-Fa-f]"+_+"%"+_+_)+"|"+r("%"+_+_)),je="[\\:\\/\\?\\#\\[\\]\\@]",se="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Le=e(je,se),We=T?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Oe=T?"[\\uE000-\\uF8FF]":"[]",ce=e(S,D,"[\\-\\.\\_\\~]",We),De=r(S+e(S,D,"[\\+\\-\\.]")+"*"),be=r(r(he+"|"+e(ce,se,"[\\:]"))+"*"),qr=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("[1-9]"+D)+"|"+D),ht=r(r("25[0-5]")+"|"+r("2[0-4]"+D)+"|"+r("1"+D+D)+"|"+r("0?[1-9]"+D)+"|0?0?"+D),It=r(ht+"\\."+ht+"\\."+ht+"\\."+ht),we=r(_+"{1,4}"),mt=r(r(we+"\\:"+we)+"|"+It),Ot=r(r(we+"\\:")+"{6}"+mt),Gt=r("\\:\\:"+r(we+"\\:")+"{5}"+mt),Rr=r(r(we)+"?\\:\\:"+r(we+"\\:")+"{4}"+mt),Jt=r(r(r(we+"\\:")+"{0,1}"+we)+"?\\:\\:"+r(we+"\\:")+"{3}"+mt),Bi=r(r(r(we+"\\:")+"{0,2}"+we)+"?\\:\\:"+r(we+"\\:")+"{2}"+mt),da=r(r(r(we+"\\:")+"{0,3}"+we)+"?\\:\\:"+we+"\\:"+mt),ua=r(r(r(we+"\\:")+"{0,4}"+we)+"?\\:\\:"+mt),ri=r(r(r(we+"\\:")+"{0,5}"+we)+"?\\:\\:"+we),ii=r(r(r(we+"\\:")+"{0,6}"+we)+"?\\:\\:"),Yt=r([Ot,Gt,Rr,Jt,Bi,da,ua,ri,ii].join("|")),ai=r(r(ce+"|"+he)+"+"),Dn=r(Yt+"\\%25"+ai),kr=r(Yt+r("\\%25|\\%(?!"+_+"{2})")+ai),Cf=r("[vV]"+_+"+\\."+e(ce,se,"[\\:]")+"+"),xf=r("\\["+r(kr+"|"+Yt+"|"+Cf)+"\\]"),Bo=r(r(he+"|"+e(ce,se))+"*"),Mi=r(xf+"|"+It+"(?!"+Bo+")|"+Bo),$i=r(D+"*"),Mo=r(r(be+"@")+"?"+Mi+r("\\:"+$i)+"?"),qi=r(he+"|"+e(ce,se,"[\\:\\@]")),Tf=r(qi+"*"),$o=r(qi+"+"),Ff=r(r(he+"|"+e(ce,se,"[\\@]"))+"+"),Xt=r(r("\\/"+Tf)+"*"),ni=r("\\/"+r($o+Xt)+"?"),Nn=r(Ff+Xt),ca=r($o+Xt),si="(?!"+qi+")",pC=r(Xt+"|"+ni+"|"+Nn+"|"+ca+"|"+si),oi=r(r(qi+"|"+e("[\\/\\?]",Oe))+"*"),Ri=r(r(qi+"|[\\/\\?]")+"*"),qo=r(r("\\/\\/"+Mo+Xt)+"|"+ni+"|"+ca+"|"+si),If=r(De+"\\:"+qo+r("\\?"+oi)+"?"+r("\\#"+Ri)+"?"),Of=r(r("\\/\\/"+Mo+Xt)+"|"+ni+"|"+Nn+"|"+si),Pf=r(Of+r("\\?"+oi)+"?"+r("\\#"+Ri)+"?"),fC=r(If+"|"+Pf),hC=r(De+"\\:"+qo+r("\\?"+oi)+"?"),mC="^("+De+")\\:"+r(r("\\/\\/("+r("("+be+")@")+"?("+Mi+")"+r("\\:("+$i+")")+"?)")+"?("+Xt+"|"+ni+"|"+ca+"|"+si+")")+r("\\?("+oi+")")+"?"+r("\\#("+Ri+")")+"?$",yC="^(){0}"+r(r("\\/\\/("+r("("+be+")@")+"?("+Mi+")"+r("\\:("+$i+")")+"?)")+"?("+Xt+"|"+ni+"|"+Nn+"|"+si+")")+r("\\?("+oi+")")+"?"+r("\\#("+Ri+")")+"?$",gC="^("+De+")\\:"+r(r("\\/\\/("+r("("+be+")@")+"?("+Mi+")"+r("\\:("+$i+")")+"?)")+"?("+Xt+"|"+ni+"|"+ca+"|"+si+")")+r("\\?("+oi+")")+"?$",bC="^"+r("\\#("+Ri+")")+"?$",vC="^"+r("("+be+")@")+"?("+Mi+")"+r("\\:("+$i+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",S,D,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",ce,se),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",ce,se),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",ce,se),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",ce,se),"g"),NOT_QUERY:new RegExp(e("[^\\%]",ce,se,"[\\:\\@\\/\\?]",Oe),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",ce,se,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",ce,se),"g"),UNRESERVED:new RegExp(ce,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",ce,Le),"g"),PCT_ENCODED:new RegExp(he,"g"),IPV4ADDRESS:new RegExp("^("+It+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Yt+")"+r(r("\\%25|\\%(?!"+_+"{2})")+"("+ai+")")+"?\\]?$")}}var l=o(!1),d=o(!0),u=(function(){function T(S,I){var D=[],M=!0,_=!1,ee=void 0;try{for(var de=S[Symbol.iterator](),he;!(M=(he=de.next()).done)&&(D.push(he.value),!(I&&D.length===I));M=!0);}catch(je){_=!0,ee=je}finally{try{!M&&de.return&&de.return()}finally{if(_)throw ee}}return D}return function(S,I){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return T(S,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),c=function(T){if(Array.isArray(T)){for(var S=0,I=Array(T.length);S<T.length;S++)I[S]=T[S];return I}else return Array.from(T)},f=2147483647,p=36,h=1,m=26,y=38,g=700,v=72,w=128,x="-",F=/^xn--/,A=/[^\0-\x7E]/,q=/[\x2E\u3002\uFF0E\uFF61]/g,L={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},P=p-h,B=Math.floor,N=String.fromCharCode;function R(T){throw new RangeError(L[T])}function $(T,S){for(var I=[],D=T.length;D--;)I[D]=S(T[D]);return I}function E(T,S){var I=T.split("@"),D="";I.length>1&&(D=I[0]+"@",T=I[1]),T=T.replace(q,".");var M=T.split("."),_=$(M,S).join(".");return D+_}function k(T){for(var S=[],I=0,D=T.length;I<D;){var M=T.charCodeAt(I++);if(M>=55296&&M<=56319&&I<D){var _=T.charCodeAt(I++);(_&64512)==56320?S.push(((M&1023)<<10)+(_&1023)+65536):(S.push(M),I--)}else S.push(M)}return S}var Q=function(S){return String.fromCodePoint.apply(String,c(S))},H=function(S){return S-48<10?S-22:S-65<26?S-65:S-97<26?S-97:p},V=function(S,I){return S+22+75*(S<26)-((I!=0)<<5)},Z=function(S,I,D){var M=0;for(S=D?B(S/g):S>>1,S+=B(S/I);S>P*m>>1;M+=p)S=B(S/P);return B(M+(P+1)*S/(S+y))},z=function(S){var I=[],D=S.length,M=0,_=w,ee=v,de=S.lastIndexOf(x);de<0&&(de=0);for(var he=0;he<de;++he)S.charCodeAt(he)>=128&&R("not-basic"),I.push(S.charCodeAt(he));for(var je=de>0?de+1:0;je<D;){for(var se=M,Le=1,We=p;;We+=p){je>=D&&R("invalid-input");var Oe=H(S.charCodeAt(je++));(Oe>=p||Oe>B((f-M)/Le))&&R("overflow"),M+=Oe*Le;var ce=We<=ee?h:We>=ee+m?m:We-ee;if(Oe<ce)break;var De=p-ce;Le>B(f/De)&&R("overflow"),Le*=De}var be=I.length+1;ee=Z(M-se,be,se==0),B(M/be)>f-_&&R("overflow"),_+=B(M/be),M%=be,I.splice(M++,0,_)}return String.fromCodePoint.apply(String,I)},ne=function(S){var I=[];S=k(S);var D=S.length,M=w,_=0,ee=v,de=!0,he=!1,je=void 0;try{for(var se=S[Symbol.iterator](),Le;!(de=(Le=se.next()).done);de=!0){var We=Le.value;We<128&&I.push(N(We))}}catch(kr){he=!0,je=kr}finally{try{!de&&se.return&&se.return()}finally{if(he)throw je}}var Oe=I.length,ce=Oe;for(Oe&&I.push(x);ce<D;){var De=f,be=!0,qr=!1,ht=void 0;try{for(var It=S[Symbol.iterator](),we;!(be=(we=It.next()).done);be=!0){var mt=we.value;mt>=M&&mt<De&&(De=mt)}}catch(kr){qr=!0,ht=kr}finally{try{!be&&It.return&&It.return()}finally{if(qr)throw ht}}var Ot=ce+1;De-M>B((f-_)/Ot)&&R("overflow"),_+=(De-M)*Ot,M=De;var Gt=!0,Rr=!1,Jt=void 0;try{for(var Bi=S[Symbol.iterator](),da;!(Gt=(da=Bi.next()).done);Gt=!0){var ua=da.value;if(ua<M&&++_>f&&R("overflow"),ua==M){for(var ri=_,ii=p;;ii+=p){var Yt=ii<=ee?h:ii>=ee+m?m:ii-ee;if(ri<Yt)break;var ai=ri-Yt,Dn=p-Yt;I.push(N(V(Yt+ai%Dn,0))),ri=B(ai/Dn)}I.push(N(V(ri,0))),ee=Z(_,Ot,ce==Oe),_=0,++ce}}}catch(kr){Rr=!0,Jt=kr}finally{try{!Gt&&Bi.return&&Bi.return()}finally{if(Rr)throw Jt}}++_,++M}return I.join("")},Re=function(S){return E(S,function(I){return F.test(I)?z(I.slice(4).toLowerCase()):I})},_e=function(S){return E(S,function(I){return A.test(I)?"xn--"+ne(I):I})},te={version:"2.1.0",ucs2:{decode:k,encode:Q},decode:z,encode:ne,toASCII:_e,toUnicode:Re},ge={};function Te(T){var S=T.charCodeAt(0),I=void 0;return S<16?I="%0"+S.toString(16).toUpperCase():S<128?I="%"+S.toString(16).toUpperCase():S<2048?I="%"+(S>>6|192).toString(16).toUpperCase()+"%"+(S&63|128).toString(16).toUpperCase():I="%"+(S>>12|224).toString(16).toUpperCase()+"%"+(S>>6&63|128).toString(16).toUpperCase()+"%"+(S&63|128).toString(16).toUpperCase(),I}function ke(T){for(var S="",I=0,D=T.length;I<D;){var M=parseInt(T.substr(I+1,2),16);if(M<128)S+=String.fromCharCode(M),I+=3;else if(M>=194&&M<224){if(D-I>=6){var _=parseInt(T.substr(I+4,2),16);S+=String.fromCharCode((M&31)<<6|_&63)}else S+=T.substr(I,6);I+=6}else if(M>=224){if(D-I>=9){var ee=parseInt(T.substr(I+4,2),16),de=parseInt(T.substr(I+7,2),16);S+=String.fromCharCode((M&15)<<12|(ee&63)<<6|de&63)}else S+=T.substr(I,9);I+=9}else S+=T.substr(I,3),I+=3}return S}function xt(T,S){function I(D){var M=ke(D);return M.match(S.UNRESERVED)?M:D}return T.scheme&&(T.scheme=String(T.scheme).replace(S.PCT_ENCODED,I).toLowerCase().replace(S.NOT_SCHEME,"")),T.userinfo!==void 0&&(T.userinfo=String(T.userinfo).replace(S.PCT_ENCODED,I).replace(S.NOT_USERINFO,Te).replace(S.PCT_ENCODED,i)),T.host!==void 0&&(T.host=String(T.host).replace(S.PCT_ENCODED,I).toLowerCase().replace(S.NOT_HOST,Te).replace(S.PCT_ENCODED,i)),T.path!==void 0&&(T.path=String(T.path).replace(S.PCT_ENCODED,I).replace(T.scheme?S.NOT_PATH:S.NOT_PATH_NOSCHEME,Te).replace(S.PCT_ENCODED,i)),T.query!==void 0&&(T.query=String(T.query).replace(S.PCT_ENCODED,I).replace(S.NOT_QUERY,Te).replace(S.PCT_ENCODED,i)),T.fragment!==void 0&&(T.fragment=String(T.fragment).replace(S.PCT_ENCODED,I).replace(S.NOT_FRAGMENT,Te).replace(S.PCT_ENCODED,i)),T}function it(T){return T.replace(/^0*(.*)/,"$1")||"0"}function Fe(T,S){var I=T.match(S.IPV4ADDRESS)||[],D=u(I,2),M=D[1];return M?M.split(".").map(it).join("."):T}function Se(T,S){var I=T.match(S.IPV6ADDRESS)||[],D=u(I,3),M=D[1],_=D[2];if(M){for(var ee=M.toLowerCase().split("::").reverse(),de=u(ee,2),he=de[0],je=de[1],se=je?je.split(":").map(it):[],Le=he.split(":").map(it),We=S.IPV4ADDRESS.test(Le[Le.length-1]),Oe=We?7:8,ce=Le.length-Oe,De=Array(Oe),be=0;be<Oe;++be)De[be]=se[be]||Le[ce+be]||"";We&&(De[Oe-1]=Fe(De[Oe-1],S));var qr=De.reduce(function(Ot,Gt,Rr){if(!Gt||Gt==="0"){var Jt=Ot[Ot.length-1];Jt&&Jt.index+Jt.length===Rr?Jt.length++:Ot.push({index:Rr,length:1})}return Ot},[]),ht=qr.sort(function(Ot,Gt){return Gt.length-Ot.length})[0],It=void 0;if(ht&&ht.length>1){var we=De.slice(0,ht.index),mt=De.slice(ht.index+ht.length);It=we.join(":")+"::"+mt.join(":")}else It=De.join(":");return _&&(It+="%"+_),It}else return T}var Tt=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,He="".match(/(){0}/)[1]===void 0;function pe(T){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I={},D=S.iri!==!1?d:l;S.reference==="suffix"&&(T=(S.scheme?S.scheme+":":"")+"//"+T);var M=T.match(Tt);if(M){He?(I.scheme=M[1],I.userinfo=M[3],I.host=M[4],I.port=parseInt(M[5],10),I.path=M[6]||"",I.query=M[7],I.fragment=M[8],isNaN(I.port)&&(I.port=M[5])):(I.scheme=M[1]||void 0,I.userinfo=T.indexOf("@")!==-1?M[3]:void 0,I.host=T.indexOf("//")!==-1?M[4]:void 0,I.port=parseInt(M[5],10),I.path=M[6]||"",I.query=T.indexOf("?")!==-1?M[7]:void 0,I.fragment=T.indexOf("#")!==-1?M[8]:void 0,isNaN(I.port)&&(I.port=T.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?M[4]:void 0)),I.host&&(I.host=Se(Fe(I.host,D),D)),I.scheme===void 0&&I.userinfo===void 0&&I.host===void 0&&I.port===void 0&&!I.path&&I.query===void 0?I.reference="same-document":I.scheme===void 0?I.reference="relative":I.fragment===void 0?I.reference="absolute":I.reference="uri",S.reference&&S.reference!=="suffix"&&S.reference!==I.reference&&(I.error=I.error||"URI is not a "+S.reference+" reference.");var _=ge[(S.scheme||I.scheme||"").toLowerCase()];if(!S.unicodeSupport&&(!_||!_.unicodeSupport)){if(I.host&&(S.domainHost||_&&_.domainHost))try{I.host=te.toASCII(I.host.replace(D.PCT_ENCODED,ke).toLowerCase())}catch(ee){I.error=I.error||"Host's domain name can not be converted to ASCII via punycode: "+ee}xt(I,l)}else xt(I,D);_&&_.parse&&_.parse(I,S)}else I.error=I.error||"URI can not be parsed.";return I}function pr(T,S){var I=S.iri!==!1?d:l,D=[];return T.userinfo!==void 0&&(D.push(T.userinfo),D.push("@")),T.host!==void 0&&D.push(Se(Fe(String(T.host),I),I).replace(I.IPV6ADDRESS,function(M,_,ee){return"["+_+(ee?"%25"+ee:"")+"]"})),(typeof T.port=="number"||typeof T.port=="string")&&(D.push(":"),D.push(String(T.port))),D.length?D.join(""):void 0}var Kt=/^\.\.?\//,Mr=/^\/\.(\/|$)/,$r=/^\/\.\.(\/|$)/,Ke=/^\/?(?:.|\n)*?(?=\/|$)/;function Ft(T){for(var S=[];T.length;)if(T.match(Kt))T=T.replace(Kt,"");else if(T.match(Mr))T=T.replace(Mr,"/");else if(T.match($r))T=T.replace($r,"/"),S.pop();else if(T==="."||T==="..")T="";else{var I=T.match(Ke);if(I){var D=I[0];T=T.slice(D.length),S.push(D)}else throw new Error("Unexpected dot segment condition")}return S.join("")}function at(T){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=S.iri?d:l,D=[],M=ge[(S.scheme||T.scheme||"").toLowerCase()];if(M&&M.serialize&&M.serialize(T,S),T.host&&!I.IPV6ADDRESS.test(T.host)){if(S.domainHost||M&&M.domainHost)try{T.host=S.iri?te.toUnicode(T.host):te.toASCII(T.host.replace(I.PCT_ENCODED,ke).toLowerCase())}catch(de){T.error=T.error||"Host's domain name can not be converted to "+(S.iri?"Unicode":"ASCII")+" via punycode: "+de}}xt(T,I),S.reference!=="suffix"&&T.scheme&&(D.push(T.scheme),D.push(":"));var _=pr(T,S);if(_!==void 0&&(S.reference!=="suffix"&&D.push("//"),D.push(_),T.path&&T.path.charAt(0)!=="/"&&D.push("/")),T.path!==void 0){var ee=T.path;!S.absolutePath&&(!M||!M.absolutePath)&&(ee=Ft(ee)),_===void 0&&(ee=ee.replace(/^\/\//,"/%2F")),D.push(ee)}return T.query!==void 0&&(D.push("?"),D.push(T.query)),T.fragment!==void 0&&(D.push("#"),D.push(T.fragment)),D.join("")}function tt(T,S){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments[3],M={};return D||(T=pe(at(T,I),I),S=pe(at(S,I),I)),I=I||{},!I.tolerant&&S.scheme?(M.scheme=S.scheme,M.userinfo=S.userinfo,M.host=S.host,M.port=S.port,M.path=Ft(S.path||""),M.query=S.query):(S.userinfo!==void 0||S.host!==void 0||S.port!==void 0?(M.userinfo=S.userinfo,M.host=S.host,M.port=S.port,M.path=Ft(S.path||""),M.query=S.query):(S.path?(S.path.charAt(0)==="/"?M.path=Ft(S.path):((T.userinfo!==void 0||T.host!==void 0||T.port!==void 0)&&!T.path?M.path="/"+S.path:T.path?M.path=T.path.slice(0,T.path.lastIndexOf("/")+1)+S.path:M.path=S.path,M.path=Ft(M.path)),M.query=S.query):(M.path=T.path,S.query!==void 0?M.query=S.query:M.query=T.query),M.userinfo=T.userinfo,M.host=T.host,M.port=T.port),M.scheme=T.scheme),M.fragment=S.fragment,M}function Ut(T,S,I){var D=s({scheme:"null"},I);return at(tt(pe(T,D),pe(S,D),D,!0),D)}function ft(T,S){return typeof T=="string"?T=at(pe(T,S),S):a(T)==="object"&&(T=pe(at(T,S),S)),T}function la(T,S,I){return typeof T=="string"?T=at(pe(T,I),I):a(T)==="object"&&(T=at(T,I)),typeof S=="string"?S=at(pe(S,I),I):a(S)==="object"&&(S=at(S,I)),T===S}function En(T,S){return T&&T.toString().replace(!S||!S.iri?l.ESCAPE:d.ESCAPE,Te)}function Mt(T,S){return T&&T.toString().replace(!S||!S.iri?l.PCT_ENCODED:d.PCT_ENCODED,ke)}var Di={scheme:"http",domainHost:!0,parse:function(S,I){return S.host||(S.error=S.error||"HTTP URIs must have a host."),S},serialize:function(S,I){var D=String(S.scheme).toLowerCase()==="https";return(S.port===(D?443:80)||S.port==="")&&(S.port=void 0),S.path||(S.path="/"),S}},Io={scheme:"https",domainHost:Di.domainHost,parse:Di.parse,serialize:Di.serialize};function Oo(T){return typeof T.secure=="boolean"?T.secure:String(T.scheme).toLowerCase()==="wss"}var Ni={scheme:"ws",domainHost:!0,parse:function(S,I){var D=S;return D.secure=Oo(D),D.resourceName=(D.path||"/")+(D.query?"?"+D.query:""),D.path=void 0,D.query=void 0,D},serialize:function(S,I){if((S.port===(Oo(S)?443:80)||S.port==="")&&(S.port=void 0),typeof S.secure=="boolean"&&(S.scheme=S.secure?"wss":"ws",S.secure=void 0),S.resourceName){var D=S.resourceName.split("?"),M=u(D,2),_=M[0],ee=M[1];S.path=_&&_!=="/"?_:void 0,S.query=ee,S.resourceName=void 0}return S.fragment=void 0,S}},Po={scheme:"wss",domainHost:Ni.domainHost,parse:Ni.parse,serialize:Ni.serialize},uf={},cf=!0,Ao="[A-Za-z0-9\\-\\.\\_\\~"+(cf?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Ht="[0-9A-Fa-f]",pf=r(r("%[EFef]"+Ht+"%"+Ht+Ht+"%"+Ht+Ht)+"|"+r("%[89A-Fa-f]"+Ht+"%"+Ht+Ht)+"|"+r("%"+Ht+Ht)),ff="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",hf="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",mf=e(hf,'[\\"\\\\]'),yf="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",gf=new RegExp(Ao,"g"),ti=new RegExp(pf,"g"),bf=new RegExp(e("[^]",ff,"[\\.]",'[\\"]',mf),"g"),Eo=new RegExp(e("[^]",Ao,yf),"g"),vf=Eo;function Ln(T){var S=ke(T);return S.match(gf)?S:T}var Lo={scheme:"mailto",parse:function(S,I){var D=S,M=D.to=D.path?D.path.split(","):[];if(D.path=void 0,D.query){for(var _=!1,ee={},de=D.query.split("&"),he=0,je=de.length;he<je;++he){var se=de[he].split("=");switch(se[0]){case"to":for(var Le=se[1].split(","),We=0,Oe=Le.length;We<Oe;++We)M.push(Le[We]);break;case"subject":D.subject=Mt(se[1],I);break;case"body":D.body=Mt(se[1],I);break;default:_=!0,ee[Mt(se[0],I)]=Mt(se[1],I);break}}_&&(D.headers=ee)}D.query=void 0;for(var ce=0,De=M.length;ce<De;++ce){var be=M[ce].split("@");if(be[0]=Mt(be[0]),I.unicodeSupport)be[1]=Mt(be[1],I).toLowerCase();else try{be[1]=te.toASCII(Mt(be[1],I).toLowerCase())}catch(qr){D.error=D.error||"Email address's domain name can not be converted to ASCII via punycode: "+qr}M[ce]=be.join("@")}return D},serialize:function(S,I){var D=S,M=n(S.to);if(M){for(var _=0,ee=M.length;_<ee;++_){var de=String(M[_]),he=de.lastIndexOf("@"),je=de.slice(0,he).replace(ti,Ln).replace(ti,i).replace(bf,Te),se=de.slice(he+1);try{se=I.iri?te.toUnicode(se):te.toASCII(Mt(se,I).toLowerCase())}catch(ce){D.error=D.error||"Email address's domain name can not be converted to "+(I.iri?"Unicode":"ASCII")+" via punycode: "+ce}M[_]=je+"@"+se}D.path=M.join(",")}var Le=S.headers=S.headers||{};S.subject&&(Le.subject=S.subject),S.body&&(Le.body=S.body);var We=[];for(var Oe in Le)Le[Oe]!==uf[Oe]&&We.push(Oe.replace(ti,Ln).replace(ti,i).replace(Eo,Te)+"="+Le[Oe].replace(ti,Ln).replace(ti,i).replace(vf,Te));return We.length&&(D.query=We.join("&")),D}},Sf=/^([^\:]+)\:(.*)/,Do={scheme:"urn",parse:function(S,I){var D=S.path&&S.path.match(Sf),M=S;if(D){var _=I.scheme||M.scheme||"urn",ee=D[1].toLowerCase(),de=D[2],he=_+":"+(I.nid||ee),je=ge[he];M.nid=ee,M.nss=de,M.path=void 0,je&&(M=je.parse(M,I))}else M.error=M.error||"URN can not be parsed.";return M},serialize:function(S,I){var D=I.scheme||S.scheme||"urn",M=S.nid,_=D+":"+(I.nid||M),ee=ge[_];ee&&(S=ee.serialize(S,I));var de=S,he=S.nss;return de.path=(M||I.nid)+":"+he,de}},wf=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,No={scheme:"urn:uuid",parse:function(S,I){var D=S;return D.uuid=D.nss,D.nss=void 0,!I.tolerant&&(!D.uuid||!D.uuid.match(wf))&&(D.error=D.error||"UUID is not valid."),D},serialize:function(S,I){var D=S;return D.nss=(S.uuid||"").toLowerCase(),D}};ge[Di.scheme]=Di,ge[Io.scheme]=Io,ge[Ni.scheme]=Ni,ge[Po.scheme]=Po,ge[Lo.scheme]=Lo,ge[Do.scheme]=Do,ge[No.scheme]=No,t.SCHEMES=ge,t.pctEncChar=Te,t.pctDecChars=ke,t.parse=pe,t.removeDotSegments=Ft,t.serialize=at,t.resolveComponents=tt,t.resolve=Ut,t.normalize=ft,t.equal=la,t.escapeComponent=En,t.unescapeComponent=Mt,Object.defineProperty(t,"__esModule",{value:!0})}))});var Qa=K((XC,Yd)=>{"use strict";Yd.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var a,i,n;if(Array.isArray(e)){if(a=e.length,a!=r.length)return!1;for(i=a;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(n=Object.keys(e),a=n.length,a!==Object.keys(r).length)return!1;for(i=a;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,n[i]))return!1;for(i=a;i--!==0;){var s=n[i];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}});var eu=K((ex,Xd)=>{"use strict";Xd.exports=function(e){for(var r=0,a=e.length,i=0,n;i<a;)r++,n=e.charCodeAt(i++),n>=55296&&n<=56319&&i<a&&(n=e.charCodeAt(i),(n&64512)==56320&&i++);return r}});var Gr=K((tx,iu)=>{"use strict";iu.exports={copy:Fy,checkDataType:Fs,checkDataTypes:Iy,coerceToTypes:Oy,toHash:Os,getProperty:Ps,escapeQuotes:As,equal:Qa(),ucs2length:eu(),varOccurences:Ey,varReplace:Ly,schemaHasRules:Dy,schemaHasRulesExcept:Ny,schemaUnknownRules:By,toQuotedString:Is,getPathExpr:My,getPath:$y,getData:ky,unescapeFragment:jy,unescapeJsonPointer:Ls,escapeFragment:Wy,escapeJsonPointer:Es};function Fy(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function Fs(t,e,r,a){var i=a?" !== ":" === ",n=a?" || ":" && ",s=a?"!":"",o=a?"":"!";switch(t){case"null":return e+i+"null";case"array":return s+"Array.isArray("+e+")";case"object":return"("+s+e+n+"typeof "+e+i+'"object"'+n+o+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+i+'"number"'+n+o+"("+e+" % 1)"+n+e+i+e+(r?n+s+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+i+'"'+t+'"'+(r?n+s+"isFinite("+e+")":"")+")";default:return"typeof "+e+i+'"'+t+'"'}}function Iy(t,e,r){switch(t.length){case 1:return Fs(t[0],e,r,!0);default:var a="",i=Os(t);i.array&&i.object&&(a=i.null?"(":"(!"+e+" || ",a+="typeof "+e+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer;for(var n in i)a+=(a?" && ":"")+Fs(n,e,r,!0);return a}}var tu=Os(["string","number","integer","boolean","null"]);function Oy(t,e){if(Array.isArray(e)){for(var r=[],a=0;a<e.length;a++){var i=e[a];(tu[i]||t==="array"&&i==="array")&&(r[r.length]=i)}if(r.length)return r}else{if(tu[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Os(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var Py=/^[a-z$_][a-z$_0-9]*$/i,Ay=/'|\\/g;function Ps(t){return typeof t=="number"?"["+t+"]":Py.test(t)?"."+t:"['"+As(t)+"']"}function As(t){return t.replace(Ay,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function Ey(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function Ly(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function Dy(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function Ny(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var a in t)if(a!=r&&e[a])return!0}function By(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function Is(t){return"'"+As(t)+"'"}function My(t,e,r,a){var i=r?"'/' + "+e+(a?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):a?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return ru(t,i)}function $y(t,e,r){var a=Is(r?"/"+Es(e):Ps(e));return ru(t,a)}var qy=/^\/(?:[^~]|~0|~1)*$/,Ry=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ky(t,e,r){var a,i,n,s;if(t==="")return"rootData";if(t[0]=="/"){if(!qy.test(t))throw new Error("Invalid JSON-pointer: "+t);i=t,n="rootData"}else{if(s=t.match(Ry),!s)throw new Error("Invalid JSON-pointer: "+t);if(a=+s[1],i=s[2],i=="#"){if(a>=e)throw new Error("Cannot access property/index "+a+" levels up, current level is "+e);return r[e-a]}if(a>e)throw new Error("Cannot access data "+a+" levels up, current level is "+e);if(n="data"+(e-a||""),!i)return n}for(var o=n,l=i.split("/"),d=0;d<l.length;d++){var u=l[d];u&&(n+=Ps(Ls(u)),o+=" && "+n)}return o}function ru(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function jy(t){return Ls(decodeURIComponent(t))}function Wy(t){return encodeURIComponent(Es(t))}function Es(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Ls(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var Ds=K((rx,au)=>{"use strict";var Vy=Gr();au.exports=_y;function _y(t){Vy.copy(t,this)}});var su=K((ix,nu)=>{"use strict";var Cr=nu.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var a=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Za(e,a,i,t,"",t)};Cr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Cr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Cr.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Cr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Za(t,e,r,a,i,n,s,o,l,d){if(a&&typeof a=="object"&&!Array.isArray(a)){e(a,i,n,s,o,l,d);for(var u in a){var c=a[u];if(Array.isArray(c)){if(u in Cr.arrayKeywords)for(var f=0;f<c.length;f++)Za(t,e,r,c[f],i+"/"+u+"/"+f,n,i,u,a,f)}else if(u in Cr.propsKeywords){if(c&&typeof c=="object")for(var p in c)Za(t,e,r,c[p],i+"/"+u+"/"+zy(p),n,i,u,a,p)}else(u in Cr.keywords||t.allKeys&&!(u in Cr.skipKeywords))&&Za(t,e,r,c,i+"/"+u,n,i,u,a)}r(a,i,n,s,o,l,d)}}function zy(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var tn=K((ax,uu)=>{"use strict";var Ki=Jd(),ou=Qa(),Xa=Gr(),Ka=Ds(),Uy=su();uu.exports=Tr;Tr.normalizeId=xr;Tr.fullPath=Ja;Tr.url=Ya;Tr.ids=Ky;Tr.inlineRef=Ns;Tr.schema=en;function Tr(t,e,r){var a=this._refs[r];if(typeof a=="string")if(this._refs[a])a=this._refs[a];else return Tr.call(this,t,e,a);if(a=a||this._schemas[r],a instanceof Ka)return Ns(a.schema,this._opts.inlineRefs)?a.schema:a.validate||this._compile(a);var i=en.call(this,e,r),n,s,o;return i&&(n=i.schema,e=i.root,o=i.baseId),n instanceof Ka?s=n.validate||t.call(this,n.schema,e,void 0,o):n!==void 0&&(s=Ns(n,this._opts.inlineRefs)?n:t.call(this,n,e,void 0,o)),s}function en(t,e){var r=Ki.parse(e),a=du(r),i=Ja(this._getId(t.schema));if(Object.keys(t.schema).length===0||a!==i){var n=xr(a),s=this._refs[n];if(typeof s=="string")return Hy.call(this,t,s,r);if(s instanceof Ka)s.validate||this._compile(s),t=s;else if(s=this._schemas[n],s instanceof Ka){if(s.validate||this._compile(s),n==xr(e))return{schema:s,root:t,baseId:i};t=s}else return;if(!t.schema)return;i=Ja(this._getId(t.schema))}return lu.call(this,r,i,t.schema,t)}function Hy(t,e,r){var a=en.call(this,t,e);if(a){var i=a.schema,n=a.baseId;t=a.root;var s=this._getId(i);return s&&(n=Ya(n,s)),lu.call(this,r,n,i,t)}}var Gy=Xa.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function lu(t,e,r,a){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var i=t.fragment.split("/"),n=1;n<i.length;n++){var s=i[n];if(s){if(s=Xa.unescapeFragment(s),r=r[s],r===void 0)break;var o;if(!Gy[s]&&(o=this._getId(r),o&&(e=Ya(e,o)),r.$ref)){var l=Ya(e,r.$ref),d=en.call(this,a,l);d&&(r=d.schema,a=d.root,e=d.baseId)}}}if(r!==void 0&&r!==a.schema)return{schema:r,root:a,baseId:e}}}var Qy=Xa.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function Ns(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return Bs(t);if(e)return Ms(t)<=e}function Bs(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!Bs(e))return!1}else for(var a in t)if(a=="$ref"||(e=t[a],typeof e=="object"&&!Bs(e)))return!1;return!0}function Ms(t){var e=0,r;if(Array.isArray(t)){for(var a=0;a<t.length;a++)if(r=t[a],typeof r=="object"&&(e+=Ms(r)),e==1/0)return 1/0}else for(var i in t){if(i=="$ref")return 1/0;if(Qy[i])e++;else if(r=t[i],typeof r=="object"&&(e+=Ms(r)+1),e==1/0)return 1/0}return e}function Ja(t,e){e!==!1&&(t=xr(t));var r=Ki.parse(t);return du(r)}function du(t){return Ki.serialize(t).split("#")[0]+"#"}var Zy=/#\/?$/;function xr(t){return t?t.replace(Zy,""):""}function Ya(t,e){return e=xr(e),Ki.resolve(t,e)}function Ky(t){var e=xr(this._getId(t)),r={"":e},a={"":Ja(e,!1)},i={},n=this;return Uy(t,{allKeys:!0},function(s,o,l,d,u,c,f){if(o!==""){var p=n._getId(s),h=r[d],m=a[d]+"/"+u;if(f!==void 0&&(m+="/"+(typeof f=="number"?f:Xa.escapeFragment(f))),typeof p=="string"){p=h=xr(h?Ki.resolve(h,p):p);var y=n._refs[p];if(typeof y=="string"&&(y=n._refs[y]),y&&y.schema){if(!ou(s,y.schema))throw new Error('id "'+p+'" resolves to more than one schema')}else if(p!=xr(m))if(p[0]=="#"){if(i[p]&&!ou(s,i[p]))throw new Error('id "'+p+'" resolves to more than one schema');i[p]=s}else n._refs[p]=m}r[o]=h,a[o]=m}}),i}});var rn=K((nx,pu)=>{"use strict";var $s=tn();pu.exports={Validation:cu(Jy),MissingRef:cu(qs)};function Jy(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}qs.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function qs(t,e,r){this.message=r||qs.message(t,e),this.missingRef=$s.url(t,e),this.missingSchema=$s.normalizeId($s.fullPath(this.missingRef))}function cu(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var Rs=K((sx,fu)=>{"use strict";fu.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,a=e.cmp&&(function(n){return function(s){return function(o,l){var d={key:o,value:s[o]},u={key:l,value:s[l]};return n(d,u)}}})(e.cmp),i=[];return(function n(s){if(s&&s.toJSON&&typeof s.toJSON=="function"&&(s=s.toJSON()),s!==void 0){if(typeof s=="number")return isFinite(s)?""+s:"null";if(typeof s!="object")return JSON.stringify(s);var o,l;if(Array.isArray(s)){for(l="[",o=0;o<s.length;o++)o&&(l+=","),l+=n(s[o])||"null";return l+"]"}if(s===null)return"null";if(i.indexOf(s)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var d=i.push(s)-1,u=Object.keys(s).sort(a&&a(s));for(l="",o=0;o<u.length;o++){var c=u[o],f=n(s[c]);f&&(l&&(l+=","),l+=JSON.stringify(c)+":"+f)}return i.splice(d,1),"{"+l+"}"}})(t)}});var ks=K((ox,hu)=>{"use strict";hu.exports=function(e,r,a){var i="",n=e.schema.$async===!0,s=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),o=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var d="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(d);else throw new Error(d)}}if(e.isTop&&(i+=" var validate = ",n&&(e.async=!0,i+="async "),i+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",o&&(e.opts.sourceCode||e.opts.processCode)&&(i+=" "+("/*# sourceURL="+o+" */")+" ")),typeof e.schema=="boolean"||!(s||e.schema.$ref)){var r="false schema",u=e.level,c=e.dataLevel,f=e.schema[r],p=e.schemaPath+e.util.getProperty(r),h=e.errSchemaPath+"/"+r,F=!e.opts.allErrors,L,m="data"+(c||""),x="valid"+u;if(e.schema===!1){e.isTop?F=!0:i+=" var "+x+" = false; ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'boolean schema is false' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?n?i+=" return data; ":i+=" validate.errors = null; return true; ":i+=" var "+x+" = true; ";return e.isTop&&(i+=" }; return validate; "),i}if(e.isTop){var v=e.isTop,u=e.level=0,c=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var w="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}i+=" var vErrors = null; ",i+=" var errors = 0; ",i+=" if (rootData === undefined) rootData = data; "}else{var u=e.level,c=e.dataLevel,m="data"+(c||"");if(o&&(e.baseId=e.resolve.url(e.baseId,o)),n&&!e.async)throw new Error("async schema in sync schema");i+=" var errs_"+u+" = errors;"}var x="valid"+u,F=!e.opts.allErrors,A="",q="",L,P=e.schema.type,B=Array.isArray(P);if(P&&e.opts.nullable&&e.schema.nullable===!0&&(B?P.indexOf("null")==-1&&(P=P.concat("null")):P!="null"&&(P=[P,"null"],B=!0)),B&&P.length==1&&(P=P[0],B=!1),e.schema.$ref&&s){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(s=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(i+=" "+e.RULES.all.$comment.code(e,"$comment")),P){if(e.opts.coerceTypes)var N=e.util.coerceToTypes(e.opts.coerceTypes,P);var R=e.RULES.types[P];if(N||B||R===!0||R&&!Ke(R)){var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",p=e.schemaPath+".type",h=e.errSchemaPath+"/type",$=B?"checkDataTypes":"checkDataType";if(i+=" if ("+e.util[$](P,m,e.opts.strictNumbers,!0)+") { ",N){var E="dataType"+u,k="coerced"+u;i+=" var "+E+" = typeof "+m+"; var "+k+" = undefined; ",e.opts.coerceTypes=="array"&&(i+=" if ("+E+" == 'object' && Array.isArray("+m+") && "+m+".length == 1) { "+m+" = "+m+"[0]; "+E+" = typeof "+m+"; if ("+e.util.checkDataType(e.schema.type,m,e.opts.strictNumbers)+") "+k+" = "+m+"; } "),i+=" if ("+k+" !== undefined) ; ";var Q=N;if(Q)for(var H,V=-1,Z=Q.length-1;V<Z;)H=Q[V+=1],H=="string"?i+=" else if ("+E+" == 'number' || "+E+" == 'boolean') "+k+" = '' + "+m+"; else if ("+m+" === null) "+k+" = ''; ":H=="number"||H=="integer"?(i+=" else if ("+E+" == 'boolean' || "+m+" === null || ("+E+" == 'string' && "+m+" && "+m+" == +"+m+" ",H=="integer"&&(i+=" && !("+m+" % 1)"),i+=")) "+k+" = +"+m+"; "):H=="boolean"?i+=" else if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+k+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+k+" = true; ":H=="null"?i+=" else if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+k+" = null; ":e.opts.coerceTypes=="array"&&H=="array"&&(i+=" else if ("+E+" == 'string' || "+E+" == 'number' || "+E+" == 'boolean' || "+m+" == null) "+k+" = ["+m+"]; ");i+=" else { ";var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",B?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",B?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } if ("+k+" !== undefined) { ";var z=c?"data"+(c-1||""):"parentData",ne=c?e.dataPathArr[c]:"parentDataProperty";i+=" "+m+" = "+k+"; ",c||(i+="if ("+z+" !== undefined)"),i+=" "+z+"["+ne+"] = "+k+"; } "}else{var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",B?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",B?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" } "}}if(e.schema.$ref&&!s)i+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",F&&(i+=" } if (errors === ",v?i+="0":i+="errs_"+u,i+=") { ",q+="}");else{var Re=e.RULES;if(Re){for(var R,_e=-1,te=Re.length-1;_e<te;)if(R=Re[_e+=1],Ke(R)){if(R.type&&(i+=" if ("+e.util.checkDataType(R.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(R.type=="object"&&e.schema.properties){var f=e.schema.properties,ge=Object.keys(f),Te=ge;if(Te)for(var ke,xt=-1,it=Te.length-1;xt<it;){ke=Te[xt+=1];var Fe=f[ke];if(Fe.default!==void 0){var Se=m+e.util.getProperty(ke);if(e.compositeRule){if(e.opts.strictDefaults){var w="default is ignored for: "+Se;if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}}else i+=" if ("+Se+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+Se+" === null || "+Se+" === '' "),i+=" ) "+Se+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Fe.default)+" ":i+=" "+JSON.stringify(Fe.default)+" ",i+="; "}}}else if(R.type=="array"&&Array.isArray(e.schema.items)){var Tt=e.schema.items;if(Tt){for(var Fe,V=-1,He=Tt.length-1;V<He;)if(Fe=Tt[V+=1],Fe.default!==void 0){var Se=m+"["+V+"]";if(e.compositeRule){if(e.opts.strictDefaults){var w="default is ignored for: "+Se;if(e.opts.strictDefaults==="log")e.logger.warn(w);else throw new Error(w)}}else i+=" if ("+Se+" === undefined ",e.opts.useDefaults=="empty"&&(i+=" || "+Se+" === null || "+Se+" === '' "),i+=" ) "+Se+" = ",e.opts.useDefaults=="shared"?i+=" "+e.useDefault(Fe.default)+" ":i+=" "+JSON.stringify(Fe.default)+" ",i+="; "}}}}var pe=R.rules;if(pe){for(var pr,Kt=-1,Mr=pe.length-1;Kt<Mr;)if(pr=pe[Kt+=1],Ft(pr)){var $r=pr.code(e,pr.keyword,R.type);$r&&(i+=" "+$r+" ",F&&(A+="}"))}}if(F&&(i+=" "+A+" ",A=""),R.type&&(i+=" } ",P&&P===R.type&&!N)){i+=" else { ";var p=e.schemaPath+".type",h=e.errSchemaPath+"/type",y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(L||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(h)+" , params: { type: '",B?i+=""+P.join(","):i+=""+P,i+="' } ",e.opts.messages!==!1&&(i+=" , message: 'should be ",B?i+=""+P.join(","):i+=""+P,i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+p+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&F?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}F&&(i+=" if (errors === ",v?i+="0":i+="errs_"+u,i+=") { ",q+="}")}}}F&&(i+=" "+q+" "),v?(n?(i+=" if (errors === 0) return data; ",i+=" else throw new ValidationError(vErrors); "):(i+=" validate.errors = vErrors; ",i+=" return errors === 0; "),i+=" }; return validate;"):i+=" var "+x+" = errors === errs_"+u+";";function Ke(tt){for(var Ut=tt.rules,ft=0;ft<Ut.length;ft++)if(Ft(Ut[ft]))return!0}function Ft(tt){return e.schema[tt.keyword]!==void 0||tt.implements&&at(tt)}function at(tt){for(var Ut=tt.implements,ft=0;ft<Ut.length;ft++)if(e.schema[Ut[ft]]!==void 0)return!0}return i}});var vu=K((lx,bu)=>{"use strict";var an=tn(),sn=Gr(),yu=rn(),Yy=Rs(),mu=ks(),Xy=sn.ucs2length,eg=Qa(),tg=yu.Validation;bu.exports=js;function js(t,e,r,a){var i=this,n=this._opts,s=[void 0],o={},l=[],d={},u=[],c={},f=[];e=e||{schema:t,refVal:s,refs:o};var p=rg.call(this,t,e,a),h=this._compilations[p.index];if(p.compiling)return h.callValidate=w;var m=this._formats,y=this.RULES;try{var g=x(t,e,r,a);h.validate=g;var v=h.callValidate;return v&&(v.schema=g.schema,v.errors=null,v.refs=g.refs,v.refVal=g.refVal,v.root=g.root,v.$async=g.$async,n.sourceCode&&(v.source=g.source)),g}finally{ig.call(this,t,e,a)}function w(){var $=h.validate,E=$.apply(this,arguments);return w.errors=$.errors,E}function x($,E,k,Q){var H=!E||E&&E.schema==$;if(E.schema!=e.schema)return js.call(i,$,E,k,Q);var V=$.$async===!0,Z=mu({isTop:!0,schema:$,isRoot:H,baseId:Q,root:E,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:yu.MissingRef,RULES:y,validate:mu,util:sn,resolve:an,resolveRef:F,usePattern:B,useDefault:N,useCustomRule:R,opts:n,formats:m,logger:i.logger,self:i});Z=nn(s,sg)+nn(l,ag)+nn(u,ng)+nn(f,og)+Z,n.processCode&&(Z=n.processCode(Z,$));var z;try{var ne=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",Z);z=ne(i,y,m,e,s,u,f,eg,Xy,tg),s[0]=z}catch(Re){throw i.logger.error("Error compiling schema, function code:",Z),Re}return z.schema=$,z.errors=null,z.refs=o,z.refVal=s,z.root=H?z:E,V&&(z.$async=!0),n.sourceCode===!0&&(z.source={code:Z,patterns:l,defaults:u}),z}function F($,E,k){E=an.url($,E);var Q=o[E],H,V;if(Q!==void 0)return H=s[Q],V="refVal["+Q+"]",P(H,V);if(!k&&e.refs){var Z=e.refs[E];if(Z!==void 0)return H=e.refVal[Z],V=A(E,H),P(H,V)}V=A(E);var z=an.call(i,x,e,E);if(z===void 0){var ne=r&&r[E];ne&&(z=an.inlineRef(ne,n.inlineRefs)?ne:js.call(i,ne,e,r,$))}if(z===void 0)q(E);else return L(E,z),P(z,V)}function A($,E){var k=s.length;return s[k]=E,o[$]=k,"refVal"+k}function q($){delete o[$]}function L($,E){var k=o[$];s[k]=E}function P($,E){return typeof $=="object"||typeof $=="boolean"?{code:E,schema:$,inline:!0}:{code:E,$async:$&&!!$.$async}}function B($){var E=d[$];return E===void 0&&(E=d[$]=l.length,l[E]=$),"pattern"+E}function N($){switch(typeof $){case"boolean":case"number":return""+$;case"string":return sn.toQuotedString($);case"object":if($===null)return"null";var E=Yy($),k=c[E];return k===void 0&&(k=c[E]=u.length,u[k]=$),"default"+k}}function R($,E,k,Q){if(i._opts.validateSchema!==!1){var H=$.definition.dependencies;if(H&&!H.every(function(Te){return Object.prototype.hasOwnProperty.call(k,Te)}))throw new Error("parent schema must have all required keywords: "+H.join(","));var V=$.definition.validateSchema;if(V){var Z=V(E);if(!Z){var z="keyword schema is invalid: "+i.errorsText(V.errors);if(i._opts.validateSchema=="log")i.logger.error(z);else throw new Error(z)}}}var ne=$.definition.compile,Re=$.definition.inline,_e=$.definition.macro,te;if(ne)te=ne.call(i,E,k,Q);else if(_e)te=_e.call(i,E,k,Q),n.validateSchema!==!1&&i.validateSchema(te,!0);else if(Re)te=Re.call(i,Q,$.keyword,E,k);else if(te=$.definition.validate,!te)return;if(te===void 0)throw new Error('custom keyword "'+$.keyword+'"failed to compile');var ge=f.length;return f[ge]=te,{code:"customRule"+ge,validate:te}}}function rg(t,e,r){var a=gu.call(this,t,e,r);return a>=0?{index:a,compiling:!0}:(a=this._compilations.length,this._compilations[a]={schema:t,root:e,baseId:r},{index:a,compiling:!1})}function ig(t,e,r){var a=gu.call(this,t,e,r);a>=0&&this._compilations.splice(a,1)}function gu(t,e,r){for(var a=0;a<this._compilations.length;a++){var i=this._compilations[a];if(i.schema==t&&i.root==e&&i.baseId==r)return a}return-1}function ag(t,e){return"var pattern"+t+" = new RegExp("+sn.toQuotedString(e[t])+");"}function ng(t){return"var default"+t+" = defaults["+t+"];"}function sg(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function og(t){return"var customRule"+t+" = customRules["+t+"];"}function nn(t,e){if(!t.length)return"";for(var r="",a=0;a<t.length;a++)r+=e(a,t);return r}});var wu=K((dx,Su)=>{"use strict";var on=Su.exports=function(){this._cache={}};on.prototype.put=function(e,r){this._cache[e]=r};on.prototype.get=function(e){return this._cache[e]};on.prototype.del=function(e){delete this._cache[e]};on.prototype.clear=function(){this._cache={}}});var Nu=K((ux,Du)=>{"use strict";var lg=Gr(),dg=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ug=[0,31,28,31,30,31,30,31,31,30,31,30,31],cg=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,Cu=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,pg=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,fg=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,xu=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Tu=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Fu=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Iu=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Ou=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Pu=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Du.exports=ln;function ln(t){return t=t=="full"?"full":"fast",lg.copy(ln[t])}ln.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":xu,url:Tu,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:Cu,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Lu,uuid:Fu,"json-pointer":Iu,"json-pointer-uri-fragment":Ou,"relative-json-pointer":Pu};ln.full={date:Au,time:Eu,"date-time":yg,uri:bg,"uri-reference":fg,"uri-template":xu,url:Tu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:Cu,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:Lu,uuid:Fu,"json-pointer":Iu,"json-pointer-uri-fragment":Ou,"relative-json-pointer":Pu};function hg(t){return t%4===0&&(t%100!==0||t%400===0)}function Au(t){var e=t.match(dg);if(!e)return!1;var r=+e[1],a=+e[2],i=+e[3];return a>=1&&a<=12&&i>=1&&i<=(a==2&&hg(r)?29:ug[a])}function Eu(t,e){var r=t.match(cg);if(!r)return!1;var a=r[1],i=r[2],n=r[3],s=r[5];return(a<=23&&i<=59&&n<=59||a==23&&i==59&&n==60)&&(!e||s)}var mg=/t|\s/i;function yg(t){var e=t.split(mg);return e.length==2&&Au(e[0])&&Eu(e[1],!0)}var gg=/\/|:/;function bg(t){return gg.test(t)&&pg.test(t)}var vg=/[^\\]\\Z/;function Lu(t){if(vg.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var Mu=K((cx,Bu)=>{"use strict";Bu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.errSchemaPath+"/"+r,d=!e.opts.allErrors,u="data"+(s||""),c="valid"+n,f,p;if(o=="#"||o=="#/")e.isRoot?(f=e.async,p="validate"):(f=e.root.schema.$async===!0,p="root.refVal[0]");else{var h=e.resolveRef(e.baseId,o,e.isRoot);if(h===void 0){var m=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(m);var y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "),e.opts.verbose&&(i+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),i+=" } "):i+=" {} ";var g=i;i=y.pop(),!e.compositeRule&&d?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d&&(i+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(m),d&&(i+=" if (true) { ");else throw new e.MissingRefError(e.baseId,o,m)}else if(h.inline){var v=e.util.copy(e);v.level++;var w="valid"+v.level;v.schema=h.schema,v.schemaPath="",v.errSchemaPath=o;var x=e.validate(v).replace(/validate\.schema/g,h.code);i+=" "+x+" ",d&&(i+=" if ("+w+") { ")}else f=h.$async===!0||e.async&&h.$async!==!1,p=h.code}if(p){var y=y||[];y.push(i),i="",e.opts.passContext?i+=" "+p+".call(this, ":i+=" "+p+"( ",i+=" "+u+", (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var F=s?"data"+(s-1||""):"parentData",A=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+F+" , "+A+", rootData) ";var q=i;if(i=y.pop(),f){if(!e.async)throw new Error("async schema referenced by sync schema");d&&(i+=" var "+c+"; "),i+=" try { await "+q+"; ",d&&(i+=" "+c+" = true; "),i+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",d&&(i+=" "+c+" = false; "),i+=" } ",d&&(i+=" if ("+c+") { ")}else i+=" if (!"+q+") { if (vErrors === null) vErrors = "+p+".errors; else vErrors = vErrors.concat("+p+".errors); errors = vErrors.length; } ",d&&(i+=" else { ")}return i}});var qu=K((px,$u)=>{"use strict";$u.exports=function(e,r,a){var i=" ",n=e.schema[r],s=e.schemaPath+e.util.getProperty(r),o=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,d=e.util.copy(e),u="";d.level++;var c="valid"+d.level,f=d.baseId,p=!0,h=n;if(h)for(var m,y=-1,g=h.length-1;y<g;)m=h[y+=1],(e.opts.strictKeywords?typeof m=="object"&&Object.keys(m).length>0||m===!1:e.util.schemaHasRules(m,e.RULES.all))&&(p=!1,d.schema=m,d.schemaPath=s+"["+y+"]",d.errSchemaPath=o+"/"+y,i+=" "+e.validate(d)+" ",d.baseId=f,l&&(i+=" if ("+c+") { ",u+="}"));return l&&(p?i+=" if (true) { ":i+=" "+u.slice(0,-1)+" "),i}});var ku=K((fx,Ru)=>{"use strict";Ru.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g=o.every(function(L){return e.opts.strictKeywords?typeof L=="object"&&Object.keys(L).length>0||L===!1:e.util.schemaHasRules(L,e.RULES.all)});if(g){var v=h.baseId;i+=" var "+p+" = errors; var "+f+" = false; ";var w=e.compositeRule;e.compositeRule=h.compositeRule=!0;var x=o;if(x)for(var F,A=-1,q=x.length-1;A<q;)F=x[A+=1],h.schema=F,h.schemaPath=l+"["+A+"]",h.errSchemaPath=d+"/"+A,i+=" "+e.validate(h)+" ",h.baseId=v,i+=" "+f+" = "+f+" || "+y+"; if (!"+f+") { ",m+="}";e.compositeRule=h.compositeRule=w,i+=" "+m+" if (!"+f+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else u&&(i+=" if (true) { ");return i}});var Wu=K((hx,ju)=>{"use strict";ju.exports=function(e,r,a){var i=" ",n=e.schema[r],s=e.errSchemaPath+"/"+r,o=!e.opts.allErrors,l=e.util.toQuotedString(n);return e.opts.$comment===!0?i+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(i+=" self._opts.$comment("+l+", "+e.util.toQuotedString(s)+", validate.root.schema);"),i}});var _u=K((mx,Vu)=>{"use strict";Vu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,p||(i+=" var schema"+n+" = validate.schema"+l+";"),i+="var "+f+" = equal("+c+", schema"+n+"); if (!"+f+") { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValue: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to constant' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var y=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",u&&(i+=" else { "),i}});var Uu=K((yx,zu)=>{"use strict";zu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g="i"+n,v=h.dataLevel=e.dataLevel+1,w="data"+v,x=e.baseId,F=e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all);if(i+="var "+p+" = errors;var "+f+";",F){var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,i+=" var "+y+" = false; for (var "+g+" = 0; "+g+" < "+c+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var q=c+"["+g+"]";h.dataPathArr[v]=g;var L=e.validate(h);h.baseId=x,e.util.varOccurences(L,w)<2?i+=" "+e.util.varReplace(L,w,q)+" ":i+=" var "+w+" = "+q+"; "+L+" ",i+=" if ("+y+") break; } ",e.compositeRule=h.compositeRule=A,i+=" "+m+" if (!"+y+") {"}else i+=" if ("+c+".length == 0) {";var P=P||[];P.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should contain a valid item' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var B=i;return i=P.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+B+"]); ":i+=" validate.errors = ["+B+"]; return false; ":i+=" var err = "+B+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { ",F&&(i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } "),e.opts.allErrors&&(i+=" } "),i}});var Gu=K((gx,Hu)=>{"use strict";Hu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level,y={},g={},v=e.opts.ownProperties;for(A in o)if(A!="__proto__"){var w=o[A],x=Array.isArray(w)?g:y;x[A]=w}i+="var "+f+" = errors;";var F=e.errorPath;i+="var missing"+n+";";for(var A in g)if(x=g[A],x.length){if(i+=" if ( "+c+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "),u){i+=" && ( ";var q=x;if(q)for(var L,P=-1,B=q.length-1;P<B;){L=q[P+=1],P&&(i+=" || ");var N=e.util.getProperty(L),R=c+N;i+=" ( ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(L)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?L:N)+") ) "}i+=")) { ";var $="missing"+n,E="' + "+$+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(F,$,!0):F+" + "+$);var k=k||[];k.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+E+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Q=i;i=k.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Q+"]); ":i+=" validate.errors = ["+Q+"]; return false; ":i+=" var err = "+Q+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var H=x;if(H)for(var L,V=-1,Z=H.length-1;V<Z;){L=H[V+=1];var N=e.util.getProperty(L),E=e.util.escapeQuotes(L),R=c+N;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(F,L,e.opts.jsonPointers)),i+=" if ( "+R+" === undefined ",v&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(L)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { property: '"+e.util.escapeQuotes(A)+"', missingProperty: '"+E+"', depsCount: "+x.length+", deps: '"+e.util.escapeQuotes(x.length==1?x[0]:x.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",x.length==1?i+="property "+e.util.escapeQuotes(x[0]):i+="properties "+e.util.escapeQuotes(x.join(", ")),i+=" when property "+e.util.escapeQuotes(A)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",u&&(h+="}",i+=" else { ")}e.errorPath=F;var z=p.baseId;for(var A in y){var w=y[A];(e.opts.strictKeywords?typeof w=="object"&&Object.keys(w).length>0||w===!1:e.util.schemaHasRules(w,e.RULES.all))&&(i+=" "+m+" = true; if ( "+c+e.util.getProperty(A)+" !== undefined ",v&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(A)+"') "),i+=") { ",p.schema=w,p.schemaPath=l+e.util.getProperty(A),p.errSchemaPath=d+"/"+e.util.escapeFragment(A),i+=" "+e.validate(p)+" ",p.baseId=z,i+=" } ",u&&(i+=" if ("+m+") { ",h+="}"))}return u&&(i+=" "+h+" if ("+f+" == errors) {"),i}});var Zu=K((bx,Qu)=>{"use strict";Qu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var m="i"+n,y="schema"+n;p||(i+=" var "+y+" = validate.schema"+l+";"),i+="var "+f+";",p&&(i+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),i+=""+f+" = false;for (var "+m+"=0; "+m+"<"+y+".length; "+m+"++) if (equal("+c+", "+y+"["+m+"])) { "+f+" = true; break; }",p&&(i+=" } "),i+=" if (!"+f+") { ";var g=g||[];g.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { allowedValues: schema"+n+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var v=i;return i=g.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" }",u&&(i+=" else { "),i}});var Ju=K((vx,Ku)=>{"use strict";Ku.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||"");if(e.opts.format===!1)return u&&(i+=" if (true) { "),i;var f=e.opts.$data&&o&&o.$data,p;f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=e.opts.unknownFormats,m=Array.isArray(h);if(f){var y="format"+n,g="isObject"+n,v="formatType"+n;i+=" var "+y+" = formats["+p+"]; var "+g+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+v+" = "+g+" && "+y+".type || 'string'; if ("+g+") { ",e.async&&(i+=" var async"+n+" = "+y+".async; "),i+=" "+y+" = "+y+".validate; } if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" (",h!="ignore"&&(i+=" ("+p+" && !"+y+" ",m&&(i+=" && self._opts.unknownFormats.indexOf("+p+") == -1 "),i+=") || "),i+=" ("+y+" && "+v+" == '"+a+"' && !(typeof "+y+" == 'function' ? ",e.async?i+=" (async"+n+" ? await "+y+"("+c+") : "+y+"("+c+")) ":i+=" "+y+"("+c+") ",i+=" : "+y+".test("+c+"))))) {"}else{var y=e.formats[o];if(!y){if(h=="ignore")return e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"'),u&&(i+=" if (true) { "),i;if(m&&h.indexOf(o)>=0)return u&&(i+=" if (true) { "),i;throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}var g=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,v=g&&y.type||"string";if(g){var w=y.async===!0;y=y.validate}if(v!=a)return u&&(i+=" if (true) { "),i;if(w){if(!e.async)throw new Error("async format in sync schema");var x="formats"+e.util.getProperty(o)+".validate";i+=" if (!(await "+x+"("+c+"))) { "}else{i+=" if (! ";var x="formats"+e.util.getProperty(o);g&&(x+=".validate"),typeof y=="function"?i+=" "+x+"("+c+") ":i+=" "+x+".test("+c+") ",i+=") { "}}var F=F||[];F.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { format: ",f?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match format "`,f?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var A=i;return i=F.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+A+"]); ":i+=" validate.errors = ["+A+"]; return false; ":i+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}});var Xu=K((Sx,Yu)=>{"use strict";Yu.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e);h.level++;var m="valid"+h.level,y=e.schema.then,g=e.schema.else,v=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),w=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),x=h.baseId;if(v||w){var F;h.createErrors=!1,h.schema=o,h.schemaPath=l,h.errSchemaPath=d,i+=" var "+p+" = errors; var "+f+" = true; ";var A=e.compositeRule;e.compositeRule=h.compositeRule=!0,i+=" "+e.validate(h)+" ",h.baseId=x,h.createErrors=!0,i+=" errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; } ",e.compositeRule=h.compositeRule=A,v?(i+=" if ("+m+") { ",h.schema=e.schema.then,h.schemaPath=e.schemaPath+".then",h.errSchemaPath=e.errSchemaPath+"/then",i+=" "+e.validate(h)+" ",h.baseId=x,i+=" "+f+" = "+m+"; ",v&&w?(F="ifClause"+n,i+=" var "+F+" = 'then'; "):F="'then'",i+=" } ",w&&(i+=" else { ")):i+=" if (!"+m+") { ",w&&(h.schema=e.schema.else,h.schemaPath=e.schemaPath+".else",h.errSchemaPath=e.errSchemaPath+"/else",i+=" "+e.validate(h)+" ",h.baseId=x,i+=" "+f+" = "+m+"; ",v&&w?(F="ifClause"+n,i+=" var "+F+" = 'else'; "):F="'else'",i+=" } "),i+=" if (!"+f+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { failingKeyword: "+F+" } ",e.opts.messages!==!1&&(i+=` , message: 'should match "' + `+F+` + '" schema' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i}});var tc=K((wx,ec)=>{"use strict";ec.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g="i"+n,v=h.dataLevel=e.dataLevel+1,w="data"+v,x=e.baseId;if(i+="var "+p+" = errors;var "+f+";",Array.isArray(o)){var F=e.schema.additionalItems;if(F===!1){i+=" "+f+" = "+c+".length <= "+o.length+"; ";var A=d;d=e.errSchemaPath+"/additionalItems",i+=" if (!"+f+") { ";var q=q||[];q.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+o.length+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have more than "+o.length+" items' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var L=i;i=q.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+L+"]); ":i+=" validate.errors = ["+L+"]; return false; ":i+=" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",d=A,u&&(m+="}",i+=" else { ")}var P=o;if(P){for(var B,N=-1,R=P.length-1;N<R;)if(B=P[N+=1],e.opts.strictKeywords?typeof B=="object"&&Object.keys(B).length>0||B===!1:e.util.schemaHasRules(B,e.RULES.all)){i+=" "+y+" = true; if ("+c+".length > "+N+") { ";var $=c+"["+N+"]";h.schema=B,h.schemaPath=l+"["+N+"]",h.errSchemaPath=d+"/"+N,h.errorPath=e.util.getPathExpr(e.errorPath,N,e.opts.jsonPointers,!0),h.dataPathArr[v]=N;var E=e.validate(h);h.baseId=x,e.util.varOccurences(E,w)<2?i+=" "+e.util.varReplace(E,w,$)+" ":i+=" var "+w+" = "+$+"; "+E+" ",i+=" } ",u&&(i+=" if ("+y+") { ",m+="}")}}if(typeof F=="object"&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all))){h.schema=F,h.schemaPath=e.schemaPath+".additionalItems",h.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" "+y+" = true; if ("+c+".length > "+o.length+") { for (var "+g+" = "+o.length+"; "+g+" < "+c+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var $=c+"["+g+"]";h.dataPathArr[v]=g;var E=e.validate(h);h.baseId=x,e.util.varOccurences(E,w)<2?i+=" "+e.util.varReplace(E,w,$)+" ":i+=" var "+w+" = "+$+"; "+E+" ",u&&(i+=" if (!"+y+") break; "),i+=" } } ",u&&(i+=" if ("+y+") { ",m+="}")}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){h.schema=o,h.schemaPath=l,h.errSchemaPath=d,i+=" for (var "+g+" = 0; "+g+" < "+c+".length; "+g+"++) { ",h.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers,!0);var $=c+"["+g+"]";h.dataPathArr[v]=g;var E=e.validate(h);h.baseId=x,e.util.varOccurences(E,w)<2?i+=" "+e.util.varReplace(E,w,$)+" ":i+=" var "+w+" = "+$+"; "+E+" ",u&&(i+=" if (!"+y+") break; "),i+=" }"}return u&&(i+=" "+m+" if ("+p+" == errors) {"),i}});var Ws=K((Cx,rc)=>{"use strict";rc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,x,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=r=="maximum",m=h?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[m],g=e.opts.$data&&y&&y.$data,v=h?"<":">",w=h?">":"<",x=void 0;if(!(f||typeof o=="number"||o===void 0))throw new Error(r+" must be number");if(!(g||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(m+" must be number or boolean");if(g){var F=e.util.getData(y.$data,s,e.dataPathArr),A="exclusive"+n,q="exclType"+n,L="exclIsNumber"+n,P="op"+n,B="' + "+P+" + '";i+=" var schemaExcl"+n+" = "+F+"; ",F="schemaExcl"+n,i+=" var "+A+"; var "+q+" = typeof "+F+"; if ("+q+" != 'boolean' && "+q+" != 'undefined' && "+q+" != 'number') { ";var x=m,N=N||[];N.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: '"+m+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var R=i;i=N.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+q+" == 'number' ? ( ("+A+" = "+p+" === undefined || "+F+" "+v+"= "+p+") ? "+c+" "+w+"= "+F+" : "+c+" "+w+" "+p+" ) : ( ("+A+" = "+F+" === true) ? "+c+" "+w+"= "+p+" : "+c+" "+w+" "+p+" ) || "+c+" !== "+c+") { var op"+n+" = "+A+" ? '"+v+"' : '"+v+"='; ",o===void 0&&(x=m,d=e.errSchemaPath+"/"+m,p=F,f=g)}else{var L=typeof y=="number",B=v;if(L&&f){var P="'"+B+"'";i+=" if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" ( "+p+" === undefined || "+y+" "+v+"= "+p+" ? "+c+" "+w+"= "+y+" : "+c+" "+w+" "+p+" ) || "+c+" !== "+c+") { "}else{L&&o===void 0?(A=!0,x=m,d=e.errSchemaPath+"/"+m,p=y,w+="="):(L&&(p=Math[h?"min":"max"](y,o)),y===(L?p:!0)?(A=!0,x=m,d=e.errSchemaPath+"/"+m,w+="="):(A=!1,B+="="));var P="'"+B+"'";i+=" if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+c+" "+w+" "+p+" || "+c+" !== "+c+") { "}}x=x||r;var N=N||[];N.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(x||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { comparison: "+P+", limit: "+p+", exclusive: "+A+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+B+" ",f?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var R=i;return i=N.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+R+"]); ":i+=" validate.errors = ["+R+"]; return false; ":i+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}});var Vs=K((xx,ic)=>{"use strict";ic.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var h=r=="maxItems"?">":"<";i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" "+c+".length "+h+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxItems"?i+="more":i+="fewer",i+=" than ",f?i+="' + "+p+" + '":i+=""+o,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var g=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var _s=K((Tx,ac)=>{"use strict";ac.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var h=r=="maxLength"?">":"<";i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),e.opts.unicode===!1?i+=" "+c+".length ":i+=" ucs2length("+c+") ",i+=" "+h+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be ",r=="maxLength"?i+="longer":i+="shorter",i+=" than ",f?i+="' + "+p+" + '":i+=""+o,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var g=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var zs=K((Fx,nc)=>{"use strict";nc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,m,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");var h=r=="maxProperties"?">":"<";i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'number') || "),i+=" Object.keys("+c+").length "+h+" "+p+") { ";var m=r,y=y||[];y.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(m||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { limit: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have ",r=="maxProperties"?i+="more":i+="fewer",i+=" than ",f?i+="' + "+p+" + '":i+=""+o,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var g=i;return i=y.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+g+"]); ":i+=" validate.errors = ["+g+"]; return false; ":i+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var oc=K((Ix,sc)=>{"use strict";sc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;if(f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o,!(f||typeof o=="number"))throw new Error(r+" must be number");i+="var division"+n+";if (",f&&(i+=" "+p+" !== undefined && ( typeof "+p+" != 'number' || "),i+=" (division"+n+" = "+c+" / "+p+", ",e.opts.multipleOfPrecision?i+=" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":i+=" division"+n+" !== parseInt(division"+n+") ",i+=" ) ",f&&(i+=" ) "),i+=" ) { ";var h=h||[];h.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { multipleOf: "+p+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be multiple of ",f?i+="' + "+p:i+=""+p+"'"),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var dc=K((Ox,lc)=>{"use strict";lc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="errs__"+n,p=e.util.copy(e);p.level++;var h="valid"+p.level;if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d,i+=" var "+f+" = errors; ";var m=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.createErrors=!1;var y;p.opts.allErrors&&(y=p.opts.allErrors,p.opts.allErrors=!1),i+=" "+e.validate(p)+" ",p.createErrors=!0,y&&(p.opts.allErrors=y),e.compositeRule=p.compositeRule=m,i+=" if ("+h+") { ";var g=g||[];g.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var v=i;i=g.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(i+=" if (false) { ");return i}});var cc=K((Px,uc)=>{"use strict";uc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p="errs__"+n,h=e.util.copy(e),m="";h.level++;var y="valid"+h.level,g=h.baseId,v="prevValid"+n,w="passingSchemas"+n;i+="var "+p+" = errors , "+v+" = false , "+f+" = false , "+w+" = null; ";var x=e.compositeRule;e.compositeRule=h.compositeRule=!0;var F=o;if(F)for(var A,q=-1,L=F.length-1;q<L;)A=F[q+=1],(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))?(h.schema=A,h.schemaPath=l+"["+q+"]",h.errSchemaPath=d+"/"+q,i+=" "+e.validate(h)+" ",h.baseId=g):i+=" var "+y+" = true; ",q&&(i+=" if ("+y+" && "+v+") { "+f+" = false; "+w+" = ["+w+", "+q+"]; } else { ",m+="}"),i+=" if ("+y+") { "+f+" = "+v+" = true; "+w+" = "+q+"; }";return e.compositeRule=h.compositeRule=x,i+=""+m+"if (!"+f+") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { passingSchemas: "+w+" } ",e.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),i+="} else { errors = "+p+"; if (vErrors !== null) { if ("+p+") vErrors.length = "+p+"; else vErrors = null; }",e.opts.allErrors&&(i+=" } "),i}});var fc=K((Ax,pc)=>{"use strict";pc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f=e.opts.$data&&o&&o.$data,p;f?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",p="schema"+n):p=o;var h=f?"(new RegExp("+p+"))":e.usePattern(o);i+="if ( ",f&&(i+=" ("+p+" !== undefined && typeof "+p+" != 'string') || "),i+=" !"+h+".test("+c+") ) { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { pattern: ",f?i+=""+p:i+=""+e.util.toQuotedString(o),i+=" } ",e.opts.messages!==!1&&(i+=` , message: 'should match pattern "`,f?i+="' + "+p+" + '":i+=""+e.util.escapeQuotes(o),i+=`"' `),e.opts.verbose&&(i+=" , schema: ",f?i+="validate.schema"+l:i+=""+e.util.toQuotedString(o),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var y=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}});var mc=K((Ex,hc)=>{"use strict";hc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level,y="key"+n,g="idx"+n,v=p.dataLevel=e.dataLevel+1,w="data"+v,x="dataProperties"+n,F=Object.keys(o||{}).filter(V),A=e.schema.patternProperties||{},q=Object.keys(A).filter(V),L=e.schema.additionalProperties,P=F.length||q.length,B=L===!1,N=typeof L=="object"&&Object.keys(L).length,R=e.opts.removeAdditional,$=B||N||R,E=e.opts.ownProperties,k=e.baseId,Q=e.schema.required;if(Q&&!(e.opts.$data&&Q.$data)&&Q.length<e.opts.loopRequired)var H=e.util.toHash(Q);function V(Mt){return Mt!=="__proto__"}if(i+="var "+f+" = errors;var "+m+" = true;",E&&(i+=" var "+x+" = undefined;"),$){if(E?i+=" "+x+" = "+x+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+x+".length; "+g+"++) { var "+y+" = "+x+"["+g+"]; ":i+=" for (var "+y+" in "+c+") { ",P){if(i+=" var isAdditional"+n+" = !(false ",F.length)if(F.length>8)i+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var Z=F;if(Z)for(var z,ne=-1,Re=Z.length-1;ne<Re;)z=Z[ne+=1],i+=" || "+y+" == "+e.util.toQuotedString(z)+" "}if(q.length){var _e=q;if(_e)for(var te,ge=-1,Te=_e.length-1;ge<Te;)te=_e[ge+=1],i+=" || "+e.usePattern(te)+".test("+y+") "}i+=" ); if (isAdditional"+n+") { "}if(R=="all")i+=" delete "+c+"["+y+"]; ";else{var ke=e.errorPath,xt="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),B)if(R)i+=" delete "+c+"["+y+"]; ";else{i+=" "+m+" = false; ";var it=d;d=e.errSchemaPath+"/additionalProperties";var Fe=Fe||[];Fe.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { additionalProperty: '"+xt+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is an invalid additional property":i+="should NOT have additional properties",i+="' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Se=i;i=Fe.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Se+"]); ":i+=" validate.errors = ["+Se+"]; return false; ":i+=" var err = "+Se+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=it,u&&(i+=" break; ")}else if(N)if(R=="failing"){i+=" var "+f+" = errors; ";var Tt=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=c+"["+y+"]";p.dataPathArr[v]=y;var pe=e.validate(p);p.baseId=k,e.util.varOccurences(pe,w)<2?i+=" "+e.util.varReplace(pe,w,He)+" ":i+=" var "+w+" = "+He+"; "+pe+" ",i+=" if (!"+m+") { errors = "+f+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+y+"]; } ",e.compositeRule=p.compositeRule=Tt}else{p.schema=L,p.schemaPath=e.schemaPath+".additionalProperties",p.errSchemaPath=e.errSchemaPath+"/additionalProperties",p.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=c+"["+y+"]";p.dataPathArr[v]=y;var pe=e.validate(p);p.baseId=k,e.util.varOccurences(pe,w)<2?i+=" "+e.util.varReplace(pe,w,He)+" ":i+=" var "+w+" = "+He+"; "+pe+" ",u&&(i+=" if (!"+m+") break; ")}e.errorPath=ke}P&&(i+=" } "),i+=" } ",u&&(i+=" if ("+m+") { ",h+="}")}var pr=e.opts.useDefaults&&!e.compositeRule;if(F.length){var Kt=F;if(Kt)for(var z,Mr=-1,$r=Kt.length-1;Mr<$r;){z=Kt[Mr+=1];var Ke=o[z];if(e.opts.strictKeywords?typeof Ke=="object"&&Object.keys(Ke).length>0||Ke===!1:e.util.schemaHasRules(Ke,e.RULES.all)){var Ft=e.util.getProperty(z),He=c+Ft,at=pr&&Ke.default!==void 0;p.schema=Ke,p.schemaPath=l+Ft,p.errSchemaPath=d+"/"+e.util.escapeFragment(z),p.errorPath=e.util.getPath(e.errorPath,z,e.opts.jsonPointers),p.dataPathArr[v]=e.util.toQuotedString(z);var pe=e.validate(p);if(p.baseId=k,e.util.varOccurences(pe,w)<2){pe=e.util.varReplace(pe,w,He);var tt=He}else{var tt=w;i+=" var "+w+" = "+He+"; "}if(at)i+=" "+pe+" ";else{if(H&&H[z]){i+=" if ( "+tt+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+m+" = false; ";var ke=e.errorPath,it=d,Ut=e.util.escapeQuotes(z);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(ke,z,e.opts.jsonPointers)),d=e.errSchemaPath+"/required";var Fe=Fe||[];Fe.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+Ut+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+Ut+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var Se=i;i=Fe.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+Se+"]); ":i+=" validate.errors = ["+Se+"]; return false; ":i+=" var err = "+Se+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",d=it,e.errorPath=ke,i+=" } else { "}else u?(i+=" if ( "+tt+" === undefined ",E&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=") { "+m+" = true; } else { "):(i+=" if ("+tt+" !== undefined ",E&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(z)+"') "),i+=" ) { ");i+=" "+pe+" } "}}u&&(i+=" if ("+m+") { ",h+="}")}}if(q.length){var ft=q;if(ft)for(var te,la=-1,En=ft.length-1;la<En;){te=ft[la+=1];var Ke=A[te];if(e.opts.strictKeywords?typeof Ke=="object"&&Object.keys(Ke).length>0||Ke===!1:e.util.schemaHasRules(Ke,e.RULES.all)){p.schema=Ke,p.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(te),p.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(te),E?i+=" "+x+" = "+x+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+x+".length; "+g+"++) { var "+y+" = "+x+"["+g+"]; ":i+=" for (var "+y+" in "+c+") { ",i+=" if ("+e.usePattern(te)+".test("+y+")) { ",p.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var He=c+"["+y+"]";p.dataPathArr[v]=y;var pe=e.validate(p);p.baseId=k,e.util.varOccurences(pe,w)<2?i+=" "+e.util.varReplace(pe,w,He)+" ":i+=" var "+w+" = "+He+"; "+pe+" ",u&&(i+=" if (!"+m+") break; "),i+=" } ",u&&(i+=" else "+m+" = true; "),i+=" } ",u&&(i+=" if ("+m+") { ",h+="}")}}}return u&&(i+=" "+h+" if ("+f+" == errors) {"),i}});var gc=K((Lx,yc)=>{"use strict";yc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="errs__"+n,p=e.util.copy(e),h="";p.level++;var m="valid"+p.level;if(i+="var "+f+" = errors;",e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0||o===!1:e.util.schemaHasRules(o,e.RULES.all)){p.schema=o,p.schemaPath=l,p.errSchemaPath=d;var y="key"+n,g="idx"+n,v="i"+n,w="' + "+y+" + '",x=p.dataLevel=e.dataLevel+1,F="data"+x,A="dataProperties"+n,q=e.opts.ownProperties,L=e.baseId;q&&(i+=" var "+A+" = undefined; "),q?i+=" "+A+" = "+A+" || Object.keys("+c+"); for (var "+g+"=0; "+g+"<"+A+".length; "+g+"++) { var "+y+" = "+A+"["+g+"]; ":i+=" for (var "+y+" in "+c+") { ",i+=" var startErrs"+n+" = errors; ";var P=y,B=e.compositeRule;e.compositeRule=p.compositeRule=!0;var N=e.validate(p);p.baseId=L,e.util.varOccurences(N,F)<2?i+=" "+e.util.varReplace(N,F,P)+" ":i+=" var "+F+" = "+P+"; "+N+" ",e.compositeRule=p.compositeRule=B,i+=" if (!"+m+") { for (var "+v+"=startErrs"+n+"; "+v+"<errors; "+v+"++) { vErrors["+v+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(i+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { propertyName: '"+w+"' } ",e.opts.messages!==!1&&(i+=" , message: 'property name \\'"+w+"\\' is invalid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; "),u&&(i+=" break; "),i+=" } }"}return u&&(i+=" "+h+" if ("+f+" == errors) {"),i}});var vc=K((Dx,bc)=>{"use strict";bc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o;var m="schema"+n;if(!p)if(o.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],g=o;if(g)for(var v,w=-1,x=g.length-1;w<x;){v=g[w+=1];var F=e.schema.properties[v];F&&(e.opts.strictKeywords?typeof F=="object"&&Object.keys(F).length>0||F===!1:e.util.schemaHasRules(F,e.RULES.all))||(y[y.length]=v)}}else var y=o;if(p||y.length){var A=e.errorPath,q=p||y.length>=e.opts.loopRequired,L=e.opts.ownProperties;if(u)if(i+=" var missing"+n+"; ",q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var P="i"+n,B="schema"+n+"["+P+"]",N="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,B,e.opts.jsonPointers)),i+=" var "+f+" = true; ",p&&(i+=" if (schema"+n+" === undefined) "+f+" = true; else if (!Array.isArray(schema"+n+")) "+f+" = false; else {"),i+=" for (var "+P+" = 0; "+P+" < "+m+".length; "+P+"++) { "+f+" = "+c+"["+m+"["+P+"]] !== undefined ",L&&(i+=" && Object.prototype.hasOwnProperty.call("+c+", "+m+"["+P+"]) "),i+="; if (!"+f+") break; } ",p&&(i+=" } "),i+=" if (!"+f+") { ";var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var $=i;i=R.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+$+"]); ":i+=" validate.errors = ["+$+"]; return false; ":i+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else{i+=" if ( ";var E=y;if(E)for(var k,P=-1,Q=E.length-1;P<Q;){k=E[P+=1],P&&(i+=" || ");var H=e.util.getProperty(k),V=c+H;i+=" ( ( "+V+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(k)+"') "),i+=") && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?k:H)+") ) "}i+=") { ";var B="missing"+n,N="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(A,B,!0):A+" + "+B);var R=R||[];R.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var $=i;i=R.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+$+"]); ":i+=" validate.errors = ["+$+"]; return false; ":i+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { "}else if(q){p||(i+=" var "+m+" = validate.schema"+l+"; ");var P="i"+n,B="schema"+n+"["+P+"]",N="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(A,B,e.opts.jsonPointers)),p&&(i+=" if ("+m+" && !Array.isArray("+m+")) { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+m+" !== undefined) { "),i+=" for (var "+P+" = 0; "+P+" < "+m+".length; "+P+"++) { if ("+c+"["+m+"["+P+"]] === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+m+"["+P+"]) "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",p&&(i+=" } ")}else{var Z=y;if(Z)for(var k,z=-1,ne=Z.length-1;z<ne;){k=Z[z+=1];var H=e.util.getProperty(k),N=e.util.escapeQuotes(k),V=c+H;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(A,k,e.opts.jsonPointers)),i+=" if ( "+V+" === undefined ",L&&(i+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(k)+"') "),i+=") { var err = ",e.createErrors!==!1?(i+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { missingProperty: '"+N+"' } ",e.opts.messages!==!1&&(i+=" , message: '",e.opts._errorDataPathProperty?i+="is a required property":i+="should have required property \\'"+N+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=A}else u&&(i+=" if (true) {");return i}});var wc=K((Nx,Sc)=>{"use strict";Sc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(s||""),f="valid"+n,p=e.opts.$data&&o&&o.$data,h;if(p?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",h="schema"+n):h=o,(o||p)&&e.opts.uniqueItems!==!1){p&&(i+=" var "+f+"; if ("+h+" === false || "+h+" === undefined) "+f+" = true; else if (typeof "+h+" != 'boolean') "+f+" = false; else { "),i+=" var i = "+c+".length , "+f+" = true , j; if (i > 1) { ";var m=e.schema.items&&e.schema.items.type,y=Array.isArray(m);if(!m||m=="object"||m=="array"||y&&(m.indexOf("object")>=0||m.indexOf("array")>=0))i+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+f+" = false; break outer; } } } ";else{i+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var g="checkDataType"+(y?"s":"");i+=" if ("+e.util[g](m,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(i+=` if (typeof item == 'string') item = '"' + item; `),i+=" if (typeof itemIndices[item] == 'number') { "+f+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}i+=" } ",p&&(i+=" } "),i+=" if (!"+f+") { ";var v=v||[];v.push(i),i="",e.createErrors!==!1?(i+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(i+=" , schema: ",p?i+="validate.schema"+l:i+=""+o,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),i+=" } "):i+=" {} ";var w=i;i=v.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+w+"]); ":i+=" validate.errors = ["+w+"]; return false; ":i+=" var err = "+w+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { ")}else u&&(i+=" if (true) { ");return i}});var xc=K((Bx,Cc)=>{"use strict";Cc.exports={$ref:Mu(),allOf:qu(),anyOf:ku(),$comment:Wu(),const:_u(),contains:Uu(),dependencies:Gu(),enum:Zu(),format:Ju(),if:Xu(),items:tc(),maximum:Ws(),minimum:Ws(),maxItems:Vs(),minItems:Vs(),maxLength:_s(),minLength:_s(),maxProperties:zs(),minProperties:zs(),multipleOf:oc(),not:dc(),oneOf:cc(),pattern:fc(),properties:mc(),propertyNames:gc(),required:vc(),uniqueItems:wc(),validate:ks()}});var Ic=K((Mx,Fc)=>{"use strict";var Tc=xc(),Us=Gr().toHash;Fc.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],a=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],i=["number","integer","string","array","object","boolean","null"];return e.all=Us(r),e.types=Us(i),e.forEach(function(n){n.rules=n.rules.map(function(s){var o;if(typeof s=="object"){var l=Object.keys(s)[0];o=s[l],s=l,o.forEach(function(u){r.push(u),e.all[u]=!0})}r.push(s);var d=e.all[s]={keyword:s,code:Tc[s],implements:o};return d}),e.all.$comment={keyword:"$comment",code:Tc.$comment},n.type&&(e.types[n.type]=n)}),e.keywords=Us(r.concat(a)),e.custom={},e}});var Ac=K(($x,Pc)=>{"use strict";var Oc=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Pc.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var a=e[r].split("/"),i=t,n;for(n=1;n<a.length;n++)i=i[a[n]];for(n=0;n<Oc.length;n++){var s=Oc[n],o=i[s];o&&(i[s]={anyOf:[o,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var Dc=K((qx,Lc)=>{"use strict";var Sg=rn().MissingRef;Lc.exports=Ec;function Ec(t,e,r){var a=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var i=n(t).then(function(){var o=a._addSchema(t,void 0,e);return o.validate||s(o)});return r&&i.then(function(o){r(null,o)},r),i;function n(o){var l=o.$schema;return l&&!a.getSchema(l)?Ec.call(a,{$ref:l},!0):Promise.resolve()}function s(o){try{return a._compile(o)}catch(d){if(d instanceof Sg)return l(d);throw d}function l(d){var u=d.missingSchema;if(p(u))throw new Error("Schema "+u+" is loaded but "+d.missingRef+" cannot be resolved");var c=a._loadingSchemas[u];return c||(c=a._loadingSchemas[u]=a._opts.loadSchema(u),c.then(f,f)),c.then(function(h){if(!p(u))return n(h).then(function(){p(u)||a.addSchema(h,u,void 0,e)})}).then(function(){return s(o)});function f(){delete a._loadingSchemas[u]}function p(h){return a._refs[h]||a._schemas[h]}}}}});var Bc=K((Rx,Nc)=>{"use strict";Nc.exports=function(e,r,a){var i=" ",n=e.level,s=e.dataLevel,o=e.schema[r],l=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c,f="data"+(s||""),p="valid"+n,h="errs__"+n,m=e.opts.$data&&o&&o.$data,y;m?(i+=" var schema"+n+" = "+e.util.getData(o.$data,s,e.dataPathArr)+"; ",y="schema"+n):y=o;var g=this,v="definition"+n,w=g.definition,x="",F,A,q,L,P;if(m&&w.$data){P="keywordValidate"+n;var B=w.validateSchema;i+=" var "+v+" = RULES.custom['"+r+"'].definition; var "+P+" = "+v+".validate;"}else{if(L=e.useCustomRule(g,o,e.schema,e),!L)return;y="validate.schema"+l,P=L.code,F=w.compile,A=w.inline,q=w.macro}var N=P+".errors",R="i"+n,$="ruleErr"+n,E=w.async;if(E&&!e.async)throw new Error("async keyword in sync schema");if(A||q||(i+=""+N+" = null;"),i+="var "+h+" = errors;var "+p+";",m&&w.$data&&(x+="}",i+=" if ("+y+" === undefined) { "+p+" = true; } else { ",B&&(x+="}",i+=" "+p+" = "+v+".validateSchema("+y+"); if ("+p+") { ")),A)w.statements?i+=" "+L.validate+" ":i+=" "+p+" = "+L.validate+"; ";else if(q){var k=e.util.copy(e),x="";k.level++;var Q="valid"+k.level;k.schema=L.validate,k.schemaPath="";var H=e.compositeRule;e.compositeRule=k.compositeRule=!0;var V=e.validate(k).replace(/validate\.schema/g,P);e.compositeRule=k.compositeRule=H,i+=" "+V}else{var Z=Z||[];Z.push(i),i="",i+=" "+P+".call( ",e.opts.passContext?i+="this":i+="self",F||w.schema===!1?i+=" , "+f+" ":i+=" , "+y+" , "+f+" , validate.schema"+e.schemaPath+" ",i+=" , (dataPath || '')",e.errorPath!='""'&&(i+=" + "+e.errorPath);var z=s?"data"+(s-1||""):"parentData",ne=s?e.dataPathArr[s]:"parentDataProperty";i+=" , "+z+" , "+ne+" , rootData ) ";var Re=i;i=Z.pop(),w.errors===!1?(i+=" "+p+" = ",E&&(i+="await "),i+=""+Re+"; "):E?(N="customErrors"+n,i+=" var "+N+" = null; try { "+p+" = await "+Re+"; } catch (e) { "+p+" = false; if (e instanceof ValidationError) "+N+" = e.errors; else throw e; } "):i+=" "+N+" = null; "+p+" = "+Re+"; "}if(w.modifying&&(i+=" if ("+z+") "+f+" = "+z+"["+ne+"];"),i+=""+x,w.valid)u&&(i+=" if (true) { ");else{i+=" if ( ",w.valid===void 0?(i+=" !",q?i+=""+Q:i+=""+p):i+=" "+!w.valid+" ",i+=") { ",c=g.keyword;var Z=Z||[];Z.push(i),i="";var Z=Z||[];Z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+g.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ";var _e=i;i=Z.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+_e+"]); ":i+=" validate.errors = ["+_e+"]; return false; ":i+=" var err = "+_e+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var te=i;i=Z.pop(),A?w.errors?w.errors!="full"&&(i+=" for (var "+R+"="+h+"; "+R+"<errors; "+R+"++) { var "+$+" = vErrors["+R+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+f+"; "),i+=" } "):w.errors===!1?i+=" "+te+" ":(i+=" if ("+h+" == errors) { "+te+" } else { for (var "+R+"="+h+"; "+R+"<errors; "+R+"++) { var "+$+" = vErrors["+R+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+$+".schemaPath === undefined) { "+$+'.schemaPath = "'+d+'"; } ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+f+"; "),i+=" } } "):q?(i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { keyword: '"+g.keyword+"' } ",e.opts.messages!==!1&&(i+=` , message: 'should pass "`+g.keyword+`" keyword validation' `),e.opts.verbose&&(i+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+f+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&u&&(e.async?i+=" throw new ValidationError(vErrors); ":i+=" validate.errors = vErrors; return false; ")):w.errors===!1?i+=" "+te+" ":(i+=" if (Array.isArray("+N+")) { if (vErrors === null) vErrors = "+N+"; else vErrors = vErrors.concat("+N+"); errors = vErrors.length; for (var "+R+"="+h+"; "+R+"<errors; "+R+"++) { var "+$+" = vErrors["+R+"]; if ("+$+".dataPath === undefined) "+$+".dataPath = (dataPath || '') + "+e.errorPath+"; "+$+'.schemaPath = "'+d+'"; ',e.opts.verbose&&(i+=" "+$+".schema = "+y+"; "+$+".data = "+f+"; "),i+=" } } else { "+te+" } "),i+=" } ",u&&(i+=" else { ")}return i}});var Hs=K((kx,wg)=>{wg.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var qc=K((jx,$c)=>{"use strict";var Mc=Hs();$c.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:Mc.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:Mc.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var kc=K((Wx,Rc)=>{"use strict";var Cg=/^[a-z_$][a-z0-9_$-]*$/i,xg=Bc(),Tg=qc();Rc.exports={add:Fg,get:Ig,remove:Og,validate:Gs};function Fg(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!Cg.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var a=e.type;if(Array.isArray(a))for(var i=0;i<a.length;i++)s(t,a[i],e);else s(t,a,e);var n=e.metaSchema;n&&(e.$data&&this._opts.$data&&(n={anyOf:[n,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(n,!0))}r.keywords[t]=r.all[t]=!0;function s(o,l,d){for(var u,c=0;c<r.length;c++){var f=r[c];if(f.type==l){u=f;break}}u||(u={type:l,rules:[]},r.push(u));var p={keyword:o,definition:d,custom:!0,code:xg,implements:d.implements};u.rules.push(p),r.custom[o]=p}return this}function Ig(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function Og(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var a=e[r].rules,i=0;i<a.length;i++)if(a[i].keyword==t){a.splice(i,1);break}return this}function Gs(t,e){Gs.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(Tg,!0);if(r(t))return!0;if(Gs.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var jc=K((Vx,Pg)=>{Pg.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Kc=K((_x,Zc)=>{"use strict";var Vc=vu(),Qr=tn(),Ag=wu(),_c=Ds(),Eg=Rs(),Lg=Nu(),Dg=Ic(),zc=Ac(),Uc=Gr();Zc.exports=$e;$e.prototype.validate=Bg;$e.prototype.compile=Mg;$e.prototype.addSchema=$g;$e.prototype.addMetaSchema=qg;$e.prototype.validateSchema=Rg;$e.prototype.getSchema=jg;$e.prototype.removeSchema=Vg;$e.prototype.addFormat=Kg;$e.prototype.errorsText=Zg;$e.prototype._addSchema=_g;$e.prototype._compile=zg;$e.prototype.compileAsync=Dc();var cn=kc();$e.prototype.addKeyword=cn.add;$e.prototype.getKeyword=cn.get;$e.prototype.removeKeyword=cn.remove;$e.prototype.validateKeyword=cn.validate;var Hc=rn();$e.ValidationError=Hc.Validation;$e.MissingRefError=Hc.MissingRef;$e.$dataMetaSchema=zc;var un="http://json-schema.org/draft-07/schema",Wc=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],Ng=["/properties"];function $e(t){if(!(this instanceof $e))return new $e(t);t=this._opts=Uc.copy(t)||{},rb(this),this._schemas={},this._refs={},this._fragments={},this._formats=Lg(t.format),this._cache=t.cache||new Ag,this._loadingSchemas={},this._compilations=[],this.RULES=Dg(),this._getId=Ug(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=Eg),this._metaOpts=tb(this),t.formats&&Xg(this),t.keywords&&eb(this),Jg(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),Yg(this)}function Bg(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var a=this._addSchema(t);r=a.validate||this._compile(a)}var i=r(e);return r.$async!==!0&&(this.errors=r.errors),i}function Mg(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function $g(t,e,r,a){if(Array.isArray(t)){for(var i=0;i<t.length;i++)this.addSchema(t[i],void 0,r,a);return this}var n=this._getId(t);if(n!==void 0&&typeof n!="string")throw new Error("schema id must be string");return e=Qr.normalizeId(e||n),Qc(this,e),this._schemas[e]=this._addSchema(t,r,a,!0),this}function qg(t,e,r){return this.addSchema(t,e,r,!0),this}function Rg(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||kg(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var a=this.validate(r,t);if(!a&&e){var i="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(i);else throw new Error(i)}return a}function kg(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(un)?un:void 0,t._opts.defaultMeta}function jg(t){var e=Gc(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return Wg(this,t)}}function Wg(t,e){var r=Qr.schema.call(t,{schema:{}},e);if(r){var a=r.schema,i=r.root,n=r.baseId,s=Vc.call(t,a,i,void 0,n);return t._fragments[e]=new _c({ref:e,fragment:!0,schema:a,root:i,baseId:n,validate:s}),s}}function Gc(t,e){return e=Qr.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function Vg(t){if(t instanceof RegExp)return dn(this,this._schemas,t),dn(this,this._refs,t),this;switch(typeof t){case"undefined":return dn(this,this._schemas),dn(this,this._refs),this._cache.clear(),this;case"string":var e=Gc(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,a=r?r(t):t;this._cache.del(a);var i=this._getId(t);i&&(i=Qr.normalizeId(i),delete this._schemas[i],delete this._refs[i])}return this}function dn(t,e,r){for(var a in e){var i=e[a];!i.meta&&(!r||r.test(a))&&(t._cache.del(i.cacheKey),delete e[a])}}function _g(t,e,r,a){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var i=this._opts.serialize,n=i?i(t):t,s=this._cache.get(n);if(s)return s;a=a||this._opts.addUsedSchema!==!1;var o=Qr.normalizeId(this._getId(t));o&&a&&Qc(this,o);var l=this._opts.validateSchema!==!1&&!e,d;l&&!(d=o&&o==Qr.normalizeId(t.$schema))&&this.validateSchema(t,!0);var u=Qr.ids.call(this,t),c=new _c({id:o,schema:t,localRefs:u,cacheKey:n,meta:r});return o[0]!="#"&&a&&(this._refs[o]=c),this._cache.put(n,c),l&&d&&this.validateSchema(t,!0),c}function zg(t,e){if(t.compiling)return t.validate=i,i.schema=t.schema,i.errors=null,i.root=e||i,t.schema.$async===!0&&(i.$async=!0),i;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var a;try{a=Vc.call(this,t.schema,e,t.localRefs)}catch(n){throw delete t.validate,n}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=a,t.refs=a.refs,t.refVal=a.refVal,t.root=a.root,a;function i(){var n=t.validate,s=n.apply(this,arguments);return i.errors=n.errors,s}}function Ug(t){switch(t.schemaId){case"auto":return Qg;case"id":return Hg;default:return Gg}}function Hg(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function Gg(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function Qg(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function Zg(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,a=e.dataVar===void 0?"data":e.dataVar,i="",n=0;n<t.length;n++){var s=t[n];s&&(i+=a+s.dataPath+" "+s.message+r)}return i.slice(0,-r.length)}function Kg(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function Jg(t){var e;if(t._opts.$data&&(e=jc(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=Hs();t._opts.$data&&(r=zc(r,Ng)),t.addMetaSchema(r,un,!0),t._refs["http://json-schema.org/schema"]=un}}function Yg(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function Xg(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function eb(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function Qc(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function tb(t){for(var e=Uc.copy(t._opts),r=0;r<Wc.length;r++)delete e[Wc[r]];return e}function rb(t){var e=t._opts.logger;if(e===!1)t.logger={log:Qs,warn:Qs,error:Qs};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function Qs(){}});var rr=class extends Error{},Un=class extends rr{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},Hn=class extends rr{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},Gn=class extends rr{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},br=class extends rr{},Ca=class extends rr{constructor(e){super(`Invalid unit ${e}`)}},Qe=class extends rr{},Qt=class extends rr{constructor(){super("Zone is an abstract class")}},W="numeric",kt="short",wt="long",xa={year:W,month:W,day:W},Cl={year:W,month:kt,day:W},Af={year:W,month:kt,day:W,weekday:kt},xl={year:W,month:wt,day:W},Tl={year:W,month:wt,day:W,weekday:wt},Fl={hour:W,minute:W},Il={hour:W,minute:W,second:W},Ol={hour:W,minute:W,second:W,timeZoneName:kt},Pl={hour:W,minute:W,second:W,timeZoneName:wt},Al={hour:W,minute:W,hourCycle:"h23"},El={hour:W,minute:W,second:W,hourCycle:"h23"},Ll={hour:W,minute:W,second:W,hourCycle:"h23",timeZoneName:kt},Dl={hour:W,minute:W,second:W,hourCycle:"h23",timeZoneName:wt},Nl={year:W,month:W,day:W,hour:W,minute:W},Bl={year:W,month:W,day:W,hour:W,minute:W,second:W},Ml={year:W,month:kt,day:W,hour:W,minute:W},$l={year:W,month:kt,day:W,hour:W,minute:W,second:W},Ef={year:W,month:kt,day:W,weekday:kt,hour:W,minute:W},ql={year:W,month:wt,day:W,hour:W,minute:W,timeZoneName:kt},Rl={year:W,month:wt,day:W,hour:W,minute:W,second:W,timeZoneName:kt},kl={year:W,month:wt,day:W,weekday:wt,hour:W,minute:W,timeZoneName:wt},jl={year:W,month:wt,day:W,weekday:wt,hour:W,minute:W,second:W,timeZoneName:wt},Ur=class{get type(){throw new Qt}get name(){throw new Qt}get ianaName(){return this.name}get isUniversal(){throw new Qt}offsetName(e,r){throw new Qt}formatOffset(e,r){throw new Qt}offset(e){throw new Qt}equals(e){throw new Qt}get isValid(){throw new Qt}},$n=null,Ta=class t extends Ur{static get instance(){return $n===null&&($n=new t),$n}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return Jl(e,r,a)}formatOffset(e,r){return zi(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},Qn=new Map;function Lf(t){let e=Qn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),Qn.set(t,e)),e}var Df={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Nf(t,e){let r=t.format(e).replace(/\u200E/g,""),a=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,n,s,o,l,d,u]=a;return[s,i,n,o,l,d,u]}function Bf(t,e){let r=t.formatToParts(e),a=[];for(let i=0;i<r.length;i++){let{type:n,value:s}=r[i],o=Df[n];n==="era"?a[o]=s:J(o)||(a[o]=parseInt(s,10))}return a}var qn=new Map,Sr=class t extends Ur{static create(e){let r=qn.get(e);return r===void 0&&qn.set(e,r=new t(e)),r}static resetCache(){qn.clear(),Qn.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:a}){return Jl(e,r,a,this.name)}formatOffset(e,r){return zi(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let a=Lf(this.name),[i,n,s,o,l,d,u]=a.formatToParts?Bf(a,r):Nf(a,r);o==="BC"&&(i=-Math.abs(i)+1);let f=Ea({year:i,month:n,day:s,hour:l===24?0:l,minute:d,second:u,millisecond:0}),p=+r,h=p%1e3;return p-=h>=0?h:1e3+h,(f-p)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},Ho={};function Mf(t,e={}){let r=JSON.stringify([t,e]),a=Ho[r];return a||(a=new Intl.ListFormat(t,e),Ho[r]=a),a}var Zn=new Map;function Kn(t,e={}){let r=JSON.stringify([t,e]),a=Zn.get(r);return a===void 0&&(a=new Intl.DateTimeFormat(t,e),Zn.set(r,a)),a}var Jn=new Map;function $f(t,e={}){let r=JSON.stringify([t,e]),a=Jn.get(r);return a===void 0&&(a=new Intl.NumberFormat(t,e),Jn.set(r,a)),a}var Yn=new Map;function qf(t,e={}){let{base:r,...a}=e,i=JSON.stringify([t,a]),n=Yn.get(i);return n===void 0&&(n=new Intl.RelativeTimeFormat(t,e),Yn.set(i,n)),n}var Wi=null;function Rf(){return Wi||(Wi=new Intl.DateTimeFormat().resolvedOptions().locale,Wi)}var Xn=new Map;function Wl(t){let e=Xn.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),Xn.set(t,e)),e}var es=new Map;function kf(t){let e=es.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...Vl,...e}),es.set(t,e)}return e}function jf(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let a,i;try{a=Kn(t).resolvedOptions(),i=t}catch{let l=t.substring(0,r);a=Kn(l).resolvedOptions(),i=l}let{numberingSystem:n,calendar:s}=a;return[i,n,s]}}function Wf(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function Vf(t){let e=[];for(let r=1;r<=12;r++){let a=ae.utc(2009,r,1);e.push(t(a))}return e}function _f(t){let e=[];for(let r=1;r<=7;r++){let a=ae.utc(2016,11,13+r);e.push(t(a))}return e}function ma(t,e,r,a){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):a(e)}function zf(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||Wl(t.locale).numberingSystem==="latn"}var ts=class{constructor(e,r,a){this.padTo=a.padTo||0,this.floor=a.floor||!1;let{padTo:i,floor:n,...s}=a;if(!r||Object.keys(s).length>0){let o={useGrouping:!1,...a};a.padTo>0&&(o.minimumIntegerDigits=a.padTo),this.inf=$f(e,o)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):fs(e,3);return Ve(r,this.padTo)}}},rs=class{constructor(e,r,a){this.opts=a,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),o=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&Sr.create(o).valid?(i=o,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let n={...this.opts};n.timeZone=n.timeZone||i,this.dtf=Kn(r,n)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let a=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:a}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},is=class{constructor(e,r,a){this.opts={style:"long",...a},!r&&Zl()&&(this.rtf=qf(e,a))}format(e,r){return this.rtf?this.rtf.format(e,r):ch(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},Vl={firstDay:1,minimalDays:4,weekend:[6,7]},xe=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,a,i,n=!1){let s=e||Ae.defaultLocale,o=s||(n?"en-US":Rf()),l=r||Ae.defaultNumberingSystem,d=a||Ae.defaultOutputCalendar,u=ss(i)||Ae.defaultWeekSettings;return new t(o,l,d,u,s)}static resetCache(){Wi=null,Zn.clear(),Jn.clear(),Yn.clear(),Xn.clear(),es.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:a,weekSettings:i}={}){return t.create(e,r,a,i)}constructor(e,r,a,i,n){let[s,o,l]=jf(e);this.locale=s,this.numberingSystem=r||o||null,this.outputCalendar=a||l||null,this.weekSettings=i,this.intl=Wf(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=zf(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,ss(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return ma(this,e,ed,()=>{let a=this.intl==="ja"||this.intl.startsWith("ja-");r&=!a;let i=r?{month:e,day:"numeric"}:{month:e},n=r?"format":"standalone";if(!this.monthsCache[n][e]){let s=a?o=>this.dtFormatter(o,i).format():o=>this.extract(o,i,"month");this.monthsCache[n][e]=Vf(s)}return this.monthsCache[n][e]})}weekdays(e,r=!1){return ma(this,e,id,()=>{let a=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=_f(n=>this.extract(n,a,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return ma(this,void 0,()=>ad,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ae.utc(2016,11,13,9),ae.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return ma(this,e,nd,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[ae.utc(-40,1,1),ae.utc(2017,1,1)].map(a=>this.extract(a,r,"era"))),this.eraCache[e]})}extract(e,r,a){let i=this.dtFormatter(e,r),n=i.formatToParts(),s=n.find(o=>o.type.toLowerCase()===a);return s?s.value:null}numberFormatter(e={}){return new ts(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new rs(e,this.intl,r)}relFormatter(e={}){return new is(this.intl,this.isEnglish(),e)}listFormatter(e={}){return Mf(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||Wl(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Kl()?kf(this.locale):Vl}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},Rn=null,Dt=class t extends Ur{static get utcInstance(){return Rn===null&&(Rn=new t(0)),Rn}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(La(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${zi(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${zi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return zi(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},as=class extends Ur{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function gr(t,e){if(J(t)||t===null)return e;if(t instanceof Ur)return t;if(Kf(t)){let r=t.toLowerCase();return r==="default"?e:r==="local"||r==="system"?Ta.instance:r==="utc"||r==="gmt"?Dt.utcInstance:Dt.parseSpecifier(r)||Sr.create(t)}else return vr(t)?Dt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new as(t)}var ds={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Go={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Uf=ds.hanidec.replace(/[\[|\]]/g,"").split("");function Hf(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let a=t.charCodeAt(r);if(t[r].search(ds.hanidec)!==-1)e+=Uf.indexOf(t[r]);else for(let i in Go){let[n,s]=Go[i];a>=n&&a<=s&&(e+=a-n)}}return parseInt(e,10)}else return e}var ns=new Map;function Gf(){ns.clear()}function qt({numberingSystem:t},e=""){let r=t||"latn",a=ns.get(r);a===void 0&&(a=new Map,ns.set(r,a));let i=a.get(e);return i===void 0&&(i=new RegExp(`${ds[r]}${e}`),a.set(e,i)),i}var Qo=()=>Date.now(),Zo="system",Ko=null,Jo=null,Yo=null,Xo=60,el,tl=null,Ae=class{static get now(){return Qo}static set now(e){Qo=e}static set defaultZone(e){Zo=e}static get defaultZone(){return gr(Zo,Ta.instance)}static get defaultLocale(){return Ko}static set defaultLocale(e){Ko=e}static get defaultNumberingSystem(){return Jo}static set defaultNumberingSystem(e){Jo=e}static get defaultOutputCalendar(){return Yo}static set defaultOutputCalendar(e){Yo=e}static get defaultWeekSettings(){return tl}static set defaultWeekSettings(e){tl=ss(e)}static get twoDigitCutoffYear(){return Xo}static set twoDigitCutoffYear(e){Xo=e%100}static get throwOnInvalid(){return el}static set throwOnInvalid(e){el=e}static resetCaches(){xe.resetCache(),Sr.resetCache(),ae.resetCache(),Gf()}},St=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},_l=[0,31,59,90,120,151,181,212,243,273,304,334],zl=[0,31,60,91,121,152,182,213,244,274,305,335];function Et(t,e){return new St("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function us(t,e,r){let a=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);let i=a.getUTCDay();return i===0?7:i}function Ul(t,e,r){return r+(Hi(t)?zl:_l)[e-1]}function Hl(t,e){let r=Hi(t)?zl:_l,a=r.findIndex(n=>n<e),i=e-r[a];return{month:a+1,day:i}}function cs(t,e){return(t-e+7)%7+1}function Fa(t,e=4,r=1){let{year:a,month:i,day:n}=t,s=Ul(a,i,n),o=cs(us(a,i,n),r),l=Math.floor((s-o+14-e)/7),d;return l<1?(d=a-1,l=Ui(d,e,r)):l>Ui(a,e,r)?(d=a+1,l=1):d=a,{weekYear:d,weekNumber:l,weekday:o,...Da(t)}}function rl(t,e=4,r=1){let{weekYear:a,weekNumber:i,weekday:n}=t,s=cs(us(a,1,e),r),o=pi(a),l=i*7+n-s-7+e,d;l<1?(d=a-1,l+=pi(d)):l>o?(d=a+1,l-=pi(a)):d=a;let{month:u,day:c}=Hl(d,l);return{year:d,month:u,day:c,...Da(t)}}function kn(t){let{year:e,month:r,day:a}=t,i=Ul(e,r,a);return{year:e,ordinal:i,...Da(t)}}function il(t){let{year:e,ordinal:r}=t,{month:a,day:i}=Hl(e,r);return{year:e,month:a,day:i,...Da(t)}}function al(t,e){if(!J(t.localWeekday)||!J(t.localWeekNumber)||!J(t.localWeekYear)){if(!J(t.weekday)||!J(t.weekNumber)||!J(t.weekYear))throw new br("Cannot mix locale-based week fields with ISO-based week fields");return J(t.localWeekday)||(t.weekday=t.localWeekday),J(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),J(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function Qf(t,e=4,r=1){let a=Aa(t.weekYear),i=Lt(t.weekNumber,1,Ui(t.weekYear,e,r)),n=Lt(t.weekday,1,7);return a?i?n?!1:Et("weekday",t.weekday):Et("week",t.weekNumber):Et("weekYear",t.weekYear)}function Zf(t){let e=Aa(t.year),r=Lt(t.ordinal,1,pi(t.year));return e?r?!1:Et("ordinal",t.ordinal):Et("year",t.year)}function Gl(t){let e=Aa(t.year),r=Lt(t.month,1,12),a=Lt(t.day,1,Ia(t.year,t.month));return e?r?a?!1:Et("day",t.day):Et("month",t.month):Et("year",t.year)}function Ql(t){let{hour:e,minute:r,second:a,millisecond:i}=t,n=Lt(e,0,23)||e===24&&r===0&&a===0&&i===0,s=Lt(r,0,59),o=Lt(a,0,59),l=Lt(i,0,999);return n?s?o?l?!1:Et("millisecond",i):Et("second",a):Et("minute",r):Et("hour",e)}function J(t){return typeof t>"u"}function vr(t){return typeof t=="number"}function Aa(t){return typeof t=="number"&&t%1===0}function Kf(t){return typeof t=="string"}function Jf(t){return Object.prototype.toString.call(t)==="[object Date]"}function Zl(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Kl(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function Yf(t){return Array.isArray(t)?t:[t]}function nl(t,e,r){if(t.length!==0)return t.reduce((a,i)=>{let n=[e(i),i];return a&&r(a[0],n[0])===a[0]?a:n},null)[1]}function Xf(t,e){return e.reduce((r,a)=>(r[a]=t[a],r),{})}function mi(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ss(t){if(t==null)return null;if(typeof t!="object")throw new Qe("Week settings must be an object");if(!Lt(t.firstDay,1,7)||!Lt(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!Lt(e,1,7)))throw new Qe("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function Lt(t,e,r){return Aa(t)&&t>=e&&t<=r}function eh(t,e){return t-e*Math.floor(t/e)}function Ve(t,e=2){let r=t<0,a;return r?a="-"+(""+-t).padStart(e,"0"):a=(""+t).padStart(e,"0"),a}function yr(t){if(!(J(t)||t===null||t===""))return parseInt(t,10)}function Vr(t){if(!(J(t)||t===null||t===""))return parseFloat(t)}function ps(t){if(!(J(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function fs(t,e,r="round"){let a=10**e;switch(r){case"expand":return t>0?Math.ceil(t*a)/a:Math.floor(t*a)/a;case"trunc":return Math.trunc(t*a)/a;case"round":return Math.round(t*a)/a;case"floor":return Math.floor(t*a)/a;case"ceil":return Math.ceil(t*a)/a;default:throw new RangeError(`Value rounding ${r} is out of range`)}}function Hi(t){return t%4===0&&(t%100!==0||t%400===0)}function pi(t){return Hi(t)?366:365}function Ia(t,e){let r=eh(e-1,12)+1,a=t+(e-r)/12;return r===2?Hi(a)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function Ea(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function sl(t,e,r){return-cs(us(t,1,e),r)+e-1}function Ui(t,e=4,r=1){let a=sl(t,e,r),i=sl(t+1,e,r);return(pi(t)-a+i)/7}function os(t){return t>99?t:t>Ae.twoDigitCutoffYear?1900+t:2e3+t}function Jl(t,e,r,a=null){let i=new Date(t),n={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(n.timeZone=a);let s={timeZoneName:e,...n},o=new Intl.DateTimeFormat(r,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return o?o.value:null}function La(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let a=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-a:a;return r*60+i}function Yl(t){let e=Number(t);if(typeof t=="boolean"||t===""||!Number.isFinite(e))throw new Qe(`Invalid unit value ${t}`);return e}function Oa(t,e){let r={};for(let a in t)if(mi(t,a)){let i=t[a];if(i==null)continue;r[e(a)]=Yl(i)}return r}function zi(t,e){let r=Math.trunc(Math.abs(t/60)),a=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${Ve(r,2)}:${Ve(a,2)}`;case"narrow":return`${i}${r}${a>0?`:${a}`:""}`;case"techie":return`${i}${Ve(r,2)}${Ve(a,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function Da(t){return Xf(t,["hour","minute","second","millisecond"])}var th=["January","February","March","April","May","June","July","August","September","October","November","December"],Xl=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],rh=["J","F","M","A","M","J","J","A","S","O","N","D"];function ed(t){switch(t){case"narrow":return[...rh];case"short":return[...Xl];case"long":return[...th];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var td=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],rd=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ih=["M","T","W","T","F","S","S"];function id(t){switch(t){case"narrow":return[...ih];case"short":return[...rd];case"long":return[...td];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var ad=["AM","PM"],ah=["Before Christ","Anno Domini"],nh=["BC","AD"],sh=["B","A"];function nd(t){switch(t){case"narrow":return[...sh];case"short":return[...nh];case"long":return[...ah];default:return null}}function oh(t){return ad[t.hour<12?0:1]}function lh(t,e){return id(e)[t.weekday-1]}function dh(t,e){return ed(e)[t.month-1]}function uh(t,e){return nd(e)[t.year<0?0:1]}function ch(t,e,r="always",a=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},n=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&n){let c=t==="days";switch(e){case 1:return c?"tomorrow":`next ${i[t][0]}`;case-1:return c?"yesterday":`last ${i[t][0]}`;case 0:return c?"today":`this ${i[t][0]}`}}let s=Object.is(e,-0)||e<0,o=Math.abs(e),l=o===1,d=i[t],u=a?l?d[1]:d[2]||d[1]:l?i[t][0]:t;return s?`${o} ${u} ago`:`in ${o} ${u}`}function ol(t,e){let r="";for(let a of t)a.literal?r+=a.val:r+=e(a.val);return r}var ph={D:xa,DD:Cl,DDD:xl,DDDD:Tl,t:Fl,tt:Il,ttt:Ol,tttt:Pl,T:Al,TT:El,TTT:Ll,TTTT:Dl,f:Nl,ff:Ml,fff:ql,ffff:kl,F:Bl,FF:$l,FFF:Rl,FFFF:jl},vt=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,a="",i=!1,n=[];for(let s=0;s<e.length;s++){let o=e.charAt(s);o==="'"?((a.length>0||i)&&n.push({literal:i||/^\s+$/.test(a),val:a===""?"'":a}),r=null,a="",i=!i):i||o===r?a+=o:(a.length>0&&n.push({literal:/^\s+$/.test(a),val:a}),a=o,r=o)}return a.length>0&&n.push({literal:i||/^\s+$/.test(a),val:a}),n}static macroTokenToFormatOpts(e){return ph[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0,a=void 0){if(this.opts.forceSimple)return Ve(e,r);let i={...this.opts};return r>0&&(i.padTo=r),a&&(i.signDisplay=a),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,r){let a=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",n=(p,h)=>this.loc.extract(e,p,h),s=p=>e.isOffsetFixed&&e.offset===0&&p.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,p.format):"",o=()=>a?oh(e):n({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,h)=>a?dh(e,p):n(h?{month:p}:{month:p,day:"numeric"},"month"),d=(p,h)=>a?lh(e,p):n(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),u=p=>{let h=t.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(e,h):p},c=p=>a?uh(e,p):n({era:p},"era"),f=p=>{switch(p){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return i?n({day:"numeric"},"day"):this.num(e.day);case"dd":return i?n({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?n({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?n({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return i?n({month:"numeric"},"month"):this.num(e.month);case"MM":return i?n({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return i?n({year:"numeric"},"year"):this.num(e.year);case"yy":return i?n({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?n({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?n({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return u(p)}};return ol(t.parseFormat(r),f)}formatDurationFromString(e,r){let a=this.opts.signMode==="negativeLargestOnly"?-1:1,i=u=>{switch(u[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},n=(u,c)=>f=>{let p=i(f);if(p){let h=c.isNegativeDuration&&p!==c.largestUnit?a:1,m;return this.opts.signMode==="negativeLargestOnly"&&p!==c.largestUnit?m="never":this.opts.signMode==="all"?m="always":m="auto",this.num(u.get(p)*h,f.length,m)}else return f},s=t.parseFormat(r),o=s.reduce((u,{literal:c,val:f})=>c?u:u.concat(f),[]),l=e.shiftTo(...o.map(i).filter(u=>u)),d={isNegativeDuration:l<0,largestUnit:Object.keys(l.values)[0]};return ol(s,n(l,d))}},sd=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function yi(...t){let e=t.reduce((r,a)=>r+a.source,"");return RegExp(`^${e}$`)}function gi(...t){return e=>t.reduce(([r,a,i],n)=>{let[s,o,l]=n(e,i);return[{...r,...s},o||a,l]},[{},null,1]).slice(0,2)}function bi(t,...e){if(t==null)return[null,null];for(let[r,a]of e){let i=r.exec(t);if(i)return a(i)}return[null,null]}function od(...t){return(e,r)=>{let a={},i;for(i=0;i<t.length;i++)a[t[i]]=yr(e[r+i]);return[a,null,r+i]}}var ld=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,fh=`(?:${ld.source}?(?:\\[(${sd.source})\\])?)?`,hs=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,dd=RegExp(`${hs.source}${fh}`),ms=RegExp(`(?:[Tt]${dd.source})?`),hh=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,mh=/(\d{4})-?W(\d\d)(?:-?(\d))?/,yh=/(\d{4})-?(\d{3})/,gh=od("weekYear","weekNumber","weekDay"),bh=od("year","ordinal"),vh=/(\d{4})-(\d\d)-(\d\d)/,ud=RegExp(`${hs.source} ?(?:${ld.source}|(${sd.source}))?`),Sh=RegExp(`(?: ${ud.source})?`);function fi(t,e,r){let a=t[e];return J(a)?r:yr(a)}function wh(t,e){return[{year:fi(t,e),month:fi(t,e+1,1),day:fi(t,e+2,1)},null,e+3]}function vi(t,e){return[{hours:fi(t,e,0),minutes:fi(t,e+1,0),seconds:fi(t,e+2,0),milliseconds:ps(t[e+3])},null,e+4]}function Gi(t,e){let r=!t[e]&&!t[e+1],a=La(t[e+1],t[e+2]),i=r?null:Dt.instance(a);return[{},i,e+3]}function Qi(t,e){let r=t[e]?Sr.create(t[e]):null;return[{},r,e+1]}var Ch=RegExp(`^T?${hs.source}$`),xh=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Th(t){let[e,r,a,i,n,s,o,l,d]=t,u=e[0]==="-",c=l&&l[0]==="-",f=(p,h=!1)=>p!==void 0&&(h||p&&u)?-p:p;return[{years:f(Vr(r)),months:f(Vr(a)),weeks:f(Vr(i)),days:f(Vr(n)),hours:f(Vr(s)),minutes:f(Vr(o)),seconds:f(Vr(l),l==="-0"),milliseconds:f(ps(d),c)}]}var Fh={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ys(t,e,r,a,i,n,s){let o={year:e.length===2?os(yr(e)):yr(e),month:Xl.indexOf(r)+1,day:yr(a),hour:yr(i),minute:yr(n)};return s&&(o.second=yr(s)),t&&(o.weekday=t.length>3?td.indexOf(t)+1:rd.indexOf(t)+1),o}var Ih=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Oh(t){let[,e,r,a,i,n,s,o,l,d,u,c]=t,f=ys(e,i,a,r,n,s,o),p;return l?p=Fh[l]:d?p=0:p=La(u,c),[f,new Dt(p)]}function Ph(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Ah=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Eh=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Lh=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function ll(t){let[,e,r,a,i,n,s,o]=t;return[ys(e,i,a,r,n,s,o),Dt.utcInstance]}function Dh(t){let[,e,r,a,i,n,s,o]=t;return[ys(e,o,r,a,i,n,s),Dt.utcInstance]}var Nh=yi(hh,ms),Bh=yi(mh,ms),Mh=yi(yh,ms),$h=yi(dd),cd=gi(wh,vi,Gi,Qi),qh=gi(gh,vi,Gi,Qi),Rh=gi(bh,vi,Gi,Qi),kh=gi(vi,Gi,Qi);function jh(t){return bi(t,[Nh,cd],[Bh,qh],[Mh,Rh],[$h,kh])}function Wh(t){return bi(Ph(t),[Ih,Oh])}function Vh(t){return bi(t,[Ah,ll],[Eh,ll],[Lh,Dh])}function _h(t){return bi(t,[xh,Th])}var zh=gi(vi);function Uh(t){return bi(t,[Ch,zh])}var Hh=yi(vh,Sh),Gh=yi(ud),Qh=gi(vi,Gi,Qi);function Zh(t){return bi(t,[Hh,cd],[Gh,Qh])}var dl="Invalid Duration",pd={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},Kh={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...pd},At=146097/400,li=146097/4800,Jh={years:{quarters:4,months:12,weeks:At/7,days:At,hours:At*24,minutes:At*24*60,seconds:At*24*60*60,milliseconds:At*24*60*60*1e3},quarters:{months:3,weeks:At/28,days:At/4,hours:At*24/4,minutes:At*24*60/4,seconds:At*24*60*60/4,milliseconds:At*24*60*60*1e3/4},months:{weeks:li/7,days:li,hours:li*24,minutes:li*24*60,seconds:li*24*60*60,milliseconds:li*24*60*60*1e3},...pd},zr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Yh=zr.slice(0).reverse();function tr(t,e,r=!1){let a={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ze(a)}function fd(t,e){let r=e.milliseconds??0;for(let a of Yh.slice(1))e[a]&&(r+=e[a]*t[a].milliseconds);return r}function ul(t,e){let r=fd(t,e)<0?-1:1;zr.reduceRight((a,i)=>{if(J(e[i]))return a;if(a){let n=e[a]*r,s=t[i][a],o=Math.floor(n/s);e[i]+=o*r,e[a]-=o*s*r}return i},null),zr.reduce((a,i)=>{if(J(e[i]))return a;if(a){let n=e[a]%1;e[a]-=n,e[i]+=n*t[a][i]}return i},null)}function cl(t){let e={};for(let[r,a]of Object.entries(t))a!==0&&(e[r]=a);return e}var Ze=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,a=r?Jh:Kh;e.matrix&&(a=e.matrix),this.values=e.values,this.loc=e.loc||xe.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=a,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new Qe(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:Oa(e,t.normalizeUnit),loc:xe.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(vr(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new Qe(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[a]=_h(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[a]=Uh(e);return a?t.fromObject(a,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Duration is invalid");let a=e instanceof St?e:new St(e,r);if(Ae.throwOnInvalid)throw new Gn(a);return new t({invalid:a})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new Ca(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let a={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?vt.create(this.loc,a).formatDurationFromString(this,e):dl}toHuman(e={}){if(!this.isValid)return dl;let r=e.showZeros!==!1,a=zr.map(i=>{let n=this.values[i];return J(n)||n===0&&!r?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(n)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(a)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=fs(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},ae.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?fd(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),a={};for(let i of zr)(mi(r.values,i)||mi(this.values,i))&&(a[i]=r.get(i)+this.get(i));return tr(this,{values:a},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let a of Object.keys(this.values))r[a]=Yl(e(this.values[a],a));return tr(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...Oa(e,t.normalizeUnit)};return tr(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:a,matrix:i}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:a};return tr(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return ul(this.matrix,e),tr(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=cl(this.normalize().shiftToAll().toObject());return tr(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},a={},i=this.toObject(),n;for(let s of zr)if(e.indexOf(s)>=0){n=s;let o=0;for(let d in a)o+=this.matrix[d][s]*a[d],a[d]=0;vr(i[s])&&(o+=i[s]);let l=Math.trunc(o);r[s]=l,a[s]=(o*1e3-l*1e3)/1e3}else vr(i[s])&&(a[s]=i[s]);for(let s in a)a[s]!==0&&(r[n]+=s===n?a[s]:a[s]/this.matrix[n][s]);return ul(this.matrix,r),tr(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return tr(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=cl(this.values);return tr(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(a,i){return a===void 0||a===0?i===void 0||i===0:a===i}for(let a of zr)if(!r(this.values[a],e.values[a]))return!1;return!0}},di="Invalid Interval";function Xh(t,e){return!t||!t.isValid?hi.invalid("missing or invalid start"):!e||!e.isValid?hi.invalid("missing or invalid end"):e<t?hi.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var hi=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the Interval is invalid");let a=e instanceof St?e:new St(e,r);if(Ae.throwOnInvalid)throw new Hn(a);return new t({invalid:a})}static fromDateTimes(e,r){let a=ji(e),i=ji(r),n=Xh(a,i);return n??new t({start:a,end:i})}static after(e,r){let a=Ze.fromDurationLike(r),i=ji(e);return t.fromDateTimes(i,i.plus(a))}static before(e,r){let a=Ze.fromDurationLike(r),i=ji(e);return t.fromDateTimes(i.minus(a),i)}static fromISO(e,r){let[a,i]=(e||"").split("/",2);if(a&&i){let n,s;try{n=ae.fromISO(a,r),s=n.isValid}catch{s=!1}let o,l;try{o=ae.fromISO(i,r),l=o.isValid}catch{l=!1}if(s&&l)return t.fromDateTimes(n,o);if(s){let d=Ze.fromISO(i,r);if(d.isValid)return t.after(n,d)}else if(l){let d=Ze.fromISO(a,r);if(d.isValid)return t.before(o,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let a=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:a.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(a,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(ji).filter(s=>this.contains(s)).sort((s,o)=>s.toMillis()-o.toMillis()),a=[],{s:i}=this,n=0;for(;i<this.e;){let s=r[n]||this.e,o=+s>+this.e?this.e:s;a.push(t.fromDateTimes(i,o)),i=o,n+=1}return a}splitBy(e){let r=Ze.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:a}=this,i=1,n,s=[];for(;a<this.e;){let o=this.start.plus(r.mapUnits(l=>l*i));n=+o>+this.e?this.e:o,s.push(t.fromDateTimes(a,n)),a=n,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,a=this.e<e.e?this.e:e.e;return r>=a?null:t.fromDateTimes(r,a)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,a=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,a)}static merge(e){let[r,a]=e.sort((i,n)=>i.s-n.s).reduce(([i,n],s)=>n?n.overlaps(s)||n.abutsStart(s)?[i,n.union(s)]:[i.concat([n]),s]:[i,s],[[],null]);return a&&r.push(a),r}static xor(e){let r=null,a=0,i=[],n=e.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...n),o=s.sort((l,d)=>l.time-d.time);for(let l of o)a+=l.type==="s"?1:-1,a===1?r=l.time:(r&&+r!=+l.time&&i.push(t.fromDateTimes(r,l.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:di}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=xa,r={}){return this.isValid?vt.create(this.s.loc.clone(r),e).formatInterval(this):di}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:di}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:di}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:di}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:di}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):Ze.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}},ci=class{static hasDST(e=Ae.defaultZone){let r=ae.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return Sr.isValidZone(e)}static normalizeZone(e){return gr(e,Ae.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||xe.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||xe.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||xe.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||xe.create(r,a,n)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null,outputCalendar:n="gregory"}={}){return(i||xe.create(r,a,n)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||xe.create(r,a,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:a=null,locObj:i=null}={}){return(i||xe.create(r,a,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return xe.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return xe.create(r,null,"gregory").eras(e)}static features(){return{relative:Zl(),localeWeek:Kl()}}};function pl(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=r(e)-r(t);return Math.floor(Ze.fromMillis(a).as("days"))}function em(t,e,r){let a=[["years",(l,d)=>d.year-l.year],["quarters",(l,d)=>d.quarter-l.quarter+(d.year-l.year)*4],["months",(l,d)=>d.month-l.month+(d.year-l.year)*12],["weeks",(l,d)=>{let u=pl(l,d);return(u-u%7)/7}],["days",pl]],i={},n=t,s,o;for(let[l,d]of a)r.indexOf(l)>=0&&(s=l,i[l]=d(t,e),o=n.plus(i),o>e?(i[l]--,t=n.plus(i),t>e&&(o=t,i[l]--,t=n.plus(i))):t=o);return[t,i,o,s]}function tm(t,e,r,a){let[i,n,s,o]=em(t,e,r),l=e-i,d=r.filter(c=>["hours","minutes","seconds","milliseconds"].indexOf(c)>=0);d.length===0&&(s<e&&(s=i.plus({[o]:1})),s!==i&&(n[o]=(n[o]||0)+l/(s-i)));let u=Ze.fromObject(n,a);return d.length>0?Ze.fromMillis(l,a).shiftTo(...d).plus(u):u}var rm="missing Intl.DateTimeFormat.formatToParts support";function fe(t,e=r=>r){return{regex:t,deser:([r])=>e(Hf(r))}}var im="\xA0",hd=`[ ${im}]`,md=new RegExp(hd,"g");function am(t){return t.replace(/\./g,"\\.?").replace(md,hd)}function fl(t){return t.replace(/\./g,"").replace(md," ").toLowerCase()}function Rt(t,e){return t===null?null:{regex:RegExp(t.map(am).join("|")),deser:([r])=>t.findIndex(a=>fl(r)===fl(a))+e}}function hl(t,e){return{regex:t,deser:([,r,a])=>La(r,a),groups:e}}function ya(t){return{regex:t,deser:([e])=>e}}function nm(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function sm(t,e){let r=qt(e),a=qt(e,"{2}"),i=qt(e,"{3}"),n=qt(e,"{4}"),s=qt(e,"{6}"),o=qt(e,"{1,2}"),l=qt(e,"{1,3}"),d=qt(e,"{1,6}"),u=qt(e,"{1,9}"),c=qt(e,"{2,4}"),f=qt(e,"{4,6}"),p=y=>({regex:RegExp(nm(y.val)),deser:([g])=>g,literal:!0}),m=(y=>{if(t.literal)return p(y);switch(y.val){case"G":return Rt(e.eras("short"),0);case"GG":return Rt(e.eras("long"),0);case"y":return fe(d);case"yy":return fe(c,os);case"yyyy":return fe(n);case"yyyyy":return fe(f);case"yyyyyy":return fe(s);case"M":return fe(o);case"MM":return fe(a);case"MMM":return Rt(e.months("short",!0),1);case"MMMM":return Rt(e.months("long",!0),1);case"L":return fe(o);case"LL":return fe(a);case"LLL":return Rt(e.months("short",!1),1);case"LLLL":return Rt(e.months("long",!1),1);case"d":return fe(o);case"dd":return fe(a);case"o":return fe(l);case"ooo":return fe(i);case"HH":return fe(a);case"H":return fe(o);case"hh":return fe(a);case"h":return fe(o);case"mm":return fe(a);case"m":return fe(o);case"q":return fe(o);case"qq":return fe(a);case"s":return fe(o);case"ss":return fe(a);case"S":return fe(l);case"SSS":return fe(i);case"u":return ya(u);case"uu":return ya(o);case"uuu":return fe(r);case"a":return Rt(e.meridiems(),0);case"kkkk":return fe(n);case"kk":return fe(c,os);case"W":return fe(o);case"WW":return fe(a);case"E":case"c":return fe(r);case"EEE":return Rt(e.weekdays("short",!1),1);case"EEEE":return Rt(e.weekdays("long",!1),1);case"ccc":return Rt(e.weekdays("short",!0),1);case"cccc":return Rt(e.weekdays("long",!0),1);case"Z":case"ZZ":return hl(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return hl(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ya(/[a-z_+-/]{1,256}?/i);case" ":return ya(/[^\S\n\r]/);default:return p(y)}})(t)||{invalidReason:rm};return m.token=t,m}var om={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function lm(t,e,r){let{type:a,value:i}=t;if(a==="literal"){let l=/^\s+$/.test(i);return{literal:!l,val:l?" ":i}}let n=e[a],s=a;a==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let o=om[s];if(typeof o=="object"&&(o=o[n]),o)return{literal:!1,val:o}}function dm(t){return[`^${t.map(r=>r.regex).reduce((r,a)=>`${r}(${a.source})`,"")}$`,t]}function um(t,e,r){let a=t.match(e);if(a){let i={},n=1;for(let s in r)if(mi(r,s)){let o=r[s],l=o.groups?o.groups+1:1;!o.literal&&o.token&&(i[o.token.val[0]]=o.deser(a.slice(n,n+l))),n+=l}return[a,i]}else return[a,{}]}function cm(t){let e=n=>{switch(n){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,a;return J(t.z)||(r=Sr.create(t.z)),J(t.Z)||(r||(r=new Dt(t.Z)),a=t.Z),J(t.q)||(t.M=(t.q-1)*3+1),J(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),J(t.u)||(t.S=ps(t.u)),[Object.keys(t).reduce((n,s)=>{let o=e(s);return o&&(n[o]=t[s]),n},{}),r,a]}var jn=null;function pm(){return jn||(jn=ae.fromMillis(1555555555555)),jn}function fm(t,e){if(t.literal)return t;let r=vt.macroTokenToFormatOpts(t.val),a=bd(r,e);return a==null||a.includes(void 0)?t:a}function yd(t,e){return Array.prototype.concat(...t.map(r=>fm(r,e)))}var Pa=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=yd(vt.parseFormat(r),e),this.units=this.tokens.map(a=>sm(a,e)),this.disqualifyingUnit=this.units.find(a=>a.invalidReason),!this.disqualifyingUnit){let[a,i]=dm(this.units);this.regex=RegExp(a,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,a]=um(e,this.regex,this.handlers),[i,n,s]=a?cm(a):[null,null,void 0];if(mi(a,"a")&&mi(a,"H"))throw new br("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:a,result:i,zone:n,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function gd(t,e,r){return new Pa(t,r).explainFromTokens(e)}function hm(t,e,r){let{result:a,zone:i,specificOffset:n,invalidReason:s}=gd(t,e,r);return[a,i,n,s]}function bd(t,e){if(!t)return null;let a=vt.create(e,t).dtFormatter(pm()),i=a.formatToParts(),n=a.resolvedOptions();return i.map(s=>lm(s,t,n))}var Wn="Invalid DateTime",ml=864e13;function Vi(t){return new St("unsupported zone",`the zone "${t.name}" is not supported`)}function Vn(t){return t.weekData===null&&(t.weekData=Fa(t.c)),t.weekData}function _n(t){return t.localWeekData===null&&(t.localWeekData=Fa(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function _r(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new ae({...r,...e,old:r})}function vd(t,e,r){let a=t-e*60*1e3,i=r.offset(a);if(e===i)return[a,e];a-=(i-e)*60*1e3;let n=r.offset(a);return i===n?[a,i]:[t-Math.min(i,n)*60*1e3,Math.max(i,n)]}function ga(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function va(t,e,r){return vd(Ea(t),e,r)}function yl(t,e){let r=t.o,a=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,n={...t.c,year:a,month:i,day:Math.min(t.c.day,Ia(a,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=Ze.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Ea(n),[l,d]=vd(o,r,t.zone);return s!==0&&(l+=s,d=t.zone.offset(l)),{ts:l,o:d}}function ui(t,e,r,a,i,n){let{setZone:s,zone:o}=r;if(t&&Object.keys(t).length!==0||e){let l=e||o,d=ae.fromObject(t,{...r,zone:l,specificOffset:n});return s?d:d.setZone(o)}else return ae.invalid(new St("unparsable",`the input "${i}" can't be parsed as ${a}`))}function ba(t,e,r=!0){return t.isValid?vt.create(xe.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function zn(t,e,r){let a=t.c.year>9999||t.c.year<0,i="";if(a&&t.c.year>=0&&(i+="+"),i+=Ve(t.c.year,a?6:4),r==="year")return i;if(e){if(i+="-",i+=Ve(t.c.month),r==="month")return i;i+="-"}else if(i+=Ve(t.c.month),r==="month")return i;return i+=Ve(t.c.day),i}function gl(t,e,r,a,i,n,s){let o=!r||t.c.millisecond!==0||t.c.second!==0,l="";switch(s){case"day":case"month":case"year":break;default:if(l+=Ve(t.c.hour),s==="hour")break;if(e){if(l+=":",l+=Ve(t.c.minute),s==="minute")break;o&&(l+=":",l+=Ve(t.c.second))}else{if(l+=Ve(t.c.minute),s==="minute")break;o&&(l+=Ve(t.c.second))}if(s==="second")break;o&&(!a||t.c.millisecond!==0)&&(l+=".",l+=Ve(t.c.millisecond,3))}return i&&(t.isOffsetFixed&&t.offset===0&&!n?l+="Z":t.o<0?(l+="-",l+=Ve(Math.trunc(-t.o/60)),l+=":",l+=Ve(Math.trunc(-t.o%60))):(l+="+",l+=Ve(Math.trunc(t.o/60)),l+=":",l+=Ve(Math.trunc(t.o%60)))),n&&(l+="["+t.zone.ianaName+"]"),l}var Sd={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},mm={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ym={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Sa=["year","month","day","hour","minute","second","millisecond"],gm=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],bm=["year","ordinal","hour","minute","second","millisecond"];function wa(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new Ca(t);return e}function bl(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return wa(t)}}function vm(t){if(_i===void 0&&(_i=Ae.now()),t.type!=="iana")return t.offset(_i);let e=t.name,r=ls.get(e);return r===void 0&&(r=t.offset(_i),ls.set(e,r)),r}function vl(t,e){let r=gr(e.zone,Ae.defaultZone);if(!r.isValid)return ae.invalid(Vi(r));let a=xe.fromObject(e),i,n;if(J(t.year))i=Ae.now();else{for(let l of Sa)J(t[l])&&(t[l]=Sd[l]);let s=Gl(t)||Ql(t);if(s)return ae.invalid(s);let o=vm(r);[i,n]=va(t,o,r)}return new ae({ts:i,zone:r,loc:a,o:n})}function Sl(t,e,r){let a=J(r.round)?!0:r.round,i=J(r.rounding)?"trunc":r.rounding,n=(o,l)=>(o=fs(o,a||r.calendary?0:2,r.calendary?"round":i),e.loc.clone(r).relFormatter(r).format(o,l)),s=o=>r.calendary?e.hasSame(t,o)?0:e.startOf(o).diff(t.startOf(o),o).get(o):e.diff(t,o).get(o);if(r.unit)return n(s(r.unit),r.unit);for(let o of r.units){let l=s(o);if(Math.abs(l)>=1)return n(l,o)}return n(t>e?-0:0,r.units[r.units.length-1])}function wl(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}var _i,ls=new Map,ae=class t{constructor(e){let r=e.zone||Ae.defaultZone,a=e.invalid||(Number.isNaN(e.ts)?new St("invalid input"):null)||(r.isValid?null:Vi(r));this.ts=J(e.ts)?Ae.now():e.ts;let i=null,n=null;if(!a)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,n]=[e.old.c,e.old.o];else{let o=vr(e.o)&&!e.old?e.o:r.offset(this.ts);i=ga(this.ts,o),a=Number.isNaN(i.year)?new St("invalid input"):null,i=a?null:i,n=a?null:o}this._zone=r,this.loc=e.loc||xe.create(),this.invalid=a,this.weekData=null,this.localWeekData=null,this.c=i,this.o=n,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=wl(arguments),[a,i,n,s,o,l,d]=r;return vl({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static utc(){let[e,r]=wl(arguments),[a,i,n,s,o,l,d]=r;return e.zone=Dt.utcInstance,vl({year:a,month:i,day:n,hour:s,minute:o,second:l,millisecond:d},e)}static fromJSDate(e,r={}){let a=Jf(e)?e.valueOf():NaN;if(Number.isNaN(a))return t.invalid("invalid input");let i=gr(r.zone,Ae.defaultZone);return i.isValid?new t({ts:a,zone:i,loc:xe.fromObject(r)}):t.invalid(Vi(i))}static fromMillis(e,r={}){if(vr(e))return e<-ml||e>ml?t.invalid("Timestamp out of range"):new t({ts:e,zone:gr(r.zone,Ae.defaultZone),loc:xe.fromObject(r)});throw new Qe(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(vr(e))return new t({ts:e*1e3,zone:gr(r.zone,Ae.defaultZone),loc:xe.fromObject(r)});throw new Qe("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let a=gr(r.zone,Ae.defaultZone);if(!a.isValid)return t.invalid(Vi(a));let i=xe.fromObject(r),n=Oa(e,bl),{minDaysInFirstWeek:s,startOfWeek:o}=al(n,i),l=Ae.now(),d=J(r.specificOffset)?a.offset(l):r.specificOffset,u=!J(n.ordinal),c=!J(n.year),f=!J(n.month)||!J(n.day),p=c||f,h=n.weekYear||n.weekNumber;if((p||u)&&h)throw new br("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(f&&u)throw new br("Can't mix ordinal dates with month/day");let m=h||n.weekday&&!p,y,g,v=ga(l,d);m?(y=gm,g=mm,v=Fa(v,s,o)):u?(y=bm,g=ym,v=kn(v)):(y=Sa,g=Sd);let w=!1;for(let B of y){let N=n[B];J(N)?w?n[B]=g[B]:n[B]=v[B]:w=!0}let x=m?Qf(n,s,o):u?Zf(n):Gl(n),F=x||Ql(n);if(F)return t.invalid(F);let A=m?rl(n,s,o):u?il(n):n,[q,L]=va(A,d,a),P=new t({ts:q,zone:a,o:L,loc:i});return n.weekday&&p&&e.weekday!==P.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${n.weekday} and a date of ${P.toISO()}`):P.isValid?P:t.invalid(P.invalid)}static fromISO(e,r={}){let[a,i]=jh(e);return ui(a,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[a,i]=Wh(e);return ui(a,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[a,i]=Vh(e);return ui(a,i,r,"HTTP",r)}static fromFormat(e,r,a={}){if(J(e)||J(r))throw new Qe("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:n=null}=a,s=xe.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0}),[o,l,d,u]=hm(s,e,r);return u?t.invalid(u):ui(o,l,a,`format ${r}`,e,d)}static fromString(e,r,a={}){return t.fromFormat(e,r,a)}static fromSQL(e,r={}){let[a,i]=Zh(e);return ui(a,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new Qe("need to specify a reason the DateTime is invalid");let a=e instanceof St?e:new St(e,r);if(Ae.throwOnInvalid)throw new Un(a);return new t({invalid:a})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let a=bd(e,xe.fromObject(r));return a?a.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return yd(vt.parseFormat(e),xe.fromObject(r)).map(i=>i.val).join("")}static resetCache(){_i=void 0,ls.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Vn(this).weekYear:NaN}get weekNumber(){return this.isValid?Vn(this).weekNumber:NaN}get weekday(){return this.isValid?Vn(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?_n(this).weekday:NaN}get localWeekNumber(){return this.isValid?_n(this).weekNumber:NaN}get localWeekYear(){return this.isValid?_n(this).weekYear:NaN}get ordinal(){return this.isValid?kn(this.c).ordinal:NaN}get monthShort(){return this.isValid?ci.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ci.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ci.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ci.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,a=Ea(this.c),i=this.zone.offset(a-e),n=this.zone.offset(a+e),s=this.zone.offset(a-i*r),o=this.zone.offset(a-n*r);if(s===o)return[this];let l=a-s*r,d=a-o*r,u=ga(l,s),c=ga(d,o);return u.hour===c.hour&&u.minute===c.minute&&u.second===c.second&&u.millisecond===c.millisecond?[_r(this,{ts:l}),_r(this,{ts:d})]:[this]}get isInLeapYear(){return Hi(this.year)}get daysInMonth(){return Ia(this.year,this.month)}get daysInYear(){return this.isValid?pi(this.year):NaN}get weeksInWeekYear(){return this.isValid?Ui(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Ui(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:a,calendar:i}=vt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:a,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(Dt.instance(e),r)}toLocal(){return this.setZone(Ae.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:a=!1}={}){if(e=gr(e,Ae.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||a){let n=e.offset(this.ts),s=this.toObject();[i]=va(s,n,e)}return _r(this,{ts:i,zone:e})}else return t.invalid(Vi(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:a}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:a});return _r(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=Oa(e,bl),{minDaysInFirstWeek:a,startOfWeek:i}=al(r,this.loc),n=!J(r.weekYear)||!J(r.weekNumber)||!J(r.weekday),s=!J(r.ordinal),o=!J(r.year),l=!J(r.month)||!J(r.day),d=o||l,u=r.weekYear||r.weekNumber;if((d||s)&&u)throw new br("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new br("Can't mix ordinal dates with month/day");let c;n?c=rl({...Fa(this.c,a,i),...r},a,i):J(r.ordinal)?(c={...this.toObject(),...r},J(r.day)&&(c.day=Math.min(Ia(c.year,c.month),c.day))):c=il({...kn(this.c),...r});let[f,p]=va(c,this.o,this.zone);return _r(this,{ts:f,o:p})}plus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e);return _r(this,yl(this,r))}minus(e){if(!this.isValid)return this;let r=Ze.fromDurationLike(e).negate();return _r(this,yl(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let a={},i=Ze.normalizeUnit(e);switch(i){case"years":a.month=1;case"quarters":case"months":a.day=1;case"weeks":case"days":a.hour=0;case"hours":a.minute=0;case"minutes":a.second=0;case"seconds":a.millisecond=0;break}if(i==="weeks")if(r){let n=this.loc.getStartOfWeek(),{weekday:s}=this;s<n&&(a.weekNumber=this.weekNumber-1),a.weekday=n}else a.weekday=1;if(i==="quarters"){let n=Math.ceil(this.month/3);a.month=(n-1)*3+1}return this.set(a)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?vt.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):Wn}toLocaleString(e=xa,r={}){return this.isValid?vt.create(this.loc.clone(r),e).formatDateTime(this):Wn}toLocaleParts(e={}){return this.isValid?vt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:a=!1,includeOffset:i=!0,extendedZone:n=!1,precision:s="milliseconds"}={}){if(!this.isValid)return null;s=wa(s);let o=e==="extended",l=zn(this,o,s);return Sa.indexOf(s)>=3&&(l+="T"),l+=gl(this,o,r,a,i,n,s),l}toISODate({format:e="extended",precision:r="day"}={}){return this.isValid?zn(this,e==="extended",wa(r)):null}toISOWeekDate(){return ba(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:a=!0,includePrefix:i=!1,extendedZone:n=!1,format:s="extended",precision:o="milliseconds"}={}){return this.isValid?(o=wa(o),(i&&Sa.indexOf(o)>=3?"T":"")+gl(this,s==="extended",r,e,a,n,o)):null}toRFC2822(){return ba(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ba(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?zn(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:a=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(a&&(i+=" "),r?i+="z":e&&(i+="ZZ")),ba(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Wn}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",a={}){if(!this.isValid||!e.isValid)return Ze.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...a},n=Yf(r).map(Ze.normalizeUnit),s=e.valueOf()>this.valueOf(),o=s?this:e,l=s?e:this,d=tm(o,l,n,i);return s?d.negate():d}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?hi.fromDateTimes(this,e):this}hasSame(e,r,a){if(!this.isValid)return!1;let i=e.valueOf(),n=this.setZone(e.zone,{keepLocalTime:!0});return n.startOf(r,a)<=i&&i<=n.endOf(r,a)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),a=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],n=e.unit;return Array.isArray(e.unit)&&(i=e.unit,n=void 0),Sl(r,this.plus(a),{...e,numeric:"always",units:i,unit:n})}toRelativeCalendar(e={}){return this.isValid?Sl(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new Qe("min requires all arguments be DateTimes");return nl(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new Qe("max requires all arguments be DateTimes");return nl(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,a={}){let{locale:i=null,numberingSystem:n=null}=a,s=xe.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});return gd(s,e,r)}static fromStringExplain(e,r,a={}){return t.fromFormatExplain(e,r,a)}static buildFormatParser(e,r={}){let{locale:a=null,numberingSystem:i=null}=r,n=xe.fromOpts({locale:a,numberingSystem:i,defaultToEN:!0});return new Pa(n,e)}static fromFormatParser(e,r,a={}){if(J(e)||J(r))throw new Qe("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:n=null}=a,s=xe.fromOpts({locale:i,numberingSystem:n,defaultToEN:!0});if(!s.equals(r.locale))throw new Qe(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:o,zone:l,specificOffset:d,invalidReason:u}=r.explainFromTokens(e);return u?t.invalid(u):ui(o,l,a,`format ${r.format}`,e,d)}static get DATE_SHORT(){return xa}static get DATE_MED(){return Cl}static get DATE_MED_WITH_WEEKDAY(){return Af}static get DATE_FULL(){return xl}static get DATE_HUGE(){return Tl}static get TIME_SIMPLE(){return Fl}static get TIME_WITH_SECONDS(){return Il}static get TIME_WITH_SHORT_OFFSET(){return Ol}static get TIME_WITH_LONG_OFFSET(){return Pl}static get TIME_24_SIMPLE(){return Al}static get TIME_24_WITH_SECONDS(){return El}static get TIME_24_WITH_SHORT_OFFSET(){return Ll}static get TIME_24_WITH_LONG_OFFSET(){return Dl}static get DATETIME_SHORT(){return Nl}static get DATETIME_SHORT_WITH_SECONDS(){return Bl}static get DATETIME_MED(){return Ml}static get DATETIME_MED_WITH_SECONDS(){return $l}static get DATETIME_MED_WITH_WEEKDAY(){return Ef}static get DATETIME_FULL(){return ql}static get DATETIME_FULL_WITH_SECONDS(){return Rl}static get DATETIME_HUGE(){return kl}static get DATETIME_HUGE_WITH_SECONDS(){return jl}};function ji(t){if(ae.isDateTime(t))return t;if(t&&t.valueOf&&vr(t.valueOf()))return ae.fromJSDate(t);if(t&&typeof t=="object")return ae.fromObject(t);throw new Qe(`Unknown datetime argument: ${t}, of type ${typeof t}`)}function wd(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var a=-1,i=Math.max(0,Math.ceil((e-t)/r))|0,n=new Array(i);++a<i;)n[a]=t+a*r;return n}function Si(t,e){let r,a;if(e===void 0)for(let i of t)i!=null&&(r===void 0?i>=i&&(r=a=i):(r>i&&(r=i),a<i&&(a=i)));else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(r===void 0?n>=n&&(r=a=n):(r>n&&(r=n),a<n&&(a=n)))}return[r,a]}var Na=class extends Map{constructor(e,r=Cm){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[a,i]of e)this.set(a,i)}get(e){return super.get(Cd(this,e))}has(e){return super.has(Cd(this,e))}set(e,r){return super.set(Sm(this,e),r)}delete(e){return super.delete(wm(this,e))}};function Cd({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):r}function Sm({_intern:t,_key:e},r){let a=e(r);return t.has(a)?t.get(a):(t.set(a,r),r)}function wm({_intern:t,_key:e},r){let a=e(r);return t.has(a)&&(r=t.get(a),t.delete(a)),r}function Cm(t){return t!==null&&typeof t=="object"?t.valueOf():t}function gs(t){return t}function bs(t,e,...r){return xm(t,gs,e,r)}function xm(t,e,r,a){return(function i(n,s){if(s>=a.length)return r(n);let o=new Na,l=a[s++],d=-1;for(let u of n){let c=l(u,++d,n),f=o.get(c);f?f.push(u):o.set(c,[u])}for(let[u,c]of o)o.set(u,i(c,s));return e(o)})(t,0)}function Ba(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r<a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r<i||r===void 0&&i>=i)&&(r=i)}return r}function Ma(t,e){let r;if(e===void 0)for(let a of t)a!=null&&(r>a||r===void 0&&a>=a)&&(r=a);else{let a=-1;for(let i of t)(i=e(i,++a,t))!=null&&(r>i||r===void 0&&i>=i)&&(r=i)}return r}function $a(t,e){let r=0,a=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++r,a+=i);else{let i=-1;for(let n of t)(n=e(n,++i,t))!=null&&(n=+n)>=n&&(++r,a+=n)}if(r)return a/r}function qa(t,e){let r=0;if(e===void 0)for(let a of t)(a=+a)&&(r+=a);else{let a=-1;for(let i of t)(i=+e(i,++a,t))&&(r+=i)}return r}var Va=function(){return Va=Object.assign||function(e){for(var r,a=1,i=arguments.length;a<i;a++){r=arguments[a];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Va.apply(this,arguments)},vs={exports:{}},Ne={},Ss={exports:{}},Hr={};function Od(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function Tm(t,e,r){}function Fm(t,e,r){}var Im=/javascript\s*\:/img;function Om(t,e){return Im.test(e)?"":e}Hr.whiteList=Od();Hr.getDefaultWhiteList=Od;Hr.onAttr=Tm;Hr.onIgnoreAttr=Fm;Hr.safeAttrValue=Om;var Pm={indexOf:function(t,e){var r,a;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var a,i;if(Array.prototype.forEach)return t.forEach(e,r);for(a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Zi=Pm;function Am(t,e){t=Zi.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,a=!1,i=0,n=0,s="";function o(){if(!a){var u=Zi.trim(t.slice(i,n)),c=u.indexOf(":");if(c!==-1){var f=Zi.trim(u.slice(0,c)),p=Zi.trim(u.slice(c+1));if(f){var h=e(i,s.length,f,p,u);h&&(s+=h+"; ")}}}i=n+1}for(;n<r;n++){var l=t[n];if(l==="/"&&t[n+1]==="*"){var d=t.indexOf("*/",n+2);if(d===-1)break;n=d+1,i=n+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
|
|
3
3
|
`&&o()}return Zi.trim(s)}var Em=Am,Ra=Hr,Lm=Em;function xd(t){return t==null}function Dm(t){var e={};for(var r in t)e[r]=t[r];return e}function Pd(t){t=Dm(t||{}),t.whiteList=t.whiteList||Ra.whiteList,t.onAttr=t.onAttr||Ra.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||Ra.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||Ra.safeAttrValue,this.options=t}Pd.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,a=r.whiteList,i=r.onAttr,n=r.onIgnoreAttr,s=r.safeAttrValue,o=Lm(t,function(l,d,u,c,f){var p=a[u],h=!1;if(p===!0?h=p:typeof p=="function"?h=p(c):p instanceof RegExp&&(h=p.test(c)),h!==!0&&(h=!1),c=s(u,c),!!c){var m={position:d,sourcePosition:l,source:f,isWhite:h};if(h){var y=i(u,c,m);return xd(y)?u+":"+c:y}else{var y=n(u,c,m);if(!xd(y))return y}}});return o};var Nm=Pd;(function(t,e){var r=Hr,a=Nm;function i(s,o){var l=new a(o);return l.process(s)}e=t.exports=i,e.FilterCSS=a;for(var n in r)e[n]=r[n]})(Ss,Ss.exports);var ws=Ss.exports,Cs={indexOf:function(t,e){var r,a;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,a=t.length;r<a;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var a,i;if(Array.prototype.forEach)return t.forEach(e,r);for(a=0,i=t.length;a<i;a++)e.call(r,t[a],a,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,r=e.exec(t);return r?r.index:-1}},Bm=ws.FilterCSS,Mm=ws.getDefaultWhiteList,_a=Cs;function Ad(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Ed=new Bm;function $m(t,e,r){}function qm(t,e,r){}function Rm(t,e,r){}function km(t,e,r){}function Ld(t){return t.replace(Wm,"<").replace(Vm,">")}function jm(t,e,r,a){if(r=qd(r),e==="href"||e==="src"){if(r=_a.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(e==="background"){if(ka.lastIndex=0,ka.test(r))return""}else if(e==="style"){if(Td.lastIndex=0,Td.test(r)||(Fd.lastIndex=0,Fd.test(r)&&(ka.lastIndex=0,ka.test(r))))return"";a!==!1&&(a=a||Ed,r=a.process(r))}return r=Rd(r),r}var Wm=/</g,Vm=/>/g,_m=/"/g,zm=/"/g,Um=/&#([a-zA-Z0-9]*);?/gim,Hm=/:?/gim,Gm=/&newline;?/gim,ka=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Td=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Fd=/u\s*r\s*l\s*\(.*/gi;function Dd(t){return t.replace(_m,""")}function Nd(t){return t.replace(zm,'"')}function Bd(t){return t.replace(Um,function(r,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function Md(t){return t.replace(Hm,":").replace(Gm," ")}function $d(t){for(var e="",r=0,a=t.length;r<a;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return _a.trim(e)}function qd(t){return t=Nd(t),t=Bd(t),t=Md(t),t=$d(t),t}function Rd(t){return t=Dd(t),t=Ld(t),t}function Qm(){return""}function Zm(t,e){typeof e!="function"&&(e=function(){});var r=!Array.isArray(t);function a(s){return r?!0:_a.indexOf(t,s)!==-1}var i=[],n=!1;return{onIgnoreTag:function(s,o,l){if(a(s))if(l.isClosing){var d="[/removed]",u=l.position+d.length;return i.push([n!==!1?n:l.position,u]),n=!1,d}else return n||(n=l.position),"[removed]";else return e(s,o,l)},remove:function(s){var o="",l=0;return _a.forEach(i,function(d){o+=s.slice(l,d[0]),l=d[1]}),o+=s.slice(l),o}}}function Km(t){for(var e="",r=0;r<t.length;){var a=t.indexOf("<!--",r);if(a===-1){e+=t.slice(r);break}e+=t.slice(r,a);var i=t.indexOf("-->",a);if(i===-1)break;r=i+3}return e}function Jm(t){var e=t.split("");return e=e.filter(function(r){var a=r.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),e.join("")}Ne.whiteList=Ad();Ne.getDefaultWhiteList=Ad;Ne.onTag=$m;Ne.onIgnoreTag=qm;Ne.onTagAttr=Rm;Ne.onIgnoreTagAttr=km;Ne.safeAttrValue=jm;Ne.escapeHtml=Ld;Ne.escapeQuote=Dd;Ne.unescapeQuote=Nd;Ne.escapeHtmlEntities=Bd;Ne.escapeDangerHtml5Entities=Md;Ne.clearNonPrintableCharacter=$d;Ne.friendlyAttrValue=qd;Ne.escapeAttrValue=Rd;Ne.onIgnoreTagStripAll=Qm;Ne.StripTagBody=Zm;Ne.stripCommentTag=Km;Ne.stripBlankChar=Jm;Ne.cssFilter=Ed;Ne.getDefaultCSSWhiteList=Mm;var za={},wr=Cs;function Ym(t){var e=wr.spaceIndex(t),r;return e===-1?r=t.slice(1,-1):r=t.slice(1,e+1),r=wr.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function Xm(t){return t.slice(0,2)==="</"}function ey(t,e,r){var a="",i=0,n=!1,s=!1,o=0,l=t.length,d="",u="";e:for(o=0;o<l;o++){var c=t.charAt(o);if(n===!1){if(c==="<"){n=o;continue}}else if(s===!1){if(c==="<"){a+=r(t.slice(i,o)),n=o,i=o;continue}if(c===">"){a+=r(t.slice(i,n)),u=t.slice(n,o+1),d=Ym(u),a+=e(n,a.length,d,u,Xm(u)),i=o+1,n=!1;continue}if(c==='"'||c==="'")for(var f=1,p=t.charAt(o-f);p.trim()===""||p==="=";){if(p==="="){s=c;continue e}p=t.charAt(o-++f)}}else if(c===s){s=!1;continue}}return i<t.length&&(a+=r(t.substr(i))),a}var ty=/[^a-zA-Z0-9\\_:.-]/gim;function ry(t,e){var r=0,a=0,i=[],n=!1,s=t.length;function o(f,p){if(f=wr.trim(f),f=f.replace(ty,"").toLowerCase(),!(f.length<1)){var h=e(f,p||"");h&&i.push(h)}}for(var l=0;l<s;l++){var d=t.charAt(l),u,c;if(n===!1&&d==="="){n=t.slice(r,l),r=l+1,a=t.charAt(r)==='"'||t.charAt(r)==="'"?r:ay(t,l+1);continue}if(n!==!1&&l===a){if(c=t.indexOf(d,l+1),c===-1)break;u=wr.trim(t.slice(a+1,c)),o(n,u),n=!1,l=c,r=l+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),n===!1)if(c=iy(t,l),c===-1){u=wr.trim(t.slice(r,l)),o(u),n=!1,r=l+1;continue}else{l=c-1;continue}else if(c=ny(t,l-1),c===-1){u=wr.trim(t.slice(r,l)),u=Id(u),o(n,u),n=!1,r=l+1;continue}else continue}return r<t.length&&(n===!1?o(t.slice(r)):o(n,Id(wr.trim(t.slice(r))))),wr.trim(i.join(" "))}function iy(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="="?e:-1}}function ay(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="'"||r==='"'?e:-1}}function ny(t,e){for(;e>0;e--){var r=t[e];if(r!==" ")return r==="="?e:-1}}function sy(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function Id(t){return sy(t)?t.substr(1,t.length-2):t}za.parseTag=ey;za.parseAttr=ry;var oy=ws.FilterCSS,jt=Ne,kd=za,ly=kd.parseTag,dy=kd.parseAttr,Wa=Cs;function ja(t){return t==null}function uy(t){var e=Wa.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=Wa.trim(t.slice(e+1,-1));var r=t[t.length-1]==="/";return r&&(t=Wa.trim(t.slice(0,-1))),{html:t,closing:r}}function cy(t){var e={};for(var r in t)e[r]=t[r];return e}function py(t){var e={};for(var r in t)Array.isArray(t[r])?e[r.toLowerCase()]=t[r].map(function(a){return a.toLowerCase()}):e[r.toLowerCase()]=t[r];return e}function jd(t){t=cy(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=jt.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=py(t.whiteList||t.allowList):t.whiteList=jt.whiteList,t.onTag=t.onTag||jt.onTag,t.onTagAttr=t.onTagAttr||jt.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||jt.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||jt.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||jt.safeAttrValue,t.escapeHtml=t.escapeHtml||jt.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new oy(t.css))}jd.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,a=r.whiteList,i=r.onTag,n=r.onIgnoreTag,s=r.onTagAttr,o=r.onIgnoreTagAttr,l=r.safeAttrValue,d=r.escapeHtml,u=e.cssFilter;r.stripBlankChar&&(t=jt.stripBlankChar(t)),r.allowCommentTag||(t=jt.stripCommentTag(t));var c=!1;r.stripIgnoreTagBody&&(c=jt.StripTagBody(r.stripIgnoreTagBody,n),n=c.onIgnoreTag);var f=ly(t,function(p,h,m,y,g){var v={sourcePosition:p,position:h,isClosing:g,isWhite:Object.prototype.hasOwnProperty.call(a,m)},w=i(m,y,v);if(!ja(w))return w;if(v.isWhite){if(v.isClosing)return"</"+m+">";var x=uy(y),F=a[m],A=dy(x.html,function(q,L){var P=Wa.indexOf(F,q)!==-1,B=s(m,q,L,P);return ja(B)?P?(L=l(m,q,L,u),L?q+'="'+L+'"':q):(B=o(m,q,L,P),ja(B)?void 0:B):B});return y="<"+m,A&&(y+=" "+A),x.closing&&(y+=" /"),y+=">",y}else return w=n(m,y,v),ja(w)?d(y):w},d);return c&&(f=c.remove(f)),f};var fy=jd;(function(t,e){var r=Ne,a=za,i=fy;function n(o,l){var d=new i(l);return d.process(o)}e=t.exports=n,e.filterXSS=n,e.FilterXSS=i,(function(){for(var o in r)e[o]=r[o];for(var l in a)e[l]=a[l]})();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=t.exports)})(vs,vs.exports);var wi=vs.exports,hy=function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},Wd=(function(){function t(e,r){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=Va(Va({},wi.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(n,s,o,l){return n==="a"&&s==="href"||(n==="img"||n==="source")&&s==="src"?a.sanitizeUrl(o):wi.safeAttrValue(n,s,o,l)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var i;e&&!r?i=e:e&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(e).forEach(function(n){if(n==="whiteList")i.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,e.whiteList||{}]);else if(n==="css"){var s=e.css.whiteList;s!=null&&e.css instanceof Object&&Object.keys(s).forEach(function(o){return i.css.whiteList[o]=s[o]})}else i[n]=e[n]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new wi.FilterXSS(i)}return t.prototype.sanitize=function(e,r){switch(r===void 0&&(r={}),typeof e){case"number":return isNaN(e)||!isFinite(e)?null:e;case"boolean":return e;case"string":return this._xssFilter.process(e);case"object":return this._iterateOverObject(e,r);default:return r.allowUndefined&&typeof e>"u"?void 0:null}},t.prototype.sanitizeUrl=function(e,r){var a=(r??{}).isProtocolRequired,i=a===void 0?!0:a,n=this._trim(e.substring(0,e.indexOf(":"))),s=e==="/",o=/^#/.test(e),l=n&&this.allowedProtocols.indexOf(n.toLowerCase())>-1;return s||o||l?wi.escapeAttrValue(e):!n&&!i?wi.escapeAttrValue("https://".concat(e)):""},t.prototype.sanitizeHTMLAttribute=function(e,r,a,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(e,r,a,i):wi.safeAttrValue(e,r,a,i)},t.prototype.validate=function(e,r){r===void 0&&(r={});var a=this.sanitize(e,r);return{isValid:e===a,sanitized:a}},t.prototype.encodeHTML=function(e){var r=this;return String(e).replace(/[&<>"'\/]/g,function(a){return r._entityMap[a]})},t.prototype.encodeAttrValue=function(e){var r=/^[a-zA-Z0-9]$/;return String(e).replace(/[\x00-\xFF]/g,function(a,i){return r.test(a)?a:"&#x".concat(Number(e.charCodeAt(i)).toString(16),";")})},t.prototype._extendObjectOfArrays=function(e){var r={};return e.forEach(function(a){Object.keys(a).forEach(function(i){Array.isArray(a[i])&&Array.isArray(r[i])?r[i]=r[i].concat(a[i]):r[i]=a[i]})}),r},t.prototype._iterateOverObject=function(e,r){var a=this;r===void 0&&(r={});try{var i=!1,n=void 0;if(Array.isArray(e))n=e.reduce(function(o,l){var d=a.validate(l,r);return d.isValid?o.concat([l]):(i=!0,o.concat([d.sanitized]))},[]);else if(hy(e)){var s=Object.keys(e);n=s.reduce(function(o,l){var d=e[l],u=a.validate(d,r);return u.isValid?o[l]=d:(i=!0,o[l]=u.sanitized),o},{})}else return r.allowUndefined&&typeof e>"u"?void 0:null;return i?n:e}catch{return null}},t.prototype._trim=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},t})();function Vd(t){var e,r,a=t.length;if(a===1)e=0,r=t[0][1];else{for(var i=0,n=0,s=0,o=0,l,d,u,c=0;c<a;c++)l=t[c],d=l[0],u=l[1],i+=d,n+=u,s+=d*d,o+=d*u;e=(a*o-i*n)/(a*s-i*i),r=n/a-e*i/a}return{m:e,b:r}}function _d(t){return function(e){return t.b+t.m*e}}function zd(t,e){if(t.length<2)return 1;for(var r=0,a=0;a<t.length;a++)r+=t[a][1];for(var i=r/t.length,n=0,s=0;s<t.length;s++)n+=Math.pow(i-t[s][1],2);for(var o=0,l=0;l<t.length;l++)o+=Math.pow(t[l][1]-e(t[l][0]),2);return 1-o/n}var Ud=function(){this.totalCount=0,this.data={}};Ud.prototype.train=function(e,r){this.data[r]||(this.data[r]={});for(var a in e){var i=e[a];this.data[r][a]===void 0&&(this.data[r][a]={}),this.data[r][a][i]===void 0&&(this.data[r][a][i]=0),this.data[r][a][i]++}this.totalCount++};Ud.prototype.score=function(e){var r={},a;for(var i in e){var n=e[i];for(a in this.data)r[a]={},this.data[a][i]?r[a][i+"_"+n]=(this.data[a][i][n]||0)/this.totalCount:r[a][i+"_"+n]=0}var s={};for(a in r){s[a]=0;for(var o in r[a])s[a]+=r[a][o]}return s};var Hd=function(){this.weights=[],this.bias=0};Hd.prototype.predict=function(e){if(e.length!==this.weights.length)return null;for(var r=0,a=0;a<this.weights.length;a++)r+=this.weights[a]*e[a];return r+=this.bias,r>0?1:0};Hd.prototype.train=function(e,r){if(r!==0&&r!==1)return null;e.length!==this.weights.length&&(this.weights=e,this.bias=1);var a=this.predict(e);if(typeof a=="number"&&a!==r){for(var i=r-a,n=0;n<this.weights.length;n++)this.weights[n]+=i*e[n];this.bias+=i}return this};var QC=607/128,ZC=Math.log(Math.sqrt(2*Math.PI));var KC=Math.sqrt(2*Math.PI);var my=Math.sqrt(2*Math.PI);function yy(t){for(var e=t,r=t,a=1;a<15;a++)r*=t*t/(2*a+1),e+=r;return Math.round((.5+e/my*Math.exp(-t*t/2))*1e4)/1e4}var gy=[];for(Ua=0;Ua<=3.09;Ua+=.01)gy.push(yy(Ua));var Ua;var hp=Ro(Zd(),1);var mp=Ro(Kc(),1);var lr="25.0.0",ot="arcgis_charts_pie_from_fields_name",Wt="arcgis_charts_pie_from_fields_value",fb="arcgis_charts_bar_line_from_fields_name",hb="arcgis_charts_bar_line_from_fields_value",ir={Mean:"Mean",Median:"Median",StdDev:"Standard Deviation",Normal:"Normal Distribution",Trendline:"Trendline"},Xc={Count:"count",Start:"minValue",End:"maxValue"};function mb(t,e){let r=e.errors[t];throw new ut(e.modalHeaders.error,r??e.errors.simpleError)}function dr(t){return t.axes?.[0]?.valueFormat?.type}function h1(t){return t.intlOptions}function Ye(t){return t?.type===b.NumberAxisFormat}function m1(t){return Ye(t)&&t.intlOptions?.style==="percent"}function ar(t){return t?.type===b.CategoryAxisFormat}function Kr(t){return t?.type===b.DateAxisFormat}function y1(t){let{oldConfig:e,newConfig:r,rotationChanged:a}=t;return a?[!0,!0]:[e.horizontalAxisLabelsBehavior!==r.horizontalAxisLabelsBehavior,e.verticalAxisLabelsBehavior!==r.verticalAxisLabelsBehavior]}function yb(t){return Ye(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||Ye(t[2].valueFormat))}function gb(t){return Ye(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||Ye(t[2].valueFormat))}function bb(t){return(ar(t?.[0]?.valueFormat)||Kr(t?.[0]?.valueFormat))&&Ye(t?.[1]?.valueFormat)&&(t?.[2]?.valueFormat===void 0||Ye(t[2].valueFormat))}function vb(t){return ar(t?.[0]?.valueFormat)&&ar(t?.[1]?.valueFormat)||Kr(t?.[0]?.valueFormat)&&ar(t?.[1]?.valueFormat)||Kr(t?.[0]?.valueFormat)&&Kr(t?.[1]?.valueFormat)}function Sb(t){return(ar(t?.[0]?.valueFormat)||Kr(t?.[0]?.valueFormat))&&Ye(t?.[1]?.valueFormat)}function wb(t){return Ye(t?.[0]?.valueFormat)&&Ye(t?.[1]?.valueFormat)}function Cb(t){return Ye(t?.[0]?.valueFormat)&&Ye(t?.[1]?.valueFormat)}function xb(t){return Ye(t?.[0]?.valueFormat)}function g1(t){let{chartType:e,axesConfig:r,errorStrings:a}=t,i,n;switch(e){case b.GaugeSeries:i=xb,n="invalidValueFormatForGauge";break;case b.ScatterSeries:i=wb,n="invalidValueFormatForScatterplot";break;case b.HistogramSeries:i=Cb,n="invalidValueFormatForHistogram";break;case b.LineSeries:i=yb,n="invalidValueFormatForLineChart";break;case b.BarSeries:i=gb,n="invalidValueFormatForBarChart";break;case b.ComboLineAndBarSeries:i=Sb,n="invalidValueFormatForComboBarLineChart";break;case b.BoxPlotSeries:i=bb,n="invalidValueFormatForBoxPlot";break;case b.HeatSeries:i=vb,n="invalidValueFormatForHeatChart";break}i!==void 0&&n!==void 0&&(i(r)||mb(n,a))}function Tb(t){let{isXAxis:e,chartType:r,valueFormat:a,isAxisForHistogramOverlaySeries:i}=t;return e&&(ar(a)||r===b.HistogramSeries&&!i||r===b.BarSeries&&Ye(a))}function b1(t){let{chartConfig:e,isSecondValueAxis:r,seriesIds:a}=t,i=a;return e.axes?.length===3&&(i=e.series.map(n=>{let s="";return(a===void 0||a.includes(n.id))&&(r===!0&&"assignToSecondValueAxis"in n&&n.assignToSecondValueAxis===!0||r!==!0&&(!("assignToSecondValueAxis"in n)||n.assignToSecondValueAxis!==!0))&&({id:s}=n),s}).filter(n=>n!=="")),i}var Fb={MonoSelection:"monoSelection",MultiSelection:"multiSelection",MultiSelectionWithCtrlKey:"multiSelectionWithCtrlKey",Zoom:"zoom",None:"none"},v1={MultiAxes:"multi-axes",XAxis:"x-axis",YAxis:"y-axis"},Lr={Reject:"reject",RenderUpToTheLimit:"renderUpToTheLimit"},ie={AxisLabels:"axisLabels",GuideLabel:"guideLabel",AxisTitle:"axisTitle",ChartTitle:"chartTitle",ChartSubtitle:"chartSubtitle",DataLabels:"dataLabels",LegendTitle:"legendTitle",LegendText:"legendText",DescriptionText:"descriptionText"},Ib=32,Or="arcgis_charts_features_extent",Be={maxRecordCountFactor:5,maxParallelRequests:4,maxRecords:2e3,orderByJSAPIDelimiter:" ",outStatistics:{statisticType:fa.statisticType,onStatisticField:"OBJECTID",outStatisticFieldName:"arcgis_charts_outStatisticFieldName_default_key"},uniqueIdsName:"arcgisChartsUniqueIds"},yp=["EXPR_1","Expr1","expr1","EXPR1"],S1=1,lt=.7,Ob=25,gp=[156,156,156,255],Pb=[156,156,156,255],w1=hr.Solid,C1=2,Ji={defaultGroupOfSlicesId:"arcgis_charts_group_of_slices",sliceIdPrefix:"arcgis-charts-slice-id",undefinedSliceId:"arcgis-charts-slice-id-undefined",nullSliceId:"arcgis-charts-slice-id-null",emptySliceId:"arcgis-charts-slice-id-empty"},Li="arcgis_charts_box_plot_category",re={valueField:"arcgis_charts_heat_chart_value",xField:"arcgis_charts_heat_chart_x",yField:"arcgis_charts_heat_chart_y"},x1={min:1,max:10},Ab=[[31,120,180,255],[166,206,227,255],[51,160,44,255],[178,223,138,255],[227,26,28,255],[251,154,153,255],[255,127,0,255],[253,191,111,255],[106,61,154,255],[202,178,214,255]],T1=[[90,180,255,255],[165,220,255,255],[90,215,80,255],[165,245,150,255],[255,80,85,255],[255,170,170,255],[255,165,70,255],[255,205,130,255],[155,110,255,255],[220,195,255,255]],Eb=[[104,104,104,255],[51,124,235,255],[132,0,168,255],[156,156,156,255]],F1=[[104,104,104,255],[51,124,235,255],[175,90,255,255],[156,156,156,255]],I1=[255,255,255,255],O1=[43,43,43,255],P1=[0,122,194,255],A1=[255,255,255,255],E1=[0,0,0,255];function Nt(t){let{colorIndex:e,opacity:r,histogramOverlays:a}=t,i=Math.max(0,e??0),n=[...a===!0?Eb:Ab],[s,o,l,d]=n[i%n.length],u=r!==void 0?r*255:d;return[s,o,l,u]}function bp(t){return[0,0,0,(t??lt)*255]}function L1(){return{type:b.CursorCrosshair,verticalLineVisible:!1,horizontalLineVisible:!1,style:{type:Ce.SLS,style:hr.Dot,color:[211,211,211,255],width:1}}}function Tn(t=1){return[Math.floor(Math.random()*256),Math.floor(Math.random()*256),Math.floor(Math.random()*256),t*255]}function me(t){let e={family:"Arial, Helvetica, sans-serif",size:10};switch(t){case ie.ChartTitle:e.size=18;break;case ie.AxisTitle:e.size=14;break;case ie.LegendText:e.size=12;break;case ie.LegendTitle:e.size=13;break;case ie.DescriptionText:e.size=11;break}return e}function vp(t="",e=me(),r){let a=ye.Center;return(r===ie.DataLabels||r===ie.GuideLabel)&&(a=void 0),{type:Ce.TS,color:bp(),text:t,font:e,horizontalAlignment:a}}function le(t){let{text:e,visible:r,font:a,type:i}=t??{text:"",visible:!0,font:me()};return{type:b.Text,visible:r,content:vp(e,a,i)}}function aa(t){let e=t?.useRandomColor??!1,r=t?.useRampColor,a=t?.width??1,i=t?.isHistogramOverlay,n=t?.color??bp(1);return e?n=Tn():r!==void 0&&(i===!0?n=Nt({colorIndex:r.colorIndex,histogramOverlays:i}):n=Nt({colorIndex:r.colorIndex})),t?.opacity!==void 0&&(n[3]=t.opacity),{type:Ce.SLS,style:hr.Solid,color:n,width:a}}function Lb(){return{type:b.CategoryAxisFormat,characterLimit:11}}function D1(){return{type:b.DateAxisFormat,intlOptions:{}}}function to(){return{type:b.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:3,useGrouping:!0}}}function N1(){return{type:b.NumberAxisFormat,intlOptions:{style:"decimal",minimumFractionDigits:0,maximumFractionDigits:2}}}function B1(){return{type:b.NumberAxisFormat,intlOptions:{style:"percent",minimumFractionDigits:0,maximumFractionDigits:0}}}function Zs(t="Category Axis"){let e=le({text:t,visible:!0,font:me(ie.AxisTitle)});e.content.horizontalAlignment=ye.Center,e.content.verticalAlignment=Pe.Middle;let r=le({text:t,visible:!0,font:me(ie.AxisLabels)});return{type:b.Axis,visible:!0,title:e,labels:r,valueFormat:Lb(),lineSymbol:aa({color:gp})}}function yn(t="Value Axis"){let e=le({text:t,visible:!0,font:me(ie.AxisTitle)}),r=le({text:t,visible:!0,font:me(ie.AxisLabels)});return e.content.verticalAlignment=Pe.Middle,e.content.horizontalAlignment=ye.Center,{type:b.Axis,visible:!0,title:e,labels:r,valueFormat:to(),lineSymbol:aa({color:gp})}}function Dr(){return{type:b.Legend,visible:!0,title:le({text:"",visible:!0,font:me(ie.LegendTitle)}),body:vp("",me(ie.LegendText)),position:ki.Right,maxHeight:Number.NaN}}function pn(t){return{type:b.Overlay,visible:!0,created:!1,symbol:aa({useRampColor:{colorIndex:t},isHistogramOverlay:!0})}}function Nr(){return[255,255,255,255]}function ur(t){return t.utilsStrings.chartType.chart}function cr(){return`Chart ${Date.now()}`}function M1(t,e=!1){return{type:Ce.SFS,style:mr.Solid,color:e?Tn(lt):Nt({colorIndex:t??0,opacity:lt})}}function Db(t=0){return{type:Ce.SMS,style:ha.Circle,color:Nt({colorIndex:t,opacity:lt}),size:5}}function Nb(t){return{type:Ce.SLS,style:hr.Solid,color:Nt({colorIndex:t,opacity:lt}),width:2}}function Bb(t=!1){return{type:Ce.SMS,style:ha.Circle,color:t?Tn(lt):Nt({colorIndex:0,opacity:lt}),size:7}}function $1(){return{type:b.SizePolicy,field:"",scaleType:Uo.Linear,minSize:5,maxSize:30}}function Mb(t=!1){return{type:b.Overlays,trendLine:{type:b.Overlay,created:!1,visible:!0,symbol:{type:Ce.SLS,style:hr.Solid,color:t?Tn():Nt({colorIndex:1}),width:2}}}}function $b(t,e){let r=t.countSeries;return{type:b.HeatSeries,id:r,name:r,y:"",x:"",dataLabels:le({text:"",visible:!1,font:me(ie.DataLabels)}),query:{outStatistics:[{statisticType:j.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:`${j.Count}_${e}_0`.toUpperCase()}],groupByFieldsForStatistics:[]},emptyCells:{symbol:{type:Ce.SFS,style:mr.Solid,color:O.grayColor},text:t.utilsStrings.null}}}function qb(){return{type:b.ScatterSeries,id:b.ScatterSeries,name:b.ScatterSeries,x:"",y:"",markerSymbol:Bb(),overlays:Mb(),dataLabels:le({text:"",visible:!1,font:me(ie.DataLabels)})}}function Yr(t,e){let r=[],a=t.xAxis,i=t.utilsStrings.statistics.count,n,s,o=aa({opacity:Ob});switch(e===b.HeatSeries?s=Zs(i):(s=yn(i),s.grid=o),e){case b.BarSeries:case b.HeatSeries:{n=Zs(a);break}case b.ScatterSeries:{n=yn(a),n.grid=o;break}case b.RadarSeries:case b.LineSeries:case b.HistogramSeries:{n=yn(a);break}case b.BoxPlotSeries:{n=Zs("");break}}return n!==void 0&&r.push(n,s),r}function Rb(){return{type:b.GaugeNeedle,symbol:{type:Ce.SFS,color:[0,0,0,200]}}}function kb(t){let e=[],r=t.xAxis,a=yn(r);return a.needle=Rb(),e.push(a),e}function jb(t){let e=t.commonStrings,r=t.objectIDField??"ObjectID",a=`${j.Count}_${r}_0`.toUpperCase(),i=e.countSeries;return{type:b.LineSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,lineSymbol:Nb(t.seriesIndex),markerSymbol:Db(t.seriesIndex),dataLabels:le({text:"",visible:!1,font:me(ie.DataLabels)}),temporalBinning:{unit:G.Day,size:0,timeAggregationType:Me.Start,trimIncompleteTimeInterval:!0,nullPolicy:nt.Interpolate}}}function q1(t){return{...jb(t),type:b.RadarSeries}}function Wb(t){return{type:Ce.SFS,style:mr.Solid,color:Nt({colorIndex:t,opacity:lt})}}function R1(t){let e=t.objectIDField??"*",r=t.commonStrings,a=`${j.Count}_Y_0`.toUpperCase(),i=r.countSeries;return{type:b.BarSeries,id:i,name:i,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:a}],groupByFieldsForStatistics:[]},x:"",y:a,fillSymbol:Wb(t.seriesIndex),dataLabels:le({text:"",visible:!1,font:me(ie.DataLabels),type:ie.DataLabels})}}function k1(t,e){let r=t.countSeries;return{name:r,type:b.BoxPlotSeries,id:r,fillSymbol:{type:Ce.SFS,style:mr.Solid,color:Nt({colorIndex:e,opacity:lt})},query:{},x:Li,y:""}}function Vb(){return{type:b.PieTick,visible:!0,lineSymbol:aa({width:1,color:Pb})}}function _b(){return{type:Ce.SFS,style:mr.Solid}}function j1(t,e){let r=`${j.Count}_${e}_0`.toUpperCase(),a=t.countSeries;return{type:b.PieSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e??"ObjectID",outStatisticFieldName:r}],groupByFieldsForStatistics:[]},x:"",y:r,fillSymbol:_b(),dataLabels:le({text:"",visible:!1,font:me(ie.DataLabels),type:ie.DataLabels}),startAngle:-90,endAngle:270,dataLabelsCharacterLimit:11,displayCategoryOnDataLabel:!0,displayNumericValueOnDataLabel:!1,displayPercentageOnDataLabel:!0,numericValueFormat:{...to(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},percentValueFormat:{...to(),intlOptions:{minimumFractionDigits:1,maximumFractionDigits:1}},ticks:Vb()}}function W1(t){let e=t.objectIDField??"ObjectID",r=`${j.Count}_${e}_0`.toUpperCase(),a="Series0";return{type:b.GaugeSeries,id:a,name:a,query:{outStatistics:[{statisticType:j.Count,onStatisticField:e,outStatisticFieldName:r}]},x:""}}function Yi(){return!1}function V1(t,e=cr()){return{version:lr,type:b.Chart,id:e,colorMatch:!0,rotated:Yi(),orderOptions:{data:{orderType:st.Category,orderBy:ze.Ascending}},title:le({text:ur(t),visible:!0,font:me(ie.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:me(ie.DescriptionText)}),background:Nr(),axes:Yr(t,b.BarSeries),series:[],legend:Dr()}}function _1(t,e=cr()){return{version:lr,type:b.Chart,id:e,rotated:Yi(),colorMatch:!0,orderOptions:{data:{orderType:st.Category,orderBy:ze.Ascending}},title:le({text:ur(t),visible:!0,font:me(ie.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:me(ie.DescriptionText)}),background:Nr(),series:[],legend:Dr(),axes:Yr(t,b.BoxPlotSeries),standardizeValues:!0,showOutliers:!1}}function z1(t,e=cr()){return{version:lr,type:b.Chart,id:e,colorMatch:!0,rotated:Yi(),orderOptions:{data:{orderType:st.Category,orderBy:ze.Ascending}},title:le({text:ur(t),visible:!0,font:me(ie.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:me(ie.DescriptionText)}),background:Nr(),axes:Yr(t,b.LineSeries),series:[],legend:Dr()}}function U1(t,e=cr()){return{version:lr,type:b.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:st.Category,orderBy:ze.Ascending}},title:le({text:ur(t),visible:!0,font:me(ie.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:me(ie.DescriptionText)}),background:Nr(),axes:Yr(t,b.RadarSeries),series:[],legend:Dr()}}function H1(t,e=cr()){return{version:lr,type:b.Chart,id:e,colorMatch:!0,orderOptions:{data:{orderType:st.YValue,orderBy:ze.Descending}},title:le({text:ur(t),visible:!0,font:me(ie.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:me(ie.DescriptionText)}),background:Nr(),series:[],legend:{...Dr(),displayNumericValue:!1,displayPercentage:!0}}}function G1(t,e=cr()){return{version:lr,type:b.Chart,id:e,colorMatch:!0,title:le({text:ur(t),visible:!0,font:me(ie.ChartTitle)}),series:[],axes:kb(t)}}function Q1(t,e=cr()){return{version:lr,type:b.Chart,id:e,colorMatch:!0,title:le({text:ur(t),visible:!0,font:me(ie.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:me(ie.DescriptionText)}),background:Nr(),axes:Yr(t,b.ScatterSeries),series:[qb()],legend:Dr()}}function Z1(t,e){return{version:lr,type:b.Chart,id:cr(),title:le({text:ur(t),visible:!0,font:me(ie.ChartTitle)}),background:Nr(),axes:Yr(t,b.HeatSeries),series:[$b(t,e)],legend:{...Dr(),position:ki.Bottom}}}function zb(){return{type:b.Overlays,mean:pn(1),median:pn(2),standardDeviation:pn(3),comparisonDistribution:pn(4)}}function Ub(){return{type:Ce.SFS,style:mr.Solid,color:Nt({colorIndex:0,opacity:lt})}}function Hb(){return{type:b.HistogramSeries,id:b.HistogramSeries,name:b.HistogramSeries,visible:!0,dataTooltipVisible:!0,dataTooltipReverseColor:!1,assignToSecondValueAxis:!1,x:"",binCount:32,overlays:zb(),dataTransformationType:Ge.None,fillSymbol:Ub(),dataLabels:le({text:"",visible:!1,font:me(ie.DataLabels)})}}function K1(t,e=cr()){return{version:lr,type:b.Chart,id:e,colorMatch:!0,title:le({text:ur(t),visible:!0,font:me(ie.ChartTitle)}),subtitle:le(),footer:le({text:"",visible:!0,font:me(ie.DescriptionText)}),background:Nr(),axes:Yr(t,b.HistogramSeries),series:[Hb()],legend:Dr()}}var Ks={behaviorAfterLimit:Lr.Reject,maxCategoryCount:Number.NaN,maxBarChartSeriesCount:100,maxBarUniqueSeriesCountTotal:1e4,maxBarTwoSeriesCountPerSeries:1e3,maxBarTwoSeriesCountTotal:2e3,maxBarThreePlusSeriesCountPerSeries:100,maxBarThreePlusSeriesCountTotal:2e3,maxScatterPointsBeforeAggregation:1e4,maxScatterPointsAfterAggregation:1e4,maxLineChartSeriesCount:100,maxLineUniqueSeriesCountTotal:1e4,maxLineTwoSeriesCountPerSeries:5e3,maxLineTwoSeriesCountTotal:1e4,maxLineThreePlusSeriesCountPerSeries:1e3,maxLineThreePlusSeriesCountTotal:1e4,maxPieChartSliceCountTotal:300,maxGaugeByFeaturesLimit:50,maxBoxPlotSeriesCount:100,maxBoxUniqueSeriesCountTotal:1e4,maxBoxTwoSeriesCountPerSeries:1e3,maxBoxTwoSeriesCountTotal:2e3,maxBoxThreePlusSeriesCountPerSeries:100,maxBoxThreePlusSeriesCountTotal:2e3,maxBoxPlotOutlierLimit:1e4,maxHeatChartCellLimit:1e4};function Xr(t){let e={...Ks};return t!==void 0&&Object.keys(Ks).forEach(r=>{let a=r;e[a]=t[a]??Ks[a]}),e}function na(){return{maxScatterCellsPerQuery:500,maxScatterCellsPerQueryForStandard:175,maxElementsPerSelectionQuery:25,maxOIDsPerSelectionQuery:2e3,maxOperandsPerWhereClause:50}}function J1(t,e){let r;switch(t){case j.Average:{r=e.utilsStrings.statistics.mean;break}case j.ContinuousPercentile:{r=e.utilsStrings.statistics.median;break}case j.Sum:{r=e.utilsStrings.statistics.sum;break}case j.Minimum:{r=e.utilsStrings.statistics.minimum;break}case j.Maximum:{r=e.utilsStrings.statistics.maximum;break}case j.Variance:{r=e.utilsStrings.statistics.variance;break}case j.DiscretePercentile:{r=e.utilsStrings.statistics.discretePercentile;break}case j.NoAggregation:{r=e.utilsStrings.statistics.noAggregation;break}case j.Count:default:{r=e.utilsStrings.statistics.count;break}}return r}function Y1(t,e){let r;switch(t){case Me.End:{r=e.timeAggregationTypes.end;break}case Me.Start:{r=e.timeAggregationTypes.start;break}default:r="";break}return r}function Gb(){return gt.Side}function X1(t){return t.utilsStrings.notAvailable}var Qb=0,Zb="_arcgis_charts_outliers",Kb="_arcgis_charts_z_score",eT=[210,210,210,255*lt],tT=" percentage ",Js=[150,150,150,178.5],O={aria:{defaultChartItemRole:"figure"},title:{marginBottom:8,wrap:!0},subtitle:{marginBottom:10,wrap:!0},rotated:!1,legendProperties:{legendLabels:{marginLeft:5,marginRight:5,truncate:!1,applyOnClones:!0,wrap:!0,maxWidth:200},valueLabels:{wrap:!0,maxWidth:200},legendTitle:{wrap:!0,maxWidth:220,marginLeft:10,marginRight:10,marginTop:10},legendMarkersSize:14,legendLabelReducedOpacity:.5,rectangleMarkerRadius:3,roundedMarkerRadius:12,legendPaddingRightWithScrollbarVisible:10,maxHeight:100,marginTop:2,marginBottom:2,marginLeft:0,marginRight:0,paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0,position:ki.Right},footer:{wrap:!0,horizontalCenter:ye.Center,verticalCenter:Pe.Middle,align:ye.Center},axisLabel:{rotation:0,align:ye.Center,horizontalCenter:ye.Center,verticalCenter:Pe.Top,dy:5,paddingTop:5,paddingRight:5,paddingLeft:5,maxWidth:Number.NaN},axisTickLength:5,rotatedAxisLabel:{rotation:-45,horizontalCenter:ye.Left,verticalCenter:Pe.Bottom,dy:6,paddingTop:5,paddingLeft:0,paddingRight:5},histogramAxisLabel:{rotation:0,horizontalCenter:ye.Center,verticalCenter:Pe.Middle,dy:0,dx:0,paddingLeft:3,paddingRight:3},xAxisTitleLabel:{align:ye.Center,valign:Pe.Middle,rotation:0,fontSize:10,wrap:!0},yAxisTitleLabel:{align:ye.Center,valign:Pe.Middle,rotation:270,wrap:!0},titleLabel:{align:ye.Center,wrap:!0},subtitleLabel:{align:ye.Center,wrap:!0},horizontalSurfaceGuideLabels:{horizontalCenter:ye.Right,align:ye.Right,verticalCenter:Pe.Middle,wrap:!0},horizontalLineGuideLabels:{horizontalCenter:ye.Right,align:ye.Right,verticalCenter:Pe.Top,wrap:!0},verticalSurfaceGuideLabels:{horizontalCenter:ye.Center,verticalCenter:Pe.Top,valign:Pe.Top},verticalLineGuideLabels:{horizontalCenter:ye.Right,verticalCenter:Pe.Bottom,valign:Pe.Top,wrap:!0,rotation:90},guideAbove:!1,cursorCrosshair:{style:{type:Ce.SLS,style:hr.Dash,color:[0,0,0,102],width:1},horizontalLineVisible:!1,verticalLineVisible:!1},gauge:{innerRadius:80,radius:80,startAngle:-180,endAngle:180,innerLabelToInnerChartRatio:.5,axisLabelToInnerChartRatio:.13,innerLabelAutoMinFontSize:14,innerLabelAutoMaxFontSize:100,axisLabelAutoMinFontSize:14,axisLabelAutoMaxFontSize:40,gaugeMinGridDistance:1,axisMinimum:0,axisMaximum:100,numberOfLabelIntervals:5,numberOfTicksBetweenTwoLabels:4,maximumNumberOfLabelIntervals:24,paddingTop:10,paddingBottom:10,paddingRight:5,paddingLeft:5},gaugeTicksLength:7,gaugeInnerLabel:{horizontalCenter:ye.Center,verticalCenter:Pe.Middle},gaugeNeedle:{startWidth:10,endWidth:1,innerRadius:25,displayPin:!1},gaugeFirstLabelId:"arcgis_charts_gauge_first_label",gaugeLastLabelId:"arcgis_charts_gauge_last_label",headerContainer:{layout:"vertical",width:"100%",paddingBottom:5},footerContainer:{layout:"vertical",width:"100%",paddingTop:5,paddingBottom:15},paddingMinSize:0,marginMinSize:0,chartPaddingMinSize:7,chartPaddingRightWhenLegendNotOnRight:15,chartAndLegendContainer:{paddingTop:0},chartContainer:{paddingBottom:0,paddingTop:15},chartContainerPaddingTopWhenRotated:5,dataLabelInitialize:{strokeWidth:0,applyOnClones:!0},dataLabel:{align:ye.Center,horizontalCenter:ye.Center,valign:Pe.Bottom,verticalCenter:Pe.Top,dy:-3},dataLabelRotated:{align:ye.Right,horizontalCenter:ye.Right,valign:Pe.Middle,verticalCenter:Pe.Middle,dx:2},dataLabelStackedRotated:{align:ye.Center,horizontalCenter:ye.Center,valign:Pe.Middle,verticalCenter:Pe.Middle},dataLabelStackedNonRotated:{align:ye.Center,horizontalCenter:ye.Center,valign:Pe.Middle,verticalCenter:Pe.Middle},dataLabelNegative:{paddingTop:5,paddingRight:5},rotatedChartPadding:{paddingTop:2,paddingRight:2},scatterplotSeries:{strokeOpacity:0,r2:Number.NaN,trendLinePoints:[{},{}]},histogramSeries:{normalDistribNumberOfPoints:100},lineSeries:{strokeWidth:2,lineSmoothed:!1,lineSmoothedKind:Vo.Bezier,showArea:!1,areaOpacity:.25,markerVisible:!0,rotated:!1,stackedType:gt.Side,stackNegativeValuesToBaseline:!0,marker:{markerBigSize:7,markerSizeThresholdForTooltipDisplay:5,markerStyle:ha.Circle}},buffer:!1,treatZeroValueAs:1e-4,elementLimitForSmoothRendering:1e3,defaultStatParameterValue:.5,pieChart:{dataLabels:{maxWidth:100,wrap:!1},dataLabelsOffset:10,dataLabelsInside:!1,chartRadius:80,chartOptimizedRadius:70,innerRadius:Qb,min:-90,max:270,displayCategoryOnLegend:!0,displayCategoryOnTooltip:!0,displayCategoryOnDataLabel:!0,displayNumericValueOnLegend:!1,displayNumericValueOnDataLabel:!0,displayNumericValueOnTooltip:!0,displayPercentageOnLegend:!1,displayPercentageOnDataLabel:!1,displayPercentageOnTooltip:!0,sliceGrouping:{sliceId:Ji.defaultGroupOfSlicesId,percentageThreshold:0,fillSymbol:{type:Ce.SFS,color:[210,210,210,255*lt]}},defaultPadding:0,alignDataLabels:!1,ticksOpacity:1,minimumSize:20,technicalFieldSliceId:"arcgis_charts_slice_id",technicalFieldSlicePercent:"arcgis_charts_slice_percent",technicalFieldGroupedSlices:"arcgis_charts_grouped_slices"},pieSliceCustomLabelName:"customLabel",yAxisLabelMaxWidth:100,xAxisLabelMaxWidth:75,axisLabelPadding:1.5,categoryAxisLabelPadding:3,seriesSort:ze.Ascending,technicalSortingFieldBySum:"arcgis_charts_category_sum",technicalSortingFieldByPercent:"arcgis_charts_category_first_series_percent",technicalFieldSplitByField:"arcgis_charts_split_by_field",color:[0,0,0,255],chartEllipsis:"...",backgroundColor:[255,255,255,255],grayColor:Js,xAxisMinGridDistance:120,xCategoryAxisMinGridDistance:40,yAxisMinGridDistance:40,yCategoryAxisMinGridDistance:20,secondRotatedValueAxisMinGridDistance:80,staggerMinGridDistance:40,shortestMinGridDistance:20,maxNumberOfXAxisLabelsInWrapModeForDateAxis:15,maxNumberOfXAxisLabelsInWrapMode:20,lineWidth:1,loaderRotationSpeed:400,loaderIntervalTimeout:400,loaderLabelFontSize:20,selectionTheme:{selectedElementsTheme:{elementOutlineColor:[0,255,255,255],elementOutlineWidth:5}},columnTooltipPosition:"pointer",markerTooltipPosition:"fixed",patternLineProperties:{width:5,height:5,strokeWidth:1},patternRectProperties:{rectWidth:9,rectHeight:9,width:10,height:10,strokeWidth:.3,fillOpacity:0},originalCategoryValue:"arcgis_charts_original_category_value",originalYCategoryValue:"arcgis_charts_original_category_y_value",originalDateValue:"arcgis_charts_original_date_value",dateBinningRange:"arcgis_charts_bin_range",originalServerBinningRange:"arcgis_charts_server_bin_range",dateBinModel:"arcgis_charts_bin_model",xAxisField:"arcgis_charts_axis_field",nullValue:"arcgis_charts_null",queryMaxFloatPrecision:10,dateFormatUTC:{timeZone:"UTC",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1},dayDefaultFormat:{day:"numeric",month:"short"},weekDefaultFormat:{day:"numeric",month:"short"},rendererOtherValue:"arcgisChartsrendererOtherValue",rendererSymbolField:"arcgis_charts_renderer_symbol",scatterplotAggregationFields:{dataContextXMinField:"arcgis_charts_xmin",dataContextXMaxField:"arcgis_charts_xmax",dataContextYMinField:"arcgis_charts_ymin",dataContextYMaxField:"arcgis_charts_ymax",dataContextCountDistinctX:"distinctX",dataContextCountDistinctY:"distinctY",queryNumberOfFeatures:"numberOfFeatures",queryNumberOfAggregatedFeatures:"numberOfAggregatedFeatures",xStep:"xStep",yStep:"yStep",rowCount:"rowCount",columnCount:"columnCount",realGridSize:"realGridSize"},dataTooltipVisible:!0,dataTooltipStyle:{outline:{type:Ce.SLS,color:[255,255,255,255],width:1}},dataTooltipStyleReversed:{color:[255,255,255,255],outline:{type:Ce.SLS,width:3}},tooltipWidth:300,axisLabelOveredOpacity:.5,generalFontSize:10,actionMode:Fb.MultiSelectionWithCtrlKey,debounceTime:100,chartDefaultPaddingRight:0,htmlEmptyContent:"<p></p>",boxPlot:{boxPlotCategory:"arcgis_charts_box_plot_category",boxPlotOutliersSuffix:"_arcgis_charts_outliers",boxPlotOutliersVisibility:!1,boxPlotStandardizeValuesVisibility:!1,boxPlotOutliersSize:4,boxPlotLineWidth:2,boxPlotOutlierId:"is_arcgis_charts_outlier",boxPlotMeanLineMarkerId:"is_arcgis_charts_mean_marker",boxPlotWhiskersColor:[153,153,153,178.5],boxPlotTooltipLabelWidth:250},binTemporalData:!0,lastTemporalBin:"is_arcgis_charts_last_bin",options:{hideEmptySeries:!0,replaceNoValueCategoryWithZero:!0,autoInverseDataLabelTextColor:!1},nullCategory:{text:"null",symbol:{type:Ce.SFS,color:Js,outline:{type:Ce.SLS,style:hr.Solid,color:Js,width:1}}},classBreaks:{breaksCount:5}},Fi={...O,chartPadding:5,footerContainer:{...O.footerContainer,paddingTop:0,paddingBottom:0},headerContainer:{...O.headerContainer,paddingBottom:0},chartContainer:{...O.chartContainer},dataLabel:{...O.dataLabel,verticalCenter:"bottom"},scrollbarPadding:12,zIndexes:{guide:100,scatterplotTrendLine:2,bulletMarkers:1},verticalSurfaceGuideLabels:{wrap:!0},verticalLineGuideLabels:{wrap:!0,rotation:90},horizontalSurfaceGuideLabels:{wrap:!0},horizontalLineGuideLabels:{wrap:!0},overlayId:{scatterplotTrendLine:"arcgis_charts_scatter_plot_trendline",histogramMean:"arcgis_charts_histogram_mean",histogramMedian:"arcgis_charts_histogram_median",histogramStdDev:"arcgis_charts_histogram_std_dev",histogramNormalDistribution:"arcgis_charts_histogram_normal_distribution"},axisLabelSpacing:{verticalAxisLabelSidePadding:8,horizontalAxisLabelPaddingTop:6},legendPadding:20,heatChart:{gradientHeatRules:{minColor:[255,255,200,255],maxColor:[255,0,0,255],outsideRangeLowerColor:[250,250,250,255],outsideRangeUpperColor:[0,0,255,255]},legend:{position:ki.Bottom,chartPadding:40,legendPadding:20,width:70,bottomHeight:20,topHeight:50,titleHeight:10,titlePadding:10,gradientLabelsPadding:10},emptyCells:{symbol:{type:Ce.SFS,style:mr.Solid,color:O.grayColor},text:"null"},includeLeapDay:!1},heatChartLabelPadding:{paddingTop:2},heatChartFirstDayOfWeek:7,pieChartDataLabel:{minWidth:30},focusableThreshold:500};function Jb(t){let{stringToTruncate:e,characterLimit:r,ellipsis:a=O.chartEllipsis}=t,i=e;return typeof r=="number"&&Number.isFinite(r)&&r>0&&r<e.length&&(i=e.slice(0,r),i=`${i}${a}`),i}function rT(t,e=":"){return t?`\u200F${e}`:`\u200E${e}`}function iT(t){return e=>{let r=typeof e!="string"?e?.toString()??"":e;return!Ee(r)&&r!==O.htmlEmptyContent&&(r=Jb({stringToTruncate:r,characterLimit:t})),r}}function Yb(t){let e=/[[]/gu,r=/[\]]/gu,a=/[{]/gu,i=/[}]/gu,n=/[']/gu;return t=t.replace(e,"[["),t=t.replace(r,"]]"),t=t.replace(a,"{{"),t=t.replace(i,"}}"),t=t.replace(n,"''"),t}function Xb(t,e){let r="";return t!==void 0&&(r=`${e==="amChartsV5"?"fontStyle":"font-style"}:${t};`),r}function ev(t,e){let r="";return t===!0&&(r=`${e==="amChartsV5"?"letterSpacing":"letter-spacing"}:1px;`),r}function aT(t){let{textSymbol:e,placeholderString:r,format:a,axisLabelsBehavior:i,defaults:n}=t,s=Xb(e?.font?.style,a),o=ev(e?.kerning,a),l=r??e?.text??"";if(a==="html"){let{wrap:d,maxWidth:u}=n??{};i===_o.Wrap&&(d=!0,u=u??O.xAxisLabelMaxWidth);let c=d===!0&&Number.isFinite(u)?`max-width: ${u}px; word-break: break-word;`:"";l=`<p style="margin:0;${s}${o}${c}">${l}</p>`}else l=Yb(l),(s!==""||o!=="")&&(l=`[${s}${o}]${l}[/]`);return l}function tv(t){return t?t.replace(/[A-Z]/gu,e=>`-${e.toLowerCase()}`):void 0}function Ii(t){return Y(t?.series)===b.HeatSeries}function dt(t){return Y(t?.series)===b.BoxPlotSeries}function rv(t,e){return t[0].dataTransformationType!==e[0].dataTransformationType}function iv(t,e){return t[0].binCount!==e[0].binCount}function nT(t,e){let r=!0,a=Y(t?.series),i=Y(e?.series);return a!==i&&(r=a===b.ComboLineAndBarSeries&&(i===b.BarSeries||i===b.LineSeries)||i===b.ComboLineAndBarSeries&&(a===b.BarSeries||a===b.LineSeries)||a===b.BarSeries&&i===b.LineSeries||a===b.LineSeries&&i===b.BarSeries),r}function ro(t,e){return t!==void 0&&e!==void 0&&e>0}function sT(t){let{chartConfig:e,queryObject:r,chartData:a}=t,i=[],n=X(e.series),s=Fp(e),o=ue(r),l=e.chartRenderer??o?.renderer?.toJSON();return i=e.series.map((d,u)=>{let c=Y([d]),f;return(c===b.BarSeries||c===b.LineSeries||c===b.RadarSeries)&&(d.type===b.BarSeries?f=d.fillSymbol?.color:(d.type===b.RadarSeries||d.type===b.LineSeries)&&(f=d.lineSymbol?.color),s?f=hv({dataItem:a[0],seriesConfig:d,chartSubType:n,colorMatch:s,rendererType:l?.type})?.color:f===void 0&&(f=Nt({colorIndex:u}))),f}).filter(d=>d!==void 0),i}function io(t){return t!==C.PieNoAggregation&&t!==C.BarAndLineNoAggregation&&t!==C.BarAndLineSplitByNoAggregation}function av(t){let e=X(t.series);return e===C.BarAndLineFromFields||e===C.PieFromFields||e===C.BoxPlotMonoField||e===C.BoxPlotMultiFields||e===C.BoxPlotMonoFieldAndSplitBy||e===C.BoxPlotMultiFieldsAndSplitBy}function Xi(t){return dt(t)?t?.showMean??!1:!1}function nv(t){return dt(t)?t?.showOutliers:void 0}function oT(){return`{name} {${O.originalCategoryValue}} {dateY} {valueX} {dateX} {valueY}`}var xi={ChartRenderer:1,LayerRenderer:2};function lT(t){let{chartConfig:e,queryObject:r}=t,a=!1;if(e.chartRenderer)a=!0;else{let{series:i}=e,n=Y(i),s=X(i),o=Br(e),l=ei({seriesConfig:o}),d=ue(r)?.renderer;switch(d?.type){case Je.Simple:a=n===b.HistogramSeries||n===b.ScatterSeries||s===C.BarAndLineMonoField||s===C.BoxPlotMonoField||s===C.BoxPlotMultiFields||s===C.BoxPlotMonoFieldAndCategory||s===C.BarAndLineNoAggregation&&i.length===1&&!l;break;case Je.UniqueValue:{let u=d?.field,c=Xe(o.query?.where),{x:f}=o;a=(s===C.BoxPlotMonoFieldAndSplitBy||s===C.BoxPlotMultiFieldsAndSplitBy||s===C.BoxPlotMonoFieldAndCategoryAndSplitBy||s===C.BarAndLineSplitByNoAggregation||s===C.BarAndLineSplitBy)&&u===c||(s===C.BoxPlotMonoFieldAndCategory||s===C.PieFromCategory||s===C.BarAndLineMonoField)&&u===f||s===C.BarAndLineNoAggregation||s===C.PieNoAggregation||n===b.ScatterSeries}break;case Je.PieChart:a=s===C.PieFromFields||s===C.BarAndLineFromFields||s===C.BarAndLineMultiFields||s===C.BarAndLineMonoField||s===C.BoxPlotMonoField||s===C.BoxPlotMultiFields||s===C.BoxPlotMonoFieldAndCategory||s===C.BoxPlotMultiFieldsAndCategory;break;case Je.ClassBreaks:a=n===b.HeatSeries||n===b.ScatterSeries||s===C.BarAndLineNoAggregation||s===C.PieNoAggregation;break;case Je.Dictionary:case Je.DotDensity:case Je.Heatmap:break}}return a}function sv(t,e){return tv(t?.type)??e?.type}function ov(t){let e=O.rendererSymbolField,r=e in t?e:void 0;if(!r){let a=t[O.originalCategoryValue];r=Object.keys(t).find(i=>{let n=t[i];return i.includes(e)&&n?.label&&n?.uniqueValue===a}),r||(r=Object.keys(t).find(i=>i.includes(e))??"")}return t[r]?.label}function lv(t){return t?.type!==void 0&&(t.color!==void 0||t.label!==void 0||t.style!==void 0||t.outline!==void 0)}function Sp(t){let{symbolField:e,dataItem:r,rendererSymbol:a,rendererOrigin:i}=t,n=!1;if(!lv(a))delete r[e];else{let s={...a};s.color!==void 0&&i===xi.LayerRenderer&&(s.color[3]=lt*255),i===xi.LayerRenderer&&(delete s.style,delete s.outline,delete s.label),r[e]=s,n=!0}return n}function dv(t){let{renderer:e,seriesConfig:r,chartSubType:a,dataItem:i,rendererOrigin:n}=t,s,o=!1,l=Y(r),{outline:d,attributes:u}=e;return u.forEach(c=>{let{field:f}=c,{color:p,label:h}=c,m;Array.isArray(p)&&p?.length===4?m=p:p&&"toRgba"in p&&(m=p.toRgba());let y=!1,g=!0;switch(l){case b.BarSeries:case b.LineSeries:case b.ComboLineAndBarSeries:case b.RadarSeries:if(a!==C.BarAndLineFromFields){let v=r.find(w=>w.query?.outStatistics?.[0]?.onStatisticField===f);v!==void 0&&"y"in v?f=[v.y].flat()[0]:f=""}y=a!==C.BarAndLineFromFields||f===i[O.originalCategoryValue];break;case b.PieSeries:y=a===C.PieFromFields&&f===i[O.originalCategoryValue];break;case b.BoxPlotSeries:a===C.BoxPlotMonoField||a===C.BoxPlotMonoFieldAndCategory?y=f===r[0].y:f&&(a===C.BoxPlotMultiFields||a===C.BoxPlotMultiFieldsAndCategory)&&(y=r.map(v=>v.y).flat().includes(f)),g=!1;break}y&&m&&(s={type:Ce.SMS,color:m,label:g&&h?h:void 0},d!=null&&(s.outline=d),Sp({dataItem:i,symbolField:a===C.BarAndLineFromFields||a===C.PieFromFields?O.rendererSymbolField:`${O.rendererSymbolField}_${f}`,rendererSymbol:s,rendererOrigin:n})&&(o=!0))}),{rendererSymbol:s,colorMatchApplied:o}}function uv(t){let{seriesConfig:e,chartSubType:r,rendererType:a}=t,i=O.rendererSymbolField;if(a===Je.UniqueValue){if(Op(r)){let n=ct({where:e.query?.where,keepSurroundingQuotes:!1,escape:!1});n===null?i=O.nullValue:r===C.BarAndLineSplitBy&&typeof e.y=="string"?i=e.y:r===C.BarAndLineSplitByNoAggregation&&typeof e.y=="string"?i=`${e.y}_${n}`:i=`${n}`}}else if(a===Je.PieChart)switch(r){case C.BoxPlotMultiFields:i=Array.isArray(e.y)?e.y.flat():e.y;break;case C.BarAndLineMonoField:case C.BarAndLineMultiFields:case C.BoxPlotMonoField:case C.BoxPlotMonoFieldAndCategory:case C.BoxPlotMultiFieldsAndCategory:i=e.y;break}return i}function wp(t){let{seriesConfig:e,chartSubType:r,rendererType:a,dataItem:i}=t,n=uv({seriesConfig:e,chartSubType:r,rendererType:a});return n instanceof Array&&e.type===b.BoxPlotSeries&&a===Je.PieChart&&i!==void 0&&(n=n.find(s=>s===i[Li])??n[0]),n=n!==O.rendererSymbolField?`${O.rendererSymbolField}_${n.toString()}`:n,n}function cv(t){let{chartRenderer:e,queryObject:r}=t,a=e!==void 0?{...ue(r),renderer:uo.fromJSON(e)}:ue(r);return new ib({layer:a})}async function pv(t){let{seriesConfig:e,dataItem:r,renderer:a,rendererType:i,rendererOrigin:n,chartSubType:s,splitByField:o,graphicTemplate:l,rendererFieldNames:d,mapAttributesToSymbol:u}=t,c,f=!1;if(i===Je.PieChart){let p=dv({renderer:a,seriesConfig:e,chartSubType:s,dataItem:r,rendererOrigin:n});c=p.rendererSymbol,f=p.colorMatchApplied}else if(!Kp(r)){let{x:p}=e[0],h=new Map;o&&o.trim()!==""?e.forEach(m=>{if(m.type===b.BarSeries||m.type===b.LineSeries||m.type===b.BoxPlotSeries||m.type===b.RadarSeries){let y=wp({seriesConfig:m,chartSubType:s,rendererType:i,dataItem:r}),g=ct({where:m.query?.where,normalize:!0,keepSurroundingQuotes:!1,escape:!1});h.set(y,{...r,[o]:g})}}):e[0].type===b.HeatSeries&&i===Je.ClassBreaks?h.set(O.rendererSymbolField,{[re.valueField]:r[re.valueField]}):h.set(O.rendererSymbolField,{...r,[p]:bv(r)});try{let m=Array.from(h.entries()),y=l.clone();y.layer=l.layer;let g=a?.uniqueValueInfos;for(let v=0;v<m.length;v+=1){let[w,x]=m[v];if(ep({mode:"encode",x:p,splitByField:o,attributes:x}),d&&d.length>0&&Object.keys(x).forEach(F=>{d.includes(F)||delete x[F]}),y.attributes=x,u?.has(JSON.stringify(x)))c=u.get(JSON.stringify(x));else{if(c=(await Ei.getDisplayedSymbol(y))?.toJSON(),c!=null){if(c.color===void 0){let A=(await Ei.getDisplayedColor(y))?.toJSON();A&&(c.color=A.length===4?A:[...A,255])}let F=await Ei.getLegendLabel(y);F!=null&&F!==""&&(c.label=F,c.uniqueValue=g?.find(A=>A.label===F)?.value??void 0)}u?.set(JSON.stringify(x),c)}ep({mode:"revert",x:p,splitByField:o,attributes:r}),Sp({dataItem:r,symbolField:w,rendererSymbol:c,rendererOrigin:n})&&(f=!0)}}catch{}}return{rendererSymbol:c,colorMatchApplied:f}}function fv(t){let e=t;return t?.type==="uniqueValue"&&(t.uniqueValueInfos=t.uniqueValueInfos.map(r=>{let a=r.value===null?O.nullValue:r.value;return{...r,value:a}})),e}function ep(t){let{splitByField:e,attributes:r,x:a,mode:i}=t;[a,e??""].forEach(n=>{r[n]===(i==="encode"?null:O.nullValue)&&(r[n]=i==="encode"?O.nullValue:null)})}async function dT(t){let{data:e,queryObject:r,chartConfig:a,allowColorMatch:i}=t,n=!1,s=[];if(i){let{series:o,chartRenderer:l}=a,d=fv(l),u=d?xi.ChartRenderer:xi.LayerRenderer,c=r?ue(r):void 0,f=d??c?.renderer,p;c&&u===xi.LayerRenderer?s=await af(c):u===xi.ChartRenderer&&(s=yv(f));let h=sv(d,c?.renderer),m=cv({chartRenderer:l,queryObject:r}),y=X(o),g=Br(a),v=Xe(g.query?.where);p=new Map;for(let w=0;w<e.length;w+=1){let x=e[w],F=await pv({seriesConfig:a.series,dataItem:x,renderer:f,rendererType:h,rendererOrigin:u,chartSubType:y,splitByField:v,graphicTemplate:m,mapAttributesToSymbol:p,rendererFieldNames:s});n=n||F.colorMatchApplied}}return{dataItems:e,colorMatchApplied:n,rendererFieldNames:s}}function hv(t){let{dataItem:e,seriesConfig:r,chartSubType:a,colorMatch:i,rendererType:n}=t,s;if(i&&e!==void 0){let o=wp({seriesConfig:r,chartSubType:a,rendererType:n,dataItem:e});s=e[o]}return s}function uT(t){let{seriesSymbol:e,rendererSymbol:r,colorIndex:a}=t,i=r?.color??e.color;i=i??Nt({colorIndex:a,opacity:lt});let n={...e,color:i};return r?.type===e.type&&r.style!==void 0&&(n.style=r.style),n.type!==Ce.SLS&&(n.outline={type:Ce.SLS,style:r?.outline?.style??n.outline?.style,width:r?.outline?.width??n.outline?.width,color:r?.outline?.color??n.outline?.color??r?.color}),n}function mv(t){let e=[];return t&&(e=t.series.flatMap(r=>r.query?.outStatistics?.map(a=>a.onStatisticField)).filter(r=>r!==void 0),e.length===0&&(e=rt(t.series))),e}function cT(t,e){let r=!1;if(t&&e&&e.length>0&&Fp(t)){let a=av(t),i=Br(t);a?r=mv(t).some(n=>e.includes(n)):r=e.includes(i.x)}return r}function yv(t){let e=[];if(t&&"type"in t&&typeof t.type=="string")switch(t.type){case"uniqueValue":case"unique-value":"field1"in t&&typeof t.field1=="string"&&(e=[t.field1]);break;case"classBreaks":case"class-breaks":"field"in t&&typeof t.field=="string"&&(e=[t.field]);break;case"pieChart":case"pie-chart":"attributes"in t&&Array.isArray(t.attributes)&&(e=t.attributes.map(r=>r.field));break}return e}function gv(t){let e;return t?.[0]!==void 0&&(e=t.reduce((r,a)=>({...r,xmin:Math.min(r.xmin,a.xmin),xmax:Math.max(r.xmax,a.xmax),ymin:Math.min(r.ymin,a.ymin),ymax:Math.max(r.ymax,a.ymax)}),t[0])),e}function ea(t){let{value:e,dataContext:r,specificField:a,keepNullValues:i=!1,useRendererLabel:n=!1,config:s}=t,o=e,{originalCategoryValue:l,originalDateValue:d}=O;if(r!==void 0){let u=n?ov(r):void 0;a!==void 0&&r[a]!==void 0?o=r[a]:u!==void 0?o=u:r[d]!==void 0?o=r[d]:r[l]!==void 0?o=r[l]:r[ot]!==void 0&&(o=r[ot]),!i&&o===null&&(o="null",s?.series?.[0].type===b.BarSeries&&(o=s.series?.[0]?.nullCategory?.text??Fi.nullCategory?.text??o))}return o}function bv(t){return t?.[O.originalCategoryValue]}function vn(t){let{arrayToSort:e,orderBy:r,sortingField:a,forceAscendingOrder:i,isNonAggregated:n,sortByCategory:s,preferLabel:o,isPieOrByFieldsChart:l}=t;if(e!==void 0&&e.length>1){let d=r===ze.Descending&&i!==!0;e.sort((u,c)=>{let f=0,p=u[a];s===!0&&!l&&(p=ea({value:`${u[a]?.toString()}`,dataContext:u,specificField:o?O.xAxisField:void 0}));let h=c[a];return s===!0&&!l&&(h=ea({value:`${c[a]?.toString()}`,dataContext:c,specificField:o?O.xAxisField:void 0})),n===!0&&d&&s===!0&&(p=Number.isNaN(Number.parseFloat(`${p?.toString()}`))?p:Number.parseFloat(p),h=Number.isNaN(Number.parseFloat(`${h?.toString()}`))?h:Number.parseFloat(h)),s===!0&&(u[O.originalCategoryValue]===null||p===null)||u[Ji.defaultGroupOfSlicesId]===!0?f=1:s===!0&&(c[O.originalCategoryValue]===null||h===null)||c[Ji.defaultGroupOfSlicesId]===!0?f=-1:typeof p=="string"&&typeof h=="string"?(f=p.localeCompare(h,void 0,{numeric:!0}),d&&(f*=-1)):p===void 0?f=d?-1:1:h===void 0?f=d?1:-1:p!==null&&h!==null&&(p>h?f=d?-1:1:p<h&&(f=d?1:-1)),f})}}function vv(t){let{arrayToSort:e,orderBy:r,sortingField:a,fieldList:i,isByFieldsChart:n,preferLabel:s}=t;e!==void 0&&e.length>1&&!Ee(a)&&r!==void 0&&r.length>0&&e.sort((o,l)=>{let d=o[a];s&&n&&typeof d=="string"&&(d=no(i,d));let u=r.indexOf(d?.toString()??"");u===-1&&(u=r.length);let c=l[a];s&&n&&typeof c=="string"&&(c=no(i,c));let f=r.indexOf(c?.toString()??"");return f===-1&&(f=r.length),u-f})}function Sv(t,e){let r=t;if(e?.[0]!==void 0&&X(e)===C.PieFromFields){let{x:a,y:i}=e[0];(pa(t)?r:r.dataItems).forEach(n=>(ot in n&&a!==ot&&(n[a]=n[a]!==void 0?n[a]:n[ot],delete n[ot]),Wt in n&&i!==Wt&&(n[i]=n[i]!==void 0?n[i]:n[Wt],delete n[Wt]),n))}return r}function wv(t,e){let r=Y(e),a=t,i=e?.[0];if((r===b.PieSeries||r===b.BoxPlotSeries||r===b.LineSeries||r===b.RadarSeries||r===b.BarSeries||r===b.HeatSeries||r===b.ComboLineAndBarSeries)&&i!==void 0){let n=pa(t),s=n?t:t.dataItems;if(t!==void 0){let{originalCategoryValue:o,originalYCategoryValue:l,originalDateValue:d,xAxisField:u}=O,c=r===b.HeatSeries?re.xField:i.x,f=r===b.HeatSeries?re.yField:void 0;s=s.map(p=>{let h=p[c];p[d]!==void 0?h=p[d]:p[o]!==void 0&&(h=p[o]);let m={...p,[c]:h};if(delete m[d],delete m[o],delete m[u],f){let y=p[f];p[l]!==void 0&&(y=p[l]),m={...m,[f]:y},delete m[l]}return m}),n?a=s:"dataItems"in a&&(a.dataItems=s)}}return a}function tp(t){let e={...t};delete e[O.technicalSortingFieldBySum],delete e[O.technicalSortingFieldByPercent],delete e[O.pieChart.technicalFieldSlicePercent],delete e[O.pieChart.technicalFieldGroupedSlices],delete e[O.lastTemporalBin],delete e[O.originalServerBinningRange],delete e[O.technicalFieldSplitByField],delete e[Be.uniqueIdsName],Object.keys(e).filter(a=>a.includes(O.rendererSymbolField)).forEach(a=>delete e[a]);let r=Fn(e);return r.isInItem&&delete e[r.expr??""],e}function Cv(t,e){let r=t,a=Y(e),i=nf(r);if(i!==void 0)switch(a){case b.ComboLineAndBarSeries:case b.BarSeries:case b.LineSeries:case b.RadarSeries:case b.PieSeries:{i=i.map(tp),r={dataItems:i};let{timeIntervalInfo:n,serverLimitReached:s}=t??{};jo(n)||(r.timeIntervalInfo=n),s!==void 0&&(r.serverLimitReached=s)}break;case b.ScatterSeries:r={...r,dataItems:i.map(tp)};break}return r}function Cp(t){let{data:e,seriesConfig:r}=t,a=jr(e);return a!==void 0&&(a=wv(a,r),a=Cv(a,r),a=Sv(a,r)),a}function xp(t){let{statsMap:e,dataContext:r,chartLimits:a}=t,i=!1;if(e!==void 0){let{maxScatterPointsBeforeAggregation:n}=Xr(a),{queryNumberOfFeatures:s}=O.scatterplotAggregationFields;i=(e.get(s)??Number.NaN)>=n}else r!==void 0&&(i=O.scatterplotAggregationFields.dataContextXMinField in r);return i}function xv(t){let e=!0,r=Y(t.series);if(r===b.BarSeries||r===b.LineSeries||r===b.ComboLineAndBarSeries){let a=X(t.series);e=a!==C.BarAndLineNoAggregation&&a!==C.BarAndLineSplitByNoAggregation}return e}function Tv(t){return X(t.series)!==C.PieNoAggregation}function Fv(t){let{dataContext:e,chartConfig:r,chartLimits:a}=t,i=!0;if(r!==void 0)switch(Y(r.series)){case b.BarSeries:case b.LineSeries:case b.ComboLineAndBarSeries:i=xv(r);break;case b.ScatterSeries:i=xp({dataContext:e,chartLimits:a});break;case b.PieSeries:i=Tv(r);break}return i}function Iv(t,e){let r=t;switch(e){case Ge.Log:r=`log(${t})`;break;case Ge.Sqrt:r=`power(CAST(${t} AS FLOAT),0.5)`;break}return r}function Oi(t){let e=new Date(t).valueOf();return Number.isNaN(e)||(e=new Intl.DateTimeFormat("en-US",O.dateFormatUTC).format(t).replace(",","")),e}function Sn(t){let{dataToConvert:e,x:r,y:a,fieldList:i}=t,n=[];if(e){let s=e[Or];Object.entries(e).forEach(([o])=>{if(o!==""&&o!==Or&&o in e){let l={[r]:no(i,o),[a]:e[o],[O.xAxisField]:o,[O.originalCategoryValue]:o};s!==void 0&&(l[Or]=s),e[`${O.rendererSymbolField}_${o}`]!==void 0&&(l[O.rendererSymbolField]=e[`${O.rendererSymbolField}_${o}`]),n.push(l)}})}return n}function Ov(t,e){let r=!0;if(t!==void 0&&t.length>1&&!Ee(e)){let a=0,i=0,n=0;t.forEach(s=>{let o=s[e];!Bv(o)||o===0?n+=1:o>0?a+=1:i+=1}),r=n===t.length||a>=0&&i===0||a===0&&i>=0}return r}function fn(t){let{countTotal:e,countPerSeries:r,numberOfSeries:a}=t,i,n=[];return typeof e=="number"&&Number.isFinite(e)&&n.push(e),typeof r=="number"&&Number.isFinite(r)&&n.push(r*a),n.length>0&&(i=Math.min(...n)),i}function Tp(t,e){let r,{maxBarChartSeriesCount:a,maxBarUniqueSeriesCountTotal:i,maxBarTwoSeriesCountPerSeries:n,maxBarTwoSeriesCountTotal:s,maxBarThreePlusSeriesCountPerSeries:o,maxBarThreePlusSeriesCountTotal:l,maxLineChartSeriesCount:d,maxLineUniqueSeriesCountTotal:u,maxLineTwoSeriesCountPerSeries:c,maxLineTwoSeriesCountTotal:f,maxLineThreePlusSeriesCountPerSeries:p,maxLineThreePlusSeriesCountTotal:h,maxPieChartSliceCountTotal:m,maxGaugeByFeaturesLimit:y}=Xr(e),g=Y(t.series),v=t.series.length===0?1:t.series.length,w=X(t.series);switch(g){case b.ComboLineAndBarSeries:case b.BarSeries:v<=a&&(v===1?r=i:v===2?r=fn({countTotal:s,countPerSeries:n,numberOfSeries:v}):v>2&&(r=fn({countTotal:l,countPerSeries:o,numberOfSeries:v})));break;case b.LineSeries:v<=d&&(v===1?r=u:v===2?r=fn({countTotal:f,countPerSeries:c,numberOfSeries:v}):v>2&&(r=fn({countTotal:h,countPerSeries:p,numberOfSeries:v})));break;case b.PieSeries:r=m;break;case b.GaugeSeries:r=y;break;case b.ScatterSeries:case b.HistogramSeries:case b.BoxPlotSeries:}return(w===C.BarAndLineNoAggregation||w===C.BarAndLineMultiFields)&&r!==void 0&&(r=Math.ceil(r/v)),r}function rp(t,e){let r=t;if(Number.isFinite(t)){let{factor:a,offset:i}=e??{};Number.isFinite(a)&&(r*=a),Number.isFinite(i)&&(r+=i)}return r}function Pv(t){let e=!1;if(t!==void 0){let r=t.replace(" ",""),a=/^%(0*100{1,1}\.?((?:\.)0*)?$)|(^%0*\d{0,2}\.?((?:\.)\d*)?)$/u,i=/^(0*100{1,1}\.?((?:\.)0*)?%$)|(^0*\d{0,2}\.?((?:\.)\d*)?%)$/u;e=a.test(r)||i.test(r)}return e}function pT(t){let e;if(Pv(t)){let r=/%(\d{1,3}(.\d+)?)$/u,a=/(\d{1,3}(.\d+)?)%$/u,i=t.replace(" ",""),n=r.exec(i)?.[1]??a.exec(i)?.[1];n!==void 0&&(e=Number(n))}return e}var U={Min:"min",FirstQuartile:"first_quartile",Median:"median",ThirdQuartile:"third_quartile",Max:"max",IQR:"iqr",Average:"avg",StandardDeviation:"stddev",Outlier:"outlier"},C={NonSpecific:"nonSpecific",BarAndLineNoAggregation:"barAndLineNoAggregation",BarAndLineMonoField:"barAndLineMonoField",BarAndLineMultiFields:"barAndLineMultiFields",BarAndLineFromFields:"barAndLineFromFields",BarAndLineSplitBy:"barAndLineSplitBy",BarAndLineSplitByNoAggregation:"barAndLineSplitByNoAggregation",PieNoAggregation:"pieNoAggregation",PieFromCategory:"pieFromCategory",PieFromFields:"pieFromFields",BoxPlotMonoField:"boxPlotMonoField",BoxPlotMultiFields:"boxPlotMultiFields",BoxPlotMonoFieldAndCategory:"boxPlotMonoFieldAndCategory",BoxPlotMultiFieldsAndCategory:"boxPlotMultiFieldsAndCategory",BoxPlotMonoFieldAndSplitBy:"boxPlotMonoFieldAndSplitBy",BoxPlotMultiFieldsAndSplitBy:"boxPlotMultiFieldsAndSplitBy",BoxPlotMonoFieldAndCategoryAndSplitBy:"boxPlotMonoFieldAndCategoryAndSplitBy"},fT={SelectionByClick:"SelectionByClick",SelectionByRange:"SelectionByRange",ProgrammaticSelection:"ProgrammaticSelection",ClearSelection:"ClearSelection"};function Fp(t){return t?.colorMatch??!1}function ip(t){let e=Yi();if(t!==void 0){let r=Y(t.series);(r===b.BarSeries||r===b.LineSeries||r===b.ComboLineAndBarSeries||r===b.BoxPlotSeries)&&(e=t.rotated??Yi())}return e}function hT(t){return t?.map(e=>e.type)??[]}function fo(t){let e=t?.stackedType;if(e===void 0&&t!==void 0){let r=Y(t.series);(r===b.BarSeries||r===b.LineSeries||r===b.ComboLineAndBarSeries||r===b.RadarSeries)&&(e=Gb())}return e}function Av(t){let e=t;return e=e.replace(/'/gu,"''"),e=e.replace(/[/\\"|[\]\\]/gu,"\\$&"),e}function Ev(t){let e=!1;if(typeof t!="number"){let r=new Intl.Segmenter;e=Array.from(r.segment(t),a=>a.segment).some(a=>a.charCodeAt(0)>255)}return e}function ao(t){let e=t,r="";t.startsWith("'")&&t.endsWith("'")&&(e=t.slice(1,-1),r="'"),e=e.replace(/'/gu,"''");let a="";return Ev(e)&&(a="N"),`${a}${r}${e}${r}`}function Ip(t){let{value:e,keepSurroundingQuotes:r,escape:a}=t,i=e?.trim();if(!Ee(i)){let n="";i.startsWith("'")&&i.endsWith("'")&&(i=i.slice(1,-1),r&&(n="'")),a!==!1&&(i=Av(i)),i=`${n}${i}${n}`}return i}function nr(t){let{count:e,seriesCount:r,chartType:a,chartLimits:i}=t,{behaviorAfterLimit:n}=i??{},s=!0;if(n!==Lr.RenderUpToTheLimit){let{maxBarChartSeriesCount:o,maxBarUniqueSeriesCountTotal:l,maxBarTwoSeriesCountPerSeries:d,maxBarTwoSeriesCountTotal:u,maxBarThreePlusSeriesCountPerSeries:c,maxBarThreePlusSeriesCountTotal:f,maxLineChartSeriesCount:p,maxLineUniqueSeriesCountTotal:h,maxLineTwoSeriesCountPerSeries:m,maxLineTwoSeriesCountTotal:y,maxLineThreePlusSeriesCountPerSeries:g,maxLineThreePlusSeriesCountTotal:v,maxPieChartSliceCountTotal:w,maxGaugeByFeaturesLimit:x,maxBoxPlotSeriesCount:F,maxBoxUniqueSeriesCountTotal:A,maxBoxTwoSeriesCountTotal:q,maxBoxTwoSeriesCountPerSeries:L,maxBoxThreePlusSeriesCountTotal:P,maxBoxThreePlusSeriesCountPerSeries:B,maxHeatChartCellLimit:N}=Xr(i);switch(a){case b.BarSeries:case b.ComboLineAndBarSeries:{let R=e/r;r<=o?r===0?s=!0:r===1?s=e<=l:r===2?s=e<=u&&R<=d:r>2&&(s=e<=f&&R<=c):s=!1}break;case b.LineSeries:case b.RadarSeries:{let R=e/r;r<=p?r===0?s=!0:r===1?s=e<=h:r===2?s=e<=y&&R<=m:r>2&&(s=e<=v&&R<=g):s=!1}break;case b.PieSeries:s=e<=w;break;case b.BoxPlotSeries:{let R=e/r;r<=F?r===0?s=!0:r===1?s=e<=A:r===2?s=e<=q&&R<=L:r>2&&(s=e<=P&&R<=B):s=!1}break;case b.HeatSeries:s=e<=N;break;case b.GaugeSeries:s=e<=x;break}}return s}function no(t=[],e){let r=t.find(a=>a.name===e)?.alias;return r!==""?r??e:e}function mT(t=[],e){let r=t.find(a=>a.alias===e)?.name;return r!==""?r??e:e}function yT(t){let e=!1;switch(Y(t)){case b.HeatSeries:case b.PieSeries:e=!0;break;case b.BarSeries:case b.LineSeries:case b.RadarSeries:case b.ComboLineAndBarSeries:case b.BoxPlotSeries:e=t.length>1;break;case b.HistogramSeries:case b.ScatterSeries:{let r=t[0];e=r.overlays!==void 0&&Object.values(r.overlays).some(a=>a.created===!0);break}}return e}function Lv(t){let e=!0;return Y(t.series)===b.ScatterSeries&&(e=t.series.length===1),e}function Dv(t){let e=!0;return Y(t.series)===b.HistogramSeries&&(e=t.series.length<=1&&t.series[0].type===b.HistogramSeries&&(!("dataTransformationType"in t.series[0])||t.series[0].dataTransformationType!==void 0&&Object.values(Ge).includes(t.series[0].dataTransformationType))),e}function Nv(t){let e=!0;return Y(t.series)===b.PieSeries&&(e=t.series.length<=1),e}function gT(t,e){let r=Y(e?.series),a=r!==void 0&&t.includes(r);if(a&&e!==void 0)switch(r){case b.HistogramSeries:a=Dv(e);break;case b.ScatterSeries:a=Lv(e);break;case b.PieSeries:a=Nv(e);break}return a}function Ee(t){return t==null||typeof t=="string"&&t.trim()===""}function gn(t,e){let r=e.find(a=>a in t);return{isInItem:r!==void 0,expr:r}}function Fn(t){return gn(t,yp)}function bT(t,e){let r;switch(t){case G.Second:r=e.seconds??"";break;case G.Minute:r=e.minutes??"";break;case G.Hour:r=e.hours??"";break;case G.Day:r=e.days??"";break;case G.Week:r=e.weeks??"";break;case G.Month:r=e.months??"";break;case G.Year:r=e.years??"";break;default:r="";break}return r}function vT(t){let e;switch(t){case ir.Mean:e=1;break;case ir.Median:e=2;break;case ir.StdDev:e=3;break;case ir.Normal:default:e=0;break}return e}function ST(t,e){if(e!==void 0){let{seriesId:r,overlayType:a,visible:i}=t.detail,n;switch(a){case ir.Mean:e.series[0].type===b.HistogramSeries&&(n=e.series[0].overlays?.mean);break;case ir.Median:e.series[0].type===b.HistogramSeries&&(n=e.series[0].overlays?.median);break;case ir.StdDev:e.series[0].type===b.HistogramSeries&&(n=e.series[0].overlays?.standardDeviation);break;case ir.Normal:e.series[0].type===b.HistogramSeries&&(n=e.series[0].overlays?.comparisonDistribution);break;case ir.Trendline:e.series[0].type===b.ScatterSeries&&(n=e.series[0].overlays?.trendLine);break;default:n=e.series.find(s=>s.id===r);break}n!==void 0&&(n.visible=i)}}function wT(t){return new Wd().sanitize(t)}function Bv(t){return t!=null&&!Number.isNaN(t)&&Number.isFinite(t)}function Mv(t,e){let r={fieldToSort:""};if(!Ee(t)){let a=t.trim(),i=a.split(" ").at(-1)?.toUpperCase();i===ze.Ascending||i===ze.Descending?r={fieldToSort:a.substring(0,a.lastIndexOf(" ")),orderBy:i}:(r={fieldToSort:a},e!==!1&&(r.orderBy=ze.Ascending))}return r}function Op(t){return t===C.BarAndLineSplitBy||t===C.BarAndLineSplitByNoAggregation||t===C.BoxPlotMonoFieldAndSplitBy||t===C.BoxPlotMultiFieldsAndSplitBy||t===C.BoxPlotMonoFieldAndCategoryAndSplitBy}function CT(t){return t?.selectionOIDs===void 0||t.selectionOIDs.length===0}function xT(t={arrayA:[],arrayB:[],getKey:e=>e}){let{arrayA:e,arrayB:r,getKey:a}=t;if(r.length===0||e.length===0)return e;let i=new Map;r.forEach((l,d)=>{let u=a(l);i.set(u,d)});let n=[],s=[];e.forEach((l,d)=>{let u=a(l);i.has(u)&&(n.push(d),s.push(l))}),s.sort((l,d)=>{let u=a(l),c=a(d);return i.get(u)-i.get(c)});let o=[...e];return n.forEach((l,d)=>{o[l]=s[d]}),o}function TT(t,e){return(t===C.BarAndLineNoAggregation||t===C.BarAndLineSplitByNoAggregation)&&e!==void 0?e.x:O.xAxisField}function FT(t){let{r:e,g:r,b:a,a:i=1}=t,n=Math.round((1-i)*255+i*e),s=Math.round((1-i)*255+i*r),o=Math.round((1-i)*255+i*a);return .299*n+.587*s+.114*o>128}function IT(t){return Y(t.series)!==b.BoxPlotSeries?O.xAxisField:t.series[0].x}function OT(t){let e=fo(t);return e===gt.Stacked||e===gt.Stacked100}function $v(t){let e,r=t?.orderOptions?.data;return t.series?.length>0&&r?.orderType===st.MultiAxes&&(e=[],e.push({sortingField:r.orderByX!==void 0?re.xField:"",orderBy:r.orderByX}),e.push({sortingField:r.orderByY!==void 0?re.yField:"",orderBy:r.orderByY})),e}function qv(t){let e=X(t.series),r;if(t.orderOptions?.data!==void 0){let a=t.orderOptions?.data?.orderType??st.Category,i=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0;if(a===st.Category)a=t.series[0].x;else{a===st.Mean?a=U.Average:a===st.Median&&(a=U.Median);let n=e===C.BoxPlotMultiFieldsAndCategory&&typeof t.series[0].y=="string"?t.series[0].y:void 0,s=Xe(t.series[0].query?.where),o=ct({where:t.series[0].query?.where});a=Ue({key:a,y:n,chartSubType:e,splitBy:s,splitByValue:o}),Array.isArray(i)&&(i=ze.Ascending)}r={sortingField:a,orderBy:i??ze.Ascending,preferLabel:t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel??!0:!0}}return r}function Rv(t){let e=t.series[0],{x:r,y:a}=e,i=X(t.series)===C.PieFromFields,n=X(t.series)===C.BarAndLineFromFields,s,o="",l;if(t.orderOptions?.data!==void 0){let d=t.orderOptions.data&&"preferLabel"in t.orderOptions.data?t.orderOptions.data.preferLabel:!0;if(o=t.orderOptions?.data?.orderType??st.Category,l=t.orderOptions?.data&&"orderBy"in t.orderOptions.data?t.orderOptions.data.orderBy:void 0,o===st.Category?i?o=ot:o=d?r:Fi.originalCategoryValue:o=i?Wt:[a].flat()[0],o!==void 0&&o!==""){let u=fo(t);if(Y(t.series)!==b.PieSeries&&o!==r&&t.series?.length>1)switch(u){case gt.Stacked:o=O.technicalSortingFieldBySum;break;case gt.Stacked100:o=O.technicalSortingFieldByPercent;break;case gt.Side:typeof a=="string"&&(o=a);break}s={sortingField:o,orderBy:l??ze.Ascending,preferLabel:d}}}else(n||i)&&t.series[0].query?.outStatistics&&(l=t.series[0].query.outStatistics.map(d=>d.onStatisticField),l?.length>1&&(s={sortingField:Fi.originalCategoryValue,orderBy:l,preferLabel:!1}));return s}function so(t){let e,r=Y(t.series);if(t.series?.length>0){let a;switch(r){case b.HeatSeries:Ii(t)&&(e=$v(t));break;case b.BoxPlotSeries:dt(t)&&(a=qv(t));break;case b.LineSeries:case b.BarSeries:case b.RadarSeries:case b.PieSeries:a=Rv(t);break}!e&&a&&(e=[],e.push(a))}return e}function PT(t){let{oldConfig:e,newConfig:r,dataWasUpdated:a}=t,i=Y(r.series),n=X(r.series),s=!1,o=!1;if(n!==C.BoxPlotMonoField&&n!==C.BoxPlotMonoFieldAndSplitBy&&r.orderOptions?.data!==void 0){let l=so(e),d=so(r);if(i===b.HeatSeries){let u=l?l[0]:void 0,c=d?d[0]:void 0,f=l?l[1]:void 0,p=d?d[1]:void 0;o=e.orderOptions?.data?.orderType!==r.orderOptions?.data?.orderType||u?.sortingField!==c?.sortingField||u?.orderBy!==c?.orderBy||f?.sortingField!==p?.sortingField||f?.orderBy!==p?.orderBy,s=o||a}else{let u=l?l[0]:void 0,c=d?d[0]:void 0;o=e.orderOptions?.data?.orderType!==r.orderOptions?.data?.orderType||u?.sortingField!==c?.sortingField||u?.orderBy!==c?.orderBy||(u?.preferLabel??!0)!==(c?.preferLabel??!0),s=o||a}}return s}function AT(t,e){let r=[],a=new Map,i=new Map;return t.forEach((n,s)=>i.set(n.id,s)),e.forEach((n,s)=>{let o=i.get(n.id);if(o!==void 0){let l=new Set;for(;a.has(o)&&!l.has(o);)l.add(o),o=a.get(o)??o;o!==s&&(r.push([o,s]),a.set(s,o))}}),r}function kv(t){let e={...t};return t.showMean===!0&&(e.series=[e.series[0]],e.series[0].query?.where!==void 0&&delete e.series[0].query.where),e}function Pp(t){return Ii(t)&&ar(t?.axes?.[0]?.valueFormat)&&ar(t?.axes?.[1]?.valueFormat)}function wn(t){let{dataInfo:e,chartType:r,subError:a}=t;switch(e.valid=!1,r){case b.BarSeries:case b.ComboLineAndBarSeries:e.invalidType=oe.BarElementExceedsLimit;break;case b.LineSeries:e.invalidType=oe.LineChartExceedsLimit;break;case b.PieSeries:e.invalidType=oe.PieChartExceedsLimit;break;case b.GaugeSeries:e.invalidType=oe.GaugeExceedsLimit;break;case b.BoxPlotSeries:a?.outlierLimit===!0?e.invalidType=oe.BoxPlotOutliersExceedsLimit:e.invalidType=oe.BoxPlotExceedsLimit;break;case b.HeatSeries:e.invalidType=oe.HeatChartExceedsLimit;break}}function jv(t,e){t.valid=!1,t.invalidType=e}function ET(t){let{invalidType:e,chartLimits:r,elementCount:a,seriesCount:i,queryObject:n,filterBySelection:s,formatLocale:o=df(document.documentElement),isTemporalChart:l,errorStrings:d}=t,u=d.errors.defaultInvalidChart,c,f=new Intl.NumberFormat(o),p=Xr(r),{maxCategoryCount:h}=p,m=d.modalHeaders.invalidChart;switch(e){case oe.BarElementExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,g=Number.NaN,v="";i!==void 0&&(i<=p.maxBarChartSeriesCount?i===1?(v=d.errors.uniqueSeriesBarCountCannotExceedLimit,y=p.maxBarUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBarCountCannotExceedLimit,y=p.maxBarTwoSeriesCountTotal,g=p.maxBarTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusSeriesBarCountCannotExceedLimit,y=p.maxBarThreePlusSeriesCountTotal,g=p.maxBarThreePlusSeriesCountPerSeries):(v=d.errors.barSeriesCountCannotExceedLimit,g=p.maxBarChartSeriesCount));let w=f.format(y),x=f.format(g),F=a!==void 0?f.format(a):"";u=qe(v,{totalLimit:w,seriesLimit:x,elementCount:F}),c={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:g};break}case oe.LineChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,g=Number.NaN,v="";i!==void 0&&(i<=p.maxLineChartSeriesCount?i===1?(v=l?d.errors.uniqueTemporalSeriesLineCountCannotExceedLimit:d.errors.uniqueSeriesLineCountCannotExceedLimit,y=p.maxLineUniqueSeriesCountTotal):i===2?(v=l?d.errors.twoTemporalSeriesLineCountCannotExceedLimit:d.errors.twoSeriesLineCountCannotExceedLimit,y=p.maxLineTwoSeriesCountTotal,g=p.maxLineTwoSeriesCountPerSeries):i>2&&(v=l?d.errors.threePlusTemporalSeriesLineCountCannotExceedLimit:d.errors.threePlusSeriesLineCountCannotExceedLimit,y=p.maxLineThreePlusSeriesCountTotal,g=p.maxLineThreePlusSeriesCountPerSeries):(v=d.errors.lineSeriesCountCannotExceedLimit,g=p.maxLineChartSeriesCount));let w=f.format(y),x=f.format(g),F=a!==void 0?f.format(a):"";u=qe(v,{elementCount:F,seriesLimit:x,totalLimit:w}),c={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:g}}break;case oe.BoxPlotExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=Number.NaN,g=Number.NaN,v="";i!==void 0&&(i<=p.maxBoxPlotSeriesCount?i===1?(v=d.errors.uniqueSeriesBoxCountCannotExceedLimit,y=p.maxBoxUniqueSeriesCountTotal):i===2?(v=d.errors.twoSeriesBoxCountCannotExceedLimit,y=p.maxBoxTwoSeriesCountTotal,g=p.maxBoxTwoSeriesCountPerSeries):i>2&&(v=d.errors.threePlusBoxLineCountCannotExceedLimit,y=p.maxBoxThreePlusSeriesCountTotal,g=p.maxBoxThreePlusSeriesCountPerSeries):(v=d.errors.boxSeriesCountCannotExceedLimit,g=p.maxBoxPlotSeriesCount));let w=f.format(y),x=f.format(g),F=a!==void 0?f.format(a):"";u=qe(v,{elementCount:F,seriesLimit:x,totalLimit:w}),c={actualCount:a??Number.NaN,totalLimit:y,seriesLimit:g}}break;case oe.BoxPlotOutliersExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.boxSeriesOutlierCannotExceedLimit,g=p.maxBoxPlotOutlierLimit,v=f.format(g);u=qe(y,{totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:g}}break;case oe.HeatChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.heatChartCannotExceedLimit,g=p.maxHeatChartCellLimit,v=f.format(g),w=a!==void 0?f.format(a):"";u=qe(y,{featureCount:w,totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:g}}break;case oe.PieChartExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.pieChartSlicesCannotExceedLimit,g=p.maxPieChartSliceCountTotal,v=f.format(g),w=a!==void 0?f.format(a):"";u=qe(y,{sliceCount:w,totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:g}}break;case oe.GaugeExceedsLimit:{m=d.modalHeaders.tooManyFeatures;let y=d.errors.gaugeCannotExceedLimit,g=p.maxGaugeByFeaturesLimit,v=f.format(g),w=a!==void 0?f.format(a):"";u=qe(y,{featureCount:w,totalLimit:v}),c={actualCount:a??Number.NaN,totalLimit:g}}break;case oe.PieChartMixOfNegativePositiveSlices:m=d.modalHeaders.cannotCombineNegativeAndPositiveSlices,u=d.errors.pieChartCannotHaveMixtureOfPositiveAndNegativeSlices;break;case oe.NegativeValueInSqrtCalculation:m=d.modalHeaders.invalidData,u=d.errors.negativeValueInDataForSqrtTransformation;break;case oe.NegativeValueInLogCalculation:m=d.modalHeaders.invalidData,u=d.errors.negativeValueInDataForLogTransformation;break;case oe.HistogramEmptyField:s===!0?(m=d.modalHeaders.noDataAvailable,u=d.errors.noDataFBSMessage):Er(n)?(m=d.modalHeaders.noDataAvailable,u=d.errors.noDataFBEMessage):(m=d.modalHeaders.invalidChart,u=d.errors.histogramEmptyField);break;case oe.EmptyDataSet:m=d.modalHeaders.noDataAvailable,s===!0?u=d.errors.noDataFBSMessage:Er(n)?u=d.errors.noDataFBEMessage:u=d.errors.noDataMessage;break;case oe.NegativeValueInXAxisLogScale:u=d.errors.logarithmicXAxisNotPossible;break;case oe.NegativeValueInYAxisLogScale:u=d.errors.logarithmicYAxisNotPossible;break;case oe.BadData:}if(u===d.errors.defaultInvalidChart&&(e===oe.BarElementExceedsLimit||e===oe.LineChartExceedsLimit||e===oe.HeatChartExceedsLimit||e===oe.PieChartExceedsLimit||e===oe.GaugeExceedsLimit||e===oe.BoxPlotExceedsLimit)&&typeof a=="number"&&typeof i=="number"&&a/i>h){let y=a/i;u=qe(d.errors.categoryCountCannotExceedLimit,{categoryCount:f.format(y),maxCategoryCount:f.format(h)})}return{keyword:e??oe.BadData,header:m,message:u,params:c}}function Pi(t,e){return`${e}_${t}`}function oo(t){let{value:e,mean:r,stdDev:a}=t;return(e-r)/a}function ho(t){let{dataItem:e,chartSubType:r,y:a,splitByValue:i,meanPerField:n,stdDevPerField:s}=t,o=e,l={chartSubType:r,y:a,splitByValue:i},d=Ue({...l,key:U.Average}),u=Ue({...l,key:U.StandardDeviation}),c=n??Number(e[d]),f=s??Number(e[u]);return Number.isFinite(c)&&Number.isFinite(f)&&Object.values(U).forEach(p=>{let h=Ue({key:p,y:a,chartSubType:r,splitByValue:i}),m=e[h];if(m!=null){let y=Number(m);if(Number.isFinite(y)){l={...l,key:p,showOutliers:!1,standardizeValues:!0};let g=Ue(l);if(o[g]=oo({mean:c,stdDev:f,value:y}),p===U.Min||p===U.Max){l={...l,key:p,showOutliers:!0,standardizeValues:!0},g=Ue(l),l={...l,standardizeValues:!1,splitByValue:i};let v=Ue(l);y=Number(e[v]),Number.isFinite(y)&&(o[g]=oo({mean:c,stdDev:f,value:y}))}}}}),o}function Wv(t){let{data:e,yList:r,calculateZScore:a=!1}=t,i=e[0],n=new Map;return r.forEach(s=>{let o={};Object.keys(i).forEach(l=>{l.startsWith(s)?o[l.replace(`${s}_`,"")]=i[l]:l.includes(O.rendererSymbolField)&&(o[l]=i[l]),o[O.boxPlot.boxPlotCategory]=s,a&&(o=ho({dataItem:o,chartSubType:C.BoxPlotMultiFields}))}),n.set(s,o)}),Array.from(n.values())}function Vv(t){let{data:e,splitByField:r,y:a}=t,i={[O.boxPlot.boxPlotCategory]:a};return e.forEach(n=>{let s=n[r];s!==void 0&&Object.keys(n).forEach(o=>{o===O.rendererSymbolField?i[`${o}_${s?.toString()}`]=n[o]:o===O.boxPlot.boxPlotMeanLineMarkerId?i[o]=n[o]:i[`${s?.toString()}_${o}`]=n[o]})}),[i]}function _v(t){let{splitByField:e,data:r,yList:a,calculateZScore:i=!1,meanAndStdDevPerField:n}=t,s=new Map;return r.forEach(o=>{let l=o[e];a.forEach(d=>{let u={[O.boxPlot.boxPlotCategory]:d};Object.entries(o).forEach(([c,f])=>{c.startsWith(`${d}_`)?u[`${l}_${c.replace(`${d}_`,"")}`]=f:c.includes(O.rendererSymbolField)?u[`${c}_${l}`]=f:c===O.boxPlot.boxPlotMeanLineMarkerId&&(u[c]=o[c])}),i&&(u=ho({dataItem:u,chartSubType:C.BoxPlotMultiFieldsAndSplitBy,splitByValue:l,meanPerField:n?.[Pi(d,j.Average)],stdDevPerField:n?.[Pi(d,j.StandardDeviation)]})),s.set(d,{...s.get(d)??{},...u})})}),Array.from(s.values())}function zv(t){let{data:e,yList:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,n=e;return a&&n.forEach(s=>{r.forEach(o=>{ho({dataItem:s,chartSubType:C.BoxPlotMultiFieldsAndCategory,y:o,meanPerField:i?.[Pi(o,j.Average)],stdDevPerField:i?.[Pi(o,j.StandardDeviation)]})})}),n}function Uv(t){let{splitByField:e,x:r,data:a}=t,i=new Map;return a.forEach(n=>{let s=n[r],o={[r]:s},l=n[e];Object.entries(n).forEach(([d,u])=>{if(d.includes(O.rendererSymbolField))o[`${O.rendererSymbolField}_${l?.toString()}`]=u;else if(d===O.boxPlot.boxPlotMeanLineMarkerId)o[d]=n[d];else if(d!==e&&d!==r){let c=d!==O.xAxisField&&d!==O.originalCategoryValue?`${l?.toString()}_${d}`:d;o[c]=u}}),i.set(s,{...i.get(s)??{},...o})}),Array.from(i.values())}function Hv(t,e){let{series:r}=t,a=r[0],{y:i}=a,n=X(t.series),s={y:n===C.BoxPlotMultiFieldsAndCategory?i:void 0,chartSubType:n},o=t.series.map(l=>{let d=ct({where:l.query?.where,normalize:!1,escape:!0});return d!==null&&`${d}`.startsWith("'")&&`${d}`.endsWith("'")&&(d=d.substring(1,d.length-1)),d});o.length===0&&o.push(" "),e.forEach(l=>{o.forEach(d=>{s.splitByValue=d;let u=Ue({...s,key:U.Min,showOutliers:!0}),c=Ue({...s,key:U.Min,showOutliers:!1}),f=Ue({...s,key:U.Max,showOutliers:!0}),p=Ue({...s,key:U.Max,showOutliers:!1});l[f]===void 0&&l[p]!==void 0&&(l[f]=l[p]),l[u]===void 0&&l[c]!==void 0&&(l[u]=l[c])})})}function Gv(t,e){let r,a,i=t[e[U.IQR]],n=t[e[U.FirstQuartile]],s=t[e[U.ThirdQuartile]];return Number.isFinite(i)&&Number.isFinite(n)&&Number.isFinite(s)&&(r=n-i*1.5,a=s+i*1.5),{outlierMinThreshold:r,outlierMaxThreshold:a}}function ap(t){let{yField:e,xField:r,xValue:a,splitByField:i,splitByValue:n,outlierMaxThreshold:s,outlierMinThreshold:o,target:l}=t,d;if(r!==void 0&&a!==void 0){let f=typeof a!="string"?a:`'${ao(a)}'`;d=`${r}=${f.toString()}`}let u;if(i!==void 0&&n!==void 0){let f=typeof n!="string"?n:`'${ao(n)}'`;u=`${i}=${f.toString()}`}let c;return l==="outliers"&&o!==s?c=`(${e}<${o} OR ${e}>${s})`:l==="alternativeData"&&(o===s?c=`(${e}=${o})`:c=`(${e}>=${o} AND ${e}<=${s})`),[d,u,c].filter(f=>f!==void 0).join(" AND ")}function Ap(t){let{data:e,yField:r,x:a,chartSubType:i,splitByField:n}=t,s=i===C.BoxPlotMonoField||i===C.BoxPlotMonoFieldAndCategory||i===C.BoxPlotMonoFieldAndSplitBy||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy?void 0:r,o=Ti(s),l=[],d=[],{maxOperandsPerWhereClause:u}=na(),c=[],f=[],p=1;return e.forEach((h,m)=>{let{outlierMinThreshold:y,outlierMaxThreshold:g}=Gv(h,o);if(typeof y=="number"&&typeof g=="number"){let v={yField:r,outlierMinThreshold:y,outlierMaxThreshold:g};(i===C.BoxPlotMonoFieldAndCategory||i===C.BoxPlotMultiFieldsAndCategory||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&a!==void 0&&a in h&&(v.xField=a,v.xValue=ea({value:h[a],dataContext:h,keepNullValues:!0})),(i===C.BoxPlotMonoFieldAndSplitBy||i===C.BoxPlotMultiFieldsAndSplitBy||i===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&n!==void 0&&n in h&&(v.splitByField=n,v.splitByValue=h[n]),c.push(ap({...v,target:"outliers"})),f.push(ap({...v,target:"alternativeData"})),(p%u===0||m===e.length-1)&&(l.push(ve(c,"OR")),d.push(ve(f,"OR")),c=[],f=[])}p+=1}),{outliersFilterBatches:l,dataWithoutOutliersFilterBatches:d}}function Qv(t){let{data:e,outlierDataItem:r,chartSubType:a,x:i,y:n,meanAndStdDevPerField:s,splitByField:o}=t,l=s?.[Pi(n,j.Average)],d=s?.[Pi(n,j.StandardDeviation)];if(l===void 0&&d===void 0)switch(a){case C.BoxPlotMultiFields:{let u=Ti(n),c=e[0];l=Number(c[u[U.Average]]),d=Number(c[u[U.StandardDeviation]]);break}case C.BoxPlotMultiFieldsAndCategory:{let u=e.find(c=>c[i]===r[i]);if(u!==void 0){let c=Ti(n);l=Number(u[c[U.Average]]),d=Number(u[c[U.StandardDeviation]])}break}case C.BoxPlotMultiFieldsAndSplitBy:{let u=e.find(c=>c[o]===r[o]);if(u!==void 0){let c=Ti(n);l=Number(u[c[U.Average]]),d=Number(u[c[U.StandardDeviation]])}break}}return{mean:l,stdDev:d}}async function Zv(t){let{seriesConfig:e,data:r,uniqueQuery:a,queryObject:i,meanAndStdDevPerField:n,abortKey:s}=t,o=X(e),l=e[0],{x:d}=l,u=Xe(l.query?.where),c=ue(i),f=Zt(c).idField,p=rt(e),h=[];for(let g=0;g<p.length;g+=1){let v=p[g],{outliersFilterBatches:w}=Ap({data:r,yField:v,x:d,chartSubType:o,splitByField:u});for(let x=0;x<w.length;x+=1){let F=w[x];if(F!==""){let A=[];d!==O.boxPlot.boxPlotCategory&&A.push(d),A.push(v),u!==""&&A.push(u),A.push(f);let q={...a,where:ve([a.where,F]),groupByFieldsForStatistics:void 0,outStatistics:void 0,orderByFields:void 0,num:void 0,outFields:A};h.push(Bt({queryObject:i,queryConfig:q,featureCount:1,abortKey:s}))}}}let m=await Promise.all(h),y=new Map;for(let g=0;g<m.length;g+=1){let v=m[g],w=p[g];v.forEach(x=>{let F={...x.attributes};if(F[w]!==void 0){d===O.boxPlot.boxPlotCategory&&(F[O.boxPlot.boxPlotCategory]=w);let A={key:U.Outlier,chartSubType:o};switch(o){case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:A={...A,splitByValue:F[u]};break;case C.BoxPlotMultiFieldsAndCategory:A={...A,y:w};break}let q=Ue(A),L=F[w];F[q]=L;let P=`${F[d]}-${F[u]}-${L}`,B=y.get(P);if(F[Be.uniqueIdsName]=[...B?.[Be.uniqueIdsName]??[],F[f]],delete F[f],sf(o)){let N=Ue({...A,standardizeValues:!0}),{mean:R,stdDev:$}=Qv({data:r,outlierDataItem:F,chartSubType:o,x:d,y:w,splitByField:u,meanAndStdDevPerField:n});R!==void 0&&$!==void 0&&(F[N]=oo({value:L,mean:R,stdDev:$}))}delete F[w],F[O.boxPlot.boxPlotOutlierId]=!0,y.set(P,F)}})}return Array.from(y.values())}async function Kv(t){let{data:e,queryObject:r,uniqueQuery:a,elementCount:i,chartConfig:n,chartLimits:s,abortKey:o}=t,l=[],{series:d,showMean:u}=n,c=An({showMean:u,seriesConfig:d}),f=X(d),p=Br(n),{x:h}=p,m=Xe(p.query?.where),y=[];for(let v=0;v<c.length;v+=1){let w=c[v],{dataWithoutOutliersFilterBatches:x}=Ap({data:e,yField:w,x:h,chartSubType:f,splitByField:m});for(let F=0;F<x.length;F+=1){let A=x[F],q={...a,where:ve([a.where,A])};q.outStatistics!==void 0&&(q.outStatistics=q.outStatistics?.filter(L=>(L.statisticType===j.Minimum||L.statisticType===j.Maximum)&&L.onStatisticField===w).map(L=>({...L,outStatisticFieldName:`${L.outStatisticFieldName}${O.boxPlot.boxPlotOutliersSuffix}`}))),y.push(In({queryObject:r,uniqueQuery:q,chartConfig:n,elementCount:i,isTimeBinningSeries:!1,showMean:u,chartLimits:s,abortKey:o}))}}let g=await Promise.all(y);for(let v=0;v<g.length;v+=1)l.push(...g[v]);return f!==C.BoxPlotMonoFieldAndCategoryAndSplitBy&&(l=ta({data:l,x:m!==void 0&&m!==""?m:h})),l}async function Jv(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,abortKey:i}=t,n,{series:s,showMean:o}=a,l=X(s);if(l===C.BoxPlotMultiFieldsAndCategory||l===C.BoxPlotMultiFieldsAndSplitBy){let d=An({showMean:o,seriesConfig:s}),u={...r};delete u.outStatistics,delete u.groupByFieldsForStatistics,delete u.orderByFields;let c=[];for(let p=0;p<d.length;p+=1){let h=d[p];c.push({statisticType:j.Average,onStatisticField:h,outStatisticFieldName:`${j.Average}_${h}`},{statisticType:j.StandardDeviation,onStatisticField:h,outStatisticFieldName:`${j.StandardDeviation}_${h}`})}u.outStatistics=c;let f=await Bt({queryObject:e,queryConfig:u,featureCount:1,abortKey:i});f.length>0&&(n=f[0].attributes)}return n}function Yv(t){let{data:e,additionalData:r,chartConfig:a}=t,i=a.series[0],{x:n}=i,s=Xe(i.query?.where);return e.map(o=>{let l=o,d=r.find(u=>u[n]===o[n]&&(s===""?!0:u[s]===o[s]));return d!==void 0&&(l={...o,...d}),l})}function Ep(t){let{chartConfig:e,data:r,calculateZScore:a=!1,meanAndStdDevPerField:i}=t,{series:n,showMean:s}=e,o=Br(e),l=X(e.series),{x:d}=o,u=An({showMean:s,seriesConfig:n}),c=r;if(r?.[0]!==void 0){let f=Xe(o.query?.where);switch(l){case C.BoxPlotMonoField:c[0][O.boxPlot.boxPlotCategory]=u[0];break;case C.BoxPlotMultiFields:c=Wv({data:r,yList:u,calculateZScore:a});break;case C.BoxPlotMonoFieldAndSplitBy:c=Vv({data:r,splitByField:f,y:u[0]});break;case C.BoxPlotMultiFieldsAndSplitBy:c=_v({splitByField:f,data:r,yList:u,meanAndStdDevPerField:i,calculateZScore:a});break;case C.BoxPlotMultiFieldsAndCategory:c=zv({data:r,yList:u,meanAndStdDevPerField:i,calculateZScore:a});break;case C.BoxPlotMonoFieldAndCategoryAndSplitBy:c=Uv({splitByField:f,x:d,data:r});break;case C.BoxPlotMonoFieldAndCategory:}}return Hv(e,c),c}async function Xv(t){let{data:e,queryObject:r,uniqueQuery:a,fetchFullBoxPlotData:i,chartConfig:n,elementCount:s,chartLimits:o,abortKey:l}=t,d=e,u=[];if(d!==void 0){let{series:c}=n,f=await Jv({queryObject:r,uniqueQuery:a,chartConfig:n,abortKey:l});if(i!==!1){u=await Zv({queryObject:r,uniqueQuery:a,seriesConfig:c,data:d,abortKey:l});let p=await Kv({queryObject:r,uniqueQuery:a,elementCount:s,data:e,chartConfig:n,chartLimits:o,abortKey:l});d=Yv({data:d,additionalData:p,chartConfig:n})}d=Ep({chartConfig:n,data:d,meanAndStdDevPerField:f,calculateZScore:!0})}return{dataItems:d,outliers:u}}function Lp(t){let{outTimeZone:e=Intl.DateTimeFormat().resolvedOptions().timeZone,dataTimeZone:r="UTC",runsOnClientQueryEngine:a}=t,i="",n=ae.now().setZone(e),s=n.offset/60,o=r?n.setZone(r).offset/60:0,l=s-o;if(l!==0)if(a)i=`${l>0?"+":"-"}1*INTERVAL '${Math.abs(l)}' HOUR `;else{let d=Math.abs(l%1),u=Math.round(d*60);l=Math.floor(l),i=l>0?`+INTERVAL '${Math.abs(l)}:${u!==0?u:"00"}:01' HOUR TO SECOND`:`-INTERVAL '${Math.abs(l)-(u!==0?0:1)}:${u!==0?String(u-1):"59"}:59' HOUR TO SECOND`}return i}function e0(t){let{dateFieldName:e,unit:r,runsOnClientQueryEngine:a}=t,i=Lp({runsOnClientQueryEngine:a}),n=`EXTRACT(YEAR FROM ${e} ${i})`,s=`EXTRACT(MONTH FROM ${e} ${i})`,o=`EXTRACT(DAY FROM ${e} ${i})`,l=`EXTRACT(HOUR FROM ${e} ${i})`,d=`EXTRACT(MINUTE FROM ${e} ${i})`,u=`EXTRACT(SECOND FROM ${e} ${i})`,c=[];switch(r){case G.Second:c=[n,s,o,l,d,u];break;case G.Minute:c=[n,s,o,l,d];break;case G.Hour:c=[n,s,o,l];break;case G.Day:case G.Week:case G.Month:case G.Year:c=[n,s,o];break}return c}function t0(t){let{whereValue:e,outStatistics:r,y:a}=t,i=Be.outStatistics.outStatisticFieldName??"";return r?.outStatisticFieldName!==void 0?i=r.outStatisticFieldName:r?.onStatisticField!==void 0&&r.statisticType!==void 0?i=`${r.statisticType}_${r.onStatisticField}_${e}`:a!==void 0&&(i=[a].flat()[0]),i}function r0(t){let e=new Map;for(let r=0;r<t.length;r+=1){let a=t[r],i=a.query?.where;if(i!==void 0&&"y"in a){let n=ct({where:i,normalize:!0,escape:!1});if(n!==""){let s=t0({whereValue:n,outStatistics:a.query?.outStatistics?.[0],y:a.y});a.y=s,e.set(n,s)}}}return e}function i0(t){let{uniqueQuery:e,splitByField:r,x:a}=t,i=[...e.groupByFieldsForStatistics??[],a,r].filter(n=>n!==void 0&&n.trim()!==""&&n!==Li);e.groupByFieldsForStatistics=Array.from(new Set(i))}function Dp(t){return t.statisticType===j.ContinuousPercentile||t.statisticType===j.DiscretePercentile}function a0(t){let{uniqueQuery:e,y:r,useGenericOutStatFieldName:a,queryObject:i,chartSubType:n,isTimeBinningSeries:s,returnFeaturesExtent:o,splitByField:l}=t,d=Be.outStatistics;if(e.outStatistics?.[0]!==void 0){n!==C.PieFromFields&&n!==C.BarAndLineFromFields&&(e.outStatistics[0].outStatisticFieldName=a?d.outStatisticFieldName:[r].flat()[0]);let{outStatistics:u}=e;for(let c=0;c<u.length;c+=1){let f=u[c];f!==void 0&&Dp(f)&&(s&&!ra(i)?(u[c].statisticType=j.Count,delete u[c].statisticParameters):u[c]={...u[c],statisticParameters:u[c].statisticParameters??{value:O.defaultStatParameterValue}})}}else if(i!==void 0){let u=ue(i),{idField:c,isTraditionalTypeOID:f}=Zt(u),p=f?c:"*";e.outStatistics=[{statisticType:d.statisticType,onStatisticField:p,outStatisticFieldName:a?d.outStatisticFieldName:[r].flat()[0]}]}o===!0&&(!s||Ee(l))&&e.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"})}function n0(t){let{chartConfig:e,fetchFullBoxPlotData:r}=t,{series:a}=e,i=Xi(e),n=[{statisticType:j.Average,suffix:U.Average}];r===!0&&(n=[...n,{statisticType:j.Minimum,suffix:U.Min},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.25},suffix:U.FirstQuartile},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.5},suffix:U.Median},{statisticType:j.ContinuousPercentile,statisticParameters:{value:.75},suffix:U.ThirdQuartile},{statisticType:j.Maximum,suffix:U.Max},{statisticType:j.StandardDeviation,suffix:U.StandardDeviation}]);let s=new Set;return i&&"y"in a[0]?[a[0].y].flat().forEach(o=>s.add(o)):a.forEach(o=>{"y"in o&&[o.y].flat().forEach(l=>s.add(l))}),[...s].flatMap(o=>n.map(l=>{let d={onStatisticField:o,statisticType:l.statisticType,outStatisticFieldName:`${o}_${l.suffix}`};return l.statisticType===j.ContinuousPercentile&&(d.statisticParameters=l.statisticParameters),d}))}function s0(t,e){for(let r=1;r<e.length;r+=1){let a={...e[r].query?.outStatistics?.[0]};a!==void 0&&t.outStatistics!==void 0&&t.outStatistics.push(a)}}function o0(t){let{uniqueQuery:e,x:r,splitByField:a,unit:i,chartSubType:n,objectIdFields:s,runsOnClientQueryEngine:o}=t;if(i!==void 0){let l=e0({dateFieldName:r,unit:i,runsOnClientQueryEngine:o});e.orderByFields=l,e.groupByFieldsForStatistics=l,n===C.BarAndLineSplitBy&&!Ee(a)?e.groupByFieldsForStatistics.push(a):n===C.BarAndLineNoAggregation&&(e.groupByFieldsForStatistics=s,e.outStatistics=[{onStatisticField:s.length>1?"*":s[0],outStatisticFieldName:`COUNT_${s[0]}`,statisticType:j.Count}])}}function Np(t){let{chartConfig:e,options:r,uniqueQuery:a}=t;if(r?.chartLimits?.behaviorAfterLimit===Lr.RenderUpToTheLimit){let i=Tp(e,r?.chartLimits);if(i!==void 0){let n=X(e.series);if(n===C.PieFromFields||n===C.BarAndLineFromFields){if(a.outStatistics?.[0]!==void 0){let s=(d,u)=>d.statisticType===j.EnvelopeAggregate===u,o=a.outStatistics.filter(d=>s(d,!0)),l=a.outStatistics.filter(d=>s(d,!1));l.splice(i),a.outStatistics=[...l,...o]}}else a.num=i}}}async function mo(t){let{chartConfig:e,queryConfig:r,options:a,queryObject:i,timeIntervalInfo:n,fetchFullBoxPlotData:s}=t,{setTimeBinningInfoWhenNotProvided:o,returnFeaturesExtent:l}=a??{},d=e.series,u=X(d),c=Br(e),{query:f,x:p}=c,h="y"in c?c.y:void 0,m=ei({xAxisValueFormatType:dr(e),setTimeBinningInfoWhenNotProvided:o,seriesConfig:c}),y=new Map,g=!1,v=!1,w=!1,x=!1,F=!1,A={};if(f!==void 0){A=jr(f);let k=Xe(f.where),Q="";switch(r.fetchNullValues!==!0&&(p!==O.boxPlot.boxPlotCategory&&(Q=`${p} IS NOT NULL`),k.trim()!==""&&k!==p&&!sr(f.where)&&(Q=ve([Q,`${k} IS NOT NULL`]))),u){case C.BarAndLineSplitBy:{y=r0(d),x=!0,g=!0,v=!0;break}case C.BarAndLineMultiFields:s0(A,d),v=!0;break;case C.PieFromFields:case C.BarAndLineFromFields:Q="",w=!0,v=!0;break;case C.BarAndLineMonoField:case C.PieFromCategory:v=!0;break;case C.BoxPlotMonoField:case C.BoxPlotMultiFields:w=!0,F=!0;break;case C.BoxPlotMonoFieldAndCategory:case C.BoxPlotMultiFieldsAndCategory:case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:{F=!0,x=!0,w=!0;break}case C.PieNoAggregation:case C.BarAndLineNoAggregation:case C.BarAndLineSplitByNoAggregation:}if(v&&a0({uniqueQuery:A,y:h,useGenericOutStatFieldName:g,queryObject:i,chartSubType:u,isTimeBinningSeries:m,returnFeaturesExtent:l,splitByField:k}),x&&i0({uniqueQuery:A,splitByField:k,x:p}),dt(e)&&F&&(A.outStatistics=n0({chartConfig:e,fetchFullBoxPlotData:s})),w?delete A.orderByFields:r.orderByFields!==void 0&&(A.orderByFields=r.orderByFields.filter(H=>{let V=H.split(" ");return!Ee(V[0])})),m&&Vt(d[0])){let H=ue(i),{idFields:V}=Pn(H);(await pt(i)).find(Z=>Z.name===p)?.type!==Ie.DateOnly&&V&&o0({uniqueQuery:A,x:p,splitByField:Xe(f.where),unit:n?.unit??d[0].temporalBinning?.unit,chartSubType:u,objectIdFields:V,runsOnClientQueryEngine:Er(i)})}A.where=Q}Np({chartConfig:e,options:a,uniqueQuery:A});let{gdbVersion:q,geometry:L,distance:P,units:B,timeExtent:N,where:R,objectIds:$,spatialRelationship:E}=r;return q!==void 0&&(A.gdbVersion=q),L!==void 0&&(A.geometry=L),P!==void 0&&(A.distance=P),B!==void 0&&(A.units=B),N!==void 0&&(A.timeExtent=N),$!==void 0&&(A.objectIds=$),E!==void 0&&(A.spatialRelationship=E),R!==void 0&&(A.where=ve([A.where,R])),{uniqueQuery:A,mapToStatField:y}}async function l0(t){let{queryObject:e,queryConfig:r,chartConfig:a,abortKey:i}=t,n=a.series[0],{x:s,valueConversion:o}=n,l=Fo(a),d=await Bt({queryObject:e,queryConfig:r,featureCount:r.num??1,abortKey:i}),u=[{[s]:null}];if(l)u=d.map(c=>{go(c.attributes,s);let f=rp(c.attributes[s],o);return{...c.attributes,[s]:f}});else if(d.length>0){let c=d[0].attributes[s]??d[0].attributes[s.toUpperCase()]??d[0].attributes[s.toLowerCase()];c=rp(c,o),u=[{[s]:c}]}return u}async function d0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:n}=t,{chartLimits:s}=i??{},o={valid:!0};if(e!==void 0){let{behaviorAfterLimit:l,maxGaugeByFeaturesLimit:d}=s??{},u=Fo(r),c=!0,f;if(u&&(f=(await Qp({chartConfig:r,queryObject:e,queryConfig:a,behaviorAfterLimit:l,numberMaxOfFeaturesToFetch:d,isGaugeByFeature:u})).elementCount,i?.chartLimits?.behaviorAfterLimit!==Lr.RenderUpToTheLimit&&(c=nr({count:f??0,seriesCount:r.series.length,chartType:b.GaugeSeries,chartLimits:s})),i&&(Number.isFinite(d)||Number.isFinite(f)))){let p=Math.min(d??Number.NaN,f??Number.NaN);Number.isFinite(p)&&(i.chartLimits={...s,maxGaugeByFeaturesLimit:p}),Np({chartConfig:r,options:i,uniqueQuery:a})}if(Number.isNaN(c)||c){let p=await l0({queryObject:e,chartConfig:r,queryConfig:a,abortKey:n});o.data={dataItems:p},o.count=p.length}else o.count=f,wn({dataInfo:o,chartType:b.GaugeSeries})}return o}async function LT(t){let{queryObject:e,chartConfig:r,queryConfig:a}=t,{minimumFromField:i,maximumFromField:n}=r.axes[0],s=[],o="",l="";i!==void 0&&(typeof i=="string"?(o=`${j.Minimum}_${i}`,s.push({statisticType:j.Minimum,onStatisticField:i,outStatisticFieldName:o})):(o=`${i.statisticType}_${i.onStatisticField}`,s.push({...i,outStatisticFieldName:o}))),n!==void 0&&(typeof n=="string"?(l=`${j.Maximum}_${n}`,s.push({statisticType:j.Maximum,onStatisticField:n,outStatisticFieldName:l})):(l=`${n.statisticType}_${n.onStatisticField}`,s.push({...n,outStatisticFieldName:l})));let d={...a,outStatistics:s,orderByFields:void 0,groupByFieldsForStatistics:void 0,returnDistinctValues:void 0,fetchNullValues:void 0,num:void 0},u=await oa({queryObject:e,queryConfig:d}),c=u.get(o),f=u.get(l);return{minimumFromData:c,maximumFromData:f}}function u0(t=Ge.None,e){return t===Ge.None||t===Ge.Log&&e>0||t===Ge.Sqrt&&e>=0}function Bp(t,e){let r={valid:!1};return e===!0?r.invalidType=oe.HistogramEmptyField:t===Ge.Log?r.invalidType=oe.NegativeValueInLogCalculation:t===Ge.Sqrt&&(r.invalidType=oe.NegativeValueInSqrtCalculation),r}function c0(t,e){let r=t;switch(e){case Ge.Log:r=Math.log(t);break;case Ge.Sqrt:r=Math.sqrt(t);break}return r}function p0(t){let e=t;if(t){let r=t.toString().split(".");if(r[1]!==void 0){let a=10**-r[1].length;e=t-a}}return e}function Mp(t){let e="field";switch(t){case Ge.Log:e="natural-log";break;case Ge.Sqrt:e="square-root";break;case Ge.None:}return e}async function f0(t){let{queryObject:e,fieldName:r,queryConfig:a,abortKey:i}=t,n=ue(e),{idField:s,isTraditionalTypeOID:o}=Zt(n),l=o?s:"*",d=`${j.Count}_${s}`,u=`${j.Count}_${r}`,c=`${j.Minimum}_${r}`,f=`${j.Maximum}_${r}`,p={...a,outStatistics:[{statisticType:j.Count,onStatisticField:l,outStatisticFieldName:d},{statisticType:j.Count,onStatisticField:r,outStatisticFieldName:u},{statisticType:j.Minimum,onStatisticField:r,outStatisticFieldName:c},{statisticType:j.Maximum,onStatisticField:r,outStatisticFieldName:f}]},h=await oa({queryObject:e,queryConfig:p,abortKey:i}),m=h.get(d)??Number.NaN,y=h.get(u)??Number.NaN,g=h.get(c)??Number.NaN,v=h.get(f)??Number.NaN;return{countExcludingNulls:y,countIncludingNulls:m,min:g,max:v}}async function h0(t){let{queryConfig:e,chartConfig:r,queryObject:a,abortKey:i}=t,n=r.series[0],{x:s,dataTransformationType:o}=n,l=[],{countIncludingNulls:d,countExcludingNulls:u,min:c,max:f}=await f0({queryObject:a,queryConfig:e,fieldName:s,abortKey:i}),p=u0(o,c),h=u<2||c===f,m={...e};return m.where=ve([m.where,`${s} is not null`]),{rawData:l,dataCompatibleWithTransformation:p,dataCountIncompatible:h,countExcludingNulls:u,countIncludingNulls:d}}function m0(t){let e={...t};return e.avg=e.avg??Number.NaN,e.count=e.count??Number.NaN,e.max=e.max??Number.NaN,e.min=e.min??Number.NaN,e.stddev=e.stddev??Number.NaN,e.sum=e.sum??Number.NaN,e.variance=e.variance??Number.NaN,e.median=e.median??Number.NaN,e}function y0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,queryConfig:n}=t,{x:s,dataTransformationType:o}=e,l={layer:r,view:i,field:s,sqlWhere:sr(n.where)?void 0:n.where,useFeaturesInView:a};return o!==Ge.None&&(l={...l,normalizationType:Mp(o)}),l}function g0(t){let{seriesConfig:e,layer:r,useFeaturesInView:a,view:i,minValue:n,maxValue:s,queryConfig:o}=t,{x:l,binCount:d,dataTransformationType:u}=e,c={layer:r,view:i,field:l,minValue:n,maxValue:s,numBins:d??Ib,classificationMethod:"equal-interval",sqlWhere:sr(o.where)?void 0:o.where,useFeaturesInView:a};return u!==Ge.None&&(c={...c,normalizationType:Mp(u)}),c}function b0(t,e){let r=Number.NaN;return t!==void 0&&e!==void 0&&(r=t-e),r}async function v0(t){let{chartConfig:e,queryConfig:r,queryObject:a,countExcludingNulls:i,countIncludingNulls:n,options:s,errorStrings:o}=t,l=e.series[0],{dataTransformationType:d}=l,u={valid:!0};if(a!==void 0){let c=ue(a),f=So(r?.geometry)?.extent?.toJSON()!==void 0,p=s?.view,h=y0({seriesConfig:l,layer:c,view:p,useFeaturesInView:f,queryConfig:r}),m;if(p!==void 0&&(m=new Jc({geometry:p.extent}),p.extent!==void 0&&Yp(c))){let{distance:L,units:P}=r;L!==void 0&&(m.distance=L),P!==void 0&&(m.units=P)}if(r.timeExtent){let L={start:r.timeExtent[0],end:r.timeExtent[1]};m===void 0?m=new Jc({timeExtent:L}):m.timeExtent=L}h.filter=m;let y;h.outStatisticTypes={exclude:["median"]};try{y=await Yc(h)}catch(L){throw new ut(Ct.QueryFeaturesError,o.errors.queryError,L)}h.outStatisticTypes={include:["median"]};try{let L=await Yc(h);L?.median&&(y.median=L.median)}catch{}y=m0(y);let{avg:g,count:v,stddev:w,min:x,max:F,sum:A,median:q}=y;if(v===0)u={...Bp(d)};else{let L=g0({seriesConfig:l,layer:c,view:p,useFeaturesInView:f,minValue:p0(x),maxValue:F,valueExpression:h.valueExpression,queryConfig:r});L.filter=m;let P;try{P=await ab(L)}catch(N){throw new ut(Ct.QueryFeaturesError,o.errors.queryError,N)}let B=b0(n,i);u.data={mean:g,stddev:w,min:x,max:F,median:Number(q),bins:P?.bins,count:i,nulls:B,sum:A??void 0},u.data.bins.length>0&&(u.data.bins[u.data.bins.length-1].isLastBin=!0)}}return u}async function $p(t){let{chartConfig:e,queryConfig:r,queryObject:a,options:i,abortKey:n,errorStrings:s}=t,{series:o}=e,l=o[0],{rawData:d,dataCompatibleWithTransformation:u,dataCountIncompatible:c,countIncludingNulls:f,countExcludingNulls:p}=await h0({queryObject:a,chartConfig:e,queryConfig:r,abortKey:n}),h={valid:!0};return!u||c?h=Bp(l.dataTransformationType,c):h=await v0({chartConfig:e,queryObject:a,queryConfig:r,countIncludingNulls:f,countExcludingNulls:p,options:i,errorStrings:s}),h}async function S0(t){let{queryObject:e,queryConfig:r,chartConfig:a,x:i}=t,{series:n}=a,{dataTransformationType:s}=n[0],o={...r,orderByFields:[i],outFields:[i]};return{valid:!0,data:{dataItems:(await Bt({queryObject:e,queryConfig:o})).map(l=>({[i]:c0(l.attributes[i],s)}))}}}var Jr={groupByCaseBegin:"CASE",groupByOutKeyword:"OUT",groupByCaseEnd:"ELSE 'OUT' END"},w0="{ groupByFieldsForStatistics } WHEN ({ y } { yMinOperand } { yValue } AND { y } { yMaxOperand } { yValuePlusStep } AND { x } { xMinOperand } { xValue } AND { x } { xMaxOperand } { xValuePlusStep }) THEN '{ xValue }|{ xValuePlusStep}|{ yValue }|{ yValuePlusStep }'";async function C0(t){let{chartConfig:e,queryObject:r,queryConfig:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,{dataContextCountDistinctX:l,dataContextCountDistinctY:d}=O.scatterplotAggregationFields,u={...a,outStatistics:[{statisticType:j.Count,outStatisticFieldName:l,onStatisticField:s},{statisticType:j.Count,outStatisticFieldName:d,onStatisticField:o}],returnDistinctValues:!0};return await oa({queryObject:r,queryConfig:u,abortKey:i})}async function x0(t){let{statsMap:e,chartConfig:r,queryObject:a,options:i,queryConfig:n,abortKey:s}=t,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:u,dataContextCountDistinctX:c,dataContextCountDistinctY:f}=O.scatterplotAggregationFields,p,h,m,y,g,v=e.get(o),w=e.get(l),x=e.get(d),F=e.get(u);if(v!=null&&x!==void 0&&x!==null&&w!==void 0&&w!==null&&F!==void 0&&F!==null&&!Number.isNaN(v+w+x+F)){let{maxScatterPointsAfterAggregation:A}=Xr(i?.chartLimits),q=Math.floor(Math.sqrt(A)),L=await C0({queryObject:a,chartConfig:r,queryConfig:n,abortKey:s});m=Math.min(L.get(f)??Number.NaN,q),y=Math.min(L.get(c)??Number.NaN,q),g=y*m,p=w===v?0:(w-v)/(y-1),h=F===x?0:(F-x)/(m-1),e.set(O.scatterplotAggregationFields.xStep,p),e.set(O.scatterplotAggregationFields.yStep,h),e.set(O.scatterplotAggregationFields.rowCount,m),e.set(O.scatterplotAggregationFields.columnCount,y),e.set(O.scatterplotAggregationFields.realGridSize,g)}}function T0(t){let{groupByFieldsForStatistics:e,x:r,y:a,xValue:i,yValue:n,xStep:s,yStep:o,endOfRow:l,endOfColumn:d}=t,u=e===""?Jr.groupByCaseBegin:e;return u=qe(w0,{groupByFieldsForStatistics:u,x:r,y:a,xValue:`${i}`,yValue:`${n}`,xValuePlusStep:`${i+(d?0:s)}`,yValuePlusStep:`${n+(l?0:o)}`,xMinOperand:d?"=":">=",yMinOperand:l?"=":">=",xMaxOperand:d?"=":"<",yMaxOperand:l?"=":"<"}),u}async function F0(t){let{chartConfig:e,queryConfig:r,queryObject:a,xMin:i,xMax:n,yMin:s,yMax:o,abortKey:l}=t,d=e.series[0],{x:u,y:c}=d,f={...r};return f.where=ve([f.where,`${u}>=${i}`,`${u}<=${n}`]),u!==c&&(f.where=ve([f.where,`${c}>=${s}`,`${c}<=${o}`])),await Bt({queryObject:a,queryConfig:f,noBatch:!0,featureCount:1,abortKey:l})}async function I0(t){let{statsMap:e,chartConfig:r,queryObject:a,queryConfig:i,useQueryAttributeBins:n,errorStrings:s,abortKey:o}=t,l=r.series[0],{x:d,y:u}=l,{dataContextXMinField:c,dataContextXMaxField:f,dataContextYMinField:p,dataContextYMaxField:h,queryNumberOfFeatures:m,queryNumberOfAggregatedFeatures:y}=O.scatterplotAggregationFields,g,v=e?.get(c)??Number.NaN,w=e?.get(f)??Number.NaN,x=e?.get(m)??Number.NaN,F=e?.get(p)??v,A=e?.get(h)??w;if(v!=null&&F!==void 0&&F!==null&&w!==void 0&&w!==null&&A!==void 0&&A!==null&&!Number.isNaN(v+w+F+A)){let q=ue(a),{idField:L,isTraditionalTypeOID:P}=Zt(q),B=P?L:"*",N=e?.get(O.scatterplotAggregationFields.xStep),R=e?.get(O.scatterplotAggregationFields.yStep),$=e?.get(O.scatterplotAggregationFields.realGridSize),E=e?.get(O.scatterplotAggregationFields.rowCount),k=e?.get(O.scatterplotAggregationFields.columnCount),Q=new Map,H=await pt(a);if(H?.forEach(V=>{Ai(V)&&Q.set(V.name,{onStatisticField:V.name,outStatisticFieldName:V.name,statisticType:j.Maximum})}),(H.filter(V=>l?.additionalTooltipFields?.includes(V.name))??[])?.forEach(V=>{Ai(V)||Q.set(V.name,{onStatisticField:V.name,outStatisticFieldName:V.name,statisticType:j.Maximum})}),(await af(q)).forEach(V=>{Q.set(V,{onStatisticField:V,outStatisticFieldName:V,statisticType:j.Maximum})}),L!==""&&Q.set(L,{onStatisticField:B,outStatisticFieldName:y,statisticType:j.Count}),Q.set(d,{onStatisticField:d,outStatisticFieldName:d,statisticType:j.Maximum}).set(u,{onStatisticField:u,outStatisticFieldName:u,statisticType:j.Maximum}),N!==void 0&&R!==void 0){if(n){let V={...i,outStatistics:[...Q.values()]};g=await YS({queryObject:a,queryConfig:V,xStep:N,xMin:v,xMax:w,x:d,y:u,yStep:R,errorStrings:s})}else if(E!==void 0&&k!==void 0){let V=0,{maxScatterCellsPerQuery:Z,maxScatterCellsPerQueryForStandard:z}=na(),ne=await Sw(q)?z:Z,Re=[],_e=!0,te=v,ge=F,Te="",ke=1,xt=1,it=Number.MAX_SAFE_INTEGER,Fe=Number.MIN_SAFE_INTEGER,Se=Number.MAX_SAFE_INTEGER,Tt=Number.MIN_SAFE_INTEGER;for(;xt<=k&&_e;){for(ge=F,ke=1;ke<=E&&_e;){if(Te=T0({groupByFieldsForStatistics:Te,x:d,y:u,xValue:te,yValue:ge,xStep:N,yStep:R,endOfRow:ke===E,endOfColumn:xt===k}),te<it&&(it=te),te+N>Fe&&(Fe=te+N),ge<Se&&(Se=ge),ge+N>Tt&&(Tt=ge+R),V+=1,V%ne===0||V===$||V===x){Te=`${Te} ${Jr.groupByCaseEnd}`;let He={...i,groupByFieldsForStatistics:[Te],outStatistics:[...Q.values()]};Re.push(F0({chartConfig:r,queryConfig:He,queryObject:a,xMin:it,xMax:Fe,yMin:Se,yMax:Tt,abortKey:o})),it=Number.MAX_SAFE_INTEGER,Fe=Number.MIN_SAFE_INTEGER,Se=Number.MAX_SAFE_INTEGER,Tt=Number.MIN_SAFE_INTEGER,Te="",V===$&&(_e=!1)}ge+=R,ke+=1}te+=N,xt+=1}g=(await Promise.all(Re)).flat()}}}return g}var O0={dataFormat:"json",outputFormat:"json",typeKey:"analyticType",typeValue:"LinRegR2",fieldValue:"onAnalyticField",slopePropertyList:["Slope","SLOPE","slope"],interceptPropertyList:["Intercept","INTERCEPT","intercept"],r2PropertyList:["R2","r2"]};async function P0(t){let{queryObject:e}=t,r=!1,a=zS(e),i=ue(e),n=et(i);if(a&&n.url!==void 0&&n.url!==null){let s=`${n.url}/${n.layerId}?f=json`;try{let o=(await bn(s)).data,l=o?.advancedQueryCapabilities?.supportsQueryAnalytic===!0,d=o?.sqlParserVersion===void 0||n.version!=null&&n.version>=10.91;r=l&&d}catch{}}return r}function A0(t){let{x:e,y:r,trendlineXToY:a,data:i}=t,[n,s]=i?Si(i,o=>o[e]):[Number.NaN,Number.NaN];return[{[e]:n??Number.NaN,[r]:a(n??Number.NaN)},{[e]:s??Number.NaN,[r]:a(s??Number.NaN)}]}function E0(t){let{data:e,x:r,y:a}=t,i=[];return e!==void 0&&(i=e.filter(n=>Number.isFinite(n[r])&&Number.isFinite(n[a])).map(n=>[n[r],n[a]])),i}async function L0(t){let{statsMap:e,queryObject:r,chartConfig:a,queryConfig:i}=t,n=a.series[0],{x:s,y:o}=n,l=Number.NaN,d=[{[s]:Number.NaN,[o]:Number.NaN},{[s]:Number.NaN,[o]:Number.NaN}],{dataFormat:u,outputFormat:c,typeKey:f,typeValue:p,fieldValue:h,slopePropertyList:m,interceptPropertyList:y,r2PropertyList:g}=O0,v=`[{"${f}": "${p}", "${h}":"${s},${o}"}]`,w=await ZS({queryObject:r,queryConfig:i,outputFormat:c,dataFormat:u,outAnalytics:v});if(w!==void 0){let x=Number.NaN,F=Number.NaN,{expr:A}=gn(w,m),{expr:q}=gn(w,y),{expr:L}=gn(w,g);A!==void 0&&Number.isFinite(w[A])&&(x=w[A]),q!==void 0&&Number.isFinite(w[q])&&(F=w[q]),L!==void 0&&Number.isFinite(w[L])&&(l=w[L]);let{dataContextXMinField:P,dataContextXMaxField:B,dataContextYMinField:N,dataContextYMaxField:R}=O.scatterplotAggregationFields,$=e.get(P)??Number.NaN,E=e.get(B)??Number.NaN,k=e.get(N)??Number.NaN,Q=e.get(R)??Number.NaN,H=(E-$)/100,V=$-H,Z=Number.NaN;for(;!(Z>=k&&Z<=Q)&&V<=E;)V+=H,Z=x*V+F;let z=E+H,ne=Number.NaN;for(;!(ne>=k&&ne<=Q)&&z>=$;)z-=H,ne=x*z+F;d=[{[s]:V,[o]:Z},{[s]:z,[o]:ne}]}return{r2:l,trendLinePoints:d}}function qp(t){let{data:e,chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s,trendLinePoints:o}=O.scatterplotSeries,l=E0({data:e,x:i,y:n});if(l!==void 0){let d=Vd(l),u=_d(d);s=d.m===0?0:zd(l,u),o=A0({x:i,y:n,trendlineXToY:u,data:e})}return{r2:s,trendLinePoints:o}}async function D0(t){let e=await P0(t),{chartConfig:r}=t,a=r.series[0],{x:i,y:n}=a,{r2:s}=O.scatterplotSeries,o=[{[i]:Number.NaN,[n]:Number.NaN},{[i]:Number.NaN,[n]:Number.NaN}],l={r2:s,trendLinePoints:o},d=!1;if(e)try{l=await L0(t)}catch{d=!0}return(!e||d)&&(l=qp(t)),l}async function N0(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i}=t,n=e.series[0],{x:s,y:o}=n,l=new Map,{dataContextXMinField:d,dataContextXMaxField:u,dataContextYMinField:c,dataContextYMaxField:f,queryNumberOfFeatures:p}=O.scatterplotAggregationFields,{idField:h,isTraditionalTypeOID:m}=Zt(ue(a)),y=m?h:"*",g=[{statisticType:j.Count,onStatisticField:y,outStatisticFieldName:p},{statisticType:j.Minimum,outStatisticFieldName:d,onStatisticField:s},{statisticType:j.Maximum,outStatisticFieldName:u,onStatisticField:s}];s!==o&&g.push({statisticType:j.Minimum,outStatisticFieldName:c,onStatisticField:o},{statisticType:j.Maximum,outStatisticFieldName:f,onStatisticField:o});let v={...r};return v.outStatistics=g,l=await oa({queryObject:a,queryConfig:v,abortKey:i}),s===o&&(l.set(c,l.get(d)??Number.NaN),l.set(f,l.get(u)??Number.NaN)),l}function hn(t){let{value:e,valueMin:r,valueMax:a}=t;return e===r||e===a?e:Math.random()*(a-r)+r}function B0(t){let{useQueryAttributeBins:e,graphic:r,x:a,y:i,yStep:n}=t,{groupByOutKeyword:s}=Jr,{dataContextXMinField:o,dataContextXMaxField:l,dataContextYMinField:d,dataContextYMaxField:u}=O.scatterplotAggregationFields,c=[];if(e&&"stackedAttributes"in r&&r.stackedAttributes){let f=Xp(a,i),p=r.attributes[f.lowerBoundaryAlias],h=r.attributes[f.upperBoundaryAlias];r.stackedAttributes.forEach(m=>{let y=m[f.stackAlias],g;typeof y=="number"&&typeof n=="number"&&(y*=n),typeof y=="number"&&typeof n=="number"&&(g=y+n);let v=m[a],w=m[i];typeof y=="number"&&typeof g=="number"&&typeof v=="number"&&typeof w=="number"&&c.push({...m,[a]:hn({value:v,valueMin:p,valueMax:h}),[i]:hn({value:w,valueMin:y,valueMax:g}),[o]:Math.min(p,h),[l]:Math.max(p,h),[d]:y,[u]:g})})}else{let{expr:f,isInItem:p}=Fn(r.attributes);if(p&&f&&r.attributes[f]!==s){let[h,m,y,g]=r.attributes[f].split("|");h=Math.min(h,m),m=Math.max(h,m),y=Math.min(y,g),g=Math.max(y,g);let v={...r.attributes,[o]:h,[l]:m,[d]:y,[u]:g};v[a]=hn({value:v[a],valueMin:h,valueMax:m}),v[i]=hn({value:v[i],valueMin:y,valueMax:g}),c=[v]}}return c}function M0(t){let{chartConfig:e,rawData:r,isAggregationMode:a,yStep:i,useQueryAttributeBins:n}=t,s=e.series[0],{x:o,y:l}=s,d=(Array.isArray(r)?r:r?.features)?.flatMap(u=>{let c=[{...u.attributes}];return go(c[0],[o,l]),a?c=B0({useQueryAttributeBins:n,graphic:u,x:o,y:l,yStep:i}):c[0][Be.uniqueIdsName]=u.getObjectId(),c});return d=d?.filter(u=>{let{expr:c}=Fn(u);return Number.isFinite(u[o])&&Number.isFinite(u[l])&&(c===void 0||u[c]!==Jr.groupByOutKeyword)}),d??[]}async function $0(t){let{queryObject:e,queryConfig:r,chartConfig:a,featureCount:i,abortKey:n}=t,s=a.series[0],{x:o,y:l}=s,d=ue(e),u=[],c=await pt(e),f=Pn(d).idFields,p=(c?.filter(g=>Ai(g)&&g.name!==o&&g.name!==l)??[]).map(g=>g.name)??[],h=s?.additionalTooltipFields??[],m=Array.from(new Set([o,l,...f??[],...p,...h]));if(!et(d).isTable){let{rendererField:g,rendererNormalizationField:v}=hw(d?.renderer??void 0);Ee(g)||m.push(g),Ee(v)||m.push(v)}let y={...r,orderByFields:[`${o} ${ze.Ascending}`],outFields:m};return u=await Bt({queryObject:e,queryConfig:y,featureCount:i,abortKey:n}),u}async function q0(t){let e,{chartConfig:r,queryConfig:a,queryObject:i,statsMap:n,numberOfFeatures:s,isAggregationMode:o,useQueryAttributeBins:l,errorStrings:d,abortKey:u}=t,c=r.series[0],{x:f,y:p}=c;if(!Number.isNaN(s)&&s>0){let h={...a};h.where=ve([h.where,`${f} IS NOT NULL`,`${p} IS NOT NULL`]),o?e=await I0({chartConfig:r,queryObject:i,queryConfig:h,statsMap:n,useQueryAttributeBins:l,errorStrings:d,abortKey:u}):e=await $0({queryObject:i,chartConfig:r,queryConfig:h,featureCount:s,abortKey:u})}return e}async function Rp(t){let{chartConfig:e,queryConfig:r,queryObject:a,sortData:i,calculateTrendLine:n,options:s,abortKey:o}=t,l=await N0({chartConfig:e,queryConfig:r,queryObject:a,abortKey:o}),{queryNumberOfFeatures:d,yStep:u}=O.scatterplotAggregationFields,{maxScatterPointsBeforeAggregation:c}=Xr(s?.chartLimits),f=l?.get(d)??Number.NaN,p=f>=c,h=HS(a);p&&await x0({statsMap:l,chartConfig:e,queryObject:a,options:s,queryConfig:r,abortKey:o});let m=await q0({...t,statsMap:l,numberOfFeatures:f,isAggregationMode:p,useQueryAttributeBins:h}),y=M0({chartConfig:e,rawData:m,isAggregationMode:p,yStep:l.get(u),useQueryAttributeBins:h});i!==!1&&vn({arrayToSort:y,sortingField:e.series[0].x,orderBy:ze.Ascending});let{r2:g,trendLinePoints:v}=n!==!1?await D0({data:y,statsMap:l,queryConfig:r,options:s,queryObject:a,chartConfig:e}):O.scatterplotSeries;return{dataItems:y,r2:g,trendLinePoints:v,aggregated:p}}function R0(t){let{itemsA:e,itemsB:r,isPieFromFields:a,x:i,y:n,outStatisticFieldName:s}=t,o=jr(e),l=jr(r),d=!1;if(o===void 0&&l!==void 0||o!==void 0&&l===void 0)d=!0;else if(!a){let u=[O.originalCategoryValue,O.originalYCategoryValue,O.originalDateValue,O.xAxisField,O.technicalSortingFieldBySum,O.technicalSortingFieldByPercent,O.pieChart.technicalFieldSlicePercent,O.pieChart.technicalFieldGroupedSlices,O.pieChart.technicalFieldSliceId,O.originalServerBinningRange,O.lastTemporalBin,O.technicalFieldSplitByField,Be.uniqueIdsName,re.valueField,...yp],c=(m,y)=>{let g=y[O.originalCategoryValue];g!==void 0&&i&&(y[i]=g);let v=y[O.originalYCategoryValue];v!==void 0&&n&&(y[n]=v),i&&y[re.xField]!==void 0&&(y[i]=y[O.originalCategoryValue]!==void 0?y[O.originalCategoryValue]:y[re.xField],delete y[re.xField]),n&&y[re.yField]!==void 0&&(y[n]=y[O.originalYCategoryValue]!==void 0?y[O.originalYCategoryValue]:y[re.yField],delete y[re.yField]),s&&y[re.valueField]!==void 0&&(y[s]=y[re.valueField],delete y[re.valueField]);let w={};return Object.keys(y).forEach(x=>{!u.includes(x)&&!x.includes(O.rendererSymbolField)&&(w[x]=y[x])}),m.push(w),m},f=(m,y)=>JSON.stringify(m).localeCompare(JSON.stringify(y)),p=o?.reduce(c,[])?.sort(f),h=l?.reduce(c,[])?.sort(f);p&&h&&i&&p.length!==h.length&&(p=ta({data:p,x:i}),h=ta({data:h,x:i})),d=p?.length!==h?.length||!er(p,h)}return d}function k0(t){let{chartConfig:e,currentSelectionDataItems:r,options:a}=t,{selectionData:i}=a??{},n=[];if(e!==void 0){let s=e.series,o=X(s),{selectionItems:l}=i??{};if(l!==void 0&&R0({itemsA:l,itemsB:r,isPieFromFields:X(e.series)===C.PieFromFields,x:e.series[0].x,y:"y"in e.series[0]?e.series[0].y.toString():void 0,outStatisticFieldName:e.series[0].query?.outStatistics?.[0]?.outStatisticFieldName})?n=l:n=r??[],s.length>1&&o!==C.BarAndLineNoAggregation&&o!==C.BarAndLineSplitByNoAggregation){let d=Xe(s[0].query?.where);n=ta({data:n,x:s[0].x,splitByField:d})}sa({arrayToSort:n,chartConfig:e})}return n??[]}function Pr(t,e){let r="";if(t.trim()!==""&&e!==void 0)if(e===null)r=`${t} IS NULL`;else{let a=typeof e!="number"?"'":"";r=`${t}=${a}${e.toString()}${a}`}return r}function j0(t){let{dataContext:e,xAxisField:r,yAxisField:a,options:i}=t,n="",{dataContextXMinField:s,dataContextXMaxField:o,dataContextYMinField:l,dataContextYMaxField:d}=O.scatterplotAggregationFields;if(xp({dataContext:e,chartLimits:i?.chartLimits})){let{[s]:u,[o]:c}=e,f=r!==a?e[l]:u,p=r!==a?e[d]:c;if(!Number.isNaN(u)&&!Number.isNaN(c)&&!Number.isNaN(f)&&!Number.isNaN(p)){let h=[];u===c?h.push(`${r}=${u?.toString()}`):(h.push(`${r}>=${u?.toString()}`),h.push(`${r}<=${c?.toString()}`)),f===p?h.push(`${a}=${f?.toString()}`):(h.push(`${a}>=${f?.toString()}`),h.push(`${a}<=${p?.toString()}`)),n=ve(h)}}else n=ve([or({where:Pr(r,e[r])}),a!==void 0?or({where:Pr(a,e[a])}):""]);return n}function kp(t,e){let r="",a=e[O.originalServerBinningRange]??e[O.dateBinningRange];if(pa(a)&&a.length===2){let[i,n]=a,s=!0;if(typeof i=="number"&&typeof n=="number"&&(Number.isFinite(i)&&Number.isFinite(n)?(i=Oi(i),n=Oi(n)):s=!1),s){let o=e[O.lastTemporalBin]===!0?"<=":"<";r=`${t}>='${i}' AND ${t}${o}'${n}'`}}return r}function jp(t,e){let r="";if(Number.isFinite(t)){let a=1/10**O.queryMaxFloatPrecision;r=`${e}>=${t-a} AND ${e}<=${t+a}`}return r}function Wp(t){let{xAxisField:e,yAxisField:r,splitBy:a,dataContext:i,xAxisFieldType:n,chartConfig:s}=t,o="";if(e!==void 0&&e!==O.boxPlot.boxPlotCategory){let u=ea({value:i[e],dataContext:i,keepNullValues:!0});n===Ie.Double?o=jp(u,e):(Kr(s.axes?.[0].valueFormat)&&(u=Oi(u)),o=or({where:Pr(e,u),normalize:!1,escape:!0}))}let l=or({where:a??"",normalize:!1,escape:!0}),d="";if(nv(s)){let u=X(s.series)===C.BoxPlotMultiFieldsAndCategory?r:void 0,c=Ue({key:U.Min,showOutliers:!0,splitBy:a,y:u}),f=Ue({key:U.Max,showOutliers:!0,splitBy:a,y:u}),p=e===O.boxPlot.boxPlotCategory?i[e]:r;if(!Ee(p)){let h=i[c],m=i[f];Number.isFinite(h)&&Number.isFinite(m)&&(d=`${p?.toString()}>=${h?.toString()} AND ${p?.toString()}<=${m?.toString()}`)}}return ve([o,l,d])}function W0(t){let{xAxisField:e,splitBy:r,dataContext:a,xAxisFieldType:i,chartConfig:n}=t,s="";if(O.dateBinningRange in a)s=kp(e,a);else if(X(n.series)!==C.BarAndLineFromFields){let l=ea({value:a[e],dataContext:a,keepNullValues:!0});i===Ie.Double?s=jp(l,e):(Kr(n.axes?.[0].valueFormat)&&(l=Oi(l)),s=or({where:Pr(e,l),normalize:!1,escape:!0}))}let o=or({where:r??"",normalize:!1,escape:!0});return ve([s,o])}function V0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i=r[O.originalCategoryValue];return i===void 0&&(i=r[e]),X(a.series)===C.PieFromFields?"":or({where:Pr(e,i),normalize:!1,escape:!0})}function np(t){let{field:e,fieldType:r,fieldValue:a,unit:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l,{expression:d}=wo({field:e,fieldType:r,unit:i,addIntervalStatement:!0,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o});return d&&(l=`${d}=${a}`),l}function _0(t){let{xAxisFieldType:e,yAxisFieldType:r,dataContext:a,chartConfig:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}=t,l=i.series[0],d="";if(l.type===b.HeatSeries){let u,c,f=a[re.xField],p=a[O.originalCategoryValue],h=a[re.yField],m=a[O.originalYCategoryValue],y=i.axes?.[0]?.valueFormat?.type,g=i.axes?.[1]?.valueFormat?.type;y===b.CategoryAxisFormat?u=or({where:Pr(l.x,p??f),normalize:!1,escape:!0}):u=np({field:l.x,fieldType:e,fieldValue:f,unit:l.xTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),g===b.CategoryAxisFormat?c=or({where:Pr(l.y,m??h),normalize:!1,escape:!0}):c=np({field:l.y,fieldType:r,fieldValue:h,unit:l.yTemporalBinning?.unit,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o}),u&&(d=u),c&&(d=ve([d,c]))}return d}function z0(t){let{xAxisField:e,dataContext:r,chartConfig:a}=t,i="",n=a.series[0],{minValue:s,maxValue:o}=r;if(Number.isFinite(s)&&Number.isFinite(o)&&n.type===b.HistogramSeries){let l=Iv(e,n.dataTransformationType),d=r.isLastBin?"<=":"<";i=ve([`${l}>=${s?.toString()}`,`${l}${d}${o?.toString()}`])}return i}function DT(t){let{chartConfig:e}=t,r=Y(e.series),a="";switch(r){case b.ScatterSeries:a=j0(t);break;case b.HeatSeries:a=_0(t);break;case b.RadarSeries:case b.BarSeries:case b.LineSeries:case b.ComboLineAndBarSeries:a=W0(t);break;case b.BoxPlotSeries:a=Wp(t);break;case b.HistogramSeries:a=z0(t);break;case b.PieSeries:a=V0(t);break}return a}async function U0(t){let{numberOfQueries:e,selectionOIDs:r,chartConfig:a,queryConfig:i,options:n,errorStrings:s,queryObject:o}=t,{setTimeBinningInfoWhenNotProvided:l}=n??{},{series:d}=a,u=Y(d),c=[],{maxOIDsPerSelectionQuery:f}=na();for(let p=0;p<e;p+=1){let h=p*f,m=(p+1)*f-1,y=r.slice(h===0?0:h-1,m),g={...i};switch(g.objectIds=y,u){case b.HeatSeries:c.push(Zp({completeHeatChartDataset:!1,chartConfig:a,queryConfig:g,queryObject:o,errorStrings:s,options:n}));break;case b.PieSeries:case b.BarSeries:case b.LineSeries:case b.RadarSeries:case b.ComboLineAndBarSeries:if(ei({xAxisValueFormatType:dr(a),setTimeBinningInfoWhenNotProvided:l,seriesConfig:d[0]})){let v=a;"temporalBinning"in v.series[0]&&v.series[0].temporalBinning&&(v.series[0].temporalBinning.trimIncompleteTimeInterval=!1,ra(o)&&(delete v.series[0].temporalBinning.start,delete v.series[0].temporalBinning.end)),c.push(bo({chartConfig:v,queryConfig:g,queryObject:o,options:n}))}else c.push(kS({queryObject:o,chartConfig:a,options:n,queryConfig:g}));break;case b.BoxPlotSeries:c.push(jS({queryObject:o,chartConfig:a,options:n,errorStrings:s,queryConfig:g}));break;case b.ScatterSeries:c.push(Rp({queryObject:o,chartConfig:a,queryConfig:g,options:n,errorStrings:s,sortData:!1,calculateTrendLine:!1}));break;case b.HistogramSeries:c.push(S0({queryObject:o,queryConfig:g,chartConfig:a,x:d[0].x}));break}}return await Promise.all(c)}function H0(t){let{dataFetchingResults:e,numberOfQueries:r,series:a}=t,i=Y(a),n=X(a),s=[],o=new Map;for(let l=0;l<r;l+=1){let d=e[l];if(d!==void 0){let u;if(i===b.ScatterSeries)u=d.dataItems;else if("data"in d&&d.data){let c=d.data;"dataItems"in c&&(u=c.dataItems),"outliers"in c&&c.outliers&&s.push(...c.outliers),"meanLines"in c&&c.meanLines&&s.push(...c.meanLines)}if(u)if(a[0].type===b.HeatSeries)r>0&&u.forEach(c=>{o.set(`${c[re.xField]}-${c[re.yField]}`,c)});else if(a[0].type===b.ScatterSeries){let{x:c,y:f}=a[0];s.push(...u.map(p=>({[c]:p[c],[f]:p[f]})))}else d.valid&&(n===C.PieFromFields?s=Sn({dataToConvert:u[0],x:ot,y:Wt}):n===C.BarAndLineFromFields?s=Sn({dataToConvert:u[0],x:a[0].x,y:a[0].y}):s.push(...u))}}return o.size>0&&(s=Array.from(o.values())),s}async function G0(t){let{chartConfig:e,queryConfig:r,chartData:a,currentSelectionOIDs:i,dataWasUpdated:n,queryObject:s,options:o,errorStrings:l}=t,{series:d}=e,{selectionData:u,viewExtentUpdated:c,returnSelectionOIDs:f,chartLimits:p}=o??{},{selectionItems:h,selectionOIDs:m}=u??{},y,g=Y(d),v=g!==b.HistogramSeries&&g!==b.HeatSeries&&h!==void 0&&h.length>0&&!(d[0].x in h[0])&&!(ot in h[0])&&!(O.boxPlot.boxPlotCategory in h[0]);if(c!==!0&&f!==!1&&m!==void 0&&m.length>0&&(n===!0||v||m.length!==i?.length||!er(m,i))){let w=nf(a);if(w!==void 0&&!Fv({dataContext:w[0],chartConfig:e,chartLimits:p}))y=w.filter(x=>{let F=x[Be.uniqueIdsName];return typeof F=="number"||typeof F=="string"?m?.includes(F):!1});else if(m?.[0]!==void 0&&r!==void 0){let{maxOIDsPerSelectionQuery:x}=na(),F=Math.ceil(m.length/x),A=await U0({numberOfQueries:F,selectionOIDs:m,queryConfig:r,queryObject:s,options:o,errorStrings:l,chartConfig:e});y=H0({dataFetchingResults:A,numberOfQueries:F,series:d})}}return y}function*Q0(t){let{filterList:e,queryObject:r,queryConfig:a}=t;for(let i=0;i<e.length;i+=1){let n={...a};n.where=ve([n.where,e[i]]),yield tw({queryObject:r,queryConfig:n,uniqueFeature:!0})}}async function NT(t){let{whereList:e,queryObject:r,queryFilter:a,queryConfig:i}=t,n=[];if(e.length>0){let s=na().maxElementsPerSelectionQuery,o=[],l=Math.ceil(e.length/s);for(let u=0;u<l;u+=1){let c=u*s,f=(u+1)*s,p=e.slice(c===0?0:c-1,f),h=ve(p,"OR");h=ve([a,h]),o.push(h)}let d=Q0({filterList:o,queryObject:r,queryConfig:i});n=(await Promise.all(d)).flat(),n=Array.from(new Set(n))}return n}async function Z0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,options:n,errorStrings:s,abortKey:o}=t,l=X(a.series),d={valid:!0,data:{dataItems:[]}};if(i!==void 0&&i.length>0){let u=Br(a),{x:c}=u,f="y"in u?u.y:"",p;e!==void 0&&(p=(await pt(e)).find(w=>w.name===c)?.type);let h=[],m=i.reduce((w,x)=>{let F=[];if(Be.uniqueIdsName in x)h.push(x[Be.uniqueIdsName]);else{switch(l){case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:{let L=Xe(u.query?.where??""),P=`_${U.Average}`;Object.keys(x).forEach(B=>{if(B.includes(P)){let N=B.replace(P,"");N.trim()!==""&&F.push(Pr(L,N))}});break}}let A=[f].flat(),q=A.length===1?A[0]:"";if(l===C.BoxPlotMultiFieldsAndCategory){let L=`_${U.FirstQuartile}`,P=Object.keys(x).find(B=>B.includes(L));P!==void 0&&(q=P.replace(L,""))}F.length===0&&F.push(""),F.forEach(L=>{let P=Wp({chartConfig:a,xAxisField:c,yAxisField:q,splitBy:L,dataContext:x,xAxisFieldType:p});w.push(P)})}return w},[]),y=ue(e);if(y!==void 0&&h.length>0){let w=Zt(y).idField;m.push(`${w} IN (${h.join(",")})`)}let g=m.join(" OR "),v={...r};v.where=ve([v.where,g]),d=await yo({queryObject:e,chartConfig:a,queryConfig:v,options:n,errorStrings:s,abortKey:o})}return d}async function K0(t){let{queryObject:e,queryConfig:r,chartConfig:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,abortKey:u}=t,{series:c}=a,f=Y(c),p=dr(a),h={valid:!0},m;s?m=await G0({chartConfig:a,queryConfig:r,chartData:o,currentSelectionOIDs:n,dataWasUpdated:!0,queryObject:e,options:l,errorStrings:d})??[]:m=k0({chartConfig:a,currentSelectionDataItems:i,options:l});let y=!1;switch(f){case b.HeatSeries:h.data={dataItems:m};break;case b.PieSeries:if(X(a.series)===C.PieFromFields){let{x:g,y:v}=a.series[0],w=jr(m);w.forEach(x=>{g in x&&(x[ot]=x[g],delete x[g]),v in x&&(x[Wt]=x[v],delete x[v])}),h.data={dataItems:w}}else h.data={dataItems:m};h.count=m.length,y=!0;break;case b.BoxPlotSeries:dt(a)&&(h=await Z0({...t,chartConfig:a}));break;case b.BarSeries:case b.ComboLineAndBarSeries:case b.RadarSeries:case b.LineSeries:if(m.length===0||!ei({xAxisValueFormatType:p,setTimeBinningInfoWhenNotProvided:l?.setTimeBinningInfoWhenNotProvided,seriesConfig:c[0]}))h.data={dataItems:m},h.count=m.length*c.length,y=!0;else{let g={...r};if(i!==void 0&&i.length>0){let v=i.map(x=>kp(c[0].x,x)),w=ve(v,"OR");g.where=ve([g.where,w])}h=await bo({queryObject:e,queryConfig:g,chartConfig:a,options:l})}break;case b.HistogramSeries:{if(m.length===0)h.data={mean:Number.NaN,median:Number.NaN,stddev:Number.NaN,max:Number.NaN,min:Number.NaN,bins:[]},h.count=0;else{let{x:g}=c[0],v=m.map((F,A)=>{let{minValue:q,maxValue:L}=F,P=A===m.length-1?"<=":"<";return`${g} >= ${q} AND ${g} ${P} ${L}`}),w=ve(v,"OR"),x={...r};x.where=ve([x.where,w]),h=await $p({queryObject:e,chartConfig:a,queryConfig:x,options:l,errorStrings:d,abortKey:u})}break}case b.ScatterSeries:{if(m.length===0){let{r2:g,trendLinePoints:v}=O.scatterplotSeries;h.data={dataItems:[],r2:g,trendLinePoints:v,count:0},h.count=0}else{let{r2:g,trendLinePoints:v}=qp({data:m,chartConfig:a});h.data={dataItems:m,r2:g,trendLinePoints:v},h.count=m.length}break}}return y&&h.data!==void 0&&sa({arrayToSort:"dataItems"in h.data?h.data.dataItems:h.data,chartConfig:a}),h}async function yo(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s}=t,o={valid:!0},l=Xi(r),d=await lo({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!l,options:i,chartConfig:r,abortKey:s});if(!l)o=d;else{let u={dataItems:[]};u.meanLines=d.data.dataItems;let c=kv(r),f=(await lo({queryObject:e,queryConfig:a,fetchFullBoxPlotData:!0,options:i,chartConfig:c,abortKey:s})).data;u.dataItems=f.dataItems,u.outliers=f.outliers,o.data=u}return o}async function J0(t){let{queryObject:e,chartConfig:r,queryConfig:a,options:i,errorStrings:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,{series:d}=r,{filterBySelection:u}=i??{},c=Y(d),f={valid:!0};if(u===!0)f=await K0(t);else switch(c){case b.HeatSeries:f=await Zp(t);break;case b.BoxPlotSeries:dt(r)&&(f=await yo({...t,chartConfig:r}));break;case b.BarSeries:case b.ComboLineAndBarSeries:case b.PieSeries:case b.RadarSeries:case b.LineSeries:{let p={queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,fieldList:o,preFetchedQueryResponse:l};ei({xAxisValueFormatType:dr(r),setTimeBinningInfoWhenNotProvided:i?.setTimeBinningInfoWhenNotProvided,seriesConfig:d[0]})?f=await bo(p):f=await lo(p);break}case b.ScatterSeries:f.data=await Rp({queryObject:e,queryConfig:a,options:i,chartConfig:r,errorStrings:n,abortKey:s});break;case b.HistogramSeries:f=await $p({queryObject:e,queryConfig:a,chartConfig:r,options:i,abortKey:s,errorStrings:n});break;case b.GaugeSeries:f=await d0({queryObject:e,chartConfig:r,queryConfig:a,options:i,abortKey:s});break}return f}async function BT(t){let{queryObject:e,chartConfig:r,abortKey:a,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,fullDatasetBeforeFBS:o,options:l,errorStrings:d,fieldList:u,preFetchedQueryResponse:c}=t,f={valid:!0},p=xw({queryObject:e,chartConfig:r,runtimeDataFilters:l?.runtimeDataFilters,ignoreViewExtent:l?.ignoreViewExtent});return rw(a),f=await J0({chartConfig:r,queryObject:e,queryConfig:p,fullDatasetBeforeFBS:o,currentSelectionDataItems:i,currentSelectionOIDs:n,dataForFilterBySelectionChanged:s,options:l,abortKey:a,errorStrings:d,fieldList:u,preFetchedQueryResponse:c}),f.queryConfig=p,f}function Y0(t,e,r){let a=new Map;for(let i=0;i<t.length;i+=1)a.set(t[i],{[r]:t[i]});for(let i=0;i<e.length;i+=1){let n=e[i][r];(typeof n=="string"||typeof n=="number")&&a.set(n,e[i])}return[...a.values()]}async function X0(t){let{seriesData:e,chartConfig:r,queryConfig:a,queryObject:i,categoryOrDateCount:n,behaviorAfterLimit:s,abortKey:o}=t,{series:l}=r,d=e,u=X(l),c=dr(r);if(s!==Lr.RenderUpToTheLimit&&i!==void 0&&n!==void 0&&n>e.length&&u!==C.BarAndLineFromFields&&u!==C.BarAndLineNoAggregation&&u!==C.PieNoAggregation&&c===b.CategoryAxisFormat){let{x:f}=l[0],p={...a,returnDistinctValues:!0,outFields:[f]};delete p.outStatistics,delete p.orderByFields,delete p.groupByFieldsForStatistics;let h=(await Bt({queryObject:i,queryConfig:p,featureCount:n,abortKey:o})).map(m=>m.attributes[f]).filter(m=>m!=null);h.length>e.length&&(d=Y0(h,e,f))}return d}function eS(t,e){let r=t,{series:a}=e;if(dr(e)===b.CategoryAxisFormat&&a[0].query?.outStatistics?.[0].statisticType===j.Count){let i=a.reduce((n,s)=>{let o=s.query?.outStatistics?.[0].outStatisticFieldName??[s.y].flat()[0];return n[o]=0,n},{});for(let n=0;n<t.length;n+=1)t[n]={...i,...t[n]}}return r}var Vp=[C.BarAndLineMonoField,C.BarAndLineMultiFields,C.PieNoAggregation,C.PieFromCategory,C.BoxPlotMonoFieldAndCategory,C.BoxPlotMultiFieldsAndCategory,C.BoxPlotMonoFieldAndCategoryAndSplitBy],tS=8e3;function _p(t,e){let r=t;return e===G.Week?r/=7:e===G.Month?r/=30:e===G.Year&&(r/=365),r=Math.ceil(r),r}function Ar(t){let{date:e,unit:r,nextOrPrevious:a,size:i}=t;if(i!==void 0&&Number.isFinite(i)){let n=a==="next"?i:-i;switch(r){case G.Second:return ae.fromMillis(e).plus({seconds:n}).valueOf();case G.Minute:return ae.fromMillis(e).plus({minutes:n}).valueOf();case G.Hour:return ae.fromMillis(e).plus({hours:n}).valueOf();case G.Week:case G.Day:return ae.fromMillis(e).plus({days:n}).valueOf();case G.Month:return ae.fromMillis(e).plus({months:n}).valueOf();case G.Year:return ae.fromMillis(e).plus({years:n}).valueOf()}}return e}function rS(t){let{binFirstOrLastIndex:e,data:r,x:a,timeIntervalInfo:i}=t,{unit:n,size:s}=i,o=n===G.Week?(s??1)*7:s,l=r[e][a],d=e,u=Ar({date:l,unit:n,size:o,nextOrPrevious:"next"}),c=r[d][a];for(;d+1<r.length&&c<u;)d+=1,c=r[d]?.[a];let f=d+1>=r.length,p=d;f&&r[p]!==void 0&&(p+=1);let h=f?Ar({date:l,unit:n,size:o,nextOrPrevious:"next"}):r[d][a];return{binStartDate:l,binEndDate:h,last:f,nextBinFirstOrLastIndex:d,sliceStartIndex:e,sliceEndIndex:p}}function iS(t){let{binFirstOrLastIndex:e,data:r,x:a,timeIntervalInfo:i}=t,{unit:n,size:s}=i,o=n===G.Week?(s??1)*7:s,l=r[e][a],d=e,u=Ar({date:l,unit:n,size:o,nextOrPrevious:"previous"}),c=r[d][a];for(;d-1>=0&&c>u;)d-=1,c=r[d]?.[a];let f=d-1<=0,p=e;return f&&r[p]!==void 0&&(p-=1),f&&(d=0),{binStartDate:f?Ar({date:l,unit:n,size:o,nextOrPrevious:"previous"}):r[d][a],binEndDate:l,nextBinFirstOrLastIndex:d,sliceStartIndex:d,sliceEndIndex:p,last:f}}function aS(t){let{binsToRegroup:e,statisticType:r,y:a,nullPolicy:i}=t,n;i!==nt.Interpolate&&(n=i===nt.Zero?0:null);let s=e.filter(o=>Number.isFinite(o[a]));if(s.length>0)switch(r){case j.Count:case j.Sum:n=qa(s,o=>o[a]);break;case j.Minimum:n=Ma(s,o=>o[a]);break;case j.Maximum:n=Ba(s,o=>o[a]);break;case j.Average:n=$a(s,o=>o[a]);break;case j.ContinuousPercentile:}return n}function nS(t){let{data:e,seriesConfig:r,timeIntervalInfo:a,dateMinTimestamp:i,dateMaxTimestamp:n}=t,s=[],{unit:o}=a,l=a.size??1,d=r[0],{x:u}=d,c,f;if(Vt(d)&&(f=d.temporalBinning?.nullPolicy,c=d.temporalBinning?.timeAggregationType),l>1||o===G.Week||o===G.Month||o===G.Year){let{query:p}=r[0],h=rt(r),{statisticType:m}=p?.outStatistics?.[0]??fa,y=!1,g=c===Me.End?e.length-1:0,v={binFirstOrLastIndex:g,data:e,x:u,timeIntervalInfo:a};for(;!y;){let w={},{binStartDate:x,binEndDate:F,last:A,nextBinFirstOrLastIndex:q,sliceStartIndex:L,sliceEndIndex:P}=c===Me.End?iS(v):rS(v);if(y=A,w=c===Me.End?w=e[P-1]:w=e[g],F>n&&x<n||x<i&&F>i||x>=i&&F<=n){let B=e.slice(L,P).filter($=>!(O.dateBinModel in $));h.forEach($=>{w[$]=aS({binsToRegroup:B,statisticType:m,y:$,nullPolicy:f})});let N=B.map($=>$[Or]).filter($=>$!==void 0),R=gv(N);R!==void 0&&(w[Or]=R),w[u]=x,w[O.xAxisField]=x,w[O.dateBinningRange]=[x,F],delete w[O.dateBinModel],s.push(w)}else A&&c!==Me.End&&s.length>0&&(s[s.length-1][O.dateBinningRange][1]=s[s.length-1][O.dateBinningRange][1]+1);g=q,v.binFirstOrLastIndex=q}c===Me.End&&(s=s.reverse())}else l===1?s=e.map((p,h)=>{let m=p[u],y=e[h+1]?.[u];return y=typeof y=="number"?y-1:Ar({date:m,unit:o,size:l,nextOrPrevious:"next"}),{...p,[O.dateBinningRange]:[m,y]}}):s=e;return s}function zp(t){let{dateMinTimestamp:e,dateMaxTimestamp:r,timeIntervalInfo:a}=t,{size:i,unit:n}=a,s=0,o=0;if(i!==void 0&&Number.isFinite(i)&&Number.isFinite(e)&&Number.isFinite(r)){let l=-1,d=ae.fromMillis(e),u=ae.fromMillis(r);switch(n){case G.Second:l=u.diff(d,"seconds").get("seconds");break;case G.Minute:l=u.diff(d,"minutes").get("minutes");break;case G.Hour:l=u.diff(d,"hours").get("hours");break;case G.Day:case G.Month:case G.Year:l=u.diff(d,"days").get("days");break;case G.Week:l=u.diff(d,"weeks").get("weeks");break}Number.isFinite(l)&&(o=Math.ceil(l)+1,s=i===1?o:Math.ceil(o/i))}return{numberOfFinalBinsWithinDataRange:s,numberOfSingleBinsWithinDataRange:o}}function Up(t){let e=t[0].temporalBinning?.nullPolicy;return t.reduce((r,a)=>{r[O.dateBinModel]=void 0;let i=a.query?.outStatistics?.[0].outStatisticFieldName??[a.y].flat()[0];return e!==nt.Interpolate&&(r[i]=e===nt.Zero?0:null),r},{})}function sS(t){let{dateMaxTimestamp:e,numberOfFinalBinsWithinDataRange:r,numberOfSingleBinsWithinDataRange:a,data:i,seriesConfig:n,timeIntervalInfo:s}=t,{size:o,unit:l}=s,{x:d}=n[0],u=n[0].temporalBinning?.timeAggregationType,c=i[0][d],f=e;if(o!==void 0&&Number.isFinite(o)&&a/r!==o){let p=Math.ceil(a/r)*r-a;l===G.Week&&(p*=7);let h=Up(n);if(u===Me.End){let m=i[0][d];for(let y=0;y<p;y+=1)m=Ar({date:m,unit:l,size:1,nextOrPrevious:"previous"}),i.push({...h,[d]:m,[O.xAxisField]:m});p>0&&(c=i[i.length-1][d])}else{let m=i[i.length-1][d];for(let y=0;y<p;y+=1)m=Ar({date:m,unit:l,size:1,nextOrPrevious:"next"}),i.push({...h,[d]:m,[O.xAxisField]:m});f=i[i.length-1][d]}}return{newDateMin:c,newDateMax:f}}function oS(t){let{numberOfSingleBinsWithinDataRange:e,dataLength:r,unit:a}=t;return _p(r,a)>=e}async function lS(t){let{queryObject:e,queryConfig:r,x:a}=t,i=`MIN_${a}`,n=`MAX_${a}`,s=`COUNT_${a}`,o={...r,outStatistics:[{statisticType:j.Minimum,onStatisticField:a,outStatisticFieldName:i},{statisticType:j.Maximum,onStatisticField:a,outStatisticFieldName:n},{statisticType:j.Count,onStatisticField:a,outStatisticFieldName:s}]};delete o.groupByFieldsForStatistics,delete o.orderByFields;let l=await oa({queryObject:e,queryConfig:o}),d=l.get(i),u=l.get(n),c=l.get(s);return typeof d=="string"&&(d=new Date(d).valueOf()),typeof u=="string"&&(u=new Date(u).valueOf()),{dateRange:{dateMinTimestamp:d,dateMaxTimestamp:u},numberOfFeatures:c}}function dS(t){let{newDateMin:e,newDateMax:r,seriesConfig:a,data:i,numberOfSingleBinsWithinDataRange:n,initialNumberOfBins:s,timeIntervalInfo:o}=t,{unit:l}=o,d=i;if(!oS({numberOfSingleBinsWithinDataRange:n,dataLength:s,unit:l})){let{x:u}=a[0],c=a[0].temporalBinning?.timeAggregationType,f=Up(a),p=c===Me.End?r:e,h=c===Me.End?i.length-1:0;for(;h<i.length&&(c===Me.End&&p>e||c!==Me.End&&p<r);)p!==i[h][u]?d.push({...f,[u]:p,[O.xAxisField]:p}):h=c===Me.End?h-1:h+1,p=Ar({date:p,unit:l===G.Month||l===G.Year?G.Day:l,size:1,nextOrPrevious:c===Me.End?"previous":"next"})}return d}function uS(t){let{data:e,seriesConfig:r,dateMinTimestamp:a,dateMaxTimestamp:i}=t,n=e;if(r[0].temporalBinning?.trimIncompleteTimeInterval!==!1){let{timeAggregationType:s}=r[0].temporalBinning??{},o=e[0]?.[O.dateBinningRange]?.[0],l=e[e.length-1]?.[O.dateBinningRange]?.[1];if(s===Me.End?o<a:l>i)if(s===Me.End){let d=o;for(;d<a&&e.length>0;)e.shift(),e.length>0&&(d=e[0][O.dateBinningRange]?.[0])}else{let d=l;for(;d>i&&e.length>0;)e.pop(),e.length>0&&(d=e[e.length-1][O.dateBinningRange]?.[1])}}return n}function cS(t){let{groupByFieldsForStatistics:e,dateField:r,queryStartDate:a,queryEndDate:i,y:n,binIndex:s,lastBin:o}=t,l=e===""?Jr.groupByCaseBegin:e;return l=qe(dC,{groupByFieldsForStatistics:l,dateField:r,startDate:`${a}`,endDate:`${i}`,y:[n].flat()[0],binIndex:`${s}`,endDateOperand:o?"<=":"<"}),l}function*pS(t){let{queryObject:e,seriesConfig:r,queryConfig:a,completeData:i}=t;for(let n=0;n<r.length;n+=1){let s=r[n],{query:o,x:l,y:d}=s,u=[{onStatisticField:o?.outStatistics?.[0]?.onStatisticField??"",outStatisticFieldName:j.ContinuousPercentile,statisticType:j.ContinuousPercentile,statisticParameters:{value:.5}}],c=Jr.groupByCaseBegin;for(let p=0;p<i.length;p+=1){let h=i[p],[m,y]=h[O.dateBinningRange],g=Oi(m),v=Oi(y);c=cS({groupByFieldsForStatistics:c,queryStartDate:g,queryEndDate:v,dateField:l,y:[d].flat()[0],binIndex:p,lastBin:p===i.length-1})}c=`${c} ${Jr.groupByCaseEnd}`;let f={...a,groupByFieldsForStatistics:[c],outStatistics:u,orderByFields:void 0};yield Bt({queryObject:e,queryConfig:f,noBatch:!0})}}async function fS(t){let{queryObject:e,data:r,seriesConfig:a,queryConfig:i}=t,n=r,{statisticType:s}=a[0].query?.outStatistics?.[0]??fa;if(s===j.ContinuousPercentile&&n.length>0){let o=pS({queryObject:e,completeData:n,seriesConfig:a,queryConfig:i}),l=(await Promise.all(o)).flat();if(l.length>0){let{isInItem:d,expr:u}=Fn(l[0].attributes);d&&l.forEach(c=>{let f=c.attributes[`${u}`];if(f!==void 0){let[p,h]=f.split("|");if(h!==void 0){let m=c.attributes[j.ContinuousPercentile];n[h][`${p}`]=m}}})}}return n}async function hS(t){let{chartConfig:e,queryResults:r,mapToStatField:a,splitByField:i,x:n,y:s,nullPolicy:o,queryObject:l}=t,d=tf(n),u=(await pt(l)).find(m=>m.name===n)?.type,c=[],f=e.series[0],p="temporalBinning"in f?f.temporalBinning?.trimIncompleteTimeInterval:!1,h="temporalBinning"in f?f.temporalBinning?.timeAggregationType:!1;return r.forEach((m,y)=>{if(!(p&&(y===0&&h===Me.End||y===r.length-1&&h===Me.Start))){let{attributes:g,stackedAttributes:v}=m,w=g[d.lowerBoundaryAlias],x=g[d.upperBoundaryAlias],F=w,A=x,q=(P,B)=>{let N=P;if(B===Ie.DateOnly&&(typeof P=="string"&&P.length===10||typeof P=="number"))if(typeof P=="string"){let R=P.split("-");R.length===3&&(N=ae.local(Number(R[0]),Number(R[1]),Number(R[2])).valueOf())}else N=new Date(P),N=new Date(N.valueOf()+N.getTimezoneOffset()*6e4),N=ae.local(N.getFullYear(),N.getMonth()+1,N.getDate()).valueOf();else typeof P=="string"&&["+","-"].forEach(R=>{R&&P.lastIndexOf(R)===P.length-6&&(N=new Date(P.slice(0,P.lastIndexOf(R))).valueOf())});return N};w=q(w,u),x=q(x,u);let L=(P,B)=>{if(B)switch(!0){case(o===nt.Zero&&(P[B]===void 0||P[B]===null)):P[B]=0;break;case o===nt.Null:break;case(o===nt.Interpolate&&(P[B]===void 0||P[B]===null)):delete P[B];break}};if(typeof w=="number"&&typeof x=="number"){let P={...g};P[O.originalServerBinningRange]=[F,A],P[n]=w,P[O.xAxisField]=w,P[O.dateBinningRange]=[w,x],delete P[d.lowerBoundaryAlias],delete P[d.upperBoundaryAlias],v&&i&&!Ee(i)&&a?v.forEach(R=>{let $=R[i];if($===null||typeof $=="string"||typeof $=="number"){let E=a?.get($);E!==void 0&&(P[E]=R[Be.outStatistics?.outStatisticFieldName??""],L(P,E))}}):L(P,s);let{featureExtent:B,featureExtentKey:N}=Hp({feature:m,splitByField:i});B&&(P[N]=B),c.push(P)}}}),c}async function mS(t){let{queryObject:e,queryResults:r,x:a,queryConfig:i,seriesConfig:n,dateRange:s,timeIntervalInfo:o}=t,l=r,{dateMinTimestamp:d,dateMaxTimestamp:u}=s;if(d&&u){let c=r.length;if(vn({arrayToSort:l,sortingField:a}),c>1){let{numberOfFinalBinsWithinDataRange:f,numberOfSingleBinsWithinDataRange:p}=zp({dateMinTimestamp:d,dateMaxTimestamp:u,timeIntervalInfo:o}),{newDateMin:h,newDateMax:m}=sS({dateMaxTimestamp:u,data:l,numberOfFinalBinsWithinDataRange:f,numberOfSingleBinsWithinDataRange:p,seriesConfig:n,timeIntervalInfo:o});l=dS({newDateMin:h,newDateMax:m,seriesConfig:n,data:l,initialNumberOfBins:c,numberOfSingleBinsWithinDataRange:p,timeIntervalInfo:o}),vn({arrayToSort:l,sortingField:a}),l=nS({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:u,timeIntervalInfo:o}),l=uS({data:l,seriesConfig:n,dateMinTimestamp:d,dateMaxTimestamp:u}),l=await fS({queryObject:e,data:l,seriesConfig:n,queryConfig:i})}}return l}function yS(t){return Math.floor(Math.min(Math.max(8,Math.sqrt(t??8)),128)+.5)}function gS(t){let{dateRange:e,numberOfFeatures:r}=t,a,i,{dateMinTimestamp:n,dateMaxTimestamp:s}=e;if(n&&s){typeof n=="string"&&(n=new Date(n).valueOf()),typeof s=="string"&&(s=new Date(s).valueOf());let o=yS(r),l=(s-n)/o,d=pp.findIndex(g=>g.threshold>l),u=pp[d],{unitMs:c,preferredIntervalSize:f}=u;({unit:a}=u);let p=l/c,h=f.findIndex(g=>g>=p),m=f[h],y=h===0?f[0]:f[h-1];i=m-p<p-y?m:y}return{size:i,unit:a}}function bS(t){let{series:e,isTimeBinningSeries:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(Vt(e)&&r){let{unit:n,size:s}=e.temporalBinning??{};i=!ro(n,s)&&a===!0}return i}function vS(t){let e=[];for(let r=1;r<=6;r+=1){let a=t[`EXPR_${r}`]??t[`Expr${r}`]??t[`expr${r}`]??t[`EXPR${r}`];a!==null&&e.push(a)}return ae.local(Number(e[0]??1969),Number(e[1]??1),Number(e[2]??1),Number(e[3]??0),Number(e[4]??0),Number(e[5]??0)).valueOf()}function Hp(t){let{feature:e,splitByField:r,chartSubType:a}=t,i;if(e.aggregateGeometries&&"Extent"in e.aggregateGeometries)i=e.aggregateGeometries.Extent;else{let o=e.aggregateGeometries??e.geometry;o?.extent&&(i=o.extent)}let n=i?.toJSON(),s=Or;return n!==void 0&&r!==void 0&&a!==void 0&&a===C.BarAndLineSplitBy&&(s=e.attributes[r]!==void 0?`${Or}_${e.attributes[r]}`:Or),{featureExtent:n,featureExtentKey:s}}function SS(t){let{input:e,x:r,splitByField:a}=t;return e.reduce((i,n)=>(a!==void 0&&a!==r&&!(O.technicalFieldSplitByField in n)&&delete n[a],Object.assign(i,n)),{})}function ta(t){let{data:e,x:r,splitByField:a}=t,i=e;return e!==void 0&&e.length>0&&(i=[...bs(e,n=>SS({input:n,x:r,splitByField:a}),n=>n[r]).values()]),i}function wS(t,e){let r=t,a=Y(e);if(a!==b.PieSeries&&a!==b.BoxPlotSeries){let i=rt(e),n=e[0].y;t.forEach(s=>{let o=0;if(i.forEach(l=>{let d=s[l];Number.isFinite(d)&&(o+=d)}),s[O.technicalSortingFieldBySum]=o,Number.isFinite(o)&&o>0){let l=s[n];if(Number.isFinite(l)){let d=l/o;s[O.technicalSortingFieldByPercent]=d}}})}return r}function CS(t,e){let r=e,a=rt(t),i=a.length===1;return a.forEach(n=>{let s=Ti(i?void 0:n),o=r[s[U.FirstQuartile]],l=r[s[U.ThirdQuartile]];Number.isFinite(o)&&Number.isFinite(l)&&l>=o&&(r[s[U.IQR]]=l-o)}),r}function xS(t,e){let r=e.series[0],a=t;if(r.type===b.HeatSeries){let{x:i,y:n}=r;a[re.xField]=a[i]?.toString(),delete a[i],a[re.yField]=a[n]?.toString(),delete a[n];let s=r.query?.outStatistics?.[0]?.outStatisticFieldName;s&&(a[re.valueField]=a[s],delete a[s])}return a}function go(t,e){[e].flat().forEach(r=>{r&&(t[r]===void 0&&(t[r]=t[r.toUpperCase()]!==void 0?t[r.toUpperCase()]:t[r.toLowerCase()]),t[r]!==void 0?(r!==r.toUpperCase()&&delete t[r.toUpperCase()],r!==r.toLowerCase()&&delete t[r.toLowerCase()]):delete t[r])})}function TS(t,e){let r=[];Be.outStatistics.outStatisticFieldName&&Object.keys(t).includes(Be.outStatistics.outStatisticFieldName)?r=[Be.outStatistics.outStatisticFieldName]:r=Array.from(new Set(e.flatMap(a=>a.query?.outStatistics?.map(i=>i.outStatisticFieldName)))),go(t,r)}function FS(t,e){let r={...t};return t!==void 0&&e[0]!==void 0&&(r=Object.keys(t).reduce((a,i)=>{let n=e.find(s=>s.outStatisticFieldName?.toLowerCase()===i.toLowerCase())?.onStatisticField;return n!==void 0&&t[i]!==void 0&&n!==i?a[n]=t[i]:a[i]=t[i],a},{})),r}function IS(t){let{dataItem:e,splitByField:r,y:a,fieldOID:i}=t;if(e!==void 0&&!Ee(r)&&!Ee(a)){let n=e[r],s=`${a}_${n?.toString()}`;e[s]=e[a],i&&a!==i&&delete e[a]}}function OS(t,e){Object.keys(t).forEach(r=>{if(r.startsWith(`${e}_`)){let a=r.slice(e.length+1);t[a]=t[r],delete t[r]}})}function PS(t,e){let r=1;switch(t){case C.BarAndLineFromFields:case C.PieFromFields:r=e.series[0].query?.outStatistics?.length??1;break;case C.BoxPlotMultiFields:case C.BoxPlotMultiFieldsAndSplitBy:r=e.series[0].y.length;break;case C.BarAndLineNoAggregation:case C.BoxPlotMonoField:case C.BoxPlotMonoFieldAndCategory:case C.BoxPlotMultiFieldsAndCategory:case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:case C.PieFromCategory:case C.BarAndLineSplitByNoAggregation:case C.PieNoAggregation:case C.BarAndLineSplitBy:case C.BarAndLineMonoField:case C.BarAndLineMultiFields:case C.NonSpecific:}return r}function AS(t){let{attributes:e,showMean:r,chartSubType:a}=t;r&&(a===C.BoxPlotMonoFieldAndSplitBy||a===C.BoxPlotMultiFieldsAndSplitBy||a===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&(e[O.boxPlot.boxPlotMeanLineMarkerId]=!0)}function ES(t){let{queryResponse:e,chartConfig:r,maxCategoryCount:a}=t,i=X(r.series);return a&&Number.isFinite(a)&&a<e.length&&Vp.includes(i)?e.slice(0,a):e}function LS(t){let{attributes:e,uniqueCategoryList:r,maxCategoryCount:a,x:i,chartSubType:n}=t,s=!1;if(i&&a&&Number.isFinite(a)&&!Vp.includes(n))if((n===C.BarAndLineFromFields||n===C.PieFromFields)&&Object.keys(e).length>a)Object.keys(e).filter(o=>o!==j.EnvelopeAggregate).forEach((o,l)=>{l>=a&&delete e[o]});else{let o=e[i];o!==void 0&&(r.size===a&&!r.has(o)?s=!0:r.add(o))}return s}function DS(t){let{attributes:e,xValue:r,yValue:a,x:i,y:n,subtypeInfo:s,fieldList:o,chartType:l,chartSubType:d,xAxisValueFormat:u,yAxisValueFormat:c}=t,f,p;d!==C.PieFromFields&&((typeof r=="string"||typeof r=="number")&&(f=Cn({subtypeInfo:s,fieldList:o,fieldName:i,fieldValueToMatch:r})),l===b.HeatSeries&&typeof n=="string"&&(typeof a=="string"||typeof a=="number")&&(p=Cn({subtypeInfo:s,fieldList:o,fieldName:n,fieldValueToMatch:a})),f!==void 0&&f!==r&&(typeof f!="string"||!Ye(u))&&(e[O.originalCategoryValue]=e[i],e[i]=f),typeof n=="string"&&!Ye(c)&&p!==void 0&&p!==a&&(e[O.originalYCategoryValue]=e[n],e[n]=p))}function Gp(t){let{queryObject:e,queryResponse:r,chartConfig:a,mapToStatField:i,splitByField:n,isDateField:s,isTimeBinningSeries:o,subtypeInfo:l,resultLimit:d,showMean:u,chartLimits:c,fieldList:f}=t,{series:p}=a,h=X(p),m=Y(p),{x:y}=p[0],g="y"in p[0]?p[0].y:void 0,v=p[0].query?.outStatistics??[],w=ar(a?.axes?.[0]?.valueFormat),{originalYCategoryValue:x,originalCategoryValue:F,originalDateValue:A}=O,q=[],L=0,P=new Set,{maxCategoryCount:B}=Xr(c),N=ES({queryResponse:r,chartConfig:a,maxCategoryCount:B});for(let R=0;N[R]&&R<N.length&&!(d!==void 0&&L>=d);R+=1){L+=PS(h,a);let $=N[R],E={...$.attributes};if(LS({attributes:E,uniqueCategoryList:P,maxCategoryCount:B,x:y,chartSubType:h}))continue;if(TS(E,p),h===C.PieFromFields||h===C.BarAndLineFromFields)E=FS(E,v);else if(typeof g=="string"&&h===C.BarAndLineSplitByNoAggregation){let z=ue(e),{idField:ne,isTraditionalTypeOID:Re}=Zt(z);IS({dataItem:E,splitByField:n,y:g,fieldOID:Re?ne:void 0})}else g&&(h===C.BoxPlotMonoField||h===C.BoxPlotMonoFieldAndCategory||h===C.BoxPlotMonoFieldAndSplitBy||h===C.BoxPlotMonoFieldAndCategoryAndSplitBy)&&OS(E,typeof g=="string"?g:g[0]);AS({attributes:E,showMean:u,chartSubType:h});let k=E[y],Q=typeof g=="string"?E[g]:void 0;k===null&&p[0]?.query?.fetchNullValues===!0&&h!==C.PieFromFields&&(E[F]=null,k=O.nullValue),w||(s&&typeof k=="string"?k=new Date(k).valueOf():o&&(k=vS(E)));let{outStatisticFieldName:H}=Be.outStatistics??{},{featureExtent:V,featureExtentKey:Z}=Hp({feature:$,splitByField:n,chartSubType:h});if(V&&(E[Z]=V),h===C.BarAndLineSplitBy&&H!==void 0){let z=E[n],ne=i?.get(z);ne!==void 0&&(z===n&&(E[O.technicalFieldSplitByField]=E[ne]),E[ne]=E[H]),delete E[H]}else(h===C.PieNoAggregation||h===C.BarAndLineNoAggregation||h===C.BarAndLineSplitByNoAggregation)&&(s?E[A]=k:k!==O.nullValue&&(E[F]=k),Tb({isXAxis:!0,chartType:m,valueFormat:a.axes?.[0]?.valueFormat})&&(E[O.xAxisField]=`${k}-${R}`),E[Be.uniqueIdsName]=$.getObjectId());m===b.BoxPlotSeries&&(E=CS(p,E)),m===b.PieSeries&&typeof k=="number"&&(E[F]===void 0&&(E[F]=E[y]),k=`${k}`),k!==void 0&&(E[F]===void 0&&(E[F]=E[y]),E[y]===null?E[y]=m===b.HeatSeries?"null":O.nullValue:E[y]=k,DS({attributes:E,xValue:k,yValue:Q,x:y,y:g,subtypeInfo:l,fieldList:f,chartType:m,chartSubType:h,xAxisValueFormat:a.axes?.[0].valueFormat,yAxisValueFormat:a.axes?.[1]?.valueFormat}),m===b.HeatSeries&&typeof g=="string"&&E[g]===null&&(E[g]="null",E[x]=null),E[O.xAxisField]===void 0&&(E[O.xAxisField]=E[y])),E=xS(E,a),q.push(E)}return q}async function In(t){let{queryObject:e,uniqueQuery:r,chartConfig:a,mapToStatField:i,abortKey:n,elementCount:s,isTimeBinningSeries:o,showMean:l,chartLimits:d,usePopupTemplateFieldsInfo:u,preFetchedQueryResponse:c}=t,{series:f}=a,p=X(f),h=[],m=p===C.BarAndLineSplitBy||p===C.BarAndLineSplitByNoAggregation?Xe(f[0].query?.where):"",y=c??await Bt({queryObject:e,queryConfig:r,featureCount:s,abortKey:n}),g=await pt(e,u),v=gw(g??[]),{x:w}=f[0],x=v.includes(w),F=To(e);return h=Gp({queryObject:e,queryResponse:y,chartConfig:a,mapToStatField:i,splitByField:m,isDateField:x,isTimeBinningSeries:o,subtypeInfo:F,fieldList:g,resultLimit:r.num,showMean:l,chartLimits:d}),p!==C.BarAndLineSplitByNoAggregation&&p!==C.BarAndLineFromFields&&(m!==""&&(h=ta({data:h,x:w,splitByField:m})),h=wS(h,f)),h}async function Qp(t){let{chartConfig:e,queryObject:r,queryConfig:a,numberMaxOfFeaturesToFetch:i,behaviorAfterLimit:n,isGaugeByFeature:s}=t,{series:o}=e,l=X(o),{x:d}=o[0],u=o.length,c,f;if(l===C.BoxPlotMonoField||l===C.BoxPlotMonoFieldAndSplitBy?(f=u,c=f):l===C.BoxPlotMultiFields||l===C.BoxPlotMultiFieldsAndSplitBy?(f=e.series[0].y.length,c=f):l===C.PieFromFields||l===C.BarAndLineFromFields?(f=o[0].query?.outStatistics?.filter(p=>p.statisticType!==j.EnvelopeAggregate).length??0,c=f):c=await XS({queryObject:r,x:d,chartSubType:l,queryConfig:a,isGaugeByFeature:s}),c!==void 0){let p=l===C.BoxPlotMonoField||l===C.BoxPlotMonoFieldAndCategory||l===C.BoxPlotMonoFieldAndSplitBy;f=io(l)&&!p?c*u:c}return n===Lr.RenderUpToTheLimit&&f!==void 0&&i!==void 0&&i<f&&(f=i,c=Math.ceil(f/u)),{categoryOrDateCount:c,elementCount:f}}function sp(t){let{orderBy:e,axisFormatOptions:r}=t;return e!==void 0&&r!==void 0&&(!Array.isArray(e)||r?.type===b.CategoryAxisFormat)}function op(t,e,r){let a=0;if(Array.isArray(r)){let i=t?.toString()??"",n=e?.toString()??"",s=r.indexOf(i),o=r.indexOf(n);s===-1&&(s=r.length),o===-1&&(o=r.length),a=s-o}else r===ze.Descending?typeof t=="string"&&typeof e=="string"?a=e.localeCompare(t,void 0,{numeric:!0}):a=(Number(e)||0)-(Number(t)||0):r===ze.Ascending&&(typeof t=="string"&&typeof e=="string"?a=t.localeCompare(e,void 0,{numeric:!0}):a=(Number(t)||0)-(Number(e)||0));return a}function NS(t){let{arrayToSort:e,chartConfig:r,dataOrderParameters:a}=t,i,n,s=!1,o=!1,l=!1;a&&a.length>=2&&e.length>1&&([i,n]=a,s=i&&i.sortingField.length>0&&sp({orderBy:i.orderBy,axisFormatOptions:r.axes?.[0]?.valueFormat}),o=n&&n.sortingField.length>0&&sp({orderBy:n.orderBy,axisFormatOptions:r.axes?.[1]?.valueFormat}),l=s||o),l&&e.sort((d,u)=>{let c=0;if(s&&i?.sortingField){let f=i.orderBy;c=op(d[i.sortingField],u[i.sortingField],f)}if(c===0&&o&&n?.sortingField){let f=n.orderBy;c=op(d[n.sortingField],u[n.sortingField],f)}return c})}function sa(t){let{arrayToSort:e,chartConfig:r,fieldList:a,isTimeBinningSeries:i}=t;if(i!==!0){let{series:n}=r,s=X(n),o=Y(n),l=dr(r),d=so(r);if(Ii(r)&&e!==void 0)NS({arrayToSort:e,chartConfig:r,dataOrderParameters:d});else if(d?.[0]!==void 0&&e!==void 0&&e.length>1){let{orderBy:u}=d[0],{sortingField:c}=d[0],f=r.orderOptions?.data?.orderType===st.Category,p=d[0].preferLabel!==!1,h=s===C.BarAndLineFromFields||s===C.PieFromFields||s===C.BoxPlotMultiFields||s===C.BoxPlotMultiFieldsAndSplitBy,m=h||o===b.PieSeries,y=s===C.PieNoAggregation||s===C.BarAndLineNoAggregation||s===C.BarAndLineSplitByNoAggregation;if(f&&m&&(!p||(o===b.LineSeries||o===b.RadarSeries)&&l===b.NumberAxisFormat)&&(c=O.originalCategoryValue),Array.isArray(u))vv({arrayToSort:e,orderBy:u,sortingField:c,fieldList:a,isByFieldsChart:h,preferLabel:p});else{let g=l===b.DateAxisFormat&&f;vn({arrayToSort:e,orderBy:u,sortingField:c,forceAscendingOrder:g,isNonAggregated:y,sortByCategory:f,preferLabel:p,isPieOrByFieldsChart:m})}}}}async function lo(t){let{chartConfig:e,queryConfig:r,fetchFullBoxPlotData:a,options:i,queryObject:n,abortKey:s,fieldList:o,preFetchedQueryResponse:l}=t,d="showMean"in e&&typeof e.showMean=="boolean"?e.showMean:!1,{chartLimits:u,usePopupTemplateFieldsInfo:c}=i??{},f=i?.replaceNoValueCategoryWithZero??O.options.replaceNoValueCategoryWithZero,{behaviorAfterLimit:p}=u??{},h={valid:!0},m,y=!1,g=e.series,v=g[0],w=X(e.series);if(v!==void 0&&n!==void 0){let x=Y(g),{uniqueQuery:F,mapToStatField:A}=await mo({chartConfig:e,queryObject:n,queryConfig:r,fetchFullBoxPlotData:a,options:i}),{categoryOrDateCount:q,elementCount:L}=await Qp({chartConfig:e,queryObject:n,queryConfig:r,behaviorAfterLimit:p,numberMaxOfFeaturesToFetch:F.num}),P=!Number.isFinite(L),B=P||nr({count:L??0,seriesCount:g.length,chartType:x,chartLimits:u});if(B&&(m=await In({queryObject:n,uniqueQuery:F,chartConfig:e,preFetchedQueryResponse:l,mapToStatField:A,elementCount:L,isTimeBinningSeries:!1,showMean:d,chartLimits:u,usePopupTemplateFieldsInfo:c,abortKey:s}),dt(e)&&m!==void 0&&(h.data=await Xv({data:m,queryObject:n,fetchFullBoxPlotData:a,uniqueQuery:F,chartConfig:e,elementCount:L,chartLimits:u,abortKey:s}),u?.maxBoxPlotOutlierLimit!==void 0&&(B=(h.data.outliers??[]).length<=u.maxBoxPlotOutlierLimit,y=!B)),P&&(q=m.length,L=io(w)?q*g.length:q,B=nr({count:L,seriesCount:g.length,chartType:x,chartLimits:u})),B)){if(x===b.PieSeries){w===C.PieFromFields&&(m=Sn({dataToConvert:m[0],x:ot,y:Wt,fieldList:o}));let N="";w===C.PieFromFields?N=Wt:"y"in v&&typeof v.y=="string"&&(N=v.y),Ov(m,N)?h.data={dataItems:m}:jv(h,oe.PieChartMixOfNegativePositiveSlices)}else if((x===b.RadarSeries||x===b.BarSeries||x===b.LineSeries||x===b.ComboLineAndBarSeries)&&(w===C.BarAndLineFromFields&&"y"in v&&typeof v.y=="string"?m=Sn({dataToConvert:m[0],x:v.x,y:v.y,fieldList:o}):m=await X0({queryObject:n,seriesData:m,chartConfig:e,queryConfig:r,categoryOrDateCount:q,behaviorAfterLimit:p,abortKey:s}),L=io(w)?m.length*g.length:m.length,B=nr({count:L,seriesCount:g.length,chartType:x,chartLimits:u}),B)){f&&(m=eS(m,e)),sa({arrayToSort:m,chartConfig:e,fieldList:o});let N={};if(Vt(v)){let{size:R,unit:$}=v.temporalBinning??{};R!==void 0&&$!==void 0&&(N={size:R,unit:$})}h.data={dataItems:m,timeIntervalInfo:N}}}B||wn({dataInfo:h,chartType:x,subError:{outlierLimit:y}}),h.count=L}return h}function BS(t){let e,{start:r,end:a}=wo({field:"",unit:t,addIntervalStatement:!1});return a&&(e=Array.from({length:a+(r===0?1:0)},(i,n)=>(n+(r??1)).toString())),e}function MS(t){return t.hideEmptyRowsAndColumns===!0&&(t.nullPolicy!==nt.Zero||t.series[0].query?.outStatistics?.[0].statisticType===j.Count)}function $S(t){let{dataItems:e,valueField:r,filterOutZero:a}=t,i=[null];a&&i.push(0);let n=new Set(e.filter(o=>!i.includes(o[r])).map(o=>o[re.xField])),s=new Set(e.filter(o=>!i.includes(o[r])).map(o=>o[re.yField]));return e.filter(o=>n.has(o[re.xField])&&s.has(o[re.yField]))}async function qS(t){let{dataItems:e,xUniqueValues:r,yUniqueValues:a,valueField:i,emptyCellValue:n,x:s,y:o,queryObject:l}=t,d=[],u=new Set,c=To(l),f=l?await pt(l):[];for(let p of e){let h=p[O.originalCategoryValue]!==void 0?p[O.originalCategoryValue]:p[re.xField],m=p[O.originalYCategoryValue]!==void 0?p[O.originalYCategoryValue]:p[re.yField];u.add(`${h}|${m}`)}for(let p of r){let h=String(p);for(let m of a){let y=String(m);if(!u.has(`${h}|${y}`)){let g=Cn({subtypeInfo:c,fieldList:f,fieldName:s,fieldValueToMatch:h})??p,v=Cn({subtypeInfo:c,fieldList:f,fieldName:o,fieldValueToMatch:y})??m;d.push({[O.originalCategoryValue]:p===null?null:p,[O.originalYCategoryValue]:m===null?null:m,[re.xField]:p===null?"null":g,[re.yField]:m===null?"null":v,[i]:n})}}}return d}function lp(t){let{day:e,month:r,includeLeapDay:a}=t;return r===2&&e>(a?29:28)||[4,6,9,11].includes(r)&&e>30}async function Zp(t){let{chartConfig:e,queryConfig:r,queryObject:a,completeHeatChartDataset:i=!0,errorStrings:n,options:s,abortKey:o}=t,l={valid:!0},d;if(Ii(e)){let{nullPolicy:u}=e,c=e.series[0],{x:f,y:p,query:h,xTemporalBinning:m,yTemporalBinning:y}=c,g=h?.outStatistics?.[0]?.outStatisticFieldName??"",v=h?.outStatistics?.[0]?.statisticType??j.Count;r?.outStatistics?.[0]&&Dp(r.outStatistics[0])&&!("statisticParameters"in r?.outStatistics[0])&&(r.outStatistics[0].statisticParameters={value:O.defaultStatParameterValue});let w=MS(e),x=re.valueField,F=u===nt.Zero?0:null;if(Pp(e)){let A=await JS({chartConfig:e,queryObject:a,queryConfig:r,returnFeaturesExtent:s?.returnFeaturesExtent,errorStrings:n,abortKey:o});if(!nr({count:A?.length??0,seriesCount:1,chartType:b.HeatSeries,chartLimits:s?.chartLimits}))wn({dataInfo:l,chartType:b.HeatSeries});else if(typeof A?.[0]=="object"){let q=await pt(a,s?.usePopupTemplateFieldsInfo),L=To(a);d=Gp({queryObject:a,queryResponse:A,chartConfig:e,splitByField:"",isDateField:!1,isTimeBinningSeries:!1,chartLimits:s?.chartLimits,resultLimit:r.num,subtypeInfo:L,fieldList:q});let P=await eo({queryObject:a,queryConfig:r,category:f,abortKey:o}),B=await eo({queryObject:a,queryConfig:r,category:p,abortKey:o});d.length!==P?.length*B?.length&&(d=[...d,...await qS({dataItems:d,xUniqueValues:P,yUniqueValues:B,valueField:x,emptyCellValue:F,x:f,y:p,queryObject:a})],w&&(d=$S({dataItems:d,valueField:x,filterOutZero:v===j.Count})))}}else{let A=await KS({chartConfig:e,queryObject:a,queryConfig:r,errorStrings:n}),q=y?BS(y.unit):await eo({queryObject:a,queryConfig:r,category:p,abortKey:o}),L=0;d=A?.features.flatMap(P=>{let B=[],{attributes:N,stackedAttributes:R}=P,$=[];if(R?.forEach(E=>{let k=`${E[p]}`;$.push(k),B.push({[re.xField]:`${N.lowerBoundary}`,[re.yField]:k,[x]:E[g]})}),i&&q&&$.length!==q?.length){let E=q.filter(k=>!$.includes(k.toString()));w&&(E.length!==q.length||$.length===0)||E.forEach(k=>{Number.isFinite(Number(N.lowerBoundary))&&Number.isFinite(Number(k))&&(m?.unit===bt.DayOfMonth&&y?.unit===bt.MonthOfYear&&lp({day:Number(N.lowerBoundary),month:Number(k),includeLeapDay:e.includeLeapDay})||y?.unit===bt.DayOfMonth&&m?.unit===bt.MonthOfYear&&lp({day:Number(k),month:Number(N.lowerBoundary),includeLeapDay:e.includeLeapDay}))||B.push({[re.xField]:`${N.lowerBoundary}`,[re.yField]:k,[x]:u===nt.Zero?0:null})})}return L+=B.length,B}),nr({count:L,seriesCount:1,chartType:b.HeatSeries,chartLimits:s?.chartLimits})||wn({dataInfo:l,chartType:b.HeatSeries})}}return d&&(sa({arrayToSort:d,chartConfig:e}),l.data={dataItems:d}),l}function RS(t){let{chartConfig:e,options:r,data:a}=t,i=e.series,n=a,s=Tp(e,r?.chartLimits);if(s!==void 0){let o=rt(i);if(o.length===1)n=a.filter(l=>Number.isFinite(l[o[0]])).slice(0,s);else if(a.length*o.length>s){let l=[],d=0,u=0;for(;d<=s&&u<a.length;){let c=a[u];if(l.push(c),d+=o.filter(f=>Number.isFinite(c[f])).length,d>s){let f=d-s,p=o.length-1;for(;f!==0&&p>=0;){let h=o[p];Number.isFinite(c[h])&&(delete c[h],f-=1),p-=1}}u+=1}n=l}}return n}async function bo(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,preFetchedQueryResponse:s}=t,{chartLimits:o,usePopupTemplateFieldsInfo:l}=n??{},{behaviorAfterLimit:d}=o??{},u=e.series,c=u[0],{x:f}=c,p=Xe(c.query?.where),h={valid:!0},m;if(Vt(c)){let{temporalBinning:y}=c;if(a&&y){let{unit:g,size:v}=y,w=1,x={unit:g,size:v},F=!1,A=bS({series:c,isTimeBinningSeries:!0,setTimeBinningInfoWhenNotProvided:n?.setTimeBinningInfoWhenNotProvided}),q=!ra(a)||A?await lS({queryObject:a,queryConfig:r,x:f}):void 0;A&&q&&q.numberOfFeatures>0&&q.dateRange.dateMaxTimestamp!==void 0&&q.dateRange.dateMinTimestamp!==void 0&&(x=gS(q),(await pt(a)).find(N=>N.name===f)?.type===Ie.DateOnly&&x.unit!==void 0&&[G.Hour,G.Minute,G.Second].includes(x.unit)&&(x.unit=G.Day,x.size=1),y.size=x.size,y.unit=x.unit);let{uniqueQuery:L,mapToStatField:P}=await mo({chartConfig:e,queryConfig:r,queryObject:a,timeIntervalInfo:x,options:n}),B=nr({count:w??0,seriesCount:u.length,chartType:b.LineSeries,chartLimits:o});if(B){if(ra(a)){let N=s?.[0]instanceof nb?s:await iw({queryObject:a,dateField:f,splitByField:p,queryConfig:L,temporalBinning:y}),R="y"in c&&typeof c.y=="string"?c.y:void 0;if(m=await hS({chartConfig:e,queryResults:N,mapToStatField:P,splitByField:p,x:f,y:R,nullPolicy:y.nullPolicy,queryObject:a}),!nr({count:m.length,seriesCount:u.length,chartType:b.LineSeries,chartLimits:o})){let $=rt(u),E=m.filter(k=>$.some(Q=>Q in k&&Number.isFinite(k[Q]))).length;nr({count:E,seriesCount:u.length,chartType:b.LineSeries,chartLimits:o})||(B=!1)}}else if(q?.dateRange.dateMinTimestamp&&q.dateRange.dateMaxTimestamp){let{numberOfFinalBinsWithinDataRange:N}=zp({dateMinTimestamp:q.dateRange.dateMinTimestamp,dateMaxTimestamp:q.dateRange.dateMaxTimestamp,timeIntervalInfo:x});w=N*u.length,w=_p(w,x.unit),m=await In({queryObject:a,uniqueQuery:L,chartConfig:e,mapToStatField:P,elementCount:w,chartLimits:o,isTimeBinningSeries:!0,usePopupTemplateFieldsInfo:l,abortKey:i}),m=await mS({queryObject:a,queryConfig:r,queryResults:m,x:f,seriesConfig:u,dateRange:q.dateRange,timeIntervalInfo:x})}Jp(a)&&m&&m?.length===tS&&(F=!0),d===Lr.RenderUpToTheLimit&&m&&(m=RS({chartConfig:e,options:n,data:m}))}B||(h.valid=!1,h.invalidType=oe.LineChartExceedsLimit),m&&m.length>0&&(m[m.length-1][O.lastTemporalBin]=!0),h.data={dataItems:m,timeIntervalInfo:x,serverLimitReached:F},h.count=w}}return h}async function kS(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n}=t,s=Xi(e),{setTimeBinningInfoWhenNotProvided:o,chartLimits:l,usePopupTemplateFieldsInfo:d}=n??{},u={valid:!0};if(a!==void 0){let c=e.series,f=ei({seriesConfig:c[0],xAxisValueFormatType:dr(e),setTimeBinningInfoWhenNotProvided:o}),{uniqueQuery:p,mapToStatField:h}=await mo({chartConfig:e,queryObject:a,queryConfig:r,fetchFullBoxPlotData:!s,options:n}),m=await In({queryObject:a,uniqueQuery:p,elementCount:1,chartConfig:e,mapToStatField:h,isTimeBinningSeries:f,showMean:s,chartLimits:l,usePopupTemplateFieldsInfo:d,abortKey:i});dt(e)&&(m=Ep({chartConfig:e,data:m,calculateZScore:!1})),u.data={dataItems:m}}return u}async function jS(t){let{chartConfig:e,queryConfig:r,queryObject:a,abortKey:i,options:n,errorStrings:s}=t,o={valid:!0};if(dt(e)){let l=dt(e)?e.showMean:!1;o=await yo({queryObject:a,chartConfig:e,queryConfig:r,options:n,errorStrings:s,abortKey:i}),l&&o.data&&"dataItems"in o.data&&"meanLines"in o.data&&o.data.meanLines&&(o.data.dataItems=[...o.data.dataItems,...o.data.meanLines])}return o}function Kp(t){return t?.[Ji.defaultGroupOfSlicesId]===!0}function MT(t,e){let r=t.filter(a=>!Kp(a));return!er(r,e)}function WS(t,e){let r=t.reduce((a,i)=>{if(i[Ji.defaultGroupOfSlicesId]===!0){let n=i[O.pieChart.technicalFieldGroupedSlices];n!==void 0&&n.forEach(s=>{a.push(s)})}else a.push(i);return a},[]);return sa({arrayToSort:r,chartConfig:e}),r=Cp({data:{dataItems:r},seriesConfig:e.series})?.dataItems??[],r}var _t={DataProcessComplete:"arcgisChartsJSDataProcessComplete",DataFetchComplete:"arcgisChartsJSDataFetchComplete",InvalidConfigWarningRaise:"arcgisChartsJSInvalidConfigWarningRaise",LegendItemVisibilityChange:"arcgisChartsJSLegendItemVisibilityChange",RenderingComplete:"arcgisChartsJSRenderingComplete",SeriesColorsChange:"arcgisChartsJSSeriesColorChange",AxesMinMaxChange:"arcgisChartsJSAxesMinMaxChange",SelectionComplete:"arcgisChartsJSSelectionComplete",TooManySelectedElements:"arcgisChartsJSTooManySelectedElements",BadDataWarningRaise:"arcgisChartsJSBadDataWarningRaise",SeriesOrder:"arcgisChartsJSSeriesOrder"};function zt(t){return{detail:t,composed:!0,cancelable:!0,bubbles:!0}}function $T(t){let{data:e,seriesConfig:r,htmlContainer:a}=t;if(a&&e){let i=Cp({data:e,seriesConfig:r});a.dispatchEvent(new window.CustomEvent(_t.DataProcessComplete,zt(i)))}}function qT(t){let{data:e,chartConfig:r,htmlContainer:a}=t;if(a&&e){let i={...e};Y(r.series)===b.PieSeries&&"dataItems"in i&&(i.dataItems=WS(i.dataItems,r)),a.dispatchEvent(new window.CustomEvent(_t.DataFetchComplete,zt(i)))}}function RT(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.LegendItemVisibilityChange,zt(t)))}function kT(t){t&&t.dispatchEvent(new window.CustomEvent(_t.RenderingComplete,zt()))}function jT(t){let{data:e,htmlContainer:r}=t;r&&r.dispatchEvent(new window.CustomEvent(_t.SelectionComplete,zt(e)))}function WT(t){t&&t.dispatchEvent(new window.CustomEvent(_t.TooManySelectedElements,zt()))}function VT(t){let{data:e,htmlContainer:r,chartId:a,colorMatchApplied:i}=t;r&&r.dispatchEvent(new window.CustomEvent(_t.SeriesColorsChange,zt({chartId:a,data:e,colorMatchApplied:i})))}function _T(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.AxesMinMaxChange,zt(t)))}function zT(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.BadDataWarningRaise,zt(t)))}function UT(t,e){e&&e.dispatchEvent(new window.CustomEvent(_t.InvalidConfigWarningRaise,zt(t)))}function VS(t){let{data:e,htmlContainer:r}=t;r&&e&&r.dispatchEvent(new window.CustomEvent(_t.SeriesOrder,zt(e)))}var ut=class extends Error{constructor(e,r,a){super(r),this.name=e,this.details=a}},Ct={Default:"defaultError",LayerLoadFailure:"layerLoadFailure",QueryFeaturesError:"queryFeaturesError",ChartDisposed:"ChartDisposeError",LayerFieldsNotFound:"layerFieldsNotFound"};function HT(t){return t!==void 0&&(!("url"in t)||!t.url)}function Er(t){return t!==void 0&&"layer"in t}function Jp(t){return t!==void 0&&"type"in t&&t.type==="feature"}function _S(t){return t!==void 0&&"type"in t&&t.type==="subtype-group"}function vo(t){return t!==void 0&&"type"in t&&t.type==="subtype-sublayer"}function zS(t){return Jp(t)||vo(t)}function et(t){return vo(t)?t.parent:t}function Yp(t){return t.capabilities?.query?.supportsDistance||et(t).sourceJSON?.advancedQueryCapabilities?.supportsQueryWithDistance===!0}function US(t,e){return t.capabilities?.queryAttributeBins?.supportsFixedInterval===!0&&t.capabilities?.queryAttributeBins?.supportsStackBy&&!Er(e)}function ra(t,e){return t!==void 0&&(Er(t)||"capabilities"in t&&t.capabilities?.queryAttributeBins?.supportsDate===!0&&(Ee(e)||t.capabilities?.queryAttributeBins?.supportsStackBy))}function HS(t){let e=!1,r=et(ue(t)).sourceJSON;if(r){let a=r.queryBinsCapabilities?.supportsFixedIntervalBin,i=r.queryBinsCapabilities?.supportedStatisticTypes,n=[j.Maximum,j.Count].every(s=>i?.includes(s.toUpperCase())||i?.includes(s.toLowerCase()));e=a&&n}return e}function GT(t){let e;return Er(t)?e=t.layer:e=t,e}function ue(t){let e;return Er(t)?e=t.layer:e=t,e}function GS(t){let e=!1,r=et(t).sourceJSON?.advancedQueryCapabilities?.supportedSpatialAggregationStatistics??[],a=t.capabilities?.query.supportedSpatialAggregationStatistics??{};return e=r.includes("EnvelopeAggregate")||"envelope"in a&&a.envelope===!0,e}function QT(t){let{chartConfig:e,queryObject:r}=t,a,i=ue(r);return i&&(a={id:i.id,layerType:"ArcGISFeatureLayer"},i.url&&(a.url=i.url)),{...e,iLayer:a}}var ia=new Map;function QS(t){let e;switch(t){case Wr.Feet:e="esriSRUnit_Foot";break;case Wr.Miles:e="esriSRUnit_StatuteMile";break;case Wr.NauticalMiles:e="esriSRUnit_NauticalMile";break;case Wr.USNauticalMiles:e="esriSRUnit_USNauticalMile";break;case Wr.Meters:e="esriSRUnit_Meter";break;case Wr.Kilometers:e="esriSRUnit_Kilometer";break}return e}async function ZS(t){let{queryObject:e,queryConfig:r,outputFormat:a,dataFormat:i,outAnalytics:n}=t,{where:s,geometry:o,distance:l,units:d,timeExtent:u}=r,c,f=ue(e),p=et(f),h={where:ve([s,p.definitionExpression])},m={query:h},y=So(o)?.extent?.toJSON();if(y!==void 0){let v=QS(d),{xmin:w,ymin:x,xmax:F,ymax:A}=y;h.geometryType="esriGeometryEnvelope",h.geometry=`${w},${x},${F},${A}`,l!==void 0&&(h.distance=l.toString()),v!==void 0&&(h.units=v,o?.spatialReference?.wkid!=null&&(h.inSR=o.spatialReference.wkid.toString()))}u&&(h.time=`${u[0]},${u[1]}`);let g=`${p.url}/${p.layerId}/queryAnalytic?f=${a}&dataFormat=${i}&outAnalytics=${n}`;try{c=(await bn(g,m)).data?.features?.[0]?.attributes}catch(v){let w=(await $t(yt(document.documentElement).t9nLocale,Pt("./assets/common/t9n"),"messages.")).errorStrings;throw new ut(Ct.QueryFeaturesError,w.errors.queryError,v)}return c}function Xp(t,e){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`,stackAlias:`charts_stack_alias_${e}`}}async function KS(t){let{chartConfig:e,queryObject:r,queryConfig:a,errorStrings:i}=t,n,s=ue(r),o=US(s,r);if(o&&r&&"queryAttributeBins"in r){let{x:l,y:d,xTemporalBinning:u,yTemporalBinning:c}=e.series[0],{outTimeZone:f,firstDayOfWeek:p,includeLeapDay:h}=e,m=await cw({queryObject:r,queryConfig:a,x:l,y:d,xTemporalBinning:u,yTemporalBinning:c,outTimeZone:f,firstDayOfWeek:p,includeLeapDay:h});try{n=await r.queryAttributeBins(m)}catch(y){throw new ut(Ct.QueryFeaturesError,i.errors.queryError,y)}}if(!o)throw new ut(Ct.QueryFeaturesError,i.errors.queryBinsNotSupported,i.errors.queryBinsNotSupported);return n}async function JS(t){let{chartConfig:e,queryObject:r,queryConfig:a,returnFeaturesExtent:i,errorStrings:n,abortKey:s}=t,o=e.series[0],l,{x:d,y:u}=o;a.groupByFieldsForStatistics=[d],d!==u&&a.groupByFieldsForStatistics.push(u),a&&i===!0&&!a.outStatistics?.some(c=>c.statisticType===j.EnvelopeAggregate)&&a.outStatistics?.push({statisticType:j.EnvelopeAggregate,onStatisticField:"1"});try{l=await Bt({queryObject:r,queryConfig:a,abortKey:s})}catch(c){throw new ut(Ct.QueryFeaturesError,n.errors.queryError,c)}return l}async function YS(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l,errorStrings:d}=t,u;if(e&&"queryAttributeBins"in e&&Number.isFinite(a)&&Number.isFinite(l)&&Number.isFinite(i)&&Number.isFinite(n)&&a>0&&l>0){let c=pw({queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l});try{u=await e.queryAttributeBins(c)}catch(f){throw new ut(Ct.QueryFeaturesError,d.errors.queryError,f)}}return u}async function XS(t){let{queryConfig:e,x:r,queryObject:a,chartSubType:i,isGaugeByFeature:n}=t,s;if(a!==void 0){let o=ue(a),{idField:l,isTraditionalTypeOID:d}=Zt(o),u=Co({queryObject:a,queryConfig:e});u.outFields=n||i===C.PieNoAggregation||i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation?[d?l:"*"]:[r],u.outFields?.[0]===r&&(u.returnDistinctValues=!0);try{s=await a.queryFeatureCount(u)}catch{s=Number.NaN}}return s}async function oa(t){let{queryObject:e,queryConfig:r,abortKey:a}=t,{outStatistics:i}=r,n=new Map;if(e!==void 0&&i!==void 0&&i.length>0){let s=i.map(u=>{let{statisticType:c,onStatisticField:f,outStatisticFieldName:p}=u;return{statisticType:c,onStatisticField:f,outStatisticFieldName:p?.toUpperCase()}});r.outStatistics=s,delete r.num,delete r.orderByFields;let o=Co({queryObject:e,queryConfig:r}),l;try{l=await e.queryFeatures(o,{signal:a!==void 0?ia.get(a)?.signal:void 0})}catch(u){if(!po.isAbortError(u)){let c=(await $t(yt(document.documentElement).t9nLocale,Pt("./assets/common/t9n"),"messages.")).errorStrings;throw new ut(Ct.QueryFeaturesError,c.errors.queryError,u)}}let d=l?.features?.[0]?.attributes;d!==void 0&&i.forEach(u=>{let{outStatisticFieldName:c}=u;if(c!==void 0){let f=d[c.toLowerCase()]??d[c.toUpperCase()]??d[c];f!==void 0&&n.set(c,f)}})}return n}async function ef(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:i}=t,n=[],s=ue(e);if(e!==void 0){let o=fw(s),l=Co({queryObject:e,queryConfig:r,maxRecordCountFactor:o});try{if(a===!0)if("queryObjectIds"in e)n=await e.queryObjectIds(l);else{let{idField:d,isTraditionalTypeOID:u}=Zt(s),c=u?d:"*";l.outFields=[c],n=(await e.queryFeatures(l,{signal:i!==void 0?ia.get(i)?.signal:void 0})).features.map(f=>f.getObjectId())}else n=(await e.queryFeatures(l,{signal:i!==void 0?ia.get(i)?.signal:void 0})).features}catch(d){if(!po.isAbortError(d)){let u=(await $t(yt(document.documentElement).t9nLocale,Pt("./assets/common/t9n"),"messages.")).errorStrings;throw new ut(Ct.QueryFeaturesError,u.errors.queryError,d)}}}return n}async function ew(t){let e=[],{featureCount:r,maxRecords:a,queryConfig:i}=t,n=[],s=0,o=i?.start??0;for(;s<Be.maxParallelRequests&&o<r;){let l={...t};l.queryConfig={...i,start:o,num:Math.min(a,r-o)},e.push(ef(l)),o+=a,s+=1}return n=(await Promise.all(e)).flat(),n}async function Bt(t){let{queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,featureCount:i,noBatch:n,abortKey:s}=t,o=[],l=ue(e);if(e!==void 0){let d=i??1,u=rf(l);if(n!==!0&&d>u&&l.capabilities?.query.supportsPagination){let c=0,f=0,p=Math.ceil(d/u),h=Math.ceil(p/Be.maxParallelRequests),m=[];for(;f<h;){c=f*Be.maxParallelRequests*u;let y=ew({queryConfig:{...r,start:c},queryObject:e,maxRecords:u,featureCount:d,returnUniqueIdsOnly:a,abortKey:s});m.push(y),f+=1}o=(await Promise.all(m)).flat()}else(Number.isNaN(d)||d>=0)&&(o=await ef({queryObject:e,queryConfig:r,returnUniqueIdsOnly:a,abortKey:s}))}return o}async function tw(t){let{queryObject:e,queryConfig:r,uniqueFeature:a,abortKey:i}=t,n={...r,returnDistinctValues:!0};return await Bt({queryObject:e,abortKey:i,queryConfig:n,returnUniqueIdsOnly:!0,featureCount:a===!0?1:void 0})}function rw(t){if(t!==void 0){let e=ia.get(t);e!==void 0&&e.abort(),ia.set(t,new AbortController)}}function tf(t){return{lowerBoundaryAlias:`charts_lower_boundary_${t}`,upperBoundaryAlias:`charts_upper_boundary_${t}`}}async function iw(t){let{queryObject:e,dateField:r,splitByField:a,queryConfig:i,temporalBinning:n}=t,s=[],o;if(n){let{unit:l}=n;try{if(l){let d=et(ue(e));if(o=ra(d,a),o&&e&&"queryAttributeBins"in e){let u=await dw({queryObject:e,queryConfig:i,temporalBinning:n,dateField:r,splitByField:a});s=(await e.queryAttributeBins(u)).features}}}catch(d){let u=(await $t(yt(document.documentElement).t9nLocale,Pt("./assets/common/t9n"),"messages.")).errorStrings;throw new ut(Ct.QueryFeaturesError,u.errors.queryError,d)}}if(o===!1){let l=(await $t(yt(document.documentElement).t9nLocale,Pt("./assets/common/t9n"),"messages.")).errorStrings;throw new ut(Ct.QueryFeaturesError,l.errors.queryBinsNotSupported,l.errors.queryBinsNotSupported)}return s}function aw(t){let e=!t.geometry||t.geometry.type==="extent",r=(t.where??"").toUpperCase(),a=!r.includes("CURRENT_TIMESTAMP")&&!r.includes("CURRENT_DATE")&&!r.includes("CURRENT_TIME");return e&&a}function rf(t){let e=Be.maxRecords;if(t&&"sourceJSON"in t&&t.sourceJSON?.maxRecordCount){let{sourceJSON:r}=t;e=r.maxRecordCount,r.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0&&(e*=Be.maxRecordCountFactor)}return e}function ve(t,e){let r,a=Array.from(new Set(t)).filter(i=>i!=null&&i!==""&&!sr(i));return a.sort((i,n)=>n.length-i.length),a.length===1?[r]=a:a?.forEach(i=>{i!==void 0&&(Ee(r)?r=`(${i})`:r?.includes(`(${i})`)||(r=`${r} ${e??"AND"} (${i})`))}),r??"1=1"}function nw(t,e){let r=e;if(t!==void 0){let a=ue(t),i=et(a).timeExtent;i?.start!=null&&i?.end!=null&&(r=[i.start.valueOf(),i.end.valueOf()])}return r}function sw(t){let{queryObject:e,defaultGeometry:r,ignoreViewExtent:a}=t,i=r;if(!a&&Er(e)){let n=e.view.extent,{xmin:s,xmax:o,ymin:l,ymax:d,zmin:u,zmax:c}=n;i={xmin:s,ymin:l,zmin:u,xmax:o,ymax:d,zmax:c,spatialReference:n.spatialReference.toJSON()}}return i}function So(t){let e;return t!==void 0&&(e=co.fromJSON(t)),e}function ow(t){return t===void 0?["*"]:Array.from(new Set(t))}function On(t){let{queryType:e,queryObject:r,queryConfig:a}=t,{where:i,outStatistics:n,geometry:s,distance:o,units:l,timeExtent:d,returnDistinctValues:u}=a??{},c=ue(r),f=et(c).createQuery(),p,h=Pn(c).idFields;if(e==="AttributeBinsQuery"&&a?.objectIds?.[0]!==void 0&&h&&(p=`${h} IN (${a.objectIds.join(",")})`),e==="AttributeBinsQuery"&&(f=new ub(f.toJSON())),f.where=ve([f.where,i,p]),"returnDistinctValues"in f&&(f.returnDistinctValues=u??!1),n!==void 0){let y=GS(c);f.outStatistics=n.filter(g=>g.statisticType!==j.EnvelopeAggregate||y).map(g=>cb.fromJSON(g))}let m=So(s);return m!==void 0&&(f.geometry=m,a?.spatialRelationship&&(f.spatialRelationship=a.spatialRelationship),Yp(c)&&(o!==void 0&&(f.distance=o),l!==void 0&&(f.units=l))),d&&(f.timeExtent=new pb({start:d?.[0],end:d?.[1]})),aw(f)&&(f.cacheHint=!0),f}function lw(t){let e;switch(t){case Me.Start:e="first";break;case Me.End:e="last";break}return e}async function dw(t){let{queryObject:e,queryConfig:r,temporalBinning:a,dateField:i,splitByField:n}=t,s=ue(e),o=(await pt(e)).find(g=>g.name===i)?.type,l=On({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:r}),{unit:d,size:u,timeAggregationType:c,start:f,end:p,offset:h,outTimeZone:m}=a,y=tf(i);if(l.lowerBoundaryAlias=y.lowerBoundaryAlias,l.upperBoundaryAlias=y.upperBoundaryAlias,o!==Ie.DateOnly&&(l.outTimeZone=m??Intl.DateTimeFormat().resolvedOptions().timeZone),l.binParameters={type:"date",field:i,interval:{unit:d,value:u},start:f,end:p,offset:h?{unit:h.unit,value:h.size}:null},l.binParameters.type==="date"&&(s.capabilities?.queryAttributeBins?.supportsSnapToData&&(l.binParameters.snapToData=lw(c)),s.capabilities?.queryAttributeBins?.supportsReturnFullIntervalBin&&(l.binParameters.returnFullIntervalBin=!0)),!Ee(n)){let g=et(s).fields.find(v=>v.name===n)?.type;(!g||g==="string"||g==="integer"||g==="small-integer"||g==="big-integer"||g==="double")&&(l.binParameters.stackBy={type:"field",value:n,valueType:g==="string"?"string":"integer"})}return l}function wo(t){let{field:e,fieldType:r,unit:a,outTimeZone:i,dataTimeZone:n,runsOnClientQueryEngine:s,addIntervalStatement:o,addLeapDayExpression:l}=t,d,u,c=1,f=1;switch(a){case bt.MinuteOfDay:r!==Ie.DateOnly&&(u="MINUTE",c=0,f=59);break;case bt.HourOfDay:r!==Ie.DateOnly&&(u="HOUR",c=0,f=23);break;case bt.DayOfWeek:u="DOW",f=7;break;case bt.DayOfMonth:u="DAY",f=31;break;case bt.DayOfYear:u="DOY",f=366;break;case bt.WeekOfYear:u="WEEK",f=53;break;case bt.MonthOfYear:u="MONTH",f=12;break;case bt.QuarterOfYear:u="QUARTER",f=4;break}if(u){let p=o?` ${Lp({dataTimeZone:n,runsOnClientQueryEngine:s,outTimeZone:i})}`:"";d=uw({addLeapDayExpression:l,temporalKey:u,field:e,intervalStatement:p})}return{expression:d,start:c,end:f}}function uw(t){let{addLeapDayExpression:e=!1,temporalKey:r,field:a,intervalStatement:i}=t,n;return e&&a.length&&r==="DAY"?n=`CASE WHEN (EXTRACT(MONTH FROM ${a})=2 AND EXTRACT(DAY FROM ${a})=29) THEN 0 ELSE EXTRACT (${r} FROM ${a}${i}) END`:n=`EXTRACT (${r} FROM ${a}${i})`,n}function dp(t){let{temporalBinning:e,xOrY:r,xOrYFieldType:a,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,includeLeapDay:l}=t,{unit:d}=e??{},u,c,f,p;return a===Ie.Date||a===Ie.DateOnly||a===Ie.TimestampOffset?{expression:c,start:f,end:p}=wo({field:r,fieldType:a,unit:d,addIntervalStatement:i,outTimeZone:n,dataTimeZone:s,runsOnClientQueryEngine:o,addLeapDayExpression:!l}):u=r,{field:u,expression:c,start:f,end:p}}async function cw(t){let{queryObject:e,queryConfig:r,x:a,y:i,xTemporalBinning:n,yTemporalBinning:s,firstDayOfWeek:o,outTimeZone:l,includeLeapDay:d}=t,u=await pt(e),c=u.find(x=>x.name===a)?.type,f=u.find(x=>x.name===i)?.type,p=On({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:r});p.binParameters={type:"fixed-interval",interval:1},c!==Ie.DateOnly&&(p.outTimeZone=l??Intl.DateTimeFormat().resolvedOptions().timeZone),o!==void 0&&(p.binParameters.firstDayOfWeek=o);let h=dp({temporalBinning:n,xOrY:a,xOrYFieldType:c,addIntervalStatement:!1,includeLeapDay:d}),{field:m,expression:y,start:g,end:v}=h;m?p.binParameters.field=m:y&&(p.binParameters.expression=y,p.binParameters.expressionValueType="integer",p.binParameters.type==="fixed-interval"&&(g!==void 0&&(p.binParameters.start=g),v!==void 0&&(p.binParameters.end=v)));let w=dp({temporalBinning:s,xOrY:i,xOrYFieldType:f,addIntervalStatement:!1,includeLeapDay:d});return w.field?p.binParameters.stackBy={type:"field",value:w.field}:w.expression&&(p.binParameters.stackBy={type:"expression",value:w.expression,valueType:"integer",alias:i}),p}function pw(t){let{queryObject:e,queryConfig:r,xStep:a,xMin:i,xMax:n,x:s,y:o,yStep:l}=t,d=On({queryType:"AttributeBinsQuery",queryObject:e,queryConfig:r}),u=Xp(s,o);return d.lowerBoundaryAlias=u.lowerBoundaryAlias,d.upperBoundaryAlias=u.upperBoundaryAlias,d.binParameters={type:"fixed-interval",field:s,interval:a,start:i,end:n,stackBy:{value:`FLOOR(${o} / ${l})`,type:"expression",alias:u.stackAlias,valueType:"integer"}},d}function Co(t){let{queryObject:e,queryConfig:r,maxRecordCountFactor:a}=t,{groupByFieldsForStatistics:i,orderByFields:n,gdbVersion:s,start:o,num:l,outFields:d}=r??{},u=On({queryType:"Query",queryObject:e,queryConfig:r});u.returnGeometry=!1;let c=ue(e);return u.outFields=ow(d),u.groupByFieldsForStatistics=i??u.groupByFieldsForStatistics,u.orderByFields=n??[],u.objectIds=r?.objectIds,a!==void 0&&(u.maxRecordCountFactor=a),s!==void 0&&s!==""&&(u.gdbVersion=s),l!==void 0&&(u.num=l),o!==void 0&&(u.start=o,u.num=u.num??rf(c)),u}function fw(t){return t&&"sourceJSON"in t&&t.sourceJSON?.advancedQueryCapabilities?.supportsMaxRecordCountFactor===!0?Be.maxRecordCountFactor:void 0}function hw(t){let e,r,a;return t!==void 0&&(e=t.type,(e===Je.UniqueValue||e===Je.ClassBreaks)&&(r=t.field??void 0,e===Je.ClassBreaks&&(a=t.normalizationField??void 0))),{rendererType:e,rendererField:r,rendererNormalizationField:a}}var mw=(0,hp.default)(async t=>{let e=t.featureCollection,r,a;if(e?.layers?.[0]!==void 0){let s=e.layers[0];r=s.featureSet,a=s.layerDefinition}else a=t.layerDefinition;let i={};if(r!==void 0){if(i.source=db.fromJSON(r).features,a?.fields!==void 0&&(i.fields=a.fields.map(s=>ob.fromJSON(s))),a?.objectIdField!==void 0&&(i.objectIdField=a.objectIdField),a?.geometryType!==void 0){let s=co.fromJSON({geometryType:a.geometryType});s?.type!==void 0&&s?.type!=="extent"&&(i.geometryType=s.type)}a?.spatialReference!==void 0&&(i.spatialReference=a.spatialReference)}else i.id=t.id,a?.id!==void 0&&(i.layerId=a.id),t.url!==void 0&&(i.url=t.url),t.itemId!==void 0&&a?.id!==void 0&&(i.portalItem={id:t.itemId});if(a!==void 0){let s=a.drawingInfo;s?.renderer!==void 0&&(i.renderer=uo.fromJSON(s.renderer))}let n=new sb(i);return await n.load(),n});async function ZT(t){let{layer:e,view:r,chartConfig:a,filterByExtent:i}=t,n;if(e!==void 0){let s=ue(e),o=et(s);if(i&&r!==void 0&&!o.isTable){o.outFields=["*"];let l=u=>"highlight"in u,d=await r.whenLayerView(o);l(d)&&(n=d)}else n=e}else"iLayer"in a&&a.iLayer&&(n=await mw(a.iLayer));return n}async function pt(t,e){let r=ue(t),a=[];if(r!==void 0){await r.load();let i=e===!0&&r?.popupTemplate?.fieldInfos!==void 0;a=r.fields.map(n=>{let s=n.toJSON();if(i){let o=r.popupTemplate?.fieldInfos?.find(l=>l.fieldName?.toLowerCase()===n.name.toLowerCase())?.label;o!==void 0&&o!==n.name&&(s.alias=o)}return s})}return a}function xo(t,e=[]){return e.find(r=>r.name===t)}function Pn(t){let e,r=!1;if(t){let a=et(t);"uniqueIdFields"in a&&a.uniqueIdFields&&a.uniqueIdFields.length>0?e=a.uniqueIdFields:(e=[a.objectIdField],r=!0)}return{idFields:e,isTraditionalTypeOID:r}}function Zt(t){let e="",r=!1;if(t){let a=Pn(t);r=a.isTraditionalTypeOID,a.idFields&&(e=a.idFields[0])}return{idField:e,isTraditionalTypeOID:r}}function Ai(t){return[Ie.Single,Ie.Double,Ie.SmallInteger,Ie.Integer,Ie.BigInteger].includes(t.type)}function yw(t){return t.type===Ie.Date||t.type===Ie.DateOnly||t.type===Ie.TimestampOffset}function KT(t){return[Ie.SmallInteger,Ie.Integer,Ie.BigInteger].includes(t.type)}function gw(t){return t.filter(e=>yw(e)).map(e=>e.name)}function JT(t){return t.filter(e=>Ai(e)).map(e=>e.name)}function bw(t){let{subtypeInfo:e,fieldName:r,fieldValueToMatch:a}=t,i,n=s=>`${s.id}`==`${a}`;return e?.subtypeField===r&&e.subtypes?i=e.subtypes.find(n)?.name:e?.typeIdField===r&&e.types&&(i=e.types.find(n)?.name),i}function up(t,e){let r=[],a=_S(t)?t.subtypes:t[e];return a?.[0]!==void 0&&a.forEach(i=>{let{name:n,domains:s}=i,o="id"in i?i.id:void 0;!o&&"code"in i&&(o=i.code);let l=Object.entries(s??{}),d=[],u=l?.filter(([c,f])=>f?.type==="coded-value")?.map(([c,f])=>{let p={fieldName:c,name:n,codedValues:d};if(f&&"codedValues"in f){let h=f.codedValues.map(({code:m,name:y})=>({name:y,code:m}));p={fieldName:c,name:f.name,codedValues:h}}return p});r.push({id:o??"",name:n,domains:u})}),r.length===0?void 0:r}function To(t){let e;if(t!==void 0){let r=ue(t);if(!vo(r)&&!Ee(r?.typeIdField)){let a=up(r,"types");a!==void 0&&(e={typeIdField:r.typeIdField??void 0,types:a})}if(!Ee(r?.subtypeField)){let a=et(r),i=up(a,"subtypes");i!==void 0&&(e={...e,subtypeField:a.subtypeField??void 0,subtypes:i})}}return e}function Cn(t){let{fieldName:e,fieldValueToMatch:r,subtypeInfo:a,fieldList:i}=t,n;if((typeof r!="string"||!Ee(r))&&!Ee(e)&&(n=bw({subtypeInfo:a,fieldName:e,fieldValueToMatch:r}),n===void 0)){let s=xo(e,i);if(a?.types!==void 0){let o=a?.types;for(let l of o){let d=l.domains?.filter(u=>u.fieldName===s?.name)??[];for(let u of d)if(n=u?.codedValues?.find(c=>`${c.code}`===r)?.name,n!==void 0)break;if(n!==void 0)break}}n===void 0&&s?.domain?.type==="codedValue"&&(n=s.domain.codedValues?.find(o=>`${o.code}`==`${r}`)?.name)}return n}async function af(t){let e=[];return!et(t).isTable&&t.fieldsIndex&&(e=await fp.getRendererFields(t.renderer,t.fieldsIndex)),e}function vw(t){let e="/rest/services",r=t.toLowerCase(),a=r.indexOf(e);return r=a>-1?t.substring(0,a):t,`${r}/rest/info`}async function Sw(t){let e=!0,r=".arcgis.com/",a=t.url,i=a?.includes(r);if(a&&i&&et(t).sourceJSON?.serviceItemId!==void 0){let n=vw(a);try{let s=(await bn(n,{query:{f:"json"}})).data;if(s.owningTenant!==void 0&&s.owningSystemUrl!==void 0){let o=`${s.owningSystemUrl}/sharing/rest/portals/${s.owningTenant}`,l=(await bn(o,{authMode:"auto",query:{f:"json"}})).data,d=new lb({sourceJSON:l});await d.load(),e=d?.sourceJSON?.subscriptionInfo?.dataStoreLevel===void 0}}catch{}}return e}async function ww(t){let{queryObject:e,fieldToMatch:r,returnUndefinedIfNotFound:a}=t,i=await pt(e),n=Cw(i,r),s=a?"":r;return n?.name??s}function Cw(t,e){let r=t.find(a=>e===a.name);return r||(r=t.find(a=>e.toUpperCase()===a.name.toUpperCase())),r}async function YT(t){let{fieldsList:e,queryObject:r,returnUndefinedIfNotFound:a}=t,i=e;return i!==void 0&&(i=await Promise.all(i.map(async n=>await ww({queryObject:r,fieldToMatch:n,returnUndefinedIfNotFound:a})))),i}function xw(t){let{queryObject:e,chartConfig:r,runtimeDataFilters:a,ignoreViewExtent:i}=t,{series:n,dataFilters:s}=r,{where:o,gdbVersion:l,timeExtent:d,geometry:u,distance:c,units:f,objectIds:p,spatialRelationship:h}=s??{},{where:m,gdbVersion:y,timeExtent:g,geometry:v,distance:w,units:x,objectIds:F,spatialRelationship:A}=a??{},q=n[0],{query:L}=q,{where:P}=L??{},B=X(n),N={...L};return N.where=ve([o,m]),B!==C.BarAndLineSplitBy&&B!==C.BoxPlotMonoFieldAndSplitBy&&B!==C.BoxPlotMonoFieldAndCategoryAndSplitBy&&B!==C.BoxPlotMultiFieldsAndSplitBy&&B!==C.BarAndLineSplitByNoAggregation&&(N.where=ve([N.where,P])),r.orderOptions?.orderByFields!==void 0&&(N.orderByFields=r.orderOptions.orderByFields),N.gdbVersion=y??l,N.timeExtent=nw(e,g??d),N.geometry=sw({queryObject:e,defaultGeometry:v??u,ignoreViewExtent:i}),N.distance=w??c,N.units=x??f,N.objectIds=F??p,N.spatialRelationship=A??h,L?.outStatistics?.[0]?.statisticType===j.Count&&(N.returnDistinctValues=L?.returnDistinctValues??!1),N}var Tw=t=>{let e;if("portalItem"in t){let r=t.portalItem?.id;typeof r=="string"&&(e=r)}return e};function XT(t){let{view:e,portalItemId:r}=t,a;if(e&&r){let i=Array.from(e.map?.allLayers??[]).find(n=>Tw(n)===r);i&&(a=i)}return a}var Zr=["1.0.0","1.0.1","2.0.0","3.0.0","3.1.0","3.2.0","3.3.0","3.4.0","3.5.0","3.6.0","3.7.0","3.8.0","3.9.0","3.9.1","3.9.2","3.10.0","3.11.0","4.0.0","4.0.1","5.0.0","6.0.0","6.1.0","6.2.0","6.2.1","6.3.0","6.4.0","7.0.0","7.1.0","7.1.1","7.2.0","7.2.1","7.3.1","7.4.0","7.4.1","7.5.0","7.5.1","7.6.0","8.0.0","8.0.1","9.0.0","9.1.0","9.2.0","9.3.0","9.4.0","9.5.0","9.6.0","9.6.1","9.7.0","10.0.0","11.0.0","12.0.0","13.0.0","14.0.0","14.0.1","15.0.0","16.0.0","16.1.0","16.1.1","17.0.0","17.1.0","17.2.0","17.2.1","18.0.0","18.1.0","18.1.1","18.1.2","18.1.3","19.0.0","20.0.0","20.1.0","20.2.0","21.0.0","21.1.0","22.0.0","23.0.0","23.1.0","23.2.0","23.3.0","24.0.0","24.1.0","24.2.0","24.3.0","24.4.0","24.5.0","24.6.0","24.7.0","24.8.0","25.0.0"],Fw="1.0.0",Iw="unrecognized.version",Ow=[b.LineSeries,b.BarSeries,b.ComboLineAndBarSeries,b.RadarSeries];function Ys(t,e){let r=0;if(t!==e){let a=t.split("."),i=e.split(".");for(let n=0;n<a.length;n+=1){let s=Number.parseInt(a[n],10),o=Number.parseInt(i[n],10);if(s>o||Number.isNaN(o)){r=1;break}if(s<o){r=-1;break}}}return r}function Pw(t){return t!==void 0?/^([1-9]\d*|0)(\.(([1-9]\d*)|0)){2}$/u.test(t):!1}function Aw(t){let e=fr.Same,r=[];if(Pw(t)&&t!==void 0){Zr.sort(Ys);let a=Ys(t,Zr[Zr.length-1]);if(a===1?e=fr.Newer:a===-1&&(e=fr.Older),e===fr.Newer||e===fr.Same)r.push(t);else{for(let i=Zr.length-2;i>=0;i-=1)if(Ys(t,Zr[i])>=0){r=Zr.slice(i,Zr.length);break}r.length===0&&r.push(Fw)}}else e=fr.Unrecognized,r.push(Iw);return{versionStatus:e,versions:r}}function Br(t){let{series:e}=t,r=("showMean"in t?t.showMean:!1)===!0?e.find(a=>a.type===b.LineSeries):e[0];return r??=e[0],r}function eF(t,e){let r=t!==null?t.toString():null,a=e!=null?e.toString():null;return a!==null&&a!==r?Ce.SFS:Ce.SLS}function Xe(t,e){let r="";return t!==void 0&&t.includes("=")&&(r=e!==!1?Ip({value:t.split("=")[0]}):t.split("=")[0].trim()),r}function ct(t){let{where:e,normalize:r,keepSurroundingQuotes:a,escape:i}=t,n="";return e!==void 0&&e.includes("=")&&(n=e.split("=").slice(1).join("=").trim(),n==="null"?n=null:n.trim()!==""&&!Number.isNaN(Number(n))?n=Number(n):r===!1?i===!0&&(n=ao(n)):n=Ip({value:n,keepSurroundingQuotes:a,escape:i})),n}function sr(t){let e=!1;if(t===void 0||t==="")e=!0;else if(t.includes("=")){let r=Xe(t,!1),a=ct({where:t,normalize:!1});e=r===`${a}`}return e}function or(t){let{where:e,normalize:r,escape:a}=t,i=r===void 0?!0:r,n=Xe(e),s=ct({where:e,normalize:i,keepSurroundingQuotes:!0,escape:a}),o=e;return n!==""&&s!==""&&(o=`${n}=${s}`),o}function Ew(t){let e=C.PieFromCategory;return t[0].query?.outStatistics===void 0?e=C.PieNoAggregation:t[0].query?.groupByFieldsForStatistics===void 0&&(e=C.PieFromFields),e}function Lw(t){let e=C.BarAndLineMonoField,r=t[0].query?.where;return t[0].query?.groupByFieldsForStatistics===void 0&&(t[0].query?.outStatistics??[]).length>0?e=C.BarAndLineFromFields:r===void 0&&t[0].query?.outStatistics===void 0?e=C.BarAndLineNoAggregation:sr(r)?t.length>1&&(e=C.BarAndLineMultiFields):e=t[0].query?.outStatistics===void 0?C.BarAndLineSplitByNoAggregation:C.BarAndLineSplitBy,e}function Dw(t){let e=C.BoxPlotMonoField,r=t.length===1,a=t.find(o=>o.type===b.LineSeries)??t[0],{x:i}=a,n="y"in a?a.y:"",s=a.query?.where;switch(i){case Li:typeof n=="object"&&n.length>1?sr(s)?r&&(e=C.BoxPlotMultiFields):e=C.BoxPlotMultiFieldsAndSplitBy:r?e=C.BoxPlotMonoField:sr(s)||(e=C.BoxPlotMonoFieldAndSplitBy);break;default:r?e=C.BoxPlotMonoFieldAndCategory:sr(s)?e=C.BoxPlotMultiFieldsAndCategory:e=C.BoxPlotMonoFieldAndCategoryAndSplitBy;break}return e}function X(t){let e=C.NonSpecific;if(t?.[0]!==void 0)switch(Y(t)){case b.PieSeries:e=Ew(t);break;case b.RadarSeries:case b.BarSeries:case b.LineSeries:case b.ComboLineAndBarSeries:e=Lw(t);break;case b.BoxPlotSeries:e=Dw(t);break}return e}function ei(t){let{seriesConfig:e,xAxisValueFormatType:r,setTimeBinningInfoWhenNotProvided:a}=t,i=!1;if(Vt(e)&&e.binTemporalData!==!1&&r===b.DateAxisFormat){let n=X([e]);if(e.temporalBinning&&n!==C.BarAndLineNoAggregation&&n!==C.BarAndLineSplitByNoAggregation){let{unit:s,size:o}=e.temporalBinning;i=a===!0||o!==void 0&&o>0&&s!==void 0}}return i}function Vt(t){return Ow.includes(t?.type)}function Nw(t){let{previousConfig:e,newConfig:r,behaviorAfterLimit:a}=t,i=e.series,n=r.series,s=!1,o=!1;(a===Lr.RenderUpToTheLimit||e.orderOptions?.data===void 0||r.orderOptions?.data===void 0)&&(o=!er(e.orderOptions?.orderByFields,r.orderOptions?.orderByFields));let l=Bn(i.map(u=>u.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]),d=Bn(n.map(u=>u.query),["where","outStatistics[0].outStatisticFieldName","outStatistics[0].onStatisticField"]);return s=!er(l,d),s||o}function Bw(t,e){return JSON.stringify(t.dataFilters)!==JSON.stringify(e.dataFilters)}function Mw(t,e){let r=!1;if(e.length&&t.length)if(e[0].x!==t[0].x)r=!0;else{let a=Y(t);if(a!==b.HistogramSeries&&a!==b.GaugeSeries){let i=rt(t).sort(),n=rt(e).sort();r=JSON.stringify(i)!==JSON.stringify(n)}}return r}function $w(t,e){return(t??!1)!==(e?.filterBySelection??!1)}function qw(t,e){return Vt(t.series[0])&&Vt(e.series[0])&&(t.series[0].binTemporalData??O.binTemporalData)!==(e.series[0].binTemporalData??O.binTemporalData)}function Rw(t,e){let r=t.axes?.[0].valueFormat.type,a=e.axes?.[0].valueFormat.type,i=X(e.series),n=i===C.BarAndLineNoAggregation||i===C.BarAndLineSplitByNoAggregation,s=r===b.DateAxisFormat&&a===b.NumberAxisFormat,o=r===b.NumberAxisFormat&&a===b.DateAxisFormat;return r!==a&&(n||s||o)}function kw(t){let{previousSeries:e,newConfig:r,previousTimeIntervalInfo:a,setTimeBinningInfoWhenNotProvided:i}=t,n=r.series?.[0],s=!1,o=!1,l=!1;if(n&&Vt(n)&&ei({seriesConfig:n,xAxisValueFormatType:dr(r),setTimeBinningInfoWhenNotProvided:i})){let d=e[0];s=JSON.stringify(d.temporalBinning)!==JSON.stringify(n.temporalBinning),o=a?.unit!==n.temporalBinning?.unit,l=i===!0&&(n.temporalBinning?.size??0)<=0}return{timeBinningChanged:s,timeIntervalUnitChanged:o,newTimeBinningWillBeCalculated:l}}function cp(t,e){return e.length!==t.length}function jw(t,e){return Xi(t)!==Xi(e)}function Ww(t,e){return JSON.stringify(t.series[0]?.valueConversion)!==JSON.stringify(e.series[0]?.valueConversion)}function Vw(t,e){return JSON.stringify(t.series[0]?.xTemporalBinning)!==JSON.stringify(e.series[0]?.xTemporalBinning)||JSON.stringify(t.series[0]?.yTemporalBinning)!==JSON.stringify(e.series[0]?.yTemporalBinning)||(t.firstDayOfWeek??7)!==(e.firstDayOfWeek??7)||t.outTimeZone!==e.outTimeZone||(t.nullPolicy??nt.Null)!==(e.nullPolicy??nt.Null)}function _w(t,e){return(t.hideEmptyRowsAndColumns??!1)!==(e.hideEmptyRowsAndColumns??!1)}function zw(t,e){return(t.includeLeapDay??Fi.heatChart.includeLeapDay)!==(e.includeLeapDay??Fi.heatChart.includeLeapDay)}function Uw(t){let{previousConfig:e,newConfig:r,fieldList:a}=t,i=e.series[0],n=r.series[0],s=!1;if(i.type===b.ScatterSeries&&n.type===b.ScatterSeries&&a&&a.length>0){let o=new Set(i.additionalTooltipFields||[]),l=new Set(n.additionalTooltipFields||[]);if(!er(o,l)){let d=Array.from(l).filter(u=>!o.has(u));d.length>0&&(s=a?.some(u=>d.includes(u.name)&&!Ai(u)))}}return s}function tF(t,e){return(t.colorMatch??!1)!==(e.colorMatch??!1)}function rF(t,e){return(t.stackedType??gt.Side)!==(e.stackedType??gt.Side)}function xn(t){let e={...t};return e.position===void 0&&(e.position=Fi.heatChart.legend.position),e}function iF(t,e){let r=t.legend??{type:b.Legend},a=e.legend??{type:b.Legend},i=xn(r),n=xn(a);return!er(i,n)}function aF(t,e){let r=t.legend??{type:b.Legend},a=e.legend??{type:b.Legend},i=xn(r),n=xn(a);return i.position!==n.position}function nF(t,e){return JSON.stringify(t.series[0]?.gradientRules)!==JSON.stringify(e.series[0]?.gradientRules)}function sF(t,e){return t.series[0].heatRulesType!==e.series[0].heatRulesType}function oF(t){let{oldConfig:e,newConfig:r}=t,a=!1,i=e.series[0],n=r.series[0],s=Y(e.series),o=Y(r.series);if(s===b.PieSeries&&o===b.PieSeries){let{slices:l,sliceGrouping:d}=i,{slices:u,sliceGrouping:c}=n,f=l?.map(y=>({sliceId:y.sliceId,label:y.label})),p=u?.map(y=>({sliceId:y.sliceId,label:y.label})),h=d?.label,m=c?.label;a=JSON.stringify(f)!==JSON.stringify(p)||JSON.stringify(h)!==JSON.stringify(m)}return a}function Hw(t){let{previousSelectionOIDs:e,options:r}=t,a=!1;return r?.filterBySelection===!0&&(a=e?.length!==r?.selectionData?.selectionOIDs?.length||!er(e,r?.selectionData?.selectionOIDs)),a}function lF(t,e){return t?.length!==e?.length||t?.some((r,a)=>{let i=ct({where:r?.query?.where}),n=ct({where:e?.[a]?.query?.where});return i!==n})}function dF(t,e){let r=rt(t),a=rt(e);return JSON.stringify(r)!==JSON.stringify(a)}function uF(t,e){let r,a,i,n;return Vt(t.series[0])&&(r=t.series[0].temporalBinning?.unit,i=t.series[0].temporalBinning?.size),Vt(e.series[0])&&(a=e.series[0].temporalBinning?.unit,n=e.series[0].temporalBinning?.size),ro(r,i)&&!ro(a,n)}function cF(t,e){return t.axes?.length===3&&e.axes?.length===2||t.axes?.length===2&&e.axes?.length===3}function pF(t,e){return JSON.stringify(t.series.map(r=>r.assignToSecondValueAxis??!1))!==JSON.stringify(e.series.map(r=>r.assignToSecondValueAxis??!1))}function fF(t,e){let r=t.axes?.map(i=>i?.guides?.map(n=>n?.above===!0)),a=e.axes?.map(i=>i?.guides?.map(n=>n?.above===!0));return JSON.stringify(r)!==JSON.stringify(a)}function hF(t,e){return ip(t)!==ip(e)}function mF(t,e){return(t.showOutliers??O.boxPlot.boxPlotOutliersVisibility)!==(e.showOutliers??O.boxPlot.boxPlotOutliersVisibility)}function yF(t,e){return(t.standardizeValues??O.boxPlot.boxPlotStandardizeValuesVisibility)!==(e.standardizeValues??O.boxPlot.boxPlotStandardizeValuesVisibility)}function gF(t,e){return JSON.stringify(t.chartRenderer)!==JSON.stringify(e.chartRenderer)}function bF(t,e){let r=t.axes?.[0].valueFormat.type===b.DateAxisFormat?t.axes[0].valueFormat.intlOptions.timeZone:void 0,a=e.axes?.[0].valueFormat.type===b.DateAxisFormat?e.axes[0].valueFormat.intlOptions.timeZone:void 0;return r!==a}function vF(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===b.ScatterSeries&&i.type===b.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=JSON.stringify(n)!==JSON.stringify(s)}return r}function SF(t,e){let r=!1,a=t.series[0],i=e.series[0];if(a.type===b.ScatterSeries&&i.type===b.ScatterSeries){let{sizePolicy:n}=a,{sizePolicy:s}=i;r=n===void 0&&s!==void 0||n!==void 0&&s===void 0||n?.field!==s?.field}return r}function wF(t){let{previousConfig:e,newConfig:r,options:a,previousFilterBySelection:i,previousTimeIntervalInfo:n,previousSelectionOIDs:s,fieldList:o}=t,{series:l}=r,{series:d}=e,u=Y(l),c=!1,f=!1,p=!1,h={common:{layerChanged:!1,queryChanged:!1,xOrYChanged:!1,numberOfSeriesChanged:!1,configFiltersChanged:!1,filterBySelectionChanged:!1,dataForFilterBySelectionChanged:!1,binTemporalDataChanged:!1,timeBinningChanged:!1,timeIntervalUnitChanged:!1,newTimeBinningWillBeCalculated:!1,valueFormatChangeRequiresNewData:!1},histogram:{dataPropsChanged:!1},gauge:{valueConversionChanged:!1},boxPlot:{showMeanChanged:!1},heatChart:{binningChanged:!1,hideEmptyRowsAndColumnsChanged:!1,includeLeapDay:!1},scatterPlot:{tooltipFieldsChanged:!1}};switch(h.common.queryChanged=Nw({previousConfig:e,newConfig:r,behaviorAfterLimit:a?.chartLimits?.behaviorAfterLimit}),h.common.configFiltersChanged=Bw(e,r),h.common.xOrYChanged=Mw(d,l),h.common.filterBySelectionChanged=$w(i,a),h.common.dataForFilterBySelectionChanged=Hw({previousSelectionOIDs:s,options:a}),h.common.binTemporalDataChanged=qw(e,r),h.common.valueFormatChangeRequiresNewData=Rw(e,r),h.common={...h.common,...kw({previousSeries:d,newConfig:r,previousTimeIntervalInfo:n,setTimeBinningInfoWhenNotProvided:a?.setTimeBinningInfoWhenNotProvided})},f=Object.values(h.common).some(m=>m),u){case b.HistogramSeries:h.histogram.dataPropsChanged=iv(d,l)||rv(d,l);break;case b.LineSeries:case b.BarSeries:case b.ComboLineAndBarSeries:h.common.numberOfSeriesChanged=cp(d,l);break;case b.BoxPlotSeries:dt(e)&&dt(r)&&(h.common.numberOfSeriesChanged=cp(d,l),h.boxPlot.showMeanChanged=jw(e,r));break;case b.GaugeSeries:h.gauge.valueConversionChanged=Ww(e,r);break;case b.HeatSeries:Ii(e)&&Ii(r)&&(h.heatChart.binningChanged=Vw(e,r),h.heatChart.hideEmptyRowsAndColumnsChanged=_w(e,r),h.heatChart.includeLeapDay=zw(e,r));break;case b.ScatterSeries:h.scatterPlot.tooltipFieldsChanged=Uw({previousConfig:e,newConfig:r,fieldList:o});break}return(h.gauge.valueConversionChanged||h.histogram.dataPropsChanged||h.common.numberOfSeriesChanged||h.common.binTemporalDataChanged||h.boxPlot.showMeanChanged||h.heatChart.binningChanged||h.heatChart.hideEmptyRowsAndColumnsChanged||h.heatChart.includeLeapDay||h.scatterPlot.tooltipFieldsChanged)&&(p=!0),c=f||p,{dataUpdateNeeded:c,dataUpdateDetails:h}}function CF(t,e){let r=jr(t);if(r&&r.series.length>1){let{preferLabel:a,orderBy:i}=r.orderOptions?.series??{};if(i!==void 0){let n;if(a===!1){let s=X(r.series);n=Op(s)?"splitByValue":"name"}else n="name";r.series.sort((s,o)=>{let l,d;n==="splitByValue"?(l=ct({where:s.query?.where})??"",d=ct({where:o.query?.where})??""):(l=s.name,d=o.name);let[u,c]=i.toUpperCase()===ze.Descending?[d,l]:[l,d];return typeof u=="string"&&typeof c=="string"?u.localeCompare(c):Number(u)-Number(c)})}}return VS({data:r?.series.map(a=>a.id),htmlContainer:e}),r}function Ti(t){let e=t===void 0||t==="";return{[U.Average]:`${e?"":`${t}_`}${U.Average}`,[U.Min]:`${e?"":`${t}_`}${U.Min}`,[U.Max]:`${e?"":`${t}_`}${U.Max}`,[U.FirstQuartile]:`${e?"":`${t}_`}${U.FirstQuartile}`,[U.Median]:`${e?"":`${t}_`}${U.Median}`,[U.ThirdQuartile]:`${e?"":`${t}_`}${U.ThirdQuartile}`,[U.IQR]:`${e?"":`${t}_`}${U.IQR}`,[U.Outlier]:`${e?"":`${t}_`}${U.Outlier}`,[U.StandardDeviation]:`${e?"":`${t}_`}${U.StandardDeviation}`}}function Fo(t){return"subType"in t&&t.subType===zo.FeatureGauge}function nf(t){let e;return t!==void 0&&("bins"in t?e=t.bins:"dataItems"in t&&(e=t.dataItems)),e}function sf(t){return t===C.BoxPlotMultiFields||t===C.BoxPlotMultiFieldsAndCategory||t===C.BoxPlotMultiFieldsAndSplitBy}function Ue(t){let{key:e,y:r,chartSubType:a,splitBy:i,splitByValue:n,showOutliers:s,standardizeValues:o}=t,l=n,d=Ti(r)[e];return s===!0&&(e===U.Min||e===U.Max)&&(d=`${d}${Zb}`),o===!0&&(sf(a)||e===U.Outlier)&&(d=`${d}${Kb}`),(n===void 0||`${n}`.trim()==="")&&(l=ct({where:i,normalize:!0,escape:!1})),l!==void 0&&`${l}`.trim()!==""&&(d=`${l}${d!==""?`_${d}`:""}`),d}function Xs(t){let{dataItem:e,y:r,splitBy:a,showOutliers:i}=t,n=Ue({key:U.FirstQuartile,y:r,splitBy:a,showOutliers:i}),s=Ue({key:U.ThirdQuartile,y:r,splitBy:a,showOutliers:i});return Number.isFinite(e[n])||Number.isFinite(e[s])}function Gw(t){let{configSeries:e,boxPlotDataItem:r,yList:a,showOutliers:i}=t,n=X(e),s=!1;switch(n){case C.BoxPlotMonoField:case C.BoxPlotMultiFields:case C.BoxPlotMonoFieldAndCategory:s=Xs({dataItem:r,showOutliers:i});break;case C.BoxPlotMultiFieldsAndCategory:s=a.some(o=>Xs({dataItem:r,y:o,showOutliers:i}));break;case C.BoxPlotMonoFieldAndSplitBy:case C.BoxPlotMultiFieldsAndSplitBy:case C.BoxPlotMonoFieldAndCategoryAndSplitBy:s=e.some(o=>Xs({dataItem:r,splitBy:o.query?.where,showOutliers:i}));break;default:s=!1;break}return s}function of(t){return t.map(e=>e.id).filter(e=>e!==void 0)}function rt(t,e){let r=[],a=e??of(t),i=X(t);return r=t.filter(n=>a.includes(n.id)).map(n=>{let s="y"in n?n.y:void 0;return s!==void 0&&i===C.BarAndLineSplitByNoAggregation&&(s=`${s.toString()}_${ct({where:n.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),s}).filter(n=>n!==void 0),Array.from(new Set(r.flat()))}function An(t){let{seriesConfig:e,filteredSeriesIds:r,showMean:a}=t,i=[];if(a===!0){let n=e.find(s=>s.type===b.BoxPlotSeries);n!==void 0&&"y"in n&&(i=[n.y].flat())}else i=rt(e,r);return i}function Ir(t,e){return t===null&&e===!0||Number.isFinite(t)}function Qw(t){let{dataItem:e,x:r,y:a,nullAsValid:i=!1}=t;return e[r]!==void 0&&(typeof e[r]!="number"||Number.isFinite(e[r]))&&Ir(e[a],i)}function xF(t){let{chartConfig:e,nullAsValid:r=!1,dataSet:a}=t,i=!0;if(e!==void 0){let n=Y(e.series);if(a===void 0||a.length===0)i=!0;else{let s=rt(e.series);i=!a.some(o=>{let l=!1;switch(n){case b.HistogramSeries:{let d=o;l=Ir(d.minValue,r)&&Ir(d.maxValue,r)}break;case b.ScatterSeries:{let d=o,{x:u,y:c}=e.series[0];l=Ir(d[u],r)&&Ir(d[c],r)}break;case b.ComboLineAndBarSeries:case b.RadarSeries:case b.LineSeries:case b.BarSeries:{let d=o,{x:u}=e.series[0];l=s.some(c=>Qw({dataItem:d,x:u,y:c,nullAsValid:r}));break}case b.BoxPlotSeries:{if(dt(e)){let d=e.series;l=Gw({configSeries:d,boxPlotDataItem:o,yList:s,showOutliers:e.showOutliers})}break}case b.PieSeries:{let d=o,{x:u,y:c}=e.series[0];X(e.series)===C.PieFromFields&&(u=ot,c=Wt);let f=d[c];l=d[u]!==void 0&&d[u]!==null&&!Wo(f)&&Ir(Number(f),r)}break;case b.GaugeSeries:{let{x:d}=e.series[0];l=Ir(o[d],r)}break;case b.HeatSeries:l=a.some(d=>Ir(d[re.valueField],r));break}return l})}}return i}function Zw(t,e){let r=new Map,a=e??of(t);return t.forEach(i=>{if(a.includes(i.id)&&"y"in i){let n=r.get(i.type)??[];n.push(i.y),r.set(i.type,n)}}),r}function Kw(t){let{seriesConfig:e,filteredSeriesIds:r,filteredData:a}=t,i=Zw(e,r),n=e.find(d=>d.type===b.LineSeries||d.type===b.RadarSeries)?.stackNegativeValuesToBaseline??!0,s=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER,l=!1;return a.forEach(d=>{i.forEach(u=>{if(n){let c=0,f=0,p=!1,h=!1;for(let m=0;m<u.length;m+=1){let y=d[u[m]];Number.isFinite(y)&&(y<0?(f+=y,h=!0,l=!0):(c+=y,p=!0))}s=p?Math.max(s,c):s,o=h?Math.min(o,f):o}else{let c=0;for(let f=0;f<u.length;f+=1){let p=d[u[f]];c+=p,s=Math.max(s,c),o=Math.min(o,c)}}})}),{stackedMinY:o,stackedMaxY:s,dataHasNegativeValues:l}}function Jw(t){let{dataItem:e,...r}=t,a=Ue({key:U.Min,...r}),i=Ue({key:U.Max,...r}),n=e[a],s=e[i];return{min:n,max:s}}function TF(t){let e=Number.NaN,r=Number.NaN,a,i,{chartConfig:n,chartData:s,filteredSeriesIds:o}=t,{series:l}=n;if(l?.length>0){let{x:d}=l[0],u=s.filter(f=>f[d]!==null);[a,i]=Si(u,f=>f[d]),n.axes?.[1]?.valueFormat.type===b.DateAxisFormat&&a!==void 0&&i!==void 0&&([a,i]=[new Date(a).valueOf(),new Date(i).valueOf()]);let c=Y(n.series);if(c===b.HistogramSeries&&s.length>0){let f=s[0]?.[Xc.Start],p=s[s.length-1]?.[Xc.End];a=typeof f=="number"?f:a,i=typeof p=="number"?p:i}else if(c===b.BoxPlotSeries){e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER;let f=rt(l,o),p=X(l),h="standardizeValues"in n?n.standardizeValues===!0:void 0,m=n.series.map(y=>y.visible!==!1?ct({where:y.query?.where}):"");m.length===0&&m.push(" "),u.forEach(y=>{f.forEach(g=>{let v=p===C.BoxPlotMultiFieldsAndCategory?g:void 0;m.forEach(w=>{let{min:x,max:F}=Jw({y:v,splitByValue:w,chartSubType:p,showOutliers:!1,standardizeValues:h,dataItem:y});x!=null&&x<e&&(e=x),F!=null&&F>r&&(r=F)})})})}else switch(fo(n)){case gt.Stacked100:{e=Number.NaN,r=Number.NaN;break}case gt.Stacked:{let{stackedMinY:f,stackedMaxY:p}=Kw({seriesConfig:l,filteredData:u,filteredSeriesIds:o});e=f,r=p;break}case gt.Side:default:{e=Number.MAX_SAFE_INTEGER,r=Number.MIN_SAFE_INTEGER,rt(l,o).forEach(f=>{let[p,h]=Si(u,m=>m[f]);p!==void 0&&p<e&&(e=p),h!==void 0&&h>r&&(r=h)});break}}}return{minY:e,maxY:r,minX:a,maxX:i}}var FF=(t,e)=>{let r=10**e;return Math.round(t*r)/r},Ci={$schema:"http://json-schema.org/draft-07/schema#",definitions:{ValueConversion:{type:"object",properties:{factor:{type:"number",description:"A numeric value multiplying the value to convert."},offset:{type:"number",description:"A numeric offset to apply to the value to convert."}},description:"Stores information regarding a numeric conversion.",title:"ValueConversion"},WebChartAxisScrollBar:{type:"object",properties:{visible:{type:"boolean",description:"Scrollbar visibility.",default:!1},width:{type:"number",description:"Scrollbar width in pixels."},color:{$ref:"#/definitions/Color",description:"Scrollbar color."},gripSize:{type:"number",description:"Grip size in pixels."},margin:{type:"number",description:"Margin between the scrollbar and the series container in pixels."}},description:"Describes the properties of an axis scrollbar.",title:"WebChartAxisScrollBar"},Color:{type:"array",items:{type:"number"},minItems:4,maxItems:4,description:"Represents the color information (R, G, B, A).",title:"Color"},WebChartTextSymbol:{type:"object",properties:{xoffset:{type:["number","string"],description:"Horizontal offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value relative to the label's container width."},yoffset:{type:["number","string"],description:"Vertical offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value relative to the label's container height."},angle:{type:"number",description:"Rotation angle of the label."},style:{type:"string",description:"Label style."},type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string",description:"Only applicable when specified as a client-side graphic."}},required:["type"],description:"Represents a text symbol.",title:"WebChartTextSymbol"},'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>':{$ref:"#/definitions/Pick%3CITextSymbol%2CExclude%3C(%22type%22%7C%22color%22%7C%22backgroundColor%22%7C%22borderLineSize%22%7C%22borderLineColor%22%7C%22haloSize%22%7C%22haloColor%22%7C%22verticalAlignment%22%7C%22horizontalAlignment%22%7C%22rightToLeft%22%7C%22kerning%22%7C%22font%22%7C%22text%22%7C%22angle%22%7C%22xoffset%22%7C%22yoffset%22%7C%22style%22%7Cstring)%2C(%22angle%22%7C%22style%22%7C%22xoffset%22%7C%22yoffset%22)%3E%3E",title:'Omit<ITextSymbol,("angle"|"style"|"xoffset"|"yoffset")>'},'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>':{type:"object",properties:{type:{type:"string",const:"esriTS"},color:{$ref:"#/definitions/Color"},backgroundColor:{$ref:"#/definitions/Color"},borderLineSize:{type:"number"},borderLineColor:{$ref:"#/definitions/Color"},haloSize:{type:"number"},haloColor:{$ref:"#/definitions/Color"},verticalAlignment:{type:"string",enum:["baseline","bottom","middle","top"]},horizontalAlignment:{type:"string",enum:["center","justify","left","right"]},rightToLeft:{type:"boolean"},kerning:{type:"boolean"},font:{$ref:"#/definitions/IFont"},text:{type:"string",description:"Only applicable when specified as a client-side graphic."}},required:["type"],title:'Pick<ITextSymbol,Exclude<("type"|"color"|"backgroundColor"|"borderLineSize"|"borderLineColor"|"haloSize"|"haloColor"|"verticalAlignment"|"horizontalAlignment"|"rightToLeft"|"kerning"|"font"|"text"|"angle"|"xoffset"|"yoffset"|"style"|string),("angle"|"style"|"xoffset"|"yoffset")>>'},IFont:{type:"object",properties:{family:{type:"string"},size:{type:"number"},style:{type:"string",enum:["italic","normal","oblique"]},weight:{type:"string",enum:["bold","bolder","lighter","normal"]},decoration:{type:"string",enum:["line-through","none","underline"]}},title:"IFont"},WebChartText:{type:"object",properties:{type:{type:"string",const:"chartText",description:"A unique string identifier for the `ChartText` object. This value is `chartText`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},content:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains the styling information and text content."}},required:["type","content"],description:"Stores information on how some text is rendered on the chart and whether it is visible or not.",title:"WebChartText"},WebChartCursorCrosshair:{type:"object",properties:{type:{type:"string",const:"cursorCrosshair",description:"Represents a unique string identifier for the chart cursor's crosshair."},style:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the chart cursor's crosshair should be rendered."},verticalLineVisible:{type:"boolean",description:"Indicates whether the vertical crosshair line should be displayed.",default:!1},horizontalLineVisible:{type:"boolean",description:"Indicates whether the horizontal crosshair line should be displayed.",default:!1}},required:["type"],description:"JSON representation of the cursor's crosshair for a chart.",title:"WebChartCursorCrosshair"},ISimpleLineSymbol:{type:"object",properties:{type:{type:"string",const:"esriSLS"},style:{$ref:"#/definitions/SimpleLineSymbolStyle"},color:{$ref:"#/definitions/Color"},width:{type:"number"}},required:["type"],title:"ISimpleLineSymbol"},ISymbol:{type:"object",properties:{type:{$ref:"#/definitions/SymbolType"},style:{type:"string"}},required:["type"],title:"ISymbol"},SymbolType:{type:"string",enum:["esriPFS","esriPMS","esriSFS","esriSLS","esriSMS","esriTS"],title:"SymbolType"},SimpleLineSymbolStyle:{type:"string",enum:["esriSLSDash","esriSLSDashDot","esriSLSDashDotDot","esriSLSDot","esriSLSNull","esriSLSSolid"],title:"SimpleLineSymbolStyle"},WebChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information on how legend body (excluding the `title`) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: circles",default:!1}},required:["type"],description:"JSON representation of the chart's legend.",title:"WebChartLegend"},WebChartLegendPositions:{type:"string",enum:["left","right","top","bottom"],title:"WebChartLegendPositions"},WebChartNullCategory:{type:"object",properties:{text:{type:"string",description:"Specifies the text to use for the null category. If none is provided, the default `null` text will be used."},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the overlay should be rendered. If not provided a default style is applied.",default:"1 - symbol.outline.width"}},title:"WebChartNullCategory"},ISimpleFillSymbol:{type:"object",properties:{type:{type:"string",const:"esriSFS"},style:{$ref:"#/definitions/SimpleFillSymbolStyle"},color:{$ref:"#/definitions/Color"},outline:{$ref:"#/definitions/ISimpleLineSymbol"}},required:["type"],title:"ISimpleFillSymbol"},SimpleFillSymbolStyle:{type:"string",enum:["esriSFSBackwardDiagonal","esriSFSCross","esriSFSDiagonalCross","esriSFSForwardDiagonal","esriSFSHorizontal","esriSFSNull","esriSFSSolid","esriSFSVertical"],title:"SimpleFillSymbolStyle"},WebChartPieChartLegend:{type:"object",properties:{type:{type:"string",const:"chartLegend",description:"A unique string identifier for the `ChartLegend` object. This value is `chartLegend`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the legend box should be rendered."},body:{$ref:"#/definitions/WebChartTextSymbol",description:"Contains styling information on how legend body (excluding the `title`) should be rendered. Will use default styling if not provided."},position:{$ref:"#/definitions/WebChartLegendPositions",description:'Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.',default:"`right`"},maxHeight:{type:["number","null"],description:"Legend's maximum height. If not set the legend will occupy the same height as the series container.",default:null},roundMarkers:{type:"boolean",description:"Allows the legend markers to be displayed as circles.\n- `false` or `undefined`: rounded rectangles\n- `true`: circles",default:!1},displayCategory:{type:"boolean",description:"Indicates whether the category associated to a slice is to be displayed in the legend.",default:!0},displayNumericValue:{type:"boolean",description:"Indicates whether the numeric value associated to a slice is to be displayed in the legend. If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`",default:!1},displayPercentage:{type:"boolean",description:"Indicates whether the percentage to a slice is to be displayed in the legend. If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`",default:!1},labelMaxWidth:{type:"number",description:"Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.",default:200},valueLabelMaxWidth:{type:"number",description:"Maximum width in pixels of the value label displaying the slice value. If the label is larger than the maximum width, it will automatically wrap.",default:200}},required:["type"],description:"Specific legend for pie charts",title:"WebChartPieChartLegend"},WebChartOverlay:{type:"object",properties:{type:{type:"string",const:"chartOverlay",description:"A unique string identifier for the `ChartOverlay` object. This value is `chartOverlay`."},created:{type:"boolean",description:"Determines whether the overlay is created under the hood. It may or may not be visible.",default:!1},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},symbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the overlay should be rendered. If not provided a default style is applied."}},required:["type"],description:"JSON representation of the chart's overlays such as the trendline in scatterplot, and the median overlay in histogram.",title:"WebChartOverlay"},NumberFormatOptions:{type:"object",properties:{type:{type:"string",const:"number",description:"Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `number`. It can help to differentiate numerical (value) axis from other types of axes such as date-time axis and category axis."},intlOptions:{$ref:"#/definitions/Intl.NumberFormatOptions",description:"Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications."}},required:["type","intlOptions"],description:"Defines how the numerical(value) axis data should be formatted.",title:"NumberFormatOptions"},"Intl.NumberFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["lookup","best fit"]},style:{$ref:"#/definitions/Intl.NumberFormatOptionsStyle"},currency:{type:"string"},currencyDisplay:{$ref:"#/definitions/Intl.NumberFormatOptionsCurrencyDisplay"},useGrouping:{$ref:"#/definitions/Intl.NumberFormatOptionsUseGrouping"},minimumIntegerDigits:{type:"number"},minimumFractionDigits:{type:"number"},maximumFractionDigits:{type:"number"},minimumSignificantDigits:{type:"number"},maximumSignificantDigits:{type:"number"}},title:"Intl.NumberFormatOptions"},"Intl.NumberFormatOptionsStyle":{title:"Intl.NumberFormatOptionsStyle"},"Intl.NumberFormatOptionsCurrencyDisplay":{title:"Intl.NumberFormatOptionsCurrencyDisplay"},"Intl.NumberFormatOptionsUseGrouping":{type:"boolean",title:"Intl.NumberFormatOptionsUseGrouping"},WebChartDateTimeUnitFormatOptions:{type:"object",properties:{year:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},month:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},day:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},hour:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},minute:{$ref:"#/definitions/Intl.DateTimeFormatOptions"},second:{$ref:"#/definitions/Intl.DateTimeFormatOptions"}},description:"Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis.",title:"WebChartDateTimeUnitFormatOptions"},"Intl.DateTimeFormatOptions":{type:"object",properties:{localeMatcher:{type:"string",enum:["best fit","lookup"]},weekday:{type:"string",enum:["long","short","narrow"]},era:{type:"string",enum:["long","short","narrow"]},year:{type:"string",enum:["numeric","2-digit"]},month:{type:"string",enum:["numeric","2-digit","long","short","narrow"]},day:{type:"string",enum:["numeric","2-digit"]},hour:{type:"string",enum:["numeric","2-digit"]},minute:{type:"string",enum:["numeric","2-digit"]},second:{type:"string",enum:["numeric","2-digit"]},timeZoneName:{type:"string",enum:["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},formatMatcher:{type:"string",enum:["best fit","basic"]},hour12:{type:"boolean"},timeZone:{type:"string"}},title:"Intl.DateTimeFormatOptions"},DateTimeFormatOptions:{type:"object",properties:{type:{type:"string",const:"date",description:"Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `date`. It can help to differentiate date-time axis from other types of axes such as numeric (value) axis and category axis."},intlOptions:{$ref:"#/definitions/Intl.DateTimeFormatOptions",description:"Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications."},formatPerDateTimeUnit:{$ref:"#/definitions/WebChartDateTimeUnitFormatOptions",description:"Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`."}},required:["type","intlOptions"],description:"Defines how the `DateTime` axis data should be formatted.",title:"DateTimeFormatOptions"},CategoryFormatOptions:{type:"object",properties:{type:{type:"string",const:"category",description:"Represents a unique string identifier for the `CategoryFormatOptions` object. For the `CategoryFormatOptions` object, it is `category`. It can help to differentiate category axis from other types of axes such as date-time axis and numeric (value) axis."},characterLimit:{type:["number","null"],description:"Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done."}},required:["type"],description:"Defines how the category axis data (categories) should be formatted.",title:"CategoryFormatOptions"},WebChartGuide:{type:"object",properties:{type:{type:"string",const:"chartGuide",description:"Represents a unique string identifier for the `Guide` object. For the `Guide` class, it is `chartGuide`."},start:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should begin."},end:{anyOf:[{type:"string",format:"date-time"},{type:"number"},{type:"string"},{type:"null"}],description:"Determines the value where the guide should end. If it is not specified, a line guide is used, otherwise a fill/rectangular guide is used."},style:{anyOf:[{$ref:"#/definitions/ISimpleFillSymbol"},{$ref:"#/definitions/ISimpleLineSymbol"}],description:"Determines how the guide should be rendered."},name:{type:"string",description:"A unique string identifier which is used to refer to a particular guide. It is displayed in the charts config UI to differentiate between different guides."},label:{$ref:"#/definitions/WebChartTextSymbol",description:"Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **esriTS** format."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},above:{type:"boolean",description:"Determines whether the guide should be rendered on top of (overlapping) the series or under the series.",default:!1},tooltipReverseColor:{type:"boolean",description:"Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).",default:!1}},required:["type","start","style","name"],description:"JSON representation of the chart's guide object. Can be used to represent both line and fill guides.",title:"WebChartGuide"},WebChartAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:"Represents a unique string identifier for the `WebChartAxis` object. For `ChartAxis` object, it is `chartAxis`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility."},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis.",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
|
|
4
4
|
|
|
5
5
|
**Note**: This property is not applicable to gauge charts.`,minimum:1},dateBaseInterval:{$ref:"#/definitions/TimeIntervalInfo",description:"Specifies the base interval on a date axis. Will be ignored on the other axis types. It will be overridden by the properties from the series `binTemporalData` when provided."}},required:["type","valueFormat","labels"],description:"JSON representation of the chart's axis object",title:"WebChartAxis"},TimeIntervalInfo:{type:"object",properties:{unit:{$ref:"#/definitions/WebChartTemporalBinningUnits"},size:{type:"number"}},title:"TimeIntervalInfo"},WebChartTemporalBinningUnits:{type:"string",enum:["seconds","minutes","hours","days","weeks","months","quarters","years"],description:"The temporal binning units",title:"WebChartTemporalBinningUnits"},WebChartGaugeAxisTick:{type:"object",properties:{type:{type:"string",const:"gaugeAxisTick",description:"Represents a unique string identifier for the `GaugeAxisTick` object. For `WebChartGaugeAxisTick` object, it is `gaugeAxisTick`."},visible:{type:"boolean",description:"Determines the visibility of the axis ticks.",default:!0}},required:["type"],description:"JSON representation of the gauge axis ticks. Currently only used by `WebChartGaugeAxis`.",title:"WebChartGaugeAxisTick"},WebChartNeedle:{type:"object",properties:{type:{type:"string",const:"gaugeNeedle",description:"Represents a unique string identifier for the `ChartNeedle` object. For `WebChartNeedle` object, it is `gaugeNeedle`."},visible:{type:"boolean",description:"Hides or shows the needle.",default:!0},symbol:{$ref:"#/definitions/ISimpleFillSymbol",description:"Contains styling information on how the needle should be rendered."},startWidth:{type:["number","null"],description:"Represents the needle's thickness at the bottom (chart's center) in pixels.",minimum:1,default:10},endWidth:{type:["number","null"],description:"Represents the needle's thickness at the top in pixels.",minimum:1,default:1},innerRadius:{type:["number","null"],description:"Represents the size of the hole in the middle of the chart. Can be visualized when guides are displayed.",minimum:0,maximum:100,default:25},displayPin:{type:"boolean",description:"Hides or shows the needle's pin (centroid circle).",default:!1}},required:["type"],description:"JSON representation of a gauge needle.",title:"WebChartNeedle"},WebChartGaugeAxis:{type:"object",properties:{type:{type:"string",const:"chartAxis",description:"Represents a unique string identifier for the `WebChartAxis` object. For `ChartAxis` object, it is `chartAxis`."},visible:{type:"boolean",description:"Determines the visibility of the content.",default:!0},isLogarithmic:{type:"boolean",description:"Specifies whether the axis has a logarithmic scale or not.",default:!1},title:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the title of the axis should be rendered"},valueFormat:{anyOf:[{$ref:"#/definitions/CategoryFormatOptions"},{$ref:"#/definitions/DateTimeFormatOptions"},{$ref:"#/definitions/NumberFormatOptions"}],description:"Specifies how numerical/categorical/date-time values should be formatted."},minimum:{type:["number","null"],description:"The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated."},maximum:{type:["number","null"],description:"The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated."},grid:{$ref:"#/definitions/ISimpleLineSymbol",description:"Dictates how the grid lines associated with a particular axis should be rendered."},guides:{type:"array",items:{$ref:"#/definitions/WebChartGuide"},description:"Represent an array of guides that should be rendered onto the axis."},lineSymbol:{$ref:"#/definitions/ISimpleLineSymbol",description:"Contains styling information on how the axis line should be rendered. If not provided a default style is applied."},labels:{$ref:"#/definitions/WebChartText",description:"Contains styling information on how the axis labels should be rendered."},scrollbar:{$ref:"#/definitions/WebChartAxisScrollBar",description:"Represents the axis scrollbar style and visibility."},displayZeroLine:{type:"boolean",description:"Represents an option to hide/un-hide the zero line on value axis.",default:!1},integerOnlyValues:{type:"boolean",description:"Represents an option to show `integer-only` values for a value axis",default:!1},displayCursorTooltip:{type:"boolean",description:"Specifies whether cursor tooltip should be displayed.",default:!1},buffer:{type:"boolean",description:"Allows setting a buffer to a **value axis** to provide some space around the series.",default:!1},tickSpacing:{type:"number",description:`The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size. When not provided a default value is assigned according to the axis type and axis labels behavior.
|