@sisense/sdk-ui 1.15.0 → 1.15.1

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.
@@ -3,7 +3,7 @@
3
3
  Use "options.replacer" or "options.ignoreUnknown"
4
4
  `)},_domwindow:function(){return T("domwindow")},_bigint:function(p){return T("bigint:"+p.toString())},_process:function(){return T("process")},_timer:function(){return T("timer")},_pipe:function(){return T("pipe")},_tcp:function(){return T("tcp")},_udp:function(){return T("udp")},_tty:function(){return T("tty")},_statwatcher:function(){return T("statwatcher")},_securecontext:function(){return T("securecontext")},_connection:function(){return T("connection")},_zlib:function(){return T("zlib")},_context:function(){return T("context")},_nodescript:function(){return T("nodescript")},_httpparser:function(){return T("httpparser")},_dataview:function(){return T("dataview")},_signal:function(){return T("signal")},_fsevent:function(){return T("fsevent")},_tlswrap:function(){return T("tlswrap")}}}function z(){return{buf:"",write:function(D){this.buf+=D},end:function(D){this.buf+=D},read:function(){return this.buf}}}a.writeToStream=function(D,R,w){return w===void 0&&(w=R,R={}),V(R=X(D,R),w).dispatch(D)}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){(function(F){var O=typeof Uint8Array!="undefined"?Uint8Array:Array,$=43,Y=47,X=48,G=97,V=65,z=45,D=95;function R(w){return w=w.charCodeAt(0),w===$||w===z?62:w===Y||w===D?63:w<X?-1:w<X+10?w-X+26+26:w<V+26?w-V:w<G+26?w-G+26:void 0}F.toByteArray=function(w){var T,p;if(0<w.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var c=w.length,c=w.charAt(c-2)==="="?2:w.charAt(c-1)==="="?1:0,d=new O(3*w.length/4-c),_=0<c?w.length-4:w.length,y=0;function C(I){d[y++]=I}for(T=0;T<_;T+=4,0)C((16711680&(p=R(w.charAt(T))<<18|R(w.charAt(T+1))<<12|R(w.charAt(T+2))<<6|R(w.charAt(T+3))))>>16),C((65280&p)>>8),C(255&p);return c==2?C(255&(p=R(w.charAt(T))<<2|R(w.charAt(T+1))>>4)):c==1&&(C((p=R(w.charAt(T))<<10|R(w.charAt(T+1))<<4|R(w.charAt(T+2))>>2)>>8&255),C(255&p)),d},F.fromByteArray=function(w){var T,p,c,d,_=w.length%3,y="";function C(I){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(I)}for(T=0,c=w.length-_;T<c;T+=3)p=(w[T]<<16)+(w[T+1]<<8)+w[T+2],y+=C((d=p)>>18&63)+C(d>>12&63)+C(d>>6&63)+C(63&d);switch(_){case 1:y=(y+=C((p=w[w.length-1])>>2))+C(p<<4&63)+"==";break;case 2:y=(y=(y+=C((p=(w[w.length-2]<<8)+w[w.length-1])>>10))+C(p>>4&63))+C(p<<2&63)+"="}return y}})(a===void 0?this.base64js={}:a)}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(i,r,a){(function(f,A,$,q,J,ne,se,M,te){var F=i("base64-js"),O=i("ieee754");function $(h,P,B){if(!(this instanceof $))return new $(h,P,B);var U,S,N,W,ee=typeof h;if(P==="base64"&&ee=="string")for(h=(W=h).trim?W.trim():W.replace(/^\s+|\s+$/g,"");h.length%4!=0;)h+="=";if(ee=="number")U=E(h);else if(ee=="string")U=$.byteLength(h,P);else{if(ee!="object")throw new Error("First argument needs to be a number, array or string.");U=E(h.length)}if($._useTypedArrays?S=$._augment(new Uint8Array(U)):((S=this).length=U,S._isBuffer=!0),$._useTypedArrays&&typeof h.byteLength=="number")S._set(h);else if(b(W=h)||$.isBuffer(W)||W&&typeof W=="object"&&typeof W.length=="number")for(N=0;N<U;N++)$.isBuffer(h)?S[N]=h.readUInt8(N):S[N]=h[N];else if(ee=="string")S.write(h,0,P);else if(ee=="number"&&!$._useTypedArrays&&!B)for(N=0;N<U;N++)S[N]=0;return S}function Y(h,P,B,U){return $._charsWritten=n(function(S){for(var N=[],W=0;W<S.length;W++)N.push(255&S.charCodeAt(W));return N}(P),h,B,U)}function X(h,P,B,U){return $._charsWritten=n(function(S){for(var N,W,ee=[],ie=0;ie<S.length;ie++)W=S.charCodeAt(ie),N=W>>8,W=W%256,ee.push(W),ee.push(N);return ee}(P),h,B,U)}function G(h,P,B){var U="";B=Math.min(h.length,B);for(var S=P;S<B;S++)U+=String.fromCharCode(h[S]);return U}function V(h,P,B,N){N||(g(typeof B=="boolean","missing or invalid endian"),g(P!=null,"missing offset"),g(P+1<h.length,"Trying to read beyond buffer length"));var S,N=h.length;if(!(N<=P))return B?(S=h[P],P+1<N&&(S|=h[P+1]<<8)):(S=h[P]<<8,P+1<N&&(S|=h[P+1])),S}function z(h,P,B,N){N||(g(typeof B=="boolean","missing or invalid endian"),g(P!=null,"missing offset"),g(P+3<h.length,"Trying to read beyond buffer length"));var S,N=h.length;if(!(N<=P))return B?(P+2<N&&(S=h[P+2]<<16),P+1<N&&(S|=h[P+1]<<8),S|=h[P],P+3<N&&(S+=h[P+3]<<24>>>0)):(P+1<N&&(S=h[P+1]<<16),P+2<N&&(S|=h[P+2]<<8),P+3<N&&(S|=h[P+3]),S+=h[P]<<24>>>0),S}function D(h,P,B,U){if(U||(g(typeof B=="boolean","missing or invalid endian"),g(P!=null,"missing offset"),g(P+1<h.length,"Trying to read beyond buffer length")),!(h.length<=P))return U=V(h,P,B,!0),32768&U?-1*(65535-U+1):U}function R(h,P,B,U){if(U||(g(typeof B=="boolean","missing or invalid endian"),g(P!=null,"missing offset"),g(P+3<h.length,"Trying to read beyond buffer length")),!(h.length<=P))return U=z(h,P,B,!0),2147483648&U?-1*(4294967295-U+1):U}function w(h,P,B,U){return U||(g(typeof B=="boolean","missing or invalid endian"),g(P+3<h.length,"Trying to read beyond buffer length")),O.read(h,P,B,23,4)}function T(h,P,B,U){return U||(g(typeof B=="boolean","missing or invalid endian"),g(P+7<h.length,"Trying to read beyond buffer length")),O.read(h,P,B,52,8)}function p(h,P,B,U,S){if(S||(g(P!=null,"missing value"),g(typeof U=="boolean","missing or invalid endian"),g(B!=null,"missing offset"),g(B+1<h.length,"trying to write beyond buffer length"),l(P,65535)),S=h.length,!(S<=B))for(var N=0,W=Math.min(S-B,2);N<W;N++)h[B+N]=(P&255<<8*(U?N:1-N))>>>8*(U?N:1-N)}function c(h,P,B,U,S){if(S||(g(P!=null,"missing value"),g(typeof U=="boolean","missing or invalid endian"),g(B!=null,"missing offset"),g(B+3<h.length,"trying to write beyond buffer length"),l(P,4294967295)),S=h.length,!(S<=B))for(var N=0,W=Math.min(S-B,4);N<W;N++)h[B+N]=P>>>8*(U?N:3-N)&255}function d(h,P,B,U,S){S||(g(P!=null,"missing value"),g(typeof U=="boolean","missing or invalid endian"),g(B!=null,"missing offset"),g(B+1<h.length,"Trying to write beyond buffer length"),o(P,32767,-32768)),h.length<=B||p(h,0<=P?P:65535+P+1,B,U,S)}function _(h,P,B,U,S){S||(g(P!=null,"missing value"),g(typeof U=="boolean","missing or invalid endian"),g(B!=null,"missing offset"),g(B+3<h.length,"Trying to write beyond buffer length"),o(P,2147483647,-2147483648)),h.length<=B||c(h,0<=P?P:4294967295+P+1,B,U,S)}function y(h,P,B,U,S){S||(g(P!=null,"missing value"),g(typeof U=="boolean","missing or invalid endian"),g(B!=null,"missing offset"),g(B+3<h.length,"Trying to write beyond buffer length"),v(P,34028234663852886e22,-34028234663852886e22)),h.length<=B||O.write(h,P,B,U,23,4)}function C(h,P,B,U,S){S||(g(P!=null,"missing value"),g(typeof U=="boolean","missing or invalid endian"),g(B!=null,"missing offset"),g(B+7<h.length,"Trying to write beyond buffer length"),v(P,17976931348623157e292,-17976931348623157e292)),h.length<=B||O.write(h,P,B,U,52,8)}a.Buffer=$,a.SlowBuffer=$,a.INSPECT_MAX_BYTES=50,$.poolSize=8192,$._useTypedArrays=function(){try{var h=new ArrayBuffer(0),P=new Uint8Array(h);return P.foo=function(){return 42},P.foo()===42&&typeof P.subarray=="function"}catch(B){return!1}}(),$.isEncoding=function(h){switch(String(h).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},$.isBuffer=function(h){return!(h==null||!h._isBuffer)},$.byteLength=function(h,P){var B;switch(h+="",P||"utf8"){case"hex":B=h.length/2;break;case"utf8":case"utf-8":B=u(h).length;break;case"ascii":case"binary":case"raw":B=h.length;break;case"base64":B=m(h).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":B=2*h.length;break;default:throw new Error("Unknown encoding")}return B},$.concat=function(h,P){if(g(b(h),`Usage: Buffer.concat(list, [totalLength])
5
5
  list should be an Array.`),h.length===0)return new $(0);if(h.length===1)return h[0];if(typeof P!="number")for(S=P=0;S<h.length;S++)P+=h[S].length;for(var B=new $(P),U=0,S=0;S<h.length;S++){var N=h[S];N.copy(B,U),U+=N.length}return B},$.prototype.write=function(h,P,B,U){isFinite(P)?isFinite(B)||(U=B,B=void 0):(ie=U,U=P,P=B,B=ie),P=Number(P)||0;var S,N,W,ee,ie=this.length-P;switch((!B||ie<(B=Number(B)))&&(B=ie),U=String(U||"utf8").toLowerCase()){case"hex":S=function(Z,K,Q,le){Q=Number(Q)||0;var ae=Z.length-Q;(!le||ae<(le=Number(le)))&&(le=ae),g((ae=K.length)%2==0,"Invalid hex string"),ae/2<le&&(le=ae/2);for(var oe=0;oe<le;oe++){var ce=parseInt(K.substr(2*oe,2),16);g(!isNaN(ce),"Invalid hex string"),Z[Q+oe]=ce}return $._charsWritten=2*oe,oe}(this,h,P,B);break;case"utf8":case"utf-8":N=this,W=P,ee=B,S=$._charsWritten=n(u(h),N,W,ee);break;case"ascii":case"binary":S=Y(this,h,P,B);break;case"base64":N=this,W=P,ee=B,S=$._charsWritten=n(m(h),N,W,ee);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":S=X(this,h,P,B);break;default:throw new Error("Unknown encoding")}return S},$.prototype.toString=function(h,P,B){var U,S,N,W,ee=this;if(h=String(h||"utf8").toLowerCase(),P=Number(P)||0,(B=B!==void 0?Number(B):ee.length)===P)return"";switch(h){case"hex":U=function(ie,Z,K){var Q=ie.length;(!Z||Z<0)&&(Z=0),(!K||K<0||Q<K)&&(K=Q);for(var le="",ae=Z;ae<K;ae++)le+=x(ie[ae]);return le}(ee,P,B);break;case"utf8":case"utf-8":U=function(ie,Z,K){var Q="",le="";K=Math.min(ie.length,K);for(var ae=Z;ae<K;ae++)ie[ae]<=127?(Q+=s(le)+String.fromCharCode(ie[ae]),le=""):le+="%"+ie[ae].toString(16);return Q+s(le)}(ee,P,B);break;case"ascii":case"binary":U=G(ee,P,B);break;case"base64":S=ee,W=B,U=(N=P)===0&&W===S.length?F.fromByteArray(S):F.fromByteArray(S.slice(N,W));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":U=function(ie,Z,K){for(var Q=ie.slice(Z,K),le="",ae=0;ae<Q.length;ae+=2)le+=String.fromCharCode(Q[ae]+256*Q[ae+1]);return le}(ee,P,B);break;default:throw new Error("Unknown encoding")}return U},$.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},$.prototype.copy=function(h,P,B,U){if(P=P||0,(U=U||U===0?U:this.length)!==(B=B||0)&&h.length!==0&&this.length!==0){g(B<=U,"sourceEnd < sourceStart"),g(0<=P&&P<h.length,"targetStart out of bounds"),g(0<=B&&B<this.length,"sourceStart out of bounds"),g(0<=U&&U<=this.length,"sourceEnd out of bounds"),U>this.length&&(U=this.length);var S=(U=h.length-P<U-B?h.length-P+B:U)-B;if(S<100||!$._useTypedArrays)for(var N=0;N<S;N++)h[N+P]=this[N+B];else h._set(this.subarray(B,B+S),P)}},$.prototype.slice=function(h,P){var B=this.length;if(h=j(h,B,0),P=j(P,B,B),$._useTypedArrays)return $._augment(this.subarray(h,P));for(var U=P-h,S=new $(U,void 0,!0),N=0;N<U;N++)S[N]=this[N+h];return S},$.prototype.get=function(h){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(h)},$.prototype.set=function(h,P){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(h,P)},$.prototype.readUInt8=function(h,P){if(P||(g(h!=null,"missing offset"),g(h<this.length,"Trying to read beyond buffer length")),!(h>=this.length))return this[h]},$.prototype.readUInt16LE=function(h,P){return V(this,h,!0,P)},$.prototype.readUInt16BE=function(h,P){return V(this,h,!1,P)},$.prototype.readUInt32LE=function(h,P){return z(this,h,!0,P)},$.prototype.readUInt32BE=function(h,P){return z(this,h,!1,P)},$.prototype.readInt8=function(h,P){if(P||(g(h!=null,"missing offset"),g(h<this.length,"Trying to read beyond buffer length")),!(h>=this.length))return 128&this[h]?-1*(255-this[h]+1):this[h]},$.prototype.readInt16LE=function(h,P){return D(this,h,!0,P)},$.prototype.readInt16BE=function(h,P){return D(this,h,!1,P)},$.prototype.readInt32LE=function(h,P){return R(this,h,!0,P)},$.prototype.readInt32BE=function(h,P){return R(this,h,!1,P)},$.prototype.readFloatLE=function(h,P){return w(this,h,!0,P)},$.prototype.readFloatBE=function(h,P){return w(this,h,!1,P)},$.prototype.readDoubleLE=function(h,P){return T(this,h,!0,P)},$.prototype.readDoubleBE=function(h,P){return T(this,h,!1,P)},$.prototype.writeUInt8=function(h,P,B){B||(g(h!=null,"missing value"),g(P!=null,"missing offset"),g(P<this.length,"trying to write beyond buffer length"),l(h,255)),P>=this.length||(this[P]=h)},$.prototype.writeUInt16LE=function(h,P,B){p(this,h,P,!0,B)},$.prototype.writeUInt16BE=function(h,P,B){p(this,h,P,!1,B)},$.prototype.writeUInt32LE=function(h,P,B){c(this,h,P,!0,B)},$.prototype.writeUInt32BE=function(h,P,B){c(this,h,P,!1,B)},$.prototype.writeInt8=function(h,P,B){B||(g(h!=null,"missing value"),g(P!=null,"missing offset"),g(P<this.length,"Trying to write beyond buffer length"),o(h,127,-128)),P>=this.length||(0<=h?this.writeUInt8(h,P,B):this.writeUInt8(255+h+1,P,B))},$.prototype.writeInt16LE=function(h,P,B){d(this,h,P,!0,B)},$.prototype.writeInt16BE=function(h,P,B){d(this,h,P,!1,B)},$.prototype.writeInt32LE=function(h,P,B){_(this,h,P,!0,B)},$.prototype.writeInt32BE=function(h,P,B){_(this,h,P,!1,B)},$.prototype.writeFloatLE=function(h,P,B){y(this,h,P,!0,B)},$.prototype.writeFloatBE=function(h,P,B){y(this,h,P,!1,B)},$.prototype.writeDoubleLE=function(h,P,B){C(this,h,P,!0,B)},$.prototype.writeDoubleBE=function(h,P,B){C(this,h,P,!1,B)},$.prototype.fill=function(h,P,B){if(P=P||0,B=B||this.length,g(typeof(h=typeof(h=h||0)=="string"?h.charCodeAt(0):h)=="number"&&!isNaN(h),"value is not a number"),g(P<=B,"end < start"),B!==P&&this.length!==0){g(0<=P&&P<this.length,"start out of bounds"),g(0<=B&&B<=this.length,"end out of bounds");for(var U=P;U<B;U++)this[U]=h}},$.prototype.inspect=function(){for(var h=[],P=this.length,B=0;B<P;B++)if(h[B]=x(this[B]),B===a.INSPECT_MAX_BYTES){h[B+1]="...";break}return"<Buffer "+h.join(" ")+">"},$.prototype.toArrayBuffer=function(){if(typeof Uint8Array=="undefined")throw new Error("Buffer.toArrayBuffer not supported in this browser");if($._useTypedArrays)return new $(this).buffer;for(var h=new Uint8Array(this.length),P=0,B=h.length;P<B;P+=1)h[P]=this[P];return h.buffer};var I=$.prototype;function j(h,P,B){return typeof h!="number"?B:P<=(h=~~h)?P:0<=h||0<=(h+=P)?h:0}function E(h){return(h=~~Math.ceil(+h))<0?0:h}function b(h){return(Array.isArray||function(P){return Object.prototype.toString.call(P)==="[object Array]"})(h)}function x(h){return h<16?"0"+h.toString(16):h.toString(16)}function u(h){for(var P=[],B=0;B<h.length;B++){var U=h.charCodeAt(B);if(U<=127)P.push(h.charCodeAt(B));else for(var S=B,N=(55296<=U&&U<=57343&&B++,encodeURIComponent(h.slice(S,B+1)).substr(1).split("%")),W=0;W<N.length;W++)P.push(parseInt(N[W],16))}return P}function m(h){return F.toByteArray(h)}function n(h,P,B,U){for(var S=0;S<U&&!(S+B>=P.length||S>=h.length);S++)P[S+B]=h[S];return S}function s(h){try{return decodeURIComponent(h)}catch(P){return"�"}}function l(h,P){g(typeof h=="number","cannot write a non-number as a number"),g(0<=h,"specified a negative value for writing an unsigned value"),g(h<=P,"value is larger than maximum value for type"),g(Math.floor(h)===h,"value has a fractional component")}function o(h,P,B){g(typeof h=="number","cannot write a non-number as a number"),g(h<=P,"value larger than maximum allowed value"),g(B<=h,"value smaller than minimum allowed value"),g(Math.floor(h)===h,"value has a fractional component")}function v(h,P,B){g(typeof h=="number","cannot write a non-number as a number"),g(h<=P,"value larger than maximum allowed value"),g(B<=h,"value smaller than minimum allowed value")}function g(h,P){if(!h)throw new Error(P||"Failed assertion")}$._augment=function(h){return h._isBuffer=!0,h._get=h.get,h._set=h.set,h.get=I.get,h.set=I.set,h.write=I.write,h.toString=I.toString,h.toLocaleString=I.toString,h.toJSON=I.toJSON,h.copy=I.copy,h.slice=I.slice,h.readUInt8=I.readUInt8,h.readUInt16LE=I.readUInt16LE,h.readUInt16BE=I.readUInt16BE,h.readUInt32LE=I.readUInt32LE,h.readUInt32BE=I.readUInt32BE,h.readInt8=I.readInt8,h.readInt16LE=I.readInt16LE,h.readInt16BE=I.readInt16BE,h.readInt32LE=I.readInt32LE,h.readInt32BE=I.readInt32BE,h.readFloatLE=I.readFloatLE,h.readFloatBE=I.readFloatBE,h.readDoubleLE=I.readDoubleLE,h.readDoubleBE=I.readDoubleBE,h.writeUInt8=I.writeUInt8,h.writeUInt16LE=I.writeUInt16LE,h.writeUInt16BE=I.writeUInt16BE,h.writeUInt32LE=I.writeUInt32LE,h.writeUInt32BE=I.writeUInt32BE,h.writeInt8=I.writeInt8,h.writeInt16LE=I.writeInt16LE,h.writeInt16BE=I.writeInt16BE,h.writeInt32LE=I.writeInt32LE,h.writeInt32BE=I.writeInt32BE,h.writeFloatLE=I.writeFloatLE,h.writeFloatBE=I.writeFloatBE,h.writeDoubleLE=I.writeDoubleLE,h.writeDoubleBE=I.writeDoubleBE,h.fill=I.fill,h.inspect=I.inspect,h.toArrayBuffer=I.toArrayBuffer,h}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(i,r,a){(function(f,A,F,q,J,ne,se,M,te){var F=i("buffer").Buffer,O=4,$=new F(O);$.fill(0),r.exports={hash:function(Y,X,G,V){for(var z=X(function(p,c){p.length%O!=0&&(d=p.length+(O-p.length%O),p=F.concat([p,$],d));for(var d,_=[],y=c?p.readInt32BE:p.readInt32LE,C=0;C<p.length;C+=O)_.push(y.call(p,C));return _}(Y=F.isBuffer(Y)?Y:new F(Y),V),8*Y.length),X=V,D=new F(G),R=X?D.writeInt32BE:D.writeInt32LE,w=0;w<z.length;w++)R.call(D,z[w],4*w,!0);return D}}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(i,r,a){(function(f,A,F,q,J,ne,se,M,te){var F=i("buffer").Buffer,O=i("./sha"),$=i("./sha256"),Y=i("./rng"),X={sha1:O,sha256:$,md5:i("./md5")},G=64,V=new F(G);function z(p,c){var d=X[p=p||"sha1"],_=[];return d||D("algorithm:",p,"is not yet supported"),{update:function(y){return F.isBuffer(y)||(y=new F(y)),_.push(y),this},digest:function(y){var C=F.concat(_),C=c?function(I,j,E){F.isBuffer(j)||(j=new F(j)),F.isBuffer(E)||(E=new F(E)),j.length>G?j=I(j):j.length<G&&(j=F.concat([j,V],G));for(var b=new F(G),x=new F(G),u=0;u<G;u++)b[u]=54^j[u],x[u]=92^j[u];return E=I(F.concat([b,E])),I(F.concat([x,E]))}(d,c,C):d(C);return _=null,y?C.toString(y):C}}}function D(){var p=[].slice.call(arguments).join(" ");throw new Error([p,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
6
- `))}V.fill(0),a.createHash=function(p){return z(p)},a.createHmac=z,a.randomBytes=function(p,c){if(!c||!c.call)return new F(Y(p));try{c.call(this,void 0,new F(Y(p)))}catch(d){c(d)}};var R,w=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],T=function(p){a[p]=function(){D("sorry,",p,"is not implemented yet")}};for(R in w)T(w[R])}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){var F=i("./helpers");function O(D,R){D[R>>5]|=128<<R%32,D[14+(R+64>>>9<<4)]=R;for(var w=1732584193,T=-271733879,p=-1732584194,c=271733878,d=0;d<D.length;d+=16){var _=w,y=T,C=p,I=c,w=Y(w,T,p,c,D[d+0],7,-680876936),c=Y(c,w,T,p,D[d+1],12,-389564586),p=Y(p,c,w,T,D[d+2],17,606105819),T=Y(T,p,c,w,D[d+3],22,-1044525330);w=Y(w,T,p,c,D[d+4],7,-176418897),c=Y(c,w,T,p,D[d+5],12,1200080426),p=Y(p,c,w,T,D[d+6],17,-1473231341),T=Y(T,p,c,w,D[d+7],22,-45705983),w=Y(w,T,p,c,D[d+8],7,1770035416),c=Y(c,w,T,p,D[d+9],12,-1958414417),p=Y(p,c,w,T,D[d+10],17,-42063),T=Y(T,p,c,w,D[d+11],22,-1990404162),w=Y(w,T,p,c,D[d+12],7,1804603682),c=Y(c,w,T,p,D[d+13],12,-40341101),p=Y(p,c,w,T,D[d+14],17,-1502002290),w=X(w,T=Y(T,p,c,w,D[d+15],22,1236535329),p,c,D[d+1],5,-165796510),c=X(c,w,T,p,D[d+6],9,-1069501632),p=X(p,c,w,T,D[d+11],14,643717713),T=X(T,p,c,w,D[d+0],20,-373897302),w=X(w,T,p,c,D[d+5],5,-701558691),c=X(c,w,T,p,D[d+10],9,38016083),p=X(p,c,w,T,D[d+15],14,-660478335),T=X(T,p,c,w,D[d+4],20,-405537848),w=X(w,T,p,c,D[d+9],5,568446438),c=X(c,w,T,p,D[d+14],9,-1019803690),p=X(p,c,w,T,D[d+3],14,-187363961),T=X(T,p,c,w,D[d+8],20,1163531501),w=X(w,T,p,c,D[d+13],5,-1444681467),c=X(c,w,T,p,D[d+2],9,-51403784),p=X(p,c,w,T,D[d+7],14,1735328473),w=G(w,T=X(T,p,c,w,D[d+12],20,-1926607734),p,c,D[d+5],4,-378558),c=G(c,w,T,p,D[d+8],11,-2022574463),p=G(p,c,w,T,D[d+11],16,1839030562),T=G(T,p,c,w,D[d+14],23,-35309556),w=G(w,T,p,c,D[d+1],4,-1530992060),c=G(c,w,T,p,D[d+4],11,1272893353),p=G(p,c,w,T,D[d+7],16,-155497632),T=G(T,p,c,w,D[d+10],23,-1094730640),w=G(w,T,p,c,D[d+13],4,681279174),c=G(c,w,T,p,D[d+0],11,-358537222),p=G(p,c,w,T,D[d+3],16,-722521979),T=G(T,p,c,w,D[d+6],23,76029189),w=G(w,T,p,c,D[d+9],4,-640364487),c=G(c,w,T,p,D[d+12],11,-421815835),p=G(p,c,w,T,D[d+15],16,530742520),w=V(w,T=G(T,p,c,w,D[d+2],23,-995338651),p,c,D[d+0],6,-198630844),c=V(c,w,T,p,D[d+7],10,1126891415),p=V(p,c,w,T,D[d+14],15,-1416354905),T=V(T,p,c,w,D[d+5],21,-57434055),w=V(w,T,p,c,D[d+12],6,1700485571),c=V(c,w,T,p,D[d+3],10,-1894986606),p=V(p,c,w,T,D[d+10],15,-1051523),T=V(T,p,c,w,D[d+1],21,-2054922799),w=V(w,T,p,c,D[d+8],6,1873313359),c=V(c,w,T,p,D[d+15],10,-30611744),p=V(p,c,w,T,D[d+6],15,-1560198380),T=V(T,p,c,w,D[d+13],21,1309151649),w=V(w,T,p,c,D[d+4],6,-145523070),c=V(c,w,T,p,D[d+11],10,-1120210379),p=V(p,c,w,T,D[d+2],15,718787259),T=V(T,p,c,w,D[d+9],21,-343485551),w=z(w,_),T=z(T,y),p=z(p,C),c=z(c,I)}return Array(w,T,p,c)}function $(D,R,w,T,p,c){return z((R=z(z(R,D),z(T,c)))<<p|R>>>32-p,w)}function Y(D,R,w,T,p,c,d){return $(R&w|~R&T,D,R,p,c,d)}function X(D,R,w,T,p,c,d){return $(R&T|w&~T,D,R,p,c,d)}function G(D,R,w,T,p,c,d){return $(R^w^T,D,R,p,c,d)}function V(D,R,w,T,p,c,d){return $(w^(R|~T),D,R,p,c,d)}function z(D,R){var w=(65535&D)+(65535&R);return(D>>16)+(R>>16)+(w>>16)<<16|65535&w}r.exports=function(D){return F.hash(D,O,16)}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){r.exports=function(F){for(var O,$=new Array(F),Y=0;Y<F;Y++)!(3&Y)&&(O=4294967296*Math.random()),$[Y]=O>>>((3&Y)<<3)&255;return $}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){var F=i("./helpers");function O(X,G){X[G>>5]|=128<<24-G%32,X[15+(G+64>>9<<4)]=G;for(var V,z,D,R=Array(80),w=1732584193,T=-271733879,p=-1732584194,c=271733878,d=-1009589776,_=0;_<X.length;_+=16){for(var y=w,C=T,I=p,j=c,E=d,b=0;b<80;b++){R[b]=b<16?X[_+b]:Y(R[b-3]^R[b-8]^R[b-14]^R[b-16],1);var x=$($(Y(w,5),(x=T,z=p,D=c,(V=b)<20?x&z|~x&D:!(V<40)&&V<60?x&z|x&D|z&D:x^z^D)),$($(d,R[b]),(V=b)<20?1518500249:V<40?1859775393:V<60?-1894007588:-899497514)),d=c,c=p,p=Y(T,30),T=w,w=x}w=$(w,y),T=$(T,C),p=$(p,I),c=$(c,j),d=$(d,E)}return Array(w,T,p,c,d)}function $(X,G){var V=(65535&X)+(65535&G);return(X>>16)+(G>>16)+(V>>16)<<16|65535&V}function Y(X,G){return X<<G|X>>>32-G}r.exports=function(X){return F.hash(X,O,20,!0)}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){function F(G,V){var z=(65535&G)+(65535&V);return(G>>16)+(V>>16)+(z>>16)<<16|65535&z}function O(G,V){var z,D=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),R=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),w=new Array(64);G[V>>5]|=128<<24-V%32,G[15+(V+64>>9<<4)]=V;for(var T,p,c=0;c<G.length;c+=16){for(var d=R[0],_=R[1],y=R[2],C=R[3],I=R[4],j=R[5],E=R[6],b=R[7],x=0;x<64;x++)w[x]=x<16?G[x+c]:F(F(F((p=w[x-2],Y(p,17)^Y(p,19)^X(p,10)),w[x-7]),(p=w[x-15],Y(p,7)^Y(p,18)^X(p,3))),w[x-16]),z=F(F(F(F(b,Y(p=I,6)^Y(p,11)^Y(p,25)),I&j^~I&E),D[x]),w[x]),T=F(Y(T=d,2)^Y(T,13)^Y(T,22),d&_^d&y^_&y),b=E,E=j,j=I,I=F(C,z),C=y,y=_,_=d,d=F(z,T);R[0]=F(d,R[0]),R[1]=F(_,R[1]),R[2]=F(y,R[2]),R[3]=F(C,R[3]),R[4]=F(I,R[4]),R[5]=F(j,R[5]),R[6]=F(E,R[6]),R[7]=F(b,R[7])}return R}var $=i("./helpers"),Y=function(G,V){return G>>>V|G<<32-V},X=function(G,V){return G>>>V};r.exports=function(G){return $.hash(G,O,32,!0)}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){a.read=function(F,O,$,Y,c){var G,V,z=8*c-Y-1,D=(1<<z)-1,R=D>>1,w=-7,T=$?c-1:0,p=$?-1:1,c=F[O+T];for(T+=p,G=c&(1<<-w)-1,c>>=-w,w+=z;0<w;G=256*G+F[O+T],T+=p,w-=8);for(V=G&(1<<-w)-1,G>>=-w,w+=Y;0<w;V=256*V+F[O+T],T+=p,w-=8);if(G===0)G=1-R;else{if(G===D)return V?NaN:1/0*(c?-1:1);V+=Math.pow(2,Y),G-=R}return(c?-1:1)*V*Math.pow(2,G-Y)},a.write=function(F,O,$,Y,X,d){var V,z,D=8*d-X-1,R=(1<<D)-1,w=R>>1,T=X===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=Y?0:d-1,c=Y?1:-1,d=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(z=isNaN(O)?1:0,V=R):(V=Math.floor(Math.log(O)/Math.LN2),O*(Y=Math.pow(2,-V))<1&&(V--,Y*=2),2<=(O+=1<=V+w?T/Y:T*Math.pow(2,1-w))*Y&&(V++,Y/=2),R<=V+w?(z=0,V=R):1<=V+w?(z=(O*Y-1)*Math.pow(2,X),V+=w):(z=O*Math.pow(2,w-1)*Math.pow(2,X),V=0));8<=X;F[$+p]=255&z,p+=c,z/=256,X-=8);for(V=V<<X|z,D+=X;0<D;F[$+p]=255&V,p+=c,V/=256,D-=8);F[$+p-c]|=128*d}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){var F,O,$;function Y(){}(f=r.exports={}).nextTick=(O=typeof window!="undefined"&&window.setImmediate,$=typeof window!="undefined"&&window.postMessage&&window.addEventListener,O?function(X){return window.setImmediate(X)}:$?(F=[],window.addEventListener("message",function(X){var G=X.source;G!==window&&G!==null||X.data!=="process-tick"||(X.stopPropagation(),0<F.length&&F.shift()())},!0),function(X){F.push(X),window.postMessage("process-tick","*")}):function(X){setTimeout(X,0)}),f.title="browser",f.browser=!0,f.env={},f.argv=[],f.on=Y,f.addListener=Y,f.once=Y,f.off=Y,f.removeListener=Y,f.removeAllListeners=Y,f.emit=Y,f.binding=function(X){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(X){throw new Error("process.chdir is not supported")}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(m_);var _j=m_.exports;const Cj=Et(_j);function Sj(e,t){for(var i=-1,r=e==null?0:e.length;++i<r&&t(e[i],i,e)!==!1;);return e}var g_=Sj,Mj=Qu,Tj=yl,Pj=Object.prototype,kj=Pj.hasOwnProperty;function Ej(e,t,i){var r=e[t];(!(kj.call(e,t)&&Tj(r,i))||i===void 0&&!(t in e))&&Mj(e,t,i)}var Wm=Ej,Aj=Wm,Oj=Qu;function Lj(e,t,i,r){var a=!i;i||(i={});for(var f=-1,A=t.length;++f<A;){var H=t[f],q=r?r(i[H],e[H],H,i,e):void 0;q===void 0&&(q=e[H]),a?Oj(i,H,q):Aj(i,H,q)}return i}var wl=Lj,Dj=wl,Rj=vl;function Nj(e,t){return e&&Dj(t,Rj(t),e)}var Ij=Nj;function jj(e){var t=[];if(e!=null)for(var i in Object(e))t.push(i);return t}var Bj=jj,zj=Or,Fj=ih,Wj=Bj,$j=Object.prototype,Hj=$j.hasOwnProperty;function Uj(e){if(!zj(e))return Wj(e);var t=Fj(e),i=[];for(var r in e)r=="constructor"&&(t||!Hj.call(e,r))||i.push(r);return i}var Vj=Uj,Gj=Ww,Yj=Vj,Xj=Lo;function qj(e){return Xj(e)?Gj(e,!0):Yj(e)}var ph=qj,Zj=wl,Kj=ph;function Qj(e,t){return e&&Zj(t,Kj(t),e)}var Jj=Qj,Hp={exports:{}};(function(e,t){var i=Ar,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,f=a&&a.exports===r,A=f?i.Buffer:void 0,H=A?A.allocUnsafe:void 0;function q(J,ne){if(ne)return J.slice();var se=J.length,M=H?H(se):new J.constructor(se);return J.copy(M),M}e.exports=q})(Hp,Hp.exports);var v_=Hp.exports;function e5(e,t){var i=-1,r=e.length;for(t||(t=Array(r));++i<r;)t[i]=e[i];return t}var $m=e5,t5=wl,i5=Dm;function r5(e,t){return t5(e,i5(e),t)}var n5=r5,o5=$w,a5=o5(Object.getPrototypeOf,Object),Hm=a5,s5=Lm,l5=Hm,c5=Dm,u5=qw,h5=Object.getOwnPropertySymbols,d5=h5?function(e){for(var t=[];e;)s5(t,c5(e)),e=l5(e);return t}:u5,y_=d5,p5=wl,f5=y_;function m5(e,t){return p5(e,f5(e),t)}var g5=m5,v5=Xw,y5=y_,b5=ph;function x5(e){return v5(e,b5,y5)}var w5=x5,_5=Object.prototype,C5=_5.hasOwnProperty;function S5(e){var t=e.length,i=new e.constructor(t);return t&&typeof e[0]=="string"&&C5.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var M5=S5,P0=Yw;function T5(e){var t=new e.constructor(e.byteLength);return new P0(t).set(new P0(e)),t}var Um=T5,P5=Um;function k5(e,t){var i=t?P5(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var E5=k5,A5=/\w*$/;function O5(e){var t=new e.constructor(e.source,A5.exec(e));return t.lastIndex=e.lastIndex,t}var L5=O5,k0=Na,E0=k0?k0.prototype:void 0,A0=E0?E0.valueOf:void 0;function D5(e){return A0?Object(A0.call(e)):{}}var R5=D5,N5=Um;function I5(e,t){var i=t?N5(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var b_=I5,j5=Um,B5=E5,z5=L5,F5=R5,W5=b_,$5="[object Boolean]",H5="[object Date]",U5="[object Map]",V5="[object Number]",G5="[object RegExp]",Y5="[object Set]",X5="[object String]",q5="[object Symbol]",Z5="[object ArrayBuffer]",K5="[object DataView]",Q5="[object Float32Array]",J5="[object Float64Array]",eB="[object Int8Array]",tB="[object Int16Array]",iB="[object Int32Array]",rB="[object Uint8Array]",nB="[object Uint8ClampedArray]",oB="[object Uint16Array]",aB="[object Uint32Array]";function sB(e,t,i){var r=e.constructor;switch(t){case Z5:return j5(e);case $5:case H5:return new r(+e);case K5:return B5(e,i);case Q5:case J5:case eB:case tB:case iB:case rB:case nB:case oB:case aB:return W5(e,i);case U5:return new r;case V5:case X5:return new r(e);case G5:return z5(e);case Y5:return new r;case q5:return F5(e)}}var lB=sB,cB=Or,O0=Object.create,uB=function(){function e(){}return function(t){if(!cB(t))return{};if(O0)return O0(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}(),Vm=uB,hB=Vm,dB=Hm,pB=ih;function fB(e){return typeof e.constructor=="function"&&!pB(e)?hB(dB(e)):{}}var x_=fB,mB=bl,gB=Lr,vB="[object Map]";function yB(e){return gB(e)&&mB(e)==vB}var bB=yB,xB=bB,wB=eh,L0=Pm,D0=L0&&L0.isMap,_B=D0?wB(D0):xB,CB=_B,SB=bl,MB=Lr,TB="[object Set]";function PB(e){return MB(e)&&SB(e)==TB}var kB=PB,EB=kB,AB=eh,R0=Pm,N0=R0&&R0.isSet,OB=N0?AB(N0):EB,LB=OB,DB=sh,RB=g_,NB=Wm,IB=Ij,jB=Jj,BB=v_,zB=$m,FB=n5,WB=g5,$B=Zw,HB=w5,UB=bl,VB=M5,GB=lB,YB=x_,XB=Ri,qB=gl,ZB=CB,KB=Or,QB=LB,JB=vl,ez=ph,tz=1,iz=2,rz=4,w_="[object Arguments]",nz="[object Array]",oz="[object Boolean]",az="[object Date]",sz="[object Error]",__="[object Function]",lz="[object GeneratorFunction]",cz="[object Map]",uz="[object Number]",C_="[object Object]",hz="[object RegExp]",dz="[object Set]",pz="[object String]",fz="[object Symbol]",mz="[object WeakMap]",gz="[object ArrayBuffer]",vz="[object DataView]",yz="[object Float32Array]",bz="[object Float64Array]",xz="[object Int8Array]",wz="[object Int16Array]",_z="[object Int32Array]",Cz="[object Uint8Array]",Sz="[object Uint8ClampedArray]",Mz="[object Uint16Array]",Tz="[object Uint32Array]",$t={};$t[w_]=$t[nz]=$t[gz]=$t[vz]=$t[oz]=$t[az]=$t[yz]=$t[bz]=$t[xz]=$t[wz]=$t[_z]=$t[cz]=$t[uz]=$t[C_]=$t[hz]=$t[dz]=$t[pz]=$t[fz]=$t[Cz]=$t[Sz]=$t[Mz]=$t[Tz]=!0;$t[sz]=$t[__]=$t[mz]=!1;function Vc(e,t,i,r,a,f){var A,H=t&tz,q=t&iz,J=t&rz;if(i&&(A=a?i(e,r,a,f):i(e)),A!==void 0)return A;if(!KB(e))return e;var ne=XB(e);if(ne){if(A=VB(e),!H)return zB(e,A)}else{var se=UB(e),M=se==__||se==lz;if(qB(e))return BB(e,H);if(se==C_||se==w_||M&&!a){if(A=q||M?{}:YB(e),!H)return q?WB(e,jB(A,e)):FB(e,IB(A,e))}else{if(!$t[se])return a?e:{};A=GB(e,se,H)}}f||(f=new DB);var te=f.get(e);if(te)return te;f.set(e,A),QB(e)?e.forEach(function($){A.add(Vc($,t,i,$,e,f))}):ZB(e)&&e.forEach(function($,Y){A.set(Y,Vc($,t,i,Y,e,f))});var F=J?q?HB:$B:q?ez:JB,O=ne?void 0:F(e);return RB(O||e,function($,Y){O&&(Y=$,$=e[Y]),NB(A,Y,Vc($,t,i,Y,e,f))}),A}var Pz=Vc,kz=Pz,Ez=1,Az=4;function Oz(e){return kz(e,Ez|Az)}var Lz=Oz;const lr=Et(Lz);var Gc;(function(e){e.INCLUDE_ALL="INCLUDE_ALL",e.ADVANCED="ADVANCED",e.INVALID="INVALID",e.CONDITION="CONDITION",e.SPECIFIC_ITEMS="SPECIFIC_ITEMS"})(Gc=Gc||(Gc={}));var Yc;(function(e){e.PERIOD="PERIOD",e.DATE_RANGE="DATE_RANGE"})(Yc=Yc||(Yc={}));var Xc;(function(e){e.NUMERIC_RANGE="NUMERIC_RANGE"})(Xc=Xc||(Xc={}));var Wn;(function(e){e.YEARS="years",e.QUARTERS="quarters",e.MONTHS="months",e.WEEKS="weeks",e.DAYS="days",e.HOURS="hours",e.MINUTES="minutes"})(Wn=Wn||(Wn={}));var pa;(function(e){e.DATE_TIME="datetime",e.NUMERIC="numeric",e.TEXT="text"})(pa=pa||(pa={}));const Dz=["1","30"],Lt=Object.assign(Object.assign(Object.assign({},Gc),Yc),Xc),Rz={[Lt.INCLUDE_ALL]:{all:!0,filterType:Lt.INCLUDE_ALL},[Lt.PERIOD]:{last:{count:1,offset:1},isNotCurrentPeriod:!0,filterType:Lt.PERIOD},[Lt.DATE_RANGE]:{filterType:Lt.DATE_RANGE},[Lt.NUMERIC_RANGE]:{filterType:Lt.NUMERIC_RANGE},[Lt.CONDITION]:{explicit:!1,multiSelection:!0,exclude:{members:[]},filterType:Lt.CONDITION},[Lt.SPECIFIC_ITEMS]:{explicit:!0,multiSelection:!0,members:[],filterType:Lt.SPECIFIC_ITEMS}},Nz={filter:Rz.INCLUDE_ALL,level:Wn.YEARS};exports.ConditionFilterType=void 0;(function(e){e.IS="members",e.IS_NOT="exclude",e.IS_WITHIN="isWithin",e.TOP="top",e.BOTTOM="bottom",e.AFTER="after",e.BEFORE="before",e.STARTS_WITH="startsWith",e.DOESNT_START_WITH="doesntStartWith",e.ENDS_WITH="endsWith",e.DOESNT_END_WITH="doesntEndWith",e.CONTAINS="contains",e.DOESNT_CONTAIN="doesntContain",e.EQUALS="equals",e.DOESNT_EQUAL="doesntEqual",e.IS_EMPTY="isEmpty",e.IS_NOT_EMPTY="isNotEmpty",e.GREATER_THAN="fromNotEqual",e.GREATER_THAN_OR_EQUAL="from",e.LESS_THAN="toNotEqual",e.LESS_THAN_OR_EQUAL="to",e.BETWEEN="between",e.IS_NOT_BETWEEN="isNotBetween",e.MULTIPLE_CONDITION="multipleCondition",e.NONE="none"})(exports.ConditionFilterType=exports.ConditionFilterType||(exports.ConditionFilterType={}));function Iz(e,t){return new q_(e,X_.Union,t)}function jz(e,t){return new q_(e,X_.Intersection,t)}function S_(e,t,i){return new WF(e,t,i)}function M_(e,t,i){return new mn(e,fn.DoesntContain,t,i)}function T_(e,t,i){return new mn(e,fn.DoesntEndWith,t,i)}function P_(e,t,i){return new mn(e,fn.DoesntStartWith,t,i)}function k_(e,t,i){return new mn(e,fn.Contains,t,i)}function E_(e,t,i){return new mn(e,fn.EndsWith,t,i)}function A_(e,t,i){return new mn(e,fn.StartsWith,t,i)}function Bz(e,t,i){return new mn(e,fn.Like,t,i)}function zz(e,t,i){return typeof t=="string"?new mn(e,fn.DoesntEqual,t,i):Do(e,Bi.DoesntEqual,t,void 0,void 0,i)}function O_(e,t,i){return typeof t=="string"?new mn(e,fn.Equals,t,i):Do(e,Bi.Equals,t,void 0,void 0,i)}function L_(e,t,i){return Do(e,Bi.FromNotEqual,t,void 0,void 0,i)}function D_(e,t,i){return Do(e,Bi.From,t,void 0,void 0,i)}function R_(e,t,i){return Do(e,Bi.ToNotEqual,t,void 0,void 0,i)}function N_(e,t,i){return Do(e,Bi.To,t,void 0,void 0,i)}function gu(e,t,i,r){return Do(e,Bi.From,t,Bi.To,i,r)}function Do(e,t,i,r,a,f){return new Q_(e,t,i,r,a,f)}function $a(e,t,i,r,a,f){return new Z_(e,t,i,r,a,f)}function I_(e,t,i,r){return new J_(e,t,i,r)}function j_(e,t,i,r,a){return new Xm(e,t,i,ya.Next,r,a)}function B_(e,t,i,r,a){return new Xm(e,t,i,ya.Last,r,a)}function Ha(e,t,i,r,a,f,A){return new K_(e,t,i,r,a,f,A)}function Fz(e,t,i){return Ha(e.attribute,e,Bi.Equals,t,void 0,void 0,i)}function Wz(e,t,i){return Ha(e.attribute,e,Bi.FromNotEqual,t,void 0,void 0,i)}function $z(e,t,i){return Ha(e.attribute,e,Bi.From,t,void 0,void 0,i)}function Hz(e,t,i){return Ha(e.attribute,e,Bi.To,t,void 0,void 0,i)}function Uz(e,t,i){return Ha(e.attribute,e,Bi.ToNotEqual,t,void 0,void 0,i)}function Vz(e,t,i,r){return Ha(e.attribute,e,Bi.From,t,Bi.To,i,r)}function z_(e,t,i,r){return new Ym(e,t,Gm.Top,i,r)}function F_(e,t,i,r){return new Ym(e,t,Gm.Bottom,i,r)}const xo=e=>{if(Array.isArray(e)){const[t,...i]=e;return i.length===0?xo(t):{operator:"AND",left:xo(t),right:xo(i)}}return e};var Ud;(function(e){e.and=(t,i)=>({operator:"AND",left:xo(t),right:xo(i)}),e.or=(t,i)=>({operator:"OR",left:xo(t),right:xo(i)})})(Ud=Ud||(Ud={}));function Gz(e,t,i){return new eC(e,t,i)}function W_(e){try{if(e==null)return JSON.stringify(e);if(e===Object(e)&&"composeCode"in e)return e.composeCode;if(Array.isArray(e))return"["+e.map(t=>W_(t)).join(", ")+"]";if(typeof e=="string")return`'${e}'`;if(typeof e=="number"||!isNaN(e))return e}catch(t){console.error(t)}return JSON.stringify(e)}function kt(e){return function(...t){const i=t.map(W_).join(", ").replace(/(,\s*)+$/,""),r=`filterFactory.${e.name}(${i})`,a=e(...t);return a.composeCode=r,a}}const I0="DM",$_=(e,t,i,r,a)=>{const f=t!=null?t:e.slice(1,-1).split(".")[0];if(r){const q=Vr.translateJaqlToGranularity({level:r}),J=Vr.getDefaultFormatForGranularity(q),ne=new Vr(i,e,q,J);return ne.composeCode=T0(f,i,r,I0),ne}const A=ti(a)?wt.NumericAttribute:wt.TextAttribute,H=new Wa(i,e,A);return H.composeCode=T0(f,i,void 0,I0),H},Yz=e=>$_(e.dim,e.table,e.column,e.level,e.datatype),H_=(e,t,i,r,a,f)=>{const A=$_(e,t,i,r,a),H=Fm(A,f);return H.composeCode=`measureFactory.${f}(${A.composeCode})`,H},Xz=e=>{const{dim:t,table:i,column:r,level:a,datatype:f,agg:A}=e;if(A)return H_(t,i,r,a,f,A)},j0=e=>{const{dim:t,table:i,column:r,level:a,datatype:f,agg:A}=e;return H_(t,i,r,a,f,A)},qz=e=>e.top!==void 0,Zz=e=>e.bottom!==void 0,Kz=e=>{var t;return!!(!((t=e.exclude)===null||t===void 0)&&t.members)},Qz=e=>!!e.members&&!!e.isCondition,Jz=e=>{var t,i;return((t=e.last)===null||t===void 0?void 0:t.anchor)!==void 0||((i=e.next)===null||i===void 0?void 0:i.anchor)!==void 0},eF=e=>e.fromNotEqual!==void 0,tF=e=>e.from!==void 0&&!e.isBetween,iF=e=>e.toNotEqual!==void 0,rF=e=>e.to!==void 0&&!e.isBetween,nF=e=>e.equals!==void 0,oF=e=>e.doesntEqual!==void 0,aF=e=>!!(e.equals===""&&e.isEmpty),sF=e=>!!(e.doesntEqual===""&&e.isEmpty),lF=e=>e.contains!==void 0,cF=e=>e.doesntContain!==void 0,uF=e=>e.startsWith!==void 0,hF=e=>e.doesntStartWith!==void 0,dF=e=>e.endsWith!==void 0,pF=e=>e.doesntEndWith!==void 0,fF=e=>e.from!==void 0&&e.to!==void 0,mF=e=>{var t,i;return((t=e.exclude)===null||t===void 0?void 0:t.from)!==void 0&&((i=e.exclude)===null||i===void 0?void 0:i.to)!==void 0},gF=e=>!!(e.or||e.and),fh=e=>Zz(e)?exports.ConditionFilterType.BOTTOM:qz(e)?exports.ConditionFilterType.TOP:Kz(e)?exports.ConditionFilterType.IS_NOT:Jz(e)?exports.ConditionFilterType.IS_WITHIN:eF(e)?exports.ConditionFilterType.GREATER_THAN:iF(e)?exports.ConditionFilterType.LESS_THAN:nF(e)?exports.ConditionFilterType.EQUALS:oF(e)?exports.ConditionFilterType.DOESNT_EQUAL:aF(e)?exports.ConditionFilterType.IS_EMPTY:sF(e)?exports.ConditionFilterType.IS_NOT_EMPTY:lF(e)?exports.ConditionFilterType.CONTAINS:cF(e)?exports.ConditionFilterType.DOESNT_CONTAIN:pF(e)?exports.ConditionFilterType.DOESNT_END_WITH:hF(e)?exports.ConditionFilterType.DOESNT_START_WITH:dF(e)?exports.ConditionFilterType.ENDS_WITH:uF(e)?exports.ConditionFilterType.STARTS_WITH:mF(e)?exports.ConditionFilterType.IS_NOT_BETWEEN:Qz(e)?exports.ConditionFilterType.IS:gF(e)?exports.ConditionFilterType.MULTIPLE_CONDITION:fF(e)?exports.ConditionFilterType.BETWEEN:tF(e)?exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:rF(e)?exports.ConditionFilterType.LESS_THAN_OR_EQUAL:exports.ConditionFilterType.NONE,Up=(e,t,i)=>{var r,a,f;switch(fh(t)){case exports.ConditionFilterType.BOTTOM:if(t.by&&"agg"in t.by)return kt(F_)(e,j0(t.by),t[exports.ConditionFilterType.BOTTOM],i);break;case exports.ConditionFilterType.EQUALS:return kt(O_)(e,t[exports.ConditionFilterType.EQUALS],i);case exports.ConditionFilterType.GREATER_THAN:return kt(L_)(e,t[exports.ConditionFilterType.GREATER_THAN],i);case exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:return kt(D_)(e,t[exports.ConditionFilterType.GREATER_THAN_OR_EQUAL],i);case exports.ConditionFilterType.TOP:if(t.by)return kt(z_)(e,j0(t.by),t[exports.ConditionFilterType.TOP],i);break;case exports.ConditionFilterType.STARTS_WITH:return kt(A_)(e,t[exports.ConditionFilterType.STARTS_WITH],i);case exports.ConditionFilterType.DOESNT_START_WITH:return kt(P_)(e,t[exports.ConditionFilterType.DOESNT_START_WITH],i);case exports.ConditionFilterType.ENDS_WITH:return kt(E_)(e,t[exports.ConditionFilterType.ENDS_WITH],i);case exports.ConditionFilterType.DOESNT_END_WITH:return kt(T_)(e,t[exports.ConditionFilterType.DOESNT_END_WITH],i);case exports.ConditionFilterType.CONTAINS:return kt(k_)(e,t[exports.ConditionFilterType.CONTAINS],i);case exports.ConditionFilterType.DOESNT_CONTAIN:return kt(M_)(e,t[exports.ConditionFilterType.DOESNT_CONTAIN],i);case exports.ConditionFilterType.LESS_THAN:return kt(R_)(e,t[exports.ConditionFilterType.LESS_THAN],i);case exports.ConditionFilterType.LESS_THAN_OR_EQUAL:return kt(N_)(e,t[exports.ConditionFilterType.LESS_THAN_OR_EQUAL],i);case exports.ConditionFilterType.BETWEEN:return kt(gu)(e,t.from,t.to,i);case exports.ConditionFilterType.IS_NOT_BETWEEN:return kt(S_)(kt(gu)(e,(r=t.exclude)===null||r===void 0?void 0:r.from,(a=t.exclude)===null||a===void 0?void 0:a.to,i),void 0,i);case exports.ConditionFilterType.MULTIPLE_CONDITION:if(t.and)return kt(jz)(t.and.map(H=>Up(e,H,i)),i);if(t.or)return kt(Iz)(t.or.map(H=>Up(e,H,i)),i);break;case exports.ConditionFilterType.IS_NOT:return kt($a)(e,((f=t.exclude)===null||f===void 0?void 0:f.members)||[],!0,i)}throw"Jaql contains unsupported condition filter: "+JSON.stringify(t)},vF=(e,t,i)=>{switch(fh(t)){case exports.ConditionFilterType.EQUALS:return kt(Fz)(e,t[exports.ConditionFilterType.EQUALS],i);case exports.ConditionFilterType.GREATER_THAN:return kt(Wz)(e,t[exports.ConditionFilterType.GREATER_THAN],i);case exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:return kt($z)(e,t[exports.ConditionFilterType.GREATER_THAN_OR_EQUAL],i);case exports.ConditionFilterType.LESS_THAN:return kt(Uz)(e,t[exports.ConditionFilterType.LESS_THAN],i);case exports.ConditionFilterType.LESS_THAN_OR_EQUAL:return kt(Hz)(e,t[exports.ConditionFilterType.LESS_THAN_OR_EQUAL],i);case exports.ConditionFilterType.BETWEEN:return kt(Vz)(e,t.from,t.to,i)}throw"Jaql contains unsupported condition filter: "+JSON.stringify(t)},yF=(e,t)=>{let i=e?e.toLocaleLowerCase():Wn.YEARS;return i===Wn.MINUTES&&t==="60"&&(i=Wn.HOURS),i},bF=e=>e==null?void 0:e.all,xF=e=>e.last?e.last:e.next,wF=e=>{var t;return((t=xF(e))===null||t===void 0?void 0:t.offset)<2},U_=e=>{var t;return((t=e==null?void 0:e.members)===null||t===void 0?void 0:t.length)>=0},_F=(e,t)=>e&&typeof e=="string"||t&&typeof t=="string",CF=(e,t)=>e===""&&t==="",SF=(e,t)=>{const{from:i,to:r}=e;return t!==pa.DATE_TIME?!1:_F(i,r)?!0:CF(i,r)},MF=e=>{const{from:t,to:i}=e;return t!==void 0&&i!==void 0&&!e.isBetween},V_=e=>fh(e)!==exports.ConditionFilterType.NONE,TF=e=>Object.keys(e).includes("isAdvanced"),PF=e=>!!(e.level&&e.bucket&&e.level===Wn.MINUTES&&Dz.includes(e.bucket)),kF=e=>e.filterType===Lt.INVALID,B0=(e,t=pa.DATE_TIME,i)=>i&&PF(i)||TF(e)?Lt.ADVANCED:bF(e)?Lt.INCLUDE_ALL:wF(e)?Lt.PERIOD:U_(e)?Lt.SPECIFIC_ITEMS:SF(e,t)?Lt.DATE_RANGE:MF(e)?Lt.NUMERIC_RANGE:V_(e)?Lt.CONDITION:(kF(e),Lt.INVALID),EF=(e,t)=>{const{level:i,filter:r,bucket:a}=e,f=r||Nz.filter,A={filter:Object.assign(Object.assign({},f),{filterType:B0(f,t)})};if(t===pa.DATE_TIME){const H=f,q=(H==null?void 0:H.level)||i;A.level=yF(q,a),A.filter.filterType=B0(f,t,{level:q,bucket:a})}return A},z0=(e,t)=>({guid:t||G_(13),jaql:i=>i?e:{jaql:e,panel:"scope"},attribute:{id:e.dim},type:"filter",serializable(){return Object.assign(Object.assign({},this),{jaql:this.jaql()})},toJSON(){return this.serializable()}}),AF=(e,t)=>kt($a)(e,[],!0,t),OF=(e,t,i)=>{const r=LF(t),a=DF(t,r);return kt($a)(e,a,void 0,i,r)};function LF(e){var t,i,r;return!((t=e.filter)===null||t===void 0)&&t.turnedOff?(r=(i=e.filter)===null||i===void 0?void 0:i.exclude)===null||r===void 0?void 0:r.members:void 0}function DF(e,t){const i=e.members;return t?i.filter(r=>!t.includes(r)):i}const RF=(e,t,i)=>kt(I_)(e,t.from,t.to,i),NF=(e,t,i)=>kt(gu)(e,t.from,t.to,i),IF=(e,t,i)=>t.last?kt(B_)(e,t.last.offset,t.last.count,t.last.anchor,i):kt(j_)(e,t.next.offset,t.next.count,t.next.anchor,i),jF=(e,t,i,r)=>i?vF(i,t,r):Up(e,t,r),BF=(e,t,i)=>kt(Gz)(e,t,i),F0=(e,t)=>{try{if("formula"in e)throw"Formula-based filter not supported yet: "+JSON.stringify(e);const i=EF(e,e.datatype),{filter:r}=i,{filterType:a}=r,f=Yz(e),A=Xz(e);switch(a){case Lt.INCLUDE_ALL:return AF(f,t);case Lt.SPECIFIC_ITEMS:return OF(f,r,t);case Lt.CONDITION:return jF(f,r,A,t);case Lt.DATE_RANGE:return RF(f,r,t);case Lt.PERIOD:return IF(f,r,t);case Lt.NUMERIC_RANGE:return NF(f,r,t);case Lt.ADVANCED:return BF(f,r,t);case Lt.INVALID:return z0(e,t)}}catch(i){}return z0(e,t)},G_=function(e){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=new Array(e);let r=0,a;for(let f=0;f<e;f+=1){if(f>0&&f%5==0){i[f]="-";continue}r<=2&&(r=33554432+Math.random()*16777216|0),a=r&15,r=r>>4,i[f]=t[f==19?a&3|8:a]}return i.join("")},mh=e=>{if(!e)return{filters:void 0,relations:void 0};if(Array.isArray(e))return{filters:e,relations:void 0};const t=new Set;function i(f){return f&&("guid"in f?(t.add(f),{instanceid:f.guid}):("left"in f&&(f.left=i(f.left)),"right"in f&&(f.right=i(f.right)),f))}const r=lr(e),a=i(r);return{filters:Array.from(t),relations:a}};function gh(e){return typeof e=="string"?e:e.title}function Y_(e){return typeof e=="object"&&"type"in e&&"title"in e}const zF=(e,t)=>{const i=e.filter.filter&&!("turnedOff"in e.filter.filter),r=F0(e,t);return i&&(r.backgroundFilter=F0(Object.assign(Object.assign({},e),{filter:e.filter.filter}),`${t}-bg`)),r},fn={Contains:"contains",StartsWith:"startsWith",EndsWith:"endsWith",Equals:"equals",DoesntEqual:"doesntEqual",DoesntStartWith:"doesntStartWith",DoesntContain:"doesntContain",DoesntEndWith:"doesntEndWith",Like:"like"},Bi={Equals:"equals",DoesntEqual:"doesntEqual",From:"from",FromNotEqual:"fromNotEqual",To:"to",ToNotEqual:"toNotEqual"},ya={From:"from",To:"to",Last:"last",Next:"next",Anchor:"Anchor"},X_={Union:"or",Intersection:"and",Exclude:"exclude"},Gm={Top:"top",Bottom:"bottom"},Dr={logicalAttribute:"logicalAttribute",members:"members",exclude:"exclude",measure:"measure",ranking:"ranking",text:"text",numeric:"numeric",date:"date",relativeDate:"relativeDate",cascading:"cascading",advanced:"advanced"};class cr extends Zu{constructor(t,i,r){super("filter",wt.Filter),this.filterType=i,cr.checkAttributeSupport(t),this.attribute=t,this.guid=r||G_(13),this.disabled=!1,this.locked=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get locked(){return this._locked}set locked(t){this._locked=t}get name(){return Cj(this.jaql())}serializable(){const t=super.serializable();return t.filterType=this.filterType,t.attribute=this.attribute.serializable(),t}jaql(t){if(this.disabled)return cr.disabledJaql(t);const i=this.attribute.jaql(!1),r=this.attribute;if(r.getFormat&&r.getFormat()!==void 0){const a=r.translateGranularityToJaql();i.format={mask:{[a.level]:r.getFormat()}}}return i.jaql.filter=this.filterJaql(),this.isScope&&(i.panel="scope"),t===!0?i.jaql:i}static checkAttributeSupport(t){const{granularity:i}=t;if(i===et.Hours||i===et.MinutesRoundTo30||i===et.MinutesRoundTo15||i===et.Minutes||i===et.Seconds)throw new p_("errors.filter.unsupportedDatetimeLevel")}static disabledJaql(t){return t?{filter:{}}:{jaql:{filter:{}}}}}class q_ extends cr{constructor(t,i,r){super(t[0].attribute,Dr.logicalAttribute,r),this.operator=i,this.filters=t}get id(){return`${this.operator}_${this.filters.map(t=>t.id).join()}`}serializable(){const t=super.serializable();return t.operator=this.operator,t.filters=this.filters.map(i=>i.serializable()),t}filterJaql(){const t={};return t[this.operator]=this.filters.map(i=>i.filterJaql()),t}}class Z_ extends cr{constructor(t,i,r,a,f,A){if(super(t,Dr.members,a),this.members=i!=null?i:[],this.excludeMembers=r!=null?r:!1,this.deactivatedMembers=f!=null?f:[],this.backgroundFilter=A,this.members.filter(H=>H==null).length>0)throw new p_("errors.filter.membersFilterNullMember",{attributeId:t.id})}get id(){return`${this.attribute.id}_${this.members.map(t=>t.toString()).join()}`}serializable(){const t=super.serializable();return t.members=this.members,this.backgroundFilter&&(t.backgroundFilter=this.backgroundFilter.serializable()),t}filterJaql(){const t={members:this.members.map(r=>r.toString())},i=this.excludeMembers?{exclude:t}:t;return this.backgroundFilter?{and:[i,this.backgroundFilter.filterJaql()]}:i}}class FF extends cr{constructor(t,i){super(t[0].attribute,Dr.cascading,i),this.filters=t}get id(){return`${this.filterType}_${this.filters.map(t=>t.id).join()}`}get disabled(){return super.disabled}set disabled(t){super.disabled=t,this.filters&&this.filters.forEach(i=>{i.disabled=t})}get locked(){return super.locked}set locked(t){super.locked=t,this.filters&&this.filters.forEach(i=>{i.locked=t})}serializable(){const t=super.serializable();return t.filters=this.filters.map(i=>i.serializable()),t}filterJaql(){return{}}jaql(t){return this.disabled?cr.disabledJaql(t):this.filters.map(i=>(i.isScope=!0,i.jaql(t)))}}class WF extends cr{constructor(t,i,r){super(t.attribute,Dr.exclude,r),this.input=i,this.filter=t}get id(){let t=`exclude_${this.filter.id}`;return this.input&&(t+="_from_"+this.input.id),t}serializable(){const t=super.serializable();return t.filter=this.filter.serializable(),this.input&&(t.input=this.input.serializable()),t}filterJaql(){const t={},i=this.filter.filterJaql();return this.input?(t.filter=this.input.filterJaql(),t.filter.filter={exclude:i}):t.exclude=i,t}}class vh extends cr{constructor(t,i,r,a,f,A,H){super(t,i,H),r&&a!==void 0&&(this.valueA=a,this.operatorA=r),f&&A!==void 0&&(this.operatorB=f,this.valueB=A)}get id(){let t=`${this.attribute.id}`;return this.operatorA&&this.valueA!==void 0&&(t+=`_${this.operatorA}:${this.valueA}`),this.operatorB&&this.valueB!==void 0&&(t+=`_${this.operatorB}:${this.valueB}`),t}serializable(){const t=super.serializable();return this.operatorA&&(t.operatorA=this.operatorA),this.operatorB&&(t.operatorB=this.operatorB),this.valueA!==void 0&&(t.valueA=this.valueA),this.valueB!==void 0&&(t.valueB=this.valueB),t}filterJaql(){const t={};return this.operatorA&&this.valueA!==void 0&&(t[this.operatorA]=this.valueA),this.operatorB&&this.valueB!==void 0&&(t[this.operatorB]=this.valueB),t}}class K_ extends vh{constructor(t,i,r,a,f,A,H){super(t,Dr.measure,r,a,f,A,H),this.measure=i}get id(){let t=`${this.attribute.id}_${this.measure.id}`;return this.operatorA&&this.valueA!==void 0&&(t+=`_${this.operatorA}:${this.valueA}`),this.operatorB&&this.valueB!==void 0&&(t+=`_${this.operatorB}${this.valueB}`),t}serializable(){const t=super.serializable();return t.measure=this.measure.serializable(),t}jaql(t){if(this.disabled)return cr.disabledJaql(t);const i=super.jaql(t);return this.measure instanceof Pn&&Object.entries(this.measure.jaql().jaql).forEach(([r,a])=>{i.jaql[r]=a}),i}}class Ym extends cr{constructor(t,i,r,a,f){super(t,Dr.ranking,f),this.count=a,this.operator=r,this.measure=i}get id(){return`${this.operator}_${this.count}_${this.attribute.id}_by_${this.measure.id}`}serializable(){const t=super.serializable();return t.count=this.count,t.operator=this.operator,t.measure=this.measure.serializable(),t}filterJaql(){const t={};return t[this.operator]=this.count,t.by=this.measure.jaql(!0),t}}class Q_ extends vh{constructor(t,i,r,a,f,A){super(t,Dr.numeric,i,r,a,f,A)}}class mn extends vh{constructor(t,i,r,a){super(t,Dr.text,i,r,void 0,void 0,a)}}class J_ extends vh{constructor(t,i,r,a){super(t,Dr.date,ya.From,i,ya.To,r,a),typeof i=="object"&&(this.valueA=i.toISOString()),typeof r=="object"&&(this.valueB=r.toISOString())}get level(){return this.attribute}get from(){return this.valueA}get to(){return this.valueB}filterJaql(){return super.filterJaql()}}class Xm extends cr{constructor(t,i,r,a,f,A){super(t,Dr.relativeDate,A),a||(a=ya.Next),this.anchor=f,this.operator=a,this.offset=i,this.count=r}get level(){return this.attribute}get id(){let t=`${this.level.id}_${this.operator}_${this.offset}_${this.count}`;return this.anchor&&(typeof this.anchor=="string"?t+=`_${this.anchor}`:typeof this.anchor=="object"&&(t+=`_${this.anchor.toISOString()}`)),t}serializable(){const t=super.serializable();return t.offset=this.offset,t.count=this.count,t.operator=this.operator,this.anchor&&(t.anchor=this.anchor),t}filterJaql(){const t={};return t[this.operator]={offset:this.offset,count:this.count},this.anchor&&(typeof this.anchor=="string"?t[this.operator].anchor=this.anchor:typeof this.anchor=="object"&&(t[this.operator].anchor=this.anchor.toISOString())),t}}class eC extends cr{constructor(t,i,r){super(t,Dr.advanced,r),delete i.filterType,this.jaqlExpression=i}get id(){return`custom_${this.attribute.id}_${this.guid}`}filterJaql(){return this.jaqlExpression}}const Ui={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function qm(e){return[Hi(Ui.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),Hi(Ui.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),Hi(Ui.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function $F(e){return[...qm(e),Hi(Ui.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),Hi(Ui.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),Hi(Ui.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function HF(e){return[...qm(e),Hi(Ui.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),Hi(Ui.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function UF(e){return[...qm(e),Hi(Ui.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),Hi(Ui.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),Hi(Ui.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const VF=e=>{const t=lr(e),i=Hi(Ui.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),r=Hi(Ui.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=a=>{const f=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:i.jaql(!0)},{toNotEqual:r.jaql(!0)}]}});return a?f:{jaql:f}},t},GF=e=>{const t=lr(e),i=Hi(Ui.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),r=Hi(Ui.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=a=>{const f=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:i.jaql(!0)},{toNotEqual:r.jaql(!0)}]}});return a?f:{jaql:f}},t};function YF(e,t){const i=t==null?void 0:t.find(r=>tC(e)===r.attribute.id);return i&&!i.disabled&&(i.isScope&&(i.isScope=!1),e.jaql.in={selected:i.jaql()}),e}function XF(e,t){const i=[],r=[];return t.forEach(a=>{e.some(A=>tC(A)===a.attribute.id)?i.push(a):r.push(a)}),[i,r]}function tC(e){const{dim:t,level:i,dateTimeLevel:r,bucket:a}=e.jaql;let f=`${t}`;return(i||r)&&(f+=`_${i||r}`),a&&(f+=`_${a}`),f}var qF=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(i[r[a]]=e[r[a]]);return i};function ZF(e,t,i){return{rowsCount:e.length,columnsCount:t.length,measuresCount:i.length}}function KF(e){switch(e){case"sortAsc":return"asc";case"sortDesc":return"desc";default:return"none"}}function QF(e,t,i){const r=KF(e.direction),a=t===i.rowsCount-1,f={dir:r,initialized:!0,field:e.by&&"valuesIndex"in e.by?i.rowsCount+i.columnsCount+e.by.valuesIndex:t};return a&&(f.sortingLastDimension=!0),e.by&&(f.measurePath=(e.by.columnsMembersPath||[]).reduce((A,H,q)=>Object.assign(Object.assign({},A),{[i.rowsCount+q]:H}),{})),{sort:r,sortDetails:f}}function JF(e,t){const i=e[t.rowsCount-1];if(i.jaql.sortDetails&&i.jaql.sortDetails.field!==t.rowsCount-1){const a=e[i.jaql.sortDetails.field],f=i.jaql,{sortDetails:A,sort:H}=f,q=qF(f,["sortDetails","sort"]);a.jaql.sortDetails=A,a.jaql.sort=H,i.jaql=q}}const qc="ComposeSDK";function iC(e,t){const{attributes:i,measures:r,filters:a,filterRelations:f,highlights:A,dataSource:H,count:q,offset:J,ungroup:ne}=e,se=ne&&r.length===0,M=Object.assign({metadata:eW({attributes:i,measures:r,filters:a,filterRelations:f,highlights:A},t)},tW(H,q,J,se));return f?Object.assign(Object.assign({},M),{filterRelations:f}):M}function rC(e,t,i,r,a){const[f,A]=XF(e,r);e.forEach(J=>YF(J,f));const H=J=>{const ne=J.jaql();return i?Array.isArray(ne)?ne.map(se=>Object.assign(Object.assign({},se),{instanceid:J.guid})):Object.assign(Object.assign({},ne),{instanceid:J.guid}):ne},q=(a?t.flatMap(J=>H(J)):[...t,...A].flatMap(J=>H(J))).filter(J=>Object.keys(J.jaql.filter||{}).length!==0);return a&&A.length>0&&console.warn(`The following highlight filters were not applied due to missing attributes: [${A.map(J=>J.attribute.name).join(", ")}].`),q}function eW(e,t){const{attributes:i,measures:r,filters:a,filterRelations:f,highlights:A}=e,H=i.map(ne=>ne.jaql()),q=r.map(ne=>ne.jaql()),J=rC(H,a,f,A,t);return[...H,...q,...J]}function tW(e,t,i,r){return Object.assign(Object.assign(Object.assign({datasource:nC(e),by:qc,queryGuid:Lw()},r?{ungroup:!0}:{}),t?{count:t}:{}),i?{offset:i}:{})}function iW(e,t){const{rowsAttributes:i,columnsAttributes:r,measures:a,filters:f,filterRelations:A,grandTotals:H,highlights:q,dataSource:J,count:ne,offset:se}=e,M=Object.assign({metadata:nW({rowsAttributes:i,columnsAttributes:r,measures:a,filters:f,highlights:q},t)},oW(J,H,ne,se));return A?Object.assign(Object.assign({},M),{filterRelations:A}):M}function W0(e,t,i,r){const a=t==="rows"&&Fd(e)&&e.sort&&e.sort.direction!=="sortNone",f=Object.assign(Object.assign({},Fd(e)?e.attribute.jaql(!0):e.jaql(!0)),a&&QF(e.sort,i,r));return Object.assign(Object.assign({jaql:f},Fd(e)&&e.includeSubTotals?{format:{subtotal:!0}}:{}),{panel:t,field:{index:i,id:`${t}-${i}`}})}function rW(e,t,i){return Object.assign(Object.assign({},lA(e)?hi(e.measure.jaql(),{jaql:{subtotalAgg:e.totalsCalculation},format:{databars:e.dataBars||!1}}):e.jaql()),{panel:t,field:{index:i,id:`${t}-${i}`}})}function nW(e,t){const{rowsAttributes:i,columnsAttributes:r,measures:a,filters:f,filterRelations:A,highlights:H}=e,q=ZF(i,r,a);let J=0;const ne=i.map(($,Y)=>W0($,"rows",Y+J,q));J=J+i.length;const se=r.map(($,Y)=>W0($,"columns",Y+J,q));J=J+r.length;const M=[...ne,...se],te=a.map(($,Y)=>rW($,"measures",Y+J)),F=rC(M,f,A,H,t),O=[...M,...te,...F];return JF(O,q),O}function oW(e,t,i,r){return Object.assign(Object.assign(Object.assign({datasource:nC(e),by:qc,queryGuid:Lw(),dashboard:qc,widget:qc,format:"pivot"},i?{count:i}:{}),r?{offset:r}:{}),{grandTotals:Object.assign(Object.assign({},cA),t)})}function nC(e){return Y_(e)?{title:e.title,live:e.type==="live"}:e}function aW(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function sW(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var lW=function(){function e(i){var r=this;this._insertTag=function(a){var f;r.tags.length===0?r.insertionPoint?f=r.insertionPoint.nextSibling:r.prepend?f=r.container.firstChild:f=r.before:f=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,f),r.tags.push(a)},this.isSpeedy=i.speedy===void 0?process.env.NODE_ENV==="production":i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sW(this));var a=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var f=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;f&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
6
+ `))}V.fill(0),a.createHash=function(p){return z(p)},a.createHmac=z,a.randomBytes=function(p,c){if(!c||!c.call)return new F(Y(p));try{c.call(this,void 0,new F(Y(p)))}catch(d){c(d)}};var R,w=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],T=function(p){a[p]=function(){D("sorry,",p,"is not implemented yet")}};for(R in w)T(w[R])}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){var F=i("./helpers");function O(D,R){D[R>>5]|=128<<R%32,D[14+(R+64>>>9<<4)]=R;for(var w=1732584193,T=-271733879,p=-1732584194,c=271733878,d=0;d<D.length;d+=16){var _=w,y=T,C=p,I=c,w=Y(w,T,p,c,D[d+0],7,-680876936),c=Y(c,w,T,p,D[d+1],12,-389564586),p=Y(p,c,w,T,D[d+2],17,606105819),T=Y(T,p,c,w,D[d+3],22,-1044525330);w=Y(w,T,p,c,D[d+4],7,-176418897),c=Y(c,w,T,p,D[d+5],12,1200080426),p=Y(p,c,w,T,D[d+6],17,-1473231341),T=Y(T,p,c,w,D[d+7],22,-45705983),w=Y(w,T,p,c,D[d+8],7,1770035416),c=Y(c,w,T,p,D[d+9],12,-1958414417),p=Y(p,c,w,T,D[d+10],17,-42063),T=Y(T,p,c,w,D[d+11],22,-1990404162),w=Y(w,T,p,c,D[d+12],7,1804603682),c=Y(c,w,T,p,D[d+13],12,-40341101),p=Y(p,c,w,T,D[d+14],17,-1502002290),w=X(w,T=Y(T,p,c,w,D[d+15],22,1236535329),p,c,D[d+1],5,-165796510),c=X(c,w,T,p,D[d+6],9,-1069501632),p=X(p,c,w,T,D[d+11],14,643717713),T=X(T,p,c,w,D[d+0],20,-373897302),w=X(w,T,p,c,D[d+5],5,-701558691),c=X(c,w,T,p,D[d+10],9,38016083),p=X(p,c,w,T,D[d+15],14,-660478335),T=X(T,p,c,w,D[d+4],20,-405537848),w=X(w,T,p,c,D[d+9],5,568446438),c=X(c,w,T,p,D[d+14],9,-1019803690),p=X(p,c,w,T,D[d+3],14,-187363961),T=X(T,p,c,w,D[d+8],20,1163531501),w=X(w,T,p,c,D[d+13],5,-1444681467),c=X(c,w,T,p,D[d+2],9,-51403784),p=X(p,c,w,T,D[d+7],14,1735328473),w=G(w,T=X(T,p,c,w,D[d+12],20,-1926607734),p,c,D[d+5],4,-378558),c=G(c,w,T,p,D[d+8],11,-2022574463),p=G(p,c,w,T,D[d+11],16,1839030562),T=G(T,p,c,w,D[d+14],23,-35309556),w=G(w,T,p,c,D[d+1],4,-1530992060),c=G(c,w,T,p,D[d+4],11,1272893353),p=G(p,c,w,T,D[d+7],16,-155497632),T=G(T,p,c,w,D[d+10],23,-1094730640),w=G(w,T,p,c,D[d+13],4,681279174),c=G(c,w,T,p,D[d+0],11,-358537222),p=G(p,c,w,T,D[d+3],16,-722521979),T=G(T,p,c,w,D[d+6],23,76029189),w=G(w,T,p,c,D[d+9],4,-640364487),c=G(c,w,T,p,D[d+12],11,-421815835),p=G(p,c,w,T,D[d+15],16,530742520),w=V(w,T=G(T,p,c,w,D[d+2],23,-995338651),p,c,D[d+0],6,-198630844),c=V(c,w,T,p,D[d+7],10,1126891415),p=V(p,c,w,T,D[d+14],15,-1416354905),T=V(T,p,c,w,D[d+5],21,-57434055),w=V(w,T,p,c,D[d+12],6,1700485571),c=V(c,w,T,p,D[d+3],10,-1894986606),p=V(p,c,w,T,D[d+10],15,-1051523),T=V(T,p,c,w,D[d+1],21,-2054922799),w=V(w,T,p,c,D[d+8],6,1873313359),c=V(c,w,T,p,D[d+15],10,-30611744),p=V(p,c,w,T,D[d+6],15,-1560198380),T=V(T,p,c,w,D[d+13],21,1309151649),w=V(w,T,p,c,D[d+4],6,-145523070),c=V(c,w,T,p,D[d+11],10,-1120210379),p=V(p,c,w,T,D[d+2],15,718787259),T=V(T,p,c,w,D[d+9],21,-343485551),w=z(w,_),T=z(T,y),p=z(p,C),c=z(c,I)}return Array(w,T,p,c)}function $(D,R,w,T,p,c){return z((R=z(z(R,D),z(T,c)))<<p|R>>>32-p,w)}function Y(D,R,w,T,p,c,d){return $(R&w|~R&T,D,R,p,c,d)}function X(D,R,w,T,p,c,d){return $(R&T|w&~T,D,R,p,c,d)}function G(D,R,w,T,p,c,d){return $(R^w^T,D,R,p,c,d)}function V(D,R,w,T,p,c,d){return $(w^(R|~T),D,R,p,c,d)}function z(D,R){var w=(65535&D)+(65535&R);return(D>>16)+(R>>16)+(w>>16)<<16|65535&w}r.exports=function(D){return F.hash(D,O,16)}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){r.exports=function(F){for(var O,$=new Array(F),Y=0;Y<F;Y++)!(3&Y)&&(O=4294967296*Math.random()),$[Y]=O>>>((3&Y)<<3)&255;return $}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){var F=i("./helpers");function O(X,G){X[G>>5]|=128<<24-G%32,X[15+(G+64>>9<<4)]=G;for(var V,z,D,R=Array(80),w=1732584193,T=-271733879,p=-1732584194,c=271733878,d=-1009589776,_=0;_<X.length;_+=16){for(var y=w,C=T,I=p,j=c,E=d,b=0;b<80;b++){R[b]=b<16?X[_+b]:Y(R[b-3]^R[b-8]^R[b-14]^R[b-16],1);var x=$($(Y(w,5),(x=T,z=p,D=c,(V=b)<20?x&z|~x&D:!(V<40)&&V<60?x&z|x&D|z&D:x^z^D)),$($(d,R[b]),(V=b)<20?1518500249:V<40?1859775393:V<60?-1894007588:-899497514)),d=c,c=p,p=Y(T,30),T=w,w=x}w=$(w,y),T=$(T,C),p=$(p,I),c=$(c,j),d=$(d,E)}return Array(w,T,p,c,d)}function $(X,G){var V=(65535&X)+(65535&G);return(X>>16)+(G>>16)+(V>>16)<<16|65535&V}function Y(X,G){return X<<G|X>>>32-G}r.exports=function(X){return F.hash(X,O,20,!0)}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){function F(G,V){var z=(65535&G)+(65535&V);return(G>>16)+(V>>16)+(z>>16)<<16|65535&z}function O(G,V){var z,D=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),R=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),w=new Array(64);G[V>>5]|=128<<24-V%32,G[15+(V+64>>9<<4)]=V;for(var T,p,c=0;c<G.length;c+=16){for(var d=R[0],_=R[1],y=R[2],C=R[3],I=R[4],j=R[5],E=R[6],b=R[7],x=0;x<64;x++)w[x]=x<16?G[x+c]:F(F(F((p=w[x-2],Y(p,17)^Y(p,19)^X(p,10)),w[x-7]),(p=w[x-15],Y(p,7)^Y(p,18)^X(p,3))),w[x-16]),z=F(F(F(F(b,Y(p=I,6)^Y(p,11)^Y(p,25)),I&j^~I&E),D[x]),w[x]),T=F(Y(T=d,2)^Y(T,13)^Y(T,22),d&_^d&y^_&y),b=E,E=j,j=I,I=F(C,z),C=y,y=_,_=d,d=F(z,T);R[0]=F(d,R[0]),R[1]=F(_,R[1]),R[2]=F(y,R[2]),R[3]=F(C,R[3]),R[4]=F(I,R[4]),R[5]=F(j,R[5]),R[6]=F(E,R[6]),R[7]=F(b,R[7])}return R}var $=i("./helpers"),Y=function(G,V){return G>>>V|G<<32-V},X=function(G,V){return G>>>V};r.exports=function(G){return $.hash(G,O,32,!0)}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){a.read=function(F,O,$,Y,c){var G,V,z=8*c-Y-1,D=(1<<z)-1,R=D>>1,w=-7,T=$?c-1:0,p=$?-1:1,c=F[O+T];for(T+=p,G=c&(1<<-w)-1,c>>=-w,w+=z;0<w;G=256*G+F[O+T],T+=p,w-=8);for(V=G&(1<<-w)-1,G>>=-w,w+=Y;0<w;V=256*V+F[O+T],T+=p,w-=8);if(G===0)G=1-R;else{if(G===D)return V?NaN:1/0*(c?-1:1);V+=Math.pow(2,Y),G-=R}return(c?-1:1)*V*Math.pow(2,G-Y)},a.write=function(F,O,$,Y,X,d){var V,z,D=8*d-X-1,R=(1<<D)-1,w=R>>1,T=X===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=Y?0:d-1,c=Y?1:-1,d=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===1/0?(z=isNaN(O)?1:0,V=R):(V=Math.floor(Math.log(O)/Math.LN2),O*(Y=Math.pow(2,-V))<1&&(V--,Y*=2),2<=(O+=1<=V+w?T/Y:T*Math.pow(2,1-w))*Y&&(V++,Y/=2),R<=V+w?(z=0,V=R):1<=V+w?(z=(O*Y-1)*Math.pow(2,X),V+=w):(z=O*Math.pow(2,w-1)*Math.pow(2,X),V=0));8<=X;F[$+p]=255&z,p+=c,z/=256,X-=8);for(V=V<<X|z,D+=X;0<D;F[$+p]=255&V,p+=c,V/=256,D-=8);F[$+p-c]|=128*d}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(i,r,a){(function(f,A,H,q,J,ne,se,M,te){var F,O,$;function Y(){}(f=r.exports={}).nextTick=(O=typeof window!="undefined"&&window.setImmediate,$=typeof window!="undefined"&&window.postMessage&&window.addEventListener,O?function(X){return window.setImmediate(X)}:$?(F=[],window.addEventListener("message",function(X){var G=X.source;G!==window&&G!==null||X.data!=="process-tick"||(X.stopPropagation(),0<F.length&&F.shift()())},!0),function(X){F.push(X),window.postMessage("process-tick","*")}):function(X){setTimeout(X,0)}),f.title="browser",f.browser=!0,f.env={},f.argv=[],f.on=Y,f.addListener=Y,f.once=Y,f.off=Y,f.removeListener=Y,f.removeAllListeners=Y,f.emit=Y,f.binding=function(X){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(X){throw new Error("process.chdir is not supported")}}).call(this,i("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},i("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(m_);var _j=m_.exports;const Cj=Et(_j);function Sj(e,t){for(var i=-1,r=e==null?0:e.length;++i<r&&t(e[i],i,e)!==!1;);return e}var g_=Sj,Mj=Qu,Tj=yl,Pj=Object.prototype,kj=Pj.hasOwnProperty;function Ej(e,t,i){var r=e[t];(!(kj.call(e,t)&&Tj(r,i))||i===void 0&&!(t in e))&&Mj(e,t,i)}var Wm=Ej,Aj=Wm,Oj=Qu;function Lj(e,t,i,r){var a=!i;i||(i={});for(var f=-1,A=t.length;++f<A;){var H=t[f],q=r?r(i[H],e[H],H,i,e):void 0;q===void 0&&(q=e[H]),a?Oj(i,H,q):Aj(i,H,q)}return i}var wl=Lj,Dj=wl,Rj=vl;function Nj(e,t){return e&&Dj(t,Rj(t),e)}var Ij=Nj;function jj(e){var t=[];if(e!=null)for(var i in Object(e))t.push(i);return t}var Bj=jj,zj=Or,Fj=ih,Wj=Bj,$j=Object.prototype,Hj=$j.hasOwnProperty;function Uj(e){if(!zj(e))return Wj(e);var t=Fj(e),i=[];for(var r in e)r=="constructor"&&(t||!Hj.call(e,r))||i.push(r);return i}var Vj=Uj,Gj=Ww,Yj=Vj,Xj=Lo;function qj(e){return Xj(e)?Gj(e,!0):Yj(e)}var ph=qj,Zj=wl,Kj=ph;function Qj(e,t){return e&&Zj(t,Kj(t),e)}var Jj=Qj,Hp={exports:{}};(function(e,t){var i=Ar,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,f=a&&a.exports===r,A=f?i.Buffer:void 0,H=A?A.allocUnsafe:void 0;function q(J,ne){if(ne)return J.slice();var se=J.length,M=H?H(se):new J.constructor(se);return J.copy(M),M}e.exports=q})(Hp,Hp.exports);var v_=Hp.exports;function e5(e,t){var i=-1,r=e.length;for(t||(t=Array(r));++i<r;)t[i]=e[i];return t}var $m=e5,t5=wl,i5=Dm;function r5(e,t){return t5(e,i5(e),t)}var n5=r5,o5=$w,a5=o5(Object.getPrototypeOf,Object),Hm=a5,s5=Lm,l5=Hm,c5=Dm,u5=qw,h5=Object.getOwnPropertySymbols,d5=h5?function(e){for(var t=[];e;)s5(t,c5(e)),e=l5(e);return t}:u5,y_=d5,p5=wl,f5=y_;function m5(e,t){return p5(e,f5(e),t)}var g5=m5,v5=Xw,y5=y_,b5=ph;function x5(e){return v5(e,b5,y5)}var w5=x5,_5=Object.prototype,C5=_5.hasOwnProperty;function S5(e){var t=e.length,i=new e.constructor(t);return t&&typeof e[0]=="string"&&C5.call(e,"index")&&(i.index=e.index,i.input=e.input),i}var M5=S5,P0=Yw;function T5(e){var t=new e.constructor(e.byteLength);return new P0(t).set(new P0(e)),t}var Um=T5,P5=Um;function k5(e,t){var i=t?P5(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.byteLength)}var E5=k5,A5=/\w*$/;function O5(e){var t=new e.constructor(e.source,A5.exec(e));return t.lastIndex=e.lastIndex,t}var L5=O5,k0=Na,E0=k0?k0.prototype:void 0,A0=E0?E0.valueOf:void 0;function D5(e){return A0?Object(A0.call(e)):{}}var R5=D5,N5=Um;function I5(e,t){var i=t?N5(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}var b_=I5,j5=Um,B5=E5,z5=L5,F5=R5,W5=b_,$5="[object Boolean]",H5="[object Date]",U5="[object Map]",V5="[object Number]",G5="[object RegExp]",Y5="[object Set]",X5="[object String]",q5="[object Symbol]",Z5="[object ArrayBuffer]",K5="[object DataView]",Q5="[object Float32Array]",J5="[object Float64Array]",eB="[object Int8Array]",tB="[object Int16Array]",iB="[object Int32Array]",rB="[object Uint8Array]",nB="[object Uint8ClampedArray]",oB="[object Uint16Array]",aB="[object Uint32Array]";function sB(e,t,i){var r=e.constructor;switch(t){case Z5:return j5(e);case $5:case H5:return new r(+e);case K5:return B5(e,i);case Q5:case J5:case eB:case tB:case iB:case rB:case nB:case oB:case aB:return W5(e,i);case U5:return new r;case V5:case X5:return new r(e);case G5:return z5(e);case Y5:return new r;case q5:return F5(e)}}var lB=sB,cB=Or,O0=Object.create,uB=function(){function e(){}return function(t){if(!cB(t))return{};if(O0)return O0(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}(),Vm=uB,hB=Vm,dB=Hm,pB=ih;function fB(e){return typeof e.constructor=="function"&&!pB(e)?hB(dB(e)):{}}var x_=fB,mB=bl,gB=Lr,vB="[object Map]";function yB(e){return gB(e)&&mB(e)==vB}var bB=yB,xB=bB,wB=eh,L0=Pm,D0=L0&&L0.isMap,_B=D0?wB(D0):xB,CB=_B,SB=bl,MB=Lr,TB="[object Set]";function PB(e){return MB(e)&&SB(e)==TB}var kB=PB,EB=kB,AB=eh,R0=Pm,N0=R0&&R0.isSet,OB=N0?AB(N0):EB,LB=OB,DB=sh,RB=g_,NB=Wm,IB=Ij,jB=Jj,BB=v_,zB=$m,FB=n5,WB=g5,$B=Zw,HB=w5,UB=bl,VB=M5,GB=lB,YB=x_,XB=Ri,qB=gl,ZB=CB,KB=Or,QB=LB,JB=vl,ez=ph,tz=1,iz=2,rz=4,w_="[object Arguments]",nz="[object Array]",oz="[object Boolean]",az="[object Date]",sz="[object Error]",__="[object Function]",lz="[object GeneratorFunction]",cz="[object Map]",uz="[object Number]",C_="[object Object]",hz="[object RegExp]",dz="[object Set]",pz="[object String]",fz="[object Symbol]",mz="[object WeakMap]",gz="[object ArrayBuffer]",vz="[object DataView]",yz="[object Float32Array]",bz="[object Float64Array]",xz="[object Int8Array]",wz="[object Int16Array]",_z="[object Int32Array]",Cz="[object Uint8Array]",Sz="[object Uint8ClampedArray]",Mz="[object Uint16Array]",Tz="[object Uint32Array]",$t={};$t[w_]=$t[nz]=$t[gz]=$t[vz]=$t[oz]=$t[az]=$t[yz]=$t[bz]=$t[xz]=$t[wz]=$t[_z]=$t[cz]=$t[uz]=$t[C_]=$t[hz]=$t[dz]=$t[pz]=$t[fz]=$t[Cz]=$t[Sz]=$t[Mz]=$t[Tz]=!0;$t[sz]=$t[__]=$t[mz]=!1;function Vc(e,t,i,r,a,f){var A,H=t&tz,q=t&iz,J=t&rz;if(i&&(A=a?i(e,r,a,f):i(e)),A!==void 0)return A;if(!KB(e))return e;var ne=XB(e);if(ne){if(A=VB(e),!H)return zB(e,A)}else{var se=UB(e),M=se==__||se==lz;if(qB(e))return BB(e,H);if(se==C_||se==w_||M&&!a){if(A=q||M?{}:YB(e),!H)return q?WB(e,jB(A,e)):FB(e,IB(A,e))}else{if(!$t[se])return a?e:{};A=GB(e,se,H)}}f||(f=new DB);var te=f.get(e);if(te)return te;f.set(e,A),QB(e)?e.forEach(function($){A.add(Vc($,t,i,$,e,f))}):ZB(e)&&e.forEach(function($,Y){A.set(Y,Vc($,t,i,Y,e,f))});var F=J?q?HB:$B:q?ez:JB,O=ne?void 0:F(e);return RB(O||e,function($,Y){O&&(Y=$,$=e[Y]),NB(A,Y,Vc($,t,i,Y,e,f))}),A}var Pz=Vc,kz=Pz,Ez=1,Az=4;function Oz(e){return kz(e,Ez|Az)}var Lz=Oz;const lr=Et(Lz);var Gc;(function(e){e.INCLUDE_ALL="INCLUDE_ALL",e.ADVANCED="ADVANCED",e.INVALID="INVALID",e.CONDITION="CONDITION",e.SPECIFIC_ITEMS="SPECIFIC_ITEMS"})(Gc=Gc||(Gc={}));var Yc;(function(e){e.PERIOD="PERIOD",e.DATE_RANGE="DATE_RANGE"})(Yc=Yc||(Yc={}));var Xc;(function(e){e.NUMERIC_RANGE="NUMERIC_RANGE"})(Xc=Xc||(Xc={}));var Wn;(function(e){e.YEARS="years",e.QUARTERS="quarters",e.MONTHS="months",e.WEEKS="weeks",e.DAYS="days",e.HOURS="hours",e.MINUTES="minutes"})(Wn=Wn||(Wn={}));var pa;(function(e){e.DATE_TIME="datetime",e.NUMERIC="numeric",e.TEXT="text"})(pa=pa||(pa={}));const Dz=["1","30"],Lt=Object.assign(Object.assign(Object.assign({},Gc),Yc),Xc),Rz={[Lt.INCLUDE_ALL]:{all:!0,filterType:Lt.INCLUDE_ALL},[Lt.PERIOD]:{last:{count:1,offset:1},isNotCurrentPeriod:!0,filterType:Lt.PERIOD},[Lt.DATE_RANGE]:{filterType:Lt.DATE_RANGE},[Lt.NUMERIC_RANGE]:{filterType:Lt.NUMERIC_RANGE},[Lt.CONDITION]:{explicit:!1,multiSelection:!0,exclude:{members:[]},filterType:Lt.CONDITION},[Lt.SPECIFIC_ITEMS]:{explicit:!0,multiSelection:!0,members:[],filterType:Lt.SPECIFIC_ITEMS}},Nz={filter:Rz.INCLUDE_ALL,level:Wn.YEARS};exports.ConditionFilterType=void 0;(function(e){e.IS="members",e.IS_NOT="exclude",e.IS_WITHIN="isWithin",e.TOP="top",e.BOTTOM="bottom",e.AFTER="after",e.BEFORE="before",e.STARTS_WITH="startsWith",e.DOESNT_START_WITH="doesntStartWith",e.ENDS_WITH="endsWith",e.DOESNT_END_WITH="doesntEndWith",e.CONTAINS="contains",e.DOESNT_CONTAIN="doesntContain",e.EQUALS="equals",e.DOESNT_EQUAL="doesntEqual",e.IS_EMPTY="isEmpty",e.IS_NOT_EMPTY="isNotEmpty",e.GREATER_THAN="fromNotEqual",e.GREATER_THAN_OR_EQUAL="from",e.LESS_THAN="toNotEqual",e.LESS_THAN_OR_EQUAL="to",e.BETWEEN="between",e.IS_NOT_BETWEEN="isNotBetween",e.MULTIPLE_CONDITION="multipleCondition",e.NONE="none"})(exports.ConditionFilterType=exports.ConditionFilterType||(exports.ConditionFilterType={}));function Iz(e,t){return new q_(e,X_.Union,t)}function jz(e,t){return new q_(e,X_.Intersection,t)}function S_(e,t,i){return new WF(e,t,i)}function M_(e,t,i){return new mn(e,fn.DoesntContain,t,i)}function T_(e,t,i){return new mn(e,fn.DoesntEndWith,t,i)}function P_(e,t,i){return new mn(e,fn.DoesntStartWith,t,i)}function k_(e,t,i){return new mn(e,fn.Contains,t,i)}function E_(e,t,i){return new mn(e,fn.EndsWith,t,i)}function A_(e,t,i){return new mn(e,fn.StartsWith,t,i)}function Bz(e,t,i){return new mn(e,fn.Like,t,i)}function zz(e,t,i){return typeof t=="string"?new mn(e,fn.DoesntEqual,t,i):Do(e,Bi.DoesntEqual,t,void 0,void 0,i)}function O_(e,t,i){return typeof t=="string"?new mn(e,fn.Equals,t,i):Do(e,Bi.Equals,t,void 0,void 0,i)}function L_(e,t,i){return Do(e,Bi.FromNotEqual,t,void 0,void 0,i)}function D_(e,t,i){return Do(e,Bi.From,t,void 0,void 0,i)}function R_(e,t,i){return Do(e,Bi.ToNotEqual,t,void 0,void 0,i)}function N_(e,t,i){return Do(e,Bi.To,t,void 0,void 0,i)}function gu(e,t,i,r){return Do(e,Bi.From,t,Bi.To,i,r)}function Do(e,t,i,r,a,f){return new Q_(e,t,i,r,a,f)}function $a(e,t,i,r,a,f){return new Z_(e,t,i,r,a,f)}function I_(e,t,i,r){return new J_(e,t,i,r)}function j_(e,t,i,r,a){return new Xm(e,t,i,ya.Next,r,a)}function B_(e,t,i,r,a){return new Xm(e,t,i,ya.Last,r,a)}function Ha(e,t,i,r,a,f,A){return new K_(e,t,i,r,a,f,A)}function Fz(e,t,i){return Ha(e.attribute,e,Bi.Equals,t,void 0,void 0,i)}function Wz(e,t,i){return Ha(e.attribute,e,Bi.FromNotEqual,t,void 0,void 0,i)}function $z(e,t,i){return Ha(e.attribute,e,Bi.From,t,void 0,void 0,i)}function Hz(e,t,i){return Ha(e.attribute,e,Bi.To,t,void 0,void 0,i)}function Uz(e,t,i){return Ha(e.attribute,e,Bi.ToNotEqual,t,void 0,void 0,i)}function Vz(e,t,i,r){return Ha(e.attribute,e,Bi.From,t,Bi.To,i,r)}function z_(e,t,i,r){return new Ym(e,t,Gm.Top,i,r)}function F_(e,t,i,r){return new Ym(e,t,Gm.Bottom,i,r)}const xo=e=>{if(Array.isArray(e)){const[t,...i]=e;return i.length===0?xo(t):{operator:"AND",left:xo(t),right:xo(i)}}return e};var Ud;(function(e){e.and=(t,i)=>({operator:"AND",left:xo(t),right:xo(i)}),e.or=(t,i)=>({operator:"OR",left:xo(t),right:xo(i)})})(Ud=Ud||(Ud={}));function Gz(e,t,i){return new eC(e,t,i)}function W_(e){try{if(e==null)return JSON.stringify(e);if(e===Object(e)&&"composeCode"in e)return e.composeCode;if(Array.isArray(e))return"["+e.map(t=>W_(t)).join(", ")+"]";if(typeof e=="string")return`'${e}'`;if(typeof e=="number"||!isNaN(e))return e}catch(t){console.error(t)}return JSON.stringify(e)}function kt(e){return function(...t){const i=t.map(W_).join(", ").replace(/(,\s*)+$/,""),r=`filterFactory.${e.name}(${i})`,a=e(...t);return a.composeCode=r,a}}const I0="DM",$_=(e,t,i,r,a)=>{const f=t!=null?t:e.slice(1,-1).split(".")[0];if(r){const q=Vr.translateJaqlToGranularity({level:r}),J=Vr.getDefaultFormatForGranularity(q),ne=new Vr(i,e,q,J);return ne.composeCode=T0(f,i,r,I0),ne}const A=ti(a)?wt.NumericAttribute:wt.TextAttribute,H=new Wa(i,e,A);return H.composeCode=T0(f,i,void 0,I0),H},Yz=e=>$_(e.dim,e.table,e.column,e.level,e.datatype),H_=(e,t,i,r,a,f)=>{const A=$_(e,t,i,r,a),H=Fm(A,f);return H.composeCode=`measureFactory.${f}(${A.composeCode})`,H},Xz=e=>{const{dim:t,table:i,column:r,level:a,datatype:f,agg:A}=e;if(A)return H_(t,i,r,a,f,A)},j0=e=>{const{dim:t,table:i,column:r,level:a,datatype:f,agg:A}=e;return H_(t,i,r,a,f,A)},qz=e=>e.top!==void 0,Zz=e=>e.bottom!==void 0,Kz=e=>{var t;return!!(!((t=e.exclude)===null||t===void 0)&&t.members)},Qz=e=>!!e.members&&!!e.isCondition,Jz=e=>{var t,i;return((t=e.last)===null||t===void 0?void 0:t.anchor)!==void 0||((i=e.next)===null||i===void 0?void 0:i.anchor)!==void 0},eF=e=>e.fromNotEqual!==void 0,tF=e=>e.from!==void 0&&!e.isBetween,iF=e=>e.toNotEqual!==void 0,rF=e=>e.to!==void 0&&!e.isBetween,nF=e=>e.equals!==void 0,oF=e=>e.doesntEqual!==void 0,aF=e=>!!(e.equals===""&&e.isEmpty),sF=e=>!!(e.doesntEqual===""&&e.isEmpty),lF=e=>e.contains!==void 0,cF=e=>e.doesntContain!==void 0,uF=e=>e.startsWith!==void 0,hF=e=>e.doesntStartWith!==void 0,dF=e=>e.endsWith!==void 0,pF=e=>e.doesntEndWith!==void 0,fF=e=>e.from!==void 0&&e.to!==void 0,mF=e=>{var t,i;return((t=e.exclude)===null||t===void 0?void 0:t.from)!==void 0&&((i=e.exclude)===null||i===void 0?void 0:i.to)!==void 0},gF=e=>!!(e.or||e.and),fh=e=>Zz(e)?exports.ConditionFilterType.BOTTOM:qz(e)?exports.ConditionFilterType.TOP:Kz(e)?exports.ConditionFilterType.IS_NOT:Jz(e)?exports.ConditionFilterType.IS_WITHIN:eF(e)?exports.ConditionFilterType.GREATER_THAN:iF(e)?exports.ConditionFilterType.LESS_THAN:nF(e)?exports.ConditionFilterType.EQUALS:oF(e)?exports.ConditionFilterType.DOESNT_EQUAL:aF(e)?exports.ConditionFilterType.IS_EMPTY:sF(e)?exports.ConditionFilterType.IS_NOT_EMPTY:lF(e)?exports.ConditionFilterType.CONTAINS:cF(e)?exports.ConditionFilterType.DOESNT_CONTAIN:pF(e)?exports.ConditionFilterType.DOESNT_END_WITH:hF(e)?exports.ConditionFilterType.DOESNT_START_WITH:dF(e)?exports.ConditionFilterType.ENDS_WITH:uF(e)?exports.ConditionFilterType.STARTS_WITH:mF(e)?exports.ConditionFilterType.IS_NOT_BETWEEN:Qz(e)?exports.ConditionFilterType.IS:gF(e)?exports.ConditionFilterType.MULTIPLE_CONDITION:fF(e)?exports.ConditionFilterType.BETWEEN:tF(e)?exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:rF(e)?exports.ConditionFilterType.LESS_THAN_OR_EQUAL:exports.ConditionFilterType.NONE,Up=(e,t,i)=>{var r,a,f;switch(fh(t)){case exports.ConditionFilterType.BOTTOM:if(t.by&&"agg"in t.by)return kt(F_)(e,j0(t.by),t[exports.ConditionFilterType.BOTTOM],i);break;case exports.ConditionFilterType.EQUALS:return kt(O_)(e,t[exports.ConditionFilterType.EQUALS],i);case exports.ConditionFilterType.GREATER_THAN:return kt(L_)(e,t[exports.ConditionFilterType.GREATER_THAN],i);case exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:return kt(D_)(e,t[exports.ConditionFilterType.GREATER_THAN_OR_EQUAL],i);case exports.ConditionFilterType.TOP:if(t.by)return kt(z_)(e,j0(t.by),t[exports.ConditionFilterType.TOP],i);break;case exports.ConditionFilterType.STARTS_WITH:return kt(A_)(e,t[exports.ConditionFilterType.STARTS_WITH],i);case exports.ConditionFilterType.DOESNT_START_WITH:return kt(P_)(e,t[exports.ConditionFilterType.DOESNT_START_WITH],i);case exports.ConditionFilterType.ENDS_WITH:return kt(E_)(e,t[exports.ConditionFilterType.ENDS_WITH],i);case exports.ConditionFilterType.DOESNT_END_WITH:return kt(T_)(e,t[exports.ConditionFilterType.DOESNT_END_WITH],i);case exports.ConditionFilterType.CONTAINS:return kt(k_)(e,t[exports.ConditionFilterType.CONTAINS],i);case exports.ConditionFilterType.DOESNT_CONTAIN:return kt(M_)(e,t[exports.ConditionFilterType.DOESNT_CONTAIN],i);case exports.ConditionFilterType.LESS_THAN:return kt(R_)(e,t[exports.ConditionFilterType.LESS_THAN],i);case exports.ConditionFilterType.LESS_THAN_OR_EQUAL:return kt(N_)(e,t[exports.ConditionFilterType.LESS_THAN_OR_EQUAL],i);case exports.ConditionFilterType.BETWEEN:return kt(gu)(e,t.from,t.to,i);case exports.ConditionFilterType.IS_NOT_BETWEEN:return kt(S_)(kt(gu)(e,(r=t.exclude)===null||r===void 0?void 0:r.from,(a=t.exclude)===null||a===void 0?void 0:a.to,i),void 0,i);case exports.ConditionFilterType.MULTIPLE_CONDITION:if(t.and)return kt(jz)(t.and.map(H=>Up(e,H,i)),i);if(t.or)return kt(Iz)(t.or.map(H=>Up(e,H,i)),i);break;case exports.ConditionFilterType.IS_NOT:return kt($a)(e,((f=t.exclude)===null||f===void 0?void 0:f.members)||[],!0,i)}throw"Jaql contains unsupported condition filter: "+JSON.stringify(t)},vF=(e,t,i)=>{switch(fh(t)){case exports.ConditionFilterType.EQUALS:return kt(Fz)(e,t[exports.ConditionFilterType.EQUALS],i);case exports.ConditionFilterType.GREATER_THAN:return kt(Wz)(e,t[exports.ConditionFilterType.GREATER_THAN],i);case exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:return kt($z)(e,t[exports.ConditionFilterType.GREATER_THAN_OR_EQUAL],i);case exports.ConditionFilterType.LESS_THAN:return kt(Uz)(e,t[exports.ConditionFilterType.LESS_THAN],i);case exports.ConditionFilterType.LESS_THAN_OR_EQUAL:return kt(Hz)(e,t[exports.ConditionFilterType.LESS_THAN_OR_EQUAL],i);case exports.ConditionFilterType.BETWEEN:return kt(Vz)(e,t.from,t.to,i)}throw"Jaql contains unsupported condition filter: "+JSON.stringify(t)},yF=(e,t)=>{let i=e?e.toLocaleLowerCase():Wn.YEARS;return i===Wn.MINUTES&&t==="60"&&(i=Wn.HOURS),i},bF=e=>e==null?void 0:e.all,xF=e=>e.last?e.last:e.next,wF=e=>{var t;return((t=xF(e))===null||t===void 0?void 0:t.offset)<2},U_=e=>{var t;return((t=e==null?void 0:e.members)===null||t===void 0?void 0:t.length)>=0},_F=(e,t)=>e&&typeof e=="string"||t&&typeof t=="string",CF=(e,t)=>e===""&&t==="",SF=(e,t)=>{const{from:i,to:r}=e;return t!==pa.DATE_TIME?!1:_F(i,r)?!0:CF(i,r)},MF=e=>{const{from:t,to:i}=e;return t!==void 0&&i!==void 0&&!e.isBetween},V_=e=>fh(e)!==exports.ConditionFilterType.NONE,TF=e=>Object.keys(e).includes("isAdvanced"),PF=e=>!!(e.level&&e.bucket&&e.level===Wn.MINUTES&&Dz.includes(e.bucket)),kF=e=>e.filterType===Lt.INVALID,B0=(e,t=pa.DATE_TIME,i)=>i&&PF(i)||TF(e)?Lt.ADVANCED:bF(e)?Lt.INCLUDE_ALL:wF(e)?Lt.PERIOD:U_(e)?Lt.SPECIFIC_ITEMS:SF(e,t)?Lt.DATE_RANGE:MF(e)?Lt.NUMERIC_RANGE:V_(e)?Lt.CONDITION:(kF(e),Lt.INVALID),EF=(e,t)=>{const{level:i,filter:r,bucket:a}=e,f=r||Nz.filter,A={filter:Object.assign(Object.assign({},f),{filterType:B0(f,t)})};if(t===pa.DATE_TIME){const H=f,q=(H==null?void 0:H.level)||i;A.level=yF(q,a),A.filter.filterType=B0(f,t,{level:q,bucket:a})}return A},z0=(e,t)=>({guid:t||G_(13),jaql:i=>i?e:{jaql:e,panel:"scope"},attribute:{id:e.dim},type:"filter",serializable(){return Object.assign(Object.assign({},this),{jaql:this.jaql()})},toJSON(){return this.serializable()}}),AF=(e,t)=>kt($a)(e,[],!0,t),OF=(e,t,i)=>{const r=LF(t),a=DF(t,r);return kt($a)(e,a,void 0,i,r)};function LF(e){var t,i,r;return!((t=e.filter)===null||t===void 0)&&t.turnedOff?(r=(i=e.filter)===null||i===void 0?void 0:i.exclude)===null||r===void 0?void 0:r.members:void 0}function DF(e,t){const i=e.members;return t?i.filter(r=>!t.includes(r)):i}const RF=(e,t,i)=>kt(I_)(e,t.from,t.to,i),NF=(e,t,i)=>kt(gu)(e,t.from,t.to,i),IF=(e,t,i)=>t.last?kt(B_)(e,t.last.offset,t.last.count,t.last.anchor,i):kt(j_)(e,t.next.offset,t.next.count,t.next.anchor,i),jF=(e,t,i,r)=>i?vF(i,t,r):Up(e,t,r),BF=(e,t,i)=>kt(Gz)(e,t,i),F0=(e,t)=>{try{if("formula"in e)throw"Formula-based filter not supported yet: "+JSON.stringify(e);const i=EF(e,e.datatype),{filter:r}=i,{filterType:a}=r,f=Yz(e),A=Xz(e);switch(a){case Lt.INCLUDE_ALL:return AF(f,t);case Lt.SPECIFIC_ITEMS:return OF(f,r,t);case Lt.CONDITION:return jF(f,r,A,t);case Lt.DATE_RANGE:return RF(f,r,t);case Lt.PERIOD:return IF(f,r,t);case Lt.NUMERIC_RANGE:return NF(f,r,t);case Lt.ADVANCED:return BF(f,r,t);case Lt.INVALID:return z0(e,t)}}catch(i){}return z0(e,t)},G_=function(e){const t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=new Array(e);let r=0,a;for(let f=0;f<e;f+=1){if(f>0&&f%5==0){i[f]="-";continue}r<=2&&(r=33554432+Math.random()*16777216|0),a=r&15,r=r>>4,i[f]=t[f==19?a&3|8:a]}return i.join("")},mh=e=>{if(!e)return{filters:void 0,relations:void 0};if(Array.isArray(e))return{filters:e,relations:void 0};const t=new Set;function i(f){return f&&("guid"in f?(t.add(f),{instanceid:f.guid}):("left"in f&&(f.left=i(f.left)),"right"in f&&(f.right=i(f.right)),f))}const r=lr(e),a=i(r);return{filters:Array.from(t),relations:a}};function gh(e){return typeof e=="string"?e:e.title}function Y_(e){return typeof e=="object"&&"type"in e&&"title"in e}const zF=(e,t)=>{const i=e.filter.filter&&!("turnedOff"in e.filter.filter),r=F0(e,t);return i&&(r.backgroundFilter=F0(Object.assign(Object.assign({},e),{filter:e.filter.filter}),`${t}-bg`)),r},fn={Contains:"contains",StartsWith:"startsWith",EndsWith:"endsWith",Equals:"equals",DoesntEqual:"doesntEqual",DoesntStartWith:"doesntStartWith",DoesntContain:"doesntContain",DoesntEndWith:"doesntEndWith",Like:"like"},Bi={Equals:"equals",DoesntEqual:"doesntEqual",From:"from",FromNotEqual:"fromNotEqual",To:"to",ToNotEqual:"toNotEqual"},ya={From:"from",To:"to",Last:"last",Next:"next",Anchor:"Anchor"},X_={Union:"or",Intersection:"and",Exclude:"exclude"},Gm={Top:"top",Bottom:"bottom"},Dr={logicalAttribute:"logicalAttribute",members:"members",exclude:"exclude",measure:"measure",ranking:"ranking",text:"text",numeric:"numeric",date:"date",relativeDate:"relativeDate",cascading:"cascading",advanced:"advanced"};class cr extends Zu{constructor(t,i,r){super("filter",wt.Filter),this.filterType=i,cr.checkAttributeSupport(t),this.attribute=t,this.guid=r||G_(13),this.disabled=!1,this.locked=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=t}get locked(){return this._locked}set locked(t){this._locked=t}get name(){return Cj(this.jaql())}serializable(){const t=super.serializable();return t.filterType=this.filterType,t.attribute=this.attribute.serializable(),t}jaql(t){if(this.disabled)return cr.disabledJaql(t);const i=this.attribute.jaql(!1),r=this.attribute;if(r.getFormat&&r.getFormat()!==void 0){const a=r.translateGranularityToJaql();i.format={mask:{[a.level]:r.getFormat()}}}return i.jaql.filter=this.filterJaql(),this.isScope&&(i.panel="scope"),t===!0?i.jaql:i}static checkAttributeSupport(t){const{granularity:i}=t;if(i===et.Hours||i===et.MinutesRoundTo30||i===et.MinutesRoundTo15||i===et.Minutes||i===et.Seconds)throw new p_("errors.filter.unsupportedDatetimeLevel")}static disabledJaql(t){return t?{filter:{}}:{jaql:{filter:{}}}}}class q_ extends cr{constructor(t,i,r){super(t[0].attribute,Dr.logicalAttribute,r),this.operator=i,this.filters=t}get id(){return`${this.operator}_${this.filters.map(t=>t.id).join()}`}serializable(){const t=super.serializable();return t.operator=this.operator,t.filters=this.filters.map(i=>i.serializable()),t}filterJaql(){const t={};return t[this.operator]=this.filters.map(i=>i.filterJaql()),t}}class Z_ extends cr{constructor(t,i,r,a,f,A){if(super(t,Dr.members,a),this.members=i!=null?i:[],this.excludeMembers=r!=null?r:!1,this.deactivatedMembers=f!=null?f:[],this.backgroundFilter=A,this.members.filter(H=>H==null).length>0)throw new p_("errors.filter.membersFilterNullMember",{attributeId:t.id})}get id(){return`${this.attribute.id}_${this.members.map(t=>t.toString()).join()}`}serializable(){const t=super.serializable();return t.members=this.members,this.backgroundFilter&&(t.backgroundFilter=this.backgroundFilter.serializable()),t}filterJaql(){const t={members:this.members.map(r=>r.toString())},i=this.excludeMembers&&this.members.length?{exclude:t}:t;return this.backgroundFilter?{and:[i,this.backgroundFilter.filterJaql()]}:i}}class FF extends cr{constructor(t,i){super(t[0].attribute,Dr.cascading,i),this.filters=t}get id(){return`${this.filterType}_${this.filters.map(t=>t.id).join()}`}get disabled(){return super.disabled}set disabled(t){super.disabled=t,this.filters&&this.filters.forEach(i=>{i.disabled=t})}get locked(){return super.locked}set locked(t){super.locked=t,this.filters&&this.filters.forEach(i=>{i.locked=t})}serializable(){const t=super.serializable();return t.filters=this.filters.map(i=>i.serializable()),t}filterJaql(){return{}}jaql(t){return this.disabled?cr.disabledJaql(t):this.filters.map(i=>(i.isScope=!0,i.jaql(t)))}}class WF extends cr{constructor(t,i,r){super(t.attribute,Dr.exclude,r),this.input=i,this.filter=t}get id(){let t=`exclude_${this.filter.id}`;return this.input&&(t+="_from_"+this.input.id),t}serializable(){const t=super.serializable();return t.filter=this.filter.serializable(),this.input&&(t.input=this.input.serializable()),t}filterJaql(){const t={},i=this.filter.filterJaql();return this.input?(t.filter=this.input.filterJaql(),t.filter.filter={exclude:i}):t.exclude=i,t}}class vh extends cr{constructor(t,i,r,a,f,A,H){super(t,i,H),r&&a!==void 0&&(this.valueA=a,this.operatorA=r),f&&A!==void 0&&(this.operatorB=f,this.valueB=A)}get id(){let t=`${this.attribute.id}`;return this.operatorA&&this.valueA!==void 0&&(t+=`_${this.operatorA}:${this.valueA}`),this.operatorB&&this.valueB!==void 0&&(t+=`_${this.operatorB}:${this.valueB}`),t}serializable(){const t=super.serializable();return this.operatorA&&(t.operatorA=this.operatorA),this.operatorB&&(t.operatorB=this.operatorB),this.valueA!==void 0&&(t.valueA=this.valueA),this.valueB!==void 0&&(t.valueB=this.valueB),t}filterJaql(){const t={};return this.operatorA&&this.valueA!==void 0&&(t[this.operatorA]=this.valueA),this.operatorB&&this.valueB!==void 0&&(t[this.operatorB]=this.valueB),t}}class K_ extends vh{constructor(t,i,r,a,f,A,H){super(t,Dr.measure,r,a,f,A,H),this.measure=i}get id(){let t=`${this.attribute.id}_${this.measure.id}`;return this.operatorA&&this.valueA!==void 0&&(t+=`_${this.operatorA}:${this.valueA}`),this.operatorB&&this.valueB!==void 0&&(t+=`_${this.operatorB}${this.valueB}`),t}serializable(){const t=super.serializable();return t.measure=this.measure.serializable(),t}jaql(t){if(this.disabled)return cr.disabledJaql(t);const i=super.jaql(t);return this.measure instanceof Pn&&Object.entries(this.measure.jaql().jaql).forEach(([r,a])=>{i.jaql[r]=a}),i}}class Ym extends cr{constructor(t,i,r,a,f){super(t,Dr.ranking,f),this.count=a,this.operator=r,this.measure=i}get id(){return`${this.operator}_${this.count}_${this.attribute.id}_by_${this.measure.id}`}serializable(){const t=super.serializable();return t.count=this.count,t.operator=this.operator,t.measure=this.measure.serializable(),t}filterJaql(){const t={};return t[this.operator]=this.count,t.by=this.measure.jaql(!0),t}}class Q_ extends vh{constructor(t,i,r,a,f,A){super(t,Dr.numeric,i,r,a,f,A)}}class mn extends vh{constructor(t,i,r,a){super(t,Dr.text,i,r,void 0,void 0,a)}}class J_ extends vh{constructor(t,i,r,a){super(t,Dr.date,ya.From,i,ya.To,r,a),typeof i=="object"&&(this.valueA=i.toISOString()),typeof r=="object"&&(this.valueB=r.toISOString())}get level(){return this.attribute}get from(){return this.valueA}get to(){return this.valueB}filterJaql(){return super.filterJaql()}}class Xm extends cr{constructor(t,i,r,a,f,A){super(t,Dr.relativeDate,A),a||(a=ya.Next),this.anchor=f,this.operator=a,this.offset=i,this.count=r}get level(){return this.attribute}get id(){let t=`${this.level.id}_${this.operator}_${this.offset}_${this.count}`;return this.anchor&&(typeof this.anchor=="string"?t+=`_${this.anchor}`:typeof this.anchor=="object"&&(t+=`_${this.anchor.toISOString()}`)),t}serializable(){const t=super.serializable();return t.offset=this.offset,t.count=this.count,t.operator=this.operator,this.anchor&&(t.anchor=this.anchor),t}filterJaql(){const t={};return t[this.operator]={offset:this.offset,count:this.count},this.anchor&&(typeof this.anchor=="string"?t[this.operator].anchor=this.anchor:typeof this.anchor=="object"&&(t[this.operator].anchor=this.anchor.toISOString())),t}}class eC extends cr{constructor(t,i,r){super(t,Dr.advanced,r),delete i.filterType,this.jaqlExpression=i}get id(){return`custom_${this.attribute.id}_${this.guid}`}filterJaql(){return this.jaqlExpression}}const Ui={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function qm(e){return[Hi(Ui.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),Hi(Ui.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),Hi(Ui.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function $F(e){return[...qm(e),Hi(Ui.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),Hi(Ui.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),Hi(Ui.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function HF(e){return[...qm(e),Hi(Ui.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),Hi(Ui.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function UF(e){return[...qm(e),Hi(Ui.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),Hi(Ui.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),Hi(Ui.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const VF=e=>{const t=lr(e),i=Hi(Ui.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),r=Hi(Ui.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=a=>{const f=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:i.jaql(!0)},{toNotEqual:r.jaql(!0)}]}});return a?f:{jaql:f}},t},GF=e=>{const t=lr(e),i=Hi(Ui.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),r=Hi(Ui.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=a=>{const f=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:i.jaql(!0)},{toNotEqual:r.jaql(!0)}]}});return a?f:{jaql:f}},t};function YF(e,t){const i=t==null?void 0:t.find(r=>tC(e)===r.attribute.id);return i&&!i.disabled&&(i.isScope&&(i.isScope=!1),e.jaql.in={selected:i.jaql()}),e}function XF(e,t){const i=[],r=[];return t.forEach(a=>{e.some(A=>tC(A)===a.attribute.id)?i.push(a):r.push(a)}),[i,r]}function tC(e){const{dim:t,level:i,dateTimeLevel:r,bucket:a}=e.jaql;let f=`${t}`;return(i||r)&&(f+=`_${i||r}`),a&&(f+=`_${a}`),f}var qF=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(i[r[a]]=e[r[a]]);return i};function ZF(e,t,i){return{rowsCount:e.length,columnsCount:t.length,measuresCount:i.length}}function KF(e){switch(e){case"sortAsc":return"asc";case"sortDesc":return"desc";default:return"none"}}function QF(e,t,i){const r=KF(e.direction),a=t===i.rowsCount-1,f={dir:r,initialized:!0,field:e.by&&"valuesIndex"in e.by?i.rowsCount+i.columnsCount+e.by.valuesIndex:t};return a&&(f.sortingLastDimension=!0),e.by&&(f.measurePath=(e.by.columnsMembersPath||[]).reduce((A,H,q)=>Object.assign(Object.assign({},A),{[i.rowsCount+q]:H}),{})),{sort:r,sortDetails:f}}function JF(e,t){const i=e[t.rowsCount-1];if(i.jaql.sortDetails&&i.jaql.sortDetails.field!==t.rowsCount-1){const a=e[i.jaql.sortDetails.field],f=i.jaql,{sortDetails:A,sort:H}=f,q=qF(f,["sortDetails","sort"]);a.jaql.sortDetails=A,a.jaql.sort=H,i.jaql=q}}const qc="ComposeSDK";function iC(e,t){const{attributes:i,measures:r,filters:a,filterRelations:f,highlights:A,dataSource:H,count:q,offset:J,ungroup:ne}=e,se=ne&&r.length===0,M=Object.assign({metadata:eW({attributes:i,measures:r,filters:a,filterRelations:f,highlights:A},t)},tW(H,q,J,se));return f?Object.assign(Object.assign({},M),{filterRelations:f}):M}function rC(e,t,i,r,a){const[f,A]=XF(e,r);e.forEach(J=>YF(J,f));const H=J=>{const ne=J.jaql();return i?Array.isArray(ne)?ne.map(se=>Object.assign(Object.assign({},se),{instanceid:J.guid})):Object.assign(Object.assign({},ne),{instanceid:J.guid}):ne},q=(a?t.flatMap(J=>H(J)):[...t,...A].flatMap(J=>H(J))).filter(J=>Object.keys(J.jaql.filter||{}).length!==0);return a&&A.length>0&&console.warn(`The following highlight filters were not applied due to missing attributes: [${A.map(J=>J.attribute.name).join(", ")}].`),q}function eW(e,t){const{attributes:i,measures:r,filters:a,filterRelations:f,highlights:A}=e,H=i.map(ne=>ne.jaql()),q=r.map(ne=>ne.jaql()),J=rC(H,a,f,A,t);return[...H,...q,...J]}function tW(e,t,i,r){return Object.assign(Object.assign(Object.assign({datasource:nC(e),by:qc,queryGuid:Lw()},r?{ungroup:!0}:{}),t?{count:t}:{}),i?{offset:i}:{})}function iW(e,t){const{rowsAttributes:i,columnsAttributes:r,measures:a,filters:f,filterRelations:A,grandTotals:H,highlights:q,dataSource:J,count:ne,offset:se}=e,M=Object.assign({metadata:nW({rowsAttributes:i,columnsAttributes:r,measures:a,filters:f,highlights:q},t)},oW(J,H,ne,se));return A?Object.assign(Object.assign({},M),{filterRelations:A}):M}function W0(e,t,i,r){const a=t==="rows"&&Fd(e)&&e.sort&&e.sort.direction!=="sortNone",f=Object.assign(Object.assign({},Fd(e)?e.attribute.jaql(!0):e.jaql(!0)),a&&QF(e.sort,i,r));return Object.assign(Object.assign({jaql:f},Fd(e)&&e.includeSubTotals?{format:{subtotal:!0}}:{}),{panel:t,field:{index:i,id:`${t}-${i}`}})}function rW(e,t,i){return Object.assign(Object.assign({},lA(e)?hi(e.measure.jaql(),{jaql:{subtotalAgg:e.totalsCalculation},format:{databars:e.dataBars||!1}}):e.jaql()),{panel:t,field:{index:i,id:`${t}-${i}`}})}function nW(e,t){const{rowsAttributes:i,columnsAttributes:r,measures:a,filters:f,filterRelations:A,highlights:H}=e,q=ZF(i,r,a);let J=0;const ne=i.map(($,Y)=>W0($,"rows",Y+J,q));J=J+i.length;const se=r.map(($,Y)=>W0($,"columns",Y+J,q));J=J+r.length;const M=[...ne,...se],te=a.map(($,Y)=>rW($,"measures",Y+J)),F=rC(M,f,A,H,t),O=[...M,...te,...F];return JF(O,q),O}function oW(e,t,i,r){return Object.assign(Object.assign(Object.assign({datasource:nC(e),by:qc,queryGuid:Lw(),dashboard:qc,widget:qc,format:"pivot"},i?{count:i}:{}),r?{offset:r}:{}),{grandTotals:Object.assign(Object.assign({},cA),t)})}function nC(e){return Y_(e)?{title:e.title,live:e.type==="live"}:e}function aW(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function sW(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var lW=function(){function e(i){var r=this;this._insertTag=function(a){var f;r.tags.length===0?r.insertionPoint?f=r.insertionPoint.nextSibling:r.prepend?f=r.container.firstChild:f=r.before:f=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,f),r.tags.push(a)},this.isSpeedy=i.speedy===void 0?process.env.NODE_ENV==="production":i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(sW(this));var a=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var f=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;f&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
7
7
  `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!f}if(this.isSpeedy){var A=aW(a);try{A.insertRule(r,A.cssRules.length)}catch(H){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',H)}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Ni="-ms-",vu="-moz-",At="-webkit-",Zm="comm",Km="rule",Qm="decl",cW="@import",oC="@keyframes",uW="@layer",hW=Math.abs,yh=String.fromCharCode,dW=Object.assign;function pW(e,t){return Oi(e,0)^45?(((t<<2^Oi(e,0))<<2^Oi(e,1))<<2^Oi(e,2))<<2^Oi(e,3):0}function aC(e){return e.trim()}function fW(e,t){return(e=t.exec(e))?e[0]:e}function Ot(e,t,i){return e.replace(t,i)}function Vp(e,t){return e.indexOf(t)}function Oi(e,t){return e.charCodeAt(t)|0}function Ys(e,t,i){return e.slice(t,i)}function Jr(e){return e.length}function Jm(e){return e.length}function xc(e,t){return t.push(e),e}function mW(e,t){return e.map(t).join("")}var bh=1,ba=1,sC=0,Qi=0,_i=0,Ua="";function xh(e,t,i,r,a,f,A){return{value:e,root:t,parent:i,type:r,props:a,children:f,line:bh,column:ba,length:A,return:""}}function xs(e,t){return dW(xh("",null,null,"",null,null,0),e,{length:-e.length},t)}function gW(){return _i}function vW(){return _i=Qi>0?Oi(Ua,--Qi):0,ba--,_i===10&&(ba=1,bh--),_i}function ar(){return _i=Qi<sC?Oi(Ua,Qi++):0,ba++,_i===10&&(ba=1,bh++),_i}function ln(){return Oi(Ua,Qi)}function Zc(){return Qi}function _l(e,t){return Ys(Ua,e,t)}function Xs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function lC(e){return bh=ba=1,sC=Jr(Ua=e),Qi=0,[]}function cC(e){return Ua="",e}function Kc(e){return aC(_l(Qi-1,Gp(e===91?e+2:e===40?e+1:e)))}function yW(e){for(;(_i=ln())&&_i<33;)ar();return Xs(e)>2||Xs(_i)>3?"":" "}function bW(e,t){for(;--t&&ar()&&!(_i<48||_i>102||_i>57&&_i<65||_i>70&&_i<97););return _l(e,Zc()+(t<6&&ln()==32&&ar()==32))}function Gp(e){for(;ar();)switch(_i){case e:return Qi;case 34:case 39:e!==34&&e!==39&&Gp(_i);break;case 40:e===41&&Gp(e);break;case 92:ar();break}return Qi}function xW(e,t){for(;ar()&&e+_i!==57;)if(e+_i===84&&ln()===47)break;return"/*"+_l(t,Qi-1)+"*"+yh(e===47?e:ar())}function wW(e){for(;!Xs(ln());)ar();return _l(e,Qi)}function _W(e){return cC(Qc("",null,null,null,[""],e=lC(e),0,[0],e))}function Qc(e,t,i,r,a,f,A,H,q){for(var J=0,ne=0,se=A,M=0,te=0,F=0,O=1,$=1,Y=1,X=0,G="",V=a,z=f,D=r,R=G;$;)switch(F=X,X=ar()){case 40:if(F!=108&&Oi(R,se-1)==58){Vp(R+=Ot(Kc(X),"&","&\f"),"&\f")!=-1&&(Y=-1);break}case 34:case 39:case 91:R+=Kc(X);break;case 9:case 10:case 13:case 32:R+=yW(F);break;case 92:R+=bW(Zc()-1,7);continue;case 47:switch(ln()){case 42:case 47:xc(CW(xW(ar(),Zc()),t,i),q);break;default:R+="/"}break;case 123*O:H[J++]=Jr(R)*Y;case 125*O:case 59:case 0:switch(X){case 0:case 125:$=0;case 59+ne:Y==-1&&(R=Ot(R,/\f/g,"")),te>0&&Jr(R)-se&&xc(te>32?H0(R+";",r,i,se-1):H0(Ot(R," ","")+";",r,i,se-2),q);break;case 59:R+=";";default:if(xc(D=$0(R,t,i,J,ne,a,H,G,V=[],z=[],se),f),X===123)if(ne===0)Qc(R,t,D,D,V,f,se,H,z);else switch(M===99&&Oi(R,3)===110?100:M){case 100:case 108:case 109:case 115:Qc(e,D,D,r&&xc($0(e,D,D,0,0,a,H,G,a,V=[],se),z),a,z,se,H,r?V:z);break;default:Qc(R,D,D,D,[""],z,0,H,z)}}J=ne=te=0,O=Y=1,G=R="",se=A;break;case 58:se=1+Jr(R),te=F;default:if(O<1){if(X==123)--O;else if(X==125&&O++==0&&vW()==125)continue}switch(R+=yh(X),X*O){case 38:Y=ne>0?1:(R+="\f",-1);break;case 44:H[J++]=(Jr(R)-1)*Y,Y=1;break;case 64:ln()===45&&(R+=Kc(ar())),M=ln(),ne=se=Jr(G=R+=wW(Zc())),X++;break;case 45:F===45&&Jr(R)==2&&(O=0)}}return f}function $0(e,t,i,r,a,f,A,H,q,J,ne){for(var se=a-1,M=a===0?f:[""],te=Jm(M),F=0,O=0,$=0;F<r;++F)for(var Y=0,X=Ys(e,se+1,se=hW(O=A[F])),G=e;Y<te;++Y)(G=aC(O>0?M[Y]+" "+X:Ot(X,/&\f/g,M[Y])))&&(q[$++]=G);return xh(e,t,i,a===0?Km:H,q,J,ne)}function CW(e,t,i){return xh(e,t,i,Zm,yh(gW()),Ys(e,2,-2),0)}function H0(e,t,i,r){return xh(e,t,i,Qm,Ys(e,0,r),Ys(e,r+1,-1),r)}function fa(e,t){for(var i="",r=Jm(e),a=0;a<r;a++)i+=t(e[a],a,e,t)||"";return i}function SW(e,t,i,r){switch(e.type){case uW:if(e.children.length)break;case cW:case Qm:return e.return=e.return||e.value;case Zm:return"";case oC:return e.return=e.value+"{"+fa(e.children,r)+"}";case Km:e.value=e.props.join(",")}return Jr(i=fa(e.children,r))?e.return=e.value+"{"+i+"}":""}function MW(e){var t=Jm(e);return function(i,r,a,f){for(var A="",H=0;H<t;H++)A+=e[H](i,r,a,f)||"";return A}}function TW(e){return function(t){t.root||(t=t.return)&&e(t)}}function uC(e){var t=Object.create(null);return function(i){return t[i]===void 0&&(t[i]=e(i)),t[i]}}var PW=function(t,i,r){for(var a=0,f=0;a=f,f=ln(),a===38&&f===12&&(i[r]=1),!Xs(f);)ar();return _l(t,Qi)},kW=function(t,i){var r=-1,a=44;do switch(Xs(a)){case 0:a===38&&ln()===12&&(i[r]=1),t[r]+=PW(Qi-1,i,r);break;case 2:t[r]+=Kc(a);break;case 4:if(a===44){t[++r]=ln()===58?"&\f":"",i[r]=t[r].length;break}default:t[r]+=yh(a)}while(a=ar());return t},EW=function(t,i){return cC(kW(lC(t),i))},U0=new WeakMap,AW=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var i=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&i.charCodeAt(0)!==58&&!U0.get(r))&&!a){U0.set(t,!0);for(var f=[],A=EW(i,f),H=r.props,q=0,J=0;q<A.length;q++)for(var ne=0;ne<H.length;ne++,J++)t.props[J]=f[q]?A[q].replace(/&\f/g,H[ne]):H[ne]+" "+A[q]}}},OW=function(t){if(t.type==="decl"){var i=t.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(t.return="",t.value="")}},LW="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",DW=function(t){return t.type==="comm"&&t.children.indexOf(LW)>-1},RW=function(t){return function(i,r,a){if(!(i.type!=="rule"||t.compat)){var f=i.value.match(/(:first|:nth|:nth-last)-child/g);if(f){for(var A=!!i.parent,H=A?i.parent.children:a,q=H.length-1;q>=0;q--){var J=H[q];if(J.line<i.line)break;if(J.column<i.column){if(DW(J))return;break}}f.forEach(function(ne){console.error('The pseudo class "'+ne+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+ne.split("-child")[0]+'-of-type".')})}}}},hC=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},NW=function(t,i){for(var r=t-1;r>=0;r--)if(!hC(i[r]))return!0;return!1},V0=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},IW=function(t,i,r){hC(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),V0(t)):NW(i,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),V0(t)))};function dC(e,t){switch(pW(e,t)){case 5103:return At+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return At+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return At+e+vu+e+Ni+e+e;case 6828:case 4268:return At+e+Ni+e+e;case 6165:return At+e+Ni+"flex-"+e+e;case 5187:return At+e+Ot(e,/(\w+).+(:[^]+)/,At+"box-$1$2"+Ni+"flex-$1$2")+e;case 5443:return At+e+Ni+"flex-item-"+Ot(e,/flex-|-self/,"")+e;case 4675:return At+e+Ni+"flex-line-pack"+Ot(e,/align-content|flex-|-self/,"")+e;case 5548:return At+e+Ni+Ot(e,"shrink","negative")+e;case 5292:return At+e+Ni+Ot(e,"basis","preferred-size")+e;case 6060:return At+"box-"+Ot(e,"-grow","")+At+e+Ni+Ot(e,"grow","positive")+e;case 4554:return At+Ot(e,/([^-])(transform)/g,"$1"+At+"$2")+e;case 6187:return Ot(Ot(Ot(e,/(zoom-|grab)/,At+"$1"),/(image-set)/,At+"$1"),e,"")+e;case 5495:case 3959:return Ot(e,/(image-set\([^]*)/,At+"$1$`$1");case 4968:return Ot(Ot(e,/(.+:)(flex-)?(.*)/,At+"box-pack:$3"+Ni+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+At+e+e;case 4095:case 3583:case 4068:case 2532:return Ot(e,/(.+)-inline(.+)/,At+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jr(e)-1-t>6)switch(Oi(e,t+1)){case 109:if(Oi(e,t+4)!==45)break;case 102:return Ot(e,/(.+:)(.+)-([^]+)/,"$1"+At+"$2-$3$1"+vu+(Oi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Vp(e,"stretch")?dC(Ot(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oi(e,t+1)!==115)break;case 6444:switch(Oi(e,Jr(e)-3-(~Vp(e,"!important")&&10))){case 107:return Ot(e,":",":"+At)+e;case 101:return Ot(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+At+(Oi(e,14)===45?"inline-":"")+"box$3$1"+At+"$2$3$1"+Ni+"$2box$3")+e}break;case 5936:switch(Oi(e,t+11)){case 114:return At+e+Ni+Ot(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return At+e+Ni+Ot(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return At+e+Ni+Ot(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return At+e+Ni+e+e}return e}var jW=function(t,i,r,a){if(t.length>-1&&!t.return)switch(t.type){case Qm:t.return=dC(t.value,t.length);break;case oC:return fa([xs(t,{value:Ot(t.value,"@","@"+At)})],a);case Km:if(t.length)return mW(t.props,function(f){switch(fW(f,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fa([xs(t,{props:[Ot(f,/:(read-\w+)/,":"+vu+"$1")]})],a);case"::placeholder":return fa([xs(t,{props:[Ot(f,/:(plac\w+)/,":"+At+"input-$1")]}),xs(t,{props:[Ot(f,/:(plac\w+)/,":"+vu+"$1")]}),xs(t,{props:[Ot(f,/:(plac\w+)/,Ni+"input-$1")]})],a)}return""})}},BW=[jW],pC=function(t){var i=t.key;if(process.env.NODE_ENV!=="production"&&!i)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
8
8
  If multiple caches share the same key they might "fight" for each other's style elements.`);if(i==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(O){var $=O.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(O),O.setAttribute("data-s",""))})}var a=t.stylisPlugins||BW;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(i))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+i+'" was passed');var f={},A,H=[];A=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(O){for(var $=O.getAttribute("data-emotion").split(" "),Y=1;Y<$.length;Y++)f[$[Y]]=!0;H.push(O)});var q,J=[AW,OW];process.env.NODE_ENV!=="production"&&J.push(RW({get compat(){return F.compat}}),IW);{var ne,se=[SW,process.env.NODE_ENV!=="production"?function(O){O.root||(O.return?ne.insert(O.return):O.value&&O.type!==Zm&&ne.insert(O.value+"{}"))}:TW(function(O){ne.insert(O)})],M=MW(J.concat(a,se)),te=function($){return fa(_W($),M)};q=function($,Y,X,G){ne=X,process.env.NODE_ENV!=="production"&&Y.map!==void 0&&(ne={insert:function(z){X.insert(z+Y.map)}}),te($?$+"{"+Y.styles+"}":Y.styles),G&&(F.inserted[Y.name]=!0)}}var F={key:i,sheet:new lW({key:i,container:A,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:f,registered:{},insert:q};return F.sheet.hydrate(H),F},zW=!0;function eg(e,t,i){var r="";return i.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):r+=a+" "}),r}var wh=function(t,i,r){var a=t.key+"-"+i.name;(r===!1||zW===!1)&&t.registered[a]===void 0&&(t.registered[a]=i.styles)},_h=function(t,i,r){wh(t,i,r);var a=t.key+"-"+i.name;if(t.inserted[i.name]===void 0){var f=i;do t.insert(i===f?"."+a:"",f,t.sheet,!0),f=f.next;while(f!==void 0)}};function FW(e){for(var t=0,i,r=0,a=e.length;a>=4;++r,a-=4)i=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,t=(i&65535)*1540483477+((i>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var WW={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},G0=`You have illegal escape sequence in your template literal, most likely inside content's property value.
9
9
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
@@ -17,7 +17,7 @@ You should wrap it with \`css\` like this:
17
17
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
18
18
  You can read more about this here:
19
19
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,u4=function(t){var i=t.cache,r=t.serialized,a=t.isStringTag;return wh(i,r,a),ig(function(){return _h(i,r,a)}),null},h4=function e(t,i){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
20
- You may have forgotten to import it.`);var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,f,A;i!==void 0&&(f=i.label,A=i.target);var H=nb(t,i,r),q=H||rb(a),J=!q("as");return function(){var ne=arguments,se=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(f!==void 0&&se.push("label:"+f+";"),ne[0]==null||ne[0].raw===void 0)se.push.apply(se,ne);else{process.env.NODE_ENV!=="production"&&ne[0][0]===void 0&&console.error(ob),se.push(ne[0][0]);for(var M=ne.length,te=1;te<M;te++)process.env.NODE_ENV!=="production"&&ne[0][te]===void 0&&console.error(ob),se.push(ne[te],ne[0][te])}var F=Ch(function(O,$,Y){var X=J&&O.as||a,G="",V=[],z=O;if(O.theme==null){z={};for(var D in O)z[D]=O[D];z.theme=Ie.useContext(eo)}typeof O.className=="string"?G=eg($.registered,V,O.className):O.className!=null&&(G=O.className+" ");var R=xa(se.concat(V),$.registered,z);G+=$.key+"-"+R.name,A!==void 0&&(G+=" "+A);var w=J&&H===void 0?rb(X):q,T={};for(var p in O)J&&p==="as"||w(p)&&(T[p]=O[p]);return T.className=G,T.ref=Y,Ie.createElement(Ie.Fragment,null,Ie.createElement(u4,{cache:$,serialized:R,isStringTag:typeof X=="string"}),Ie.createElement(X,T))});return F.displayName=f!==void 0?f:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",F.defaultProps=t.defaultProps,F.__emotion_real=F,F.__emotion_base=a,F.__emotion_styles=se,F.__emotion_forwardProp=H,Object.defineProperty(F,"toString",{value:function(){return A===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+A}}),F.withComponent=function(O,$){return e(O,Fe({},i,$,{shouldForwardProp:nb(F,$,!0)})).apply(void 0,se)},F}},d4=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Gr=h4.bind();d4.forEach(function(e){Gr[e]=Gr(e)});function Ro(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function wa(e){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}function gn(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Sl(e){gn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||wa(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function p4(e,t){gn(2,arguments);var i=Sl(e),r=Ro(t);if(isNaN(r))return new Date(NaN);if(!r)return i;var a=i.getDate(),f=new Date(i.getTime());f.setMonth(i.getMonth()+r+1,0);var A=f.getDate();return a>=A?f:(i.setFullYear(f.getFullYear(),f.getMonth(),a),i)}var f4={};function m4(){return f4}function ab(e,t){var i,r,a,f,A,H,q,J;gn(1,arguments);var ne=m4(),se=Ro((i=(r=(a=(f=t==null?void 0:t.weekStartsOn)!==null&&f!==void 0?f:t==null||(A=t.locale)===null||A===void 0||(H=A.options)===null||H===void 0?void 0:H.weekStartsOn)!==null&&a!==void 0?a:ne.weekStartsOn)!==null&&r!==void 0?r:(q=ne.locale)===null||q===void 0||(J=q.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&i!==void 0?i:0);if(!(se>=0&&se<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var M=Sl(e),te=M.getUTCDay(),F=(te<se?7:0)+te-se;return M.setUTCDate(M.getUTCDate()-F),M.setUTCHours(0,0,0,0),M}var g4={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},v4=function(t,i,r){var a,f=g4[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function St(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.width?String(t.width):e.defaultWidth,r=e.formats[i]||e.formats[e.defaultWidth];return r}}var y4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},b4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},x4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},w4={date:St({formats:y4,defaultWidth:"full"}),time:St({formats:b4,defaultWidth:"full"}),dateTime:St({formats:x4,defaultWidth:"full"})},_4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},C4=function(t,i,r,a){return _4[t]};function at(e){return function(t,i){var r=i!=null&&i.context?String(i.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var f=e.defaultFormattingWidth||e.defaultWidth,A=i!=null&&i.width?String(i.width):f;a=e.formattingValues[A]||e.formattingValues[f]}else{var H=e.defaultWidth,q=i!=null&&i.width?String(i.width):e.defaultWidth;a=e.values[q]||e.values[H]}var J=e.argumentCallback?e.argumentCallback(t):t;return a[J]}}var S4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},M4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},T4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},P4={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},k4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},E4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},A4=function(t,i){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},O4={ordinalNumber:A4,era:at({values:S4,defaultWidth:"wide"}),quarter:at({values:M4,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:T4,defaultWidth:"wide"}),day:at({values:P4,defaultWidth:"wide"}),dayPeriod:at({values:k4,defaultWidth:"wide",formattingValues:E4,defaultFormattingWidth:"wide"})};function st(e){return function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],f=t.match(a);if(!f)return null;var A=f[0],H=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],q=Array.isArray(H)?D4(H,function(se){return se.test(A)}):L4(H,function(se){return se.test(A)}),J;J=e.valueCallback?e.valueCallback(q):q,J=i.valueCallback?i.valueCallback(J):J;var ne=t.slice(A.length);return{value:J,rest:ne}}}function L4(e,t){for(var i in e)if(e.hasOwnProperty(i)&&t(e[i]))return i}function D4(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return i}function Rr(e){return function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],f=t.match(e.parsePattern);if(!f)return null;var A=e.valueCallback?e.valueCallback(f[0]):f[0];A=i.valueCallback?i.valueCallback(A):A;var H=t.slice(a.length);return{value:A,rest:H}}}var R4=/^(\d+)(th|st|nd|rd)?/i,N4=/\d+/i,I4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},j4={any:[/^b/i,/^(a|c)/i]},B4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z4={any:[/1/i,/2/i,/3/i,/4/i]},F4={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},W4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},H4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},U4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},V4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},G4={ordinalNumber:Rr({matchPattern:R4,parsePattern:N4,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:I4,defaultMatchWidth:"wide",parsePatterns:j4,defaultParseWidth:"any"}),quarter:st({matchPatterns:B4,defaultMatchWidth:"wide",parsePatterns:z4,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:F4,defaultMatchWidth:"wide",parsePatterns:W4,defaultParseWidth:"any"}),day:st({matchPatterns:$4,defaultMatchWidth:"wide",parsePatterns:H4,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:U4,defaultMatchWidth:"any",parsePatterns:V4,defaultParseWidth:"any"})},Y4={code:"en-US",formatDistance:v4,formatLong:w4,formatRelative:C4,localize:O4,match:G4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function bC(e,t){gn(2,arguments);var i=Ro(t);return p4(e,i*12)}var xC=6e4,wC=36e5;function Sh(e,t){var i;gn(1,arguments);var r=Ro((i=void 0)!==null&&i!==void 0?i:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=K4(e),f;if(a.date){var A=Q4(a.date,r);f=J4(A.restDateString,A.year)}if(!f||isNaN(f.getTime()))return new Date(NaN);var H=f.getTime(),q=0,J;if(a.time&&(q=e$(a.time),isNaN(q)))return new Date(NaN);if(a.timezone){if(J=t$(a.timezone),isNaN(J))return new Date(NaN)}else{var ne=new Date(H+q),se=new Date(0);return se.setFullYear(ne.getUTCFullYear(),ne.getUTCMonth(),ne.getUTCDate()),se.setHours(ne.getUTCHours(),ne.getUTCMinutes(),ne.getUTCSeconds(),ne.getUTCMilliseconds()),se}return new Date(H+q+J)}var wc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},X4=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,q4=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Z4=/^([+-])(\d{2})(?::?(\d{2}))?$/;function K4(e){var t={},i=e.split(wc.dateTimeDelimiter),r;if(i.length>2)return t;if(/:/.test(i[0])?r=i[0]:(t.date=i[0],r=i[1],wc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(wc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var a=wc.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function Q4(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(i);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,f=r[2]?parseInt(r[2]):null;return{year:f===null?a:f*100,restDateString:e.slice((r[1]||r[2]).length)}}function J4(e,t){if(t===null)return new Date(NaN);var i=e.match(X4);if(!i)return new Date(NaN);var r=!!i[4],a=ws(i[1]),f=ws(i[2])-1,A=ws(i[3]),H=ws(i[4]),q=ws(i[5])-1;if(r)return a$(t,H,q)?i$(t,H,q):new Date(NaN);var J=new Date(0);return!n$(t,f,A)||!o$(t,a)?new Date(NaN):(J.setUTCFullYear(t,f,Math.max(a,A)),J)}function ws(e){return e?parseInt(e):1}function e$(e){var t=e.match(q4);if(!t)return NaN;var i=Gd(t[1]),r=Gd(t[2]),a=Gd(t[3]);return s$(i,r,a)?i*wC+r*xC+a*1e3:NaN}function Gd(e){return e&&parseFloat(e.replace(",","."))||0}function t$(e){if(e==="Z")return 0;var t=e.match(Z4);if(!t)return 0;var i=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return l$(r,a)?i*(r*wC+a*xC):NaN}function i$(e,t,i){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,f=(t-1)*7+i+1-a;return r.setUTCDate(r.getUTCDate()+f),r}var r$=[31,null,31,30,31,30,31,31,30,31,30,31];function _C(e){return e%400===0||e%4===0&&e%100!==0}function n$(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(r$[t]||(_C(e)?29:28))}function o$(e,t){return t>=1&&t<=(_C(e)?366:365)}function a$(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}function s$(e,t,i){return e===24?t===0&&i===0:i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}function l$(e,t){return t>=0&&t<=59}function CC(e,t){gn(2,arguments);var i=Ro(t);return bC(e,-i)}function c$(e){gn(1,arguments);var t=Sl(e),i=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(i,r+1,0),a.setHours(0,0,0,0),a.getDate()}function u$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yp(e,t){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Yp(e,t)}function h$(e,t){if(wa(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,t||"default");if(wa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e){var t=h$(e,"string");return wa(t)=="symbol"?t:t+""}function p$(e,t,i){return t=d$(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function f$(e,t){gn(2,arguments);var i=Sl(e),r=Ro(t),a=i.getFullYear(),f=i.getDate(),A=new Date(0);A.setFullYear(a,r,15),A.setHours(0,0,0,0);var H=c$(A);return i.setMonth(r,Math.min(f,H)),i}function m$(e,t){gn(2,arguments);var i=Sl(e),r=Ro(t);return isNaN(i.getTime())?new Date(NaN):(i.setFullYear(r),i)}function Zs(e,t,i){gn(2,arguments);var r=ab(e,i),a=ab(t,i);return r.getTime()===a.getTime()}var sb={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},g$=function(t,i,r){var a,f=r!=null&&r.addSuffix?sb[t].withPreposition:sb[t].standalone;return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:"vor "+a:a},v$={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},y$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},b$={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},x$={date:St({formats:v$,defaultWidth:"full"}),time:St({formats:y$,defaultWidth:"full"}),dateTime:St({formats:b$,defaultWidth:"full"})},w$={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},_$=function(t,i,r,a){return w$[t]},C$={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},S$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Xp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},M$={narrow:Xp.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Xp.wide},T$={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},P$={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},k$={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},E$=function(t){var i=Number(t);return i+"."},A$={ordinalNumber:E$,era:at({values:C$,defaultWidth:"wide"}),quarter:at({values:S$,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:Xp,formattingValues:M$,defaultWidth:"wide"}),day:at({values:T$,defaultWidth:"wide"}),dayPeriod:at({values:P$,defaultWidth:"wide",formattingValues:k$,defaultFormattingWidth:"wide"})},O$=/^(\d+)(\.)?/i,L$=/\d+/i,D$={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},R$={any:[/^v/i,/^n/i]},N$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},I$={any:[/1/i,/2/i,/3/i,/4/i]},j$={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},B$={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},z$={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},F$={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},W$={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},$$={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},H$={ordinalNumber:Rr({matchPattern:O$,parsePattern:L$,valueCallback:function(t){return parseInt(t)}}),era:st({matchPatterns:D$,defaultMatchWidth:"wide",parsePatterns:R$,defaultParseWidth:"any"}),quarter:st({matchPatterns:N$,defaultMatchWidth:"wide",parsePatterns:I$,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:j$,defaultMatchWidth:"wide",parsePatterns:B$,defaultParseWidth:"any"}),day:st({matchPatterns:z$,defaultMatchWidth:"wide",parsePatterns:F$,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:W$,defaultMatchWidth:"wide",parsePatterns:$$,defaultParseWidth:"any"})},U$={code:"de",formatDistance:g$,formatLong:x$,formatRelative:_$,localize:A$,match:H$,options:{weekStartsOn:1,firstWeekContainsDate:4}},V$={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},G$=function(t,i,r){var a,f=V$[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hace "+a:a},Y$={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},X$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},q$={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Z$={date:St({formats:Y$,defaultWidth:"full"}),time:St({formats:X$,defaultWidth:"full"}),dateTime:St({formats:q$,defaultWidth:"full"})},K$={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},Q$={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},J$=function(t,i,r,a){return i.getUTCHours()!==1?Q$[t]:K$[t]},eH={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},tH={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},iH={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},rH={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},nH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},oH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},aH=function(t,i){var r=Number(t);return r+"º"},sH={ordinalNumber:aH,era:at({values:eH,defaultWidth:"wide"}),quarter:at({values:tH,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:at({values:iH,defaultWidth:"wide"}),day:at({values:rH,defaultWidth:"wide"}),dayPeriod:at({values:nH,defaultWidth:"wide",formattingValues:oH,defaultFormattingWidth:"wide"})},lH=/^(\d+)(º)?/i,cH=/\d+/i,uH={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},hH={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},dH={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},pH={any:[/1/i,/2/i,/3/i,/4/i]},fH={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},mH={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},gH={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},vH={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},yH={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},bH={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},xH={ordinalNumber:Rr({matchPattern:lH,parsePattern:cH,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:uH,defaultMatchWidth:"wide",parsePatterns:hH,defaultParseWidth:"any"}),quarter:st({matchPatterns:dH,defaultMatchWidth:"wide",parsePatterns:pH,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:fH,defaultMatchWidth:"wide",parsePatterns:mH,defaultParseWidth:"any"}),day:st({matchPatterns:gH,defaultMatchWidth:"wide",parsePatterns:vH,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:yH,defaultMatchWidth:"any",parsePatterns:bH,defaultParseWidth:"any"})},wH={code:"es",formatDistance:G$,formatLong:Z$,formatRelative:J$,localize:sH,match:xH,options:{weekStartsOn:1,firstWeekContainsDate:1}},_H={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},CH=function(t,i,r){var a,f=_H[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+a:"il y a "+a:a},SH={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},MH={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},TH={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},PH={date:St({formats:SH,defaultWidth:"full"}),time:St({formats:MH,defaultWidth:"full"}),dateTime:St({formats:TH,defaultWidth:"full"})},kH={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},EH=function(t,i,r,a){return kH[t]},AH={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},OH={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},LH={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},DH={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},RH={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},NH=function(t,i){var r=Number(t),a=i==null?void 0:i.unit;if(r===0)return"0";var f=["year","week","hour","minute","second"],A;return r===1?A=a&&f.includes(a)?"ère":"er":A="ème",r+A},IH={ordinalNumber:NH,era:at({values:AH,defaultWidth:"wide"}),quarter:at({values:OH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:LH,defaultWidth:"wide"}),day:at({values:DH,defaultWidth:"wide"}),dayPeriod:at({values:RH,defaultWidth:"wide"})},jH=/^(\d+)(ième|ère|ème|er|e)?/i,BH=/\d+/i,zH={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},FH={any:[/^av/i,/^ap/i]},WH={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},$H={any:[/1/i,/2/i,/3/i,/4/i]},HH={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},UH={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},VH={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},GH={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},YH={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},XH={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},qH={ordinalNumber:Rr({matchPattern:jH,parsePattern:BH,valueCallback:function(t){return parseInt(t)}}),era:st({matchPatterns:zH,defaultMatchWidth:"wide",parsePatterns:FH,defaultParseWidth:"any"}),quarter:st({matchPatterns:WH,defaultMatchWidth:"wide",parsePatterns:$H,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:HH,defaultMatchWidth:"wide",parsePatterns:UH,defaultParseWidth:"any"}),day:st({matchPatterns:VH,defaultMatchWidth:"wide",parsePatterns:GH,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:YH,defaultMatchWidth:"any",parsePatterns:XH,defaultParseWidth:"any"})},ZH={code:"fr",formatDistance:CH,formatLong:PH,formatRelative:EH,localize:IH,match:qH,options:{weekStartsOn:1,firstWeekContainsDate:4}},KH={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},QH=function(t,i,r){var a,f=KH[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"tra "+a:a+" fa":a},JH={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},e6={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},t6={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},i6={date:St({formats:JH,defaultWidth:"full"}),time:St({formats:e6,defaultWidth:"full"}),dateTime:St({formats:t6,defaultWidth:"full"})},ag=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function r6(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+ag[e]+" scorso alle' p"}}function lb(e){return"'"+ag[e]+" alle' p"}function n6(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+ag[e]+" prossimo alle' p"}}var o6={lastWeek:function(t,i,r){var a=t.getUTCDay();return Zs(t,i,r)?lb(a):r6(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,i,r){var a=t.getUTCDay();return Zs(t,i,r)?lb(a):n6(a)},other:"P"},a6=function(t,i,r,a){var f=o6[t];return typeof f=="function"?f(i,r,a):f},s6={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},l6={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},c6={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},u6={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},h6={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},d6={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},p6=function(t,i){var r=Number(t);return String(r)},f6={ordinalNumber:p6,era:at({values:s6,defaultWidth:"wide"}),quarter:at({values:l6,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:c6,defaultWidth:"wide"}),day:at({values:u6,defaultWidth:"wide"}),dayPeriod:at({values:h6,defaultWidth:"wide",formattingValues:d6,defaultFormattingWidth:"wide"})},m6=/^(\d+)(º)?/i,g6=/\d+/i,v6={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},y6={any:[/^a/i,/^(d|e)/i]},b6={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},x6={any:[/1/i,/2/i,/3/i,/4/i]},w6={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},_6={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},C6={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},S6={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},M6={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},T6={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},P6={ordinalNumber:Rr({matchPattern:m6,parsePattern:g6,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:v6,defaultMatchWidth:"wide",parsePatterns:y6,defaultParseWidth:"any"}),quarter:st({matchPatterns:b6,defaultMatchWidth:"wide",parsePatterns:x6,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:w6,defaultMatchWidth:"wide",parsePatterns:_6,defaultParseWidth:"any"}),day:st({matchPatterns:C6,defaultMatchWidth:"wide",parsePatterns:S6,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:M6,defaultMatchWidth:"any",parsePatterns:T6,defaultParseWidth:"any"})},k6={code:"it",formatDistance:QH,formatLong:i6,formatRelative:a6,localize:f6,match:P6,options:{weekStartsOn:1,firstWeekContainsDate:4}},E6={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},A6=function(t,i,r){r=r||{};var a,f=E6[t];return typeof f=="string"?a=f:i===1?r.addSuffix&&f.oneWithSuffix?a=f.oneWithSuffix:a=f.one:r.addSuffix&&f.otherWithSuffix?a=f.otherWithSuffix.replace("{{count}}",String(i)):a=f.other.replace("{{count}}",String(i)),r.addSuffix?r.comparison&&r.comparison>0?a+"後":a+"前":a},O6={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},L6={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},D6={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},R6={date:St({formats:O6,defaultWidth:"full"}),time:St({formats:L6,defaultWidth:"full"}),dateTime:St({formats:D6,defaultWidth:"full"})},N6={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},I6=function(t,i,r,a){return N6[t]},j6={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},B6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},z6={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},F6={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},W6={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},$6={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},H6=function(t,i){var r=Number(t),a=String(i==null?void 0:i.unit);switch(a){case"year":return"".concat(r,"年");case"quarter":return"第".concat(r,"四半期");case"month":return"".concat(r,"月");case"week":return"第".concat(r,"週");case"date":return"".concat(r,"日");case"hour":return"".concat(r,"時");case"minute":return"".concat(r,"分");case"second":return"".concat(r,"秒");default:return"".concat(r)}},U6={ordinalNumber:H6,era:at({values:j6,defaultWidth:"wide"}),quarter:at({values:B6,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:at({values:z6,defaultWidth:"wide"}),day:at({values:F6,defaultWidth:"wide"}),dayPeriod:at({values:W6,defaultWidth:"wide",formattingValues:$6,defaultFormattingWidth:"wide"})},V6=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,G6=/\d+/i,Y6={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},X6={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},q6={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},Z6={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},K6={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Q6={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},J6={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},e8={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},t8={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},i8={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},r8={ordinalNumber:Rr({matchPattern:V6,parsePattern:G6,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:Y6,defaultMatchWidth:"wide",parsePatterns:X6,defaultParseWidth:"any"}),quarter:st({matchPatterns:q6,defaultMatchWidth:"wide",parsePatterns:Z6,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:K6,defaultMatchWidth:"wide",parsePatterns:Q6,defaultParseWidth:"any"}),day:st({matchPatterns:J6,defaultMatchWidth:"wide",parsePatterns:e8,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:t8,defaultMatchWidth:"any",parsePatterns:i8,defaultParseWidth:"any"})},n8={code:"ja",formatDistance:A6,formatLong:R6,formatRelative:I6,localize:U6,match:r8,options:{weekStartsOn:0,firstWeekContainsDate:1}},o8={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},a8=function(t,i,r){var a,f=o8[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" 후":a+" 전":a},s8={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},l8={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},c8={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},u8={date:St({formats:s8,defaultWidth:"full"}),time:St({formats:l8,defaultWidth:"full"}),dateTime:St({formats:c8,defaultWidth:"full"})},h8={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},d8=function(t,i,r,a){return h8[t]},p8={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},f8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},m8={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},g8={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},v8={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},y8={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},b8=function(t,i){var r=Number(t),a=String(i==null?void 0:i.unit);switch(a){case"minute":case"second":return String(r);case"date":return r+"일";default:return r+"번째"}},x8={ordinalNumber:b8,era:at({values:p8,defaultWidth:"wide"}),quarter:at({values:f8,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:m8,defaultWidth:"wide"}),day:at({values:g8,defaultWidth:"wide"}),dayPeriod:at({values:v8,defaultWidth:"wide",formattingValues:y8,defaultFormattingWidth:"wide"})},w8=/^(\d+)(일|번째)?/i,_8=/\d+/i,C8={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},S8={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},M8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},T8={any:[/1/i,/2/i,/3/i,/4/i]},P8={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},k8={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},E8={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},A8={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},O8={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},L8={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},D8={ordinalNumber:Rr({matchPattern:w8,parsePattern:_8,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:C8,defaultMatchWidth:"wide",parsePatterns:S8,defaultParseWidth:"any"}),quarter:st({matchPatterns:M8,defaultMatchWidth:"wide",parsePatterns:T8,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:P8,defaultMatchWidth:"wide",parsePatterns:k8,defaultParseWidth:"any"}),day:st({matchPatterns:E8,defaultMatchWidth:"wide",parsePatterns:A8,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:O8,defaultMatchWidth:"any",parsePatterns:L8,defaultParseWidth:"any"})},R8={code:"ko",formatDistance:a8,formatLong:u8,formatRelative:d8,localize:x8,match:D8,options:{weekStartsOn:0,firstWeekContainsDate:1}},N8={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},I8=function(t,i,r){var a,f=N8[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+a:a+" geleden":a},j8={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},B8={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},z8={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F8={date:St({formats:j8,defaultWidth:"full"}),time:St({formats:B8,defaultWidth:"full"}),dateTime:St({formats:z8,defaultWidth:"full"})},W8={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},$8=function(t,i,r,a){return W8[t]},H8={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},U8={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},V8={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},G8={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},Y8={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},X8=function(t,i){var r=Number(t);return r+"e"},q8={ordinalNumber:X8,era:at({values:H8,defaultWidth:"wide"}),quarter:at({values:U8,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:V8,defaultWidth:"wide"}),day:at({values:G8,defaultWidth:"wide"}),dayPeriod:at({values:Y8,defaultWidth:"wide"})},Z8=/^(\d+)e?/i,K8=/\d+/i,Q8={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},J8={any:[/^v/,/^n/]},e9={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},t9={any:[/1/i,/2/i,/3/i,/4/i]},i9={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},r9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},n9={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},o9={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},a9={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},s9={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},l9={ordinalNumber:Rr({matchPattern:Z8,parsePattern:K8,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:Q8,defaultMatchWidth:"wide",parsePatterns:J8,defaultParseWidth:"any"}),quarter:st({matchPatterns:e9,defaultMatchWidth:"wide",parsePatterns:t9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:i9,defaultMatchWidth:"wide",parsePatterns:r9,defaultParseWidth:"any"}),day:st({matchPatterns:n9,defaultMatchWidth:"wide",parsePatterns:o9,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:a9,defaultMatchWidth:"any",parsePatterns:s9,defaultParseWidth:"any"})},c9={code:"nl",formatDistance:I8,formatLong:F8,formatRelative:$8,localize:q8,match:l9,options:{weekStartsOn:1,firstWeekContainsDate:4}},u9={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},h9=function(t,i,r){var a,f=u9[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"daqui a "+a:"há "+a:a},d9={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},p9={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},f9={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},m9={date:St({formats:d9,defaultWidth:"full"}),time:St({formats:p9,defaultWidth:"full"}),dateTime:St({formats:f9,defaultWidth:"full"})},g9={lastWeek:function(t){var i=t.getUTCDay(),r=i===0||i===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},v9=function(t,i,r,a){var f=g9[t];return typeof f=="function"?f(i):f},y9={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},b9={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},x9={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},w9={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},_9={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},C9={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},S9=function(t,i){var r=Number(t);return r+"º"},M9={ordinalNumber:S9,era:at({values:y9,defaultWidth:"wide"}),quarter:at({values:b9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:x9,defaultWidth:"wide"}),day:at({values:w9,defaultWidth:"wide"}),dayPeriod:at({values:_9,defaultWidth:"wide",formattingValues:C9,defaultFormattingWidth:"wide"})},T9=/^(\d+)(º|ª)?/i,P9=/\d+/i,k9={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},E9={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},A9={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},O9={any:[/1/i,/2/i,/3/i,/4/i]},L9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},D9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},R9={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},N9={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},I9={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},j9={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},B9={ordinalNumber:Rr({matchPattern:T9,parsePattern:P9,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:k9,defaultMatchWidth:"wide",parsePatterns:E9,defaultParseWidth:"any"}),quarter:st({matchPatterns:A9,defaultMatchWidth:"wide",parsePatterns:O9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:L9,defaultMatchWidth:"wide",parsePatterns:D9,defaultParseWidth:"any"}),day:st({matchPatterns:R9,defaultMatchWidth:"wide",parsePatterns:N9,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:I9,defaultMatchWidth:"any",parsePatterns:j9,defaultParseWidth:"any"})},z9={code:"pt",formatDistance:h9,formatLong:m9,formatRelative:v9,localize:M9,match:B9,options:{weekStartsOn:1,firstWeekContainsDate:4}};function _s(e,t){if(e.one!==void 0&&t===1)return e.one;var i=t%10,r=t%100;return i===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):i>=2&&i<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Fi(e){return function(t,i){return i!=null&&i.addSuffix?i.comparison&&i.comparison>0?e.future?_s(e.future,t):"через "+_s(e.regular,t):e.past?_s(e.past,t):_s(e.regular,t)+" назад":_s(e.regular,t)}}var F9={lessThanXSeconds:Fi({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:Fi({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,i){return i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:Fi({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:Fi({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:Fi({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:Fi({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:Fi({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:Fi({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:Fi({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:Fi({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:Fi({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:Fi({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:Fi({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:Fi({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:Fi({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},W9=function(t,i,r){return F9[t](i,r)},$9={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},H9={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},U9={any:"{{date}}, {{time}}"},V9={date:St({formats:$9,defaultWidth:"full"}),time:St({formats:H9,defaultWidth:"full"}),dateTime:St({formats:U9,defaultWidth:"any"})},sg=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function G9(e){var t=sg[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function cb(e){var t=sg[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function Y9(e){var t=sg[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var X9={lastWeek:function(t,i,r){var a=t.getUTCDay();return Zs(t,i,r)?cb(a):G9(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,i,r){var a=t.getUTCDay();return Zs(t,i,r)?cb(a):Y9(a)},other:"P"},q9=function(t,i,r,a){var f=X9[t];return typeof f=="function"?f(i,r,a):f},Z9={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},K9={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Q9={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},J9={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},eU={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},tU={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},iU={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},rU=function(t,i){var r=Number(t),a=i==null?void 0:i.unit,f;return a==="date"?f="-е":a==="week"||a==="minute"||a==="second"?f="-я":f="-й",r+f},nU={ordinalNumber:rU,era:at({values:Z9,defaultWidth:"wide"}),quarter:at({values:K9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:Q9,defaultWidth:"wide",formattingValues:J9,defaultFormattingWidth:"wide"}),day:at({values:eU,defaultWidth:"wide"}),dayPeriod:at({values:tU,defaultWidth:"any",formattingValues:iU,defaultFormattingWidth:"wide"})},oU=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,aU=/\d+/i,sU={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},lU={any:[/^д/i,/^н/i]},cU={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},uU={any:[/1/i,/2/i,/3/i,/4/i]},hU={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},dU={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},pU={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},fU={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},mU={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},gU={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},vU={ordinalNumber:Rr({matchPattern:oU,parsePattern:aU,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:sU,defaultMatchWidth:"wide",parsePatterns:lU,defaultParseWidth:"any"}),quarter:st({matchPatterns:cU,defaultMatchWidth:"wide",parsePatterns:uU,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:hU,defaultMatchWidth:"wide",parsePatterns:dU,defaultParseWidth:"any"}),day:st({matchPatterns:pU,defaultMatchWidth:"wide",parsePatterns:fU,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:mU,defaultMatchWidth:"wide",parsePatterns:gU,defaultParseWidth:"any"})},yU={code:"ru",formatDistance:W9,formatLong:V9,formatRelative:q9,localize:nU,match:vU,options:{weekStartsOn:1,firstWeekContainsDate:1}},bU={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},xU=function(t,i,r){var a,f=bU[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" sonra":a+" önce":a},wU={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},_U={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},CU={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SU={date:St({formats:wU,defaultWidth:"full"}),time:St({formats:_U,defaultWidth:"full"}),dateTime:St({formats:CU,defaultWidth:"full"})},MU={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},TU=function(t,i,r,a){return MU[t]},PU={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},kU={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},EU={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},AU={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},OU={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},LU={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},DU=function(t,i){var r=Number(t);return r+"."},RU={ordinalNumber:DU,era:at({values:PU,defaultWidth:"wide"}),quarter:at({values:kU,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:at({values:EU,defaultWidth:"wide"}),day:at({values:AU,defaultWidth:"wide"}),dayPeriod:at({values:OU,defaultWidth:"wide",formattingValues:LU,defaultFormattingWidth:"wide"})},NU=/^(\d+)(\.)?/i,IU=/\d+/i,jU={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},BU={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},zU={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},FU={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},WU={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},$U={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},HU={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},UU={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},VU={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},GU={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},YU={ordinalNumber:Rr({matchPattern:NU,parsePattern:IU,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:jU,defaultMatchWidth:"wide",parsePatterns:BU,defaultParseWidth:"any"}),quarter:st({matchPatterns:zU,defaultMatchWidth:"wide",parsePatterns:FU,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:WU,defaultMatchWidth:"wide",parsePatterns:$U,defaultParseWidth:"any"}),day:st({matchPatterns:HU,defaultMatchWidth:"wide",parsePatterns:UU,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:VU,defaultMatchWidth:"any",parsePatterns:GU,defaultParseWidth:"any"})},XU={code:"tr",formatDistance:xU,formatLong:SU,formatRelative:TU,localize:RU,match:YU,options:{weekStartsOn:1,firstWeekContainsDate:1}},qU={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},ZU=function(t,i,r){var a,f=qU[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a},KU={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},QU={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},JU={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},eV={date:St({formats:KU,defaultWidth:"full"}),time:St({formats:QU,defaultWidth:"full"}),dateTime:St({formats:JU,defaultWidth:"full"})};function ub(e,t,i){var r="eeee p";return Zs(e,t,i)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var tV={lastWeek:ub,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:ub,other:"PP p"},iV=function(t,i,r,a){var f=tV[t];return typeof f=="function"?f(i,r,a):f},rV={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},nV={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},oV={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},aV={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},sV={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},lV={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},cV=function(t,i){var r=Number(t);switch(i==null?void 0:i.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},uV={ordinalNumber:cV,era:at({values:rV,defaultWidth:"wide"}),quarter:at({values:nV,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:oV,defaultWidth:"wide"}),day:at({values:aV,defaultWidth:"wide"}),dayPeriod:at({values:sV,defaultWidth:"wide",formattingValues:lV,defaultFormattingWidth:"wide"})},hV=/^(第\s*)?\d+(日|时|分|秒)?/i,dV=/\d+/i,pV={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},fV={any:[/^(前)/i,/^(公元)/i]},mV={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},gV={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},vV={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},yV={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},bV={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},xV={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},wV={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},_V={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},CV={ordinalNumber:Rr({matchPattern:hV,parsePattern:dV,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:pV,defaultMatchWidth:"wide",parsePatterns:fV,defaultParseWidth:"any"}),quarter:st({matchPatterns:mV,defaultMatchWidth:"wide",parsePatterns:gV,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:vV,defaultMatchWidth:"wide",parsePatterns:yV,defaultParseWidth:"any"}),day:st({matchPatterns:bV,defaultMatchWidth:"wide",parsePatterns:xV,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:wV,defaultMatchWidth:"any",parsePatterns:_V,defaultParseWidth:"any"})},SV={code:"zh-CN",formatDistance:ZU,formatLong:eV,formatRelative:iV,localize:uV,match:CV,options:{weekStartsOn:1,firstWeekContainsDate:4}},MV=Math.ceil,TV=Math.max;function PV(e,t,i,r){for(var a=-1,f=TV(MV((t-e)/(i||1)),0),A=Array(f);f--;)A[r?f:++a]=e,e+=i;return A}var kV=PV,EV=yl,AV=Lo,OV=Ju,LV=Or;function DV(e,t,i){if(!LV(i))return!1;var r=typeof t;return(r=="number"?AV(i)&&OV(t,i.length):r=="string"&&t in i)?EV(i[t],e):!1}var SC=DV,RV=/\s/;function NV(e){for(var t=e.length;t--&&RV.test(e.charAt(t)););return t}var IV=NV,jV=IV,BV=/^\s+/;function zV(e){return e&&e.slice(0,jV(e)+1).replace(BV,"")}var MC=zV,FV=MC,hb=Or,WV=ch,db=NaN,$V=/^[-+]0x[0-9a-f]+$/i,HV=/^0b[01]+$/i,UV=/^0o[0-7]+$/i,VV=parseInt;function GV(e){if(typeof e=="number")return e;if(WV(e))return db;if(hb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=hb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=FV(e);var i=HV.test(e);return i||UV.test(e)?VV(e.slice(2),i?2:8):$V.test(e)?db:+e}var Va=GV,YV=Va,pb=1/0,XV=17976931348623157e292;function qV(e){if(!e)return e===0?e:0;if(e=YV(e),e===pb||e===-pb){var t=e<0?-1:1;return t*XV}return e===e?e:0}var lg=qV,ZV=kV,KV=SC,Yd=lg;function QV(e){return function(t,i,r){return r&&typeof r!="number"&&KV(t,i,r)&&(i=r=void 0),t=Yd(t),i===void 0?(i=t,t=0):i=Yd(i),r=r===void 0?t<i?1:-1:Yd(r),ZV(t,i,r,e)}}var JV=QV,eG=JV,tG=eG(),iG=tG;const _c=Et(iG),cg=e=>{var t;switch((t=e==null?void 0:e.language)==null?void 0:t.split("-")[0]){case"de":return U$;case"fr":return ZH;case"es":return wH;case"it":return k6;case"ja":return n8;case"ko":return R8;case"nl":return c9;case"pt":return z9;case"ru":return yU;case"tr":return XU;case"zh":return SV;default:return Y4}};_c(4),_c(12),_c(7),_c(24);var qp={exports:{}},TC={exports:{}};(function(e){function t(i){return i&&i.__esModule?i:{default:i}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(TC);var Gt=TC.exports,Zp={exports:{}},Kp={exports:{}},PC={exports:{}};(function(e){function t(i){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(PC);var kC=PC.exports,Qp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r,a){if(a.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+a.length+" present")}e.exports=t.default})(Qp,Qp.exports);var Yi=Qp.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=i(kC),a=i(Yi);function f(A){return(0,a.default)(1,arguments),A instanceof Date||(0,r.default)(A)==="object"&&Object.prototype.toString.call(A)==="[object Date]"}e.exports=t.default})(Kp,Kp.exports);var rG=Kp.exports,Jp={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=i(kC),a=i(Yi);function f(A){(0,a.default)(1,arguments);var H=Object.prototype.toString.call(A);return A instanceof Date||(0,r.default)(A)==="object"&&H==="[object Date]"?new Date(A.getTime()):typeof A=="number"||H==="[object Number]"?new Date(A):((typeof A=="string"||H==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Jp,Jp.exports);var vn=Jp.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(rG),a=i(vn),f=i(Yi);function A(H){if((0,f.default)(1,arguments),!(0,r.default)(H)&&typeof H!="number")return!1;var q=(0,a.default)(H);return!isNaN(Number(q))}e.exports=t.default})(Zp,Zp.exports);var nG=Zp.exports,ef={exports:{}},tf={exports:{}},rf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(rf,rf.exports);var No=rf.exports;const oG=Et(No);(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(No),a=i(vn),f=i(Yi);function A(H,q){(0,f.default)(2,arguments);var J=(0,a.default)(H).getTime(),ne=(0,r.default)(q);return new Date(J+ne)}e.exports=t.default})(tf,tf.exports);var aG=tf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(aG),a=i(Yi),f=i(No);function A(H,q){(0,a.default)(2,arguments);var J=(0,f.default)(q);return(0,r.default)(H,-J)}e.exports=t.default})(ef,ef.exports);var sG=ef.exports,nf={exports:{}},of={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(vn),a=i(Yi),f=864e5;function A(H){(0,a.default)(1,arguments);var q=(0,r.default)(H),J=q.getTime();q.setUTCMonth(0,1),q.setUTCHours(0,0,0,0);var ne=q.getTime(),se=J-ne;return Math.floor(se/f)+1}e.exports=t.default})(of,of.exports);var lG=of.exports,af={exports:{}},sf={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=i(vn),a=i(Yi);function f(A){(0,a.default)(1,arguments);var H=1,q=(0,r.default)(A),J=q.getUTCDay(),ne=(J<H?7:0)+J-H;return q.setUTCDate(q.getUTCDate()-ne),q.setUTCHours(0,0,0,0),q}e.exports=t.default})(sf,sf.exports);var ug=sf.exports,lf={exports:{}},cf={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(vn),a=i(Yi),f=i(ug);function A(H){(0,a.default)(1,arguments);var q=(0,r.default)(H),J=q.getUTCFullYear(),ne=new Date(0);ne.setUTCFullYear(J+1,0,4),ne.setUTCHours(0,0,0,0);var se=(0,f.default)(ne),M=new Date(0);M.setUTCFullYear(J,0,4),M.setUTCHours(0,0,0,0);var te=(0,f.default)(M);return q.getTime()>=se.getTime()?J+1:q.getTime()>=te.getTime()?J:J-1}e.exports=t.default})(cf,cf.exports);var EC=cf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(EC),a=i(ug),f=i(Yi);function A(H){(0,f.default)(1,arguments);var q=(0,r.default)(H),J=new Date(0);J.setUTCFullYear(q,0,4),J.setUTCHours(0,0,0,0);var ne=(0,a.default)(J);return ne}e.exports=t.default})(lf,lf.exports);var cG=lf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=q;var r=i(vn),a=i(ug),f=i(cG),A=i(Yi),H=6048e5;function q(J){(0,A.default)(1,arguments);var ne=(0,r.default)(J),se=(0,a.default)(ne).getTime()-(0,f.default)(ne).getTime();return Math.round(se/H)+1}e.exports=t.default})(af,af.exports);var uG=af.exports,uf={exports:{}},hf={exports:{}},Io={};Object.defineProperty(Io,"__esModule",{value:!0});Io.getDefaultOptions=hG;Io.setDefaultOptions=dG;var AC={};function hG(){return AC}function dG(e){AC=e}(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=H;var r=i(vn),a=i(Yi),f=i(No),A=Io;function H(q,J){var ne,se,M,te,F,O,$,Y;(0,a.default)(1,arguments);var X=(0,A.getDefaultOptions)(),G=(0,f.default)((ne=(se=(M=(te=J==null?void 0:J.weekStartsOn)!==null&&te!==void 0?te:J==null||(F=J.locale)===null||F===void 0||(O=F.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&M!==void 0?M:X.weekStartsOn)!==null&&se!==void 0?se:($=X.locale)===null||$===void 0||(Y=$.options)===null||Y===void 0?void 0:Y.weekStartsOn)!==null&&ne!==void 0?ne:0);if(!(G>=0&&G<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var V=(0,r.default)(q),z=V.getUTCDay(),D=(z<G?7:0)+z-G;return V.setUTCDate(V.getUTCDate()-D),V.setUTCHours(0,0,0,0),V}e.exports=t.default})(hf,hf.exports);var hg=hf.exports,df={exports:{}},pf={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=q;var r=i(vn),a=i(Yi),f=i(hg),A=i(No),H=Io;function q(J,ne){var se,M,te,F,O,$,Y,X;(0,a.default)(1,arguments);var G=(0,r.default)(J),V=G.getUTCFullYear(),z=(0,H.getDefaultOptions)(),D=(0,A.default)((se=(M=(te=(F=ne==null?void 0:ne.firstWeekContainsDate)!==null&&F!==void 0?F:ne==null||(O=ne.locale)===null||O===void 0||($=O.options)===null||$===void 0?void 0:$.firstWeekContainsDate)!==null&&te!==void 0?te:z.firstWeekContainsDate)!==null&&M!==void 0?M:(Y=z.locale)===null||Y===void 0||(X=Y.options)===null||X===void 0?void 0:X.firstWeekContainsDate)!==null&&se!==void 0?se:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=new Date(0);R.setUTCFullYear(V+1,0,D),R.setUTCHours(0,0,0,0);var w=(0,f.default)(R,ne),T=new Date(0);T.setUTCFullYear(V,0,D),T.setUTCHours(0,0,0,0);var p=(0,f.default)(T,ne);return G.getTime()>=w.getTime()?V+1:G.getTime()>=p.getTime()?V:V-1}e.exports=t.default})(pf,pf.exports);var OC=pf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=q;var r=i(OC),a=i(Yi),f=i(hg),A=i(No),H=Io;function q(J,ne){var se,M,te,F,O,$,Y,X;(0,a.default)(1,arguments);var G=(0,H.getDefaultOptions)(),V=(0,A.default)((se=(M=(te=(F=ne==null?void 0:ne.firstWeekContainsDate)!==null&&F!==void 0?F:ne==null||(O=ne.locale)===null||O===void 0||($=O.options)===null||$===void 0?void 0:$.firstWeekContainsDate)!==null&&te!==void 0?te:G.firstWeekContainsDate)!==null&&M!==void 0?M:(Y=G.locale)===null||Y===void 0||(X=Y.options)===null||X===void 0?void 0:X.firstWeekContainsDate)!==null&&se!==void 0?se:1),z=(0,r.default)(J,ne),D=new Date(0);D.setUTCFullYear(z,0,V),D.setUTCHours(0,0,0,0);var R=(0,f.default)(D,ne);return R}e.exports=t.default})(df,df.exports);var pG=df.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=q;var r=i(vn),a=i(hg),f=i(pG),A=i(Yi),H=6048e5;function q(J,ne){(0,A.default)(1,arguments);var se=(0,r.default)(J),M=(0,a.default)(se,ne).getTime()-(0,f.default)(se,ne).getTime();return Math.round(M/H)+1}e.exports=t.default})(uf,uf.exports);var fG=uf.exports,ff={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r,a){for(var f=r<0?"-":"",A=Math.abs(r).toString();A.length<a;)A="0"+A;return f+A}e.exports=t.default})(ff,ff.exports);var LC=ff.exports,mf={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(LC),a={y:function(H,q){var J=H.getUTCFullYear(),ne=J>0?J:1-J;return(0,r.default)(q==="yy"?ne%100:ne,q.length)},M:function(H,q){var J=H.getUTCMonth();return q==="M"?String(J+1):(0,r.default)(J+1,2)},d:function(H,q){return(0,r.default)(H.getUTCDate(),q.length)},a:function(H,q){var J=H.getUTCHours()/12>=1?"pm":"am";switch(q){case"a":case"aa":return J.toUpperCase();case"aaa":return J;case"aaaaa":return J[0];case"aaaa":default:return J==="am"?"a.m.":"p.m."}},h:function(H,q){return(0,r.default)(H.getUTCHours()%12||12,q.length)},H:function(H,q){return(0,r.default)(H.getUTCHours(),q.length)},m:function(H,q){return(0,r.default)(H.getUTCMinutes(),q.length)},s:function(H,q){return(0,r.default)(H.getUTCSeconds(),q.length)},S:function(H,q){var J=q.length,ne=H.getUTCMilliseconds(),se=Math.floor(ne*Math.pow(10,J-3));return(0,r.default)(se,q.length)}},f=a;t.default=f,e.exports=t.default})(mf,mf.exports);var mG=mf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(lG),a=i(uG),f=i(EC),A=i(fG),H=i(OC),q=i(LC),J=i(mG),ne={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},se={G:function(Y,X,G){var V=Y.getUTCFullYear()>0?1:0;switch(X){case"G":case"GG":case"GGG":return G.era(V,{width:"abbreviated"});case"GGGGG":return G.era(V,{width:"narrow"});case"GGGG":default:return G.era(V,{width:"wide"})}},y:function(Y,X,G){if(X==="yo"){var V=Y.getUTCFullYear(),z=V>0?V:1-V;return G.ordinalNumber(z,{unit:"year"})}return J.default.y(Y,X)},Y:function(Y,X,G,V){var z=(0,H.default)(Y,V),D=z>0?z:1-z;if(X==="YY"){var R=D%100;return(0,q.default)(R,2)}return X==="Yo"?G.ordinalNumber(D,{unit:"year"}):(0,q.default)(D,X.length)},R:function(Y,X){var G=(0,f.default)(Y);return(0,q.default)(G,X.length)},u:function(Y,X){var G=Y.getUTCFullYear();return(0,q.default)(G,X.length)},Q:function(Y,X,G){var V=Math.ceil((Y.getUTCMonth()+1)/3);switch(X){case"Q":return String(V);case"QQ":return(0,q.default)(V,2);case"Qo":return G.ordinalNumber(V,{unit:"quarter"});case"QQQ":return G.quarter(V,{width:"abbreviated",context:"formatting"});case"QQQQQ":return G.quarter(V,{width:"narrow",context:"formatting"});case"QQQQ":default:return G.quarter(V,{width:"wide",context:"formatting"})}},q:function(Y,X,G){var V=Math.ceil((Y.getUTCMonth()+1)/3);switch(X){case"q":return String(V);case"qq":return(0,q.default)(V,2);case"qo":return G.ordinalNumber(V,{unit:"quarter"});case"qqq":return G.quarter(V,{width:"abbreviated",context:"standalone"});case"qqqqq":return G.quarter(V,{width:"narrow",context:"standalone"});case"qqqq":default:return G.quarter(V,{width:"wide",context:"standalone"})}},M:function(Y,X,G){var V=Y.getUTCMonth();switch(X){case"M":case"MM":return J.default.M(Y,X);case"Mo":return G.ordinalNumber(V+1,{unit:"month"});case"MMM":return G.month(V,{width:"abbreviated",context:"formatting"});case"MMMMM":return G.month(V,{width:"narrow",context:"formatting"});case"MMMM":default:return G.month(V,{width:"wide",context:"formatting"})}},L:function(Y,X,G){var V=Y.getUTCMonth();switch(X){case"L":return String(V+1);case"LL":return(0,q.default)(V+1,2);case"Lo":return G.ordinalNumber(V+1,{unit:"month"});case"LLL":return G.month(V,{width:"abbreviated",context:"standalone"});case"LLLLL":return G.month(V,{width:"narrow",context:"standalone"});case"LLLL":default:return G.month(V,{width:"wide",context:"standalone"})}},w:function(Y,X,G,V){var z=(0,A.default)(Y,V);return X==="wo"?G.ordinalNumber(z,{unit:"week"}):(0,q.default)(z,X.length)},I:function(Y,X,G){var V=(0,a.default)(Y);return X==="Io"?G.ordinalNumber(V,{unit:"week"}):(0,q.default)(V,X.length)},d:function(Y,X,G){return X==="do"?G.ordinalNumber(Y.getUTCDate(),{unit:"date"}):J.default.d(Y,X)},D:function(Y,X,G){var V=(0,r.default)(Y);return X==="Do"?G.ordinalNumber(V,{unit:"dayOfYear"}):(0,q.default)(V,X.length)},E:function(Y,X,G){var V=Y.getUTCDay();switch(X){case"E":case"EE":case"EEE":return G.day(V,{width:"abbreviated",context:"formatting"});case"EEEEE":return G.day(V,{width:"narrow",context:"formatting"});case"EEEEEE":return G.day(V,{width:"short",context:"formatting"});case"EEEE":default:return G.day(V,{width:"wide",context:"formatting"})}},e:function(Y,X,G,V){var z=Y.getUTCDay(),D=(z-V.weekStartsOn+8)%7||7;switch(X){case"e":return String(D);case"ee":return(0,q.default)(D,2);case"eo":return G.ordinalNumber(D,{unit:"day"});case"eee":return G.day(z,{width:"abbreviated",context:"formatting"});case"eeeee":return G.day(z,{width:"narrow",context:"formatting"});case"eeeeee":return G.day(z,{width:"short",context:"formatting"});case"eeee":default:return G.day(z,{width:"wide",context:"formatting"})}},c:function(Y,X,G,V){var z=Y.getUTCDay(),D=(z-V.weekStartsOn+8)%7||7;switch(X){case"c":return String(D);case"cc":return(0,q.default)(D,X.length);case"co":return G.ordinalNumber(D,{unit:"day"});case"ccc":return G.day(z,{width:"abbreviated",context:"standalone"});case"ccccc":return G.day(z,{width:"narrow",context:"standalone"});case"cccccc":return G.day(z,{width:"short",context:"standalone"});case"cccc":default:return G.day(z,{width:"wide",context:"standalone"})}},i:function(Y,X,G){var V=Y.getUTCDay(),z=V===0?7:V;switch(X){case"i":return String(z);case"ii":return(0,q.default)(z,X.length);case"io":return G.ordinalNumber(z,{unit:"day"});case"iii":return G.day(V,{width:"abbreviated",context:"formatting"});case"iiiii":return G.day(V,{width:"narrow",context:"formatting"});case"iiiiii":return G.day(V,{width:"short",context:"formatting"});case"iiii":default:return G.day(V,{width:"wide",context:"formatting"})}},a:function(Y,X,G){var V=Y.getUTCHours(),z=V/12>=1?"pm":"am";switch(X){case"a":case"aa":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"});case"aaa":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return G.dayPeriod(z,{width:"narrow",context:"formatting"});case"aaaa":default:return G.dayPeriod(z,{width:"wide",context:"formatting"})}},b:function(Y,X,G){var V=Y.getUTCHours(),z;switch(V===12?z=ne.noon:V===0?z=ne.midnight:z=V/12>=1?"pm":"am",X){case"b":case"bb":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"});case"bbb":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return G.dayPeriod(z,{width:"narrow",context:"formatting"});case"bbbb":default:return G.dayPeriod(z,{width:"wide",context:"formatting"})}},B:function(Y,X,G){var V=Y.getUTCHours(),z;switch(V>=17?z=ne.evening:V>=12?z=ne.afternoon:V>=4?z=ne.morning:z=ne.night,X){case"B":case"BB":case"BBB":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"});case"BBBBB":return G.dayPeriod(z,{width:"narrow",context:"formatting"});case"BBBB":default:return G.dayPeriod(z,{width:"wide",context:"formatting"})}},h:function(Y,X,G){if(X==="ho"){var V=Y.getUTCHours()%12;return V===0&&(V=12),G.ordinalNumber(V,{unit:"hour"})}return J.default.h(Y,X)},H:function(Y,X,G){return X==="Ho"?G.ordinalNumber(Y.getUTCHours(),{unit:"hour"}):J.default.H(Y,X)},K:function(Y,X,G){var V=Y.getUTCHours()%12;return X==="Ko"?G.ordinalNumber(V,{unit:"hour"}):(0,q.default)(V,X.length)},k:function(Y,X,G){var V=Y.getUTCHours();return V===0&&(V=24),X==="ko"?G.ordinalNumber(V,{unit:"hour"}):(0,q.default)(V,X.length)},m:function(Y,X,G){return X==="mo"?G.ordinalNumber(Y.getUTCMinutes(),{unit:"minute"}):J.default.m(Y,X)},s:function(Y,X,G){return X==="so"?G.ordinalNumber(Y.getUTCSeconds(),{unit:"second"}):J.default.s(Y,X)},S:function(Y,X){return J.default.S(Y,X)},X:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTimezoneOffset();if(D===0)return"Z";switch(X){case"X":return te(D);case"XXXX":case"XX":return F(D);case"XXXXX":case"XXX":default:return F(D,":")}},x:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTimezoneOffset();switch(X){case"x":return te(D);case"xxxx":case"xx":return F(D);case"xxxxx":case"xxx":default:return F(D,":")}},O:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTimezoneOffset();switch(X){case"O":case"OO":case"OOO":return"GMT"+M(D,":");case"OOOO":default:return"GMT"+F(D,":")}},z:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTimezoneOffset();switch(X){case"z":case"zz":case"zzz":return"GMT"+M(D,":");case"zzzz":default:return"GMT"+F(D,":")}},t:function(Y,X,G,V){var z=V._originalDate||Y,D=Math.floor(z.getTime()/1e3);return(0,q.default)(D,X.length)},T:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTime();return(0,q.default)(D,X.length)}};function M($,Y){var X=$>0?"-":"+",G=Math.abs($),V=Math.floor(G/60),z=G%60;if(z===0)return X+String(V);var D=Y;return X+String(V)+D+(0,q.default)(z,2)}function te($,Y){if($%60===0){var X=$>0?"-":"+";return X+(0,q.default)(Math.abs($)/60,2)}return F($,Y)}function F($,Y){var X=Y||"",G=$>0?"-":"+",V=Math.abs($),z=(0,q.default)(Math.floor(V/60),2),D=(0,q.default)(V%60,2);return G+z+X+D}var O=se;t.default=O,e.exports=t.default})(nf,nf.exports);var gG=nf.exports,gf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(q,J){switch(q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},r=function(q,J){switch(q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},a=function(q,J){var ne=q.match(/(P+)(p+)?/)||[],se=ne[1],M=ne[2];if(!M)return i(q,J);var te;switch(se){case"P":te=J.dateTime({width:"short"});break;case"PP":te=J.dateTime({width:"medium"});break;case"PPP":te=J.dateTime({width:"long"});break;case"PPPP":default:te=J.dateTime({width:"full"});break}return te.replace("{{date}}",i(se,J)).replace("{{time}}",r(M,J))},f={p:r,P:a},A=f;t.default=A,e.exports=t.default})(gf,gf.exports);var vG=gf.exports,vf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}e.exports=t.default})(vf,vf.exports);var DC=vf.exports;const fb=Et(DC);var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.isProtectedDayOfYearToken=xG;Ml.isProtectedWeekYearToken=wG;Ml.throwProtectedError=_G;var yG=["D","DD"],bG=["YY","YYYY"];function xG(e){return yG.indexOf(e)!==-1}function wG(e){return bG.indexOf(e)!==-1}function _G(e,t,i){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var yf={exports:{}},bf={exports:{}},xf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(A,H,q){var J,ne=i[A];return typeof ne=="string"?J=ne:H===1?J=ne.one:J=ne.other.replace("{{count}}",H.toString()),q!=null&&q.addSuffix?q.comparison&&q.comparison>0?"in "+J:J+" ago":J},a=r;t.default=a,e.exports=t.default})(xf,xf.exports);var CG=xf.exports,wf={exports:{}},_f={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=a.width?String(a.width):r.defaultWidth,A=r.formats[f]||r.formats[r.defaultWidth];return A}}e.exports=t.default})(_f,_f.exports);var SG=_f.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(SG),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},f={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},A={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},H={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:f,defaultWidth:"full"}),dateTime:(0,r.default)({formats:A,defaultWidth:"full"})},q=H;t.default=q,e.exports=t.default})(wf,wf.exports);var MG=wf.exports,Cf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(A,H,q,J){return i[A]},a=r;t.default=a,e.exports=t.default})(Cf,Cf.exports);var TG=Cf.exports,Sf={exports:{}},Mf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){return function(a,f){var A=f!=null&&f.context?String(f.context):"standalone",H;if(A==="formatting"&&r.formattingValues){var q=r.defaultFormattingWidth||r.defaultWidth,J=f!=null&&f.width?String(f.width):q;H=r.formattingValues[J]||r.formattingValues[q]}else{var ne=r.defaultWidth,se=f!=null&&f.width?String(f.width):r.defaultWidth;H=r.values[se]||r.values[ne]}var M=r.argumentCallback?r.argumentCallback(a):a;return H[M]}}e.exports=t.default})(Mf,Mf.exports);var PG=Mf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(PG),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},f={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},A={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},H={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},q={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},J={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ne=function(F,O){var $=Number(F),Y=$%100;if(Y>20||Y<10)switch(Y%10){case 1:return $+"st";case 2:return $+"nd";case 3:return $+"rd"}return $+"th"},se={ordinalNumber:ne,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:f,defaultWidth:"wide",argumentCallback:function(F){return F-1}}),month:(0,r.default)({values:A,defaultWidth:"wide"}),day:(0,r.default)({values:H,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:q,defaultWidth:"wide",formattingValues:J,defaultFormattingWidth:"wide"})},M=se;t.default=M,e.exports=t.default})(Sf,Sf.exports);var kG=Sf.exports,Tf={exports:{}},Pf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(f){return function(A){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=H.width,J=q&&f.matchPatterns[q]||f.matchPatterns[f.defaultMatchWidth],ne=A.match(J);if(!ne)return null;var se=ne[0],M=q&&f.parsePatterns[q]||f.parsePatterns[f.defaultParseWidth],te=Array.isArray(M)?a(M,function($){return $.test(se)}):r(M,function($){return $.test(se)}),F;F=f.valueCallback?f.valueCallback(te):te,F=H.valueCallback?H.valueCallback(F):F;var O=A.slice(se.length);return{value:F,rest:O}}}function r(f,A){for(var H in f)if(f.hasOwnProperty(H)&&A(f[H]))return H}function a(f,A){for(var H=0;H<f.length;H++)if(A(f[H]))return H}e.exports=t.default})(Pf,Pf.exports);var EG=Pf.exports,kf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){return function(a){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=a.match(r.matchPattern);if(!A)return null;var H=A[0],q=a.match(r.parsePattern);if(!q)return null;var J=r.valueCallback?r.valueCallback(q[0]):q[0];J=f.valueCallback?f.valueCallback(J):J;var ne=a.slice(H.length);return{value:J,rest:ne}}}e.exports=t.default})(kf,kf.exports);var AG=kf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(EG),a=i(AG),f=/^(\d+)(th|st|nd|rd)?/i,A=/\d+/i,H={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},q={any:[/^b/i,/^(a|c)/i]},J={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ne={any:[/1/i,/2/i,/3/i,/4/i]},se={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},M={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},te={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},F={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},O={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Y={ordinalNumber:(0,a.default)({matchPattern:f,parsePattern:A,valueCallback:function(V){return parseInt(V,10)}}),era:(0,r.default)({matchPatterns:H,defaultMatchWidth:"wide",parsePatterns:q,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:J,defaultMatchWidth:"wide",parsePatterns:ne,defaultParseWidth:"any",valueCallback:function(V){return V+1}}),month:(0,r.default)({matchPatterns:se,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:te,defaultMatchWidth:"wide",parsePatterns:F,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:O,defaultMatchWidth:"any",parsePatterns:$,defaultParseWidth:"any"})},X=Y;t.default=X,e.exports=t.default})(Tf,Tf.exports);var OG=Tf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(CG),a=i(MG),f=i(TG),A=i(kG),H=i(OG),q={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:f.default,localize:A.default,match:H.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},J=q;t.default=J,e.exports=t.default})(bf,bf.exports);var LG=bf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(LG),a=r.default;t.default=a,e.exports=t.default})(yf,yf.exports);var DG=yf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=G;var r=i(nG),a=i(sG),f=i(vn),A=i(gG),H=i(vG),q=i(DC),J=Ml,ne=i(No),se=i(Yi),M=Io,te=i(DG),F=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$=/^'([^]*?)'?$/,Y=/''/g,X=/[a-zA-Z]/;function G(z,D,R){var w,T,p,c,d,_,y,C,I,j,E,b,x,u,m,n,s,l;(0,se.default)(2,arguments);var o=String(D),v=(0,M.getDefaultOptions)(),g=(w=(T=R==null?void 0:R.locale)!==null&&T!==void 0?T:v.locale)!==null&&w!==void 0?w:te.default,h=(0,ne.default)((p=(c=(d=(_=R==null?void 0:R.firstWeekContainsDate)!==null&&_!==void 0?_:R==null||(y=R.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&d!==void 0?d:v.firstWeekContainsDate)!==null&&c!==void 0?c:(I=v.locale)===null||I===void 0||(j=I.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&p!==void 0?p:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=(0,ne.default)((E=(b=(x=(u=R==null?void 0:R.weekStartsOn)!==null&&u!==void 0?u:R==null||(m=R.locale)===null||m===void 0||(n=m.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&x!==void 0?x:v.weekStartsOn)!==null&&b!==void 0?b:(s=v.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&E!==void 0?E:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!g.localize)throw new RangeError("locale must contain localize property");if(!g.formatLong)throw new RangeError("locale must contain formatLong property");var B=(0,f.default)(z);if(!(0,r.default)(B))throw new RangeError("Invalid time value");var U=(0,q.default)(B),S=(0,a.default)(B,U),N={firstWeekContainsDate:h,weekStartsOn:P,locale:g,_originalDate:B},W=o.match(O).map(function(ee){var ie=ee[0];if(ie==="p"||ie==="P"){var Z=H.default[ie];return Z(ee,g.formatLong)}return ee}).join("").match(F).map(function(ee){if(ee==="''")return"'";var ie=ee[0];if(ie==="'")return V(ee);var Z=A.default[ie];if(Z)return!(R!=null&&R.useAdditionalWeekYearTokens)&&(0,J.isProtectedWeekYearToken)(ee)&&(0,J.throwProtectedError)(ee,D,String(z)),!(R!=null&&R.useAdditionalDayOfYearTokens)&&(0,J.isProtectedDayOfYearToken)(ee)&&(0,J.throwProtectedError)(ee,D,String(z)),Z(S,ee,g.localize,N);if(ie.match(X))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return ee}).join("");return W}function V(z){var D=z.match($);return D?D[1].replace(Y,"'"):z}e.exports=t.default})(qp,qp.exports);var RG=qp.exports;const NG=Et(RG);function mb(e,t,i){var r=BG(e,i.timeZone,i.locale);return r.formatToParts?IG(r,t):jG(r,t)}function IG(e,t){for(var i=e.formatToParts(t),r=i.length-1;r>=0;--r)if(i[r].type==="timeZoneName")return i[r].value}function jG(e,t){var i=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(i);return r?r[0].substr(1):""}function BG(e,t,i){if(i&&!i.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(i?[i.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function zG(e,t){var i=HG(t);return i.formatToParts?WG(i,e):$G(i,e)}var FG={year:0,month:1,day:2,hour:3,minute:4,second:5};function WG(e,t){try{for(var i=e.formatToParts(t),r=[],a=0;a<i.length;a++){var f=FG[i[a].type];f>=0&&(r[f]=parseInt(i[a].value,10))}return r}catch(A){if(A instanceof RangeError)return[NaN];throw A}}function $G(e,t){var i=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Xd={};function HG(e){if(!Xd[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),i=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Xd[e]=i?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Xd[e]}function RC(e,t,i,r,a,f,A){var H=new Date(0);return H.setUTCFullYear(e,t,i),H.setUTCHours(r,a,f,A),H}var gb=36e5,UG=6e4,qd={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function dg(e,t,i){var r,a;if(!e||(r=qd.timezoneZ.exec(e),r))return 0;var f;if(r=qd.timezoneHH.exec(e),r)return f=parseInt(r[1],10),vb(f)?-(f*gb):NaN;if(r=qd.timezoneHHMM.exec(e),r){f=parseInt(r[2],10);var A=parseInt(r[3],10);return vb(f,A)?(a=Math.abs(f)*gb+A*UG,r[1]==="+"?-a:a):NaN}if(YG(e)){t=new Date(t||Date.now());var H=i?t:VG(t),q=Ef(H,e),J=i?q:GG(t,q,e);return-J}return NaN}function VG(e){return RC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Ef(e,t){var i=zG(e,t),r=RC(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime(),a=e.getTime(),f=a%1e3;return a-=f>=0?f:1e3+f,r-a}function GG(e,t,i){var r=e.getTime(),a=r-t,f=Ef(new Date(a),i);if(t===f)return t;a-=f-t;var A=Ef(new Date(a),i);return f===A?f:Math.max(f,A)}function vb(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var yb={};function YG(e){if(yb[e])return!0;try{return yb[e]=!0,!0}catch(t){return!1}}var XG=60*1e3,qG={X:function(e,t,i,r){var a=Zd(r.timeZone,e);if(a===0)return"Z";switch(t){case"X":return bb(a);case"XXXX":case"XX":return aa(a);case"XXXXX":case"XXX":default:return aa(a,":")}},x:function(e,t,i,r){var a=Zd(r.timeZone,e);switch(t){case"x":return bb(a);case"xxxx":case"xx":return aa(a);case"xxxxx":case"xxx":default:return aa(a,":")}},O:function(e,t,i,r){var a=Zd(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+ZG(a,":");case"OOOO":default:return"GMT"+aa(a,":")}},z:function(e,t,i,r){switch(t){case"z":case"zz":case"zzz":return mb("short",e,r);case"zzzz":default:return mb("long",e,r)}}};function Zd(e,t){var i=e?dg(e,t,!0)/XG:t.getTimezoneOffset();if(Number.isNaN(i))throw new RangeError("Invalid time zone specified: "+e);return i}function bu(e,t){for(var i=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return i+r}function aa(e,t){var i=t||"",r=e>0?"-":"+",a=Math.abs(e),f=bu(Math.floor(a/60),2),A=bu(Math.floor(a%60),2);return r+f+i+A}function bb(e,t){if(e%60===0){var i=e>0?"-":"+";return i+bu(Math.abs(e)/60,2)}return aa(e,t)}function ZG(e,t){var i=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),f=r%60;if(f===0)return i+String(a);var A=t;return i+String(a)+A+bu(f,2)}var KG=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Kd=36e5,xb=6e4,QG=2,$i={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:KG};function NC(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var i=t||{},r=i.additionalDigits==null?QG:oG(i.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=JG(e),f=e7(a.date,r),A=f.year,H=f.restDateString,q=t7(H,A);if(isNaN(q))return new Date(NaN);if(q){var J=q.getTime(),ne=0,se;if(a.time&&(ne=i7(a.time),isNaN(ne)))return new Date(NaN);if(a.timeZone||i.timeZone){if(se=dg(a.timeZone||i.timeZone,new Date(J+ne)),isNaN(se))return new Date(NaN)}else se=fb(new Date(J+ne)),se=fb(new Date(J+ne+se));return new Date(J+ne+se)}else return new Date(NaN)}function JG(e){var t={},i=$i.dateTimePattern.exec(e),r;if(i?(t.date=i[1],r=i[3]):(i=$i.datePattern.exec(e),i?(t.date=i[1],r=i[2]):(t.date=null,r=e)),r){var a=$i.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function e7(e,t){var i=$i.YYY[t],r=$i.YYYYY[t],a;if(a=$i.YYYY.exec(e)||r.exec(e),a){var f=a[1];return{year:parseInt(f,10),restDateString:e.slice(f.length)}}if(a=$i.YY.exec(e)||i.exec(e),a){var A=a[1];return{year:parseInt(A,10)*100,restDateString:e.slice(A.length)}}return{year:null}}function t7(e,t){if(t===null)return null;var i,r,a,f;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(i=$i.MM.exec(e),i)return r=new Date(0),a=parseInt(i[1],10)-1,_b(t,a)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(i=$i.DDD.exec(e),i){r=new Date(0);var A=parseInt(i[1],10);return o7(t,A)?(r.setUTCFullYear(t,0,A),r):new Date(NaN)}if(i=$i.MMDD.exec(e),i){r=new Date(0),a=parseInt(i[1],10)-1;var H=parseInt(i[2],10);return _b(t,a,H)?(r.setUTCFullYear(t,a,H),r):new Date(NaN)}if(i=$i.Www.exec(e),i)return f=parseInt(i[1],10)-1,Cb(t,f)?wb(t,f):new Date(NaN);if(i=$i.WwwD.exec(e),i){f=parseInt(i[1],10)-1;var q=parseInt(i[2],10)-1;return Cb(t,f,q)?wb(t,f,q):new Date(NaN)}return null}function i7(e){var t,i,r;if(t=$i.HH.exec(e),t)return i=parseFloat(t[1].replace(",",".")),Qd(i)?i%24*Kd:NaN;if(t=$i.HHMM.exec(e),t)return i=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Qd(i,r)?i%24*Kd+r*xb:NaN;if(t=$i.HHMMSS.exec(e),t){i=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return Qd(i,r,a)?i%24*Kd+r*xb+a*1e3:NaN}return null}function wb(e,t,i){t=t||0,i=i||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,f=t*7+i+1-a;return r.setUTCDate(r.getUTCDate()+f),r}var r7=[31,28,31,30,31,30,31,31,30,31,30,31],n7=[31,29,31,30,31,30,31,31,30,31,30,31];function IC(e){return e%400===0||e%4===0&&e%100!==0}function _b(e,t,i){if(t<0||t>11)return!1;if(i!=null){if(i<1)return!1;var r=IC(e);if(r&&i>n7[t]||!r&&i>r7[t])return!1}return!0}function o7(e,t){if(t<1)return!1;var i=IC(e);return!(i&&t>366||!i&&t>365)}function Cb(e,t,i){return!(t<0||t>52||i!=null&&(i<0||i>6))}function Qd(e,t,i){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||i!=null&&(i<0||i>=60))}var a7=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function jC(e,t,i){var r=String(t),a=i||{},f=r.match(a7);if(f){var A=NC(a.originalDate||e,a);r=f.reduce(function(H,q){if(q[0]==="'")return H;var J=H.indexOf(q),ne=H[J-1]==="'",se=H.replace(q,"'"+qG[q[0]](A,q,null,a)+"'");return ne?se.substring(0,J-1)+se.substring(J+1):se},r)}return NG(e,r,a)}function Gn(e,t,i){const r=new RegExp("'[^']+'|("+t+")","g");return e.replace(r,function(f,A){return A?i(f):f})}const s7=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],l7=Object.freeze({fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"}),Sb=Object.freeze({"en-US":l7});function c7(e,t){var a;if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let i=e,r=Sb[(a=t.code)!=null?a:""];return r||(r=Sb["en-US"]),s7.forEach(f=>{const A=r[f];i=Gn(i,f,function(){return A})}),i}var Af={exports:{}},Of={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(r[f]=a[f]);return r}e.exports=t.default})(Of,Of.exports);var u7=Of.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(u7);function a(f){return(0,r.default)({},f)}e.exports=t.default})(Af,Af.exports);var h7=Af.exports;const d7=Et(h7);function p7(e,t,i){var r=NC(e,i),a=dg(t,r,!0),f=new Date(r.getTime()-a),A=new Date(0);return A.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),A.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),A}function Ks(e,t,i,r){var a=d7(r);return a.timeZone=t,a.originalDate=e,jC(p7(e,t),i,a)}function f7(e){return e.includes("sss")?Gn(e,"sss",function(){return"SSS"}):e}function m7(e,t,i){if(!(e.includes("a")||e.includes("A")))return e;let r=Gn(e,"a",function(){return`\0${Ks(t,i,"a").toLowerCase()}\0`});return r=Gn(r,"A",function(){return`\0${Ks(t,i,"a").toUpperCase()}\0`}),r=r.replace(/\0\0/g,""),r=r.replace(/\0/g,"'"),r}function g7(e,t,i,r){return e.includes("Z")?Gn(e,"Z",function(){return Ks(t,i,"xx",{locale:r})}):e}function v7(e,t,i){return BC(e,t,i)?CC(e,1):e}function y7(e,t){return t<=e.getMonth()}function BC(e,t,i){const r=![C7,pg].includes(t);return i>FC&&r&&y7(e,i)}function b7(e,t,i,r){return!r&&BC(e,t,i)?bC(e,1):e}function x7(e,t){if(t>0){const i=(e.getMonth()+t)%12;return f$(e,i)}return e}function w7(e,t,i,r,a,f){if(!e.includes("y"))return e;const A=b7(t,r,f,a);let H=e;if(["yyyy","yy","y","yp","yyyp"].includes(e)&&(i="Etc/GMT-14"),e.includes("yp")){const J=CC(A,1);H=Gn(e,"yp|yyyp",function(se){const M="y".repeat(se.length);return Ks(J,i,M)})}return Gn(H,"yyyy|yy|y",function(ne){return Ks(A,i,ne)})}function _7(e,t,i,r){if(!e.includes("Q"))return e;let a=t.getMonth();r&&[pg,S7,M7,zC].includes(i)&&(a-=r>a?r-12:r);const f=parseInt(String(a/3))+1;return Gn(e,"QQ|Q",function(q){return`${q.length===2?"'Quarter '":"'Q'"}${f}`})}const C7="years",pg="quarters",S7="months",M7="weeks",zC="days",FC=0,T7=1,fg=Object.freeze({weekFirstDay:T7,isFiscalOn:!1,fiscalMonth:FC,selectedDateLevel:zC,timeZone:"UTC"});function mg(e,t,i=cg(),r=fg){return e.getFullYear()<100&&(e=m$(e,1900+e.getFullYear())),r.isFiscalOn||(e=v7(e,r.selectedDateLevel,r.fiscalMonth)),t=c7(t,i),t=f7(t),t=m7(t,e,r.timeZone),t=g7(t,e,r.timeZone,i),t=w7(t,e,r.timeZone,r.selectedDateLevel,r.isFiscalOn,r.fiscalMonth),!r.isFiscalOn&&r.selectedDateLevel===pg&&(e=x7(e,r.fiscalMonth)),t=_7(t,e,r.selectedDateLevel,r.fiscalMonth),jC(e,t,{locale:i,weekStartsOn:r.weekFirstDay})}const P7={chart:{backgroundColor:"#FFFFFF",textColor:"#000000",secondaryTextColor:"#E4E4E4",panelBackgroundColor:"#F6F6F6"},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#ffffff",brandColor:"#ffcb05",primaryButtonTextColor:"#3a4356",primaryButtonHoverColor:"#f2b900"},aiChat:{backgroundColor:"rgba(244, 244, 248, 1)",primaryTextColor:"rgba(38, 46, 61, 0.8)",secondaryTextColor:"rgba(38, 46, 61, 0.55)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},systemMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},input:{backgroundColor:"rgba(255, 255, 255, 1)",focus:{outlineColor:"rgba(38, 46, 61, 0.5)"}},header:{textColor:"rgba(38, 46, 61, 0.8)",backgroundColor:"rgba(255, 255, 255, 1)"},dropup:{backgroundColor:"rgba(255, 255, 255, 1)",boxShadow:"0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1)",borderRadius:"4px",headers:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}},items:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}}},border:"1px solid #c6c9ce",borderRadius:"30px",suggestions:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"},loadingGradient:["rgba(194, 196, 203, 1)","rgba(236, 236, 239, 1)"],gap:"8px"},clickableMessages:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"}},dataTopics:{backgroundColor:"rgba(255, 255, 255, 1)",items:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)"}},icons:{color:"rgba(38, 46, 61, 0.67)",feedbackIcons:{hoverColor:"rgba(12, 14, 18, 0.07)"}},tooltips:{backgroundColor:"rgba(255, 255, 255, 1)",textColor:"rgba(38, 46, 61, 0.8)",boxShadow:"0px 4px 12px 0px rgba(9, 9, 10, 0.20), 0px 1px 4px 0px rgba(9, 9, 10, 0.10)"}}},k7={chart:{backgroundColor:"#313138",textColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",panelBackgroundColor:"#313138"},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#16161C",brandColor:"#FFCB05",primaryButtonTextColor:"#3A4356",primaryButtonHoverColor:"#F2B900"},aiChat:{backgroundColor:"rgba(23, 28, 38, 1)",primaryTextColor:"rgba(242, 247, 255, 0.9)",secondaryTextColor:"rgba(242, 247, 255, 0.4)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(31, 92, 153, 1)"},systemMessages:{backgroundColor:"rgba(46, 55, 77, 1)"},input:{backgroundColor:"rgba(242, 247, 255, 0.1)",focus:{outlineColor:"rgba(242, 247, 255, 0.5)"}},header:{backgroundColor:"#313138",textColor:"rgba(242, 247, 255, 0.9)"},dropup:{backgroundColor:"rgba(38, 46, 64, 1)",boxShadow:"0px 1px 4px 0px #020203, 0px 2px 12px 2px rgba(2, 2, 3, 0.25)",borderRadius:"8px",headers:{textColor:"rgba(242, 247, 255, 0.6)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}},items:{textColor:"rgba(242, 247, 255, 0.9)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}}},border:!1,borderRadius:"30px",suggestions:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"},loadingGradient:["rgba(242, 247, 255, 0.1)","rgba(242, 247, 255, 0.3)"],gap:"8px"},clickableMessages:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"}},dataTopics:{backgroundColor:"rgba(23, 28, 38, 1)",items:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)"}},icons:{color:"rgba(242, 247, 255, 0.5)",feedbackIcons:{hoverColor:"rgba(242, 247, 255, 0.1)"}},tooltips:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)",boxShadow:"0px 1px 8px 0px #020203, 0px 4px 24px 4px rgba(2, 2, 3, 0.25)"}}},Mh=(e=!1)=>lr(e?k7:P7);function WC(e,t){const i={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,panelBackgroundColor:e.dashboards.panelBackgroundColor},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor}};return hi.withOptions({mergeArrays:!1},Mh(),i)}function $C(e){return e.dashboards.colorPaletteName}class di extends Xu{constructor(t,i){super(Aw,{key:t,interpolationOptions:i},QE.t)}}function HC(e,t){return Fr(this,null,function*(){const i=yield E7(e,t);if(!i)throw new di("errors.themeNotFound",{themeOid:e});const r=$C(i),a=yield UC(r,t);return WC(i,a)})}function E7(e,t){return Fr(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new di("errors.themeNotFound",{themeOid:e})})})}function UC(e,t){return Fr(this,null,function*(){const i=yield t.get(`api/palettes/${e}`);if(i&&"status"in i&&i.status==="error")throw new di("errors.paletteNotFound",{paletteName:e});return i})}function A7(e){return"value"in e}function O7(e){return"valuePromise"in e}const L7=(e,t)=>{const i=new Map;return{withCache:f=>(...A)=>Fr(exports,null,function*(){const H=e(...A);if(i.has(H)){const q=i.get(H);if(A7(q))return q.value;if(O7(q))return q.valuePromise;throw new Error("Unexpected cache value")}else{const q=f(...A);return i.set(H,{valuePromise:q,createdAt:new Date}),q.then(J=>(i.set(H,{value:J,createdAt:new Date}),t!=null&&t.cacheMaxSize&&i.size>t.cacheMaxSize&&D7(i),J))}}),clearCache:f=>{if(f){i.delete(f);return}i.clear()}}};function D7(e){const t=Array.from(e.keys()),i=t.reduce((r,a)=>{const f=e.get(a),A=e.get(r);return f.createdAt<A.createdAt?a:r},t[0]);e.delete(i)}const gg=(e,t)=>{const{dataSource:i,dimensions:r=[],measures:a=[],filters:f=[],filterRelations:A,highlights:H=[],count:q,offset:J,ungroup:ne}=e;f&&f.forEach(M=>M.isScope=!0),H&&H.forEach(M=>M.isScope=!0);const se=i||t;if(!se)throw new di("errors.executeQueryNoDataSource");return{dataSource:se,attributes:r,measures:a,filters:f,filterRelations:A,highlights:H,count:q,offset:J,ungroup:ne}};function Tl(e,t,i){const r=gg(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeQuery(r,i).resultPromise.catch(a=>{throw a.message.includes("SecondsLevelIsNotSupportedException")?new di("errors.secondsDateTimeLevelSupportedOnlyForLive"):a})}const R7=(e,t,i)=>{const r=gg(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeCsvQuery(r,i).resultPromise},N7=(e,t,i)=>{const{dataSource:r,rows:a=[],columns:f=[],values:A=[],grandTotals:H={},filters:q=[],filterRelations:J,highlights:ne=[],count:se,offset:M}=e;q&&q.forEach(F=>F.isScope=!0),ne&&ne.forEach(F=>F.isScope=!0);const te=r||(t==null?void 0:t.defaultDataSource);if(!te)throw new di("errors.executeQueryNoDataSource");return t.queryClient.executePivotQuery({dataSource:te,rowsAttributes:a,columnsAttributes:f,measures:A,grandTotals:H,filters:q,filterRelations:J,highlights:ne,count:se,offset:M},i).resultPromise},I7=e=>JSON.stringify(ze(Ae({},iC(e,!1)),{queryGuid:""})),VC=(e,t)=>{const i=gg(e,t==null?void 0:t.defaultDataSource);return I7(i)},j7=250,{withCache:B7,clearCache:z7}=L7(VC,{cacheMaxSize:j7}),vg=B7(Tl),F7=z7;function $n(e){const t="column"in e?e.column:e;return"context"in t||"aggregation"in t?!0:!("type"in t)}const kn=e=>"aggregation"in e||"context"in e||"formula"in e,Ln=e=>!kn(e);function W7(){}var yg=W7,$7=Vm,H7=yg;function xu(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}xu.prototype=$7(H7.prototype);xu.prototype.constructor=xu;var bg=xu,Mb=Na,U7=ml,V7=Ri,Tb=Mb?Mb.isConcatSpreadable:void 0;function G7(e){return V7(e)||U7(e)||!!(Tb&&e&&e[Tb])}var Y7=G7,X7=Lm,q7=Y7;function GC(e,t,i,r,a){var f=-1,A=e.length;for(i||(i=q7),a||(a=[]);++f<A;){var H=e[f];t>0&&i(H)?t>1?GC(H,t-1,i,r,a):X7(a,H):r||(a[a.length]=H)}return a}var YC=GC,Z7=YC;function K7(e){var t=e==null?0:e.length;return t?Z7(e,1):[]}var Q7=K7;function J7(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}var XC=J7,eY=XC,Pb=Math.max;function tY(e,t,i){return t=Pb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,f=Pb(r.length-t,0),A=Array(f);++a<f;)A[a]=r[t+a];a=-1;for(var H=Array(t+1);++a<t;)H[a]=r[a];return H[t]=i(A),eY(e,this,H)}}var qC=tY;function iY(e){return function(){return e}}var rY=iY,nY=rY,kb=Bw,oY=hh,aY=kb?function(e,t){return kb(e,"toString",{configurable:!0,enumerable:!1,value:nY(t),writable:!0})}:oY,sY=aY,lY=800,cY=16,uY=Date.now;function hY(e){var t=0,i=0;return function(){var r=uY(),a=cY-(r-i);if(i=r,a>0){if(++t>=lY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dY=hY,pY=sY,fY=dY,mY=fY(pY),ZC=mY,gY=Q7,vY=qC,yY=ZC;function bY(e){return yY(vY(e,void 0,gY),e+"")}var xg=bY,Eb=Qw,xY=Eb&&new Eb,wY=xY;function _Y(){}var KC=_Y,Ab=wY,CY=KC,SY=Ab?function(e){return Ab.get(e)}:CY,QC=SY,MY={},TY=MY,Ob=TY,PY=Object.prototype,kY=PY.hasOwnProperty;function EY(e){for(var t=e.name+"",i=Ob[t],r=kY.call(Ob,t)?i.length:0;r--;){var a=i[r],f=a.func;if(f==null||f==e)return a.name}return t}var JC=EY,AY=Vm,OY=yg,LY=4294967295;function wu(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=LY,this.__views__=[]}wu.prototype=AY(OY.prototype);wu.prototype.constructor=wu;var wg=wu,DY=wg,RY=bg,NY=$m;function IY(e){if(e instanceof DY)return e.clone();var t=new RY(e.__wrapped__,e.__chain__);return t.__actions__=NY(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jY=IY,BY=wg,Lb=bg,zY=yg,FY=Ri,WY=Lr,$Y=jY,HY=Object.prototype,UY=HY.hasOwnProperty;function _u(e){if(WY(e)&&!FY(e)&&!(e instanceof BY)){if(e instanceof Lb)return e;if(UY.call(e,"__wrapped__"))return $Y(e)}return new Lb(e)}_u.prototype=zY.prototype;_u.prototype.constructor=_u;var VY=_u,GY=wg,YY=QC,XY=JC,qY=VY;function ZY(e){var t=XY(e),i=qY[t];if(typeof i!="function"||!(t in GY.prototype))return!1;if(e===i)return!0;var r=YY(i);return!!r&&e===r[0]}var KY=ZY,Db=bg,QY=xg,JY=QC,Jd=JC,eX=Ri,Rb=KY,tX="Expected a function",iX=8,rX=32,nX=128,oX=256;function aX(e){return QY(function(t){var i=t.length,r=i,a=Db.prototype.thru;for(e&&t.reverse();r--;){var f=t[r];if(typeof f!="function")throw new TypeError(tX);if(a&&!A&&Jd(f)=="wrapper")var A=new Db([],!0)}for(r=A?r:i;++r<i;){f=t[r];var H=Jd(f),q=H=="wrapper"?JY(f):void 0;q&&Rb(q[0])&&q[1]==(nX|iX|rX|oX)&&!q[4].length&&q[9]==1?A=A[Jd(q[0])].apply(A,q[3]):A=f.length==1&&Rb(f)?A[H]():A.thru(f)}return function(){var J=arguments,ne=J[0];if(A&&J.length==1&&eX(ne))return A.plant(ne).value();for(var se=0,M=i?t[se].apply(this,J):ne;++se<i;)M=t[se].call(this,M);return M}})}var sX=aX,lX=sX,cX=lX(),uX=cX;const hX=Et(uX),Nb="composesdk",Th=(e,t,i,r=!1)=>{const a=Object.assign({action:e,cat:Nb,eventType:"product",direct:!0},t);return r?(console.debug("DEBUG: event payload to send",a),Promise.resolve()):i.post("api/activities/",[a],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(f=>{console.error(`unable to log action=${e}, category=${Nb}`,f)})},dX=(e,t)=>{const{packageName:i,packageVersion:r,component:a,error:f}=e;let A="";return typeof f=="string"?A=f:f instanceof Error&&(A=f.message||f.toString()),Th("sdkError",{packageName:i,packageVersion:r,component:a,error:A},t)},pX=(e,t)=>dX(Object.assign(Object.assign({},e),{packageName:"sdk-ui"}),t),_g=Be.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"}}),Pi=()=>Be.useContext(_g),fX="sdkComponentInit",eS=Be.createContext(!1),mX=({skipNested:e=!0,children:t})=>Oe.jsx(eS.Provider,{value:e,children:t}),gX=(e,t)=>{const{app:i,tracking:r}=Pi(),a=Be.useContext(eS),f=Be.useRef(!1);Be.useEffect(()=>{if(!(i!=null&&i.httpClient))return;if(!f.current&&!a){const H={packageName:r.packageName,packageVersion:"1.15.0",componentName:e,attributesUsed:Object.entries(t).filter(([,q])=>!!q).map(([q])=>q).join(", ")};Th(fX,H,i.httpClient,!r.enabled).finally(()=>f.current=!0)}},[e,t,i,r,a])};var vX=Jn,yX=Lr,bX="[object Boolean]";function xX(e){return e===!0||e===!1||yX(e)&&vX(e)==bX}var wX=xX;const tS=Et(wX);class iS extends Be.Component{constructor(i){super(i);Tt(this,"componentName");Tt(this,"context");Tt(this,"httpClient");Tt(this,"postponedErrors",[]);this.componentName=i.componentName}componentDidMount(){var i;this.context.isInitialized&&(this.httpClient=(i=this.context.app)==null?void 0:i.httpClient)}componentDidCatch(i){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(i,this.httpClient):this.postponedErrors.push(i)),i}sendErrorTracking(i,r){pX({packageVersion:"1.15.0",component:this.componentName,error:i},r).catch(a=>console.log("Failed to send tracking error event: ",a))}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(i=>this.sendErrorTracking(i,this.httpClient)),this.postponedErrors=[],this.props.children}}Tt(iS,"contextType",_g);const _X=({componentName:e,config:t})=>{const{skip:i,transparent:r}=t||{};return a=>function(A){return tS(i)&&i||fu(i)&&i(A)?Oe.jsx(a,Ae({},A)):(gX(e,A),Oe.jsx(mX,{skipNested:!r,children:Oe.jsx(iS,{componentName:e,children:Oe.jsx(a,Ae({},A))})}))}},CX="_container_1wquj_1",SX="_card_1wquj_11",MX="_text_1wquj_19",ep={container:CX,card:SX,text:MX};function rS({color:e="#FFCB05"}){return Oe.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:Oe.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Oe.jsxs("g",{children:[Oe.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),Oe.jsx("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const Cg=Be.createContext({themeSettings:Mh()}),dr=()=>Be.useContext(Cg),TX=({error:e=new di("errors.componentRenderError")})=>{var M,te,F,O,$,Y;const{themeSettings:t}=dr(),{app:i}=Pi(),{t:r}=qu(),[a,f]=Be.useState(!1),A=()=>{f(!0)},H=()=>{f(!1)},q=Oe.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:Oe.jsx(rS,{color:(M=t==null?void 0:t.general)==null?void 0:M.brandColor})}),J=e instanceof Xu?r(e.key,Ae({},e.interpolationOptions)):r(e instanceof Error?e.message:e),ne=r("errorBoxText",{errorMessage:J,interpolation:{escapeValue:!1}}),se=(F=(te=i==null?void 0:i.settings)==null?void 0:te.errorBoundaryConfig)==null?void 0:F.alwaysShowErrorText;return Oe.jsx("div",{onMouseEnter:se?void 0:A,onMouseLeave:se?void 0:H,className:ep.container,"aria-label":"error-box",children:Oe.jsxs("div",{className:ep.card,style:{backgroundColor:((O=t==null?void 0:t.general)==null?void 0:O.backgroundColor)||"rgba(255,255,255,0.5)"},children:[q,(se||a)&&Oe.jsx("div",{className:ep.text,style:{color:(($=t==null?void 0:t.typography)==null?void 0:$.primaryTextColor)||"#5b6372",fontFamily:((Y=t==null?void 0:t.typography)==null?void 0:Y.fontFamily)||"inherit"},children:ne})]})})};class nS extends Be.Component{constructor(i){var r;super(i);Tt(this,"showErrorBox",!0);Tt(this,"context");this.showErrorBox=(r=i.showErrorBox)!=null?r:!0,this.state={error:null}}static getDerivedStateFromError(i){return{error:i}}componentDidCatch(i){this.setState({error:i})}componentDidUpdate(i,r){r.error!==null&&PX(i.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const i=this.state.error||this.props.error;return i?this.showErrorBox?Oe.jsx(TX,{error:i}):Oe.jsx("div",{}):this.props.children}}function PX(e=[],t=[]){return e.length!==t.length||e.some((i,r)=>!Object.is(i,t[r]))}const kX=()=>e=>function(i){return Oe.jsx(nS,{resetKeys:Object.values(i),children:Oe.jsx(e,Ae({},i))})},EX=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>i=>function(a){if(AX(e,a))return Oe.jsx(i,Ae({},a));const{app:f,isInitialized:A}=Pi();if(!A){const H=t||"errors.noSisenseContext";throw new di(H)}return f?Oe.jsx(i,Ae({},a)):Oe.jsx(OX,{})};function AX(e,t){return tS(e)&&e||fu(e)&&e(t)}function OX(){return null}function LX(){const[e,t]=Be.useState(null);return Be.useEffect(()=>{Ow().initPromise.then(i=>t(i))},[]),e}const oS=({children:e,userLanguage:t})=>{const i=LX();return Be.useEffect(()=>{t&&(i==null?void 0:i.language)!==t&&(i==null||i.changeLanguage(t))},[i,t]),i&&Oe.jsx(XE,{i18n:i,children:e})},DX=()=>e=>function(i){const{isInitialized:r}=Pi();return r?Oe.jsx(e,Ae({},i)):Oe.jsx(oS,{children:Oe.jsx(e,Ae({},i))})},RX=e=>t=>(t.displayName=e,t),jo=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:i,trackingConfig:r={},customContextErrorMessageKey:a}=e;return f=>hX(RX(t),EX({shouldSkipSisenseContextWaiting:i,customContextErrorMessageKey:a}),_X({componentName:t,config:r}),kX(),DX())(f)},_a=(e,t)=>{const i=!e||e==="";let r,a,f;return ti(t)?(r=parseFloat(e),a=isNaN(r)):Tr(t)?(r=Sh(e).valueOf(),a=isNaN(r)):(r=e,f=e==null?void 0:e.toLowerCase(),a=!1),Ae({value:r,valueUndefined:i,valueIsNaN:a},f&&{lowercaseValue:f})};function Ib(e,t){const i=AA(e)?e:{displayValue:e==null?void 0:e.toString()};return i.compareValue||(i.compareValue=_a(i.displayValue,t)),i}var aS=(e=>(e[e.ASC=1]="ASC",e[e.DESC=-1]="DESC",e[e.NONE=0]="NONE",e))(aS||{});function sS(e,t,i=1,r="string"){const a=Ib(e,r),f=Ib(t,r),A=a.compareValue,H=f.compareValue;if(A.valueUndefined&&H.valueUndefined)return 0;if(A.valueUndefined)return 1;if(H.valueUndefined)return-1;if(A.valueIsNaN&&H.valueIsNaN)return 0;if(A.valueIsNaN)return 1;if(H.valueIsNaN)return-1;const q=A.lowercaseValue,J=H.lowercaseValue;if(q!==void 0&&J!==void 0){if(q<J)return-1*i;if(q>J)return 1*i}return A.value<H.value?-1*i:A.value>H.value?1*i:0}class lS{constructor(t){Tt(this,"columns",[]);this.columns=t}compare(t,i){for(let r=0;r<this.columns.length;r++){const a=this.columns[r],f=t[a.index],A=i[a.index],H=a.direction||1,q=sS(f,A,H,a.type);if(q!==0)return q}return 0}}const cS=e=>e instanceof Object&&"data"in e,NX=e=>e.rows.length===0,ma="$rownum",uS=e=>{let t=0;const i=e.rows.map(a=>{const f=e.columns.map((A,H)=>{var se;const q=a[H];if(cS(q)){let M=q.data.toString();if(Tr(A.type)){const te="1111-11-11T";M.startsWith(te)&&(M=M.replace(te,"1970-01-01T"))}return Ae(Ae({rawValue:q.data,displayValue:(se=q.text)!=null?se:M,compareValue:_a(M,A.type)},q.blur?{blur:q.blur}:{}),q.color?{color:q.color}:{})}let J,ne;return Tr(A.type)&&(J=_a(`${q}`,A.type),ne=new Date(J.value).toISOString()),{rawValue:ne!=null?ne:q,displayValue:`${q!=null?q:""}`,compareValue:J}});return t++,f.push({displayValue:`${t}`,rawValue:t}),f}),r=e.columns.map((a,f)=>({name:a.name,type:a.type,index:f,direction:0}));return r.push({name:ma,type:"number",index:r.length,direction:0}),{columns:r,rows:i}},hS=["polar"],dS=["line","area","bar","column",...hS],pS=["pie","funnel","treemap","sunburst"],fS=["scatter"],IX=["table"],jX=["indicator"],mS=["boxplot"],BX=["areamap"],zX=["scattermap"],gS=["arearange"],to=e=>dS.find(t=>t===e)!==void 0,Ga=e=>pS.find(t=>t===e)!==void 0,Ya=e=>fS.find(t=>t===e)!==void 0,Xa=e=>zX.find(t=>t===e)!==void 0,Pl=e=>jX.find(t=>t===e)!==void 0,vS=e=>hS.find(t=>t===e)!==void 0,FX=e=>IX.find(t=>t===e)!==void 0,qa=e=>mS.find(t=>t===e)!==void 0,Za=e=>BX.find(t=>t===e)!==void 0,Ph=e=>gS.find(t=>t===e)!==void 0;class jb{constructor(t){Tt(this,"data");Tt(this,"sum");Tt(this,"max");Tt(this,"min");Tt(this,"avg");Tt(this,"variance");Tt(this,"stddev");this.data=t}getStat(t){switch(t){case"sum":return this.getSum();case"max":return this.getMax();case"min":return this.getMin();case"count":return this.getCount();case"countdistinct":return this.getCountDistinct();case"avg":case"mean":case"average":return this.getAverage();case"var":case"variance":return this.getVariance();case"stddev":return this.getStdDev()}return NaN}getSum(){if(this.data.length===0)return NaN;if(this.sum!=null)return this.sum;this.sum=0;for(const t of this.data)this.sum+=t;return this.sum}getMax(){if(this.data.length===0)return NaN;if(this.max)return this.max;if(this.data.length<=0)return NaN;this.max=this.data[0];for(const t of this.data)t>this.max&&(this.max=t);return this.max}getMin(){if(this.data.length===0)return NaN;if(this.min)return this.min;if(this.data.length<=0)return NaN;this.min=this.data[0];for(const t of this.data)t<this.min&&(this.min=t);return this.min}getMean(){return this.getAverage()}getAverage(){return this.data.length===0?NaN:this.avg?this.avg:(this.avg=this.getSum()/this.data.length,this.avg)}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((t,i,r)=>r.indexOf(t)===i).length}getVariance(){if(this.variance===void 0)if(this.data.length===0)this.variance=NaN;else if(this.data.length===1)this.variance=0;else{const t=this.getMean();this.variance=this.data.reduce((i,r)=>i.concat(Qe(r-t,2)),[]).reduce((i,r)=>i+r,0)/(this.data.length-1)}return this.variance}getStdDev(){return this.data.length===0?NaN:this.stddev!=null?this.stddev:(this.stddev=Math.sqrt(this.getVariance()),this.stddev)}}class WX{constructor(t){Tt(this,"data");Tt(this,"countDistinct");this.data=t}getStat(t){switch(t){case"count":return this.getCount();case"countdistinct":return this.getCountDistinct()}return NaN}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((t,i,r)=>r.indexOf(t)===i).length}}const yS=(e,t)=>e.slice(0).sort((i,r)=>t.compare(i,r)),Sg=(e,t)=>{if(!(e&&e.length>0))return[];const i=new lS(t),r=yS(e,i);let a=[];const f=[];let A=r[0];for(const H of Array.from(r))i.compare(H,A)!==0&&(f.push(a),a=[]),a.push(H),A=H;return f.push(a),f},$X=(e,t)=>{var r,a;const i=[];for(const f of t){let A;const H=f.column,{aggFunc:q}=f,J=e.filter(M=>!!M[H.index]&&M[H.index].displayValue!==""),ne=(a=(r=J.find(M=>{var te;return M!==void 0&&((te=M==null?void 0:M[H.index])==null?void 0:te.color)}))==null?void 0:r[H.index])==null?void 0:a.color,se=J.some(M=>M[H.index].blur);if(Tr(H.type)){const M=J.map(te=>Sh(te[H.index].displayValue).valueOf());A=new jb(M).getStat(q)}else if(ti(H.type)){const M=J.map(te=>parseFloat(te[H.index].displayValue));A=new jb(M).getStat(q)}else{const M=J.map(te=>te[H.index].displayValue);A=new WX(M).getStat(q)}i.push(Ae(Ae({displayValue:`${A}`},ne&&{color:ne}),se&&{blur:se}))}return i},Mg=(e,t)=>{if(Eh(e))return{columns:[],rows:[]};const i=new lS(t);return{columns:e.columns,rows:yS(e.rows,i)}},bS=(e,t,i)=>{if(Eh(e))return{rows:[],columns:[]};const r={name:"n/a",type:"n/a",index:-1,direction:0},a=i.map(J=>({aggFunc:J.agg,aggName:J.title,column:ci(e,J.column)||r})).filter(J=>J.column.index!==-1),f=Sg(e.rows,t),A=a.map(J=>J.aggName),H=[];for(const J of f){const ne=kl(J[0],t),se=$X(J,a),M=ne.slice(0).concat(se);H.push(M)}const q=t.slice(0).concat(A.map(J=>({name:J,type:"number",index:0,direction:0})));return{rows:H,columns:q.map((J,ne)=>ze(Ae({},J),{index:ne}))}},ci=(e,t)=>e.columns.find(i=>i.name===t),Mo=(e,t)=>{const i={name:"foo",type:"string",index:-1,direction:0};return t.map(r=>ci(e,r)||i).filter(r=>r!==i)},xS=(e,t)=>{const i=e.rows.map(a=>t.map(f=>a[f.index]));return{columns:t.map((a,f)=>ze(Ae({},a),{index:f})),rows:i}},Li=(e,t)=>{if(!(e&&t.index<e.length))return;const i=e[t.index];return i.compareValue||(i.compareValue=_a(i.displayValue,t.type)),i.compareValue.value},kh=(e,t)=>{var i;return!!((i=e[t.index])!=null&&i.blur)},kl=(e,t)=>{const i=[];for(const r of t)i.push(e[r.index]);return i},HX=(e,t)=>kl(e,t).map(i=>i.rawValue||i.displayValue).join(","),Tg=(e,t)=>{if(!(e&&e.length>0))return{};const i=Sg(e,t),r={};for(const a of i){const f=HX(a[0],t);r[f]=a}return r},Eh=e=>!(e.rows&&e.columns&&e.rows.length>0&&e.columns.length>0),wS=({x:e,y:t,breakBy:i})=>CS(t)&&_S(e)&&i.length===0,UX=({x:e,y:t,breakBy:i})=>_S(e)&&CS(t)&&i.length>0,_S=e=>e.length===0,CS=e=>e.length>0,VX=(e,t)=>e*(t/100),GX=(e,t)=>e===0?0:Math.abs(t)/Math.abs(e)*100,Jc=e=>`${e}%`;var Bb;(function(e){e.event="event",e.props="prop"})(Bb||(Bb={}));function YX(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function XX(e,t,i){var r=YX(i),a=e.search(/[1-9]/);return a=a===-1?e.length:a,e.substring(0,a)+e.substring(a,e.length).replace(r,"$1"+t)}function qX(e,t){t===void 0&&(t=!0);var i=e[0]==="-",r=i&&t;e=e.replace("-","");var a=e.split("."),f=a[0],A=a[1]||"";return{beforeDecimal:f,afterDecimal:A,hasNegation:i,addNegation:r}}function ZX(e,t,i){for(var r="",a=i?"0":"",f=0;f<=t-1;f++)r+=e[f]||a;return r}function KX(e,t){var i=t.decimalScale,r=t.fixedDecimalScale,a=t.prefix;a===void 0&&(a="");var f=t.suffix;f===void 0&&(f="");var A=t.allowNegative,H=t.thousandsGroupStyle;if(H===void 0&&(H="thousand"),e===""||e==="-")return e;var q=QX(t),J=q.thousandSeparator,ne=q.decimalSeparator,se=i!==0&&e.indexOf(".")!==-1||i&&r,M=qX(e,A),te=M.beforeDecimal,F=M.afterDecimal,O=M.addNegation;return i!==void 0&&(F=ZX(F,i,!!r)),J&&(te=XX(te,J,H)),a&&(te=a+te),f&&(F=F+f),O&&(te="-"+te),e=te+(se&&ne||"")+F,e}function QX(e){var t=e.decimalSeparator;t===void 0&&(t=".");var i=e.thousandSeparator,r=e.allowedDecimalSeparators;return i===!0&&(i=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:i,allowedDecimalSeparators:r}}var JX=lg;function eq(e){var t=JX(e),i=t%1;return t===t?i?t-i:t:0}var tq=eq,iq=Ar,rq=tq,nq=Va,zb=jm,oq=iq.isFinite,aq=Math.min;function sq(e){var t=Math[e];return function(i,r){if(i=nq(i),r=r==null?0:aq(rq(r),292),r&&oq(i)){var a=(zb(i)+"e").split("e"),f=t(a[0]+"e"+(+a[1]+r));return a=(zb(f)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(i)}}var lq=sq,cq=lq,uq=cq("round"),hq=uq;const dq=Et(hq),Lf=1e3,Df=Lf*1e3,Rf=Df*1e3,Fb=Rf*1e3,SS=1000.1.toLocaleString().replace(/\d/g,""),pq=SS[0],fq=SS[1],mq={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},Vt=e=>Ae(Ae({},mq),e||{}),gq=(e,t)=>isNaN(t)?"":`<span>${Ca(e,t)}</span>`,vq=(e,t)=>Math.sign(e)*dq(Math.abs(e),t),Ca=(e,t)=>{const i=e.decimalScale!==0&&e.decimalScale!=="auto",r=e.decimalScale==="auto"?2:e.decimalScale;let a=!0;e.name==="Numbers"&&!e.thousandSeparator&&(a=void 0);let f,A,H=t;return e.name==="Percent"&&(A="%",H=t*100),(e.name==="Numbers"||e.name==="Currency")&&(e.trillion&&Math.abs(t)/Fb>=1?(H=t/Fb,A="T"):e.billion&&Math.abs(t)/Rf>=1?(H=t/Rf,A="B"):e.million&&Math.abs(t)/Df>=1?(H=t/Df,A="M"):e.kilo&&Math.abs(t)/Lf>=1&&(H=t/Lf,A="K")),e.name==="Currency"&&(e.prefix?f=e.symbol:A?A=`${A}${e.symbol}`:A=e.symbol),KX(`${vq(H,r)}`,{displayType:"text",thousandSeparator:a?pq:void 0,fixedDecimalScale:i,decimalScale:r,decimalSeparator:fq,prefix:f,suffix:A})},ii=(e,t)=>{let i=gq(e,t);return i=i.replace("<span>",""),i=i.replace("</span>",""),i},Qs="#dcdcdc",To="#CCCCCC",Yn="#FFFFFF",yq=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],Pg=e=>({type:"uniform",color:e});function bq(e){return()=>e.color}const MS=e=>{if(e!==void 0)return typeof e=="string"?Pg(e).color:e.type==="uniform"?e.color:Qs};function xq(e){var i;const t=((i=e.conditions)!=null?i:[]).map(r=>({match:wq(r),color:r.color}));return r=>{const a=t.find(f=>f.match(r));return a?a.color:e.defaultColor}}function wq(e){const t=Number(e.expression);switch(e.operator){case"<":return i=>i<t;case">":return i=>i>t;case"≤":case"<=":return i=>i<=t;case"≥":case">=":return i=>i>=t;case"=":return i=>i==t;case"≠":case"!=":return i=>i!=t;default:return()=>!0}}function Si(e,t){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(A=>[A]));let r=t[0].length,a=t[0].map((A,H)=>t.map(q=>q[H])),f=e.map(A=>a.map(H=>{let q=0;if(!Array.isArray(A)){for(let J of H)q+=A*J;return q}for(let J=0;J<A.length;J++)q+=A[J]*(H[J]||0);return q}));return i===1&&(f=f[0]),r===1?f.map(A=>A[0]):f}function El(e){return Hn(e)==="string"}function Hn(e){return(Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Cu(e,t){e=+e,t=+t;let i=(Math.floor(e)+"").length;if(t>i)return+e.toFixed(t-i);{let r=Qe(10,i-t);return Math.round(e/r)*r}}function TS(e){if(!e)return;e=e.trim();const t=/^([a-z]+)\((.+?)\)$/i,i=/^-?[\d.]+$/;let r=e.match(t);if(r){let a=[];return r[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(f,A)=>{/%$/.test(A)?(A=new Number(A.slice(0,-1)/100),A.type="<percentage>"):/deg$/.test(A)?(A=new Number(+A.slice(0,-3)),A.type="<angle>",A.unit="deg"):i.test(A)&&(A=new Number(A),A.type="<number>"),f.startsWith("/")&&(A=A instanceof Number?A:new Number(A),A.alpha=!0),a.push(A)}),{name:r[1].toLowerCase(),rawName:r[1],rawArgs:r[2],args:a}}}function PS(e){return e[e.length-1]}function Su(e,t,i){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*i}function kS(e,t,i){return(i-e)/(t-e)}function kg(e,t,i){return Su(t[0],t[1],kS(e[0],e[1],i))}function ES(e){return e.map(t=>t.split("|").map(i=>{i=i.trim();let r=i.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(r){let a=new String(r[1]);return a.range=[+r[2],+r[3]],a}return i}))}var _q=Object.freeze({__proto__:null,interpolate:Su,interpolateInv:kS,isString:El,last:PS,mapRange:kg,multiplyMatrices:Si,parseCoordGrammar:ES,parseFunction:TS,toPrecision:Cu,type:Hn});class Cq{add(t,i,r){if(typeof arguments[0]!="string"){for(var t in arguments[0])this.add(t,arguments[0][t],arguments[1]);return}(Array.isArray(t)?t:[t]).forEach(function(a){this[a]=this[a]||[],i&&this[a][r?"unshift":"push"](i)},this)}run(t,i){this[t]=this[t]||[],this[t].forEach(function(r){r.call(i&&i.context?i.context:i,i)})}}const Xn=new Cq;var dn={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const Hr={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function Nf(e){return Array.isArray(e)?e:Hr[e]}function Mu(e,t,i,r={}){if(e=Nf(e),t=Nf(t),!e||!t)throw new TypeError(`Missing white point to convert ${e?"":"from"}${!e&&!t?"/":""}${t?"":"to"}`);if(e===t)return i;let a={W1:e,W2:t,XYZ:i,options:r};if(Xn.run("chromatic-adaptation-start",a),a.M||(a.W1===Hr.D65&&a.W2===Hr.D50?a.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:a.W1===Hr.D50&&a.W2===Hr.D65&&(a.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),Xn.run("chromatic-adaptation-end",a),a.M)return Si(a.M,a.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const Sq=75e-6,tr=class tr{constructor(t){var a,f,A,H,q,J,ne;this.id=t.id,this.name=t.name,this.base=t.base?tr.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);let i=(a=t.coords)!=null?a:this.base.coords;for(let se in i)"name"in i[se]||(i[se].name=se);this.coords=i;let r=(A=(f=t.white)!=null?f:this.base.white)!=null?A:"D65";this.white=Nf(r),this.formats=(H=t.formats)!=null?H:{};for(let se in this.formats){let M=this.formats[se];M.type||(M.type="function"),M.name||(M.name=se)}t.cssId&&!((q=this.formats.functions)!=null&&q.color)?(this.formats.color={id:t.cssId},Object.defineProperty(this,"cssId",{value:t.cssId})):(J=this.formats)!=null&&J.color&&!((ne=this.formats)!=null&&ne.color.id)&&(this.formats.color.id=this.id),this.referred=t.referred,Object.defineProperty(this,"path",{value:Mq(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),Xn.run("colorspace-init-end",this)}inGamut(t,{epsilon:i=Sq}={}){if(this.isPolar)return t=this.toBase(t),this.base.inGamut(t,{epsilon:i});let r=Object.values(this.coords);return t.every((a,f)=>{let A=r[f];if(A.type!=="angle"&&A.range){if(Number.isNaN(a))return!0;let[H,q]=A.range;return(H===void 0||a>=H-i)&&(q===void 0||a<=q+i)}return!0})}get cssId(){var t,i;return((i=(t=this.formats.functions)==null?void 0:t.color)==null?void 0:i.id)||this.id}get isPolar(){for(let t in this.coords)if(this.coords[t].type==="angle")return!0;return!1}getFormat(t){if(typeof t=="object")return t=Wb(t,this),t;let i;return t==="default"?i=Object.values(this.formats)[0]:i=this.formats[t],i?(i=Wb(i,this),i):null}equals(t){return t?this===t||this.id===t.id:!1}to(t,i){if(arguments.length===1&&([t,i]=[t.space,t.coords]),t=tr.get(t),this.equals(t))return i;i=i.map(H=>Number.isNaN(H)?0:H);let r=this.path,a=t.path,f,A;for(let H=0;H<r.length&&r[H].equals(a[H]);H++)f=r[H],A=H;if(!f)throw new Error(`Cannot convert between color spaces ${this} and ${t}: no connection space was found`);for(let H=r.length-1;H>A;H--)i=r[H].toBase(i);for(let H=A+1;H<a.length;H++)i=a[H].fromBase(i);return i}from(t,i){return arguments.length===1&&([t,i]=[t.space,t.coords]),t=tr.get(t),t.to(this,i)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var i;let t=[];for(let r in this.coords){let a=this.coords[r],f=a.range||a.refRange;t.push((i=f==null?void 0:f.min)!=null?i:0)}return t}static get all(){return[...new Set(Object.values(tr.registry))]}static register(t,i){if(arguments.length===1&&(i=arguments[0],t=i.id),i=this.get(i),this.registry[t]&&this.registry[t]!==i)throw new Error(`Duplicate color space registration: '${t}'`);if(this.registry[t]=i,arguments.length===1&&i.aliases)for(let r of i.aliases)this.register(r,i);return i}static get(t,...i){if(!t||t instanceof tr)return t;if(Hn(t)==="string"){let a=tr.registry[t.toLowerCase()];if(!a)throw new TypeError(`No color space found with id = "${t}"`);return a}if(i.length)return tr.get(...i);throw new TypeError(`${t} is not a valid color space`)}static resolveCoord(t,i){var q;let r=Hn(t),a,f;if(r==="string"?t.includes(".")?[a,f]=t.split("."):[a,f]=[,t]:Array.isArray(t)?[a,f]=t:(a=t.space,f=t.coordId),a=tr.get(a),a||(a=i),!a)throw new TypeError(`Cannot resolve coordinate reference ${t}: No color space specified and relative references are not allowed here`);if(r=Hn(f),r==="number"||r==="string"&&f>=0){let J=Object.entries(a.coords)[f];if(J)return Ae({space:a,id:J[0],index:f},J[1])}a=tr.get(a);let A=f.toLowerCase(),H=0;for(let J in a.coords){let ne=a.coords[J];if(J.toLowerCase()===A||((q=ne.name)==null?void 0:q.toLowerCase())===A)return Ae({space:a,id:J,index:H},ne);H++}throw new TypeError(`No "${f}" coordinate found in ${a.name}. Its coordinates are: ${Object.keys(a.coords).join(", ")}`)}};Tt(tr,"registry",{}),Tt(tr,"DEFAULT_FORMAT",{type:"functions",name:"color"});let ft=tr;function Mq(e){let t=[e];for(let i=e;i=i.base;)t.push(i);return t}function Wb(e,{coords:t}={}){if(e.coords&&!e.coordGrammar){e.type||(e.type="function"),e.name||(e.name="color"),e.coordGrammar=ES(e.coords);let i=Object.entries(t).map(([r,a],f)=>{let A=e.coordGrammar[f][0],H=a.range||a.refRange,q=A.range,J="";return A=="<percentage>"?(q=[0,100],J="%"):A=="<angle>"&&(J="deg"),{fromRange:H,toRange:q,suffix:J}});e.serializeCoords=(r,a)=>r.map((f,A)=>{let{fromRange:H,toRange:q,suffix:J}=i[A];return H&&q&&(f=kg(H,q,f)),f=Cu(f,a),J&&(f+=J),f})}return e}var Cr=new ft({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class Ji extends ft{constructor(t){var i,r,a;t.coords||(t.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),t.base||(t.base=Cr),t.toXYZ_M&&t.fromXYZ_M&&((i=t.toBase)!=null||(t.toBase=f=>{let A=Si(t.toXYZ_M,f);return this.white!==this.base.white&&(A=Mu(this.white,this.base.white,A)),A}),(r=t.fromBase)!=null||(t.fromBase=f=>(f=Mu(this.base.white,this.white,f),Si(t.fromXYZ_M,f)))),(a=t.referred)!=null||(t.referred="display"),super(t)}}function AS(e,{meta:t}={}){var r,a,f,A,H,q;let i={str:(r=String(e))==null?void 0:r.trim()};if(Xn.run("parse-start",i),i.color)return i.color;if(i.parsed=TS(i.str),i.parsed){let J=i.parsed.name;if(J==="color"){let ne=i.parsed.args.shift(),se=i.parsed.rawArgs.indexOf("/")>0?i.parsed.args.pop():1;for(let te of ft.all){let F=te.getFormat("color");if(F&&(ne===F.id||(a=F.ids)!=null&&a.includes(ne))){const O=Object.keys(te.coords).map(($,Y)=>i.parsed.args[Y]||0);return t&&(t.formatId="color"),{spaceId:te.id,coords:O,alpha:se}}}let M="";if(ne in ft.registry){let te=(H=(A=(f=ft.registry[ne].formats)==null?void 0:f.functions)==null?void 0:A.color)==null?void 0:H.id;te&&(M=`Did you mean color(${te})?`)}throw new TypeError(`Cannot parse color(${ne}). `+(M||"Missing a plugin?"))}else for(let ne of ft.all){let se=ne.getFormat(J);if(se&&se.type==="function"){let M=1;(se.lastAlpha||PS(i.parsed.args).alpha)&&(M=i.parsed.args.pop());let te=i.parsed.args,F;return se.coordGrammar&&(F=Object.entries(ne.coords).map(([O,$],Y)=>{var R;let X=se.coordGrammar[Y],G=(R=te[Y])==null?void 0:R.type,V=X.find(w=>w==G);if(!V){let w=$.name||O;throw new TypeError(`${G} not allowed for ${w} in ${J}()`)}let z=V.range;G==="<percentage>"&&(z||(z=[0,1]));let D=$.range||$.refRange;return z&&D&&(te[Y]=kg(z,D,te[Y])),V})),t&&Object.assign(t,{formatId:se.name,types:F}),{spaceId:ne.id,coords:te,alpha:M}}}}else for(let J of ft.all)for(let ne in J.formats){let se=J.formats[ne];if(se.type!=="custom"||se.test&&!se.test(i.str))continue;let M=se.parse(i.str);if(M)return(q=M.alpha)!=null||(M.alpha=1),t&&(t.formatId=ne),M}throw new TypeError(`Could not parse ${e} as a color. Missing a plugin?`)}function Bt(e){if(!e)throw new TypeError("Empty color reference");El(e)&&(e=AS(e));let t=e.space||e.spaceId;return t instanceof ft||(e.space=ft.get(t)),e.alpha===void 0&&(e.alpha=1),e}function Al(e,t){return t=ft.get(t),t.from(e)}function Sr(e,t){let{space:i,index:r}=ft.resolveCoord(t,e.space);return Al(e,i)[r]}function OS(e,t,i){return t=ft.get(t),e.coords=t.to(e.space,i),e}function qn(e,t,i){if(e=Bt(e),arguments.length===2&&Hn(arguments[1])==="object"){let r=arguments[1];for(let a in r)qn(e,a,r[a])}else{typeof i=="function"&&(i=i(Sr(e,t)));let{space:r,index:a}=ft.resolveCoord(t,e.space),f=Al(e,r);f[a]=i,OS(e,r,f)}return e}var Eg=new ft({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Cr,fromBase:e=>Mu(Cr.white,"D50",e),toBase:e=>Mu("D50",Cr.white,e),formats:{color:{}}});const Tq=216/24389,$b=24/116,Cc=24389/27;let tp=Hr.D50;var or=new ft({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:tp,base:Eg,fromBase(e){let i=e.map((r,a)=>r/tp[a]).map(r=>r>Tq?Math.cbrt(r):(Cc*r+16)/116);return[116*i[1]-16,500*(i[0]-i[1]),200*(i[1]-i[2])]},toBase(e){let t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[t[0]>$b?Math.pow(t[0],3):(116*t[0]-16)/Cc,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/Cc,t[2]>$b?Math.pow(t[2],3):(116*t[2]-16)/Cc].map((r,a)=>r*tp[a])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Ah(e){return(e%360+360)%360}function Pq(e,t){if(e==="raw")return t;let[i,r]=t.map(Ah),a=r-i;return e==="increasing"?a<0&&(r+=360):e==="decreasing"?a>0&&(i+=360):e==="longer"?-180<a&&a<180&&(a>0?i+=360:r+=360):e==="shorter"&&(a>180?i+=360:a<-180&&(r+=360)),[i,r]}var Js=new ft({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:or,fromBase(e){let[t,i,r]=e,a;const f=.02;return Math.abs(i)<f&&Math.abs(r)<f?a=NaN:a=Math.atan2(r,i)*180/Math.PI,[t,Math.sqrt(Qe(i,2)+Qe(r,2)),Ah(a)]},toBase(e){let[t,i,r]=e;return i<0&&(i=0),isNaN(r)&&(r=0),[t,i*Math.cos(r*Math.PI/180),i*Math.sin(r*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const Hb=Qe(25,7),Tu=Math.PI,Ub=180/Tu,Ko=Tu/180;function If(e,t,{kL:i=1,kC:r=1,kH:a=1}={}){let[f,A,H]=or.from(e),q=Js.from(or,[f,A,H])[1],[J,ne,se]=or.from(t),M=Js.from(or,[J,ne,se])[1];q<0&&(q=0),M<0&&(M=0);let te=(q+M)/2,F=Qe(te,7),O=.5*(1-Math.sqrt(F/(F+Hb))),$=(1+O)*A,Y=(1+O)*ne,X=Math.sqrt(Qe($,2)+Qe(H,2)),G=Math.sqrt(Qe(Y,2)+Qe(se,2)),V=$===0&&H===0?0:Math.atan2(H,$),z=Y===0&&se===0?0:Math.atan2(se,Y);V<0&&(V+=2*Tu),z<0&&(z+=2*Tu),V*=Ub,z*=Ub;let D=J-f,R=G-X,w=z-V,T=V+z,p=Math.abs(w),c;X*G===0?c=0:p<=180?c=w:w>180?c=w-360:w<-180?c=w+360:console.log("the unthinkable has happened");let d=2*Math.sqrt(G*X)*Math.sin(c*Ko/2),_=(f+J)/2,y=(X+G)/2,C=Math.pow(y,7),I;X*G===0?I=T:p<=180?I=T/2:T<360?I=(T+360)/2:I=(T-360)/2;let j=Qe(_-50,2),E=1+.015*j/Math.sqrt(20+j),b=1+.045*y,x=1;x-=.17*Math.cos((I-30)*Ko),x+=.24*Math.cos(2*I*Ko),x+=.32*Math.cos((3*I+6)*Ko),x-=.2*Math.cos((4*I-63)*Ko);let u=1+.015*y*x,m=30*Math.exp(-1*Qe((I-275)/25,2)),n=2*Math.sqrt(C/(C+Hb)),s=-1*Math.sin(2*m*Ko)*n,l=Qe(D/(i*E),2);return l+=Qe(R/(r*b),2),l+=Qe(d/(a*u),2),l+=s*(R/(r*b))*(d/(a*u)),Math.sqrt(l)}const kq=75e-6;function zs(e,t=e.space,{epsilon:i=kq}={}){e=Bt(e),t=ft.get(t);let r=e.coords;return t!==e.space&&(r=t.from(e)),t.inGamut(r,{epsilon:i})}function el(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function Zn(e,{method:t=dn.gamut_mapping,space:i=e.space}={}){if(El(arguments[1])&&(i=arguments[1]),i=ft.get(i),zs(e,i,{epsilon:0}))return Bt(e);let r=_r(e,i);if(t!=="clip"&&!zs(e,i)){let a=Zn(el(r),{method:"clip",space:i});if(If(e,a)>2){let f=ft.resolveCoord(t),A=f.space,H=f.id,q=_r(r,A),ne=(f.range||f.refRange)[0],se=.01,M=ne,te=Sr(q,H);for(;te-M>se;){let F=el(q);F=Zn(F,{space:i,method:"clip"}),If(q,F)-2<se?M=Sr(q,H):te=Sr(q,H),qn(q,H,(M+te)/2)}r=_r(q,i)}else r=a}if(t==="clip"||!zs(r,i,{epsilon:0})){let a=Object.values(i.coords).map(f=>f.range||[]);r.coords=r.coords.map((f,A)=>{let[H,q]=a[A];return H!==void 0&&(f=Math.max(H,f)),q!==void 0&&(f=Math.min(f,q)),f})}return i!==e.space&&(r=_r(r,e.space)),e.coords=r.coords,e}Zn.returns="color";function _r(e,t,{inGamut:i}={}){e=Bt(e),t=ft.get(t);let r=t.from(e),a={space:t,coords:r,alpha:e.alpha};return i&&(a=Zn(a)),a}_r.returns="color";function Pu(e,f={}){var A=f,{precision:t=dn.precision,format:i="default",inGamut:r=!0}=A,a=mi(A,["precision","format","inGamut"]);var ne,se,M;let H;e=Bt(e);let q=i;i=(se=(ne=e.space.getFormat(i))!=null?ne:e.space.getFormat("default"))!=null?se:ft.DEFAULT_FORMAT,r||(r=i.toGamut);let J=e.coords;if(J=J.map(te=>te||0),r&&!zs(e)&&(J=Zn(el(e),r===!0?void 0:r).coords),i.type==="custom")if(a.precision=t,i.serialize)H=i.serialize(J,e.alpha,a);else throw new TypeError(`format ${q} can only be used to parse colors, not for serialization`);else{let te=i.name||"color";i.serializeCoords?J=i.serializeCoords(J,t):t!==null&&(J=J.map(Y=>Cu(Y,t)));let F=[...J];if(te==="color"){let Y=i.id||((M=i.ids)==null?void 0:M[0])||e.space.id;F.unshift(Y)}let O=e.alpha;t!==null&&(O=Cu(O,t));let $=e.alpha<1&&!i.noAlpha?`${i.commas?",":" /"} ${O}`:"";H=`${te}(${F.join(i.commas?", ":" ")}${$})`}return H}const Eq=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Aq=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var Oh=new Ji({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:Eq,fromXYZ_M:Aq,formats:{color:{}}});const Sc=1.09929682680944,Vb=.018053968510807;var LS=new Ji({id:"rec2020",name:"REC.2020",base:Oh,toBase(e){return e.map(function(t){return t<Vb*4.5?t/4.5:Math.pow((t+Sc-1)/Sc,1/.45)})},fromBase(e){return e.map(function(t){return t>=Vb?Sc*Math.pow(t,.45)-(Sc-1):4.5*t})},formats:{color:{}}});const Oq=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Lq=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var DS=new Ji({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:Oq,fromXYZ_M:Lq});const Dq=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Rq=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var RS=new Ji({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Dq,fromXYZ_M:Rq,formats:{color:{}}}),Gb={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let Yb=Array(3).fill("<percentage> | <number>[0, 255]"),Xb=Array(3).fill("<number>[0, 255]");var tl=new Ji({id:"srgb",name:"sRGB",base:RS,fromBase:e=>e.map(t=>{let i=t<0?-1:1,r=t*i;return r>.0031308?i*(1.055*Qe(r,1/2.4)-.055):12.92*t}),toBase:e=>e.map(t=>{let i=t<0?-1:1,r=t*i;return r<.04045?t/12.92:i*Qe((r+.055)/1.055,2.4)}),formats:{rgb:{coords:Yb},rgb_number:{name:"rgb",commas:!0,coords:Xb,noAlpha:!0},color:{},rgba:{coords:Yb,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:Xb},hex:{type:"custom",toGamut:!0,test:e=>/^#([a-f0-9]{3,4}){1,2}$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,"$&$&"));let t=[];return e.replace(/[a-f0-9]{2}/gi,i=>{t.push(parseInt(i,16)/255)}),{spaceId:"srgb",coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:i=!0}={})=>{t<1&&e.push(t),e=e.map(f=>Math.round(f*255));let r=i&&e.every(f=>f%17===0);return"#"+e.map(f=>r?(f/17).toString(16):f.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:e=>/^[a-z]+$/i.test(e),parse(e){e=e.toLowerCase();let t={spaceId:"srgb",coords:null,alpha:1};if(e==="transparent"?(t.coords=Gb.black,t.alpha=0):t.coords=Gb[e],t.coords)return t}}}}),NS=new Ji({id:"p3",name:"P3",base:DS,fromBase:tl.fromBase,toBase:tl.toBase,formats:{color:{id:"display-p3"}}});dn.display_space=tl;if(typeof CSS!="undefined"&&CSS.supports)for(let e of[or,LS,NS]){let t=e.getMinCoords(),r=Pu({space:e,coords:t,alpha:1});if(CSS.supports("color",r)){dn.display_space=e;break}}function Nq(e,r={}){var a=r,{space:t=dn.display_space}=a,i=mi(a,["space"]);let f=Pu(e,i);if(typeof CSS=="undefined"||CSS.supports("color",f)||!dn.display_space)f=new String(f),f.color=e;else{let A=_r(e,t);f=new String(Pu(A,i)),f.color=A}return f}function IS(e,t,i="lab"){i=ft.get(i);let r=i.from(e),a=i.from(t);return Math.sqrt(r.reduce((f,A,H)=>{let q=a[H];return isNaN(A)||isNaN(q)?f:f+Qe(q-A,2)},0))}function Iq(e,t){return e=Bt(e),t=Bt(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every((i,r)=>i===t.coords[r])}function Kn(e){return Sr(e,[Cr,"y"])}function jS(e,t){qn(e,[Cr,"y"],t)}function jq(e){Object.defineProperty(e.prototype,"luminance",{get(){return Kn(this)},set(t){jS(this,t)}})}var Bq=Object.freeze({__proto__:null,getLuminance:Kn,register:jq,setLuminance:jS});function zq(e,t){e=Bt(e),t=Bt(t);let i=Math.max(Kn(e),0),r=Math.max(Kn(t),0);return r>i&&([i,r]=[r,i]),(i+.05)/(r+.05)}const Fq=.56,Wq=.57,$q=.62,Hq=.65,qb=.022,Uq=1.414,Vq=.1,Gq=5e-4,Yq=1.14,Zb=.027,Xq=1.14;function Kb(e){return e>=qb?e:e+Qe(qb-e,Uq)}function Qo(e){let t=e<0?-1:1,i=Math.abs(e);return t*Math.pow(i,2.4)}function qq(e,t){t=Bt(t),e=Bt(e);let i,r,a,f,A,H;t=_r(t,"srgb"),[f,A,H]=t.coords;let q=Qo(f)*.2126729+Qo(A)*.7151522+Qo(H)*.072175;e=_r(e,"srgb"),[f,A,H]=e.coords;let J=Qo(f)*.2126729+Qo(A)*.7151522+Qo(H)*.072175,ne=Kb(q),se=Kb(J),M=se>ne;return Math.abs(se-ne)<Gq?r=0:M?(i=Qe(se,Fq)-Qe(ne,Wq),r=i*Yq):(i=Qe(se,Hq)-Qe(ne,$q),r=i*Xq),Math.abs(r)<Vq?a=0:r>0?a=r-Zb:a=r+Zb,a*100}function Zq(e,t){e=Bt(e),t=Bt(t);let i=Math.max(Kn(e),0),r=Math.max(Kn(t),0);r>i&&([i,r]=[r,i]);let a=i+r;return a===0?0:(i-r)/a}const Kq=5e4;function Qq(e,t){e=Bt(e),t=Bt(t);let i=Math.max(Kn(e),0),r=Math.max(Kn(t),0);return r>i&&([i,r]=[r,i]),r===0?Kq:(i-r)/r}function Jq(e,t){e=Bt(e),t=Bt(t);let i=Sr(e,[or,"l"]),r=Sr(t,[or,"l"]);return Math.abs(i-r)}const eZ=216/24389,Qb=24/116,Mc=24389/27;let ip=Hr.D65;var jf=new ft({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:ip,base:Cr,fromBase(e){let i=e.map((r,a)=>r/ip[a]).map(r=>r>eZ?Math.cbrt(r):(Mc*r+16)/116);return[116*i[1]-16,500*(i[0]-i[1]),200*(i[1]-i[2])]},toBase(e){let t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[t[0]>Qb?Math.pow(t[0],3):(116*t[0]-16)/Mc,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/Mc,t[2]>Qb?Math.pow(t[2],3):(116*t[2]-16)/Mc].map((r,a)=>r*ip[a])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const rp=Math.pow(5,.5)*.5+.5;function tZ(e,t){e=Bt(e),t=Bt(t);let i=Sr(e,[jf,"l"]),r=Sr(t,[jf,"l"]),a=Math.abs(Math.pow(i,rp)-Math.pow(r,rp)),f=Math.pow(a,1/rp)*Math.SQRT2-40;return f<7.5?0:f}var eu=Object.freeze({__proto__:null,contrastAPCA:qq,contrastDeltaPhi:tZ,contrastLstar:Jq,contrastMichelson:Zq,contrastWCAG21:zq,contrastWeber:Qq});function iZ(e,t,i={}){El(i)&&(i={algorithm:i});let f=i,{algorithm:r}=f,a=mi(f,["algorithm"]);if(!r){let A=Object.keys(eu).map(H=>H.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${A}`)}e=Bt(e),t=Bt(t);for(let A in eu)if("contrast"+r.toLowerCase()===A.toLowerCase())return eu[A](e,t,a);throw new TypeError(`Unknown contrast algorithm: ${r}`)}function BS(e){let[t,i,r]=Al(e,Cr),a=t+15*i+3*r;return[4*t/a,9*i/a]}function zS(e){let[t,i,r]=Al(e,Cr),a=t+i+r;return[t/a,i/a]}function rZ(e){Object.defineProperty(e.prototype,"uv",{get(){return BS(this)}}),Object.defineProperty(e.prototype,"xy",{get(){return zS(this)}})}var nZ=Object.freeze({__proto__:null,register:rZ,uv:BS,xy:zS});function oZ(e,t){return IS(e,t,"lab")}const aZ=Math.PI,Jb=aZ/180;function sZ(e,t,{l:i=2,c:r=1}={}){let[a,f,A]=or.from(e),[,H,q]=Js.from(or,[a,f,A]),[J,ne,se]=or.from(t),M=Js.from(or,[J,ne,se])[1];H<0&&(H=0),M<0&&(M=0);let te=a-J,F=H-M,O=f-ne,$=A-se,Y=Qe(O,2)+Qe($,2)-Qe(F,2),X=.511;a>=16&&(X=.040975*a/(1+.01765*a));let G=.0638*H/(1+.0131*H)+.638,V;Number.isNaN(q)&&(q=0),q>=164&&q<=345?V=.56+Math.abs(.2*Math.cos((q+168)*Jb)):V=.36+Math.abs(.4*Math.cos((q+35)*Jb));let z=Math.pow(H,4),D=Math.sqrt(z/(z+1900)),R=G*(D*V+1-D),w=Qe(te/(i*X),2);return w+=Qe(F/(r*G),2),w+=Y/Qe(R,2),Math.sqrt(w)}const ex=203;var Ag=new ft({id:"xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:Cr,fromBase(e){return e.map(t=>Math.max(t*ex,0))},toBase(e){return e.map(t=>Math.max(t/ex,0))}});const Tc=1.15,Pc=.66,tx=2610/Qe(2,14),lZ=Qe(2,14)/2610,ix=3424/Qe(2,12),rx=2413/Qe(2,7),nx=2392/Qe(2,7),cZ=1.7*2523/Qe(2,5),ox=Qe(2,5)/(1.7*2523),kc=-.56,np=16295499532821565e-27,uZ=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],hZ=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],dZ=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],pZ=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var FS=new ft({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Ag,fromBase(e){let[t,i,r]=e,a=Tc*t-(Tc-1)*r,f=Pc*i-(Pc-1)*t,H=Si(uZ,[a,f,r]).map(function(M){let te=ix+rx*Qe(M/1e4,tx),F=1+nx*Qe(M/1e4,tx);return Qe(te/F,cZ)}),[q,J,ne]=Si(dZ,H);return[(1+kc)*q/(1+kc*q)-np,J,ne]},toBase(e){let[t,i,r]=e,a=(t+np)/(1+kc-kc*(t+np)),A=Si(pZ,[a,i,r]).map(function(M){let te=ix-Qe(M,ox),F=nx*Qe(M,ox)-rx;return 1e4*Qe(te/F,lZ)}),[H,q,J]=Si(hZ,A),ne=(H+(Tc-1)*J)/Tc,se=(q+(Pc-1)*ne)/Pc;return[ne,se,J]},formats:{color:{}}}),Bf=new ft({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:FS,fromBase(e){let[t,i,r]=e,a;const f=2e-4;return Math.abs(i)<f&&Math.abs(r)<f?a=NaN:a=Math.atan2(r,i)*180/Math.PI,[t,Math.sqrt(Qe(i,2)+Qe(r,2)),Ah(a)]},toBase(e){return[e[0],e[1]*Math.cos(e[2]*Math.PI/180),e[1]*Math.sin(e[2]*Math.PI/180)]},formats:{color:{}}});function fZ(e,t){let[i,r,a]=Bf.from(e),[f,A,H]=Bf.from(t),q=i-f,J=r-A;Number.isNaN(a)&&Number.isNaN(H)?(a=0,H=0):Number.isNaN(a)?a=H:Number.isNaN(H)&&(H=a);let ne=a-H,se=2*Math.sqrt(r*A)*Math.sin(ne/2*(Math.PI/180));return Math.sqrt(Qe(q,2)+Qe(J,2)+Qe(se,2))}const WS=3424/4096,$S=2413/128,HS=2392/128,ax=2610/16384,mZ=2523/32,gZ=16384/2610,sx=32/2523,vZ=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],yZ=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],bZ=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],xZ=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var zf=new ft({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Ag,fromBase(e){let t=Si(vZ,e);return wZ(t)},toBase(e){let t=_Z(e);return Si(xZ,t)},formats:{color:{}}});function wZ(e){let t=e.map(function(i){let r=WS+$S*Qe(i/1e4,ax),a=1+HS*Qe(i/1e4,ax);return Qe(r/a,mZ)});return Si(yZ,t)}function _Z(e){return Si(bZ,e).map(function(r){let a=Math.max(Qe(r,sx)-WS,0),f=$S-HS*Qe(r,sx);return 1e4*Qe(a/f,gZ)})}function CZ(e,t){let[i,r,a]=zf.from(e),[f,A,H]=zf.from(t);return 720*Math.sqrt(Qe(i-f,2)+.25*Qe(r-A,2)+Qe(a-H,2))}const SZ=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],MZ=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],TZ=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],PZ=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var ku=new ft({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Cr,fromBase(e){let i=Si(SZ,e).map(r=>Math.cbrt(r));return Si(TZ,i)},toBase(e){let i=Si(PZ,e).map(r=>Qe(r,3));return Si(MZ,i)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function kZ(e,t){let[i,r,a]=ku.from(e),[f,A,H]=ku.from(t),q=i-f,J=r-A,ne=a-H;return Math.sqrt(Qe(q,2)+Qe(J,2)+Qe(ne,2))}var Eu={deltaE76:oZ,deltaECMC:sZ,deltaE2000:If,deltaEJz:fZ,deltaEITP:CZ,deltaEOK:kZ};function Ls(e,t,i={}){El(i)&&(i={method:i});let f=i,{method:r=dn.deltaE}=f,a=mi(f,["method"]);e=Bt(e),t=Bt(t);for(let A in Eu)if("deltae"+r.toLowerCase()===A.toLowerCase())return Eu[A](e,t,a);throw new TypeError(`Unknown deltaE method: ${r}`)}function EZ(e,t=.25){let r=[ft.get("oklch","lch"),"l"];return qn(e,r,a=>a*(1+t))}function AZ(e,t=.25){let r=[ft.get("oklch","lch"),"l"];return qn(e,r,a=>a*(1-t))}var OZ=Object.freeze({__proto__:null,darken:AZ,lighten:EZ});function US(e,t,i=.5,r={}){[e,t]=[Bt(e),Bt(t)],Hn(i)==="object"&&([i,r]=[.5,i]);let{space:a,outputSpace:f,premultiplied:A}=r;return Ol(e,t,{space:a,outputSpace:f,premultiplied:A})(i)}function VS(e,t,i={}){let r;Og(e)&&([r,i]=[e,t],[e,t]=r.rangeArgs.colors);let M=i,{maxDeltaE:a,deltaEMethod:f,steps:A=2,maxSteps:H=1e3}=M,q=mi(M,["maxDeltaE","deltaEMethod","steps","maxSteps"]);r||([e,t]=[Bt(e),Bt(t)],r=Ol(e,t,q));let J=Ls(e,t),ne=a>0?Math.max(A,Math.ceil(J/a)+1):A,se=[];if(H!==void 0&&(ne=Math.min(ne,H)),ne===1)se=[{p:.5,color:r(.5)}];else{let te=1/(ne-1);se=Array.from({length:ne},(F,O)=>{let $=O*te;return{p:$,color:r($)}})}if(a>0){let te=se.reduce((F,O,$)=>{if($===0)return 0;let Y=Ls(O.color,se[$-1].color,f);return Math.max(F,Y)},0);for(;te>a;){te=0;for(let F=1;F<se.length&&se.length<H;F++){let O=se[F-1],$=se[F],Y=($.p+O.p)/2,X=r(Y);te=Math.max(te,Ls(X,O.color),Ls(X,$.color)),se.splice(F,0,{p:Y,color:r(Y)}),F++}}}return se=se.map(te=>te.color),se}function Ol(e,t,i={}){if(Og(e)){let[q,J]=[e,t];return Ol(...q.rangeArgs.colors,Ae(Ae({},q.rangeArgs.options),J))}let{space:r,outputSpace:a,progression:f,premultiplied:A}=i;e=Bt(e),t=Bt(t),e=el(e),t=el(t);let H={colors:[e,t],options:i};if(r?r=ft.get(r):r=ft.registry[dn.interpolationSpace]||e.space,a=a?ft.get(a):r,e=_r(e,r),t=_r(t,r),e=Zn(e),t=Zn(t),r.coords.h&&r.coords.h.type==="angle"){let q=i.hue=i.hue||"shorter",J=[r,"h"],[ne,se]=[Sr(e,J),Sr(t,J)];[ne,se]=Pq(q,[ne,se]),qn(e,J,ne),qn(t,J,se)}return A&&(e.coords=e.coords.map(q=>q*e.alpha),t.coords=t.coords.map(q=>q*t.alpha)),Object.assign(q=>{q=f?f(q):q;let J=e.coords.map((M,te)=>{let F=t.coords[te];return Su(M,F,q)}),ne=Su(e.alpha,t.alpha,q),se={space:r,coords:J,alpha:ne};return A&&(se.coords=se.coords.map(M=>M/ne)),a!==r&&(se=_r(se,a)),se},{rangeArgs:H})}function Og(e){return Hn(e)==="function"&&!!e.rangeArgs}dn.interpolationSpace="lab";function LZ(e){e.defineFunction("mix",US,{returns:"color"}),e.defineFunction("range",Ol,{returns:"function<color>"}),e.defineFunction("steps",VS,{returns:"array<color>"})}var DZ=Object.freeze({__proto__:null,isRange:Og,mix:US,range:Ol,register:LZ,steps:VS}),GS=new ft({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:tl,fromBase:e=>{let t=Math.max(...e),i=Math.min(...e),[r,a,f]=e,[A,H,q]=[NaN,0,(i+t)/2],J=t-i;if(J!==0){switch(H=q===0||q===1?0:(t-q)/Math.min(q,1-q),t){case r:A=(a-f)/J+(a<f?6:0);break;case a:A=(f-r)/J+2;break;case f:A=(r-a)/J+4}A=A*60}return[A,H*100,q*100]},toBase:e=>{let[t,i,r]=e;t=t%360,t<0&&(t+=360),i/=100,r/=100;function a(f){let A=(f+t/30)%12,H=i*Math.min(r,1-r);return r-H*Math.max(-1,Math.min(A-3,9-A,1))}return[a(0),a(8),a(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),YS=new ft({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:GS,fromBase(e){let[t,i,r]=e;i/=100,r/=100;let a=r+i*Math.min(r,1-r);return[t,a===0?0:200*(1-r/a),100*a]},toBase(e){let[t,i,r]=e;i/=100,r/=100;let a=r*(1-i/2);return[t,a===0||a===1?0:(r-a)/Math.min(a,1-a)*100,a*100]},formats:{color:{toGamut:!0}}}),RZ=new ft({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:YS,fromBase(e){let[t,i,r]=e;return[t,r*(100-i)/100,100-r]},toBase(e){let[t,i,r]=e;i/=100,r/=100;let a=i+r;if(a>=1){let H=i/a;return[t,0,H*100]}let f=1-r,A=f===0?0:1-i/f;return[t,A*100,f*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const NZ=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],IZ=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var XS=new Ji({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:NZ,fromXYZ_M:IZ}),jZ=new Ji({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:XS,toBase:e=>e.map(t=>Math.pow(Math.abs(t),563/256)*Math.sign(t)),fromBase:e=>e.map(t=>Math.pow(Math.abs(t),256/563)*Math.sign(t)),formats:{color:{id:"a98-rgb"}}});const BZ=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],zZ=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var qS=new Ji({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:Eg,toXYZ_M:BZ,fromXYZ_M:zZ});const FZ=1/512,WZ=16/512;var $Z=new Ji({id:"prophoto",name:"ProPhoto",base:qS,toBase(e){return e.map(t=>t<WZ?t/16:Qe(t,1.8))},fromBase(e){return e.map(t=>t>=FZ?Qe(t,1/1.8):16*t)},formats:{color:{id:"prophoto-rgb"}}}),HZ=new ft({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:ku,fromBase(e){let[t,i,r]=e,a;const f=2e-4;return Math.abs(i)<f&&Math.abs(r)<f?a=NaN:a=Math.atan2(r,i)*180/Math.PI,[t,Math.sqrt(Qe(i,2)+Qe(r,2)),Ah(a)]},toBase(e){let[t,i,r]=e,a,f;return isNaN(r)?(a=0,f=0):(a=i*Math.cos(r*Math.PI/180),f=i*Math.sin(r*Math.PI/180)),[t,a,f]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const lx=203,cx=2610/Qe(2,14),UZ=Qe(2,14)/2610,VZ=2523/Qe(2,5),ux=Qe(2,5)/2523,hx=3424/Qe(2,12),dx=2413/Qe(2,7),px=2392/Qe(2,7);var GZ=new Ji({id:"rec2100pq",name:"REC.2100-PQ",base:Oh,toBase(e){return e.map(function(t){return Qe(Math.max(Qe(t,ux)-hx,0)/(dx-px*Qe(t,ux)),UZ)*1e4/lx})},fromBase(e){return e.map(function(t){let i=Math.max(t*lx/1e4,0),r=hx+dx*Qe(i,cx),a=1+px*Qe(i,cx);return Qe(r/a,VZ)})},formats:{color:{id:"rec2100-pq"}}});const fx=.17883277,mx=.28466892,gx=.55991073,op=3.7743;var YZ=new Ji({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:Oh,toBase(e){return e.map(function(t){return t<=.5?Qe(t,2)/3*op:(Math.exp((t-gx)/fx)+mx)/12*op})},fromBase(e){return e.map(function(t){return t/=op,t<=1/12?Math.sqrt(3*t):fx*Math.log(12*t-mx)+gx})},formats:{color:{id:"rec2100-hlg"}}});const ZS={};Xn.add("chromatic-adaptation-start",e=>{e.options.method&&(e.M=KS(e.W1,e.W2,e.options.method))});Xn.add("chromatic-adaptation-end",e=>{e.M||(e.M=KS(e.W1,e.W2,e.options.method))});function Lh({id:e,toCone_M:t,fromCone_M:i}){ZS[e]=arguments[0]}function KS(e,t,i="Bradford"){let r=ZS[i],[a,f,A]=Si(r.toCone_M,e),[H,q,J]=Si(r.toCone_M,t),ne=[[H/a,0,0],[0,q/f,0],[0,0,J/A]],se=Si(ne,r.toCone_M);return Si(r.fromCone_M,se)}Lh({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599364,-1.1293816,.2198974],[.3611914,.6388125,-64e-7],[0,0,1.0890636]]});Lh({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]]});Lh({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238,-.278869,.1827452],[.454369,.4735332,.0720978],[-.0096276,-.005698,1.0153256]]});Lh({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.011254630531685,.1491867754444518],[.3875265432361372,.6214474419314753,-.008973985167612518],[-.01584149884933386,-.03412293802851557,1.04996443687785]]});Object.assign(Hr,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});Hr.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const XZ=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],qZ=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var QS=new Ji({id:"acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:Hr.ACES,toXYZ_M:XZ,fromXYZ_M:qZ,formats:{color:{}}});const Ec=Qe(2,-16),ap=-.35828683,Ac=(Math.log2(65504)+9.72)/17.52;var ZZ=new Ji({id:"acescc",name:"ACEScc",coords:{r:{range:[ap,Ac],name:"Red"},g:{range:[ap,Ac],name:"Green"},b:{range:[ap,Ac],name:"Blue"}},referred:"scene",base:QS,toBase(e){const t=-.3013698630136986;return e.map(function(i){return i<=t?(Qe(2,i*17.52-9.72)-Ec)*2:i<Ac?Qe(2,i*17.52-9.72):65504})},fromBase(e){return e.map(function(t){return t<=0?(Math.log2(Ec)+9.72)/17.52:t<Ec?(Math.log2(Ec+t*.5)+9.72)/17.52:(Math.log2(t)+9.72)/17.52})},formats:{color:{}}}),vx=Object.freeze({__proto__:null,A98RGB:jZ,A98RGB_Linear:XS,ACEScc:ZZ,ACEScg:QS,HSL:GS,HSV:YS,HWB:RZ,ICTCP:zf,JzCzHz:Bf,Jzazbz:FS,LCH:Js,Lab:or,Lab_D65:jf,OKLCH:HZ,OKLab:ku,P3:NS,P3_Linear:DS,ProPhoto:$Z,ProPhoto_Linear:qS,REC_2020:LS,REC_2020_Linear:Oh,REC_2100_HLG:YZ,REC_2100_PQ:GZ,XYZ_ABS_D65:Ag,XYZ_D50:Eg,XYZ_D65:Cr,sRGB:tl,sRGB_Linear:RS});class jt{constructor(...t){let i;t.length===1&&(i=Bt(t[0]));let r,a,f;i?(r=i.space||i.spaceId,a=i.coords,f=i.alpha):[r,a,f]=t,Object.defineProperty(this,"space",{value:ft.get(r),writable:!1,enumerable:!0,configurable:!0}),this.coords=a?a.slice():[0,0,0],this.alpha=f<1?f:1;for(let A=0;A<this.coords.length;A++)this.coords[A]==="NaN"&&(this.coords[A]=NaN);for(let A in this.space.coords)Object.defineProperty(this,A,{get:()=>this.get(A),set:H=>this.set(A,H)})}get spaceId(){return this.space.id}clone(){return new jt(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...t){let i=Nq(this,...t);return i.color=new jt(i.color),i}static get(t,...i){return t instanceof jt?t:new jt(t,...i)}static defineFunction(t,i,r=i){let{instance:a=!0,returns:f}=r,A=function(...H){let q=i(...H);if(f==="color")q=jt.get(q);else if(f==="function<color>"){let J=q;q=function(...ne){let se=J(...ne);return jt.get(se)},Object.assign(q,J)}else f==="array<color>"&&(q=q.map(J=>jt.get(J)));return q};t in jt||(jt[t]=A),a&&(jt.prototype[t]=function(...H){return A(this,...H)})}static defineFunctions(t){for(let i in t)jt.defineFunction(i,t[i],t[i])}static extend(t){if(t.register)t.register(jt);else for(let i in t)jt.defineFunction(i,t[i])}}jt.defineFunctions({get:Sr,getAll:Al,set:qn,setAll:OS,to:_r,equals:Iq,inGamut:zs,toGamut:Zn,distance:IS,toString:Pu});Object.assign(jt,{util:_q,hooks:Xn,WHITES:Hr,Space:ft,spaces:ft.registry,parse:AS,defaults:dn});for(let e of Object.keys(vx))ft.register(vx[e]);for(let e in ft.registry)Ff(e,ft.registry[e]);Xn.add("colorspace-init-end",e=>{var t;Ff(e.id,e),(t=e.aliases)==null||t.forEach(i=>{Ff(i,e)})});function Ff(e,t){Object.values(t.coords).map(r=>r.name);let i=e.replace(/-/g,"_");Object.defineProperty(jt.prototype,i,{get(){let r=this.getAll(e);return typeof Proxy=="undefined"?r:new Proxy(r,{has:(a,f)=>{try{return ft.resolveCoord([t,f]),!0}catch(A){}return Reflect.has(a,f)},get:(a,f,A)=>{if(f&&typeof f!="symbol"&&!(f in a)){let{index:H}=ft.resolveCoord([t,f]);if(H>=0)return a[H]}return Reflect.get(a,f,A)},set:(a,f,A,H)=>{if(f&&typeof f!="symbol"&&!(f in a)||f>=0){let{index:q}=ft.resolveCoord([t,f]);if(q>=0)return a[q]=A,this.setAll(e,a),!0}return Reflect.set(a,f,A,H)}})},set(r){this.setAll(e,r)},configurable:!0,enumerable:!0})}jt.extend(Eu);jt.extend({deltaE:Ls});Object.assign(jt,{deltaEMethods:Eu});jt.extend(OZ);jt.extend({contrast:iZ});jt.extend(nZ);jt.extend(Bq);jt.extend(DZ);jt.extend(eu);const KZ=.15,Yr=e=>typeof e=="string"?new jt(e):e,Mn=e=>e.toString({format:"hex"}),JS=(...e)=>{const t=e.map(Yr);if(t.length<2)return()=>Mn(t[0]);const r=t.slice(0,-1).map((a,f)=>[a,t[f+1]]).map(([a,f])=>{const A=jt.range(a,f,{outputSpace:"srgb"});return H=>Mn(A(H))});return a=>{if(a<=0)return Mn(t[0]);if(a>=1)return Mn(t[t.length-1]);const f=Math.floor(a*r.length);return r[f](a*r.length-f)}},QZ=(e,...t)=>{const i=t.map(Yr);if(i.length<2)return Array(e).fill(Mn(i[0]));const r=JS(...i);return Array(e).fill(0).map((a,f)=>r(f/(e-1)))},eM=e=>Mn(Yr(e).set("hsl.s",0)),JZ=(e,t)=>Mn(jt.mix(e,t,.5,{outputSpace:"srgb"})),eK=(e,t)=>Math.abs(Yr(t).hsl.h-Yr(e).hsl.h),il=(e,t)=>{const i=Yr(e);return i.hsv.v=i.hsv.v+i.hsv.v*t,i.hsv.v>100&&(i.hsv.s=i.hsv.s-(i.hsv.v-100)/1.677),i.hsv.s=Math.max(0,Math.min(100,i.hsv.s)),i.hsv.v=Math.max(0,Math.min(100,i.hsv.v)),Mn(i)},tM=e=>({R:e.srgb[0]*255,G:e.srgb[1]*255,B:e.srgb[2]*255}),Ll=e=>{const{R:t,G:i,B:r}=tM(e);return 1-(.299*t+.587*i+.114*r)/255};function tK(e){return Ll(e)<.9}const iM=(e,t=.05,i=1)=>{const r=Yr(e),{R:a,G:f,B:A}=tM(r),H=Ll(r);let q=t;tK(r)&&(q*=-.6),q*=Math.exp(H*1.2);const J=Math.min(Math.max(Math.round(255*q)+a,0),255),ne=Math.min(Math.max(Math.round(255*q)+f,0),255),se=Math.min(Math.max(Math.round(255*q)+A,0),255);return`rgba(${J}, ${ne}, ${se}, ${i})`},iK=(e,t)=>{const i=Yr(e);return i.alpha=t,Mn(i)};function rK(e){return t=>{var J,ne,se;const{steps:i,minColor:r,maxColor:a}=e,f=(J=e.minValue)!=null?J:Math.min(...t),A=(ne=e.maxValue)!=null?ne:Math.max(...t),H=(se=e.midValue)!=null?se:f<0&&A>0?0:(f+A)/2,q=nK(r!=null?r:Qs,a!=null?a:Qs,f,H,A,i);return M=>q(M)}}const nK=(e,t,i,r,a,f=0)=>{const A=sK(i,r,a),H=eK(e,t)>90?[e,eM(JZ(e,t)),t]:[e,t];return f<=0?oK(A,H):aK(A,f,H)},oK=(e,t)=>{const i=JS(...t);return r=>i(e(r))},aK=(e,t,i)=>{const r=QZ(t,...i);return a=>{const f=Math.floor(e(a)*t);return r[Math.min(Math.max(f,0),t-1)]}},sK=(e,t,i)=>r=>r==e&&r==i?.5:r<t?.5*((r-e)/(t-e)):.5+.5*(r-t)/(i-t);function Lg(e){let t;switch(typeof e=="string"?t=Pg(e):t=e,t.type){case"uniform":return{type:"Static",getColor:bq(t)};case"conditional":return{type:"Absolute",getColor:xq(t)};case"range":return{type:"Relative",getColor:rK(t)}}}const Dh=e=>{const{getValueFromDataStructure:t,applyColorToDataStructure:i}=e;return(r,a)=>{const f=Lg(a);let A;switch(f.type){case"Static":A=()=>f.getColor();break;case"Absolute":A=H=>f.getColor(H);break;case"Relative":{const H=r.map(t),q=f.getColor(H);A=J=>q(J);break}}return r.map(H=>{const q=t(H),J=A(q);return i(H,J)})}},lK=Dh({getValueFromDataStructure:e=>e.value,applyColorToDataStructure:(e,t)=>ze(Ae({},e),{color:t})});var cK=Hw,uK=bl,hK=ml,dK=Ri,pK=Lo,fK=gl,mK=ih,gK=th,vK="[object Map]",yK="[object Set]",bK=Object.prototype,xK=bK.hasOwnProperty;function wK(e){if(e==null)return!0;if(pK(e)&&(dK(e)||typeof e=="string"||typeof e.splice=="function"||fK(e)||gK(e)||hK(e)))return!e.length;var t=uK(e);if(t==vK||t==yK)return!e.size;if(mK(e))return!cK(e).length;for(var i in e)if(xK.call(e,i))return!1;return!0}var rM=wK;const _K=Et(rM),nM=(e,t)=>Object.assign(Object.create(e),t),CK=(e,t)=>Object.assign(Object.create(Object.getPrototypeOf(e)),e,t),oM=e=>{const t="column"in e;let i=e,r;if(t){const a=e,{column:f}=a,A=mi(a,["column"]);i=f,_K(A)||(r=A)}return{column:i,style:r}},ji=e=>{var f;const{column:t,style:i}=oM(e),r=Tr(t.type)?(f=t==null?void 0:t.getFormat)==null?void 0:f.call(t):void 0,a=ze(Ae({},i),{dateFormat:(i==null?void 0:i.dateFormat)||r});return nM(t,a)},Ci=e=>{var f,A;const t="column"in e,i=t?e.column:e,a=nM(i,ze(Ae({},t?e:{}),{title:(A=(f=e.title)!=null?f:i.title)!=null?A:i.name,enabled:!0}));return a.aggregation=a.aggregation||"sum",a},Co=e=>$n(e)?Ci(e):ji(e),aM=e=>e,SK=e=>e,sM=e=>e,Rh=e=>e,ir=e=>{var t;return(t=e.title)!=null?t:e.name},Wf=e=>Rh(ji(e)),Au=(e,t)=>{var M;if(t.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const i=e,r=i.x.length;let a=Mo(t,i.x.map(te=>te.name));a=a.map((te,F)=>ze(Ae({},te),{direction:lM(i.x[F].sortType)}));const f=Mo(t,i.breakBy.map(te=>te.name)),A=i.y.filter(te=>(te==null?void 0:te.sortType)&&te.sortType!=="sortNone"),H=a.length>1?1:0,q=cM(t,A,a,((M=a[H])==null?void 0:M.direction)===0?ma:void 0),J=i.y.map(te=>te.name),ne=i.breakBy.length>0?kK(t,q,a,J[0],f,i.breakBy):MK(t,q,a,J,i.y);return ze(Ae({},ne),{xAxisCount:r,type:"cartesian"})},lM=e=>{switch(e){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},cM=(e,t,i,r)=>{if(i.length===0)return[{key:"",xValues:[""],rawValues:[]}];const a=t.map(se=>({column:se.name,agg:"sum",title:se.name}));if(r){const se={column:r,title:r,agg:"min"};a.push(se)}const f=bS(e,i,a),A=[];let H=0;if(i.length===2){H=1;const M=ci(f,i[0].name);M&&A.push(M)}if(t.map(se=>{const M=ci(f,se.name);return M&&A.push(ze(Ae({},M),{direction:se.sortType==="sortAsc"?1:-1})),se}),r){const se=ci(f,r);se&&A.push(se)}if(i.length>0){const se=ci(f,i[H].name);se&&A.push(se)}const q=Mg(f,A),J=Mo(q,i.map(se=>se.name)),ne=xS(q,J);return ne.rows.map(se=>{const M=kl(se,ne.columns),te=M.map(Y=>Y.displayValue),F=M.map(Y=>{var X;return(X=Y.rawValue)!=null?X:Y.displayValue}),O=M.map(Y=>{var X;return(X=Y==null?void 0:Y.compareValue)==null?void 0:X.value});return{key:F.join(","),xValues:te,rawValues:F,compareValues:O}})},MK=(e,t,i,r,a)=>{const f=Mo(e,r),A=a.reduce((J,ne)=>(J[ne.name]=ne,J),{});if(f.length===0)return{type:"cartesian",series:[],xValues:[]};const H=Tg(e.rows,i),q=f.map(J=>{let ne=t.map(M=>{var X;const te=H[M.key],F=te?te[0]:[],O=Li(F,J),{color:$,rawValue:Y}=(X=F[J.index])!=null?X:{};return Ae({rawValue:Y,xValue:M.rawValues,xDisplayValue:M.xValues,xCompareValue:M.compareValues,value:O===void 0?NaN:O,blur:kh(F,J)},$&&{color:$})});const se=A[J.name].color;return se&&(ne=lK(ne,se)),{name:J.name,title:ir(A[J.name]),data:ne}});return{xValues:t,series:q}},TK=(e,t,i)=>kl(e,t).map((r,a)=>{const f=Vt(i[a].numberFormatConfig);return ti(t[a].type)?ii(f,parseFloat(r.displayValue)):r.displayValue}).join(","),PK=(e,t)=>kl(e,t).map(({rawValue:i})=>i),kK=(e,t,i,r,a,f)=>{const A=ci(e,r);if(!A)return{type:"cartesian",series:[],xValues:[]};const J=Sg(e.rows,a).map(ne=>{const se=ne[0];return{seriesName:TK(se,a,f),seriesValues:PK(se,a),rowsByXColumns:Tg(ne,i)}}).map(ne=>{const se=t.map(M=>{var X;const te=ne.rowsByXColumns[M.key],F=te?te[0]:[],O=Li(F,A),{color:$,rawValue:Y}=(X=F[A.index])!=null?X:{};return Ae({rawValue:Y,value:O===void 0?NaN:O,xValue:M.rawValues,xDisplayValue:M.xValues,xCompareValue:M.compareValues,blur:kh(F,A)},$&&{color:$})});return{name:ne.seriesName,data:se,custom:{rawValue:ne.seriesValues}}});return{xValues:t,series:J}},EK=(e,t)=>{const i=ze(Ae({},e),{x:e.breakBy,breakBy:[]});let r=Au(i,t);if(e.breakBy.some(f=>ti(f.type)&&(f==null?void 0:f.numberFormatConfig))){const f=r.xValues.map(A=>{const H=[];return e.breakBy.forEach((q,J)=>{const ne=Vt(q==null?void 0:q.numberFormatConfig),se=A.xValues[J];ti(q.type)?H.push(ii(ne,parseFloat(se))):H.push(A.xValues[J])}),ze(Ae({},A),{xValues:H})});r=ze(Ae({},r),{xValues:f})}return ze(Ae({},r),{type:"categorical"})},AK={displayValue:"0"},Cs=(e,t)=>{if(t){for(let i=0;i<e.columns.length;i++)if(e.columns[i].name===t.name)return i}return-1},OK=(e,t)=>({x:Cs(t,e.x),y:Cs(t,e.y),breakByPoint:Cs(t,e.breakByPoint),breakByColor:Cs(t,e.breakByColor),size:Cs(t,e.size)}),yx=(e,t)=>t[e]||AK,LK=(e,t)=>{const i=new Set;return e.forEach(r=>{i.add(r[t].displayValue)}),Array.from(i.values())},bx=(e,t,i)=>{if(i&&Ln(i))return LK(e,t)},xx=(e,t)=>[e,t],DK=(e,t)=>{const i=new Map(e==null?void 0:e.map(xx)),r=new Map(t==null?void 0:t.map(xx));return{xCategoriesMap:i,yCategoriesMap:r}},RK=(e,t)=>{var f,A;const i=OK(e,t),r=e!=null&&e.breakByPoint&&ti(e.breakByPoint.type)?Vt((f=e.breakByPoint)==null?void 0:f.numberFormatConfig):void 0,a=e!=null&&e.breakByColor&&(!Ln(e.breakByColor)||ti(e.breakByColor.type))?Vt((A=e.breakByColor)==null?void 0:A.numberFormatConfig):void 0;return t.rows.map(H=>{const q=Ae({},H[i.breakByPoint]);r&&(q.displayValue=ii(r,q.compareValue?q.compareValue.value:parseFloat(q.displayValue)));const J=Ae({},H[i.breakByColor]);return a&&(J.displayValue=ii(a,J.compareValue?J.compareValue.value:parseFloat(J.displayValue))),{xAxis:yx(i.x,H),yAxis:yx(i.y,H),breakByPoint:q,breakByColor:J,size:H[i.size]}})},NK=(e,t)=>{const i=RK(e,t),{x:r,y:a}=e,f=bx(i,"xAxis",r),A=bx(i,"yAxis",a);return{type:"scatter",scatterDataTable:i,xCategories:f,yCategories:A}},Oc=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const i=ci(e,t[0].name);return i?[Li(e.rows[0],i),t[0].name]:[void 0,void 0]},IK=(e,t)=>{const i={type:"indicator"};if(!e.value||t.rows.length===0)return i;const[r]=Oc(t,e.value);if(r===void 0)return i;const[a]=Oc(t,e.secondary),[f]=Oc(t,e.min),[A]=Oc(t,e.max);return{type:"indicator",value:r,secondary:a,min:f,max:A}},jK=(e,t)=>{const i=e.category&&ci(t,e.category.name);i&&(i.direction=lM(e.category.sortType));const r=cM(t,[],i?[i]:[],(i==null?void 0:i.direction)===0?ma:void 0),a=Tg(t.rows,i?[i]:[]),f=ci(t,e.boxMin.name),A=ci(t,e.boxMedian.name),H=ci(t,e.boxMax.name),q=ci(t,e.whiskerMin.name),J=ci(t,e.whiskerMax.name),ne=e.outliers&&ci(t,e.outliers.name),se=[],M=[];r.forEach((F,O)=>{const $=a[F.key],Y=$?$[0]:[],X=i&&kh(Y,i);se.push({q1:f?Li(Y,f):0,median:A?Li(Y,A):0,q3:H?Li(Y,H):0,low:q?Li(Y,q):0,high:J?Li(Y,J):0,blur:X});const G=ne?Y[ne.index].rawValue.split(",").map(V=>parseFloat(V)):[];M.push(...G.map(V=>({x:O,y:V,blur:X})))});const te=[{name:e.valueTitle,title:e.valueTitle,data:se}];return M.length>0&&te.push({name:e.valueTitle,title:e.valueTitle,data:M}),{type:"boxplot",xValues:r,series:te}},sr=(e,t)=>{var r;const i=e==null?void 0:e.filter(a=>a);return(r=i&&i[t%i.length])!=null?r:yq[t%10]},BK=(e,t)=>{let i={type:"range",steps:e.steps};if(e.rangeMode!=="auto"){const A=parseFloat(`${e.minvalue}`),H=parseFloat(`${e.midvalue}`),q=parseFloat(`${e.maxvalue}`);i=Ae(Ae(Ae(Ae({},i),A&&{minValue:A}),H&&{midValue:H}),q&&{maxValue:q})}const r=sr(t,0),a=il(r,.2),f=il(r,-.2);switch(e.rangeMode){case"auto":return ze(Ae({},i),{minColor:eM(r),maxColor:f});case"both":return ze(Ae({},i),{minColor:e.min||a,maxColor:e.max||f});case"min":return ze(Ae({},i),{minColor:e.min||a,maxColor:Qs});case"max":return ze(Ae({},i),{minColor:Qs,maxColor:e.max||f})}},uM=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return{type:"uniform",color:e.color||sr(t,e.colorIndex||0)};case"range":return BK(e,t);case"condition":return{type:"conditional",conditions:e.conditions.filter(i=>typeof i.expression=="string"),defaultColor:sr(t,0)};default:return Pg(sr(t,0))}},hM=e=>Object.entries(e).reduce((t,[i,{color:r}])=>(t[i]=r,t),{}),zK=e=>e.reduce((t,i)=>{var r,a;return(r=i.format)!=null&&r.members&&(t[pu(i.jaql.title)]=hM((a=i.format)==null?void 0:a.members)),t},{}),FK=Dh({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>ze(Ae({},e),{color:t})}),WK=uM({type:"range",steps:5,rangeMode:"auto"}),$K=(e,t)=>{const i=ci(t,e.geo.name),r=ci(t,e.color.name);if(!i||!r)throw new Error("Missing required column");const a=t.rows.map(A=>{const H=Li(A,r),q=Vt(e.color.numberFormatConfig),J=ii(q,H);return{geoName:Li(A,i),originalValue:H,formattedOriginalValue:J}});return{type:"areamap",geoData:FK(a,e.color.color||WK)}};function HK(e,t,i){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var f=Array(a);++r<a;)f[r]=e[r+t];return f}var UK=HK,VK=UK;function GK(e,t,i){var r=e.length;return i=i===void 0?r:i,!t&&i>=r?e:VK(e,t,i)}var YK=GK;function XK(e,t,i,r){for(var a=e.length,f=i+(r?1:-1);r?f--:++f<a;)if(t(e[f],f,e))return f;return-1}var qK=XK;function ZK(e){return e!==e}var KK=ZK;function QK(e,t,i){for(var r=i-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var JK=QK,eQ=qK,tQ=KK,iQ=JK;function rQ(e,t,i){return t===t?iQ(e,t,i):eQ(e,tQ,i)}var Dg=rQ,nQ=Dg;function oQ(e,t){for(var i=e.length;i--&&nQ(t,e[i],0)>-1;);return i}var aQ=oQ,sQ=Dg;function lQ(e,t){for(var i=-1,r=e.length;++i<r&&sQ(t,e[i],0)>-1;);return i}var cQ=lQ;function uQ(e){return e.split("")}var hQ=uQ,dQ="\\ud800-\\udfff",pQ="\\u0300-\\u036f",fQ="\\ufe20-\\ufe2f",mQ="\\u20d0-\\u20ff",gQ=pQ+fQ+mQ,vQ="\\ufe0e\\ufe0f",yQ="\\u200d",bQ=RegExp("["+yQ+dQ+gQ+vQ+"]");function xQ(e){return bQ.test(e)}var wQ=xQ,dM="\\ud800-\\udfff",_Q="\\u0300-\\u036f",CQ="\\ufe20-\\ufe2f",SQ="\\u20d0-\\u20ff",MQ=_Q+CQ+SQ,TQ="\\ufe0e\\ufe0f",PQ="["+dM+"]",$f="["+MQ+"]",Hf="\\ud83c[\\udffb-\\udfff]",kQ="(?:"+$f+"|"+Hf+")",pM="[^"+dM+"]",fM="(?:\\ud83c[\\udde6-\\uddff]){2}",mM="[\\ud800-\\udbff][\\udc00-\\udfff]",EQ="\\u200d",gM=kQ+"?",vM="["+TQ+"]?",AQ="(?:"+EQ+"(?:"+[pM,fM,mM].join("|")+")"+vM+gM+")*",OQ=vM+gM+AQ,LQ="(?:"+[pM+$f+"?",$f,fM,mM,PQ].join("|")+")",DQ=RegExp(Hf+"(?="+Hf+")|"+LQ+OQ,"g");function RQ(e){return e.match(DQ)||[]}var NQ=RQ,IQ=hQ,jQ=wQ,BQ=NQ;function zQ(e){return jQ(e)?BQ(e):IQ(e)}var FQ=zQ,WQ=o_,$Q=MC,HQ=YK,UQ=aQ,VQ=cQ,wx=FQ,GQ=jm;function YQ(e,t,i){if(e=GQ(e),e&&(i||t===void 0))return $Q(e);if(!e||!(t=WQ(t)))return e;var r=wx(e),a=wx(t),f=VQ(r,a),A=UQ(r,a)+1;return HQ(r,f,A).join("")}var XQ=YQ;const qQ=Et(XQ),yM=",";function ZQ(e){return e.join(`${yM} `)}function KQ(e){return e.split(yM).map(qQ)}function QQ(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function JQ(e){const{name:t,rawName:i,coordinates:r,value:a}=e;return{categories:i,displayName:t,coordinates:{lat:r.lat,lng:r.lng},value:a}}const eJ="N\\A",tJ=1,iJ=(e,t)=>{const i=rJ(e),r=e.locations&&Mo(t,e.locations.map(({name:q})=>q)),a=e.size&&ci(t,e.size.name),f=e.colorBy&&ci(t,e.colorBy.name),A=e.details&&ci(t,e.details.name);return{type:"scattermap",locations:t.rows.filter(q=>r.some(J=>Li(q,J)!==eJ)).map(q=>{const J=r.map(te=>Li(q,te)),ne=ZQ(J);let se;i&&(se={lat:Li(q,r[0]),lng:Li(q,r[1])});const M=r[0]&&kh(q,r[0]);return Ae(ze(Ae(Ae({name:ne,rawName:J,value:a?Li(q,a):tJ},f&&{colorValue:Li(q,f)}),A&&{details:Li(q,A)}),{blur:M}),se?{coordinates:se}:null)})}};function rJ(e){return e.locations.length===2&&e.locations.filter(t=>ti(t.type)).length===2}const nJ=(e,t)=>{const i=()=>ze(Ae({},e),{y:[]}),r=i(),a=i(),f=1,A=0;e.rangeValues.forEach(J=>{const ne=J[f],se=J[A];r.y.push(ne),a.y.push(se)});const H=Au(r,t),q=Au(a,t);return ze(Ae({},H),{type:"range",seriesOther:q})},oJ=(e,t,i)=>{if(to(e))return Au(t,i);if(Ga(e))return EK(t,i);if(Ya(e))return NK(t,i);if(Xa(e))return iJ(t,i);if(Pl(e))return IK(t,i);if(qa(e))return jK(t,i);if(Za(e))return $K(t,i);if(Ph(e))return nJ(t,i);throw new Error(`Unexpected chart type: ${e}`)};var aJ=hh,sJ=qC,lJ=ZC;function cJ(e,t){return lJ(sJ(e,t,aJ),e+"")}var Rg=cJ,uJ=Dg;function hJ(e,t){var i=e==null?0:e.length;return!!i&&uJ(e,t,0)>-1}var dJ=hJ;function pJ(e,t,i){for(var r=-1,a=e==null?0:e.length;++r<a;)if(i(t,e[r]))return!0;return!1}var fJ=pJ,sp=Kw,mJ=KC,gJ=Om,vJ=1/0,yJ=sp&&1/gJ(new sp([,-0]))[1]==vJ?function(e){return new sp(e)}:mJ,bJ=yJ,xJ=Uw,wJ=dJ,_J=fJ,CJ=Vw,SJ=bJ,MJ=Om,TJ=200;function PJ(e,t,i){var r=-1,a=wJ,f=e.length,A=!0,H=[],q=H;if(i)A=!1,a=_J;else if(f>=TJ){var J=t?null:SJ(e);if(J)return MJ(J);A=!1,a=CJ,q=new xJ}else q=t?[]:H;e:for(;++r<f;){var ne=e[r],se=t?t(ne):ne;if(ne=i||ne!==0?ne:0,A&&se===se){for(var M=q.length;M--;)if(q[M]===se)continue e;t&&q.push(se),H.push(ne)}else a(q,se,i)||(q!==H&&q.push(se),H.push(ne))}return H}var bM=PJ,kJ=Lo,EJ=Lr;function AJ(e){return EJ(e)&&kJ(e)}var xM=AJ,OJ=YC,LJ=Rg,DJ=bM,RJ=xM,NJ=LJ(function(e){return DJ(OJ(e,1,RJ,!0))}),IJ=NJ;const jJ=Et(IJ),wM=(e,t,i,r={})=>{if(Eh(e))return{rows:[],columns:[]};const a=jJ(Mo(e,t.map(ne=>ne.name))),f=e,H=[...i.map(ne=>{var se,M;return{column:(se=r[ne.name])!=null?se:ne.name,title:ne.name,agg:(M=ne.aggregation)!=null?M:"sum"}}),{column:ma,title:ma,agg:"min"}],q=bS(f,a,H),J=ci(q,ma);if(!J)throw new Error("Unexpected data has no row num column");return Mg(q,[J])};class Dl{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,i,r,a){t.font=a;let f=this.getStringWidth(t,i);const A="…",H=this.getStringWidth(t,A);if(f<=r)return{string:i,width:f};if(H>=r)return{string:A,width:H};do i=i.slice(0,i.length-1),f=this.getStringWidth(t,i);while(f+H>r);return{string:i+A,width:f+H}}getStringWidth(t,i){return Math.ceil(t.measureText(i).width)}floor(t,i){i=typeof i=="number"?i:0;const r=Math.pow(10,i);return Math.round(t*r)/r}setCanvasSizes(t,i,r,a){const f=window.devicePixelRatio||1;t.width=r*f,t.height=a*f,t.style.width=r+"px",t.style.height=a+"px",i.scale(f,f)}}const sa=new Dl,mo=function(e,t){return sa.floor(e*t.value,t.decimals)};function BJ(e,t){const i={};return e.forEach(r=>{t.some(function(a){return a.key===r?(i[r]=a,!0):!1})}),i}function zJ(e,t,i){const{showTitle:r,showSecondary:a,skin:f,maxHeight:A,maxWidth:H,borderWidth:q}=i;for(let J=0;J<t.length;J++){const ne=t[J],se=ne.value,M=mo(se,e.valueSectionMarginBottom),F=mo(se,e.indicatorVerticalMargin)*2;let O=se+M+F;if(r&&f==="vertical"){const $=mo(se,e.titleSectionHeight);O+=$}if(a){const $=mo(se,e.secSectionHeight),Y=mo(se,e.secSectionMarginTop);O+=$+Y+(q||0)}if(O<=A){const $=mo(se,e.numericMinWidth),X=mo(se,e.indicatorHorizontalMargin)*2;if($+X<=H)return ze(Ae({},ne),{maxWidth:H-X,maxHeight:A-F})}}return null}class FJ{getBaseMeasure(t,i,r){const a=i,f="sizes"in a?a.sizes:[],A=a.relativeSizes,H=a.measureKeys.concat(),q=Math.floor(r.clientWidth),J=Math.floor(r.clientHeight),ne=BJ(H,A);return zJ(ne,f,{maxWidth:q,maxHeight:J,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in a?a.borderWidth:0})}render(t,i,r,a){const f=t.getContext("2d");let A;r.height=a.value,r.maxWidth=a.maxWidth,r.maxHeight=a.maxHeight,A=r.height,r.fitValueMeasure=this.getFitValueMeasure(f,i,r),i.showTitle&&(r.fitTitleMeasure=this.getFitTitleMeasure(f,i,r),A+=i.skin==="vertical"?r.titleSectionHeight:0),i.showSecondary&&(r.fitSecondaryMeasure=this.getFitSecondaryMeasure(f,i,r),A+=r.valueSectionMarginBottom+r.secSectionHeight+r.secSectionMarginTop+r.borderWidth);const H=this.getCanvasWidth(i,r);r.width=H,r.height=A,sa.setCanvasSizes(t,f,H,A),this.draw(f,i,r)}getFitTitleMeasure(t,i,r){const a=i.skin==="horizontal",f=r.maxWidth-(a?r.fitValueMeasure.width+r.valueSectionMarginRight:0);if(a&&f+r.titleSectionMinWidth<=0)return;const A=sa.getFitStringMeasure(t,i.title.text,f,r.titleFont);return A.width+=a?r.valueSectionMarginRight:0,A.key="title",A}getFitValueMeasure(t,i,r){const a=sa.getFitStringMeasure(t,i.value.text,r.maxWidth,r.valueFont);return a.key="value",a}getFitSecondaryMeasure(t,i,r){const a=r.secDividerWidth,f=r.maxWidth-a,A=f-r.secTitleMinWidth,H=sa.getFitStringMeasure(t,i.secondary.text,A,r.secondaryValueFont),q=f-H.width,J=sa.getFitStringMeasure(t,i.secondaryTitle.text,q,r.secondaryTitleFont);return{width:J.width+H.width+a,titleString:J.string,valueString:H.string,key:"secondary"}}getCanvasWidth(t,i){let r;const a=i.fitTitleMeasure,f=i.fitValueMeasure,A=i.fitSecondaryMeasure;if(i.fitMeasures.some(q=>{const J=i[q.key],ne=t[q.dataKey];return!!(J&&ne&&J[q.prop]!==ne.text)}))return i.maxWidth;if(t.skin==="vertical"){let J=a&&a.width>f.width?a:f;J=A&&A.width>J.width?A:J,r=J.width}else r=f.width,a&&(r+=a.width),A&&A.width>r&&(r=A.width);return r}draw(t,i,r){this.clearCanvas(t,r),this.drawValue(t,i,r),i.showTitle&&this.drawTitle(t,i,r),i.showSecondary&&this.drawSecondary(t,r)}clearCanvas(t,i){t.fillStyle=i.backgroundColor,t.fillRect(0,0,i.width,i.height)}drawTitle(t,i,r){!r.fitTitleMeasure||i.skin==="horizontal"&&r.fitValueMeasure.string!==i[r.fitValueMeasure.key].text||(t.font=r.titleFont,t.fillStyle=r.titleColor,i.skin==="vertical"?(t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,r.titleSectionHeight/2)):(t.textAlign="left",t.textBaseline="top",t.fillText(r.fitTitleMeasure.string,r.fitValueMeasure.width+r.valueSectionMarginRight,r.titleSectionMarginTop)))}drawValue(t,i,r){const a=i.skin==="vertical";t.fillStyle=r.valueColor||i.color,t.font=r.valueFont,t.textAlign=a?"center":"left",t.textBaseline="middle",t.fillText(r.fitValueMeasure.string,a?r.width/2:0,(i.showTitle&&a?r.titleSectionHeight:0)+r.valueSectionHeight/2)}drawSecondary(t,i){let r=i.height-i.secSectionHeight/2;t.font=i.secondaryTitleFont,t.fillStyle=i.secondaryTitleColor,t.textAlign="left",t.textBaseline="middle",t.fillText(i.fitSecondaryMeasure.titleString,0,r),t.font=i.secondaryValueFont,t.fillStyle=i.secondaryValueColor,t.textAlign="right",t.fillText(i.fitSecondaryMeasure.valueString,i.width,r),t.strokeStyle=i.borderColor,t.beginPath(),r=i.height-i.secSectionHeight-i.secSectionMarginTop-i.borderWidth,t.moveTo(0,r),t.lineTo(i.width,r),t.stroke()}}const la=new Dl,Lc=function(e,t){return la.floor(e*t.value,t.decimals)};function WJ(e,t){const i={};return e.forEach(r=>{t.some(function(a){return a.key===r?(i[r]=a,!0):!1})}),i}function $J(e,t,i){const{showTitle:r,showSecondary:a,maxHeight:f,maxWidth:A,bracketThickness:H}=i;for(let q=0;q<t.length;q++){const J=t[q],ne=J.value,se=Lc(ne,e.indicatorMargin);let M=ne+se;if(r){const te=Lc(ne,e.titleSectionHeight);M+=te}if(a){const te=Lc(ne,e.secSectionHeight);M+=te}if(M<=f){const te=Lc(ne,e.numericMinWidth),F=se*2;if(te+H*2+F<=A)return ze(Ae({},J),{maxWidth:A-F,maxHeight:f-se})}}return null}class HJ{getBaseMeasure(t,i,r){const a=i,f="sizes"in a?a.sizes:[],A=a.relativeSizes,H=a.measureKeys.concat(),q=Math.floor(r.clientWidth),J=Math.floor(r.clientHeight),ne=WJ(H,A);return $J(ne,f,{maxWidth:q,maxHeight:J,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:a.bracketThickness})}render(t,i,r,a){const f=t.getContext("2d");let A;r.height=a.value,r.maxWidth=a.maxWidth,r.maxHeight=a.maxHeight,r.offsetY=0,A=r.height,i.showTitle&&(r.fitTitleMeasure=this.getFitTitleMeasure(f,i,r),A+=r.titleSectionHeight),r.fitValueMeasure=this.getFitValueMeasure(f,i,r),i.showSecondary&&(r.fitSecondaryMeasure=this.getFitSecondaryMeasure(f,i,r),A+=r.secSectionHeight);const H=this.getCanvasWidth(i,r);r.width=H,r.height=A,la.setCanvasSizes(t,f,H,A),this.draw(f,i,r)}getFitTitleMeasure(t,i,r){const a=r.bracketWidth*2+r.titleHorizontalMargin*2,f=r.maxWidth-a,A=la.getFitStringMeasure(t,i.title.text,f,r.titleFont);return A.width+=a,A.key="title",A}getFitValueMeasure(t,i,r){const a=r.bracketThickness*2,f=r.maxWidth-a,A=la.getFitStringMeasure(t,i.value.text,f,r.valueFont);return A.width+=a,A.key="value",A}getFitSecondaryMeasure(t,i,r){const a=r.bracketWidth*2+r.secDividerWidth,f=r.maxWidth-a,A=f-r.secTitleMinWidth,H=la.getFitStringMeasure(t,i.secondary.text,A,r.secondaryValueFont),q=f-H.width,J=la.getFitStringMeasure(t,i.secondaryTitle.text,q,r.secondaryTitleFont);return{width:J.width+H.width+a,titleString:J.string,valueString:H.string,key:"secondary"}}getCanvasWidth(t,i){let r=i.numericMinWidth+i.bracketThickness*2;const a=i.fitTitleMeasure,f=i.fitValueMeasure;let H=a&&a.width>f.width?a:f;const q=i.fitSecondaryMeasure,J=q&&q.width>H.width;let ne;return H=J?q:H,J?ne=H.titleString!==t.secondaryTitle.text||H.valueString!==t.secondary.text:ne=H.string!==t[H.key].text,ne?r=i.maxWidth:H.width>r&&(r=H.width),r}draw(t,i,r){this.clearCanvas(t,r),i.showTitle&&this.drawTitle(t,r),this.drawValue(t,i,r),i.showSecondary&&this.drawSecondary(t,r),(i.showTitle||i.showSecondary)&&this.drawBrackets(t,i,r)}clearCanvas(t,i){t.fillStyle=i.backgroundColor,t.fillRect(0,0,i.width,i.height)}drawTitle(t,i){t.font=i.titleFont,t.fillStyle=i.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(i.fitTitleMeasure.string,i.width/2,i.titleSectionHeight/2),i.offsetY+=i.titleSectionHeight}drawValue(t,i,r){const a=r.offsetY;t.fillStyle=r.valueColor,t.fillRect(1,a,r.width-r.bracketThickness*2,r.valueSectionHeight),t.font=r.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitValueMeasure.string,r.width/2,a+r.valueSectionHeight/2)}drawSecondary(t,i){const r=i.height-i.secBottomMargin;t.font=i.secondaryTitleFont,t.fillStyle=i.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(i.fitSecondaryMeasure.titleString,i.bracketWidth,r),t.font=i.secondaryValueFont,t.fillStyle=i.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(i.fitSecondaryMeasure.valueString,i.width-i.bracketWidth,r)}drawBrackets(t,i,r){t.strokeStyle=r.bracketColor,t.beginPath(),i.showTitle?(t.moveTo(r.bracketWidth+.5,.5),t.lineTo(.5,.5)):t.moveTo(.5,.5),t.lineTo(.5,r.height-.5),i.showSecondary&&t.lineTo(r.bracketWidth+.5,r.height-.5),t.stroke(),i.showTitle?(t.moveTo(r.width-(r.bracketWidth+.5),.5),t.lineTo(r.width-.5,.5)):t.moveTo(r.width-.5,.5),t.lineTo(r.width-.5,r.height-.5),i.showSecondary&&t.lineTo(r.width-(r.bracketWidth+.5),r.height-.5),t.stroke(),t.closePath()}}const ei=new Dl,Jo=function(e,t){return ei.floor(e*t.value,t.decimals)};function UJ(e,t){const i={};return e.forEach(r=>{t.some(function(a){return a.key===r?(i[r]=a,!0):!1})}),i}function VJ(e,t,i){const{maxWidth:r,maxHeight:a,showTitle:f,showSecondary:A}=i;for(let H=0;H<t.length;H++){const q=t[H],J=q.value,ne=Jo(J,e.valueSectionHeight),se=Jo(J,e.indicatorMargin),M=Math.ceil(se*1.5);let te=J+ne+M;if(f){const F=Jo(J,e.titleSectionHeight);te+=F}if(A){const F=Jo(J,e.secSectionHeight);te+=F}if(te<=a){const F=Jo(J,e.gaugeWidth),O=Jo(J,e.bracketWidth),$=se*2;if(F+O*2+$<=r)return ze(Ae({},q),{maxWidth:r-$,maxHeight:a-M})}}return null}class GJ{getBaseMeasure(t,i,r){const a=i,f="gaugeHeights"in a?a.gaugeHeights:void 0;if(!f)return null;const A=a.relativeSizes,H=a.measureKeys.concat(),q=Math.floor(r.clientWidth),J=Math.floor(r.clientHeight),ne=UJ(H,A);return VJ(ne,f,{maxWidth:q,maxHeight:J,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,i,r,a){const f=t.getContext("2d");let A=0,H;r.gaugeHeight=a.value,r.size=a.size,r.maxWidth=a.maxWidth,r.maxHeight=a.maxHeight,r.offsetY=0,H=r.gaugeHeight+r.valueSectionHeight,i.showTitle&&(r.fitTitleMeasure=this.getFitTitleMeasure(f,i,r),H+=r.titleSectionHeight),r.fitValueMeasure=this.getFitValueMeasure(f,i,r),i.showSecondary&&(r.fitSecondaryMeasure=this.getFitSecondaryMeasure(f,i,r),H+=r.secSectionHeight),A=this.getCanvasWidth(i,r),r.width=A,r.height=H,ei.setCanvasSizes(t,f,A,H),this.draw(f,i,r)}getFitTitleMeasure(t,i,r){const a=r.bracketWidth*2+r.titleHorizontalMargin*2,f=r.maxWidth-a,A=ei.getFitStringMeasure(t,i.title.text,f,r.titleFont);return A.width+=a,A.key="title",A}getFitValueMeasure(t,i,r){const a=r.bracketThickness*2,f=r.maxWidth-a,A=ei.getFitStringMeasure(t,i.value.text,f,r.valueFont);return A.width+=a,A.key="value",A}getFitSecondaryMeasure(t,i,r){const a=r.bracketWidth*2+r.secDividerWidth,f=r.maxWidth-a,A=f-r.secTitleMinWidth,H=ei.getFitStringMeasure(t,i.secondary.text,A,r.secondaryValueFont),q=f-H.width,J=ei.getFitStringMeasure(t,i.secondaryTitle.text,q,r.secondaryTitleFont);return{width:J.width+H.width+a,titleString:J.string,valueString:H.string,key:"secondary"}}getCanvasWidth(t,i){let r=i.gaugeWidth+i.bracketWidth*2;const a=i.fitTitleMeasure,f=i.fitValueMeasure;let H=a&&a.width>f.width?a:f;const q=i.fitSecondaryMeasure,J=q&&q.width>H.width;let ne;return H=J?q:H,J?ne=H.titleString!==t.secondaryTitle.text||H.valueString!==t.secondary.text:ne=H.string!==t[H.key].text,ne?r=i.maxWidth:H.width>r&&(r=H.width),r}draw(t,i,r){this.clearCanvas(t,r),i.showTitle&&this.drawTitle(t,r),this.drawGauge(t,i,r),this.drawValue(t,i,r),i.showSecondary&&this.drawSecondary(t,r),this.drawBrackets(t,i,r)}clearCanvas(t,i){t.fillStyle=i.backgroundColor,t.fillRect(0,0,i.width,i.height)}drawTitle(t,i){t.font=i.titleFont,t.fillStyle=i.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(i.fitTitleMeasure.string,i.width/2,(i.titleSectionHeight-i.titleBottomMargin)/2),i.offsetY+=i.titleSectionHeight}drawGauge(t,i,r){r.gaugeCenterX=r.width/2,r.gaugeCenterY=r.offsetY+r.gaugeHeight-r.gaugeBottomMargin,r.needleAngle=this.getNeedleAngle(i,r),i.skin===2&&i.conditions&&i.conditions.length?this.drawConditionalDial(t,i,r):this.drawSimpleDial(t,i,r),i.showTicks&&r.size!=="micro"&&this.drawTicks(t,i,r),this.drawNeedle(t,r),i.showLabels&&r.size!=="micro"&&this.drawLabels(t,i,r),r.offsetY+=r.gaugeHeight}drawValue(t,i,r){t.fillStyle=r.valueColor,t.fillRect(1,r.offsetY,r.width-r.bracketThickness*2,r.valueSectionHeight),t.font=r.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitValueMeasure.string,r.width/2,r.offsetY+r.valueSectionHeight/2)}drawSecondary(t,i){const r=i.height-i.secBottomMargin;t.font=i.secondaryTitleFont,t.fillStyle=i.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(i.fitSecondaryMeasure.titleString,i.bracketWidth,r),t.font=i.secondaryValueFont,t.fillStyle=i.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(i.fitSecondaryMeasure.valueString,i.width-i.bracketWidth,r)}drawBrackets(t,i,r){const a=i.showTitle?(r.titleSectionHeight-r.titleBottomMargin)/2:0;t.strokeStyle=r.bracketColor,t.beginPath(),t.moveTo(r.bracketWidth+.5,a+.5),t.lineTo(.5,a+.5),t.lineTo(.5,r.height-.5),i.showSecondary&&t.lineTo(r.bracketWidth+.5,r.height-.5),t.stroke(),t.moveTo(r.width-(r.bracketWidth+.5),a+.5),t.lineTo(r.width-.5,a+.5),t.lineTo(r.width-.5,r.height-.5),i.showSecondary&&t.lineTo(r.width-(r.bracketWidth+.5),r.height-.5),t.stroke(),t.closePath()}getNeedleAngle(t,i){const r=+t.min.data,a=+t.max.data,f=+(t.value.data||0);return f<r?i.startAngle-i.overDegrees:f>a?i.endAngle+i.overDegrees:this.getAngle(i,f,r,a)}getAngle(t,i,r,a){const f=(t.endAngle-t.startAngle)/(a-r);return(i-r)*f+t.startAngle}drawConditionalDial(t,i,r){const a=i.conditions,f=+i.min.data,A=+i.max.data,H=ei.degToRad(r.startAngle+180),q=ei.degToRad(r.endAngle+180);let J;const ne=se=>this.getAngle(r,se,f,A);for(this.drawArc(t,r,H,q,r.defaultDialColor),J=a.length-1;J>=0;J--){const se=a[J];let M=+se.data,te,F=NaN,O=NaN,$=NaN,Y=NaN;const X=.25;switch(se.operator){case"<":if(M<=f)break;M=M>A?A:M,te=ne(M),F=H,O=ei.degToRad(te+180);break;case">":if(M>=A)break;M=M<f?f:M,te=ne(M),F=ei.degToRad(te+180),O=q;break;case"≤":if(M<f)break;M=M>A?A:M,te=ne(M),F=H,O=ei.degToRad(te+(te+X<=r.endAngle?X:0)+180);break;case"≥":if(M>A)break;M=M<f?f:M,te=ne(M),F=ei.degToRad(te-(te-X>=r.startAngle?X:0)+180),O=q;break;case"=":if(M<f||M>A)break;te=ne(M),F=ei.degToRad(te-(te-X>=r.startAngle?X:0)+180),O=ei.degToRad(te+(te+X<=r.endAngle?X:0)+180);break;case"≠":if(M<f||M>A)F=H,O=q;else if(M===f||M===A){const G=M===f;F=ei.degToRad(r.startAngle+(G?X:0)+180),O=ei.degToRad(r.endAngle-(G?0:X)+180)}else te=ne(M),F=H,O=ei.degToRad(te-(te-X>=r.startAngle?X:0)+180),$=ei.degToRad(te+(te+X<=r.endAngle?X:0)+180),Y=q}!isNaN(F)&&!isNaN(O)&&this.drawArc(t,r,F,O,se.color),!isNaN($)&&!isNaN(Y)&&this.drawArc(t,r,$,Y,se.color)}}drawSimpleDial(t,i,r){const a=ei.degToRad(r.startAngle+180),f=ei.degToRad(r.needleAngle+180),A=ei.degToRad(r.endAngle+180);r.needleAngle>r.startAngle&&r.needleAngle<r.endAngle?(this.drawArc(t,r,a,f,r.valueColor),t.globalAlpha=r.gaugeOpacity,this.drawArc(t,r,f,A,r.valueColor)):(r.needleAngle<=r.startAngle&&(t.globalAlpha=r.gaugeOpacity),this.drawArc(t,r,a,A,r.valueColor)),t.globalAlpha=1}drawArc(t,i,r,a,f){t.fillStyle=f,t.beginPath(),t.arc(i.gaugeCenterX,i.gaugeCenterY,i.outerArcRadius,r,a),t.arc(i.gaugeCenterX,i.gaugeCenterY,i.innerArcRadius,a,r,!0),t.fill()}drawTicks(t,i,r){const a=r.startAngle,f=r.endAngle,A=r.tickDegreesIncrement,H=r.needleAngle;let q;for(q=a;q<=f;q+=A){const J=ei.degToRad(q),ne=r.gaugeCenterX-r.lengthToTick*Math.cos(J),se=r.gaugeCenterY-r.lengthToTick*Math.sin(J),M=H<a,te=H>=q-A/2&&H<q+A/2,F=q===f&&H>=q;t.fillStyle=!M&&te||F?i.color:r.tickColor,t.beginPath(),t.arc(ne,se,r.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,i){const r=ei.degToRad(i.needleAngle);t.fillStyle=i.needleColor,t.save(),t.translate(i.gaugeCenterX,i.gaugeCenterY),t.rotate(r),t.translate(-i.gaugeCenterX,-i.gaugeCenterY),t.beginPath(),t.arc(i.gaugeCenterX,i.gaugeCenterY,i.needleBaseRadius,.5*Math.PI,1.5*Math.PI,!0),t.lineTo(i.gaugeCenterX-i.needleLength,i.gaugeCenterY),t.fill(),t.restore()}drawLabels(t,i,r){t.font=r.labelFont,t.fillStyle=r.labelColor,t.textAlign="right",t.textBaseline="middle",t.fillText(i.min.text,r.gaugeCenterX-r.labelMargin,r.gaugeCenterY),t.textAlign="left",t.fillText(i.max.text,r.gaugeCenterX+r.labelMargin,r.gaugeCenterY)}}const Kr=new Dl;class YJ{render(t,i,r,a){const f=t.getContext("2d"),A=Math.floor(a.clientWidth)-r.horizontalMargin*2,H=r.sectionMinWidth;let q=0,J=0,ne=0,se=0,M=0,te=0,F=0,O=0,$;if(f.font=r.valueFont,$=Kr.getStringWidth(f,i.value.text),r.offsetX=0,i.title.text+=":",i.secondaryTitle&&(i.secondaryTitle.text+=":"),i.showTitle&&(f.font=r.titleFont,te=Kr.getStringWidth(f,i.value.text),M=Kr.getStringWidth(f,i.title.text),J=M<H?M:H,$+=J+r.textPadding),i.showSecondary&&(f.font=r.secondaryValueFont,O=Kr.getStringWidth(f,i.secondary.text),se=O<H?O:H,$+=se,f.font=r.secondaryTitleFont||"",F=Kr.getStringWidth(f,i.secondaryTitle.text),ne=F<H?F:H,$+=ne+r.horizontalPadding*2+r.dividerWidth+r.textPadding),i.type==="gauge"){const X=r.horizontalPadding*2+r.dividerWidth;if(r.forceTickerView){const V=te+M+F+O+r.textPadding*4+X,z=A-X-V;r.barWidth=Math.max(z,r.barWidth)}const G=r.barWidth+X;$+=G,r.showTickerBar=$<=A||!0,q+=r.showTickerBar?G:0}q+=i.showTitle?r.textPadding:0,q+=i.showSecondary?r.horizontalPadding*2+r.dividerWidth+r.textPadding:0;const Y=A-q-J-ne-se;if(r.fitValueMeasure=Kr.getFitStringMeasure(f,i.value.text,Y,r.valueFont),q+=r.fitValueMeasure.width,i.showSecondary){const X=A-q-J-ne;let G;r.fitSecValueMeasure=Kr.getFitStringMeasure(f,i.secondary.text,X,r.secondaryValueFont),q+=r.fitSecValueMeasure.width;const V=A-q,z=V/2;i.showTitle?M+F>V?M>z&&F>z?G=z:F>z&&M<=z?G=V-M:G=F:G=F:G=V,r.fitSecTitleMeasure=Kr.getFitStringMeasure(f,i.secondaryTitle.text,G,r.secondaryTitleFont),q+=r.fitSecTitleMeasure.width}if(i.showTitle){const X=A-q;r.fitTitleMeasure=Kr.getFitStringMeasure(f,i.title.text,X,r.titleFont),q+=r.fitTitleMeasure.width}r.width=q,Kr.setCanvasSizes(t,f,q,r.height),this.draw(f,i,r)}draw(t,i,r){this.clearCanvas(t,r),i.type==="gauge"&&r.showTickerBar&&(this.drawTickerBar(t,i,r),this.drawDivider(t,r)),t.textBaseline="middle",i.showTitle&&this.drawTitle(t,r),this.drawValue(t,i,r),i.showSecondary&&(this.drawDivider(t,r),this.drawSecondary(t,r))}clearCanvas(t,i){t.fillStyle=i.backgroundColor,t.fillRect(0,0,i.width,i.height)}drawTickerBar(t,i,r){var J;const a=+i.min.data,f=+i.max.data,A=+(((J=i.value)==null?void 0:J.data)||0),H=Math.round((r.height-r.barHeight)/2);let q;if(t.fillStyle=r.valueColor,A<=a)t.globalAlpha=r.barOpacity,t.fillRect(r.offsetX,H,r.barWidth,r.barHeight),q=0;else if(A>=f)t.fillRect(r.offsetX,H,r.barWidth,r.barHeight),q=r.barWidth-r.tickerBarWidth;else{const ne=(A-Math.abs(a))/(f-a),se=r.barWidth*ne;t.fillRect(r.offsetX,H,se,r.barHeight),t.globalAlpha=r.barOpacity,t.fillRect(r.offsetX+se,H,r.barWidth-se,r.barHeight),se>r.barWidth-r.tickerBarWidth?q=r.barWidth-r.tickerBarWidth:se<r.tickerBarWidth?q=0:q=se-1}t.globalAlpha=1,t.fillStyle=r.barHandleColor,t.fillRect(r.offsetX+q,Math.round((r.height-r.tickerBarHeight)/2),r.tickerBarWidth,r.tickerBarHeight),r.offsetX+=r.barWidth}drawDivider(t,i){t.fillStyle=i.dividerColor,t.fillRect(i.offsetX+i.horizontalPadding,Math.round((i.height-i.dividerHeight)/2),i.dividerWidth,i.dividerHeight),i.offsetX+=i.horizontalPadding*2+i.dividerWidth}drawTitle(t,i){t.font=i.titleFont,t.fillStyle=i.titleColor,t.fillText(i.fitTitleMeasure.string,i.offsetX,Math.floor(i.height/2)),i.offsetX+=i.fitTitleMeasure.width+i.textPadding}drawValue(t,i,r){t.font=r.valueFont,t.fillStyle=r.valueColor||i.color,t.fillText(r.fitValueMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitValueMeasure.width}drawSecondary(t,i){t.font=i.secondaryTitleFont,t.fillStyle=i.secondaryTitleColor,t.fillText(i.fitSecTitleMeasure.string,i.offsetX,Math.floor(i.height/2)),i.offsetX+=i.fitSecTitleMeasure.width+i.textPadding,t.font=i.secondaryValueFont,t.fillStyle=i.secondaryValueColor,t.fillText(i.fitSecValueMeasure.string,i.offsetX,Math.floor(i.height/2))}}const _x={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(0,206,230)",fontSizes:{big:66,medium:46,small:32,micro:23}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",borderColor:"rgb(215, 215, 215)",borderWidth:1,relativeSizes:[{key:"titleSectionHeight",value:.5,decimals:0},{key:"titleSectionMarginTop",value:.13,decimals:0},{key:"titleSectionMinWidth",value:.29,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"valueSectionMarginRight",value:.14,decimals:0},{key:"valueSectionMarginBottom",value:.07,decimals:0},{key:"secSectionHeight",value:.34,decimals:0},{key:"secSectionMarginTop",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"indicatorHorizontalMargin",value:.31,decimals:0},{key:"indicatorVerticalMargin",value:.46,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","titleSectionHeight","secSectionHeight","valueSectionMarginBottom","secSectionMarginTop","indicatorHorizontalMargin","indicatorVerticalMargin"],sizes:[{size:"big",value:70},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}],fitMeasures:[{key:"fitTitleMeasure",prop:"string",dataKey:"title"},{key:"fitValueMeasure",prop:"string",dataKey:"value"},{key:"fitSecondaryMeasure",prop:"titleString",dataKey:"secondaryTitle"},{key:"fitSecondaryMeasure",prop:"valueString",dataKey:"secondary"}]},XJ={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",bracketColor:"rgb(198, 198, 198)",bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:1,decimals:0},{key:"titleHorizontalMargin",value:.16,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"secSectionHeight",value:1,decimals:0},{key:"secBottomMargin",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"bracketWidth",value:.21,decimals:0},{key:"indicatorMargin",value:.64,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","bracketWidth","titleSectionHeight","secSectionHeight"],sizes:[{size:"big",value:70,maxWidth:1261,maxHeight:665},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}]},qJ={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},label:{color:"rgb(68, 81, 102)",fontSizes:{big:18,medium:13,small:9,micro:9}},textKeys:["title","value","secondaryTitle","secondaryValue","label"],backgroundColor:"rgb(255, 255, 255)",tickColor:"rgb(0, 0, 0)",needleColor:"rgb(43, 51, 66)",bracketColor:"rgb(198, 198, 198)",defaultDialColor:"rgb(179, 179, 179)",gaugeOpacity:.5,startAngle:20,endAngle:160,overDegrees:5,tickDegreesIncrement:10,bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:.26,decimals:0},{key:"titleHorizontalMargin",value:.08,decimals:0},{key:"titleBottomMargin",value:.1,decimals:0},{key:"gaugeWidth",value:1.33,decimals:0},{key:"gaugeBottomMargin",value:.19,decimals:0},{key:"outerArcRadius",value:.63,decimals:0},{key:"innerArcRadius",dataKey:"skin",values:{1:.24,2:.51},decimals:0},{key:"lengthToTick",value:.7,decimals:0},{key:"tickRadius",value:.01,decimals:1},{key:"needleLength",dataKey:"skin",values:{1:.52,2:.58},decimals:0},{key:"needleBaseRadius",value:.04,decimals:0},{key:"labelMargin",value:.26,decimals:0},{key:"valueSectionHeight",value:.36,decimals:0},{key:"secSectionHeight",value:.36,decimals:0},{key:"secBottomMargin",value:.05,decimals:0},{key:"secDividerWidth",value:.05,decimals:0},{key:"secTitleMinWidth",value:.1,decimals:0},{key:"bracketWidth",value:.08,decimals:0},{key:"indicatorMargin",value:.14,decimals:0}],gaugeHeights:[{size:"big",value:192,maxWidth:1297,maxHeight:1075},{size:"medium",value:134},{size:"small",value:94},{size:"micro",value:66}],measureKeys:["indicatorMargin","gaugeWidth","bracketWidth","titleSectionHeight","valueSectionHeight","secSectionHeight"]},ZJ={fontFamily:"Open Sans",fontSize:15,title:{color:"rgb(68, 81, 102)"},value:{fontWeight:800},secondaryTitle:{color:"rgb(163, 163, 163)"},secondaryValue:{color:"rgb(163, 163, 163)"},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"transparent",dividerColor:"rgb(39, 42, 52)",barHandleColor:"rgb(43, 51, 66)",height:35,horizontalMargin:15,barWidth:100,barHeight:11,barOpacity:.5,tickerBarWidth:2,tickerBarHeight:13,horizontalPadding:9,textPadding:6,sectionMinWidth:20,dividerWidth:1,dividerHeight:13,forceTickerView:!1};function KJ(e,t){const i=lr(ZJ);if(i.forceTickerView=t.forceTickerView,i.fontFamily=t.fontFamily,i.backgroundColor=t.backgroundColor,i.value.color=t.value.color,i.title.color=t.title.color,i.secondaryTitle.color=t.secondaryTitle.color,i.secondaryValue.color=t.secondaryTitle.color,t.tickerBarHeight){const r=t.tickerBarHeight;i.barHeight=r,i.tickerBarHeight=r+2}return i.forceTickerView&&(i.height=e.offsetHeight),i}const QJ=new Dl,JJ=new FJ,eee=new HJ,tee=new GJ,iee=new YJ;class ree{getService(t){switch(t){case"numericSimple":return JJ;case"numericBar":return eee;case"gauge":return tee;case"ticker":return iee}}render(t,i,r,a){let f=this.getService(i.type);const A="getBaseMeasure"in f?f.getBaseMeasure(i,r,a):void 0;if(!A||r.forceTickerView){f=this.getService("ticker");const H=KJ(t,r);this.setTextOptions(H),f.render(t,i,H,a);return}this.calculateRelativeSizes(i,r,A.value),this.setTextOptions(r,A.size),f.render(t,i,r,A)}calculateRelativeSizes(t,i,r){const{relativeSizes:a}=i;a.forEach(function(f){let A;if("dataKey"in f&&"values"in f&&f.dataKey in t)A=f.values[t[f.dataKey]];else if("value"in f)A=f.value;else throw new Error("Invalid relative size options");const H=A*r;i[f.key]=QJ.floor(H,f.decimals)})}setTextOptions(t,i){t.textKeys.forEach(function(r){const a=t[r],f=a.fontStyle?`${a.fontStyle} `:"",A=a.fontVariant?`${a.fontVariant} `:"",H=a.fontWeight?`${a.fontWeight} `:"",q=`${Number.parseFloat(a.fontSizes&&a.fontSizes[i]||a.fontSize||t.fontSize)}px `,J=a.fontFamily||t.fontFamily,{color:ne}=a;t[`${r}Font`]=f+A+H+q+J,t[`${r}Color`]=ne})}}function _M(e){var i;const t=(i=e.value)==null?void 0:i[0];if(t&&"color"in t)return t.color}function nee(e,t,i){if(!oee(e))return i;const a=Lg(e).getColor(t);return a?ze(Ae({},i),{value:ze(Ae({},i.value),{color:a})}):i}function oee(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}var aee=Jn,see=Lr,lee="[object Number]";function cee(e){return typeof e=="number"||see(e)&&aee(e)==lee}var CM=cee;const Sa=Et(CM),uee=(e,t)=>{const i=_M(t);return i&&e.value?Lg(i).getColor(Sa(e.value)?e.value:0):null},hee=(e,t,i)=>{var se,M,te,F,O,$,Y,X,G,V,z,D;const r=Sa(e.min)?e.min:0,a=Sa(e.max)?e.max:100,f=Dc(i,"value"),A=Dc(i,"secondary"),H=Dc(i,"min"),q=Dc(i,"max"),J=uee(e,i),ne=t.indicatorType==="gauge"?1:"vertical";return ze(Ae(Ae({},pee),J?{color:J}:null),{type:dee(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||ne,title:{text:(te=(M=(se=t.indicatorComponents)==null?void 0:se.title)==null?void 0:M.text)!=null?te:""},min:{data:r,text:ii(H,r)},max:{data:a,text:ii(q,a)},value:{data:e.value,text:Cx(e.value,f)},secondary:{data:e.secondary,text:Cx(e.secondary,A)},secondaryTitle:{text:($=(O=(F=t.indicatorComponents)==null?void 0:F.secondaryTitle)==null?void 0:O.text)!=null?$:""},showSecondary:e.secondary!==void 0,showTitle:!!((X=(Y=t.indicatorComponents)==null?void 0:Y.title)!=null&&X.shouldBeShown),showLabels:!!((V=(G=t.indicatorComponents)==null?void 0:G.labels)!=null&&V.shouldBeShown),showTicks:!!((D=(z=t.indicatorComponents)==null?void 0:z.ticks)!=null&&D.shouldBeShown)})};function dee(e,t){return e==="numeric"?t:e}function Dc(e,t){var r;const i=(r=e[t])==null?void 0:r[0];return Vt(i&&"numberFormatConfig"in i?i.numberFormatConfig:{})}const pee={color:"#00cee6",showSecondary:!1};function Cx(e,t){return e===void 0?"":isNaN(e)?"#N/A":ii(t,e)}function fee(e,t,i){const r=lr(i);for(const a in t){const f=t[a],A=mee(e,f);A&&SM(r,a,A)}return r}function SM(e,t,i){const r=t.split(".");if(r.length===1)if(r[0]in e)e[r[0]]=i;else return;else{const[a,...f]=r;if(!(a in e))return;const A=e[a];if(!MM(A))return;SM(A,f.join("."),i)}}function mee(e,t){const i=t.split(".");let r=e;for(const a of i){if(!MM(r)||!(a in r))return;r=r[a]}return r}function MM(e){return typeof e=="object"&&e!==null}function gee(e,t,i){return fee(e,t,i)}const vee={fontFamily:"typography.fontFamily","title.color":"chart.textColor",backgroundColor:"chart.backgroundColor","label.color":"chart.textColor","secondaryTitle.color":"chart.secondaryTextColor","secondaryValue.color":"chart.secondaryTextColor","value.color":"palette.variantColors.0"},yee=(e,t)=>{const{chartData:i,dataOptions:r,themeSettings:a}=t,{type:f}=e;let A;switch(f){case"gauge":A=qJ;break;case"numeric":e.numericSubtype==="numericBar"?A=XJ:A=_x;break;default:A=_x}a&&(A=gee(a,vee,A));const H=_M(r);return H&&i.value&&Sa(i.value)&&(A=nee(H,i.value,A)),Ae(ze(Ae({},A),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};var bee=lh;function xee(e,t){return bee(e,t)}var wee=xee;const Ng=Et(wee);function TM(e){return typeof e=="string"}function _ee(e){var q;const t=dr().themeSettings,[i,r]=Be.useState(Mh()),[a,f]=Be.useState(null),A=(q=Pi().app)==null?void 0:q.httpClient;return Be.useEffect(()=>{e&&(TM(e)?A&&HC(e,A).then(r).catch(f):r(e))},[e,A]),a?[null,a]:Ng(t,i)?[t,null]:[hi.withOptions({mergeArrays:!1},t,i),null]}const Ig=jo({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:i}=e,[r,a]=_ee(t);if(a)throw a;return Oe.jsx(Oe.Fragment,{children:r&&Oe.jsx(Cg.Provider,{value:{themeSettings:r},children:i})})}),Cee=({chartData:e,dataOptions:t,designOptions:i})=>{var A;const r=Be.useRef(null),a=Be.useRef(null),{themeSettings:f}=dr();return Be.useEffect(()=>{if(!a.current||!r.current)return;const H=new ree,q=hee(e,i,t),J=yee({type:i.indicatorType,numericSubtype:"numericSubtype"in i?i.numericSubtype:void 0,forceTickerView:i.forceTickerView,tickerBarHeight:i.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:f});H.render(a.current,q,J,r.current)},[e,t,i,f]),Oe.jsx("div",{ref:r,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(A=f==null?void 0:f.chart)==null?void 0:A.backgroundColor},"aria-label":"indicator-root",children:Oe.jsx("canvas",{ref:a})})},See=e=>e.type==="indicator",Mee=e=>"min"in e,Tee=e=>"indicatorComponents"in e,Pee=e=>!!e.chartData&&See(e.chartData)&&Mee(e.dataOptions)&&Tee(e.designOptions);var Uf={exports:{}};/* @preserve
20
+ You may have forgotten to import it.`);var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,f,A;i!==void 0&&(f=i.label,A=i.target);var H=nb(t,i,r),q=H||rb(a),J=!q("as");return function(){var ne=arguments,se=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(f!==void 0&&se.push("label:"+f+";"),ne[0]==null||ne[0].raw===void 0)se.push.apply(se,ne);else{process.env.NODE_ENV!=="production"&&ne[0][0]===void 0&&console.error(ob),se.push(ne[0][0]);for(var M=ne.length,te=1;te<M;te++)process.env.NODE_ENV!=="production"&&ne[0][te]===void 0&&console.error(ob),se.push(ne[te],ne[0][te])}var F=Ch(function(O,$,Y){var X=J&&O.as||a,G="",V=[],z=O;if(O.theme==null){z={};for(var D in O)z[D]=O[D];z.theme=Ie.useContext(eo)}typeof O.className=="string"?G=eg($.registered,V,O.className):O.className!=null&&(G=O.className+" ");var R=xa(se.concat(V),$.registered,z);G+=$.key+"-"+R.name,A!==void 0&&(G+=" "+A);var w=J&&H===void 0?rb(X):q,T={};for(var p in O)J&&p==="as"||w(p)&&(T[p]=O[p]);return T.className=G,T.ref=Y,Ie.createElement(Ie.Fragment,null,Ie.createElement(u4,{cache:$,serialized:R,isStringTag:typeof X=="string"}),Ie.createElement(X,T))});return F.displayName=f!==void 0?f:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",F.defaultProps=t.defaultProps,F.__emotion_real=F,F.__emotion_base=a,F.__emotion_styles=se,F.__emotion_forwardProp=H,Object.defineProperty(F,"toString",{value:function(){return A===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+A}}),F.withComponent=function(O,$){return e(O,Fe({},i,$,{shouldForwardProp:nb(F,$,!0)})).apply(void 0,se)},F}},d4=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Gr=h4.bind();d4.forEach(function(e){Gr[e]=Gr(e)});function Ro(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function wa(e){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}function gn(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Sl(e){gn(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||wa(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function p4(e,t){gn(2,arguments);var i=Sl(e),r=Ro(t);if(isNaN(r))return new Date(NaN);if(!r)return i;var a=i.getDate(),f=new Date(i.getTime());f.setMonth(i.getMonth()+r+1,0);var A=f.getDate();return a>=A?f:(i.setFullYear(f.getFullYear(),f.getMonth(),a),i)}var f4={};function m4(){return f4}function ab(e,t){var i,r,a,f,A,H,q,J;gn(1,arguments);var ne=m4(),se=Ro((i=(r=(a=(f=t==null?void 0:t.weekStartsOn)!==null&&f!==void 0?f:t==null||(A=t.locale)===null||A===void 0||(H=A.options)===null||H===void 0?void 0:H.weekStartsOn)!==null&&a!==void 0?a:ne.weekStartsOn)!==null&&r!==void 0?r:(q=ne.locale)===null||q===void 0||(J=q.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&i!==void 0?i:0);if(!(se>=0&&se<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var M=Sl(e),te=M.getUTCDay(),F=(te<se?7:0)+te-se;return M.setUTCDate(M.getUTCDate()-F),M.setUTCHours(0,0,0,0),M}var g4={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},v4=function(t,i,r){var a,f=g4[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};function St(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.width?String(t.width):e.defaultWidth,r=e.formats[i]||e.formats[e.defaultWidth];return r}}var y4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},b4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},x4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},w4={date:St({formats:y4,defaultWidth:"full"}),time:St({formats:b4,defaultWidth:"full"}),dateTime:St({formats:x4,defaultWidth:"full"})},_4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},C4=function(t,i,r,a){return _4[t]};function at(e){return function(t,i){var r=i!=null&&i.context?String(i.context):"standalone",a;if(r==="formatting"&&e.formattingValues){var f=e.defaultFormattingWidth||e.defaultWidth,A=i!=null&&i.width?String(i.width):f;a=e.formattingValues[A]||e.formattingValues[f]}else{var H=e.defaultWidth,q=i!=null&&i.width?String(i.width):e.defaultWidth;a=e.values[q]||e.values[H]}var J=e.argumentCallback?e.argumentCallback(t):t;return a[J]}}var S4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},M4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},T4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},P4={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},k4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},E4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},A4=function(t,i){var r=Number(t),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},O4={ordinalNumber:A4,era:at({values:S4,defaultWidth:"wide"}),quarter:at({values:M4,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:T4,defaultWidth:"wide"}),day:at({values:P4,defaultWidth:"wide"}),dayPeriod:at({values:k4,defaultWidth:"wide",formattingValues:E4,defaultFormattingWidth:"wide"})};function st(e){return function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=i.width,a=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],f=t.match(a);if(!f)return null;var A=f[0],H=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],q=Array.isArray(H)?D4(H,function(se){return se.test(A)}):L4(H,function(se){return se.test(A)}),J;J=e.valueCallback?e.valueCallback(q):q,J=i.valueCallback?i.valueCallback(J):J;var ne=t.slice(A.length);return{value:J,rest:ne}}}function L4(e,t){for(var i in e)if(e.hasOwnProperty(i)&&t(e[i]))return i}function D4(e,t){for(var i=0;i<e.length;i++)if(t(e[i]))return i}function Rr(e){return function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var a=r[0],f=t.match(e.parsePattern);if(!f)return null;var A=e.valueCallback?e.valueCallback(f[0]):f[0];A=i.valueCallback?i.valueCallback(A):A;var H=t.slice(a.length);return{value:A,rest:H}}}var R4=/^(\d+)(th|st|nd|rd)?/i,N4=/\d+/i,I4={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},j4={any:[/^b/i,/^(a|c)/i]},B4={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},z4={any:[/1/i,/2/i,/3/i,/4/i]},F4={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},W4={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},$4={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},H4={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},U4={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},V4={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},G4={ordinalNumber:Rr({matchPattern:R4,parsePattern:N4,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:I4,defaultMatchWidth:"wide",parsePatterns:j4,defaultParseWidth:"any"}),quarter:st({matchPatterns:B4,defaultMatchWidth:"wide",parsePatterns:z4,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:F4,defaultMatchWidth:"wide",parsePatterns:W4,defaultParseWidth:"any"}),day:st({matchPatterns:$4,defaultMatchWidth:"wide",parsePatterns:H4,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:U4,defaultMatchWidth:"any",parsePatterns:V4,defaultParseWidth:"any"})},Y4={code:"en-US",formatDistance:v4,formatLong:w4,formatRelative:C4,localize:O4,match:G4,options:{weekStartsOn:0,firstWeekContainsDate:1}};function bC(e,t){gn(2,arguments);var i=Ro(t);return p4(e,i*12)}var xC=6e4,wC=36e5;function Sh(e,t){var i;gn(1,arguments);var r=Ro((i=void 0)!==null&&i!==void 0?i:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=K4(e),f;if(a.date){var A=Q4(a.date,r);f=J4(A.restDateString,A.year)}if(!f||isNaN(f.getTime()))return new Date(NaN);var H=f.getTime(),q=0,J;if(a.time&&(q=e$(a.time),isNaN(q)))return new Date(NaN);if(a.timezone){if(J=t$(a.timezone),isNaN(J))return new Date(NaN)}else{var ne=new Date(H+q),se=new Date(0);return se.setFullYear(ne.getUTCFullYear(),ne.getUTCMonth(),ne.getUTCDate()),se.setHours(ne.getUTCHours(),ne.getUTCMinutes(),ne.getUTCSeconds(),ne.getUTCMilliseconds()),se}return new Date(H+q+J)}var wc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},X4=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,q4=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Z4=/^([+-])(\d{2})(?::?(\d{2}))?$/;function K4(e){var t={},i=e.split(wc.dateTimeDelimiter),r;if(i.length>2)return t;if(/:/.test(i[0])?r=i[0]:(t.date=i[0],r=i[1],wc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(wc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){var a=wc.timezone.exec(r);a?(t.time=r.replace(a[1],""),t.timezone=a[1]):t.time=r}return t}function Q4(e,t){var i=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(i);if(!r)return{year:NaN,restDateString:""};var a=r[1]?parseInt(r[1]):null,f=r[2]?parseInt(r[2]):null;return{year:f===null?a:f*100,restDateString:e.slice((r[1]||r[2]).length)}}function J4(e,t){if(t===null)return new Date(NaN);var i=e.match(X4);if(!i)return new Date(NaN);var r=!!i[4],a=ws(i[1]),f=ws(i[2])-1,A=ws(i[3]),H=ws(i[4]),q=ws(i[5])-1;if(r)return a$(t,H,q)?i$(t,H,q):new Date(NaN);var J=new Date(0);return!n$(t,f,A)||!o$(t,a)?new Date(NaN):(J.setUTCFullYear(t,f,Math.max(a,A)),J)}function ws(e){return e?parseInt(e):1}function e$(e){var t=e.match(q4);if(!t)return NaN;var i=Gd(t[1]),r=Gd(t[2]),a=Gd(t[3]);return s$(i,r,a)?i*wC+r*xC+a*1e3:NaN}function Gd(e){return e&&parseFloat(e.replace(",","."))||0}function t$(e){if(e==="Z")return 0;var t=e.match(Z4);if(!t)return 0;var i=t[1]==="+"?-1:1,r=parseInt(t[2]),a=t[3]&&parseInt(t[3])||0;return l$(r,a)?i*(r*wC+a*xC):NaN}function i$(e,t,i){var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,f=(t-1)*7+i+1-a;return r.setUTCDate(r.getUTCDate()+f),r}var r$=[31,null,31,30,31,30,31,31,30,31,30,31];function _C(e){return e%400===0||e%4===0&&e%100!==0}function n$(e,t,i){return t>=0&&t<=11&&i>=1&&i<=(r$[t]||(_C(e)?29:28))}function o$(e,t){return t>=1&&t<=(_C(e)?366:365)}function a$(e,t,i){return t>=1&&t<=53&&i>=0&&i<=6}function s$(e,t,i){return e===24?t===0&&i===0:i>=0&&i<60&&t>=0&&t<60&&e>=0&&e<25}function l$(e,t){return t>=0&&t<=59}function CC(e,t){gn(2,arguments);var i=Ro(t);return bC(e,-i)}function c$(e){gn(1,arguments);var t=Sl(e),i=t.getFullYear(),r=t.getMonth(),a=new Date(0);return a.setFullYear(i,r+1,0),a.setHours(0,0,0,0),a.getDate()}function u$(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yp(e,t){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Yp(e,t)}function h$(e,t){if(wa(e)!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var r=i.call(e,t||"default");if(wa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e){var t=h$(e,"string");return wa(t)=="symbol"?t:t+""}function p$(e,t,i){return t=d$(t),t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function f$(e,t){gn(2,arguments);var i=Sl(e),r=Ro(t),a=i.getFullYear(),f=i.getDate(),A=new Date(0);A.setFullYear(a,r,15),A.setHours(0,0,0,0);var H=c$(A);return i.setMonth(r,Math.min(f,H)),i}function m$(e,t){gn(2,arguments);var i=Sl(e),r=Ro(t);return isNaN(i.getTime())?new Date(NaN):(i.setFullYear(r),i)}function Zs(e,t,i){gn(2,arguments);var r=ab(e,i),a=ab(t,i);return r.getTime()===a.getTime()}var sb={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},g$=function(t,i,r){var a,f=r!=null&&r.addSuffix?sb[t].withPreposition:sb[t].standalone;return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:"vor "+a:a},v$={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},y$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},b$={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},x$={date:St({formats:v$,defaultWidth:"full"}),time:St({formats:y$,defaultWidth:"full"}),dateTime:St({formats:b$,defaultWidth:"full"})},w$={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},_$=function(t,i,r,a){return w$[t]},C$={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},S$={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},Xp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},M$={narrow:Xp.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:Xp.wide},T$={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},P$={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},k$={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},E$=function(t){var i=Number(t);return i+"."},A$={ordinalNumber:E$,era:at({values:C$,defaultWidth:"wide"}),quarter:at({values:S$,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:Xp,formattingValues:M$,defaultWidth:"wide"}),day:at({values:T$,defaultWidth:"wide"}),dayPeriod:at({values:P$,defaultWidth:"wide",formattingValues:k$,defaultFormattingWidth:"wide"})},O$=/^(\d+)(\.)?/i,L$=/\d+/i,D$={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},R$={any:[/^v/i,/^n/i]},N$={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},I$={any:[/1/i,/2/i,/3/i,/4/i]},j$={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},B$={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},z$={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},F$={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},W$={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},$$={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},H$={ordinalNumber:Rr({matchPattern:O$,parsePattern:L$,valueCallback:function(t){return parseInt(t)}}),era:st({matchPatterns:D$,defaultMatchWidth:"wide",parsePatterns:R$,defaultParseWidth:"any"}),quarter:st({matchPatterns:N$,defaultMatchWidth:"wide",parsePatterns:I$,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:j$,defaultMatchWidth:"wide",parsePatterns:B$,defaultParseWidth:"any"}),day:st({matchPatterns:z$,defaultMatchWidth:"wide",parsePatterns:F$,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:W$,defaultMatchWidth:"wide",parsePatterns:$$,defaultParseWidth:"any"})},U$={code:"de",formatDistance:g$,formatLong:x$,formatRelative:_$,localize:A$,match:H$,options:{weekStartsOn:1,firstWeekContainsDate:4}},V$={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},G$=function(t,i,r){var a,f=V$[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+a:"hace "+a:a},Y$={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},X$={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},q$={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Z$={date:St({formats:Y$,defaultWidth:"full"}),time:St({formats:X$,defaultWidth:"full"}),dateTime:St({formats:q$,defaultWidth:"full"})},K$={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},Q$={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},J$=function(t,i,r,a){return i.getUTCHours()!==1?Q$[t]:K$[t]},eH={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},tH={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},iH={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},rH={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},nH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},oH={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},aH=function(t,i){var r=Number(t);return r+"º"},sH={ordinalNumber:aH,era:at({values:eH,defaultWidth:"wide"}),quarter:at({values:tH,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:at({values:iH,defaultWidth:"wide"}),day:at({values:rH,defaultWidth:"wide"}),dayPeriod:at({values:nH,defaultWidth:"wide",formattingValues:oH,defaultFormattingWidth:"wide"})},lH=/^(\d+)(º)?/i,cH=/\d+/i,uH={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},hH={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},dH={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},pH={any:[/1/i,/2/i,/3/i,/4/i]},fH={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},mH={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},gH={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},vH={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},yH={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},bH={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},xH={ordinalNumber:Rr({matchPattern:lH,parsePattern:cH,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:uH,defaultMatchWidth:"wide",parsePatterns:hH,defaultParseWidth:"any"}),quarter:st({matchPatterns:dH,defaultMatchWidth:"wide",parsePatterns:pH,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:fH,defaultMatchWidth:"wide",parsePatterns:mH,defaultParseWidth:"any"}),day:st({matchPatterns:gH,defaultMatchWidth:"wide",parsePatterns:vH,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:yH,defaultMatchWidth:"any",parsePatterns:bH,defaultParseWidth:"any"})},wH={code:"es",formatDistance:G$,formatLong:Z$,formatRelative:J$,localize:sH,match:xH,options:{weekStartsOn:1,firstWeekContainsDate:1}},_H={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},CH=function(t,i,r){var a,f=_H[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+a:"il y a "+a:a},SH={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},MH={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},TH={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},PH={date:St({formats:SH,defaultWidth:"full"}),time:St({formats:MH,defaultWidth:"full"}),dateTime:St({formats:TH,defaultWidth:"full"})},kH={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},EH=function(t,i,r,a){return kH[t]},AH={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},OH={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},LH={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},DH={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},RH={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},NH=function(t,i){var r=Number(t),a=i==null?void 0:i.unit;if(r===0)return"0";var f=["year","week","hour","minute","second"],A;return r===1?A=a&&f.includes(a)?"ère":"er":A="ème",r+A},IH={ordinalNumber:NH,era:at({values:AH,defaultWidth:"wide"}),quarter:at({values:OH,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:LH,defaultWidth:"wide"}),day:at({values:DH,defaultWidth:"wide"}),dayPeriod:at({values:RH,defaultWidth:"wide"})},jH=/^(\d+)(ième|ère|ème|er|e)?/i,BH=/\d+/i,zH={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},FH={any:[/^av/i,/^ap/i]},WH={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},$H={any:[/1/i,/2/i,/3/i,/4/i]},HH={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},UH={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},VH={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},GH={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},YH={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},XH={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},qH={ordinalNumber:Rr({matchPattern:jH,parsePattern:BH,valueCallback:function(t){return parseInt(t)}}),era:st({matchPatterns:zH,defaultMatchWidth:"wide",parsePatterns:FH,defaultParseWidth:"any"}),quarter:st({matchPatterns:WH,defaultMatchWidth:"wide",parsePatterns:$H,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:HH,defaultMatchWidth:"wide",parsePatterns:UH,defaultParseWidth:"any"}),day:st({matchPatterns:VH,defaultMatchWidth:"wide",parsePatterns:GH,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:YH,defaultMatchWidth:"any",parsePatterns:XH,defaultParseWidth:"any"})},ZH={code:"fr",formatDistance:CH,formatLong:PH,formatRelative:EH,localize:IH,match:qH,options:{weekStartsOn:1,firstWeekContainsDate:4}},KH={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},QH=function(t,i,r){var a,f=KH[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"tra "+a:a+" fa":a},JH={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},e6={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},t6={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},i6={date:St({formats:JH,defaultWidth:"full"}),time:St({formats:e6,defaultWidth:"full"}),dateTime:St({formats:t6,defaultWidth:"full"})},ag=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function r6(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+ag[e]+" scorso alle' p"}}function lb(e){return"'"+ag[e]+" alle' p"}function n6(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+ag[e]+" prossimo alle' p"}}var o6={lastWeek:function(t,i,r){var a=t.getUTCDay();return Zs(t,i,r)?lb(a):r6(a)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,i,r){var a=t.getUTCDay();return Zs(t,i,r)?lb(a):n6(a)},other:"P"},a6=function(t,i,r,a){var f=o6[t];return typeof f=="function"?f(i,r,a):f},s6={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},l6={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},c6={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},u6={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},h6={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},d6={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},p6=function(t,i){var r=Number(t);return String(r)},f6={ordinalNumber:p6,era:at({values:s6,defaultWidth:"wide"}),quarter:at({values:l6,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:c6,defaultWidth:"wide"}),day:at({values:u6,defaultWidth:"wide"}),dayPeriod:at({values:h6,defaultWidth:"wide",formattingValues:d6,defaultFormattingWidth:"wide"})},m6=/^(\d+)(º)?/i,g6=/\d+/i,v6={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},y6={any:[/^a/i,/^(d|e)/i]},b6={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},x6={any:[/1/i,/2/i,/3/i,/4/i]},w6={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},_6={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},C6={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},S6={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},M6={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},T6={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},P6={ordinalNumber:Rr({matchPattern:m6,parsePattern:g6,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:v6,defaultMatchWidth:"wide",parsePatterns:y6,defaultParseWidth:"any"}),quarter:st({matchPatterns:b6,defaultMatchWidth:"wide",parsePatterns:x6,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:w6,defaultMatchWidth:"wide",parsePatterns:_6,defaultParseWidth:"any"}),day:st({matchPatterns:C6,defaultMatchWidth:"wide",parsePatterns:S6,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:M6,defaultMatchWidth:"any",parsePatterns:T6,defaultParseWidth:"any"})},k6={code:"it",formatDistance:QH,formatLong:i6,formatRelative:a6,localize:f6,match:P6,options:{weekStartsOn:1,firstWeekContainsDate:4}},E6={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},A6=function(t,i,r){r=r||{};var a,f=E6[t];return typeof f=="string"?a=f:i===1?r.addSuffix&&f.oneWithSuffix?a=f.oneWithSuffix:a=f.one:r.addSuffix&&f.otherWithSuffix?a=f.otherWithSuffix.replace("{{count}}",String(i)):a=f.other.replace("{{count}}",String(i)),r.addSuffix?r.comparison&&r.comparison>0?a+"後":a+"前":a},O6={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},L6={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},D6={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},R6={date:St({formats:O6,defaultWidth:"full"}),time:St({formats:L6,defaultWidth:"full"}),dateTime:St({formats:D6,defaultWidth:"full"})},N6={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},I6=function(t,i,r,a){return N6[t]},j6={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},B6={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},z6={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},F6={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},W6={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},$6={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},H6=function(t,i){var r=Number(t),a=String(i==null?void 0:i.unit);switch(a){case"year":return"".concat(r,"年");case"quarter":return"第".concat(r,"四半期");case"month":return"".concat(r,"月");case"week":return"第".concat(r,"週");case"date":return"".concat(r,"日");case"hour":return"".concat(r,"時");case"minute":return"".concat(r,"分");case"second":return"".concat(r,"秒");default:return"".concat(r)}},U6={ordinalNumber:H6,era:at({values:j6,defaultWidth:"wide"}),quarter:at({values:B6,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:at({values:z6,defaultWidth:"wide"}),day:at({values:F6,defaultWidth:"wide"}),dayPeriod:at({values:W6,defaultWidth:"wide",formattingValues:$6,defaultFormattingWidth:"wide"})},V6=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,G6=/\d+/i,Y6={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},X6={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},q6={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},Z6={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},K6={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},Q6={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},J6={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},e8={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},t8={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},i8={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},r8={ordinalNumber:Rr({matchPattern:V6,parsePattern:G6,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:Y6,defaultMatchWidth:"wide",parsePatterns:X6,defaultParseWidth:"any"}),quarter:st({matchPatterns:q6,defaultMatchWidth:"wide",parsePatterns:Z6,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:K6,defaultMatchWidth:"wide",parsePatterns:Q6,defaultParseWidth:"any"}),day:st({matchPatterns:J6,defaultMatchWidth:"wide",parsePatterns:e8,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:t8,defaultMatchWidth:"any",parsePatterns:i8,defaultParseWidth:"any"})},n8={code:"ja",formatDistance:A6,formatLong:R6,formatRelative:I6,localize:U6,match:r8,options:{weekStartsOn:0,firstWeekContainsDate:1}},o8={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},a8=function(t,i,r){var a,f=o8[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" 후":a+" 전":a},s8={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},l8={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},c8={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},u8={date:St({formats:s8,defaultWidth:"full"}),time:St({formats:l8,defaultWidth:"full"}),dateTime:St({formats:c8,defaultWidth:"full"})},h8={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},d8=function(t,i,r,a){return h8[t]},p8={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},f8={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},m8={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},g8={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},v8={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},y8={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},b8=function(t,i){var r=Number(t),a=String(i==null?void 0:i.unit);switch(a){case"minute":case"second":return String(r);case"date":return r+"일";default:return r+"번째"}},x8={ordinalNumber:b8,era:at({values:p8,defaultWidth:"wide"}),quarter:at({values:f8,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:m8,defaultWidth:"wide"}),day:at({values:g8,defaultWidth:"wide"}),dayPeriod:at({values:v8,defaultWidth:"wide",formattingValues:y8,defaultFormattingWidth:"wide"})},w8=/^(\d+)(일|번째)?/i,_8=/\d+/i,C8={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},S8={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},M8={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},T8={any:[/1/i,/2/i,/3/i,/4/i]},P8={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},k8={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},E8={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},A8={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},O8={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},L8={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},D8={ordinalNumber:Rr({matchPattern:w8,parsePattern:_8,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:C8,defaultMatchWidth:"wide",parsePatterns:S8,defaultParseWidth:"any"}),quarter:st({matchPatterns:M8,defaultMatchWidth:"wide",parsePatterns:T8,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:P8,defaultMatchWidth:"wide",parsePatterns:k8,defaultParseWidth:"any"}),day:st({matchPatterns:E8,defaultMatchWidth:"wide",parsePatterns:A8,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:O8,defaultMatchWidth:"any",parsePatterns:L8,defaultParseWidth:"any"})},R8={code:"ko",formatDistance:a8,formatLong:u8,formatRelative:d8,localize:x8,match:D8,options:{weekStartsOn:0,firstWeekContainsDate:1}},N8={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},I8=function(t,i,r){var a,f=N8[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"over "+a:a+" geleden":a},j8={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},B8={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},z8={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},F8={date:St({formats:j8,defaultWidth:"full"}),time:St({formats:B8,defaultWidth:"full"}),dateTime:St({formats:z8,defaultWidth:"full"})},W8={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},$8=function(t,i,r,a){return W8[t]},H8={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},U8={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},V8={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},G8={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},Y8={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},X8=function(t,i){var r=Number(t);return r+"e"},q8={ordinalNumber:X8,era:at({values:H8,defaultWidth:"wide"}),quarter:at({values:U8,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:V8,defaultWidth:"wide"}),day:at({values:G8,defaultWidth:"wide"}),dayPeriod:at({values:Y8,defaultWidth:"wide"})},Z8=/^(\d+)e?/i,K8=/\d+/i,Q8={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},J8={any:[/^v/,/^n/]},e9={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},t9={any:[/1/i,/2/i,/3/i,/4/i]},i9={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},r9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},n9={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},o9={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},a9={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},s9={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},l9={ordinalNumber:Rr({matchPattern:Z8,parsePattern:K8,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:Q8,defaultMatchWidth:"wide",parsePatterns:J8,defaultParseWidth:"any"}),quarter:st({matchPatterns:e9,defaultMatchWidth:"wide",parsePatterns:t9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:i9,defaultMatchWidth:"wide",parsePatterns:r9,defaultParseWidth:"any"}),day:st({matchPatterns:n9,defaultMatchWidth:"wide",parsePatterns:o9,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:a9,defaultMatchWidth:"any",parsePatterns:s9,defaultParseWidth:"any"})},c9={code:"nl",formatDistance:I8,formatLong:F8,formatRelative:$8,localize:q8,match:l9,options:{weekStartsOn:1,firstWeekContainsDate:4}},u9={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},h9=function(t,i,r){var a,f=u9[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"daqui a "+a:"há "+a:a},d9={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},p9={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},f9={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},m9={date:St({formats:d9,defaultWidth:"full"}),time:St({formats:p9,defaultWidth:"full"}),dateTime:St({formats:f9,defaultWidth:"full"})},g9={lastWeek:function(t){var i=t.getUTCDay(),r=i===0||i===6?"último":"última";return"'"+r+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},v9=function(t,i,r,a){var f=g9[t];return typeof f=="function"?f(i):f},y9={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},b9={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},x9={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},w9={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},_9={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},C9={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},S9=function(t,i){var r=Number(t);return r+"º"},M9={ordinalNumber:S9,era:at({values:y9,defaultWidth:"wide"}),quarter:at({values:b9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:x9,defaultWidth:"wide"}),day:at({values:w9,defaultWidth:"wide"}),dayPeriod:at({values:_9,defaultWidth:"wide",formattingValues:C9,defaultFormattingWidth:"wide"})},T9=/^(\d+)(º|ª)?/i,P9=/\d+/i,k9={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},E9={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},A9={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},O9={any:[/1/i,/2/i,/3/i,/4/i]},L9={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},D9={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},R9={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},N9={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},I9={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},j9={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},B9={ordinalNumber:Rr({matchPattern:T9,parsePattern:P9,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:k9,defaultMatchWidth:"wide",parsePatterns:E9,defaultParseWidth:"any"}),quarter:st({matchPatterns:A9,defaultMatchWidth:"wide",parsePatterns:O9,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:L9,defaultMatchWidth:"wide",parsePatterns:D9,defaultParseWidth:"any"}),day:st({matchPatterns:R9,defaultMatchWidth:"wide",parsePatterns:N9,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:I9,defaultMatchWidth:"any",parsePatterns:j9,defaultParseWidth:"any"})},z9={code:"pt",formatDistance:h9,formatLong:m9,formatRelative:v9,localize:M9,match:B9,options:{weekStartsOn:1,firstWeekContainsDate:4}};function _s(e,t){if(e.one!==void 0&&t===1)return e.one;var i=t%10,r=t%100;return i===1&&r!==11?e.singularNominative.replace("{{count}}",String(t)):i>=2&&i<=4&&(r<10||r>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function Fi(e){return function(t,i){return i!=null&&i.addSuffix?i.comparison&&i.comparison>0?e.future?_s(e.future,t):"через "+_s(e.regular,t):e.past?_s(e.past,t):_s(e.regular,t)+" назад":_s(e.regular,t)}}var F9={lessThanXSeconds:Fi({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:Fi({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,i){return i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:Fi({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:Fi({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:Fi({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:Fi({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:Fi({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:Fi({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:Fi({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:Fi({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:Fi({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:Fi({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:Fi({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:Fi({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:Fi({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},W9=function(t,i,r){return F9[t](i,r)},$9={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},H9={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},U9={any:"{{date}}, {{time}}"},V9={date:St({formats:$9,defaultWidth:"full"}),time:St({formats:H9,defaultWidth:"full"}),dateTime:St({formats:U9,defaultWidth:"any"})},sg=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function G9(e){var t=sg[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function cb(e){var t=sg[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function Y9(e){var t=sg[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var X9={lastWeek:function(t,i,r){var a=t.getUTCDay();return Zs(t,i,r)?cb(a):G9(a)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,i,r){var a=t.getUTCDay();return Zs(t,i,r)?cb(a):Y9(a)},other:"P"},q9=function(t,i,r,a){var f=X9[t];return typeof f=="function"?f(i,r,a):f},Z9={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},K9={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},Q9={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},J9={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},eU={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},tU={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},iU={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},rU=function(t,i){var r=Number(t),a=i==null?void 0:i.unit,f;return a==="date"?f="-е":a==="week"||a==="minute"||a==="second"?f="-я":f="-й",r+f},nU={ordinalNumber:rU,era:at({values:Z9,defaultWidth:"wide"}),quarter:at({values:K9,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:Q9,defaultWidth:"wide",formattingValues:J9,defaultFormattingWidth:"wide"}),day:at({values:eU,defaultWidth:"wide"}),dayPeriod:at({values:tU,defaultWidth:"any",formattingValues:iU,defaultFormattingWidth:"wide"})},oU=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,aU=/\d+/i,sU={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},lU={any:[/^д/i,/^н/i]},cU={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},uU={any:[/1/i,/2/i,/3/i,/4/i]},hU={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},dU={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},pU={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},fU={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},mU={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},gU={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},vU={ordinalNumber:Rr({matchPattern:oU,parsePattern:aU,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:sU,defaultMatchWidth:"wide",parsePatterns:lU,defaultParseWidth:"any"}),quarter:st({matchPatterns:cU,defaultMatchWidth:"wide",parsePatterns:uU,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:hU,defaultMatchWidth:"wide",parsePatterns:dU,defaultParseWidth:"any"}),day:st({matchPatterns:pU,defaultMatchWidth:"wide",parsePatterns:fU,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:mU,defaultMatchWidth:"wide",parsePatterns:gU,defaultParseWidth:"any"})},yU={code:"ru",formatDistance:W9,formatLong:V9,formatRelative:q9,localize:nU,match:vU,options:{weekStartsOn:1,firstWeekContainsDate:1}},bU={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},xU=function(t,i,r){var a,f=bU[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",i.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+" sonra":a+" önce":a},wU={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},_U={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},CU={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SU={date:St({formats:wU,defaultWidth:"full"}),time:St({formats:_U,defaultWidth:"full"}),dateTime:St({formats:CU,defaultWidth:"full"})},MU={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},TU=function(t,i,r,a){return MU[t]},PU={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},kU={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},EU={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},AU={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},OU={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},LU={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},DU=function(t,i){var r=Number(t);return r+"."},RU={ordinalNumber:DU,era:at({values:PU,defaultWidth:"wide"}),quarter:at({values:kU,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:at({values:EU,defaultWidth:"wide"}),day:at({values:AU,defaultWidth:"wide"}),dayPeriod:at({values:OU,defaultWidth:"wide",formattingValues:LU,defaultFormattingWidth:"wide"})},NU=/^(\d+)(\.)?/i,IU=/\d+/i,jU={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},BU={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},zU={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},FU={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},WU={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},$U={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},HU={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},UU={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},VU={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},GU={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},YU={ordinalNumber:Rr({matchPattern:NU,parsePattern:IU,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:jU,defaultMatchWidth:"wide",parsePatterns:BU,defaultParseWidth:"any"}),quarter:st({matchPatterns:zU,defaultMatchWidth:"wide",parsePatterns:FU,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:WU,defaultMatchWidth:"wide",parsePatterns:$U,defaultParseWidth:"any"}),day:st({matchPatterns:HU,defaultMatchWidth:"wide",parsePatterns:UU,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:VU,defaultMatchWidth:"any",parsePatterns:GU,defaultParseWidth:"any"})},XU={code:"tr",formatDistance:xU,formatLong:SU,formatRelative:TU,localize:RU,match:YU,options:{weekStartsOn:1,firstWeekContainsDate:1}},qU={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},ZU=function(t,i,r){var a,f=qU[t];return typeof f=="string"?a=f:i===1?a=f.one:a=f.other.replace("{{count}}",String(i)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?a+"内":a+"前":a},KU={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},QU={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},JU={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},eV={date:St({formats:KU,defaultWidth:"full"}),time:St({formats:QU,defaultWidth:"full"}),dateTime:St({formats:JU,defaultWidth:"full"})};function ub(e,t,i){var r="eeee p";return Zs(e,t,i)?r:e.getTime()>t.getTime()?"'下个'"+r:"'上个'"+r}var tV={lastWeek:ub,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:ub,other:"PP p"},iV=function(t,i,r,a){var f=tV[t];return typeof f=="function"?f(i,r,a):f},rV={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},nV={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},oV={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},aV={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},sV={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},lV={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},cV=function(t,i){var r=Number(t);switch(i==null?void 0:i.unit){case"date":return r.toString()+"日";case"hour":return r.toString()+"时";case"minute":return r.toString()+"分";case"second":return r.toString()+"秒";default:return"第 "+r.toString()}},uV={ordinalNumber:cV,era:at({values:rV,defaultWidth:"wide"}),quarter:at({values:nV,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:at({values:oV,defaultWidth:"wide"}),day:at({values:aV,defaultWidth:"wide"}),dayPeriod:at({values:sV,defaultWidth:"wide",formattingValues:lV,defaultFormattingWidth:"wide"})},hV=/^(第\s*)?\d+(日|时|分|秒)?/i,dV=/\d+/i,pV={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},fV={any:[/^(前)/i,/^(公元)/i]},mV={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},gV={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},vV={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},yV={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},bV={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},xV={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},wV={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},_V={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},CV={ordinalNumber:Rr({matchPattern:hV,parsePattern:dV,valueCallback:function(t){return parseInt(t,10)}}),era:st({matchPatterns:pV,defaultMatchWidth:"wide",parsePatterns:fV,defaultParseWidth:"any"}),quarter:st({matchPatterns:mV,defaultMatchWidth:"wide",parsePatterns:gV,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:st({matchPatterns:vV,defaultMatchWidth:"wide",parsePatterns:yV,defaultParseWidth:"any"}),day:st({matchPatterns:bV,defaultMatchWidth:"wide",parsePatterns:xV,defaultParseWidth:"any"}),dayPeriod:st({matchPatterns:wV,defaultMatchWidth:"any",parsePatterns:_V,defaultParseWidth:"any"})},SV={code:"zh-CN",formatDistance:ZU,formatLong:eV,formatRelative:iV,localize:uV,match:CV,options:{weekStartsOn:1,firstWeekContainsDate:4}},MV=Math.ceil,TV=Math.max;function PV(e,t,i,r){for(var a=-1,f=TV(MV((t-e)/(i||1)),0),A=Array(f);f--;)A[r?f:++a]=e,e+=i;return A}var kV=PV,EV=yl,AV=Lo,OV=Ju,LV=Or;function DV(e,t,i){if(!LV(i))return!1;var r=typeof t;return(r=="number"?AV(i)&&OV(t,i.length):r=="string"&&t in i)?EV(i[t],e):!1}var SC=DV,RV=/\s/;function NV(e){for(var t=e.length;t--&&RV.test(e.charAt(t)););return t}var IV=NV,jV=IV,BV=/^\s+/;function zV(e){return e&&e.slice(0,jV(e)+1).replace(BV,"")}var MC=zV,FV=MC,hb=Or,WV=ch,db=NaN,$V=/^[-+]0x[0-9a-f]+$/i,HV=/^0b[01]+$/i,UV=/^0o[0-7]+$/i,VV=parseInt;function GV(e){if(typeof e=="number")return e;if(WV(e))return db;if(hb(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=hb(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=FV(e);var i=HV.test(e);return i||UV.test(e)?VV(e.slice(2),i?2:8):$V.test(e)?db:+e}var Va=GV,YV=Va,pb=1/0,XV=17976931348623157e292;function qV(e){if(!e)return e===0?e:0;if(e=YV(e),e===pb||e===-pb){var t=e<0?-1:1;return t*XV}return e===e?e:0}var lg=qV,ZV=kV,KV=SC,Yd=lg;function QV(e){return function(t,i,r){return r&&typeof r!="number"&&KV(t,i,r)&&(i=r=void 0),t=Yd(t),i===void 0?(i=t,t=0):i=Yd(i),r=r===void 0?t<i?1:-1:Yd(r),ZV(t,i,r,e)}}var JV=QV,eG=JV,tG=eG(),iG=tG;const _c=Et(iG),cg=e=>{var t;switch((t=e==null?void 0:e.language)==null?void 0:t.split("-")[0]){case"de":return U$;case"fr":return ZH;case"es":return wH;case"it":return k6;case"ja":return n8;case"ko":return R8;case"nl":return c9;case"pt":return z9;case"ru":return yU;case"tr":return XU;case"zh":return SV;default:return Y4}};_c(4),_c(12),_c(7),_c(24);var qp={exports:{}},TC={exports:{}};(function(e){function t(i){return i&&i.__esModule?i:{default:i}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(TC);var Gt=TC.exports,Zp={exports:{}},Kp={exports:{}},PC={exports:{}};(function(e){function t(i){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(PC);var kC=PC.exports,Qp={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r,a){if(a.length<r)throw new TypeError(r+" argument"+(r>1?"s":"")+" required, but only "+a.length+" present")}e.exports=t.default})(Qp,Qp.exports);var Yi=Qp.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=i(kC),a=i(Yi);function f(A){return(0,a.default)(1,arguments),A instanceof Date||(0,r.default)(A)==="object"&&Object.prototype.toString.call(A)==="[object Date]"}e.exports=t.default})(Kp,Kp.exports);var rG=Kp.exports,Jp={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=i(kC),a=i(Yi);function f(A){(0,a.default)(1,arguments);var H=Object.prototype.toString.call(A);return A instanceof Date||(0,r.default)(A)==="object"&&H==="[object Date]"?new Date(A.getTime()):typeof A=="number"||H==="[object Number]"?new Date(A):((typeof A=="string"||H==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(Jp,Jp.exports);var vn=Jp.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(rG),a=i(vn),f=i(Yi);function A(H){if((0,f.default)(1,arguments),!(0,r.default)(H)&&typeof H!="number")return!1;var q=(0,a.default)(H);return!isNaN(Number(q))}e.exports=t.default})(Zp,Zp.exports);var nG=Zp.exports,ef={exports:{}},tf={exports:{}},rf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){if(r===null||r===!0||r===!1)return NaN;var a=Number(r);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}e.exports=t.default})(rf,rf.exports);var No=rf.exports;const oG=Et(No);(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(No),a=i(vn),f=i(Yi);function A(H,q){(0,f.default)(2,arguments);var J=(0,a.default)(H).getTime(),ne=(0,r.default)(q);return new Date(J+ne)}e.exports=t.default})(tf,tf.exports);var aG=tf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(aG),a=i(Yi),f=i(No);function A(H,q){(0,a.default)(2,arguments);var J=(0,f.default)(q);return(0,r.default)(H,-J)}e.exports=t.default})(ef,ef.exports);var sG=ef.exports,nf={exports:{}},of={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(vn),a=i(Yi),f=864e5;function A(H){(0,a.default)(1,arguments);var q=(0,r.default)(H),J=q.getTime();q.setUTCMonth(0,1),q.setUTCHours(0,0,0,0);var ne=q.getTime(),se=J-ne;return Math.floor(se/f)+1}e.exports=t.default})(of,of.exports);var lG=of.exports,af={exports:{}},sf={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var r=i(vn),a=i(Yi);function f(A){(0,a.default)(1,arguments);var H=1,q=(0,r.default)(A),J=q.getUTCDay(),ne=(J<H?7:0)+J-H;return q.setUTCDate(q.getUTCDate()-ne),q.setUTCHours(0,0,0,0),q}e.exports=t.default})(sf,sf.exports);var ug=sf.exports,lf={exports:{}},cf={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(vn),a=i(Yi),f=i(ug);function A(H){(0,a.default)(1,arguments);var q=(0,r.default)(H),J=q.getUTCFullYear(),ne=new Date(0);ne.setUTCFullYear(J+1,0,4),ne.setUTCHours(0,0,0,0);var se=(0,f.default)(ne),M=new Date(0);M.setUTCFullYear(J,0,4),M.setUTCHours(0,0,0,0);var te=(0,f.default)(M);return q.getTime()>=se.getTime()?J+1:q.getTime()>=te.getTime()?J:J-1}e.exports=t.default})(cf,cf.exports);var EC=cf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=A;var r=i(EC),a=i(ug),f=i(Yi);function A(H){(0,f.default)(1,arguments);var q=(0,r.default)(H),J=new Date(0);J.setUTCFullYear(q,0,4),J.setUTCHours(0,0,0,0);var ne=(0,a.default)(J);return ne}e.exports=t.default})(lf,lf.exports);var cG=lf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=q;var r=i(vn),a=i(ug),f=i(cG),A=i(Yi),H=6048e5;function q(J){(0,A.default)(1,arguments);var ne=(0,r.default)(J),se=(0,a.default)(ne).getTime()-(0,f.default)(ne).getTime();return Math.round(se/H)+1}e.exports=t.default})(af,af.exports);var uG=af.exports,uf={exports:{}},hf={exports:{}},Io={};Object.defineProperty(Io,"__esModule",{value:!0});Io.getDefaultOptions=hG;Io.setDefaultOptions=dG;var AC={};function hG(){return AC}function dG(e){AC=e}(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=H;var r=i(vn),a=i(Yi),f=i(No),A=Io;function H(q,J){var ne,se,M,te,F,O,$,Y;(0,a.default)(1,arguments);var X=(0,A.getDefaultOptions)(),G=(0,f.default)((ne=(se=(M=(te=J==null?void 0:J.weekStartsOn)!==null&&te!==void 0?te:J==null||(F=J.locale)===null||F===void 0||(O=F.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&M!==void 0?M:X.weekStartsOn)!==null&&se!==void 0?se:($=X.locale)===null||$===void 0||(Y=$.options)===null||Y===void 0?void 0:Y.weekStartsOn)!==null&&ne!==void 0?ne:0);if(!(G>=0&&G<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var V=(0,r.default)(q),z=V.getUTCDay(),D=(z<G?7:0)+z-G;return V.setUTCDate(V.getUTCDate()-D),V.setUTCHours(0,0,0,0),V}e.exports=t.default})(hf,hf.exports);var hg=hf.exports,df={exports:{}},pf={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=q;var r=i(vn),a=i(Yi),f=i(hg),A=i(No),H=Io;function q(J,ne){var se,M,te,F,O,$,Y,X;(0,a.default)(1,arguments);var G=(0,r.default)(J),V=G.getUTCFullYear(),z=(0,H.getDefaultOptions)(),D=(0,A.default)((se=(M=(te=(F=ne==null?void 0:ne.firstWeekContainsDate)!==null&&F!==void 0?F:ne==null||(O=ne.locale)===null||O===void 0||($=O.options)===null||$===void 0?void 0:$.firstWeekContainsDate)!==null&&te!==void 0?te:z.firstWeekContainsDate)!==null&&M!==void 0?M:(Y=z.locale)===null||Y===void 0||(X=Y.options)===null||X===void 0?void 0:X.firstWeekContainsDate)!==null&&se!==void 0?se:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=new Date(0);R.setUTCFullYear(V+1,0,D),R.setUTCHours(0,0,0,0);var w=(0,f.default)(R,ne),T=new Date(0);T.setUTCFullYear(V,0,D),T.setUTCHours(0,0,0,0);var p=(0,f.default)(T,ne);return G.getTime()>=w.getTime()?V+1:G.getTime()>=p.getTime()?V:V-1}e.exports=t.default})(pf,pf.exports);var OC=pf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=q;var r=i(OC),a=i(Yi),f=i(hg),A=i(No),H=Io;function q(J,ne){var se,M,te,F,O,$,Y,X;(0,a.default)(1,arguments);var G=(0,H.getDefaultOptions)(),V=(0,A.default)((se=(M=(te=(F=ne==null?void 0:ne.firstWeekContainsDate)!==null&&F!==void 0?F:ne==null||(O=ne.locale)===null||O===void 0||($=O.options)===null||$===void 0?void 0:$.firstWeekContainsDate)!==null&&te!==void 0?te:G.firstWeekContainsDate)!==null&&M!==void 0?M:(Y=G.locale)===null||Y===void 0||(X=Y.options)===null||X===void 0?void 0:X.firstWeekContainsDate)!==null&&se!==void 0?se:1),z=(0,r.default)(J,ne),D=new Date(0);D.setUTCFullYear(z,0,V),D.setUTCHours(0,0,0,0);var R=(0,f.default)(D,ne);return R}e.exports=t.default})(df,df.exports);var pG=df.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=q;var r=i(vn),a=i(hg),f=i(pG),A=i(Yi),H=6048e5;function q(J,ne){(0,A.default)(1,arguments);var se=(0,r.default)(J),M=(0,a.default)(se,ne).getTime()-(0,f.default)(se,ne).getTime();return Math.round(M/H)+1}e.exports=t.default})(uf,uf.exports);var fG=uf.exports,ff={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r,a){for(var f=r<0?"-":"",A=Math.abs(r).toString();A.length<a;)A="0"+A;return f+A}e.exports=t.default})(ff,ff.exports);var LC=ff.exports,mf={exports:{}};(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(LC),a={y:function(H,q){var J=H.getUTCFullYear(),ne=J>0?J:1-J;return(0,r.default)(q==="yy"?ne%100:ne,q.length)},M:function(H,q){var J=H.getUTCMonth();return q==="M"?String(J+1):(0,r.default)(J+1,2)},d:function(H,q){return(0,r.default)(H.getUTCDate(),q.length)},a:function(H,q){var J=H.getUTCHours()/12>=1?"pm":"am";switch(q){case"a":case"aa":return J.toUpperCase();case"aaa":return J;case"aaaaa":return J[0];case"aaaa":default:return J==="am"?"a.m.":"p.m."}},h:function(H,q){return(0,r.default)(H.getUTCHours()%12||12,q.length)},H:function(H,q){return(0,r.default)(H.getUTCHours(),q.length)},m:function(H,q){return(0,r.default)(H.getUTCMinutes(),q.length)},s:function(H,q){return(0,r.default)(H.getUTCSeconds(),q.length)},S:function(H,q){var J=q.length,ne=H.getUTCMilliseconds(),se=Math.floor(ne*Math.pow(10,J-3));return(0,r.default)(se,q.length)}},f=a;t.default=f,e.exports=t.default})(mf,mf.exports);var mG=mf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(lG),a=i(uG),f=i(EC),A=i(fG),H=i(OC),q=i(LC),J=i(mG),ne={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},se={G:function(Y,X,G){var V=Y.getUTCFullYear()>0?1:0;switch(X){case"G":case"GG":case"GGG":return G.era(V,{width:"abbreviated"});case"GGGGG":return G.era(V,{width:"narrow"});case"GGGG":default:return G.era(V,{width:"wide"})}},y:function(Y,X,G){if(X==="yo"){var V=Y.getUTCFullYear(),z=V>0?V:1-V;return G.ordinalNumber(z,{unit:"year"})}return J.default.y(Y,X)},Y:function(Y,X,G,V){var z=(0,H.default)(Y,V),D=z>0?z:1-z;if(X==="YY"){var R=D%100;return(0,q.default)(R,2)}return X==="Yo"?G.ordinalNumber(D,{unit:"year"}):(0,q.default)(D,X.length)},R:function(Y,X){var G=(0,f.default)(Y);return(0,q.default)(G,X.length)},u:function(Y,X){var G=Y.getUTCFullYear();return(0,q.default)(G,X.length)},Q:function(Y,X,G){var V=Math.ceil((Y.getUTCMonth()+1)/3);switch(X){case"Q":return String(V);case"QQ":return(0,q.default)(V,2);case"Qo":return G.ordinalNumber(V,{unit:"quarter"});case"QQQ":return G.quarter(V,{width:"abbreviated",context:"formatting"});case"QQQQQ":return G.quarter(V,{width:"narrow",context:"formatting"});case"QQQQ":default:return G.quarter(V,{width:"wide",context:"formatting"})}},q:function(Y,X,G){var V=Math.ceil((Y.getUTCMonth()+1)/3);switch(X){case"q":return String(V);case"qq":return(0,q.default)(V,2);case"qo":return G.ordinalNumber(V,{unit:"quarter"});case"qqq":return G.quarter(V,{width:"abbreviated",context:"standalone"});case"qqqqq":return G.quarter(V,{width:"narrow",context:"standalone"});case"qqqq":default:return G.quarter(V,{width:"wide",context:"standalone"})}},M:function(Y,X,G){var V=Y.getUTCMonth();switch(X){case"M":case"MM":return J.default.M(Y,X);case"Mo":return G.ordinalNumber(V+1,{unit:"month"});case"MMM":return G.month(V,{width:"abbreviated",context:"formatting"});case"MMMMM":return G.month(V,{width:"narrow",context:"formatting"});case"MMMM":default:return G.month(V,{width:"wide",context:"formatting"})}},L:function(Y,X,G){var V=Y.getUTCMonth();switch(X){case"L":return String(V+1);case"LL":return(0,q.default)(V+1,2);case"Lo":return G.ordinalNumber(V+1,{unit:"month"});case"LLL":return G.month(V,{width:"abbreviated",context:"standalone"});case"LLLLL":return G.month(V,{width:"narrow",context:"standalone"});case"LLLL":default:return G.month(V,{width:"wide",context:"standalone"})}},w:function(Y,X,G,V){var z=(0,A.default)(Y,V);return X==="wo"?G.ordinalNumber(z,{unit:"week"}):(0,q.default)(z,X.length)},I:function(Y,X,G){var V=(0,a.default)(Y);return X==="Io"?G.ordinalNumber(V,{unit:"week"}):(0,q.default)(V,X.length)},d:function(Y,X,G){return X==="do"?G.ordinalNumber(Y.getUTCDate(),{unit:"date"}):J.default.d(Y,X)},D:function(Y,X,G){var V=(0,r.default)(Y);return X==="Do"?G.ordinalNumber(V,{unit:"dayOfYear"}):(0,q.default)(V,X.length)},E:function(Y,X,G){var V=Y.getUTCDay();switch(X){case"E":case"EE":case"EEE":return G.day(V,{width:"abbreviated",context:"formatting"});case"EEEEE":return G.day(V,{width:"narrow",context:"formatting"});case"EEEEEE":return G.day(V,{width:"short",context:"formatting"});case"EEEE":default:return G.day(V,{width:"wide",context:"formatting"})}},e:function(Y,X,G,V){var z=Y.getUTCDay(),D=(z-V.weekStartsOn+8)%7||7;switch(X){case"e":return String(D);case"ee":return(0,q.default)(D,2);case"eo":return G.ordinalNumber(D,{unit:"day"});case"eee":return G.day(z,{width:"abbreviated",context:"formatting"});case"eeeee":return G.day(z,{width:"narrow",context:"formatting"});case"eeeeee":return G.day(z,{width:"short",context:"formatting"});case"eeee":default:return G.day(z,{width:"wide",context:"formatting"})}},c:function(Y,X,G,V){var z=Y.getUTCDay(),D=(z-V.weekStartsOn+8)%7||7;switch(X){case"c":return String(D);case"cc":return(0,q.default)(D,X.length);case"co":return G.ordinalNumber(D,{unit:"day"});case"ccc":return G.day(z,{width:"abbreviated",context:"standalone"});case"ccccc":return G.day(z,{width:"narrow",context:"standalone"});case"cccccc":return G.day(z,{width:"short",context:"standalone"});case"cccc":default:return G.day(z,{width:"wide",context:"standalone"})}},i:function(Y,X,G){var V=Y.getUTCDay(),z=V===0?7:V;switch(X){case"i":return String(z);case"ii":return(0,q.default)(z,X.length);case"io":return G.ordinalNumber(z,{unit:"day"});case"iii":return G.day(V,{width:"abbreviated",context:"formatting"});case"iiiii":return G.day(V,{width:"narrow",context:"formatting"});case"iiiiii":return G.day(V,{width:"short",context:"formatting"});case"iiii":default:return G.day(V,{width:"wide",context:"formatting"})}},a:function(Y,X,G){var V=Y.getUTCHours(),z=V/12>=1?"pm":"am";switch(X){case"a":case"aa":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"});case"aaa":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return G.dayPeriod(z,{width:"narrow",context:"formatting"});case"aaaa":default:return G.dayPeriod(z,{width:"wide",context:"formatting"})}},b:function(Y,X,G){var V=Y.getUTCHours(),z;switch(V===12?z=ne.noon:V===0?z=ne.midnight:z=V/12>=1?"pm":"am",X){case"b":case"bb":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"});case"bbb":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return G.dayPeriod(z,{width:"narrow",context:"formatting"});case"bbbb":default:return G.dayPeriod(z,{width:"wide",context:"formatting"})}},B:function(Y,X,G){var V=Y.getUTCHours(),z;switch(V>=17?z=ne.evening:V>=12?z=ne.afternoon:V>=4?z=ne.morning:z=ne.night,X){case"B":case"BB":case"BBB":return G.dayPeriod(z,{width:"abbreviated",context:"formatting"});case"BBBBB":return G.dayPeriod(z,{width:"narrow",context:"formatting"});case"BBBB":default:return G.dayPeriod(z,{width:"wide",context:"formatting"})}},h:function(Y,X,G){if(X==="ho"){var V=Y.getUTCHours()%12;return V===0&&(V=12),G.ordinalNumber(V,{unit:"hour"})}return J.default.h(Y,X)},H:function(Y,X,G){return X==="Ho"?G.ordinalNumber(Y.getUTCHours(),{unit:"hour"}):J.default.H(Y,X)},K:function(Y,X,G){var V=Y.getUTCHours()%12;return X==="Ko"?G.ordinalNumber(V,{unit:"hour"}):(0,q.default)(V,X.length)},k:function(Y,X,G){var V=Y.getUTCHours();return V===0&&(V=24),X==="ko"?G.ordinalNumber(V,{unit:"hour"}):(0,q.default)(V,X.length)},m:function(Y,X,G){return X==="mo"?G.ordinalNumber(Y.getUTCMinutes(),{unit:"minute"}):J.default.m(Y,X)},s:function(Y,X,G){return X==="so"?G.ordinalNumber(Y.getUTCSeconds(),{unit:"second"}):J.default.s(Y,X)},S:function(Y,X){return J.default.S(Y,X)},X:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTimezoneOffset();if(D===0)return"Z";switch(X){case"X":return te(D);case"XXXX":case"XX":return F(D);case"XXXXX":case"XXX":default:return F(D,":")}},x:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTimezoneOffset();switch(X){case"x":return te(D);case"xxxx":case"xx":return F(D);case"xxxxx":case"xxx":default:return F(D,":")}},O:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTimezoneOffset();switch(X){case"O":case"OO":case"OOO":return"GMT"+M(D,":");case"OOOO":default:return"GMT"+F(D,":")}},z:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTimezoneOffset();switch(X){case"z":case"zz":case"zzz":return"GMT"+M(D,":");case"zzzz":default:return"GMT"+F(D,":")}},t:function(Y,X,G,V){var z=V._originalDate||Y,D=Math.floor(z.getTime()/1e3);return(0,q.default)(D,X.length)},T:function(Y,X,G,V){var z=V._originalDate||Y,D=z.getTime();return(0,q.default)(D,X.length)}};function M($,Y){var X=$>0?"-":"+",G=Math.abs($),V=Math.floor(G/60),z=G%60;if(z===0)return X+String(V);var D=Y;return X+String(V)+D+(0,q.default)(z,2)}function te($,Y){if($%60===0){var X=$>0?"-":"+";return X+(0,q.default)(Math.abs($)/60,2)}return F($,Y)}function F($,Y){var X=Y||"",G=$>0?"-":"+",V=Math.abs($),z=(0,q.default)(Math.floor(V/60),2),D=(0,q.default)(V%60,2);return G+z+X+D}var O=se;t.default=O,e.exports=t.default})(nf,nf.exports);var gG=nf.exports,gf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(q,J){switch(q){case"P":return J.date({width:"short"});case"PP":return J.date({width:"medium"});case"PPP":return J.date({width:"long"});case"PPPP":default:return J.date({width:"full"})}},r=function(q,J){switch(q){case"p":return J.time({width:"short"});case"pp":return J.time({width:"medium"});case"ppp":return J.time({width:"long"});case"pppp":default:return J.time({width:"full"})}},a=function(q,J){var ne=q.match(/(P+)(p+)?/)||[],se=ne[1],M=ne[2];if(!M)return i(q,J);var te;switch(se){case"P":te=J.dateTime({width:"short"});break;case"PP":te=J.dateTime({width:"medium"});break;case"PPP":te=J.dateTime({width:"long"});break;case"PPPP":default:te=J.dateTime({width:"full"});break}return te.replace("{{date}}",i(se,J)).replace("{{time}}",r(M,J))},f={p:r,P:a},A=f;t.default=A,e.exports=t.default})(gf,gf.exports);var vG=gf.exports,vf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){var a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),r.getTime()-a.getTime()}e.exports=t.default})(vf,vf.exports);var DC=vf.exports;const fb=Et(DC);var Ml={};Object.defineProperty(Ml,"__esModule",{value:!0});Ml.isProtectedDayOfYearToken=xG;Ml.isProtectedWeekYearToken=wG;Ml.throwProtectedError=_G;var yG=["D","DD"],bG=["YY","YYYY"];function xG(e){return yG.indexOf(e)!==-1}function wG(e){return bG.indexOf(e)!==-1}function _G(e,t,i){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var yf={exports:{}},bf={exports:{}},xf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(A,H,q){var J,ne=i[A];return typeof ne=="string"?J=ne:H===1?J=ne.one:J=ne.other.replace("{{count}}",H.toString()),q!=null&&q.addSuffix?q.comparison&&q.comparison>0?"in "+J:J+" ago":J},a=r;t.default=a,e.exports=t.default})(xf,xf.exports);var CG=xf.exports,wf={exports:{}},_f={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=a.width?String(a.width):r.defaultWidth,A=r.formats[f]||r.formats[r.defaultWidth];return A}}e.exports=t.default})(_f,_f.exports);var SG=_f.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(SG),a={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},f={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},A={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},H={date:(0,r.default)({formats:a,defaultWidth:"full"}),time:(0,r.default)({formats:f,defaultWidth:"full"}),dateTime:(0,r.default)({formats:A,defaultWidth:"full"})},q=H;t.default=q,e.exports=t.default})(wf,wf.exports);var MG=wf.exports,Cf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(A,H,q,J){return i[A]},a=r;t.default=a,e.exports=t.default})(Cf,Cf.exports);var TG=Cf.exports,Sf={exports:{}},Mf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){return function(a,f){var A=f!=null&&f.context?String(f.context):"standalone",H;if(A==="formatting"&&r.formattingValues){var q=r.defaultFormattingWidth||r.defaultWidth,J=f!=null&&f.width?String(f.width):q;H=r.formattingValues[J]||r.formattingValues[q]}else{var ne=r.defaultWidth,se=f!=null&&f.width?String(f.width):r.defaultWidth;H=r.values[se]||r.values[ne]}var M=r.argumentCallback?r.argumentCallback(a):a;return H[M]}}e.exports=t.default})(Mf,Mf.exports);var PG=Mf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(PG),a={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},f={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},A={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},H={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},q={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},J={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},ne=function(F,O){var $=Number(F),Y=$%100;if(Y>20||Y<10)switch(Y%10){case 1:return $+"st";case 2:return $+"nd";case 3:return $+"rd"}return $+"th"},se={ordinalNumber:ne,era:(0,r.default)({values:a,defaultWidth:"wide"}),quarter:(0,r.default)({values:f,defaultWidth:"wide",argumentCallback:function(F){return F-1}}),month:(0,r.default)({values:A,defaultWidth:"wide"}),day:(0,r.default)({values:H,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:q,defaultWidth:"wide",formattingValues:J,defaultFormattingWidth:"wide"})},M=se;t.default=M,e.exports=t.default})(Sf,Sf.exports);var kG=Sf.exports,Tf={exports:{}},Pf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(f){return function(A){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=H.width,J=q&&f.matchPatterns[q]||f.matchPatterns[f.defaultMatchWidth],ne=A.match(J);if(!ne)return null;var se=ne[0],M=q&&f.parsePatterns[q]||f.parsePatterns[f.defaultParseWidth],te=Array.isArray(M)?a(M,function($){return $.test(se)}):r(M,function($){return $.test(se)}),F;F=f.valueCallback?f.valueCallback(te):te,F=H.valueCallback?H.valueCallback(F):F;var O=A.slice(se.length);return{value:F,rest:O}}}function r(f,A){for(var H in f)if(f.hasOwnProperty(H)&&A(f[H]))return H}function a(f,A){for(var H=0;H<f.length;H++)if(A(f[H]))return H}e.exports=t.default})(Pf,Pf.exports);var EG=Pf.exports,kf={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r){return function(a){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=a.match(r.matchPattern);if(!A)return null;var H=A[0],q=a.match(r.parsePattern);if(!q)return null;var J=r.valueCallback?r.valueCallback(q[0]):q[0];J=f.valueCallback?f.valueCallback(J):J;var ne=a.slice(H.length);return{value:J,rest:ne}}}e.exports=t.default})(kf,kf.exports);var AG=kf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(EG),a=i(AG),f=/^(\d+)(th|st|nd|rd)?/i,A=/\d+/i,H={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},q={any:[/^b/i,/^(a|c)/i]},J={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ne={any:[/1/i,/2/i,/3/i,/4/i]},se={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},M={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},te={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},F={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},O={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},$={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Y={ordinalNumber:(0,a.default)({matchPattern:f,parsePattern:A,valueCallback:function(V){return parseInt(V,10)}}),era:(0,r.default)({matchPatterns:H,defaultMatchWidth:"wide",parsePatterns:q,defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:J,defaultMatchWidth:"wide",parsePatterns:ne,defaultParseWidth:"any",valueCallback:function(V){return V+1}}),month:(0,r.default)({matchPatterns:se,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:te,defaultMatchWidth:"wide",parsePatterns:F,defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:O,defaultMatchWidth:"any",parsePatterns:$,defaultParseWidth:"any"})},X=Y;t.default=X,e.exports=t.default})(Tf,Tf.exports);var OG=Tf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(CG),a=i(MG),f=i(TG),A=i(kG),H=i(OG),q={code:"en-US",formatDistance:r.default,formatLong:a.default,formatRelative:f.default,localize:A.default,match:H.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},J=q;t.default=J,e.exports=t.default})(bf,bf.exports);var LG=bf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(LG),a=r.default;t.default=a,e.exports=t.default})(yf,yf.exports);var DG=yf.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=G;var r=i(nG),a=i(sG),f=i(vn),A=i(gG),H=i(vG),q=i(DC),J=Ml,ne=i(No),se=i(Yi),M=Io,te=i(DG),F=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,O=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$=/^'([^]*?)'?$/,Y=/''/g,X=/[a-zA-Z]/;function G(z,D,R){var w,T,p,c,d,_,y,C,I,j,E,b,x,u,m,n,s,l;(0,se.default)(2,arguments);var o=String(D),v=(0,M.getDefaultOptions)(),g=(w=(T=R==null?void 0:R.locale)!==null&&T!==void 0?T:v.locale)!==null&&w!==void 0?w:te.default,h=(0,ne.default)((p=(c=(d=(_=R==null?void 0:R.firstWeekContainsDate)!==null&&_!==void 0?_:R==null||(y=R.locale)===null||y===void 0||(C=y.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&d!==void 0?d:v.firstWeekContainsDate)!==null&&c!==void 0?c:(I=v.locale)===null||I===void 0||(j=I.options)===null||j===void 0?void 0:j.firstWeekContainsDate)!==null&&p!==void 0?p:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=(0,ne.default)((E=(b=(x=(u=R==null?void 0:R.weekStartsOn)!==null&&u!==void 0?u:R==null||(m=R.locale)===null||m===void 0||(n=m.options)===null||n===void 0?void 0:n.weekStartsOn)!==null&&x!==void 0?x:v.weekStartsOn)!==null&&b!==void 0?b:(s=v.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&E!==void 0?E:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!g.localize)throw new RangeError("locale must contain localize property");if(!g.formatLong)throw new RangeError("locale must contain formatLong property");var B=(0,f.default)(z);if(!(0,r.default)(B))throw new RangeError("Invalid time value");var U=(0,q.default)(B),S=(0,a.default)(B,U),N={firstWeekContainsDate:h,weekStartsOn:P,locale:g,_originalDate:B},W=o.match(O).map(function(ee){var ie=ee[0];if(ie==="p"||ie==="P"){var Z=H.default[ie];return Z(ee,g.formatLong)}return ee}).join("").match(F).map(function(ee){if(ee==="''")return"'";var ie=ee[0];if(ie==="'")return V(ee);var Z=A.default[ie];if(Z)return!(R!=null&&R.useAdditionalWeekYearTokens)&&(0,J.isProtectedWeekYearToken)(ee)&&(0,J.throwProtectedError)(ee,D,String(z)),!(R!=null&&R.useAdditionalDayOfYearTokens)&&(0,J.isProtectedDayOfYearToken)(ee)&&(0,J.throwProtectedError)(ee,D,String(z)),Z(S,ee,g.localize,N);if(ie.match(X))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");return ee}).join("");return W}function V(z){var D=z.match($);return D?D[1].replace(Y,"'"):z}e.exports=t.default})(qp,qp.exports);var RG=qp.exports;const NG=Et(RG);function mb(e,t,i){var r=BG(e,i.timeZone,i.locale);return r.formatToParts?IG(r,t):jG(r,t)}function IG(e,t){for(var i=e.formatToParts(t),r=i.length-1;r>=0;--r)if(i[r].type==="timeZoneName")return i[r].value}function jG(e,t){var i=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(i);return r?r[0].substr(1):""}function BG(e,t,i){if(i&&!i.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(i?[i.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function zG(e,t){var i=HG(t);return i.formatToParts?WG(i,e):$G(i,e)}var FG={year:0,month:1,day:2,hour:3,minute:4,second:5};function WG(e,t){try{for(var i=e.formatToParts(t),r=[],a=0;a<i.length;a++){var f=FG[i[a].type];f>=0&&(r[f]=parseInt(i[a].value,10))}return r}catch(A){if(A instanceof RangeError)return[NaN];throw A}}function $G(e,t){var i=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(i);return[r[3],r[1],r[2],r[4],r[5],r[6]]}var Xd={};function HG(e){if(!Xd[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),i=t==="06/25/2014, 00:00:00"||t==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";Xd[e]=i?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Xd[e]}function RC(e,t,i,r,a,f,A){var H=new Date(0);return H.setUTCFullYear(e,t,i),H.setUTCHours(r,a,f,A),H}var gb=36e5,UG=6e4,qd={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function dg(e,t,i){var r,a;if(!e||(r=qd.timezoneZ.exec(e),r))return 0;var f;if(r=qd.timezoneHH.exec(e),r)return f=parseInt(r[1],10),vb(f)?-(f*gb):NaN;if(r=qd.timezoneHHMM.exec(e),r){f=parseInt(r[2],10);var A=parseInt(r[3],10);return vb(f,A)?(a=Math.abs(f)*gb+A*UG,r[1]==="+"?-a:a):NaN}if(YG(e)){t=new Date(t||Date.now());var H=i?t:VG(t),q=Ef(H,e),J=i?q:GG(t,q,e);return-J}return NaN}function VG(e){return RC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Ef(e,t){var i=zG(e,t),r=RC(i[0],i[1]-1,i[2],i[3]%24,i[4],i[5],0).getTime(),a=e.getTime(),f=a%1e3;return a-=f>=0?f:1e3+f,r-a}function GG(e,t,i){var r=e.getTime(),a=r-t,f=Ef(new Date(a),i);if(t===f)return t;a-=f-t;var A=Ef(new Date(a),i);return f===A?f:Math.max(f,A)}function vb(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var yb={};function YG(e){if(yb[e])return!0;try{return yb[e]=!0,!0}catch(t){return!1}}var XG=60*1e3,qG={X:function(e,t,i,r){var a=Zd(r.timeZone,e);if(a===0)return"Z";switch(t){case"X":return bb(a);case"XXXX":case"XX":return aa(a);case"XXXXX":case"XXX":default:return aa(a,":")}},x:function(e,t,i,r){var a=Zd(r.timeZone,e);switch(t){case"x":return bb(a);case"xxxx":case"xx":return aa(a);case"xxxxx":case"xxx":default:return aa(a,":")}},O:function(e,t,i,r){var a=Zd(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+ZG(a,":");case"OOOO":default:return"GMT"+aa(a,":")}},z:function(e,t,i,r){switch(t){case"z":case"zz":case"zzz":return mb("short",e,r);case"zzzz":default:return mb("long",e,r)}}};function Zd(e,t){var i=e?dg(e,t,!0)/XG:t.getTimezoneOffset();if(Number.isNaN(i))throw new RangeError("Invalid time zone specified: "+e);return i}function bu(e,t){for(var i=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return i+r}function aa(e,t){var i=t||"",r=e>0?"-":"+",a=Math.abs(e),f=bu(Math.floor(a/60),2),A=bu(Math.floor(a%60),2);return r+f+i+A}function bb(e,t){if(e%60===0){var i=e>0?"-":"+";return i+bu(Math.abs(e)/60,2)}return aa(e,t)}function ZG(e,t){var i=e>0?"-":"+",r=Math.abs(e),a=Math.floor(r/60),f=r%60;if(f===0)return i+String(a);var A=t;return i+String(a)+A+bu(f,2)}var KG=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Kd=36e5,xb=6e4,QG=2,$i={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:KG};function NC(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var i=t||{},r=i.additionalDigits==null?QG:oG(i.additionalDigits);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var a=JG(e),f=e7(a.date,r),A=f.year,H=f.restDateString,q=t7(H,A);if(isNaN(q))return new Date(NaN);if(q){var J=q.getTime(),ne=0,se;if(a.time&&(ne=i7(a.time),isNaN(ne)))return new Date(NaN);if(a.timeZone||i.timeZone){if(se=dg(a.timeZone||i.timeZone,new Date(J+ne)),isNaN(se))return new Date(NaN)}else se=fb(new Date(J+ne)),se=fb(new Date(J+ne+se));return new Date(J+ne+se)}else return new Date(NaN)}function JG(e){var t={},i=$i.dateTimePattern.exec(e),r;if(i?(t.date=i[1],r=i[3]):(i=$i.datePattern.exec(e),i?(t.date=i[1],r=i[2]):(t.date=null,r=e)),r){var a=$i.timeZone.exec(r);a?(t.time=r.replace(a[1],""),t.timeZone=a[1].trim()):t.time=r}return t}function e7(e,t){var i=$i.YYY[t],r=$i.YYYYY[t],a;if(a=$i.YYYY.exec(e)||r.exec(e),a){var f=a[1];return{year:parseInt(f,10),restDateString:e.slice(f.length)}}if(a=$i.YY.exec(e)||i.exec(e),a){var A=a[1];return{year:parseInt(A,10)*100,restDateString:e.slice(A.length)}}return{year:null}}function t7(e,t){if(t===null)return null;var i,r,a,f;if(e.length===0)return r=new Date(0),r.setUTCFullYear(t),r;if(i=$i.MM.exec(e),i)return r=new Date(0),a=parseInt(i[1],10)-1,_b(t,a)?(r.setUTCFullYear(t,a),r):new Date(NaN);if(i=$i.DDD.exec(e),i){r=new Date(0);var A=parseInt(i[1],10);return o7(t,A)?(r.setUTCFullYear(t,0,A),r):new Date(NaN)}if(i=$i.MMDD.exec(e),i){r=new Date(0),a=parseInt(i[1],10)-1;var H=parseInt(i[2],10);return _b(t,a,H)?(r.setUTCFullYear(t,a,H),r):new Date(NaN)}if(i=$i.Www.exec(e),i)return f=parseInt(i[1],10)-1,Cb(t,f)?wb(t,f):new Date(NaN);if(i=$i.WwwD.exec(e),i){f=parseInt(i[1],10)-1;var q=parseInt(i[2],10)-1;return Cb(t,f,q)?wb(t,f,q):new Date(NaN)}return null}function i7(e){var t,i,r;if(t=$i.HH.exec(e),t)return i=parseFloat(t[1].replace(",",".")),Qd(i)?i%24*Kd:NaN;if(t=$i.HHMM.exec(e),t)return i=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),Qd(i,r)?i%24*Kd+r*xb:NaN;if(t=$i.HHMMSS.exec(e),t){i=parseInt(t[1],10),r=parseInt(t[2],10);var a=parseFloat(t[3].replace(",","."));return Qd(i,r,a)?i%24*Kd+r*xb+a*1e3:NaN}return null}function wb(e,t,i){t=t||0,i=i||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var a=r.getUTCDay()||7,f=t*7+i+1-a;return r.setUTCDate(r.getUTCDate()+f),r}var r7=[31,28,31,30,31,30,31,31,30,31,30,31],n7=[31,29,31,30,31,30,31,31,30,31,30,31];function IC(e){return e%400===0||e%4===0&&e%100!==0}function _b(e,t,i){if(t<0||t>11)return!1;if(i!=null){if(i<1)return!1;var r=IC(e);if(r&&i>n7[t]||!r&&i>r7[t])return!1}return!0}function o7(e,t){if(t<1)return!1;var i=IC(e);return!(i&&t>366||!i&&t>365)}function Cb(e,t,i){return!(t<0||t>52||i!=null&&(i<0||i>6))}function Qd(e,t,i){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||i!=null&&(i<0||i>=60))}var a7=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function jC(e,t,i){var r=String(t),a=i||{},f=r.match(a7);if(f){var A=NC(a.originalDate||e,a);r=f.reduce(function(H,q){if(q[0]==="'")return H;var J=H.indexOf(q),ne=H[J-1]==="'",se=H.replace(q,"'"+qG[q[0]](A,q,null,a)+"'");return ne?se.substring(0,J-1)+se.substring(J+1):se},r)}return NG(e,r,a)}function Gn(e,t,i){const r=new RegExp("'[^']+'|("+t+")","g");return e.replace(r,function(f,A){return A?i(f):f})}const s7=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],l7=Object.freeze({fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"}),Sb=Object.freeze({"en-US":l7});function c7(e,t){var a;if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let i=e,r=Sb[(a=t.code)!=null?a:""];return r||(r=Sb["en-US"]),s7.forEach(f=>{const A=r[f];i=Gn(i,f,function(){return A})}),i}var Af={exports:{}},Of={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;function i(r,a){if(r==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(r[f]=a[f]);return r}e.exports=t.default})(Of,Of.exports);var u7=Of.exports;(function(e,t){var i=Gt.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(u7);function a(f){return(0,r.default)({},f)}e.exports=t.default})(Af,Af.exports);var h7=Af.exports;const d7=Et(h7);function p7(e,t,i){var r=NC(e,i),a=dg(t,r,!0),f=new Date(r.getTime()-a),A=new Date(0);return A.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),A.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),A}function Ks(e,t,i,r){var a=d7(r);return a.timeZone=t,a.originalDate=e,jC(p7(e,t),i,a)}function f7(e){return e.includes("sss")?Gn(e,"sss",function(){return"SSS"}):e}function m7(e,t,i){if(!(e.includes("a")||e.includes("A")))return e;let r=Gn(e,"a",function(){return`\0${Ks(t,i,"a").toLowerCase()}\0`});return r=Gn(r,"A",function(){return`\0${Ks(t,i,"a").toUpperCase()}\0`}),r=r.replace(/\0\0/g,""),r=r.replace(/\0/g,"'"),r}function g7(e,t,i,r){return e.includes("Z")?Gn(e,"Z",function(){return Ks(t,i,"xx",{locale:r})}):e}function v7(e,t,i){return BC(e,t,i)?CC(e,1):e}function y7(e,t){return t<=e.getMonth()}function BC(e,t,i){const r=![C7,pg].includes(t);return i>FC&&r&&y7(e,i)}function b7(e,t,i,r){return!r&&BC(e,t,i)?bC(e,1):e}function x7(e,t){if(t>0){const i=(e.getMonth()+t)%12;return f$(e,i)}return e}function w7(e,t,i,r,a,f){if(!e.includes("y"))return e;const A=b7(t,r,f,a);let H=e;if(["yyyy","yy","y","yp","yyyp"].includes(e)&&(i="Etc/GMT-14"),e.includes("yp")){const J=CC(A,1);H=Gn(e,"yp|yyyp",function(se){const M="y".repeat(se.length);return Ks(J,i,M)})}return Gn(H,"yyyy|yy|y",function(ne){return Ks(A,i,ne)})}function _7(e,t,i,r){if(!e.includes("Q"))return e;let a=t.getMonth();r&&[pg,S7,M7,zC].includes(i)&&(a-=r>a?r-12:r);const f=parseInt(String(a/3))+1;return Gn(e,"QQ|Q",function(q){return`${q.length===2?"'Quarter '":"'Q'"}${f}`})}const C7="years",pg="quarters",S7="months",M7="weeks",zC="days",FC=0,T7=1,fg=Object.freeze({weekFirstDay:T7,isFiscalOn:!1,fiscalMonth:FC,selectedDateLevel:zC,timeZone:"UTC"});function mg(e,t,i=cg(),r=fg){return e.getFullYear()<100&&(e=m$(e,1900+e.getFullYear())),r.isFiscalOn||(e=v7(e,r.selectedDateLevel,r.fiscalMonth)),t=c7(t,i),t=f7(t),t=m7(t,e,r.timeZone),t=g7(t,e,r.timeZone,i),t=w7(t,e,r.timeZone,r.selectedDateLevel,r.isFiscalOn,r.fiscalMonth),!r.isFiscalOn&&r.selectedDateLevel===pg&&(e=x7(e,r.fiscalMonth)),t=_7(t,e,r.selectedDateLevel,r.fiscalMonth),jC(e,t,{locale:i,weekStartsOn:r.weekFirstDay})}const P7={chart:{backgroundColor:"#FFFFFF",textColor:"#000000",secondaryTextColor:"#E4E4E4",panelBackgroundColor:"#F6F6F6"},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#ffffff",brandColor:"#ffcb05",primaryButtonTextColor:"#3a4356",primaryButtonHoverColor:"#f2b900"},aiChat:{backgroundColor:"rgba(244, 244, 248, 1)",primaryTextColor:"rgba(38, 46, 61, 0.8)",secondaryTextColor:"rgba(38, 46, 61, 0.55)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},systemMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},input:{backgroundColor:"rgba(255, 255, 255, 1)",focus:{outlineColor:"rgba(38, 46, 61, 0.5)"}},header:{textColor:"rgba(38, 46, 61, 0.8)",backgroundColor:"rgba(255, 255, 255, 1)"},dropup:{backgroundColor:"rgba(255, 255, 255, 1)",boxShadow:"0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1)",borderRadius:"4px",headers:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}},items:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}}},border:"1px solid #c6c9ce",borderRadius:"30px",suggestions:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"},loadingGradient:["rgba(194, 196, 203, 1)","rgba(236, 236, 239, 1)"],gap:"8px"},clickableMessages:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"}},dataTopics:{backgroundColor:"rgba(255, 255, 255, 1)",items:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)"}},icons:{color:"rgba(38, 46, 61, 0.67)",feedbackIcons:{hoverColor:"rgba(12, 14, 18, 0.07)"}},tooltips:{backgroundColor:"rgba(255, 255, 255, 1)",textColor:"rgba(38, 46, 61, 0.8)",boxShadow:"0px 4px 12px 0px rgba(9, 9, 10, 0.20), 0px 1px 4px 0px rgba(9, 9, 10, 0.10)"}}},k7={chart:{backgroundColor:"#313138",textColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",panelBackgroundColor:"#313138"},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#16161C",brandColor:"#FFCB05",primaryButtonTextColor:"#3A4356",primaryButtonHoverColor:"#F2B900"},aiChat:{backgroundColor:"rgba(23, 28, 38, 1)",primaryTextColor:"rgba(242, 247, 255, 0.9)",secondaryTextColor:"rgba(242, 247, 255, 0.4)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(31, 92, 153, 1)"},systemMessages:{backgroundColor:"rgba(46, 55, 77, 1)"},input:{backgroundColor:"rgba(242, 247, 255, 0.1)",focus:{outlineColor:"rgba(242, 247, 255, 0.5)"}},header:{backgroundColor:"#313138",textColor:"rgba(242, 247, 255, 0.9)"},dropup:{backgroundColor:"rgba(38, 46, 64, 1)",boxShadow:"0px 1px 4px 0px #020203, 0px 2px 12px 2px rgba(2, 2, 3, 0.25)",borderRadius:"8px",headers:{textColor:"rgba(242, 247, 255, 0.6)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}},items:{textColor:"rgba(242, 247, 255, 0.9)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}}},border:!1,borderRadius:"30px",suggestions:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"},loadingGradient:["rgba(242, 247, 255, 0.1)","rgba(242, 247, 255, 0.3)"],gap:"8px"},clickableMessages:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"}},dataTopics:{backgroundColor:"rgba(23, 28, 38, 1)",items:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)"}},icons:{color:"rgba(242, 247, 255, 0.5)",feedbackIcons:{hoverColor:"rgba(242, 247, 255, 0.1)"}},tooltips:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)",boxShadow:"0px 1px 8px 0px #020203, 0px 4px 24px 4px rgba(2, 2, 3, 0.25)"}}},Mh=(e=!1)=>lr(e?k7:P7);function WC(e,t){const i={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,panelBackgroundColor:e.dashboards.panelBackgroundColor},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor}};return hi.withOptions({mergeArrays:!1},Mh(),i)}function $C(e){return e.dashboards.colorPaletteName}class di extends Xu{constructor(t,i){super(Aw,{key:t,interpolationOptions:i},QE.t)}}function HC(e,t){return Fr(this,null,function*(){const i=yield E7(e,t);if(!i)throw new di("errors.themeNotFound",{themeOid:e});const r=$C(i),a=yield UC(r,t);return WC(i,a)})}function E7(e,t){return Fr(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new di("errors.themeNotFound",{themeOid:e})})})}function UC(e,t){return Fr(this,null,function*(){const i=yield t.get(`api/palettes/${e}`);if(i&&"status"in i&&i.status==="error")throw new di("errors.paletteNotFound",{paletteName:e});return i})}function A7(e){return"value"in e}function O7(e){return"valuePromise"in e}const L7=(e,t)=>{const i=new Map;return{withCache:f=>(...A)=>Fr(exports,null,function*(){const H=e(...A);if(i.has(H)){const q=i.get(H);if(A7(q))return q.value;if(O7(q))return q.valuePromise;throw new Error("Unexpected cache value")}else{const q=f(...A);return i.set(H,{valuePromise:q,createdAt:new Date}),q.then(J=>(i.set(H,{value:J,createdAt:new Date}),t!=null&&t.cacheMaxSize&&i.size>t.cacheMaxSize&&D7(i),J))}}),clearCache:f=>{if(f){i.delete(f);return}i.clear()}}};function D7(e){const t=Array.from(e.keys()),i=t.reduce((r,a)=>{const f=e.get(a),A=e.get(r);return f.createdAt<A.createdAt?a:r},t[0]);e.delete(i)}const gg=(e,t)=>{const{dataSource:i,dimensions:r=[],measures:a=[],filters:f=[],filterRelations:A,highlights:H=[],count:q,offset:J,ungroup:ne}=e;f&&f.forEach(M=>M.isScope=!0),H&&H.forEach(M=>M.isScope=!0);const se=i||t;if(!se)throw new di("errors.executeQueryNoDataSource");return{dataSource:se,attributes:r,measures:a,filters:f,filterRelations:A,highlights:H,count:q,offset:J,ungroup:ne}};function Tl(e,t,i){const r=gg(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeQuery(r,i).resultPromise.catch(a=>{throw a.message.includes("SecondsLevelIsNotSupportedException")?new di("errors.secondsDateTimeLevelSupportedOnlyForLive"):a})}const R7=(e,t,i)=>{const r=gg(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeCsvQuery(r,i).resultPromise},N7=(e,t,i)=>{const{dataSource:r,rows:a=[],columns:f=[],values:A=[],grandTotals:H={},filters:q=[],filterRelations:J,highlights:ne=[],count:se,offset:M}=e;q&&q.forEach(F=>F.isScope=!0),ne&&ne.forEach(F=>F.isScope=!0);const te=r||(t==null?void 0:t.defaultDataSource);if(!te)throw new di("errors.executeQueryNoDataSource");return t.queryClient.executePivotQuery({dataSource:te,rowsAttributes:a,columnsAttributes:f,measures:A,grandTotals:H,filters:q,filterRelations:J,highlights:ne,count:se,offset:M},i).resultPromise},I7=e=>JSON.stringify(ze(Ae({},iC(e,!1)),{queryGuid:""})),VC=(e,t)=>{const i=gg(e,t==null?void 0:t.defaultDataSource);return I7(i)},j7=250,{withCache:B7,clearCache:z7}=L7(VC,{cacheMaxSize:j7}),vg=B7(Tl),F7=z7;function $n(e){const t="column"in e?e.column:e;return"context"in t||"aggregation"in t?!0:!("type"in t)}const kn=e=>"aggregation"in e||"context"in e||"formula"in e,Ln=e=>!kn(e);function W7(){}var yg=W7,$7=Vm,H7=yg;function xu(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}xu.prototype=$7(H7.prototype);xu.prototype.constructor=xu;var bg=xu,Mb=Na,U7=ml,V7=Ri,Tb=Mb?Mb.isConcatSpreadable:void 0;function G7(e){return V7(e)||U7(e)||!!(Tb&&e&&e[Tb])}var Y7=G7,X7=Lm,q7=Y7;function GC(e,t,i,r,a){var f=-1,A=e.length;for(i||(i=q7),a||(a=[]);++f<A;){var H=e[f];t>0&&i(H)?t>1?GC(H,t-1,i,r,a):X7(a,H):r||(a[a.length]=H)}return a}var YC=GC,Z7=YC;function K7(e){var t=e==null?0:e.length;return t?Z7(e,1):[]}var Q7=K7;function J7(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}var XC=J7,eY=XC,Pb=Math.max;function tY(e,t,i){return t=Pb(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,f=Pb(r.length-t,0),A=Array(f);++a<f;)A[a]=r[t+a];a=-1;for(var H=Array(t+1);++a<t;)H[a]=r[a];return H[t]=i(A),eY(e,this,H)}}var qC=tY;function iY(e){return function(){return e}}var rY=iY,nY=rY,kb=Bw,oY=hh,aY=kb?function(e,t){return kb(e,"toString",{configurable:!0,enumerable:!1,value:nY(t),writable:!0})}:oY,sY=aY,lY=800,cY=16,uY=Date.now;function hY(e){var t=0,i=0;return function(){var r=uY(),a=cY-(r-i);if(i=r,a>0){if(++t>=lY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var dY=hY,pY=sY,fY=dY,mY=fY(pY),ZC=mY,gY=Q7,vY=qC,yY=ZC;function bY(e){return yY(vY(e,void 0,gY),e+"")}var xg=bY,Eb=Qw,xY=Eb&&new Eb,wY=xY;function _Y(){}var KC=_Y,Ab=wY,CY=KC,SY=Ab?function(e){return Ab.get(e)}:CY,QC=SY,MY={},TY=MY,Ob=TY,PY=Object.prototype,kY=PY.hasOwnProperty;function EY(e){for(var t=e.name+"",i=Ob[t],r=kY.call(Ob,t)?i.length:0;r--;){var a=i[r],f=a.func;if(f==null||f==e)return a.name}return t}var JC=EY,AY=Vm,OY=yg,LY=4294967295;function wu(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=LY,this.__views__=[]}wu.prototype=AY(OY.prototype);wu.prototype.constructor=wu;var wg=wu,DY=wg,RY=bg,NY=$m;function IY(e){if(e instanceof DY)return e.clone();var t=new RY(e.__wrapped__,e.__chain__);return t.__actions__=NY(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var jY=IY,BY=wg,Lb=bg,zY=yg,FY=Ri,WY=Lr,$Y=jY,HY=Object.prototype,UY=HY.hasOwnProperty;function _u(e){if(WY(e)&&!FY(e)&&!(e instanceof BY)){if(e instanceof Lb)return e;if(UY.call(e,"__wrapped__"))return $Y(e)}return new Lb(e)}_u.prototype=zY.prototype;_u.prototype.constructor=_u;var VY=_u,GY=wg,YY=QC,XY=JC,qY=VY;function ZY(e){var t=XY(e),i=qY[t];if(typeof i!="function"||!(t in GY.prototype))return!1;if(e===i)return!0;var r=YY(i);return!!r&&e===r[0]}var KY=ZY,Db=bg,QY=xg,JY=QC,Jd=JC,eX=Ri,Rb=KY,tX="Expected a function",iX=8,rX=32,nX=128,oX=256;function aX(e){return QY(function(t){var i=t.length,r=i,a=Db.prototype.thru;for(e&&t.reverse();r--;){var f=t[r];if(typeof f!="function")throw new TypeError(tX);if(a&&!A&&Jd(f)=="wrapper")var A=new Db([],!0)}for(r=A?r:i;++r<i;){f=t[r];var H=Jd(f),q=H=="wrapper"?JY(f):void 0;q&&Rb(q[0])&&q[1]==(nX|iX|rX|oX)&&!q[4].length&&q[9]==1?A=A[Jd(q[0])].apply(A,q[3]):A=f.length==1&&Rb(f)?A[H]():A.thru(f)}return function(){var J=arguments,ne=J[0];if(A&&J.length==1&&eX(ne))return A.plant(ne).value();for(var se=0,M=i?t[se].apply(this,J):ne;++se<i;)M=t[se].call(this,M);return M}})}var sX=aX,lX=sX,cX=lX(),uX=cX;const hX=Et(uX),Nb="composesdk",Th=(e,t,i,r=!1)=>{const a=Object.assign({action:e,cat:Nb,eventType:"product",direct:!0},t);return r?(console.debug("DEBUG: event payload to send",a),Promise.resolve()):i.post("api/activities/",[a],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(f=>{console.error(`unable to log action=${e}, category=${Nb}`,f)})},dX=(e,t)=>{const{packageName:i,packageVersion:r,component:a,error:f}=e;let A="";return typeof f=="string"?A=f:f instanceof Error&&(A=f.message||f.toString()),Th("sdkError",{packageName:i,packageVersion:r,component:a,error:A},t)},pX=(e,t)=>dX(Object.assign(Object.assign({},e),{packageName:"sdk-ui"}),t),_g=Be.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"}}),Pi=()=>Be.useContext(_g),fX="sdkComponentInit",eS=Be.createContext(!1),mX=({skipNested:e=!0,children:t})=>Oe.jsx(eS.Provider,{value:e,children:t}),gX=(e,t)=>{const{app:i,tracking:r}=Pi(),a=Be.useContext(eS),f=Be.useRef(!1);Be.useEffect(()=>{if(!(i!=null&&i.httpClient))return;if(!f.current&&!a){const H={packageName:r.packageName,packageVersion:"1.15.1",componentName:e,attributesUsed:Object.entries(t).filter(([,q])=>!!q).map(([q])=>q).join(", ")};Th(fX,H,i.httpClient,!r.enabled).finally(()=>f.current=!0)}},[e,t,i,r,a])};var vX=Jn,yX=Lr,bX="[object Boolean]";function xX(e){return e===!0||e===!1||yX(e)&&vX(e)==bX}var wX=xX;const tS=Et(wX);class iS extends Be.Component{constructor(i){super(i);Tt(this,"componentName");Tt(this,"context");Tt(this,"httpClient");Tt(this,"postponedErrors",[]);this.componentName=i.componentName}componentDidMount(){var i;this.context.isInitialized&&(this.httpClient=(i=this.context.app)==null?void 0:i.httpClient)}componentDidCatch(i){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(i,this.httpClient):this.postponedErrors.push(i)),i}sendErrorTracking(i,r){pX({packageVersion:"1.15.1",component:this.componentName,error:i},r).catch(a=>console.log("Failed to send tracking error event: ",a))}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(i=>this.sendErrorTracking(i,this.httpClient)),this.postponedErrors=[],this.props.children}}Tt(iS,"contextType",_g);const _X=({componentName:e,config:t})=>{const{skip:i,transparent:r}=t||{};return a=>function(A){return tS(i)&&i||fu(i)&&i(A)?Oe.jsx(a,Ae({},A)):(gX(e,A),Oe.jsx(mX,{skipNested:!r,children:Oe.jsx(iS,{componentName:e,children:Oe.jsx(a,Ae({},A))})}))}},CX="_container_1wquj_1",SX="_card_1wquj_11",MX="_text_1wquj_19",ep={container:CX,card:SX,text:MX};function rS({color:e="#FFCB05"}){return Oe.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:Oe.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Oe.jsxs("g",{children:[Oe.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),Oe.jsx("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const Cg=Be.createContext({themeSettings:Mh()}),dr=()=>Be.useContext(Cg),TX=({error:e=new di("errors.componentRenderError")})=>{var M,te,F,O,$,Y;const{themeSettings:t}=dr(),{app:i}=Pi(),{t:r}=qu(),[a,f]=Be.useState(!1),A=()=>{f(!0)},H=()=>{f(!1)},q=Oe.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:Oe.jsx(rS,{color:(M=t==null?void 0:t.general)==null?void 0:M.brandColor})}),J=e instanceof Xu?r(e.key,Ae({},e.interpolationOptions)):r(e instanceof Error?e.message:e),ne=r("errorBoxText",{errorMessage:J,interpolation:{escapeValue:!1}}),se=(F=(te=i==null?void 0:i.settings)==null?void 0:te.errorBoundaryConfig)==null?void 0:F.alwaysShowErrorText;return Oe.jsx("div",{onMouseEnter:se?void 0:A,onMouseLeave:se?void 0:H,className:ep.container,"aria-label":"error-box",children:Oe.jsxs("div",{className:ep.card,style:{backgroundColor:((O=t==null?void 0:t.general)==null?void 0:O.backgroundColor)||"rgba(255,255,255,0.5)"},children:[q,(se||a)&&Oe.jsx("div",{className:ep.text,style:{color:(($=t==null?void 0:t.typography)==null?void 0:$.primaryTextColor)||"#5b6372",fontFamily:((Y=t==null?void 0:t.typography)==null?void 0:Y.fontFamily)||"inherit"},children:ne})]})})};class nS extends Be.Component{constructor(i){var r;super(i);Tt(this,"showErrorBox",!0);Tt(this,"context");this.showErrorBox=(r=i.showErrorBox)!=null?r:!0,this.state={error:null}}static getDerivedStateFromError(i){return{error:i}}componentDidCatch(i){this.setState({error:i})}componentDidUpdate(i,r){r.error!==null&&PX(i.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const i=this.state.error||this.props.error;return i?this.showErrorBox?Oe.jsx(TX,{error:i}):Oe.jsx("div",{}):this.props.children}}function PX(e=[],t=[]){return e.length!==t.length||e.some((i,r)=>!Object.is(i,t[r]))}const kX=()=>e=>function(i){return Oe.jsx(nS,{resetKeys:Object.values(i),children:Oe.jsx(e,Ae({},i))})},EX=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>i=>function(a){if(AX(e,a))return Oe.jsx(i,Ae({},a));const{app:f,isInitialized:A}=Pi();if(!A){const H=t||"errors.noSisenseContext";throw new di(H)}return f?Oe.jsx(i,Ae({},a)):Oe.jsx(OX,{})};function AX(e,t){return tS(e)&&e||fu(e)&&e(t)}function OX(){return null}function LX(){const[e,t]=Be.useState(null);return Be.useEffect(()=>{Ow().initPromise.then(i=>t(i))},[]),e}const oS=({children:e,userLanguage:t})=>{const i=LX();return Be.useEffect(()=>{t&&(i==null?void 0:i.language)!==t&&(i==null||i.changeLanguage(t))},[i,t]),i&&Oe.jsx(XE,{i18n:i,children:e})},DX=()=>e=>function(i){const{isInitialized:r}=Pi();return r?Oe.jsx(e,Ae({},i)):Oe.jsx(oS,{children:Oe.jsx(e,Ae({},i))})},RX=e=>t=>(t.displayName=e,t),jo=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:i,trackingConfig:r={},customContextErrorMessageKey:a}=e;return f=>hX(RX(t),EX({shouldSkipSisenseContextWaiting:i,customContextErrorMessageKey:a}),_X({componentName:t,config:r}),kX(),DX())(f)},_a=(e,t)=>{const i=!e||e==="";let r,a,f;return ti(t)?(r=parseFloat(e),a=isNaN(r)):Tr(t)?(r=Sh(e).valueOf(),a=isNaN(r)):(r=e,f=e==null?void 0:e.toLowerCase(),a=!1),Ae({value:r,valueUndefined:i,valueIsNaN:a},f&&{lowercaseValue:f})};function Ib(e,t){const i=AA(e)?e:{displayValue:e==null?void 0:e.toString()};return i.compareValue||(i.compareValue=_a(i.displayValue,t)),i}var aS=(e=>(e[e.ASC=1]="ASC",e[e.DESC=-1]="DESC",e[e.NONE=0]="NONE",e))(aS||{});function sS(e,t,i=1,r="string"){const a=Ib(e,r),f=Ib(t,r),A=a.compareValue,H=f.compareValue;if(A.valueUndefined&&H.valueUndefined)return 0;if(A.valueUndefined)return 1;if(H.valueUndefined)return-1;if(A.valueIsNaN&&H.valueIsNaN)return 0;if(A.valueIsNaN)return 1;if(H.valueIsNaN)return-1;const q=A.lowercaseValue,J=H.lowercaseValue;if(q!==void 0&&J!==void 0){if(q<J)return-1*i;if(q>J)return 1*i}return A.value<H.value?-1*i:A.value>H.value?1*i:0}class lS{constructor(t){Tt(this,"columns",[]);this.columns=t}compare(t,i){for(let r=0;r<this.columns.length;r++){const a=this.columns[r],f=t[a.index],A=i[a.index],H=a.direction||1,q=sS(f,A,H,a.type);if(q!==0)return q}return 0}}const cS=e=>e instanceof Object&&"data"in e,NX=e=>e.rows.length===0,ma="$rownum",uS=e=>{let t=0;const i=e.rows.map(a=>{const f=e.columns.map((A,H)=>{var se;const q=a[H];if(cS(q)){let M=q.data.toString();if(Tr(A.type)){const te="1111-11-11T";M.startsWith(te)&&(M=M.replace(te,"1970-01-01T"))}return Ae(Ae({rawValue:q.data,displayValue:(se=q.text)!=null?se:M,compareValue:_a(M,A.type)},q.blur?{blur:q.blur}:{}),q.color?{color:q.color}:{})}let J,ne;return Tr(A.type)&&(J=_a(`${q}`,A.type),ne=new Date(J.value).toISOString()),{rawValue:ne!=null?ne:q,displayValue:`${q!=null?q:""}`,compareValue:J}});return t++,f.push({displayValue:`${t}`,rawValue:t}),f}),r=e.columns.map((a,f)=>({name:a.name,type:a.type,index:f,direction:0}));return r.push({name:ma,type:"number",index:r.length,direction:0}),{columns:r,rows:i}},hS=["polar"],dS=["line","area","bar","column",...hS],pS=["pie","funnel","treemap","sunburst"],fS=["scatter"],IX=["table"],jX=["indicator"],mS=["boxplot"],BX=["areamap"],zX=["scattermap"],gS=["arearange"],to=e=>dS.find(t=>t===e)!==void 0,Ga=e=>pS.find(t=>t===e)!==void 0,Ya=e=>fS.find(t=>t===e)!==void 0,Xa=e=>zX.find(t=>t===e)!==void 0,Pl=e=>jX.find(t=>t===e)!==void 0,vS=e=>hS.find(t=>t===e)!==void 0,FX=e=>IX.find(t=>t===e)!==void 0,qa=e=>mS.find(t=>t===e)!==void 0,Za=e=>BX.find(t=>t===e)!==void 0,Ph=e=>gS.find(t=>t===e)!==void 0;class jb{constructor(t){Tt(this,"data");Tt(this,"sum");Tt(this,"max");Tt(this,"min");Tt(this,"avg");Tt(this,"variance");Tt(this,"stddev");this.data=t}getStat(t){switch(t){case"sum":return this.getSum();case"max":return this.getMax();case"min":return this.getMin();case"count":return this.getCount();case"countdistinct":return this.getCountDistinct();case"avg":case"mean":case"average":return this.getAverage();case"var":case"variance":return this.getVariance();case"stddev":return this.getStdDev()}return NaN}getSum(){if(this.data.length===0)return NaN;if(this.sum!=null)return this.sum;this.sum=0;for(const t of this.data)this.sum+=t;return this.sum}getMax(){if(this.data.length===0)return NaN;if(this.max)return this.max;if(this.data.length<=0)return NaN;this.max=this.data[0];for(const t of this.data)t>this.max&&(this.max=t);return this.max}getMin(){if(this.data.length===0)return NaN;if(this.min)return this.min;if(this.data.length<=0)return NaN;this.min=this.data[0];for(const t of this.data)t<this.min&&(this.min=t);return this.min}getMean(){return this.getAverage()}getAverage(){return this.data.length===0?NaN:this.avg?this.avg:(this.avg=this.getSum()/this.data.length,this.avg)}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((t,i,r)=>r.indexOf(t)===i).length}getVariance(){if(this.variance===void 0)if(this.data.length===0)this.variance=NaN;else if(this.data.length===1)this.variance=0;else{const t=this.getMean();this.variance=this.data.reduce((i,r)=>i.concat(Qe(r-t,2)),[]).reduce((i,r)=>i+r,0)/(this.data.length-1)}return this.variance}getStdDev(){return this.data.length===0?NaN:this.stddev!=null?this.stddev:(this.stddev=Math.sqrt(this.getVariance()),this.stddev)}}class WX{constructor(t){Tt(this,"data");Tt(this,"countDistinct");this.data=t}getStat(t){switch(t){case"count":return this.getCount();case"countdistinct":return this.getCountDistinct()}return NaN}getN(){return this.getCount()}getCount(){return this.data.length}getCountDistinct(){return this.data.filter((t,i,r)=>r.indexOf(t)===i).length}}const yS=(e,t)=>e.slice(0).sort((i,r)=>t.compare(i,r)),Sg=(e,t)=>{if(!(e&&e.length>0))return[];const i=new lS(t),r=yS(e,i);let a=[];const f=[];let A=r[0];for(const H of Array.from(r))i.compare(H,A)!==0&&(f.push(a),a=[]),a.push(H),A=H;return f.push(a),f},$X=(e,t)=>{var r,a;const i=[];for(const f of t){let A;const H=f.column,{aggFunc:q}=f,J=e.filter(M=>!!M[H.index]&&M[H.index].displayValue!==""),ne=(a=(r=J.find(M=>{var te;return M!==void 0&&((te=M==null?void 0:M[H.index])==null?void 0:te.color)}))==null?void 0:r[H.index])==null?void 0:a.color,se=J.some(M=>M[H.index].blur);if(Tr(H.type)){const M=J.map(te=>Sh(te[H.index].displayValue).valueOf());A=new jb(M).getStat(q)}else if(ti(H.type)){const M=J.map(te=>parseFloat(te[H.index].displayValue));A=new jb(M).getStat(q)}else{const M=J.map(te=>te[H.index].displayValue);A=new WX(M).getStat(q)}i.push(Ae(Ae({displayValue:`${A}`},ne&&{color:ne}),se&&{blur:se}))}return i},Mg=(e,t)=>{if(Eh(e))return{columns:[],rows:[]};const i=new lS(t);return{columns:e.columns,rows:yS(e.rows,i)}},bS=(e,t,i)=>{if(Eh(e))return{rows:[],columns:[]};const r={name:"n/a",type:"n/a",index:-1,direction:0},a=i.map(J=>({aggFunc:J.agg,aggName:J.title,column:ci(e,J.column)||r})).filter(J=>J.column.index!==-1),f=Sg(e.rows,t),A=a.map(J=>J.aggName),H=[];for(const J of f){const ne=kl(J[0],t),se=$X(J,a),M=ne.slice(0).concat(se);H.push(M)}const q=t.slice(0).concat(A.map(J=>({name:J,type:"number",index:0,direction:0})));return{rows:H,columns:q.map((J,ne)=>ze(Ae({},J),{index:ne}))}},ci=(e,t)=>e.columns.find(i=>i.name===t),Mo=(e,t)=>{const i={name:"foo",type:"string",index:-1,direction:0};return t.map(r=>ci(e,r)||i).filter(r=>r!==i)},xS=(e,t)=>{const i=e.rows.map(a=>t.map(f=>a[f.index]));return{columns:t.map((a,f)=>ze(Ae({},a),{index:f})),rows:i}},Li=(e,t)=>{if(!(e&&t.index<e.length))return;const i=e[t.index];return i.compareValue||(i.compareValue=_a(i.displayValue,t.type)),i.compareValue.value},kh=(e,t)=>{var i;return!!((i=e[t.index])!=null&&i.blur)},kl=(e,t)=>{const i=[];for(const r of t)i.push(e[r.index]);return i},HX=(e,t)=>kl(e,t).map(i=>i.rawValue||i.displayValue).join(","),Tg=(e,t)=>{if(!(e&&e.length>0))return{};const i=Sg(e,t),r={};for(const a of i){const f=HX(a[0],t);r[f]=a}return r},Eh=e=>!(e.rows&&e.columns&&e.rows.length>0&&e.columns.length>0),wS=({x:e,y:t,breakBy:i})=>CS(t)&&_S(e)&&i.length===0,UX=({x:e,y:t,breakBy:i})=>_S(e)&&CS(t)&&i.length>0,_S=e=>e.length===0,CS=e=>e.length>0,VX=(e,t)=>e*(t/100),GX=(e,t)=>e===0?0:Math.abs(t)/Math.abs(e)*100,Jc=e=>`${e}%`;var Bb;(function(e){e.event="event",e.props="prop"})(Bb||(Bb={}));function YX(e){switch(e){case"lakh":return/(\d+?)(?=(\d\d)+(\d)(?!\d))(\.\d+)?/g;case"wan":return/(\d)(?=(\d{4})+(?!\d))/g;case"thousand":default:return/(\d)(?=(\d{3})+(?!\d))/g}}function XX(e,t,i){var r=YX(i),a=e.search(/[1-9]/);return a=a===-1?e.length:a,e.substring(0,a)+e.substring(a,e.length).replace(r,"$1"+t)}function qX(e,t){t===void 0&&(t=!0);var i=e[0]==="-",r=i&&t;e=e.replace("-","");var a=e.split("."),f=a[0],A=a[1]||"";return{beforeDecimal:f,afterDecimal:A,hasNegation:i,addNegation:r}}function ZX(e,t,i){for(var r="",a=i?"0":"",f=0;f<=t-1;f++)r+=e[f]||a;return r}function KX(e,t){var i=t.decimalScale,r=t.fixedDecimalScale,a=t.prefix;a===void 0&&(a="");var f=t.suffix;f===void 0&&(f="");var A=t.allowNegative,H=t.thousandsGroupStyle;if(H===void 0&&(H="thousand"),e===""||e==="-")return e;var q=QX(t),J=q.thousandSeparator,ne=q.decimalSeparator,se=i!==0&&e.indexOf(".")!==-1||i&&r,M=qX(e,A),te=M.beforeDecimal,F=M.afterDecimal,O=M.addNegation;return i!==void 0&&(F=ZX(F,i,!!r)),J&&(te=XX(te,J,H)),a&&(te=a+te),f&&(F=F+f),O&&(te="-"+te),e=te+(se&&ne||"")+F,e}function QX(e){var t=e.decimalSeparator;t===void 0&&(t=".");var i=e.thousandSeparator,r=e.allowedDecimalSeparators;return i===!0&&(i=","),r||(r=[t,"."]),{decimalSeparator:t,thousandSeparator:i,allowedDecimalSeparators:r}}var JX=lg;function eq(e){var t=JX(e),i=t%1;return t===t?i?t-i:t:0}var tq=eq,iq=Ar,rq=tq,nq=Va,zb=jm,oq=iq.isFinite,aq=Math.min;function sq(e){var t=Math[e];return function(i,r){if(i=nq(i),r=r==null?0:aq(rq(r),292),r&&oq(i)){var a=(zb(i)+"e").split("e"),f=t(a[0]+"e"+(+a[1]+r));return a=(zb(f)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(i)}}var lq=sq,cq=lq,uq=cq("round"),hq=uq;const dq=Et(hq),Lf=1e3,Df=Lf*1e3,Rf=Df*1e3,Fb=Rf*1e3,SS=1000.1.toLocaleString().replace(/\d/g,""),pq=SS[0],fq=SS[1],mq={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},Vt=e=>Ae(Ae({},mq),e||{}),gq=(e,t)=>isNaN(t)?"":`<span>${Ca(e,t)}</span>`,vq=(e,t)=>Math.sign(e)*dq(Math.abs(e),t),Ca=(e,t)=>{const i=e.decimalScale!==0&&e.decimalScale!=="auto",r=e.decimalScale==="auto"?2:e.decimalScale;let a=!0;e.name==="Numbers"&&!e.thousandSeparator&&(a=void 0);let f,A,H=t;return e.name==="Percent"&&(A="%",H=t*100),(e.name==="Numbers"||e.name==="Currency")&&(e.trillion&&Math.abs(t)/Fb>=1?(H=t/Fb,A="T"):e.billion&&Math.abs(t)/Rf>=1?(H=t/Rf,A="B"):e.million&&Math.abs(t)/Df>=1?(H=t/Df,A="M"):e.kilo&&Math.abs(t)/Lf>=1&&(H=t/Lf,A="K")),e.name==="Currency"&&(e.prefix?f=e.symbol:A?A=`${A}${e.symbol}`:A=e.symbol),KX(`${vq(H,r)}`,{displayType:"text",thousandSeparator:a?pq:void 0,fixedDecimalScale:i,decimalScale:r,decimalSeparator:fq,prefix:f,suffix:A})},ii=(e,t)=>{let i=gq(e,t);return i=i.replace("<span>",""),i=i.replace("</span>",""),i},Qs="#dcdcdc",To="#CCCCCC",Yn="#FFFFFF",yq=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],Pg=e=>({type:"uniform",color:e});function bq(e){return()=>e.color}const MS=e=>{if(e!==void 0)return typeof e=="string"?Pg(e).color:e.type==="uniform"?e.color:Qs};function xq(e){var i;const t=((i=e.conditions)!=null?i:[]).map(r=>({match:wq(r),color:r.color}));return r=>{const a=t.find(f=>f.match(r));return a?a.color:e.defaultColor}}function wq(e){const t=Number(e.expression);switch(e.operator){case"<":return i=>i<t;case">":return i=>i>t;case"≤":case"<=":return i=>i<=t;case"≥":case">=":return i=>i>=t;case"=":return i=>i==t;case"≠":case"!=":return i=>i!=t;default:return()=>!0}}function Si(e,t){let i=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(t[0])||(t=t.map(A=>[A]));let r=t[0].length,a=t[0].map((A,H)=>t.map(q=>q[H])),f=e.map(A=>a.map(H=>{let q=0;if(!Array.isArray(A)){for(let J of H)q+=A*J;return q}for(let J=0;J<A.length;J++)q+=A[J]*(H[J]||0);return q}));return i===1&&(f=f[0]),r===1?f.map(A=>A[0]):f}function El(e){return Hn(e)==="string"}function Hn(e){return(Object.prototype.toString.call(e).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function Cu(e,t){e=+e,t=+t;let i=(Math.floor(e)+"").length;if(t>i)return+e.toFixed(t-i);{let r=Qe(10,i-t);return Math.round(e/r)*r}}function TS(e){if(!e)return;e=e.trim();const t=/^([a-z]+)\((.+?)\)$/i,i=/^-?[\d.]+$/;let r=e.match(t);if(r){let a=[];return r[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(f,A)=>{/%$/.test(A)?(A=new Number(A.slice(0,-1)/100),A.type="<percentage>"):/deg$/.test(A)?(A=new Number(+A.slice(0,-3)),A.type="<angle>",A.unit="deg"):i.test(A)&&(A=new Number(A),A.type="<number>"),f.startsWith("/")&&(A=A instanceof Number?A:new Number(A),A.alpha=!0),a.push(A)}),{name:r[1].toLowerCase(),rawName:r[1],rawArgs:r[2],args:a}}}function PS(e){return e[e.length-1]}function Su(e,t,i){return isNaN(e)?t:isNaN(t)?e:e+(t-e)*i}function kS(e,t,i){return(i-e)/(t-e)}function kg(e,t,i){return Su(t[0],t[1],kS(e[0],e[1],i))}function ES(e){return e.map(t=>t.split("|").map(i=>{i=i.trim();let r=i.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(r){let a=new String(r[1]);return a.range=[+r[2],+r[3]],a}return i}))}var _q=Object.freeze({__proto__:null,interpolate:Su,interpolateInv:kS,isString:El,last:PS,mapRange:kg,multiplyMatrices:Si,parseCoordGrammar:ES,parseFunction:TS,toPrecision:Cu,type:Hn});class Cq{add(t,i,r){if(typeof arguments[0]!="string"){for(var t in arguments[0])this.add(t,arguments[0][t],arguments[1]);return}(Array.isArray(t)?t:[t]).forEach(function(a){this[a]=this[a]||[],i&&this[a][r?"unshift":"push"](i)},this)}run(t,i){this[t]=this[t]||[],this[t].forEach(function(r){r.call(i&&i.context?i.context:i,i)})}}const Xn=new Cq;var dn={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const Hr={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function Nf(e){return Array.isArray(e)?e:Hr[e]}function Mu(e,t,i,r={}){if(e=Nf(e),t=Nf(t),!e||!t)throw new TypeError(`Missing white point to convert ${e?"":"from"}${!e&&!t?"/":""}${t?"":"to"}`);if(e===t)return i;let a={W1:e,W2:t,XYZ:i,options:r};if(Xn.run("chromatic-adaptation-start",a),a.M||(a.W1===Hr.D65&&a.W2===Hr.D50?a.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:a.W1===Hr.D50&&a.W2===Hr.D65&&(a.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),Xn.run("chromatic-adaptation-end",a),a.M)return Si(a.M,a.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const Sq=75e-6,tr=class tr{constructor(t){var a,f,A,H,q,J,ne;this.id=t.id,this.name=t.name,this.base=t.base?tr.get(t.base):null,this.aliases=t.aliases,this.base&&(this.fromBase=t.fromBase,this.toBase=t.toBase);let i=(a=t.coords)!=null?a:this.base.coords;for(let se in i)"name"in i[se]||(i[se].name=se);this.coords=i;let r=(A=(f=t.white)!=null?f:this.base.white)!=null?A:"D65";this.white=Nf(r),this.formats=(H=t.formats)!=null?H:{};for(let se in this.formats){let M=this.formats[se];M.type||(M.type="function"),M.name||(M.name=se)}t.cssId&&!((q=this.formats.functions)!=null&&q.color)?(this.formats.color={id:t.cssId},Object.defineProperty(this,"cssId",{value:t.cssId})):(J=this.formats)!=null&&J.color&&!((ne=this.formats)!=null&&ne.color.id)&&(this.formats.color.id=this.id),this.referred=t.referred,Object.defineProperty(this,"path",{value:Mq(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),Xn.run("colorspace-init-end",this)}inGamut(t,{epsilon:i=Sq}={}){if(this.isPolar)return t=this.toBase(t),this.base.inGamut(t,{epsilon:i});let r=Object.values(this.coords);return t.every((a,f)=>{let A=r[f];if(A.type!=="angle"&&A.range){if(Number.isNaN(a))return!0;let[H,q]=A.range;return(H===void 0||a>=H-i)&&(q===void 0||a<=q+i)}return!0})}get cssId(){var t,i;return((i=(t=this.formats.functions)==null?void 0:t.color)==null?void 0:i.id)||this.id}get isPolar(){for(let t in this.coords)if(this.coords[t].type==="angle")return!0;return!1}getFormat(t){if(typeof t=="object")return t=Wb(t,this),t;let i;return t==="default"?i=Object.values(this.formats)[0]:i=this.formats[t],i?(i=Wb(i,this),i):null}equals(t){return t?this===t||this.id===t.id:!1}to(t,i){if(arguments.length===1&&([t,i]=[t.space,t.coords]),t=tr.get(t),this.equals(t))return i;i=i.map(H=>Number.isNaN(H)?0:H);let r=this.path,a=t.path,f,A;for(let H=0;H<r.length&&r[H].equals(a[H]);H++)f=r[H],A=H;if(!f)throw new Error(`Cannot convert between color spaces ${this} and ${t}: no connection space was found`);for(let H=r.length-1;H>A;H--)i=r[H].toBase(i);for(let H=A+1;H<a.length;H++)i=a[H].fromBase(i);return i}from(t,i){return arguments.length===1&&([t,i]=[t.space,t.coords]),t=tr.get(t),t.to(this,i)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var i;let t=[];for(let r in this.coords){let a=this.coords[r],f=a.range||a.refRange;t.push((i=f==null?void 0:f.min)!=null?i:0)}return t}static get all(){return[...new Set(Object.values(tr.registry))]}static register(t,i){if(arguments.length===1&&(i=arguments[0],t=i.id),i=this.get(i),this.registry[t]&&this.registry[t]!==i)throw new Error(`Duplicate color space registration: '${t}'`);if(this.registry[t]=i,arguments.length===1&&i.aliases)for(let r of i.aliases)this.register(r,i);return i}static get(t,...i){if(!t||t instanceof tr)return t;if(Hn(t)==="string"){let a=tr.registry[t.toLowerCase()];if(!a)throw new TypeError(`No color space found with id = "${t}"`);return a}if(i.length)return tr.get(...i);throw new TypeError(`${t} is not a valid color space`)}static resolveCoord(t,i){var q;let r=Hn(t),a,f;if(r==="string"?t.includes(".")?[a,f]=t.split("."):[a,f]=[,t]:Array.isArray(t)?[a,f]=t:(a=t.space,f=t.coordId),a=tr.get(a),a||(a=i),!a)throw new TypeError(`Cannot resolve coordinate reference ${t}: No color space specified and relative references are not allowed here`);if(r=Hn(f),r==="number"||r==="string"&&f>=0){let J=Object.entries(a.coords)[f];if(J)return Ae({space:a,id:J[0],index:f},J[1])}a=tr.get(a);let A=f.toLowerCase(),H=0;for(let J in a.coords){let ne=a.coords[J];if(J.toLowerCase()===A||((q=ne.name)==null?void 0:q.toLowerCase())===A)return Ae({space:a,id:J,index:H},ne);H++}throw new TypeError(`No "${f}" coordinate found in ${a.name}. Its coordinates are: ${Object.keys(a.coords).join(", ")}`)}};Tt(tr,"registry",{}),Tt(tr,"DEFAULT_FORMAT",{type:"functions",name:"color"});let ft=tr;function Mq(e){let t=[e];for(let i=e;i=i.base;)t.push(i);return t}function Wb(e,{coords:t}={}){if(e.coords&&!e.coordGrammar){e.type||(e.type="function"),e.name||(e.name="color"),e.coordGrammar=ES(e.coords);let i=Object.entries(t).map(([r,a],f)=>{let A=e.coordGrammar[f][0],H=a.range||a.refRange,q=A.range,J="";return A=="<percentage>"?(q=[0,100],J="%"):A=="<angle>"&&(J="deg"),{fromRange:H,toRange:q,suffix:J}});e.serializeCoords=(r,a)=>r.map((f,A)=>{let{fromRange:H,toRange:q,suffix:J}=i[A];return H&&q&&(f=kg(H,q,f)),f=Cu(f,a),J&&(f+=J),f})}return e}var Cr=new ft({id:"xyz-d65",name:"XYZ D65",coords:{x:{name:"X"},y:{name:"Y"},z:{name:"Z"}},white:"D65",formats:{color:{ids:["xyz-d65","xyz"]}},aliases:["xyz"]});class Ji extends ft{constructor(t){var i,r,a;t.coords||(t.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),t.base||(t.base=Cr),t.toXYZ_M&&t.fromXYZ_M&&((i=t.toBase)!=null||(t.toBase=f=>{let A=Si(t.toXYZ_M,f);return this.white!==this.base.white&&(A=Mu(this.white,this.base.white,A)),A}),(r=t.fromBase)!=null||(t.fromBase=f=>(f=Mu(this.base.white,this.white,f),Si(t.fromXYZ_M,f)))),(a=t.referred)!=null||(t.referred="display"),super(t)}}function AS(e,{meta:t}={}){var r,a,f,A,H,q;let i={str:(r=String(e))==null?void 0:r.trim()};if(Xn.run("parse-start",i),i.color)return i.color;if(i.parsed=TS(i.str),i.parsed){let J=i.parsed.name;if(J==="color"){let ne=i.parsed.args.shift(),se=i.parsed.rawArgs.indexOf("/")>0?i.parsed.args.pop():1;for(let te of ft.all){let F=te.getFormat("color");if(F&&(ne===F.id||(a=F.ids)!=null&&a.includes(ne))){const O=Object.keys(te.coords).map(($,Y)=>i.parsed.args[Y]||0);return t&&(t.formatId="color"),{spaceId:te.id,coords:O,alpha:se}}}let M="";if(ne in ft.registry){let te=(H=(A=(f=ft.registry[ne].formats)==null?void 0:f.functions)==null?void 0:A.color)==null?void 0:H.id;te&&(M=`Did you mean color(${te})?`)}throw new TypeError(`Cannot parse color(${ne}). `+(M||"Missing a plugin?"))}else for(let ne of ft.all){let se=ne.getFormat(J);if(se&&se.type==="function"){let M=1;(se.lastAlpha||PS(i.parsed.args).alpha)&&(M=i.parsed.args.pop());let te=i.parsed.args,F;return se.coordGrammar&&(F=Object.entries(ne.coords).map(([O,$],Y)=>{var R;let X=se.coordGrammar[Y],G=(R=te[Y])==null?void 0:R.type,V=X.find(w=>w==G);if(!V){let w=$.name||O;throw new TypeError(`${G} not allowed for ${w} in ${J}()`)}let z=V.range;G==="<percentage>"&&(z||(z=[0,1]));let D=$.range||$.refRange;return z&&D&&(te[Y]=kg(z,D,te[Y])),V})),t&&Object.assign(t,{formatId:se.name,types:F}),{spaceId:ne.id,coords:te,alpha:M}}}}else for(let J of ft.all)for(let ne in J.formats){let se=J.formats[ne];if(se.type!=="custom"||se.test&&!se.test(i.str))continue;let M=se.parse(i.str);if(M)return(q=M.alpha)!=null||(M.alpha=1),t&&(t.formatId=ne),M}throw new TypeError(`Could not parse ${e} as a color. Missing a plugin?`)}function Bt(e){if(!e)throw new TypeError("Empty color reference");El(e)&&(e=AS(e));let t=e.space||e.spaceId;return t instanceof ft||(e.space=ft.get(t)),e.alpha===void 0&&(e.alpha=1),e}function Al(e,t){return t=ft.get(t),t.from(e)}function Sr(e,t){let{space:i,index:r}=ft.resolveCoord(t,e.space);return Al(e,i)[r]}function OS(e,t,i){return t=ft.get(t),e.coords=t.to(e.space,i),e}function qn(e,t,i){if(e=Bt(e),arguments.length===2&&Hn(arguments[1])==="object"){let r=arguments[1];for(let a in r)qn(e,a,r[a])}else{typeof i=="function"&&(i=i(Sr(e,t)));let{space:r,index:a}=ft.resolveCoord(t,e.space),f=Al(e,r);f[a]=i,OS(e,r,f)}return e}var Eg=new ft({id:"xyz-d50",name:"XYZ D50",white:"D50",base:Cr,fromBase:e=>Mu(Cr.white,"D50",e),toBase:e=>Mu("D50",Cr.white,e),formats:{color:{}}});const Tq=216/24389,$b=24/116,Cc=24389/27;let tp=Hr.D50;var or=new ft({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:tp,base:Eg,fromBase(e){let i=e.map((r,a)=>r/tp[a]).map(r=>r>Tq?Math.cbrt(r):(Cc*r+16)/116);return[116*i[1]-16,500*(i[0]-i[1]),200*(i[1]-i[2])]},toBase(e){let t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[t[0]>$b?Math.pow(t[0],3):(116*t[0]-16)/Cc,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/Cc,t[2]>$b?Math.pow(t[2],3):(116*t[2]-16)/Cc].map((r,a)=>r*tp[a])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Ah(e){return(e%360+360)%360}function Pq(e,t){if(e==="raw")return t;let[i,r]=t.map(Ah),a=r-i;return e==="increasing"?a<0&&(r+=360):e==="decreasing"?a>0&&(i+=360):e==="longer"?-180<a&&a<180&&(a>0?i+=360:r+=360):e==="shorter"&&(a>180?i+=360:a<-180&&(r+=360)),[i,r]}var Js=new ft({id:"lch",name:"LCH",coords:{l:{refRange:[0,100],name:"Lightness"},c:{refRange:[0,150],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},base:or,fromBase(e){let[t,i,r]=e,a;const f=.02;return Math.abs(i)<f&&Math.abs(r)<f?a=NaN:a=Math.atan2(r,i)*180/Math.PI,[t,Math.sqrt(Qe(i,2)+Qe(r,2)),Ah(a)]},toBase(e){let[t,i,r]=e;return i<0&&(i=0),isNaN(r)&&(r=0),[t,i*Math.cos(r*Math.PI/180),i*Math.sin(r*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const Hb=Qe(25,7),Tu=Math.PI,Ub=180/Tu,Ko=Tu/180;function If(e,t,{kL:i=1,kC:r=1,kH:a=1}={}){let[f,A,H]=or.from(e),q=Js.from(or,[f,A,H])[1],[J,ne,se]=or.from(t),M=Js.from(or,[J,ne,se])[1];q<0&&(q=0),M<0&&(M=0);let te=(q+M)/2,F=Qe(te,7),O=.5*(1-Math.sqrt(F/(F+Hb))),$=(1+O)*A,Y=(1+O)*ne,X=Math.sqrt(Qe($,2)+Qe(H,2)),G=Math.sqrt(Qe(Y,2)+Qe(se,2)),V=$===0&&H===0?0:Math.atan2(H,$),z=Y===0&&se===0?0:Math.atan2(se,Y);V<0&&(V+=2*Tu),z<0&&(z+=2*Tu),V*=Ub,z*=Ub;let D=J-f,R=G-X,w=z-V,T=V+z,p=Math.abs(w),c;X*G===0?c=0:p<=180?c=w:w>180?c=w-360:w<-180?c=w+360:console.log("the unthinkable has happened");let d=2*Math.sqrt(G*X)*Math.sin(c*Ko/2),_=(f+J)/2,y=(X+G)/2,C=Math.pow(y,7),I;X*G===0?I=T:p<=180?I=T/2:T<360?I=(T+360)/2:I=(T-360)/2;let j=Qe(_-50,2),E=1+.015*j/Math.sqrt(20+j),b=1+.045*y,x=1;x-=.17*Math.cos((I-30)*Ko),x+=.24*Math.cos(2*I*Ko),x+=.32*Math.cos((3*I+6)*Ko),x-=.2*Math.cos((4*I-63)*Ko);let u=1+.015*y*x,m=30*Math.exp(-1*Qe((I-275)/25,2)),n=2*Math.sqrt(C/(C+Hb)),s=-1*Math.sin(2*m*Ko)*n,l=Qe(D/(i*E),2);return l+=Qe(R/(r*b),2),l+=Qe(d/(a*u),2),l+=s*(R/(r*b))*(d/(a*u)),Math.sqrt(l)}const kq=75e-6;function zs(e,t=e.space,{epsilon:i=kq}={}){e=Bt(e),t=ft.get(t);let r=e.coords;return t!==e.space&&(r=t.from(e)),t.inGamut(r,{epsilon:i})}function el(e){return{space:e.space,coords:e.coords.slice(),alpha:e.alpha}}function Zn(e,{method:t=dn.gamut_mapping,space:i=e.space}={}){if(El(arguments[1])&&(i=arguments[1]),i=ft.get(i),zs(e,i,{epsilon:0}))return Bt(e);let r=_r(e,i);if(t!=="clip"&&!zs(e,i)){let a=Zn(el(r),{method:"clip",space:i});if(If(e,a)>2){let f=ft.resolveCoord(t),A=f.space,H=f.id,q=_r(r,A),ne=(f.range||f.refRange)[0],se=.01,M=ne,te=Sr(q,H);for(;te-M>se;){let F=el(q);F=Zn(F,{space:i,method:"clip"}),If(q,F)-2<se?M=Sr(q,H):te=Sr(q,H),qn(q,H,(M+te)/2)}r=_r(q,i)}else r=a}if(t==="clip"||!zs(r,i,{epsilon:0})){let a=Object.values(i.coords).map(f=>f.range||[]);r.coords=r.coords.map((f,A)=>{let[H,q]=a[A];return H!==void 0&&(f=Math.max(H,f)),q!==void 0&&(f=Math.min(f,q)),f})}return i!==e.space&&(r=_r(r,e.space)),e.coords=r.coords,e}Zn.returns="color";function _r(e,t,{inGamut:i}={}){e=Bt(e),t=ft.get(t);let r=t.from(e),a={space:t,coords:r,alpha:e.alpha};return i&&(a=Zn(a)),a}_r.returns="color";function Pu(e,f={}){var A=f,{precision:t=dn.precision,format:i="default",inGamut:r=!0}=A,a=mi(A,["precision","format","inGamut"]);var ne,se,M;let H;e=Bt(e);let q=i;i=(se=(ne=e.space.getFormat(i))!=null?ne:e.space.getFormat("default"))!=null?se:ft.DEFAULT_FORMAT,r||(r=i.toGamut);let J=e.coords;if(J=J.map(te=>te||0),r&&!zs(e)&&(J=Zn(el(e),r===!0?void 0:r).coords),i.type==="custom")if(a.precision=t,i.serialize)H=i.serialize(J,e.alpha,a);else throw new TypeError(`format ${q} can only be used to parse colors, not for serialization`);else{let te=i.name||"color";i.serializeCoords?J=i.serializeCoords(J,t):t!==null&&(J=J.map(Y=>Cu(Y,t)));let F=[...J];if(te==="color"){let Y=i.id||((M=i.ids)==null?void 0:M[0])||e.space.id;F.unshift(Y)}let O=e.alpha;t!==null&&(O=Cu(O,t));let $=e.alpha<1&&!i.noAlpha?`${i.commas?",":" /"} ${O}`:"";H=`${te}(${F.join(i.commas?", ":" ")}${$})`}return H}const Eq=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],Aq=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var Oh=new Ji({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:Eq,fromXYZ_M:Aq,formats:{color:{}}});const Sc=1.09929682680944,Vb=.018053968510807;var LS=new Ji({id:"rec2020",name:"REC.2020",base:Oh,toBase(e){return e.map(function(t){return t<Vb*4.5?t/4.5:Math.pow((t+Sc-1)/Sc,1/.45)})},fromBase(e){return e.map(function(t){return t>=Vb?Sc*Math.pow(t,.45)-(Sc-1):4.5*t})},formats:{color:{}}});const Oq=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],Lq=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var DS=new Ji({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:Oq,fromXYZ_M:Lq});const Dq=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],Rq=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var RS=new Ji({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:Dq,fromXYZ_M:Rq,formats:{color:{}}}),Gb={aliceblue:[240/255,248/255,1],antiquewhite:[250/255,235/255,215/255],aqua:[0,1,1],aquamarine:[127/255,1,212/255],azure:[240/255,1,1],beige:[245/255,245/255,220/255],bisque:[1,228/255,196/255],black:[0,0,0],blanchedalmond:[1,235/255,205/255],blue:[0,0,1],blueviolet:[138/255,43/255,226/255],brown:[165/255,42/255,42/255],burlywood:[222/255,184/255,135/255],cadetblue:[95/255,158/255,160/255],chartreuse:[127/255,1,0],chocolate:[210/255,105/255,30/255],coral:[1,127/255,80/255],cornflowerblue:[100/255,149/255,237/255],cornsilk:[1,248/255,220/255],crimson:[220/255,20/255,60/255],cyan:[0,1,1],darkblue:[0,0,139/255],darkcyan:[0,139/255,139/255],darkgoldenrod:[184/255,134/255,11/255],darkgray:[169/255,169/255,169/255],darkgreen:[0,100/255,0],darkgrey:[169/255,169/255,169/255],darkkhaki:[189/255,183/255,107/255],darkmagenta:[139/255,0,139/255],darkolivegreen:[85/255,107/255,47/255],darkorange:[1,140/255,0],darkorchid:[153/255,50/255,204/255],darkred:[139/255,0,0],darksalmon:[233/255,150/255,122/255],darkseagreen:[143/255,188/255,143/255],darkslateblue:[72/255,61/255,139/255],darkslategray:[47/255,79/255,79/255],darkslategrey:[47/255,79/255,79/255],darkturquoise:[0,206/255,209/255],darkviolet:[148/255,0,211/255],deeppink:[1,20/255,147/255],deepskyblue:[0,191/255,1],dimgray:[105/255,105/255,105/255],dimgrey:[105/255,105/255,105/255],dodgerblue:[30/255,144/255,1],firebrick:[178/255,34/255,34/255],floralwhite:[1,250/255,240/255],forestgreen:[34/255,139/255,34/255],fuchsia:[1,0,1],gainsboro:[220/255,220/255,220/255],ghostwhite:[248/255,248/255,1],gold:[1,215/255,0],goldenrod:[218/255,165/255,32/255],gray:[128/255,128/255,128/255],green:[0,128/255,0],greenyellow:[173/255,1,47/255],grey:[128/255,128/255,128/255],honeydew:[240/255,1,240/255],hotpink:[1,105/255,180/255],indianred:[205/255,92/255,92/255],indigo:[75/255,0,130/255],ivory:[1,1,240/255],khaki:[240/255,230/255,140/255],lavender:[230/255,230/255,250/255],lavenderblush:[1,240/255,245/255],lawngreen:[124/255,252/255,0],lemonchiffon:[1,250/255,205/255],lightblue:[173/255,216/255,230/255],lightcoral:[240/255,128/255,128/255],lightcyan:[224/255,1,1],lightgoldenrodyellow:[250/255,250/255,210/255],lightgray:[211/255,211/255,211/255],lightgreen:[144/255,238/255,144/255],lightgrey:[211/255,211/255,211/255],lightpink:[1,182/255,193/255],lightsalmon:[1,160/255,122/255],lightseagreen:[32/255,178/255,170/255],lightskyblue:[135/255,206/255,250/255],lightslategray:[119/255,136/255,153/255],lightslategrey:[119/255,136/255,153/255],lightsteelblue:[176/255,196/255,222/255],lightyellow:[1,1,224/255],lime:[0,1,0],limegreen:[50/255,205/255,50/255],linen:[250/255,240/255,230/255],magenta:[1,0,1],maroon:[128/255,0,0],mediumaquamarine:[102/255,205/255,170/255],mediumblue:[0,0,205/255],mediumorchid:[186/255,85/255,211/255],mediumpurple:[147/255,112/255,219/255],mediumseagreen:[60/255,179/255,113/255],mediumslateblue:[123/255,104/255,238/255],mediumspringgreen:[0,250/255,154/255],mediumturquoise:[72/255,209/255,204/255],mediumvioletred:[199/255,21/255,133/255],midnightblue:[25/255,25/255,112/255],mintcream:[245/255,1,250/255],mistyrose:[1,228/255,225/255],moccasin:[1,228/255,181/255],navajowhite:[1,222/255,173/255],navy:[0,0,128/255],oldlace:[253/255,245/255,230/255],olive:[128/255,128/255,0],olivedrab:[107/255,142/255,35/255],orange:[1,165/255,0],orangered:[1,69/255,0],orchid:[218/255,112/255,214/255],palegoldenrod:[238/255,232/255,170/255],palegreen:[152/255,251/255,152/255],paleturquoise:[175/255,238/255,238/255],palevioletred:[219/255,112/255,147/255],papayawhip:[1,239/255,213/255],peachpuff:[1,218/255,185/255],peru:[205/255,133/255,63/255],pink:[1,192/255,203/255],plum:[221/255,160/255,221/255],powderblue:[176/255,224/255,230/255],purple:[128/255,0,128/255],rebeccapurple:[102/255,51/255,153/255],red:[1,0,0],rosybrown:[188/255,143/255,143/255],royalblue:[65/255,105/255,225/255],saddlebrown:[139/255,69/255,19/255],salmon:[250/255,128/255,114/255],sandybrown:[244/255,164/255,96/255],seagreen:[46/255,139/255,87/255],seashell:[1,245/255,238/255],sienna:[160/255,82/255,45/255],silver:[192/255,192/255,192/255],skyblue:[135/255,206/255,235/255],slateblue:[106/255,90/255,205/255],slategray:[112/255,128/255,144/255],slategrey:[112/255,128/255,144/255],snow:[1,250/255,250/255],springgreen:[0,1,127/255],steelblue:[70/255,130/255,180/255],tan:[210/255,180/255,140/255],teal:[0,128/255,128/255],thistle:[216/255,191/255,216/255],tomato:[1,99/255,71/255],turquoise:[64/255,224/255,208/255],violet:[238/255,130/255,238/255],wheat:[245/255,222/255,179/255],white:[1,1,1],whitesmoke:[245/255,245/255,245/255],yellow:[1,1,0],yellowgreen:[154/255,205/255,50/255]};let Yb=Array(3).fill("<percentage> | <number>[0, 255]"),Xb=Array(3).fill("<number>[0, 255]");var tl=new Ji({id:"srgb",name:"sRGB",base:RS,fromBase:e=>e.map(t=>{let i=t<0?-1:1,r=t*i;return r>.0031308?i*(1.055*Qe(r,1/2.4)-.055):12.92*t}),toBase:e=>e.map(t=>{let i=t<0?-1:1,r=t*i;return r<.04045?t/12.92:i*Qe((r+.055)/1.055,2.4)}),formats:{rgb:{coords:Yb},rgb_number:{name:"rgb",commas:!0,coords:Xb,noAlpha:!0},color:{},rgba:{coords:Yb,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:Xb},hex:{type:"custom",toGamut:!0,test:e=>/^#([a-f0-9]{3,4}){1,2}$/i.test(e),parse(e){e.length<=5&&(e=e.replace(/[a-f0-9]/gi,"$&$&"));let t=[];return e.replace(/[a-f0-9]{2}/gi,i=>{t.push(parseInt(i,16)/255)}),{spaceId:"srgb",coords:t.slice(0,3),alpha:t.slice(3)[0]}},serialize:(e,t,{collapse:i=!0}={})=>{t<1&&e.push(t),e=e.map(f=>Math.round(f*255));let r=i&&e.every(f=>f%17===0);return"#"+e.map(f=>r?(f/17).toString(16):f.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:e=>/^[a-z]+$/i.test(e),parse(e){e=e.toLowerCase();let t={spaceId:"srgb",coords:null,alpha:1};if(e==="transparent"?(t.coords=Gb.black,t.alpha=0):t.coords=Gb[e],t.coords)return t}}}}),NS=new Ji({id:"p3",name:"P3",base:DS,fromBase:tl.fromBase,toBase:tl.toBase,formats:{color:{id:"display-p3"}}});dn.display_space=tl;if(typeof CSS!="undefined"&&CSS.supports)for(let e of[or,LS,NS]){let t=e.getMinCoords(),r=Pu({space:e,coords:t,alpha:1});if(CSS.supports("color",r)){dn.display_space=e;break}}function Nq(e,r={}){var a=r,{space:t=dn.display_space}=a,i=mi(a,["space"]);let f=Pu(e,i);if(typeof CSS=="undefined"||CSS.supports("color",f)||!dn.display_space)f=new String(f),f.color=e;else{let A=_r(e,t);f=new String(Pu(A,i)),f.color=A}return f}function IS(e,t,i="lab"){i=ft.get(i);let r=i.from(e),a=i.from(t);return Math.sqrt(r.reduce((f,A,H)=>{let q=a[H];return isNaN(A)||isNaN(q)?f:f+Qe(q-A,2)},0))}function Iq(e,t){return e=Bt(e),t=Bt(t),e.space===t.space&&e.alpha===t.alpha&&e.coords.every((i,r)=>i===t.coords[r])}function Kn(e){return Sr(e,[Cr,"y"])}function jS(e,t){qn(e,[Cr,"y"],t)}function jq(e){Object.defineProperty(e.prototype,"luminance",{get(){return Kn(this)},set(t){jS(this,t)}})}var Bq=Object.freeze({__proto__:null,getLuminance:Kn,register:jq,setLuminance:jS});function zq(e,t){e=Bt(e),t=Bt(t);let i=Math.max(Kn(e),0),r=Math.max(Kn(t),0);return r>i&&([i,r]=[r,i]),(i+.05)/(r+.05)}const Fq=.56,Wq=.57,$q=.62,Hq=.65,qb=.022,Uq=1.414,Vq=.1,Gq=5e-4,Yq=1.14,Zb=.027,Xq=1.14;function Kb(e){return e>=qb?e:e+Qe(qb-e,Uq)}function Qo(e){let t=e<0?-1:1,i=Math.abs(e);return t*Math.pow(i,2.4)}function qq(e,t){t=Bt(t),e=Bt(e);let i,r,a,f,A,H;t=_r(t,"srgb"),[f,A,H]=t.coords;let q=Qo(f)*.2126729+Qo(A)*.7151522+Qo(H)*.072175;e=_r(e,"srgb"),[f,A,H]=e.coords;let J=Qo(f)*.2126729+Qo(A)*.7151522+Qo(H)*.072175,ne=Kb(q),se=Kb(J),M=se>ne;return Math.abs(se-ne)<Gq?r=0:M?(i=Qe(se,Fq)-Qe(ne,Wq),r=i*Yq):(i=Qe(se,Hq)-Qe(ne,$q),r=i*Xq),Math.abs(r)<Vq?a=0:r>0?a=r-Zb:a=r+Zb,a*100}function Zq(e,t){e=Bt(e),t=Bt(t);let i=Math.max(Kn(e),0),r=Math.max(Kn(t),0);r>i&&([i,r]=[r,i]);let a=i+r;return a===0?0:(i-r)/a}const Kq=5e4;function Qq(e,t){e=Bt(e),t=Bt(t);let i=Math.max(Kn(e),0),r=Math.max(Kn(t),0);return r>i&&([i,r]=[r,i]),r===0?Kq:(i-r)/r}function Jq(e,t){e=Bt(e),t=Bt(t);let i=Sr(e,[or,"l"]),r=Sr(t,[or,"l"]);return Math.abs(i-r)}const eZ=216/24389,Qb=24/116,Mc=24389/27;let ip=Hr.D65;var jf=new ft({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:ip,base:Cr,fromBase(e){let i=e.map((r,a)=>r/ip[a]).map(r=>r>eZ?Math.cbrt(r):(Mc*r+16)/116);return[116*i[1]-16,500*(i[0]-i[1]),200*(i[1]-i[2])]},toBase(e){let t=[];return t[1]=(e[0]+16)/116,t[0]=e[1]/500+t[1],t[2]=t[1]-e[2]/200,[t[0]>Qb?Math.pow(t[0],3):(116*t[0]-16)/Mc,e[0]>8?Math.pow((e[0]+16)/116,3):e[0]/Mc,t[2]>Qb?Math.pow(t[2],3):(116*t[2]-16)/Mc].map((r,a)=>r*ip[a])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const rp=Math.pow(5,.5)*.5+.5;function tZ(e,t){e=Bt(e),t=Bt(t);let i=Sr(e,[jf,"l"]),r=Sr(t,[jf,"l"]),a=Math.abs(Math.pow(i,rp)-Math.pow(r,rp)),f=Math.pow(a,1/rp)*Math.SQRT2-40;return f<7.5?0:f}var eu=Object.freeze({__proto__:null,contrastAPCA:qq,contrastDeltaPhi:tZ,contrastLstar:Jq,contrastMichelson:Zq,contrastWCAG21:zq,contrastWeber:Qq});function iZ(e,t,i={}){El(i)&&(i={algorithm:i});let f=i,{algorithm:r}=f,a=mi(f,["algorithm"]);if(!r){let A=Object.keys(eu).map(H=>H.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${A}`)}e=Bt(e),t=Bt(t);for(let A in eu)if("contrast"+r.toLowerCase()===A.toLowerCase())return eu[A](e,t,a);throw new TypeError(`Unknown contrast algorithm: ${r}`)}function BS(e){let[t,i,r]=Al(e,Cr),a=t+15*i+3*r;return[4*t/a,9*i/a]}function zS(e){let[t,i,r]=Al(e,Cr),a=t+i+r;return[t/a,i/a]}function rZ(e){Object.defineProperty(e.prototype,"uv",{get(){return BS(this)}}),Object.defineProperty(e.prototype,"xy",{get(){return zS(this)}})}var nZ=Object.freeze({__proto__:null,register:rZ,uv:BS,xy:zS});function oZ(e,t){return IS(e,t,"lab")}const aZ=Math.PI,Jb=aZ/180;function sZ(e,t,{l:i=2,c:r=1}={}){let[a,f,A]=or.from(e),[,H,q]=Js.from(or,[a,f,A]),[J,ne,se]=or.from(t),M=Js.from(or,[J,ne,se])[1];H<0&&(H=0),M<0&&(M=0);let te=a-J,F=H-M,O=f-ne,$=A-se,Y=Qe(O,2)+Qe($,2)-Qe(F,2),X=.511;a>=16&&(X=.040975*a/(1+.01765*a));let G=.0638*H/(1+.0131*H)+.638,V;Number.isNaN(q)&&(q=0),q>=164&&q<=345?V=.56+Math.abs(.2*Math.cos((q+168)*Jb)):V=.36+Math.abs(.4*Math.cos((q+35)*Jb));let z=Math.pow(H,4),D=Math.sqrt(z/(z+1900)),R=G*(D*V+1-D),w=Qe(te/(i*X),2);return w+=Qe(F/(r*G),2),w+=Y/Qe(R,2),Math.sqrt(w)}const ex=203;var Ag=new ft({id:"xyz-abs-d65",name:"Absolute XYZ D65",coords:{x:{refRange:[0,9504.7],name:"Xa"},y:{refRange:[0,1e4],name:"Ya"},z:{refRange:[0,10888.3],name:"Za"}},base:Cr,fromBase(e){return e.map(t=>Math.max(t*ex,0))},toBase(e){return e.map(t=>Math.max(t/ex,0))}});const Tc=1.15,Pc=.66,tx=2610/Qe(2,14),lZ=Qe(2,14)/2610,ix=3424/Qe(2,12),rx=2413/Qe(2,7),nx=2392/Qe(2,7),cZ=1.7*2523/Qe(2,5),ox=Qe(2,5)/(1.7*2523),kc=-.56,np=16295499532821565e-27,uZ=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],hZ=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],dZ=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],pZ=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var FS=new ft({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Ag,fromBase(e){let[t,i,r]=e,a=Tc*t-(Tc-1)*r,f=Pc*i-(Pc-1)*t,H=Si(uZ,[a,f,r]).map(function(M){let te=ix+rx*Qe(M/1e4,tx),F=1+nx*Qe(M/1e4,tx);return Qe(te/F,cZ)}),[q,J,ne]=Si(dZ,H);return[(1+kc)*q/(1+kc*q)-np,J,ne]},toBase(e){let[t,i,r]=e,a=(t+np)/(1+kc-kc*(t+np)),A=Si(pZ,[a,i,r]).map(function(M){let te=ix-Qe(M,ox),F=nx*Qe(M,ox)-rx;return 1e4*Qe(te/F,lZ)}),[H,q,J]=Si(hZ,A),ne=(H+(Tc-1)*J)/Tc,se=(q+(Pc-1)*ne)/Pc;return[ne,se,J]},formats:{color:{}}}),Bf=new ft({id:"jzczhz",name:"JzCzHz",coords:{jz:{refRange:[0,1],name:"Jz"},cz:{refRange:[0,1],name:"Chroma"},hz:{refRange:[0,360],type:"angle",name:"Hue"}},base:FS,fromBase(e){let[t,i,r]=e,a;const f=2e-4;return Math.abs(i)<f&&Math.abs(r)<f?a=NaN:a=Math.atan2(r,i)*180/Math.PI,[t,Math.sqrt(Qe(i,2)+Qe(r,2)),Ah(a)]},toBase(e){return[e[0],e[1]*Math.cos(e[2]*Math.PI/180),e[1]*Math.sin(e[2]*Math.PI/180)]},formats:{color:{}}});function fZ(e,t){let[i,r,a]=Bf.from(e),[f,A,H]=Bf.from(t),q=i-f,J=r-A;Number.isNaN(a)&&Number.isNaN(H)?(a=0,H=0):Number.isNaN(a)?a=H:Number.isNaN(H)&&(H=a);let ne=a-H,se=2*Math.sqrt(r*A)*Math.sin(ne/2*(Math.PI/180));return Math.sqrt(Qe(q,2)+Qe(J,2)+Qe(se,2))}const WS=3424/4096,$S=2413/128,HS=2392/128,ax=2610/16384,mZ=2523/32,gZ=16384/2610,sx=32/2523,vZ=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],yZ=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],bZ=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],xZ=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var zf=new ft({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Ag,fromBase(e){let t=Si(vZ,e);return wZ(t)},toBase(e){let t=_Z(e);return Si(xZ,t)},formats:{color:{}}});function wZ(e){let t=e.map(function(i){let r=WS+$S*Qe(i/1e4,ax),a=1+HS*Qe(i/1e4,ax);return Qe(r/a,mZ)});return Si(yZ,t)}function _Z(e){return Si(bZ,e).map(function(r){let a=Math.max(Qe(r,sx)-WS,0),f=$S-HS*Qe(r,sx);return 1e4*Qe(a/f,gZ)})}function CZ(e,t){let[i,r,a]=zf.from(e),[f,A,H]=zf.from(t);return 720*Math.sqrt(Qe(i-f,2)+.25*Qe(r-A,2)+Qe(a-H,2))}const SZ=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],MZ=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],TZ=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],PZ=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var ku=new ft({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:Cr,fromBase(e){let i=Si(SZ,e).map(r=>Math.cbrt(r));return Si(TZ,i)},toBase(e){let i=Si(PZ,e).map(r=>Qe(r,3));return Si(MZ,i)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function kZ(e,t){let[i,r,a]=ku.from(e),[f,A,H]=ku.from(t),q=i-f,J=r-A,ne=a-H;return Math.sqrt(Qe(q,2)+Qe(J,2)+Qe(ne,2))}var Eu={deltaE76:oZ,deltaECMC:sZ,deltaE2000:If,deltaEJz:fZ,deltaEITP:CZ,deltaEOK:kZ};function Ls(e,t,i={}){El(i)&&(i={method:i});let f=i,{method:r=dn.deltaE}=f,a=mi(f,["method"]);e=Bt(e),t=Bt(t);for(let A in Eu)if("deltae"+r.toLowerCase()===A.toLowerCase())return Eu[A](e,t,a);throw new TypeError(`Unknown deltaE method: ${r}`)}function EZ(e,t=.25){let r=[ft.get("oklch","lch"),"l"];return qn(e,r,a=>a*(1+t))}function AZ(e,t=.25){let r=[ft.get("oklch","lch"),"l"];return qn(e,r,a=>a*(1-t))}var OZ=Object.freeze({__proto__:null,darken:AZ,lighten:EZ});function US(e,t,i=.5,r={}){[e,t]=[Bt(e),Bt(t)],Hn(i)==="object"&&([i,r]=[.5,i]);let{space:a,outputSpace:f,premultiplied:A}=r;return Ol(e,t,{space:a,outputSpace:f,premultiplied:A})(i)}function VS(e,t,i={}){let r;Og(e)&&([r,i]=[e,t],[e,t]=r.rangeArgs.colors);let M=i,{maxDeltaE:a,deltaEMethod:f,steps:A=2,maxSteps:H=1e3}=M,q=mi(M,["maxDeltaE","deltaEMethod","steps","maxSteps"]);r||([e,t]=[Bt(e),Bt(t)],r=Ol(e,t,q));let J=Ls(e,t),ne=a>0?Math.max(A,Math.ceil(J/a)+1):A,se=[];if(H!==void 0&&(ne=Math.min(ne,H)),ne===1)se=[{p:.5,color:r(.5)}];else{let te=1/(ne-1);se=Array.from({length:ne},(F,O)=>{let $=O*te;return{p:$,color:r($)}})}if(a>0){let te=se.reduce((F,O,$)=>{if($===0)return 0;let Y=Ls(O.color,se[$-1].color,f);return Math.max(F,Y)},0);for(;te>a;){te=0;for(let F=1;F<se.length&&se.length<H;F++){let O=se[F-1],$=se[F],Y=($.p+O.p)/2,X=r(Y);te=Math.max(te,Ls(X,O.color),Ls(X,$.color)),se.splice(F,0,{p:Y,color:r(Y)}),F++}}}return se=se.map(te=>te.color),se}function Ol(e,t,i={}){if(Og(e)){let[q,J]=[e,t];return Ol(...q.rangeArgs.colors,Ae(Ae({},q.rangeArgs.options),J))}let{space:r,outputSpace:a,progression:f,premultiplied:A}=i;e=Bt(e),t=Bt(t),e=el(e),t=el(t);let H={colors:[e,t],options:i};if(r?r=ft.get(r):r=ft.registry[dn.interpolationSpace]||e.space,a=a?ft.get(a):r,e=_r(e,r),t=_r(t,r),e=Zn(e),t=Zn(t),r.coords.h&&r.coords.h.type==="angle"){let q=i.hue=i.hue||"shorter",J=[r,"h"],[ne,se]=[Sr(e,J),Sr(t,J)];[ne,se]=Pq(q,[ne,se]),qn(e,J,ne),qn(t,J,se)}return A&&(e.coords=e.coords.map(q=>q*e.alpha),t.coords=t.coords.map(q=>q*t.alpha)),Object.assign(q=>{q=f?f(q):q;let J=e.coords.map((M,te)=>{let F=t.coords[te];return Su(M,F,q)}),ne=Su(e.alpha,t.alpha,q),se={space:r,coords:J,alpha:ne};return A&&(se.coords=se.coords.map(M=>M/ne)),a!==r&&(se=_r(se,a)),se},{rangeArgs:H})}function Og(e){return Hn(e)==="function"&&!!e.rangeArgs}dn.interpolationSpace="lab";function LZ(e){e.defineFunction("mix",US,{returns:"color"}),e.defineFunction("range",Ol,{returns:"function<color>"}),e.defineFunction("steps",VS,{returns:"array<color>"})}var DZ=Object.freeze({__proto__:null,isRange:Og,mix:US,range:Ol,register:LZ,steps:VS}),GS=new ft({id:"hsl",name:"HSL",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},l:{range:[0,100],name:"Lightness"}},base:tl,fromBase:e=>{let t=Math.max(...e),i=Math.min(...e),[r,a,f]=e,[A,H,q]=[NaN,0,(i+t)/2],J=t-i;if(J!==0){switch(H=q===0||q===1?0:(t-q)/Math.min(q,1-q),t){case r:A=(a-f)/J+(a<f?6:0);break;case a:A=(f-r)/J+2;break;case f:A=(r-a)/J+4}A=A*60}return[A,H*100,q*100]},toBase:e=>{let[t,i,r]=e;t=t%360,t<0&&(t+=360),i/=100,r/=100;function a(f){let A=(f+t/30)%12,H=i*Math.min(r,1-r);return r-H*Math.max(-1,Math.min(A-3,9-A,1))}return[a(0),a(8),a(4)]},formats:{hsl:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]},hsla:{coords:["<number> | <angle>","<percentage>","<percentage>"],commas:!0,lastAlpha:!0}}}),YS=new ft({id:"hsv",name:"HSV",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},s:{range:[0,100],name:"Saturation"},v:{range:[0,100],name:"Value"}},base:GS,fromBase(e){let[t,i,r]=e;i/=100,r/=100;let a=r+i*Math.min(r,1-r);return[t,a===0?0:200*(1-r/a),100*a]},toBase(e){let[t,i,r]=e;i/=100,r/=100;let a=r*(1-i/2);return[t,a===0||a===1?0:(r-a)/Math.min(a,1-a)*100,a*100]},formats:{color:{toGamut:!0}}}),RZ=new ft({id:"hwb",name:"HWB",coords:{h:{refRange:[0,360],type:"angle",name:"Hue"},w:{range:[0,100],name:"Whiteness"},b:{range:[0,100],name:"Blackness"}},base:YS,fromBase(e){let[t,i,r]=e;return[t,r*(100-i)/100,100-r]},toBase(e){let[t,i,r]=e;i/=100,r/=100;let a=i+r;if(a>=1){let H=i/a;return[t,0,H*100]}let f=1-r,A=f===0?0:1-i/f;return[t,A*100,f*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const NZ=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],IZ=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var XS=new Ji({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:NZ,fromXYZ_M:IZ}),jZ=new Ji({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:XS,toBase:e=>e.map(t=>Math.pow(Math.abs(t),563/256)*Math.sign(t)),fromBase:e=>e.map(t=>Math.pow(Math.abs(t),256/563)*Math.sign(t)),formats:{color:{id:"a98-rgb"}}});const BZ=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],zZ=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var qS=new Ji({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:Eg,toXYZ_M:BZ,fromXYZ_M:zZ});const FZ=1/512,WZ=16/512;var $Z=new Ji({id:"prophoto",name:"ProPhoto",base:qS,toBase(e){return e.map(t=>t<WZ?t/16:Qe(t,1.8))},fromBase(e){return e.map(t=>t>=FZ?Qe(t,1/1.8):16*t)},formats:{color:{id:"prophoto-rgb"}}}),HZ=new ft({id:"oklch",name:"Oklch",coords:{l:{refRange:[0,1],name:"Lightness"},c:{refRange:[0,.4],name:"Chroma"},h:{refRange:[0,360],type:"angle",name:"Hue"}},white:"D65",base:ku,fromBase(e){let[t,i,r]=e,a;const f=2e-4;return Math.abs(i)<f&&Math.abs(r)<f?a=NaN:a=Math.atan2(r,i)*180/Math.PI,[t,Math.sqrt(Qe(i,2)+Qe(r,2)),Ah(a)]},toBase(e){let[t,i,r]=e,a,f;return isNaN(r)?(a=0,f=0):(a=i*Math.cos(r*Math.PI/180),f=i*Math.sin(r*Math.PI/180)),[t,a,f]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const lx=203,cx=2610/Qe(2,14),UZ=Qe(2,14)/2610,VZ=2523/Qe(2,5),ux=Qe(2,5)/2523,hx=3424/Qe(2,12),dx=2413/Qe(2,7),px=2392/Qe(2,7);var GZ=new Ji({id:"rec2100pq",name:"REC.2100-PQ",base:Oh,toBase(e){return e.map(function(t){return Qe(Math.max(Qe(t,ux)-hx,0)/(dx-px*Qe(t,ux)),UZ)*1e4/lx})},fromBase(e){return e.map(function(t){let i=Math.max(t*lx/1e4,0),r=hx+dx*Qe(i,cx),a=1+px*Qe(i,cx);return Qe(r/a,VZ)})},formats:{color:{id:"rec2100-pq"}}});const fx=.17883277,mx=.28466892,gx=.55991073,op=3.7743;var YZ=new Ji({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:Oh,toBase(e){return e.map(function(t){return t<=.5?Qe(t,2)/3*op:(Math.exp((t-gx)/fx)+mx)/12*op})},fromBase(e){return e.map(function(t){return t/=op,t<=1/12?Math.sqrt(3*t):fx*Math.log(12*t-mx)+gx})},formats:{color:{id:"rec2100-hlg"}}});const ZS={};Xn.add("chromatic-adaptation-start",e=>{e.options.method&&(e.M=KS(e.W1,e.W2,e.options.method))});Xn.add("chromatic-adaptation-end",e=>{e.M||(e.M=KS(e.W1,e.W2,e.options.method))});function Lh({id:e,toCone_M:t,fromCone_M:i}){ZS[e]=arguments[0]}function KS(e,t,i="Bradford"){let r=ZS[i],[a,f,A]=Si(r.toCone_M,e),[H,q,J]=Si(r.toCone_M,t),ne=[[H/a,0,0],[0,q/f,0],[0,0,J/A]],se=Si(ne,r.toCone_M);return Si(r.fromCone_M,se)}Lh({id:"von Kries",toCone_M:[[.40024,.7076,-.08081],[-.2263,1.16532,.0457],[0,0,.91822]],fromCone_M:[[1.8599364,-1.1293816,.2198974],[.3611914,.6388125,-64e-7],[0,0,1.0890636]]});Lh({id:"Bradford",toCone_M:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],fromCone_M:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]]});Lh({id:"CAT02",toCone_M:[[.7328,.4296,-.1624],[-.7036,1.6975,.0061],[.003,.0136,.9834]],fromCone_M:[[1.0961238,-.278869,.1827452],[.454369,.4735332,.0720978],[-.0096276,-.005698,1.0153256]]});Lh({id:"CAT16",toCone_M:[[.401288,.650173,-.051461],[-.250268,1.204414,.045854],[-.002079,.048952,.953127]],fromCone_M:[[1.862067855087233,-1.011254630531685,.1491867754444518],[.3875265432361372,.6214474419314753,-.008973985167612518],[-.01584149884933386,-.03412293802851557,1.04996443687785]]});Object.assign(Hr,{A:[1.0985,1,.35585],C:[.98074,1,1.18232],D55:[.95682,1,.92149],D75:[.94972,1,1.22638],E:[1,1,1],F2:[.99186,1,.67393],F7:[.95041,1,1.08747],F11:[1.00962,1,.6435]});Hr.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const XZ=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],qZ=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var QS=new Ji({id:"acescg",name:"ACEScg",coords:{r:{range:[0,65504],name:"Red"},g:{range:[0,65504],name:"Green"},b:{range:[0,65504],name:"Blue"}},referred:"scene",white:Hr.ACES,toXYZ_M:XZ,fromXYZ_M:qZ,formats:{color:{}}});const Ec=Qe(2,-16),ap=-.35828683,Ac=(Math.log2(65504)+9.72)/17.52;var ZZ=new Ji({id:"acescc",name:"ACEScc",coords:{r:{range:[ap,Ac],name:"Red"},g:{range:[ap,Ac],name:"Green"},b:{range:[ap,Ac],name:"Blue"}},referred:"scene",base:QS,toBase(e){const t=-.3013698630136986;return e.map(function(i){return i<=t?(Qe(2,i*17.52-9.72)-Ec)*2:i<Ac?Qe(2,i*17.52-9.72):65504})},fromBase(e){return e.map(function(t){return t<=0?(Math.log2(Ec)+9.72)/17.52:t<Ec?(Math.log2(Ec+t*.5)+9.72)/17.52:(Math.log2(t)+9.72)/17.52})},formats:{color:{}}}),vx=Object.freeze({__proto__:null,A98RGB:jZ,A98RGB_Linear:XS,ACEScc:ZZ,ACEScg:QS,HSL:GS,HSV:YS,HWB:RZ,ICTCP:zf,JzCzHz:Bf,Jzazbz:FS,LCH:Js,Lab:or,Lab_D65:jf,OKLCH:HZ,OKLab:ku,P3:NS,P3_Linear:DS,ProPhoto:$Z,ProPhoto_Linear:qS,REC_2020:LS,REC_2020_Linear:Oh,REC_2100_HLG:YZ,REC_2100_PQ:GZ,XYZ_ABS_D65:Ag,XYZ_D50:Eg,XYZ_D65:Cr,sRGB:tl,sRGB_Linear:RS});class jt{constructor(...t){let i;t.length===1&&(i=Bt(t[0]));let r,a,f;i?(r=i.space||i.spaceId,a=i.coords,f=i.alpha):[r,a,f]=t,Object.defineProperty(this,"space",{value:ft.get(r),writable:!1,enumerable:!0,configurable:!0}),this.coords=a?a.slice():[0,0,0],this.alpha=f<1?f:1;for(let A=0;A<this.coords.length;A++)this.coords[A]==="NaN"&&(this.coords[A]=NaN);for(let A in this.space.coords)Object.defineProperty(this,A,{get:()=>this.get(A),set:H=>this.set(A,H)})}get spaceId(){return this.space.id}clone(){return new jt(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...t){let i=Nq(this,...t);return i.color=new jt(i.color),i}static get(t,...i){return t instanceof jt?t:new jt(t,...i)}static defineFunction(t,i,r=i){let{instance:a=!0,returns:f}=r,A=function(...H){let q=i(...H);if(f==="color")q=jt.get(q);else if(f==="function<color>"){let J=q;q=function(...ne){let se=J(...ne);return jt.get(se)},Object.assign(q,J)}else f==="array<color>"&&(q=q.map(J=>jt.get(J)));return q};t in jt||(jt[t]=A),a&&(jt.prototype[t]=function(...H){return A(this,...H)})}static defineFunctions(t){for(let i in t)jt.defineFunction(i,t[i],t[i])}static extend(t){if(t.register)t.register(jt);else for(let i in t)jt.defineFunction(i,t[i])}}jt.defineFunctions({get:Sr,getAll:Al,set:qn,setAll:OS,to:_r,equals:Iq,inGamut:zs,toGamut:Zn,distance:IS,toString:Pu});Object.assign(jt,{util:_q,hooks:Xn,WHITES:Hr,Space:ft,spaces:ft.registry,parse:AS,defaults:dn});for(let e of Object.keys(vx))ft.register(vx[e]);for(let e in ft.registry)Ff(e,ft.registry[e]);Xn.add("colorspace-init-end",e=>{var t;Ff(e.id,e),(t=e.aliases)==null||t.forEach(i=>{Ff(i,e)})});function Ff(e,t){Object.values(t.coords).map(r=>r.name);let i=e.replace(/-/g,"_");Object.defineProperty(jt.prototype,i,{get(){let r=this.getAll(e);return typeof Proxy=="undefined"?r:new Proxy(r,{has:(a,f)=>{try{return ft.resolveCoord([t,f]),!0}catch(A){}return Reflect.has(a,f)},get:(a,f,A)=>{if(f&&typeof f!="symbol"&&!(f in a)){let{index:H}=ft.resolveCoord([t,f]);if(H>=0)return a[H]}return Reflect.get(a,f,A)},set:(a,f,A,H)=>{if(f&&typeof f!="symbol"&&!(f in a)||f>=0){let{index:q}=ft.resolveCoord([t,f]);if(q>=0)return a[q]=A,this.setAll(e,a),!0}return Reflect.set(a,f,A,H)}})},set(r){this.setAll(e,r)},configurable:!0,enumerable:!0})}jt.extend(Eu);jt.extend({deltaE:Ls});Object.assign(jt,{deltaEMethods:Eu});jt.extend(OZ);jt.extend({contrast:iZ});jt.extend(nZ);jt.extend(Bq);jt.extend(DZ);jt.extend(eu);const KZ=.15,Yr=e=>typeof e=="string"?new jt(e):e,Mn=e=>e.toString({format:"hex"}),JS=(...e)=>{const t=e.map(Yr);if(t.length<2)return()=>Mn(t[0]);const r=t.slice(0,-1).map((a,f)=>[a,t[f+1]]).map(([a,f])=>{const A=jt.range(a,f,{outputSpace:"srgb"});return H=>Mn(A(H))});return a=>{if(a<=0)return Mn(t[0]);if(a>=1)return Mn(t[t.length-1]);const f=Math.floor(a*r.length);return r[f](a*r.length-f)}},QZ=(e,...t)=>{const i=t.map(Yr);if(i.length<2)return Array(e).fill(Mn(i[0]));const r=JS(...i);return Array(e).fill(0).map((a,f)=>r(f/(e-1)))},eM=e=>Mn(Yr(e).set("hsl.s",0)),JZ=(e,t)=>Mn(jt.mix(e,t,.5,{outputSpace:"srgb"})),eK=(e,t)=>Math.abs(Yr(t).hsl.h-Yr(e).hsl.h),il=(e,t)=>{const i=Yr(e);return i.hsv.v=i.hsv.v+i.hsv.v*t,i.hsv.v>100&&(i.hsv.s=i.hsv.s-(i.hsv.v-100)/1.677),i.hsv.s=Math.max(0,Math.min(100,i.hsv.s)),i.hsv.v=Math.max(0,Math.min(100,i.hsv.v)),Mn(i)},tM=e=>({R:e.srgb[0]*255,G:e.srgb[1]*255,B:e.srgb[2]*255}),Ll=e=>{const{R:t,G:i,B:r}=tM(e);return 1-(.299*t+.587*i+.114*r)/255};function tK(e){return Ll(e)<.9}const iM=(e,t=.05,i=1)=>{const r=Yr(e),{R:a,G:f,B:A}=tM(r),H=Ll(r);let q=t;tK(r)&&(q*=-.6),q*=Math.exp(H*1.2);const J=Math.min(Math.max(Math.round(255*q)+a,0),255),ne=Math.min(Math.max(Math.round(255*q)+f,0),255),se=Math.min(Math.max(Math.round(255*q)+A,0),255);return`rgba(${J}, ${ne}, ${se}, ${i})`},iK=(e,t)=>{const i=Yr(e);return i.alpha=t,Mn(i)};function rK(e){return t=>{var J,ne,se;const{steps:i,minColor:r,maxColor:a}=e,f=(J=e.minValue)!=null?J:Math.min(...t),A=(ne=e.maxValue)!=null?ne:Math.max(...t),H=(se=e.midValue)!=null?se:f<0&&A>0?0:(f+A)/2,q=nK(r!=null?r:Qs,a!=null?a:Qs,f,H,A,i);return M=>q(M)}}const nK=(e,t,i,r,a,f=0)=>{const A=sK(i,r,a),H=eK(e,t)>90?[e,eM(JZ(e,t)),t]:[e,t];return f<=0?oK(A,H):aK(A,f,H)},oK=(e,t)=>{const i=JS(...t);return r=>i(e(r))},aK=(e,t,i)=>{const r=QZ(t,...i);return a=>{const f=Math.floor(e(a)*t);return r[Math.min(Math.max(f,0),t-1)]}},sK=(e,t,i)=>r=>r==e&&r==i?.5:r<t?.5*((r-e)/(t-e)):.5+.5*(r-t)/(i-t);function Lg(e){let t;switch(typeof e=="string"?t=Pg(e):t=e,t.type){case"uniform":return{type:"Static",getColor:bq(t)};case"conditional":return{type:"Absolute",getColor:xq(t)};case"range":return{type:"Relative",getColor:rK(t)}}}const Dh=e=>{const{getValueFromDataStructure:t,applyColorToDataStructure:i}=e;return(r,a)=>{const f=Lg(a);let A;switch(f.type){case"Static":A=()=>f.getColor();break;case"Absolute":A=H=>f.getColor(H);break;case"Relative":{const H=r.map(t),q=f.getColor(H);A=J=>q(J);break}}return r.map(H=>{const q=t(H),J=A(q);return i(H,J)})}},lK=Dh({getValueFromDataStructure:e=>e.value,applyColorToDataStructure:(e,t)=>ze(Ae({},e),{color:t})});var cK=Hw,uK=bl,hK=ml,dK=Ri,pK=Lo,fK=gl,mK=ih,gK=th,vK="[object Map]",yK="[object Set]",bK=Object.prototype,xK=bK.hasOwnProperty;function wK(e){if(e==null)return!0;if(pK(e)&&(dK(e)||typeof e=="string"||typeof e.splice=="function"||fK(e)||gK(e)||hK(e)))return!e.length;var t=uK(e);if(t==vK||t==yK)return!e.size;if(mK(e))return!cK(e).length;for(var i in e)if(xK.call(e,i))return!1;return!0}var rM=wK;const _K=Et(rM),nM=(e,t)=>Object.assign(Object.create(e),t),CK=(e,t)=>Object.assign(Object.create(Object.getPrototypeOf(e)),e,t),oM=e=>{const t="column"in e;let i=e,r;if(t){const a=e,{column:f}=a,A=mi(a,["column"]);i=f,_K(A)||(r=A)}return{column:i,style:r}},ji=e=>{var f;const{column:t,style:i}=oM(e),r=Tr(t.type)?(f=t==null?void 0:t.getFormat)==null?void 0:f.call(t):void 0,a=ze(Ae({},i),{dateFormat:(i==null?void 0:i.dateFormat)||r});return nM(t,a)},Ci=e=>{var f,A;const t="column"in e,i=t?e.column:e,a=nM(i,ze(Ae({},t?e:{}),{title:(A=(f=e.title)!=null?f:i.title)!=null?A:i.name,enabled:!0}));return a.aggregation=a.aggregation||"sum",a},Co=e=>$n(e)?Ci(e):ji(e),aM=e=>e,SK=e=>e,sM=e=>e,Rh=e=>e,ir=e=>{var t;return(t=e.title)!=null?t:e.name},Wf=e=>Rh(ji(e)),Au=(e,t)=>{var M;if(t.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const i=e,r=i.x.length;let a=Mo(t,i.x.map(te=>te.name));a=a.map((te,F)=>ze(Ae({},te),{direction:lM(i.x[F].sortType)}));const f=Mo(t,i.breakBy.map(te=>te.name)),A=i.y.filter(te=>(te==null?void 0:te.sortType)&&te.sortType!=="sortNone"),H=a.length>1?1:0,q=cM(t,A,a,((M=a[H])==null?void 0:M.direction)===0?ma:void 0),J=i.y.map(te=>te.name),ne=i.breakBy.length>0?kK(t,q,a,J[0],f,i.breakBy):MK(t,q,a,J,i.y);return ze(Ae({},ne),{xAxisCount:r,type:"cartesian"})},lM=e=>{switch(e){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},cM=(e,t,i,r)=>{if(i.length===0)return[{key:"",xValues:[""],rawValues:[]}];const a=t.map(se=>({column:se.name,agg:"sum",title:se.name}));if(r){const se={column:r,title:r,agg:"min"};a.push(se)}const f=bS(e,i,a),A=[];let H=0;if(i.length===2){H=1;const M=ci(f,i[0].name);M&&A.push(M)}if(t.map(se=>{const M=ci(f,se.name);return M&&A.push(ze(Ae({},M),{direction:se.sortType==="sortAsc"?1:-1})),se}),r){const se=ci(f,r);se&&A.push(se)}if(i.length>0){const se=ci(f,i[H].name);se&&A.push(se)}const q=Mg(f,A),J=Mo(q,i.map(se=>se.name)),ne=xS(q,J);return ne.rows.map(se=>{const M=kl(se,ne.columns),te=M.map(Y=>Y.displayValue),F=M.map(Y=>{var X;return(X=Y.rawValue)!=null?X:Y.displayValue}),O=M.map(Y=>{var X;return(X=Y==null?void 0:Y.compareValue)==null?void 0:X.value});return{key:F.join(","),xValues:te,rawValues:F,compareValues:O}})},MK=(e,t,i,r,a)=>{const f=Mo(e,r),A=a.reduce((J,ne)=>(J[ne.name]=ne,J),{});if(f.length===0)return{type:"cartesian",series:[],xValues:[]};const H=Tg(e.rows,i),q=f.map(J=>{let ne=t.map(M=>{var X;const te=H[M.key],F=te?te[0]:[],O=Li(F,J),{color:$,rawValue:Y}=(X=F[J.index])!=null?X:{};return Ae({rawValue:Y,xValue:M.rawValues,xDisplayValue:M.xValues,xCompareValue:M.compareValues,value:O===void 0?NaN:O,blur:kh(F,J)},$&&{color:$})});const se=A[J.name].color;return se&&(ne=lK(ne,se)),{name:J.name,title:ir(A[J.name]),data:ne}});return{xValues:t,series:q}},TK=(e,t,i)=>kl(e,t).map((r,a)=>{const f=Vt(i[a].numberFormatConfig);return ti(t[a].type)?ii(f,parseFloat(r.displayValue)):r.displayValue}).join(","),PK=(e,t)=>kl(e,t).map(({rawValue:i})=>i),kK=(e,t,i,r,a,f)=>{const A=ci(e,r);if(!A)return{type:"cartesian",series:[],xValues:[]};const J=Sg(e.rows,a).map(ne=>{const se=ne[0];return{seriesName:TK(se,a,f),seriesValues:PK(se,a),rowsByXColumns:Tg(ne,i)}}).map(ne=>{const se=t.map(M=>{var X;const te=ne.rowsByXColumns[M.key],F=te?te[0]:[],O=Li(F,A),{color:$,rawValue:Y}=(X=F[A.index])!=null?X:{};return Ae({rawValue:Y,value:O===void 0?NaN:O,xValue:M.rawValues,xDisplayValue:M.xValues,xCompareValue:M.compareValues,blur:kh(F,A)},$&&{color:$})});return{name:ne.seriesName,data:se,custom:{rawValue:ne.seriesValues}}});return{xValues:t,series:J}},EK=(e,t)=>{const i=ze(Ae({},e),{x:e.breakBy,breakBy:[]});let r=Au(i,t);if(e.breakBy.some(f=>ti(f.type)&&(f==null?void 0:f.numberFormatConfig))){const f=r.xValues.map(A=>{const H=[];return e.breakBy.forEach((q,J)=>{const ne=Vt(q==null?void 0:q.numberFormatConfig),se=A.xValues[J];ti(q.type)?H.push(ii(ne,parseFloat(se))):H.push(A.xValues[J])}),ze(Ae({},A),{xValues:H})});r=ze(Ae({},r),{xValues:f})}return ze(Ae({},r),{type:"categorical"})},AK={displayValue:"0"},Cs=(e,t)=>{if(t){for(let i=0;i<e.columns.length;i++)if(e.columns[i].name===t.name)return i}return-1},OK=(e,t)=>({x:Cs(t,e.x),y:Cs(t,e.y),breakByPoint:Cs(t,e.breakByPoint),breakByColor:Cs(t,e.breakByColor),size:Cs(t,e.size)}),yx=(e,t)=>t[e]||AK,LK=(e,t)=>{const i=new Set;return e.forEach(r=>{i.add(r[t].displayValue)}),Array.from(i.values())},bx=(e,t,i)=>{if(i&&Ln(i))return LK(e,t)},xx=(e,t)=>[e,t],DK=(e,t)=>{const i=new Map(e==null?void 0:e.map(xx)),r=new Map(t==null?void 0:t.map(xx));return{xCategoriesMap:i,yCategoriesMap:r}},RK=(e,t)=>{var f,A;const i=OK(e,t),r=e!=null&&e.breakByPoint&&ti(e.breakByPoint.type)?Vt((f=e.breakByPoint)==null?void 0:f.numberFormatConfig):void 0,a=e!=null&&e.breakByColor&&(!Ln(e.breakByColor)||ti(e.breakByColor.type))?Vt((A=e.breakByColor)==null?void 0:A.numberFormatConfig):void 0;return t.rows.map(H=>{const q=Ae({},H[i.breakByPoint]);r&&(q.displayValue=ii(r,q.compareValue?q.compareValue.value:parseFloat(q.displayValue)));const J=Ae({},H[i.breakByColor]);return a&&(J.displayValue=ii(a,J.compareValue?J.compareValue.value:parseFloat(J.displayValue))),{xAxis:yx(i.x,H),yAxis:yx(i.y,H),breakByPoint:q,breakByColor:J,size:H[i.size]}})},NK=(e,t)=>{const i=RK(e,t),{x:r,y:a}=e,f=bx(i,"xAxis",r),A=bx(i,"yAxis",a);return{type:"scatter",scatterDataTable:i,xCategories:f,yCategories:A}},Oc=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const i=ci(e,t[0].name);return i?[Li(e.rows[0],i),t[0].name]:[void 0,void 0]},IK=(e,t)=>{const i={type:"indicator"};if(!e.value||t.rows.length===0)return i;const[r]=Oc(t,e.value);if(r===void 0)return i;const[a]=Oc(t,e.secondary),[f]=Oc(t,e.min),[A]=Oc(t,e.max);return{type:"indicator",value:r,secondary:a,min:f,max:A}},jK=(e,t)=>{const i=e.category&&ci(t,e.category.name);i&&(i.direction=lM(e.category.sortType));const r=cM(t,[],i?[i]:[],(i==null?void 0:i.direction)===0?ma:void 0),a=Tg(t.rows,i?[i]:[]),f=ci(t,e.boxMin.name),A=ci(t,e.boxMedian.name),H=ci(t,e.boxMax.name),q=ci(t,e.whiskerMin.name),J=ci(t,e.whiskerMax.name),ne=e.outliers&&ci(t,e.outliers.name),se=[],M=[];r.forEach((F,O)=>{const $=a[F.key],Y=$?$[0]:[],X=i&&kh(Y,i);se.push({q1:f?Li(Y,f):0,median:A?Li(Y,A):0,q3:H?Li(Y,H):0,low:q?Li(Y,q):0,high:J?Li(Y,J):0,blur:X});const G=ne?Y[ne.index].rawValue.split(",").map(V=>parseFloat(V)):[];M.push(...G.map(V=>({x:O,y:V,blur:X})))});const te=[{name:e.valueTitle,title:e.valueTitle,data:se}];return M.length>0&&te.push({name:e.valueTitle,title:e.valueTitle,data:M}),{type:"boxplot",xValues:r,series:te}},sr=(e,t)=>{var r;const i=e==null?void 0:e.filter(a=>a);return(r=i&&i[t%i.length])!=null?r:yq[t%10]},BK=(e,t)=>{let i={type:"range",steps:e.steps};if(e.rangeMode!=="auto"){const A=parseFloat(`${e.minvalue}`),H=parseFloat(`${e.midvalue}`),q=parseFloat(`${e.maxvalue}`);i=Ae(Ae(Ae(Ae({},i),A&&{minValue:A}),H&&{midValue:H}),q&&{maxValue:q})}const r=sr(t,0),a=il(r,.2),f=il(r,-.2);switch(e.rangeMode){case"auto":return ze(Ae({},i),{minColor:eM(r),maxColor:f});case"both":return ze(Ae({},i),{minColor:e.min||a,maxColor:e.max||f});case"min":return ze(Ae({},i),{minColor:e.min||a,maxColor:Qs});case"max":return ze(Ae({},i),{minColor:Qs,maxColor:e.max||f})}},uM=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return{type:"uniform",color:e.color||sr(t,e.colorIndex||0)};case"range":return BK(e,t);case"condition":return{type:"conditional",conditions:e.conditions.filter(i=>typeof i.expression=="string"),defaultColor:sr(t,0)};default:return Pg(sr(t,0))}},hM=e=>Object.entries(e).reduce((t,[i,{color:r}])=>(t[i]=r,t),{}),zK=e=>e.reduce((t,i)=>{var r,a;return(r=i.format)!=null&&r.members&&(t[pu(i.jaql.title)]=hM((a=i.format)==null?void 0:a.members)),t},{}),FK=Dh({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>ze(Ae({},e),{color:t})}),WK=uM({type:"range",steps:5,rangeMode:"auto"}),$K=(e,t)=>{const i=ci(t,e.geo.name),r=ci(t,e.color.name);if(!i||!r)throw new Error("Missing required column");const a=t.rows.map(A=>{const H=Li(A,r),q=Vt(e.color.numberFormatConfig),J=ii(q,H);return{geoName:Li(A,i),originalValue:H,formattedOriginalValue:J}});return{type:"areamap",geoData:FK(a,e.color.color||WK)}};function HK(e,t,i){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var f=Array(a);++r<a;)f[r]=e[r+t];return f}var UK=HK,VK=UK;function GK(e,t,i){var r=e.length;return i=i===void 0?r:i,!t&&i>=r?e:VK(e,t,i)}var YK=GK;function XK(e,t,i,r){for(var a=e.length,f=i+(r?1:-1);r?f--:++f<a;)if(t(e[f],f,e))return f;return-1}var qK=XK;function ZK(e){return e!==e}var KK=ZK;function QK(e,t,i){for(var r=i-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var JK=QK,eQ=qK,tQ=KK,iQ=JK;function rQ(e,t,i){return t===t?iQ(e,t,i):eQ(e,tQ,i)}var Dg=rQ,nQ=Dg;function oQ(e,t){for(var i=e.length;i--&&nQ(t,e[i],0)>-1;);return i}var aQ=oQ,sQ=Dg;function lQ(e,t){for(var i=-1,r=e.length;++i<r&&sQ(t,e[i],0)>-1;);return i}var cQ=lQ;function uQ(e){return e.split("")}var hQ=uQ,dQ="\\ud800-\\udfff",pQ="\\u0300-\\u036f",fQ="\\ufe20-\\ufe2f",mQ="\\u20d0-\\u20ff",gQ=pQ+fQ+mQ,vQ="\\ufe0e\\ufe0f",yQ="\\u200d",bQ=RegExp("["+yQ+dQ+gQ+vQ+"]");function xQ(e){return bQ.test(e)}var wQ=xQ,dM="\\ud800-\\udfff",_Q="\\u0300-\\u036f",CQ="\\ufe20-\\ufe2f",SQ="\\u20d0-\\u20ff",MQ=_Q+CQ+SQ,TQ="\\ufe0e\\ufe0f",PQ="["+dM+"]",$f="["+MQ+"]",Hf="\\ud83c[\\udffb-\\udfff]",kQ="(?:"+$f+"|"+Hf+")",pM="[^"+dM+"]",fM="(?:\\ud83c[\\udde6-\\uddff]){2}",mM="[\\ud800-\\udbff][\\udc00-\\udfff]",EQ="\\u200d",gM=kQ+"?",vM="["+TQ+"]?",AQ="(?:"+EQ+"(?:"+[pM,fM,mM].join("|")+")"+vM+gM+")*",OQ=vM+gM+AQ,LQ="(?:"+[pM+$f+"?",$f,fM,mM,PQ].join("|")+")",DQ=RegExp(Hf+"(?="+Hf+")|"+LQ+OQ,"g");function RQ(e){return e.match(DQ)||[]}var NQ=RQ,IQ=hQ,jQ=wQ,BQ=NQ;function zQ(e){return jQ(e)?BQ(e):IQ(e)}var FQ=zQ,WQ=o_,$Q=MC,HQ=YK,UQ=aQ,VQ=cQ,wx=FQ,GQ=jm;function YQ(e,t,i){if(e=GQ(e),e&&(i||t===void 0))return $Q(e);if(!e||!(t=WQ(t)))return e;var r=wx(e),a=wx(t),f=VQ(r,a),A=UQ(r,a)+1;return HQ(r,f,A).join("")}var XQ=YQ;const qQ=Et(XQ),yM=",";function ZQ(e){return e.join(`${yM} `)}function KQ(e){return e.split(yM).map(qQ)}function QQ(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function JQ(e){const{name:t,rawName:i,coordinates:r,value:a}=e;return{categories:i,displayName:t,coordinates:{lat:r.lat,lng:r.lng},value:a}}const eJ="N\\A",tJ=1,iJ=(e,t)=>{const i=rJ(e),r=e.locations&&Mo(t,e.locations.map(({name:q})=>q)),a=e.size&&ci(t,e.size.name),f=e.colorBy&&ci(t,e.colorBy.name),A=e.details&&ci(t,e.details.name);return{type:"scattermap",locations:t.rows.filter(q=>r.some(J=>Li(q,J)!==eJ)).map(q=>{const J=r.map(te=>Li(q,te)),ne=ZQ(J);let se;i&&(se={lat:Li(q,r[0]),lng:Li(q,r[1])});const M=r[0]&&kh(q,r[0]);return Ae(ze(Ae(Ae({name:ne,rawName:J,value:a?Li(q,a):tJ},f&&{colorValue:Li(q,f)}),A&&{details:Li(q,A)}),{blur:M}),se?{coordinates:se}:null)})}};function rJ(e){return e.locations.length===2&&e.locations.filter(t=>ti(t.type)).length===2}const nJ=(e,t)=>{const i=()=>ze(Ae({},e),{y:[]}),r=i(),a=i(),f=1,A=0;e.rangeValues.forEach(J=>{const ne=J[f],se=J[A];r.y.push(ne),a.y.push(se)});const H=Au(r,t),q=Au(a,t);return ze(Ae({},H),{type:"range",seriesOther:q})},oJ=(e,t,i)=>{if(to(e))return Au(t,i);if(Ga(e))return EK(t,i);if(Ya(e))return NK(t,i);if(Xa(e))return iJ(t,i);if(Pl(e))return IK(t,i);if(qa(e))return jK(t,i);if(Za(e))return $K(t,i);if(Ph(e))return nJ(t,i);throw new Error(`Unexpected chart type: ${e}`)};var aJ=hh,sJ=qC,lJ=ZC;function cJ(e,t){return lJ(sJ(e,t,aJ),e+"")}var Rg=cJ,uJ=Dg;function hJ(e,t){var i=e==null?0:e.length;return!!i&&uJ(e,t,0)>-1}var dJ=hJ;function pJ(e,t,i){for(var r=-1,a=e==null?0:e.length;++r<a;)if(i(t,e[r]))return!0;return!1}var fJ=pJ,sp=Kw,mJ=KC,gJ=Om,vJ=1/0,yJ=sp&&1/gJ(new sp([,-0]))[1]==vJ?function(e){return new sp(e)}:mJ,bJ=yJ,xJ=Uw,wJ=dJ,_J=fJ,CJ=Vw,SJ=bJ,MJ=Om,TJ=200;function PJ(e,t,i){var r=-1,a=wJ,f=e.length,A=!0,H=[],q=H;if(i)A=!1,a=_J;else if(f>=TJ){var J=t?null:SJ(e);if(J)return MJ(J);A=!1,a=CJ,q=new xJ}else q=t?[]:H;e:for(;++r<f;){var ne=e[r],se=t?t(ne):ne;if(ne=i||ne!==0?ne:0,A&&se===se){for(var M=q.length;M--;)if(q[M]===se)continue e;t&&q.push(se),H.push(ne)}else a(q,se,i)||(q!==H&&q.push(se),H.push(ne))}return H}var bM=PJ,kJ=Lo,EJ=Lr;function AJ(e){return EJ(e)&&kJ(e)}var xM=AJ,OJ=YC,LJ=Rg,DJ=bM,RJ=xM,NJ=LJ(function(e){return DJ(OJ(e,1,RJ,!0))}),IJ=NJ;const jJ=Et(IJ),wM=(e,t,i,r={})=>{if(Eh(e))return{rows:[],columns:[]};const a=jJ(Mo(e,t.map(ne=>ne.name))),f=e,H=[...i.map(ne=>{var se,M;return{column:(se=r[ne.name])!=null?se:ne.name,title:ne.name,agg:(M=ne.aggregation)!=null?M:"sum"}}),{column:ma,title:ma,agg:"min"}],q=bS(f,a,H),J=ci(q,ma);if(!J)throw new Error("Unexpected data has no row num column");return Mg(q,[J])};class Dl{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,i,r,a){t.font=a;let f=this.getStringWidth(t,i);const A="…",H=this.getStringWidth(t,A);if(f<=r)return{string:i,width:f};if(H>=r)return{string:A,width:H};do i=i.slice(0,i.length-1),f=this.getStringWidth(t,i);while(f+H>r);return{string:i+A,width:f+H}}getStringWidth(t,i){return Math.ceil(t.measureText(i).width)}floor(t,i){i=typeof i=="number"?i:0;const r=Math.pow(10,i);return Math.round(t*r)/r}setCanvasSizes(t,i,r,a){const f=window.devicePixelRatio||1;t.width=r*f,t.height=a*f,t.style.width=r+"px",t.style.height=a+"px",i.scale(f,f)}}const sa=new Dl,mo=function(e,t){return sa.floor(e*t.value,t.decimals)};function BJ(e,t){const i={};return e.forEach(r=>{t.some(function(a){return a.key===r?(i[r]=a,!0):!1})}),i}function zJ(e,t,i){const{showTitle:r,showSecondary:a,skin:f,maxHeight:A,maxWidth:H,borderWidth:q}=i;for(let J=0;J<t.length;J++){const ne=t[J],se=ne.value,M=mo(se,e.valueSectionMarginBottom),F=mo(se,e.indicatorVerticalMargin)*2;let O=se+M+F;if(r&&f==="vertical"){const $=mo(se,e.titleSectionHeight);O+=$}if(a){const $=mo(se,e.secSectionHeight),Y=mo(se,e.secSectionMarginTop);O+=$+Y+(q||0)}if(O<=A){const $=mo(se,e.numericMinWidth),X=mo(se,e.indicatorHorizontalMargin)*2;if($+X<=H)return ze(Ae({},ne),{maxWidth:H-X,maxHeight:A-F})}}return null}class FJ{getBaseMeasure(t,i,r){const a=i,f="sizes"in a?a.sizes:[],A=a.relativeSizes,H=a.measureKeys.concat(),q=Math.floor(r.clientWidth),J=Math.floor(r.clientHeight),ne=BJ(H,A);return zJ(ne,f,{maxWidth:q,maxHeight:J,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in a?a.borderWidth:0})}render(t,i,r,a){const f=t.getContext("2d");let A;r.height=a.value,r.maxWidth=a.maxWidth,r.maxHeight=a.maxHeight,A=r.height,r.fitValueMeasure=this.getFitValueMeasure(f,i,r),i.showTitle&&(r.fitTitleMeasure=this.getFitTitleMeasure(f,i,r),A+=i.skin==="vertical"?r.titleSectionHeight:0),i.showSecondary&&(r.fitSecondaryMeasure=this.getFitSecondaryMeasure(f,i,r),A+=r.valueSectionMarginBottom+r.secSectionHeight+r.secSectionMarginTop+r.borderWidth);const H=this.getCanvasWidth(i,r);r.width=H,r.height=A,sa.setCanvasSizes(t,f,H,A),this.draw(f,i,r)}getFitTitleMeasure(t,i,r){const a=i.skin==="horizontal",f=r.maxWidth-(a?r.fitValueMeasure.width+r.valueSectionMarginRight:0);if(a&&f+r.titleSectionMinWidth<=0)return;const A=sa.getFitStringMeasure(t,i.title.text,f,r.titleFont);return A.width+=a?r.valueSectionMarginRight:0,A.key="title",A}getFitValueMeasure(t,i,r){const a=sa.getFitStringMeasure(t,i.value.text,r.maxWidth,r.valueFont);return a.key="value",a}getFitSecondaryMeasure(t,i,r){const a=r.secDividerWidth,f=r.maxWidth-a,A=f-r.secTitleMinWidth,H=sa.getFitStringMeasure(t,i.secondary.text,A,r.secondaryValueFont),q=f-H.width,J=sa.getFitStringMeasure(t,i.secondaryTitle.text,q,r.secondaryTitleFont);return{width:J.width+H.width+a,titleString:J.string,valueString:H.string,key:"secondary"}}getCanvasWidth(t,i){let r;const a=i.fitTitleMeasure,f=i.fitValueMeasure,A=i.fitSecondaryMeasure;if(i.fitMeasures.some(q=>{const J=i[q.key],ne=t[q.dataKey];return!!(J&&ne&&J[q.prop]!==ne.text)}))return i.maxWidth;if(t.skin==="vertical"){let J=a&&a.width>f.width?a:f;J=A&&A.width>J.width?A:J,r=J.width}else r=f.width,a&&(r+=a.width),A&&A.width>r&&(r=A.width);return r}draw(t,i,r){this.clearCanvas(t,r),this.drawValue(t,i,r),i.showTitle&&this.drawTitle(t,i,r),i.showSecondary&&this.drawSecondary(t,r)}clearCanvas(t,i){t.fillStyle=i.backgroundColor,t.fillRect(0,0,i.width,i.height)}drawTitle(t,i,r){!r.fitTitleMeasure||i.skin==="horizontal"&&r.fitValueMeasure.string!==i[r.fitValueMeasure.key].text||(t.font=r.titleFont,t.fillStyle=r.titleColor,i.skin==="vertical"?(t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,r.titleSectionHeight/2)):(t.textAlign="left",t.textBaseline="top",t.fillText(r.fitTitleMeasure.string,r.fitValueMeasure.width+r.valueSectionMarginRight,r.titleSectionMarginTop)))}drawValue(t,i,r){const a=i.skin==="vertical";t.fillStyle=r.valueColor||i.color,t.font=r.valueFont,t.textAlign=a?"center":"left",t.textBaseline="middle",t.fillText(r.fitValueMeasure.string,a?r.width/2:0,(i.showTitle&&a?r.titleSectionHeight:0)+r.valueSectionHeight/2)}drawSecondary(t,i){let r=i.height-i.secSectionHeight/2;t.font=i.secondaryTitleFont,t.fillStyle=i.secondaryTitleColor,t.textAlign="left",t.textBaseline="middle",t.fillText(i.fitSecondaryMeasure.titleString,0,r),t.font=i.secondaryValueFont,t.fillStyle=i.secondaryValueColor,t.textAlign="right",t.fillText(i.fitSecondaryMeasure.valueString,i.width,r),t.strokeStyle=i.borderColor,t.beginPath(),r=i.height-i.secSectionHeight-i.secSectionMarginTop-i.borderWidth,t.moveTo(0,r),t.lineTo(i.width,r),t.stroke()}}const la=new Dl,Lc=function(e,t){return la.floor(e*t.value,t.decimals)};function WJ(e,t){const i={};return e.forEach(r=>{t.some(function(a){return a.key===r?(i[r]=a,!0):!1})}),i}function $J(e,t,i){const{showTitle:r,showSecondary:a,maxHeight:f,maxWidth:A,bracketThickness:H}=i;for(let q=0;q<t.length;q++){const J=t[q],ne=J.value,se=Lc(ne,e.indicatorMargin);let M=ne+se;if(r){const te=Lc(ne,e.titleSectionHeight);M+=te}if(a){const te=Lc(ne,e.secSectionHeight);M+=te}if(M<=f){const te=Lc(ne,e.numericMinWidth),F=se*2;if(te+H*2+F<=A)return ze(Ae({},J),{maxWidth:A-F,maxHeight:f-se})}}return null}class HJ{getBaseMeasure(t,i,r){const a=i,f="sizes"in a?a.sizes:[],A=a.relativeSizes,H=a.measureKeys.concat(),q=Math.floor(r.clientWidth),J=Math.floor(r.clientHeight),ne=WJ(H,A);return $J(ne,f,{maxWidth:q,maxHeight:J,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:a.bracketThickness})}render(t,i,r,a){const f=t.getContext("2d");let A;r.height=a.value,r.maxWidth=a.maxWidth,r.maxHeight=a.maxHeight,r.offsetY=0,A=r.height,i.showTitle&&(r.fitTitleMeasure=this.getFitTitleMeasure(f,i,r),A+=r.titleSectionHeight),r.fitValueMeasure=this.getFitValueMeasure(f,i,r),i.showSecondary&&(r.fitSecondaryMeasure=this.getFitSecondaryMeasure(f,i,r),A+=r.secSectionHeight);const H=this.getCanvasWidth(i,r);r.width=H,r.height=A,la.setCanvasSizes(t,f,H,A),this.draw(f,i,r)}getFitTitleMeasure(t,i,r){const a=r.bracketWidth*2+r.titleHorizontalMargin*2,f=r.maxWidth-a,A=la.getFitStringMeasure(t,i.title.text,f,r.titleFont);return A.width+=a,A.key="title",A}getFitValueMeasure(t,i,r){const a=r.bracketThickness*2,f=r.maxWidth-a,A=la.getFitStringMeasure(t,i.value.text,f,r.valueFont);return A.width+=a,A.key="value",A}getFitSecondaryMeasure(t,i,r){const a=r.bracketWidth*2+r.secDividerWidth,f=r.maxWidth-a,A=f-r.secTitleMinWidth,H=la.getFitStringMeasure(t,i.secondary.text,A,r.secondaryValueFont),q=f-H.width,J=la.getFitStringMeasure(t,i.secondaryTitle.text,q,r.secondaryTitleFont);return{width:J.width+H.width+a,titleString:J.string,valueString:H.string,key:"secondary"}}getCanvasWidth(t,i){let r=i.numericMinWidth+i.bracketThickness*2;const a=i.fitTitleMeasure,f=i.fitValueMeasure;let H=a&&a.width>f.width?a:f;const q=i.fitSecondaryMeasure,J=q&&q.width>H.width;let ne;return H=J?q:H,J?ne=H.titleString!==t.secondaryTitle.text||H.valueString!==t.secondary.text:ne=H.string!==t[H.key].text,ne?r=i.maxWidth:H.width>r&&(r=H.width),r}draw(t,i,r){this.clearCanvas(t,r),i.showTitle&&this.drawTitle(t,r),this.drawValue(t,i,r),i.showSecondary&&this.drawSecondary(t,r),(i.showTitle||i.showSecondary)&&this.drawBrackets(t,i,r)}clearCanvas(t,i){t.fillStyle=i.backgroundColor,t.fillRect(0,0,i.width,i.height)}drawTitle(t,i){t.font=i.titleFont,t.fillStyle=i.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(i.fitTitleMeasure.string,i.width/2,i.titleSectionHeight/2),i.offsetY+=i.titleSectionHeight}drawValue(t,i,r){const a=r.offsetY;t.fillStyle=r.valueColor,t.fillRect(1,a,r.width-r.bracketThickness*2,r.valueSectionHeight),t.font=r.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitValueMeasure.string,r.width/2,a+r.valueSectionHeight/2)}drawSecondary(t,i){const r=i.height-i.secBottomMargin;t.font=i.secondaryTitleFont,t.fillStyle=i.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(i.fitSecondaryMeasure.titleString,i.bracketWidth,r),t.font=i.secondaryValueFont,t.fillStyle=i.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(i.fitSecondaryMeasure.valueString,i.width-i.bracketWidth,r)}drawBrackets(t,i,r){t.strokeStyle=r.bracketColor,t.beginPath(),i.showTitle?(t.moveTo(r.bracketWidth+.5,.5),t.lineTo(.5,.5)):t.moveTo(.5,.5),t.lineTo(.5,r.height-.5),i.showSecondary&&t.lineTo(r.bracketWidth+.5,r.height-.5),t.stroke(),i.showTitle?(t.moveTo(r.width-(r.bracketWidth+.5),.5),t.lineTo(r.width-.5,.5)):t.moveTo(r.width-.5,.5),t.lineTo(r.width-.5,r.height-.5),i.showSecondary&&t.lineTo(r.width-(r.bracketWidth+.5),r.height-.5),t.stroke(),t.closePath()}}const ei=new Dl,Jo=function(e,t){return ei.floor(e*t.value,t.decimals)};function UJ(e,t){const i={};return e.forEach(r=>{t.some(function(a){return a.key===r?(i[r]=a,!0):!1})}),i}function VJ(e,t,i){const{maxWidth:r,maxHeight:a,showTitle:f,showSecondary:A}=i;for(let H=0;H<t.length;H++){const q=t[H],J=q.value,ne=Jo(J,e.valueSectionHeight),se=Jo(J,e.indicatorMargin),M=Math.ceil(se*1.5);let te=J+ne+M;if(f){const F=Jo(J,e.titleSectionHeight);te+=F}if(A){const F=Jo(J,e.secSectionHeight);te+=F}if(te<=a){const F=Jo(J,e.gaugeWidth),O=Jo(J,e.bracketWidth),$=se*2;if(F+O*2+$<=r)return ze(Ae({},q),{maxWidth:r-$,maxHeight:a-M})}}return null}class GJ{getBaseMeasure(t,i,r){const a=i,f="gaugeHeights"in a?a.gaugeHeights:void 0;if(!f)return null;const A=a.relativeSizes,H=a.measureKeys.concat(),q=Math.floor(r.clientWidth),J=Math.floor(r.clientHeight),ne=UJ(H,A);return VJ(ne,f,{maxWidth:q,maxHeight:J,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,i,r,a){const f=t.getContext("2d");let A=0,H;r.gaugeHeight=a.value,r.size=a.size,r.maxWidth=a.maxWidth,r.maxHeight=a.maxHeight,r.offsetY=0,H=r.gaugeHeight+r.valueSectionHeight,i.showTitle&&(r.fitTitleMeasure=this.getFitTitleMeasure(f,i,r),H+=r.titleSectionHeight),r.fitValueMeasure=this.getFitValueMeasure(f,i,r),i.showSecondary&&(r.fitSecondaryMeasure=this.getFitSecondaryMeasure(f,i,r),H+=r.secSectionHeight),A=this.getCanvasWidth(i,r),r.width=A,r.height=H,ei.setCanvasSizes(t,f,A,H),this.draw(f,i,r)}getFitTitleMeasure(t,i,r){const a=r.bracketWidth*2+r.titleHorizontalMargin*2,f=r.maxWidth-a,A=ei.getFitStringMeasure(t,i.title.text,f,r.titleFont);return A.width+=a,A.key="title",A}getFitValueMeasure(t,i,r){const a=r.bracketThickness*2,f=r.maxWidth-a,A=ei.getFitStringMeasure(t,i.value.text,f,r.valueFont);return A.width+=a,A.key="value",A}getFitSecondaryMeasure(t,i,r){const a=r.bracketWidth*2+r.secDividerWidth,f=r.maxWidth-a,A=f-r.secTitleMinWidth,H=ei.getFitStringMeasure(t,i.secondary.text,A,r.secondaryValueFont),q=f-H.width,J=ei.getFitStringMeasure(t,i.secondaryTitle.text,q,r.secondaryTitleFont);return{width:J.width+H.width+a,titleString:J.string,valueString:H.string,key:"secondary"}}getCanvasWidth(t,i){let r=i.gaugeWidth+i.bracketWidth*2;const a=i.fitTitleMeasure,f=i.fitValueMeasure;let H=a&&a.width>f.width?a:f;const q=i.fitSecondaryMeasure,J=q&&q.width>H.width;let ne;return H=J?q:H,J?ne=H.titleString!==t.secondaryTitle.text||H.valueString!==t.secondary.text:ne=H.string!==t[H.key].text,ne?r=i.maxWidth:H.width>r&&(r=H.width),r}draw(t,i,r){this.clearCanvas(t,r),i.showTitle&&this.drawTitle(t,r),this.drawGauge(t,i,r),this.drawValue(t,i,r),i.showSecondary&&this.drawSecondary(t,r),this.drawBrackets(t,i,r)}clearCanvas(t,i){t.fillStyle=i.backgroundColor,t.fillRect(0,0,i.width,i.height)}drawTitle(t,i){t.font=i.titleFont,t.fillStyle=i.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(i.fitTitleMeasure.string,i.width/2,(i.titleSectionHeight-i.titleBottomMargin)/2),i.offsetY+=i.titleSectionHeight}drawGauge(t,i,r){r.gaugeCenterX=r.width/2,r.gaugeCenterY=r.offsetY+r.gaugeHeight-r.gaugeBottomMargin,r.needleAngle=this.getNeedleAngle(i,r),i.skin===2&&i.conditions&&i.conditions.length?this.drawConditionalDial(t,i,r):this.drawSimpleDial(t,i,r),i.showTicks&&r.size!=="micro"&&this.drawTicks(t,i,r),this.drawNeedle(t,r),i.showLabels&&r.size!=="micro"&&this.drawLabels(t,i,r),r.offsetY+=r.gaugeHeight}drawValue(t,i,r){t.fillStyle=r.valueColor,t.fillRect(1,r.offsetY,r.width-r.bracketThickness*2,r.valueSectionHeight),t.font=r.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitValueMeasure.string,r.width/2,r.offsetY+r.valueSectionHeight/2)}drawSecondary(t,i){const r=i.height-i.secBottomMargin;t.font=i.secondaryTitleFont,t.fillStyle=i.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(i.fitSecondaryMeasure.titleString,i.bracketWidth,r),t.font=i.secondaryValueFont,t.fillStyle=i.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(i.fitSecondaryMeasure.valueString,i.width-i.bracketWidth,r)}drawBrackets(t,i,r){const a=i.showTitle?(r.titleSectionHeight-r.titleBottomMargin)/2:0;t.strokeStyle=r.bracketColor,t.beginPath(),t.moveTo(r.bracketWidth+.5,a+.5),t.lineTo(.5,a+.5),t.lineTo(.5,r.height-.5),i.showSecondary&&t.lineTo(r.bracketWidth+.5,r.height-.5),t.stroke(),t.moveTo(r.width-(r.bracketWidth+.5),a+.5),t.lineTo(r.width-.5,a+.5),t.lineTo(r.width-.5,r.height-.5),i.showSecondary&&t.lineTo(r.width-(r.bracketWidth+.5),r.height-.5),t.stroke(),t.closePath()}getNeedleAngle(t,i){const r=+t.min.data,a=+t.max.data,f=+(t.value.data||0);return f<r?i.startAngle-i.overDegrees:f>a?i.endAngle+i.overDegrees:this.getAngle(i,f,r,a)}getAngle(t,i,r,a){const f=(t.endAngle-t.startAngle)/(a-r);return(i-r)*f+t.startAngle}drawConditionalDial(t,i,r){const a=i.conditions,f=+i.min.data,A=+i.max.data,H=ei.degToRad(r.startAngle+180),q=ei.degToRad(r.endAngle+180);let J;const ne=se=>this.getAngle(r,se,f,A);for(this.drawArc(t,r,H,q,r.defaultDialColor),J=a.length-1;J>=0;J--){const se=a[J];let M=+se.data,te,F=NaN,O=NaN,$=NaN,Y=NaN;const X=.25;switch(se.operator){case"<":if(M<=f)break;M=M>A?A:M,te=ne(M),F=H,O=ei.degToRad(te+180);break;case">":if(M>=A)break;M=M<f?f:M,te=ne(M),F=ei.degToRad(te+180),O=q;break;case"≤":if(M<f)break;M=M>A?A:M,te=ne(M),F=H,O=ei.degToRad(te+(te+X<=r.endAngle?X:0)+180);break;case"≥":if(M>A)break;M=M<f?f:M,te=ne(M),F=ei.degToRad(te-(te-X>=r.startAngle?X:0)+180),O=q;break;case"=":if(M<f||M>A)break;te=ne(M),F=ei.degToRad(te-(te-X>=r.startAngle?X:0)+180),O=ei.degToRad(te+(te+X<=r.endAngle?X:0)+180);break;case"≠":if(M<f||M>A)F=H,O=q;else if(M===f||M===A){const G=M===f;F=ei.degToRad(r.startAngle+(G?X:0)+180),O=ei.degToRad(r.endAngle-(G?0:X)+180)}else te=ne(M),F=H,O=ei.degToRad(te-(te-X>=r.startAngle?X:0)+180),$=ei.degToRad(te+(te+X<=r.endAngle?X:0)+180),Y=q}!isNaN(F)&&!isNaN(O)&&this.drawArc(t,r,F,O,se.color),!isNaN($)&&!isNaN(Y)&&this.drawArc(t,r,$,Y,se.color)}}drawSimpleDial(t,i,r){const a=ei.degToRad(r.startAngle+180),f=ei.degToRad(r.needleAngle+180),A=ei.degToRad(r.endAngle+180);r.needleAngle>r.startAngle&&r.needleAngle<r.endAngle?(this.drawArc(t,r,a,f,r.valueColor),t.globalAlpha=r.gaugeOpacity,this.drawArc(t,r,f,A,r.valueColor)):(r.needleAngle<=r.startAngle&&(t.globalAlpha=r.gaugeOpacity),this.drawArc(t,r,a,A,r.valueColor)),t.globalAlpha=1}drawArc(t,i,r,a,f){t.fillStyle=f,t.beginPath(),t.arc(i.gaugeCenterX,i.gaugeCenterY,i.outerArcRadius,r,a),t.arc(i.gaugeCenterX,i.gaugeCenterY,i.innerArcRadius,a,r,!0),t.fill()}drawTicks(t,i,r){const a=r.startAngle,f=r.endAngle,A=r.tickDegreesIncrement,H=r.needleAngle;let q;for(q=a;q<=f;q+=A){const J=ei.degToRad(q),ne=r.gaugeCenterX-r.lengthToTick*Math.cos(J),se=r.gaugeCenterY-r.lengthToTick*Math.sin(J),M=H<a,te=H>=q-A/2&&H<q+A/2,F=q===f&&H>=q;t.fillStyle=!M&&te||F?i.color:r.tickColor,t.beginPath(),t.arc(ne,se,r.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,i){const r=ei.degToRad(i.needleAngle);t.fillStyle=i.needleColor,t.save(),t.translate(i.gaugeCenterX,i.gaugeCenterY),t.rotate(r),t.translate(-i.gaugeCenterX,-i.gaugeCenterY),t.beginPath(),t.arc(i.gaugeCenterX,i.gaugeCenterY,i.needleBaseRadius,.5*Math.PI,1.5*Math.PI,!0),t.lineTo(i.gaugeCenterX-i.needleLength,i.gaugeCenterY),t.fill(),t.restore()}drawLabels(t,i,r){t.font=r.labelFont,t.fillStyle=r.labelColor,t.textAlign="right",t.textBaseline="middle",t.fillText(i.min.text,r.gaugeCenterX-r.labelMargin,r.gaugeCenterY),t.textAlign="left",t.fillText(i.max.text,r.gaugeCenterX+r.labelMargin,r.gaugeCenterY)}}const Kr=new Dl;class YJ{render(t,i,r,a){const f=t.getContext("2d"),A=Math.floor(a.clientWidth)-r.horizontalMargin*2,H=r.sectionMinWidth;let q=0,J=0,ne=0,se=0,M=0,te=0,F=0,O=0,$;if(f.font=r.valueFont,$=Kr.getStringWidth(f,i.value.text),r.offsetX=0,i.title.text+=":",i.secondaryTitle&&(i.secondaryTitle.text+=":"),i.showTitle&&(f.font=r.titleFont,te=Kr.getStringWidth(f,i.value.text),M=Kr.getStringWidth(f,i.title.text),J=M<H?M:H,$+=J+r.textPadding),i.showSecondary&&(f.font=r.secondaryValueFont,O=Kr.getStringWidth(f,i.secondary.text),se=O<H?O:H,$+=se,f.font=r.secondaryTitleFont||"",F=Kr.getStringWidth(f,i.secondaryTitle.text),ne=F<H?F:H,$+=ne+r.horizontalPadding*2+r.dividerWidth+r.textPadding),i.type==="gauge"){const X=r.horizontalPadding*2+r.dividerWidth;if(r.forceTickerView){const V=te+M+F+O+r.textPadding*4+X,z=A-X-V;r.barWidth=Math.max(z,r.barWidth)}const G=r.barWidth+X;$+=G,r.showTickerBar=$<=A||!0,q+=r.showTickerBar?G:0}q+=i.showTitle?r.textPadding:0,q+=i.showSecondary?r.horizontalPadding*2+r.dividerWidth+r.textPadding:0;const Y=A-q-J-ne-se;if(r.fitValueMeasure=Kr.getFitStringMeasure(f,i.value.text,Y,r.valueFont),q+=r.fitValueMeasure.width,i.showSecondary){const X=A-q-J-ne;let G;r.fitSecValueMeasure=Kr.getFitStringMeasure(f,i.secondary.text,X,r.secondaryValueFont),q+=r.fitSecValueMeasure.width;const V=A-q,z=V/2;i.showTitle?M+F>V?M>z&&F>z?G=z:F>z&&M<=z?G=V-M:G=F:G=F:G=V,r.fitSecTitleMeasure=Kr.getFitStringMeasure(f,i.secondaryTitle.text,G,r.secondaryTitleFont),q+=r.fitSecTitleMeasure.width}if(i.showTitle){const X=A-q;r.fitTitleMeasure=Kr.getFitStringMeasure(f,i.title.text,X,r.titleFont),q+=r.fitTitleMeasure.width}r.width=q,Kr.setCanvasSizes(t,f,q,r.height),this.draw(f,i,r)}draw(t,i,r){this.clearCanvas(t,r),i.type==="gauge"&&r.showTickerBar&&(this.drawTickerBar(t,i,r),this.drawDivider(t,r)),t.textBaseline="middle",i.showTitle&&this.drawTitle(t,r),this.drawValue(t,i,r),i.showSecondary&&(this.drawDivider(t,r),this.drawSecondary(t,r))}clearCanvas(t,i){t.fillStyle=i.backgroundColor,t.fillRect(0,0,i.width,i.height)}drawTickerBar(t,i,r){var J;const a=+i.min.data,f=+i.max.data,A=+(((J=i.value)==null?void 0:J.data)||0),H=Math.round((r.height-r.barHeight)/2);let q;if(t.fillStyle=r.valueColor,A<=a)t.globalAlpha=r.barOpacity,t.fillRect(r.offsetX,H,r.barWidth,r.barHeight),q=0;else if(A>=f)t.fillRect(r.offsetX,H,r.barWidth,r.barHeight),q=r.barWidth-r.tickerBarWidth;else{const ne=(A-Math.abs(a))/(f-a),se=r.barWidth*ne;t.fillRect(r.offsetX,H,se,r.barHeight),t.globalAlpha=r.barOpacity,t.fillRect(r.offsetX+se,H,r.barWidth-se,r.barHeight),se>r.barWidth-r.tickerBarWidth?q=r.barWidth-r.tickerBarWidth:se<r.tickerBarWidth?q=0:q=se-1}t.globalAlpha=1,t.fillStyle=r.barHandleColor,t.fillRect(r.offsetX+q,Math.round((r.height-r.tickerBarHeight)/2),r.tickerBarWidth,r.tickerBarHeight),r.offsetX+=r.barWidth}drawDivider(t,i){t.fillStyle=i.dividerColor,t.fillRect(i.offsetX+i.horizontalPadding,Math.round((i.height-i.dividerHeight)/2),i.dividerWidth,i.dividerHeight),i.offsetX+=i.horizontalPadding*2+i.dividerWidth}drawTitle(t,i){t.font=i.titleFont,t.fillStyle=i.titleColor,t.fillText(i.fitTitleMeasure.string,i.offsetX,Math.floor(i.height/2)),i.offsetX+=i.fitTitleMeasure.width+i.textPadding}drawValue(t,i,r){t.font=r.valueFont,t.fillStyle=r.valueColor||i.color,t.fillText(r.fitValueMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitValueMeasure.width}drawSecondary(t,i){t.font=i.secondaryTitleFont,t.fillStyle=i.secondaryTitleColor,t.fillText(i.fitSecTitleMeasure.string,i.offsetX,Math.floor(i.height/2)),i.offsetX+=i.fitSecTitleMeasure.width+i.textPadding,t.font=i.secondaryValueFont,t.fillStyle=i.secondaryValueColor,t.fillText(i.fitSecValueMeasure.string,i.offsetX,Math.floor(i.height/2))}}const _x={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(0,206,230)",fontSizes:{big:66,medium:46,small:32,micro:23}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",borderColor:"rgb(215, 215, 215)",borderWidth:1,relativeSizes:[{key:"titleSectionHeight",value:.5,decimals:0},{key:"titleSectionMarginTop",value:.13,decimals:0},{key:"titleSectionMinWidth",value:.29,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"valueSectionMarginRight",value:.14,decimals:0},{key:"valueSectionMarginBottom",value:.07,decimals:0},{key:"secSectionHeight",value:.34,decimals:0},{key:"secSectionMarginTop",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"indicatorHorizontalMargin",value:.31,decimals:0},{key:"indicatorVerticalMargin",value:.46,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","titleSectionHeight","secSectionHeight","valueSectionMarginBottom","secSectionMarginTop","indicatorHorizontalMargin","indicatorVerticalMargin"],sizes:[{size:"big",value:70},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}],fitMeasures:[{key:"fitTitleMeasure",prop:"string",dataKey:"title"},{key:"fitValueMeasure",prop:"string",dataKey:"value"},{key:"fitSecondaryMeasure",prop:"titleString",dataKey:"secondaryTitle"},{key:"fitSecondaryMeasure",prop:"valueString",dataKey:"secondary"}]},XJ={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",bracketColor:"rgb(198, 198, 198)",bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:1,decimals:0},{key:"titleHorizontalMargin",value:.16,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"secSectionHeight",value:1,decimals:0},{key:"secBottomMargin",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"bracketWidth",value:.21,decimals:0},{key:"indicatorMargin",value:.64,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","bracketWidth","titleSectionHeight","secSectionHeight"],sizes:[{size:"big",value:70,maxWidth:1261,maxHeight:665},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}]},qJ={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},label:{color:"rgb(68, 81, 102)",fontSizes:{big:18,medium:13,small:9,micro:9}},textKeys:["title","value","secondaryTitle","secondaryValue","label"],backgroundColor:"rgb(255, 255, 255)",tickColor:"rgb(0, 0, 0)",needleColor:"rgb(43, 51, 66)",bracketColor:"rgb(198, 198, 198)",defaultDialColor:"rgb(179, 179, 179)",gaugeOpacity:.5,startAngle:20,endAngle:160,overDegrees:5,tickDegreesIncrement:10,bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:.26,decimals:0},{key:"titleHorizontalMargin",value:.08,decimals:0},{key:"titleBottomMargin",value:.1,decimals:0},{key:"gaugeWidth",value:1.33,decimals:0},{key:"gaugeBottomMargin",value:.19,decimals:0},{key:"outerArcRadius",value:.63,decimals:0},{key:"innerArcRadius",dataKey:"skin",values:{1:.24,2:.51},decimals:0},{key:"lengthToTick",value:.7,decimals:0},{key:"tickRadius",value:.01,decimals:1},{key:"needleLength",dataKey:"skin",values:{1:.52,2:.58},decimals:0},{key:"needleBaseRadius",value:.04,decimals:0},{key:"labelMargin",value:.26,decimals:0},{key:"valueSectionHeight",value:.36,decimals:0},{key:"secSectionHeight",value:.36,decimals:0},{key:"secBottomMargin",value:.05,decimals:0},{key:"secDividerWidth",value:.05,decimals:0},{key:"secTitleMinWidth",value:.1,decimals:0},{key:"bracketWidth",value:.08,decimals:0},{key:"indicatorMargin",value:.14,decimals:0}],gaugeHeights:[{size:"big",value:192,maxWidth:1297,maxHeight:1075},{size:"medium",value:134},{size:"small",value:94},{size:"micro",value:66}],measureKeys:["indicatorMargin","gaugeWidth","bracketWidth","titleSectionHeight","valueSectionHeight","secSectionHeight"]},ZJ={fontFamily:"Open Sans",fontSize:15,title:{color:"rgb(68, 81, 102)"},value:{fontWeight:800},secondaryTitle:{color:"rgb(163, 163, 163)"},secondaryValue:{color:"rgb(163, 163, 163)"},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"transparent",dividerColor:"rgb(39, 42, 52)",barHandleColor:"rgb(43, 51, 66)",height:35,horizontalMargin:15,barWidth:100,barHeight:11,barOpacity:.5,tickerBarWidth:2,tickerBarHeight:13,horizontalPadding:9,textPadding:6,sectionMinWidth:20,dividerWidth:1,dividerHeight:13,forceTickerView:!1};function KJ(e,t){const i=lr(ZJ);if(i.forceTickerView=t.forceTickerView,i.fontFamily=t.fontFamily,i.backgroundColor=t.backgroundColor,i.value.color=t.value.color,i.title.color=t.title.color,i.secondaryTitle.color=t.secondaryTitle.color,i.secondaryValue.color=t.secondaryTitle.color,t.tickerBarHeight){const r=t.tickerBarHeight;i.barHeight=r,i.tickerBarHeight=r+2}return i.forceTickerView&&(i.height=e.offsetHeight),i}const QJ=new Dl,JJ=new FJ,eee=new HJ,tee=new GJ,iee=new YJ;class ree{getService(t){switch(t){case"numericSimple":return JJ;case"numericBar":return eee;case"gauge":return tee;case"ticker":return iee}}render(t,i,r,a){let f=this.getService(i.type);const A="getBaseMeasure"in f?f.getBaseMeasure(i,r,a):void 0;if(!A||r.forceTickerView){f=this.getService("ticker");const H=KJ(t,r);this.setTextOptions(H),f.render(t,i,H,a);return}this.calculateRelativeSizes(i,r,A.value),this.setTextOptions(r,A.size),f.render(t,i,r,A)}calculateRelativeSizes(t,i,r){const{relativeSizes:a}=i;a.forEach(function(f){let A;if("dataKey"in f&&"values"in f&&f.dataKey in t)A=f.values[t[f.dataKey]];else if("value"in f)A=f.value;else throw new Error("Invalid relative size options");const H=A*r;i[f.key]=QJ.floor(H,f.decimals)})}setTextOptions(t,i){t.textKeys.forEach(function(r){const a=t[r],f=a.fontStyle?`${a.fontStyle} `:"",A=a.fontVariant?`${a.fontVariant} `:"",H=a.fontWeight?`${a.fontWeight} `:"",q=`${Number.parseFloat(a.fontSizes&&a.fontSizes[i]||a.fontSize||t.fontSize)}px `,J=a.fontFamily||t.fontFamily,{color:ne}=a;t[`${r}Font`]=f+A+H+q+J,t[`${r}Color`]=ne})}}function _M(e){var i;const t=(i=e.value)==null?void 0:i[0];if(t&&"color"in t)return t.color}function nee(e,t,i){if(!oee(e))return i;const a=Lg(e).getColor(t);return a?ze(Ae({},i),{value:ze(Ae({},i.value),{color:a})}):i}function oee(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}var aee=Jn,see=Lr,lee="[object Number]";function cee(e){return typeof e=="number"||see(e)&&aee(e)==lee}var CM=cee;const Sa=Et(CM),uee=(e,t)=>{const i=_M(t);return i&&e.value?Lg(i).getColor(Sa(e.value)?e.value:0):null},hee=(e,t,i)=>{var se,M,te,F,O,$,Y,X,G,V,z,D;const r=Sa(e.min)?e.min:0,a=Sa(e.max)?e.max:100,f=Dc(i,"value"),A=Dc(i,"secondary"),H=Dc(i,"min"),q=Dc(i,"max"),J=uee(e,i),ne=t.indicatorType==="gauge"?1:"vertical";return ze(Ae(Ae({},pee),J?{color:J}:null),{type:dee(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||ne,title:{text:(te=(M=(se=t.indicatorComponents)==null?void 0:se.title)==null?void 0:M.text)!=null?te:""},min:{data:r,text:ii(H,r)},max:{data:a,text:ii(q,a)},value:{data:e.value,text:Cx(e.value,f)},secondary:{data:e.secondary,text:Cx(e.secondary,A)},secondaryTitle:{text:($=(O=(F=t.indicatorComponents)==null?void 0:F.secondaryTitle)==null?void 0:O.text)!=null?$:""},showSecondary:e.secondary!==void 0,showTitle:!!((X=(Y=t.indicatorComponents)==null?void 0:Y.title)!=null&&X.shouldBeShown),showLabels:!!((V=(G=t.indicatorComponents)==null?void 0:G.labels)!=null&&V.shouldBeShown),showTicks:!!((D=(z=t.indicatorComponents)==null?void 0:z.ticks)!=null&&D.shouldBeShown)})};function dee(e,t){return e==="numeric"?t:e}function Dc(e,t){var r;const i=(r=e[t])==null?void 0:r[0];return Vt(i&&"numberFormatConfig"in i?i.numberFormatConfig:{})}const pee={color:"#00cee6",showSecondary:!1};function Cx(e,t){return e===void 0?"":isNaN(e)?"#N/A":ii(t,e)}function fee(e,t,i){const r=lr(i);for(const a in t){const f=t[a],A=mee(e,f);A&&SM(r,a,A)}return r}function SM(e,t,i){const r=t.split(".");if(r.length===1)if(r[0]in e)e[r[0]]=i;else return;else{const[a,...f]=r;if(!(a in e))return;const A=e[a];if(!MM(A))return;SM(A,f.join("."),i)}}function mee(e,t){const i=t.split(".");let r=e;for(const a of i){if(!MM(r)||!(a in r))return;r=r[a]}return r}function MM(e){return typeof e=="object"&&e!==null}function gee(e,t,i){return fee(e,t,i)}const vee={fontFamily:"typography.fontFamily","title.color":"chart.textColor",backgroundColor:"chart.backgroundColor","label.color":"chart.textColor","secondaryTitle.color":"chart.secondaryTextColor","secondaryValue.color":"chart.secondaryTextColor","value.color":"palette.variantColors.0"},yee=(e,t)=>{const{chartData:i,dataOptions:r,themeSettings:a}=t,{type:f}=e;let A;switch(f){case"gauge":A=qJ;break;case"numeric":e.numericSubtype==="numericBar"?A=XJ:A=_x;break;default:A=_x}a&&(A=gee(a,vee,A));const H=_M(r);return H&&i.value&&Sa(i.value)&&(A=nee(H,i.value,A)),Ae(ze(Ae({},A),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};var bee=lh;function xee(e,t){return bee(e,t)}var wee=xee;const Ng=Et(wee);function TM(e){return typeof e=="string"}function _ee(e){var q;const t=dr().themeSettings,[i,r]=Be.useState(Mh()),[a,f]=Be.useState(null),A=(q=Pi().app)==null?void 0:q.httpClient;return Be.useEffect(()=>{e&&(TM(e)?A&&HC(e,A).then(r).catch(f):r(e))},[e,A]),a?[null,a]:Ng(t,i)?[t,null]:[hi.withOptions({mergeArrays:!1},t,i),null]}const Ig=jo({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:i}=e,[r,a]=_ee(t);if(a)throw a;return Oe.jsx(Oe.Fragment,{children:r&&Oe.jsx(Cg.Provider,{value:{themeSettings:r},children:i})})}),Cee=({chartData:e,dataOptions:t,designOptions:i})=>{var A;const r=Be.useRef(null),a=Be.useRef(null),{themeSettings:f}=dr();return Be.useEffect(()=>{if(!a.current||!r.current)return;const H=new ree,q=hee(e,i,t),J=yee({type:i.indicatorType,numericSubtype:"numericSubtype"in i?i.numericSubtype:void 0,forceTickerView:i.forceTickerView,tickerBarHeight:i.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:f});H.render(a.current,q,J,r.current)},[e,t,i,f]),Oe.jsx("div",{ref:r,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(A=f==null?void 0:f.chart)==null?void 0:A.backgroundColor},"aria-label":"indicator-root",children:Oe.jsx("canvas",{ref:a})})},See=e=>e.type==="indicator",Mee=e=>"min"in e,Tee=e=>"indicatorComponents"in e,Pee=e=>!!e.chartData&&See(e.chartData)&&Mee(e.dataOptions)&&Tee(e.designOptions);var Uf={exports:{}};/* @preserve
21
21
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
22
22
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
23
23
  */(function(e,t){(function(i,r){r(t)})(nr,function(i){var r="1.9.4";function a(k){var re,ue,ge,Ce;for(ue=1,ge=arguments.length;ue<ge;ue++){Ce=arguments[ue];for(re in Ce)k[re]=Ce[re]}return k}var f=Object.create||function(){function k(){}return function(re){return k.prototype=re,new k}}();function A(k,re){var ue=Array.prototype.slice;if(k.bind)return k.bind.apply(k,ue.call(arguments,1));var ge=ue.call(arguments,2);return function(){return k.apply(re,ge.length?ge.concat(ue.call(arguments)):arguments)}}var H=0;function q(k){return"_leaflet_id"in k||(k._leaflet_id=++H),k._leaflet_id}function J(k,re,ue){var ge,Ce,Ee,Ne;return Ne=function(){ge=!1,Ce&&(Ee.apply(ue,Ce),Ce=!1)},Ee=function(){ge?Ce=arguments:(k.apply(ue,arguments),setTimeout(Ne,re),ge=!0)},Ee}function ne(k,re,ue){var ge=re[1],Ce=re[0],Ee=ge-Ce;return k===ge&&ue?k:((k-Ce)%Ee+Ee)%Ee+Ce}function se(){return!1}function M(k,re){if(re===!1)return k;var ue=Math.pow(10,re===void 0?6:re);return Math.round(k*ue)/ue}function te(k){return k.trim?k.trim():k.replace(/^\s+|\s+$/g,"")}function F(k){return te(k).split(/\s+/)}function O(k,re){Object.prototype.hasOwnProperty.call(k,"options")||(k.options=k.options?f(k.options):{});for(var ue in re)k.options[ue]=re[ue];return k.options}function $(k,re,ue){var ge=[];for(var Ce in k)ge.push(encodeURIComponent(ue?Ce.toUpperCase():Ce)+"="+encodeURIComponent(k[Ce]));return(!re||re.indexOf("?")===-1?"?":"&")+ge.join("&")}var Y=/\{ *([\w_ -]+) *\}/g;function X(k,re){return k.replace(Y,function(ue,ge){var Ce=re[ge];if(Ce===void 0)throw new Error("No value provided for variable "+ue);return typeof Ce=="function"&&(Ce=Ce(re)),Ce})}var G=Array.isArray||function(k){return Object.prototype.toString.call(k)==="[object Array]"};function V(k,re){for(var ue=0;ue<k.length;ue++)if(k[ue]===re)return ue;return-1}var z="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function D(k){return window["webkit"+k]||window["moz"+k]||window["ms"+k]}var R=0;function w(k){var re=+new Date,ue=Math.max(0,16-(re-R));return R=re+ue,window.setTimeout(k,ue)}var T=window.requestAnimationFrame||D("RequestAnimationFrame")||w,p=window.cancelAnimationFrame||D("CancelAnimationFrame")||D("CancelRequestAnimationFrame")||function(k){window.clearTimeout(k)};function c(k,re,ue){if(ue&&T===w)k.call(re);else return T.call(window,A(k,re))}function d(k){k&&p.call(window,k)}var _={__proto__:null,extend:a,create:f,bind:A,get lastId(){return H},stamp:q,throttle:J,wrapNum:ne,falseFn:se,formatNum:M,trim:te,splitWords:F,setOptions:O,getParamString:$,template:X,isArray:G,indexOf:V,emptyImageUrl:z,requestFn:T,cancelFn:p,requestAnimFrame:c,cancelAnimFrame:d};function y(){}y.extend=function(k){var re=function(){O(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},ue=re.__super__=this.prototype,ge=f(ue);ge.constructor=re,re.prototype=ge;for(var Ce in this)Object.prototype.hasOwnProperty.call(this,Ce)&&Ce!=="prototype"&&Ce!=="__super__"&&(re[Ce]=this[Ce]);return k.statics&&a(re,k.statics),k.includes&&(C(k.includes),a.apply(null,[ge].concat(k.includes))),a(ge,k),delete ge.statics,delete ge.includes,ge.options&&(ge.options=ue.options?f(ue.options):{},a(ge.options,k.options)),ge._initHooks=[],ge.callInitHooks=function(){if(!this._initHooksCalled){ue.callInitHooks&&ue.callInitHooks.call(this),this._initHooksCalled=!0;for(var Ee=0,Ne=ge._initHooks.length;Ee<Ne;Ee++)ge._initHooks[Ee].call(this)}},re},y.include=function(k){var re=this.prototype.options;return a(this.prototype,k),k.options&&(this.prototype.options=re,this.mergeOptions(k.options)),this},y.mergeOptions=function(k){return a(this.prototype.options,k),this},y.addInitHook=function(k){var re=Array.prototype.slice.call(arguments,1),ue=typeof k=="function"?k:function(){this[k].apply(this,re)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(ue),this};function C(k){if(!(typeof L=="undefined"||!L||!L.Mixin)){k=G(k)?k:[k];for(var re=0;re<k.length;re++)k[re]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var I={on:function(k,re,ue){if(typeof k=="object")for(var ge in k)this._on(ge,k[ge],re);else{k=F(k);for(var Ce=0,Ee=k.length;Ce<Ee;Ce++)this._on(k[Ce],re,ue)}return this},off:function(k,re,ue){if(!arguments.length)delete this._events;else if(typeof k=="object")for(var ge in k)this._off(ge,k[ge],re);else{k=F(k);for(var Ce=arguments.length===1,Ee=0,Ne=k.length;Ee<Ne;Ee++)Ce?this._off(k[Ee]):this._off(k[Ee],re,ue)}return this},_on:function(k,re,ue,ge){if(typeof re!="function"){console.warn("wrong listener type: "+typeof re);return}if(this._listens(k,re,ue)===!1){ue===this&&(ue=void 0);var Ce={fn:re,ctx:ue};ge&&(Ce.once=!0),this._events=this._events||{},this._events[k]=this._events[k]||[],this._events[k].push(Ce)}},_off:function(k,re,ue){var ge,Ce,Ee;if(this._events&&(ge=this._events[k],!!ge)){if(arguments.length===1){if(this._firingCount)for(Ce=0,Ee=ge.length;Ce<Ee;Ce++)ge[Ce].fn=se;delete this._events[k];return}if(typeof re!="function"){console.warn("wrong listener type: "+typeof re);return}var Ne=this._listens(k,re,ue);if(Ne!==!1){var $e=ge[Ne];this._firingCount&&($e.fn=se,this._events[k]=ge=ge.slice()),ge.splice(Ne,1)}}},fire:function(k,re,ue){if(!this.listens(k,ue))return this;var ge=a({},re,{type:k,target:this,sourceTarget:re&&re.sourceTarget||this});if(this._events){var Ce=this._events[k];if(Ce){this._firingCount=this._firingCount+1||1;for(var Ee=0,Ne=Ce.length;Ee<Ne;Ee++){var $e=Ce[Ee],Ue=$e.fn;$e.once&&this.off(k,Ue,$e.ctx),Ue.call($e.ctx||this,ge)}this._firingCount--}}return ue&&this._propagateEvent(ge),this},listens:function(k,re,ue,ge){typeof k!="string"&&console.warn('"string" type argument expected');var Ce=re;typeof re!="function"&&(ge=!!re,Ce=void 0,ue=void 0);var Ee=this._events&&this._events[k];if(Ee&&Ee.length&&this._listens(k,Ce,ue)!==!1)return!0;if(ge){for(var Ne in this._eventParents)if(this._eventParents[Ne].listens(k,re,ue,ge))return!0}return!1},_listens:function(k,re,ue){if(!this._events)return!1;var ge=this._events[k]||[];if(!re)return!!ge.length;ue===this&&(ue=void 0);for(var Ce=0,Ee=ge.length;Ce<Ee;Ce++)if(ge[Ce].fn===re&&ge[Ce].ctx===ue)return Ce;return!1},once:function(k,re,ue){if(typeof k=="object")for(var ge in k)this._on(ge,k[ge],re,!0);else{k=F(k);for(var Ce=0,Ee=k.length;Ce<Ee;Ce++)this._on(k[Ce],re,ue,!0)}return this},addEventParent:function(k){return this._eventParents=this._eventParents||{},this._eventParents[q(k)]=k,this},removeEventParent:function(k){return this._eventParents&&delete this._eventParents[q(k)],this},_propagateEvent:function(k){for(var re in this._eventParents)this._eventParents[re].fire(k.type,a({layer:k.target,propagatedFrom:k.target},k),!0)}};I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens;var j=y.extend(I);function E(k,re,ue){this.x=ue?Math.round(k):k,this.y=ue?Math.round(re):re}var b=Math.trunc||function(k){return k>0?Math.floor(k):Math.ceil(k)};E.prototype={clone:function(){return new E(this.x,this.y)},add:function(k){return this.clone()._add(x(k))},_add:function(k){return this.x+=k.x,this.y+=k.y,this},subtract:function(k){return this.clone()._subtract(x(k))},_subtract:function(k){return this.x-=k.x,this.y-=k.y,this},divideBy:function(k){return this.clone()._divideBy(k)},_divideBy:function(k){return this.x/=k,this.y/=k,this},multiplyBy:function(k){return this.clone()._multiplyBy(k)},_multiplyBy:function(k){return this.x*=k,this.y*=k,this},scaleBy:function(k){return new E(this.x*k.x,this.y*k.y)},unscaleBy:function(k){return new E(this.x/k.x,this.y/k.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=b(this.x),this.y=b(this.y),this},distanceTo:function(k){k=x(k);var re=k.x-this.x,ue=k.y-this.y;return Math.sqrt(re*re+ue*ue)},equals:function(k){return k=x(k),k.x===this.x&&k.y===this.y},contains:function(k){return k=x(k),Math.abs(k.x)<=Math.abs(this.x)&&Math.abs(k.y)<=Math.abs(this.y)},toString:function(){return"Point("+M(this.x)+", "+M(this.y)+")"}};function x(k,re,ue){return k instanceof E?k:G(k)?new E(k[0],k[1]):k==null?k:typeof k=="object"&&"x"in k&&"y"in k?new E(k.x,k.y):new E(k,re,ue)}function u(k,re){if(k)for(var ue=re?[k,re]:k,ge=0,Ce=ue.length;ge<Ce;ge++)this.extend(ue[ge])}u.prototype={extend:function(k){var re,ue;if(!k)return this;if(k instanceof E||typeof k[0]=="number"||"x"in k)re=ue=x(k);else if(k=m(k),re=k.min,ue=k.max,!re||!ue)return this;return!this.min&&!this.max?(this.min=re.clone(),this.max=ue.clone()):(this.min.x=Math.min(re.x,this.min.x),this.max.x=Math.max(ue.x,this.max.x),this.min.y=Math.min(re.y,this.min.y),this.max.y=Math.max(ue.y,this.max.y)),this},getCenter:function(k){return x((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,k)},getBottomLeft:function(){return x(this.min.x,this.max.y)},getTopRight:function(){return x(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(k){var re,ue;return typeof k[0]=="number"||k instanceof E?k=x(k):k=m(k),k instanceof u?(re=k.min,ue=k.max):re=ue=k,re.x>=this.min.x&&ue.x<=this.max.x&&re.y>=this.min.y&&ue.y<=this.max.y},intersects:function(k){k=m(k);var re=this.min,ue=this.max,ge=k.min,Ce=k.max,Ee=Ce.x>=re.x&&ge.x<=ue.x,Ne=Ce.y>=re.y&&ge.y<=ue.y;return Ee&&Ne},overlaps:function(k){k=m(k);var re=this.min,ue=this.max,ge=k.min,Ce=k.max,Ee=Ce.x>re.x&&ge.x<ue.x,Ne=Ce.y>re.y&&ge.y<ue.y;return Ee&&Ne},isValid:function(){return!!(this.min&&this.max)},pad:function(k){var re=this.min,ue=this.max,ge=Math.abs(re.x-ue.x)*k,Ce=Math.abs(re.y-ue.y)*k;return m(x(re.x-ge,re.y-Ce),x(ue.x+ge,ue.y+Ce))},equals:function(k){return k?(k=m(k),this.min.equals(k.getTopLeft())&&this.max.equals(k.getBottomRight())):!1}};function m(k,re){return!k||k instanceof u?k:new u(k,re)}function n(k,re){if(k)for(var ue=re?[k,re]:k,ge=0,Ce=ue.length;ge<Ce;ge++)this.extend(ue[ge])}n.prototype={extend:function(k){var re=this._southWest,ue=this._northEast,ge,Ce;if(k instanceof l)ge=k,Ce=k;else if(k instanceof n){if(ge=k._southWest,Ce=k._northEast,!ge||!Ce)return this}else return k?this.extend(o(k)||s(k)):this;return!re&&!ue?(this._southWest=new l(ge.lat,ge.lng),this._northEast=new l(Ce.lat,Ce.lng)):(re.lat=Math.min(ge.lat,re.lat),re.lng=Math.min(ge.lng,re.lng),ue.lat=Math.max(Ce.lat,ue.lat),ue.lng=Math.max(Ce.lng,ue.lng)),this},pad:function(k){var re=this._southWest,ue=this._northEast,ge=Math.abs(re.lat-ue.lat)*k,Ce=Math.abs(re.lng-ue.lng)*k;return new n(new l(re.lat-ge,re.lng-Ce),new l(ue.lat+ge,ue.lng+Ce))},getCenter:function(){return new l((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new l(this.getNorth(),this.getWest())},getSouthEast:function(){return new l(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(k){typeof k[0]=="number"||k instanceof l||"lat"in k?k=o(k):k=s(k);var re=this._southWest,ue=this._northEast,ge,Ce;return k instanceof n?(ge=k.getSouthWest(),Ce=k.getNorthEast()):ge=Ce=k,ge.lat>=re.lat&&Ce.lat<=ue.lat&&ge.lng>=re.lng&&Ce.lng<=ue.lng},intersects:function(k){k=s(k);var re=this._southWest,ue=this._northEast,ge=k.getSouthWest(),Ce=k.getNorthEast(),Ee=Ce.lat>=re.lat&&ge.lat<=ue.lat,Ne=Ce.lng>=re.lng&&ge.lng<=ue.lng;return Ee&&Ne},overlaps:function(k){k=s(k);var re=this._southWest,ue=this._northEast,ge=k.getSouthWest(),Ce=k.getNorthEast(),Ee=Ce.lat>re.lat&&ge.lat<ue.lat,Ne=Ce.lng>re.lng&&ge.lng<ue.lng;return Ee&&Ne},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(k,re){return k?(k=s(k),this._southWest.equals(k.getSouthWest(),re)&&this._northEast.equals(k.getNorthEast(),re)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function s(k,re){return k instanceof n?k:new n(k,re)}function l(k,re,ue){if(isNaN(k)||isNaN(re))throw new Error("Invalid LatLng object: ("+k+", "+re+")");this.lat=+k,this.lng=+re,ue!==void 0&&(this.alt=+ue)}l.prototype={equals:function(k,re){if(!k)return!1;k=o(k);var ue=Math.max(Math.abs(this.lat-k.lat),Math.abs(this.lng-k.lng));return ue<=(re===void 0?1e-9:re)},toString:function(k){return"LatLng("+M(this.lat,k)+", "+M(this.lng,k)+")"},distanceTo:function(k){return g.distance(this,o(k))},wrap:function(){return g.wrapLatLng(this)},toBounds:function(k){var re=180*k/40075017,ue=re/Math.cos(Math.PI/180*this.lat);return s([this.lat-re,this.lng-ue],[this.lat+re,this.lng+ue])},clone:function(){return new l(this.lat,this.lng,this.alt)}};function o(k,re,ue){return k instanceof l?k:G(k)&&typeof k[0]!="object"?k.length===3?new l(k[0],k[1],k[2]):k.length===2?new l(k[0],k[1]):null:k==null?k:typeof k=="object"&&"lat"in k?new l(k.lat,"lng"in k?k.lng:k.lon,k.alt):re===void 0?null:new l(k,re,ue)}var v={latLngToPoint:function(k,re){var ue=this.projection.project(k),ge=this.scale(re);return this.transformation._transform(ue,ge)},pointToLatLng:function(k,re){var ue=this.scale(re),ge=this.transformation.untransform(k,ue);return this.projection.unproject(ge)},project:function(k){return this.projection.project(k)},unproject:function(k){return this.projection.unproject(k)},scale:function(k){return 256*Math.pow(2,k)},zoom:function(k){return Math.log(k/256)/Math.LN2},getProjectedBounds:function(k){if(this.infinite)return null;var re=this.projection.bounds,ue=this.scale(k),ge=this.transformation.transform(re.min,ue),Ce=this.transformation.transform(re.max,ue);return new u(ge,Ce)},infinite:!1,wrapLatLng:function(k){var re=this.wrapLng?ne(k.lng,this.wrapLng,!0):k.lng,ue=this.wrapLat?ne(k.lat,this.wrapLat,!0):k.lat,ge=k.alt;return new l(ue,re,ge)},wrapLatLngBounds:function(k){var re=k.getCenter(),ue=this.wrapLatLng(re),ge=re.lat-ue.lat,Ce=re.lng-ue.lng;if(ge===0&&Ce===0)return k;var Ee=k.getSouthWest(),Ne=k.getNorthEast(),$e=new l(Ee.lat-ge,Ee.lng-Ce),Ue=new l(Ne.lat-ge,Ne.lng-Ce);return new n($e,Ue)}},g=a({},v,{wrapLng:[-180,180],R:6371e3,distance:function(k,re){var ue=Math.PI/180,ge=k.lat*ue,Ce=re.lat*ue,Ee=Math.sin((re.lat-k.lat)*ue/2),Ne=Math.sin((re.lng-k.lng)*ue/2),$e=Ee*Ee+Math.cos(ge)*Math.cos(Ce)*Ne*Ne,Ue=2*Math.atan2(Math.sqrt($e),Math.sqrt(1-$e));return this.R*Ue}}),h=6378137,P={R:h,MAX_LATITUDE:85.0511287798,project:function(k){var re=Math.PI/180,ue=this.MAX_LATITUDE,ge=Math.max(Math.min(ue,k.lat),-ue),Ce=Math.sin(ge*re);return new E(this.R*k.lng*re,this.R*Math.log((1+Ce)/(1-Ce))/2)},unproject:function(k){var re=180/Math.PI;return new l((2*Math.atan(Math.exp(k.y/this.R))-Math.PI/2)*re,k.x*re/this.R)},bounds:function(){var k=h*Math.PI;return new u([-k,-k],[k,k])}()};function B(k,re,ue,ge){if(G(k)){this._a=k[0],this._b=k[1],this._c=k[2],this._d=k[3];return}this._a=k,this._b=re,this._c=ue,this._d=ge}B.prototype={transform:function(k,re){return this._transform(k.clone(),re)},_transform:function(k,re){return re=re||1,k.x=re*(this._a*k.x+this._b),k.y=re*(this._c*k.y+this._d),k},untransform:function(k,re){return re=re||1,new E((k.x/re-this._b)/this._a,(k.y/re-this._d)/this._c)}};function U(k,re,ue,ge){return new B(k,re,ue,ge)}var S=a({},g,{code:"EPSG:3857",projection:P,transformation:function(){var k=.5/(Math.PI*P.R);return U(k,.5,-k,.5)}()}),N=a({},S,{code:"EPSG:900913"});function W(k){return document.createElementNS("http://www.w3.org/2000/svg",k)}function ee(k,re){var ue="",ge,Ce,Ee,Ne,$e,Ue;for(ge=0,Ee=k.length;ge<Ee;ge++){for($e=k[ge],Ce=0,Ne=$e.length;Ce<Ne;Ce++)Ue=$e[Ce],ue+=(Ce?"L":"M")+Ue.x+" "+Ue.y;ue+=re?it.svg?"z":"x":""}return ue||"M0 0"}var ie=document.documentElement.style,Z="ActiveXObject"in window,K=Z&&!document.addEventListener,Q="msLaunchUri"in navigator&&!("documentMode"in document),le=ut("webkit"),ae=ut("android"),oe=ut("android 2")||ut("android 3"),ce=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),de=ae&&ut("Google")&&ce<537&&!("AudioNode"in window),he=!!window.opera,me=!Q&&ut("chrome"),ye=ut("gecko")&&!le&&!he&&!Z,we=!me&&ut("safari"),_e=ut("phantom"),Te="OTransition"in ie,Se=navigator.platform.indexOf("Win")===0,be=Z&&"transition"in ie,pe="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!oe,ve="MozPerspective"in ie,xe=!window.L_DISABLE_3D&&(be||pe||ve)&&!Te&&!_e,Me=typeof orientation!="undefined"||ut("mobile"),ke=Me&&le,Pe=Me&&pe,Le=!window.PointerEvent&&window.MSPointerEvent,Re=!!(window.PointerEvent||Le),De="ontouchstart"in window||!!window.TouchEvent,je=!window.L_NO_TOUCH&&(De||Re),He=Me&&he,We=Me&&ye,Ye=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Xe=function(){var k=!1;try{var re=Object.defineProperty({},"passive",{get:function(){k=!0}});window.addEventListener("testPassiveEventSupport",se,re),window.removeEventListener("testPassiveEventSupport",se,re)}catch(ue){}return k}(),Ge=function(){return!!document.createElement("canvas").getContext}(),qe=!!(document.createElementNS&&W("svg").createSVGRect),Ke=!!qe&&function(){var k=document.createElement("div");return k.innerHTML="<svg/>",(k.firstChild&&k.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),dt=!qe&&function(){try{var k=document.createElement("div");k.innerHTML='<v:shape adj="1"/>';var re=k.firstChild;return re.style.behavior="url(#default#VML)",re&&typeof re.adj=="object"}catch(ue){return!1}}(),Je=navigator.platform.indexOf("Mac")===0,nt=navigator.platform.indexOf("Linux")===0;function ut(k){return navigator.userAgent.toLowerCase().indexOf(k)>=0}var it={ie:Z,ielt9:K,edge:Q,webkit:le,android:ae,android23:oe,androidStock:de,opera:he,chrome:me,gecko:ye,safari:we,phantom:_e,opera12:Te,win:Se,ie3d:be,webkit3d:pe,gecko3d:ve,any3d:xe,mobile:Me,mobileWebkit:ke,mobileWebkit3d:Pe,msPointer:Le,pointer:Re,touch:je,touchNative:De,mobileOpera:He,mobileGecko:We,retina:Ye,passiveEvents:Xe,canvas:Ge,svg:qe,vml:dt,inlineSvg:Ke,mac:Je,linux:nt},lt=it.msPointer?"MSPointerDown":"pointerdown",vt=it.msPointer?"MSPointerMove":"pointermove",Kt=it.msPointer?"MSPointerUp":"pointerup",Ve=it.msPointer?"MSPointerCancel":"pointercancel",tt={touchstart:lt,touchmove:vt,touchend:Kt,touchcancel:Ve},ct={touchstart:Dn,touchmove:bn,touchend:bn,touchcancel:bn},ht={},Ft=!1;function Qt(k,re,ue){return re==="touchstart"&&jr(),ct[re]?(ue=ct[re].bind(this,ue),k.addEventListener(tt[re],ue,!1),ue):(console.warn("wrong event specified:",re),se)}function Yt(k,re,ue){if(!tt[re]){console.warn("wrong event specified:",re);return}k.removeEventListener(tt[re],ue,!1)}function rt(k){ht[k.pointerId]=k}function oi(k){ht[k.pointerId]&&(ht[k.pointerId]=k)}function Mi(k){delete ht[k.pointerId]}function jr(){Ft||(document.addEventListener(lt,rt,!0),document.addEventListener(vt,oi,!0),document.addEventListener(Kt,Mi,!0),document.addEventListener(Ve,Mi,!0),Ft=!0)}function bn(k,re){if(re.pointerType!==(re.MSPOINTER_TYPE_MOUSE||"mouse")){re.touches=[];for(var ue in ht)re.touches.push(ht[ue]);re.changedTouches=[re],k(re)}}function Dn(k,re){re.MSPOINTER_TYPE_TOUCH&&re.pointerType===re.MSPOINTER_TYPE_TOUCH&&ki(re),bn(k,re)}function lo(k){var re={},ue,ge;for(ge in k)ue=k[ge],re[ge]=ue&&ue.bind?ue.bind(k):ue;return k=re,re.type="dblclick",re.detail=2,re.isTrusted=!1,re._simulated=!0,re}var zt=200;function Xi(k,re){k.addEventListener("dblclick",re);var ue=0,ge;function Ce(Ee){if(Ee.detail!==1){ge=Ee.detail;return}if(!(Ee.pointerType==="mouse"||Ee.sourceCapabilities&&!Ee.sourceCapabilities.firesTouchEvents)){var Ne=qv(Ee);if(!(Ne.some(function(Ue){return Ue instanceof HTMLLabelElement&&Ue.attributes.for})&&!Ne.some(function(Ue){return Ue instanceof HTMLInputElement||Ue instanceof HTMLSelectElement}))){var $e=Date.now();$e-ue<=zt?(ge++,ge===2&&re(lo(Ee))):ge=1,ue=$e}}}return k.addEventListener("click",Ce),{dblclick:re,simDblclick:Ce}}function xn(k,re){k.removeEventListener("dblclick",re.dblclick),k.removeEventListener("click",re.simDblclick)}var os=ec(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),as=ec(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Vv=as==="webkitTransition"||as==="OTransition"?as+"End":"transitionend";function Gv(k){return typeof k=="string"?document.getElementById(k):k}function ss(k,re){var ue=k.style[re]||k.currentStyle&&k.currentStyle[re];if((!ue||ue==="auto")&&document.defaultView){var ge=document.defaultView.getComputedStyle(k,null);ue=ge?ge[re]:null}return ue==="auto"?null:ue}function Pt(k,re,ue){var ge=document.createElement(k);return ge.className=re||"",ue&&ue.appendChild(ge),ge}function Jt(k){var re=k.parentNode;re&&re.removeChild(k)}function Ql(k){for(;k.firstChild;)k.removeChild(k.firstChild)}function Wo(k){var re=k.parentNode;re&&re.lastChild!==k&&re.appendChild(k)}function $o(k){var re=k.parentNode;re&&re.firstChild!==k&&re.insertBefore(k,re.firstChild)}function fd(k,re){if(k.classList!==void 0)return k.classList.contains(re);var ue=Jl(k);return ue.length>0&&new RegExp("(^|\\s)"+re+"(\\s|$)").test(ue)}function yt(k,re){if(k.classList!==void 0)for(var ue=F(re),ge=0,Ce=ue.length;ge<Ce;ge++)k.classList.add(ue[ge]);else if(!fd(k,re)){var Ee=Jl(k);md(k,(Ee?Ee+" ":"")+re)}}function fi(k,re){k.classList!==void 0?k.classList.remove(re):md(k,te((" "+Jl(k)+" ").replace(" "+re+" "," ")))}function md(k,re){k.className.baseVal===void 0?k.className=re:k.className.baseVal=re}function Jl(k){return k.correspondingElement&&(k=k.correspondingElement),k.className.baseVal===void 0?k.className:k.className.baseVal}function pr(k,re){"opacity"in k.style?k.style.opacity=re:"filter"in k.style&&uk(k,re)}function uk(k,re){var ue=!1,ge="DXImageTransform.Microsoft.Alpha";try{ue=k.filters.item(ge)}catch(Ce){if(re===1)return}re=Math.round(re*100),ue?(ue.Enabled=re!==100,ue.Opacity=re):k.style.filter+=" progid:"+ge+"(opacity="+re+")"}function ec(k){for(var re=document.documentElement.style,ue=0;ue<k.length;ue++)if(k[ue]in re)return k[ue];return!1}function co(k,re,ue){var ge=re||new E(0,0);k.style[os]=(it.ie3d?"translate("+ge.x+"px,"+ge.y+"px)":"translate3d("+ge.x+"px,"+ge.y+"px,0)")+(ue?" scale("+ue+")":"")}function xi(k,re){k._leaflet_pos=re,it.any3d?co(k,re):(k.style.left=re.x+"px",k.style.top=re.y+"px")}function uo(k){return k._leaflet_pos||new E(0,0)}var ls,cs,gd;if("onselectstart"in document)ls=function(){gt(window,"selectstart",ki)},cs=function(){Wt(window,"selectstart",ki)};else{var us=ec(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ls=function(){if(us){var k=document.documentElement.style;gd=k[us],k[us]="none"}},cs=function(){us&&(document.documentElement.style[us]=gd,gd=void 0)}}function vd(){gt(window,"dragstart",ki)}function yd(){Wt(window,"dragstart",ki)}var tc,bd;function xd(k){for(;k.tabIndex===-1;)k=k.parentNode;k.style&&(ic(),tc=k,bd=k.style.outlineStyle,k.style.outlineStyle="none",gt(window,"keydown",ic))}function ic(){tc&&(tc.style.outlineStyle=bd,tc=void 0,bd=void 0,Wt(window,"keydown",ic))}function Yv(k){do k=k.parentNode;while((!k.offsetWidth||!k.offsetHeight)&&k!==document.body);return k}function wd(k){var re=k.getBoundingClientRect();return{x:re.width/k.offsetWidth||1,y:re.height/k.offsetHeight||1,boundingClientRect:re}}var hk={__proto__:null,TRANSFORM:os,TRANSITION:as,TRANSITION_END:Vv,get:Gv,getStyle:ss,create:Pt,remove:Jt,empty:Ql,toFront:Wo,toBack:$o,hasClass:fd,addClass:yt,removeClass:fi,setClass:md,getClass:Jl,setOpacity:pr,testProp:ec,setTransform:co,setPosition:xi,getPosition:uo,get disableTextSelection(){return ls},get enableTextSelection(){return cs},disableImageDrag:vd,enableImageDrag:yd,preventOutline:xd,restoreOutline:ic,getSizedParentNode:Yv,getScale:wd};function gt(k,re,ue,ge){if(re&&typeof re=="object")for(var Ce in re)Cd(k,Ce,re[Ce],ue);else{re=F(re);for(var Ee=0,Ne=re.length;Ee<Ne;Ee++)Cd(k,re[Ee],ue,ge)}return this}var Xr="_leaflet_events";function Wt(k,re,ue,ge){if(arguments.length===1)Xv(k),delete k[Xr];else if(re&&typeof re=="object")for(var Ce in re)Sd(k,Ce,re[Ce],ue);else if(re=F(re),arguments.length===2)Xv(k,function($e){return V(re,$e)!==-1});else for(var Ee=0,Ne=re.length;Ee<Ne;Ee++)Sd(k,re[Ee],ue,ge);return this}function Xv(k,re){for(var ue in k[Xr]){var ge=ue.split(/\d/)[0];(!re||re(ge))&&Sd(k,ge,null,null,ue)}}var _d={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Cd(k,re,ue,ge){var Ce=re+q(ue)+(ge?"_"+q(ge):"");if(k[Xr]&&k[Xr][Ce])return this;var Ee=function($e){return ue.call(ge||k,$e||window.event)},Ne=Ee;!it.touchNative&&it.pointer&&re.indexOf("touch")===0?Ee=Qt(k,re,Ee):it.touch&&re==="dblclick"?Ee=Xi(k,Ee):"addEventListener"in k?re==="touchstart"||re==="touchmove"||re==="wheel"||re==="mousewheel"?k.addEventListener(_d[re]||re,Ee,it.passiveEvents?{passive:!1}:!1):re==="mouseenter"||re==="mouseleave"?(Ee=function($e){$e=$e||window.event,Td(k,$e)&&Ne($e)},k.addEventListener(_d[re],Ee,!1)):k.addEventListener(re,Ne,!1):k.attachEvent("on"+re,Ee),k[Xr]=k[Xr]||{},k[Xr][Ce]=Ee}function Sd(k,re,ue,ge,Ce){Ce=Ce||re+q(ue)+(ge?"_"+q(ge):"");var Ee=k[Xr]&&k[Xr][Ce];if(!Ee)return this;!it.touchNative&&it.pointer&&re.indexOf("touch")===0?Yt(k,re,Ee):it.touch&&re==="dblclick"?xn(k,Ee):"removeEventListener"in k?k.removeEventListener(_d[re]||re,Ee,!1):k.detachEvent("on"+re,Ee),k[Xr][Ce]=null}function ho(k){return k.stopPropagation?k.stopPropagation():k.originalEvent?k.originalEvent._stopped=!0:k.cancelBubble=!0,this}function Md(k){return Cd(k,"wheel",ho),this}function hs(k){return gt(k,"mousedown touchstart dblclick contextmenu",ho),k._leaflet_disable_click=!0,this}function ki(k){return k.preventDefault?k.preventDefault():k.returnValue=!1,this}function po(k){return ki(k),ho(k),this}function qv(k){if(k.composedPath)return k.composedPath();for(var re=[],ue=k.target;ue;)re.push(ue),ue=ue.parentNode;return re}function Zv(k,re){if(!re)return new E(k.clientX,k.clientY);var ue=wd(re),ge=ue.boundingClientRect;return new E((k.clientX-ge.left)/ue.x-re.clientLeft,(k.clientY-ge.top)/ue.y-re.clientTop)}var dk=it.linux&&it.chrome?window.devicePixelRatio:it.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Kv(k){return it.edge?k.wheelDeltaY/2:k.deltaY&&k.deltaMode===0?-k.deltaY/dk:k.deltaY&&k.deltaMode===1?-k.deltaY*20:k.deltaY&&k.deltaMode===2?-k.deltaY*60:k.deltaX||k.deltaZ?0:k.wheelDelta?(k.wheelDeltaY||k.wheelDelta)/2:k.detail&&Math.abs(k.detail)<32765?-k.detail*20:k.detail?k.detail/-32765*60:0}function Td(k,re){var ue=re.relatedTarget;if(!ue)return!0;try{for(;ue&&ue!==k;)ue=ue.parentNode}catch(ge){return!1}return ue!==k}var pk={__proto__:null,on:gt,off:Wt,stopPropagation:ho,disableScrollPropagation:Md,disableClickPropagation:hs,preventDefault:ki,stop:po,getPropagationPath:qv,getMousePosition:Zv,getWheelDelta:Kv,isExternalTarget:Td,addListener:gt,removeListener:Wt},Qv=j.extend({run:function(k,re,ue,ge){this.stop(),this._el=k,this._inProgress=!0,this._duration=ue||.25,this._easeOutPower=1/Math.max(ge||.5,.2),this._startPos=uo(k),this._offset=re.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=c(this._animate,this),this._step()},_step:function(k){var re=+new Date-this._startTime,ue=this._duration*1e3;re<ue?this._runFrame(this._easeOut(re/ue),k):(this._runFrame(1),this._complete())},_runFrame:function(k,re){var ue=this._startPos.add(this._offset.multiplyBy(k));re&&ue._round(),xi(this._el,ue),this.fire("step")},_complete:function(){d(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(k){return 1-Math.pow(1-k,this._easeOutPower)}}),Mt=j.extend({options:{crs:S,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(k,re){re=O(this,re),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(k),this._initLayout(),this._onResize=A(this._onResize,this),this._initEvents(),re.maxBounds&&this.setMaxBounds(re.maxBounds),re.zoom!==void 0&&(this._zoom=this._limitZoom(re.zoom)),re.center&&re.zoom!==void 0&&this.setView(o(re.center),re.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=as&&it.any3d&&!it.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),gt(this._proxy,Vv,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(k,re,ue){if(re=re===void 0?this._zoom:this._limitZoom(re),k=this._limitCenter(o(k),re,this.options.maxBounds),ue=ue||{},this._stop(),this._loaded&&!ue.reset&&ue!==!0){ue.animate!==void 0&&(ue.zoom=a({animate:ue.animate},ue.zoom),ue.pan=a({animate:ue.animate,duration:ue.duration},ue.pan));var ge=this._zoom!==re?this._tryAnimatedZoom&&this._tryAnimatedZoom(k,re,ue.zoom):this._tryAnimatedPan(k,ue.pan);if(ge)return clearTimeout(this._sizeTimer),this}return this._resetView(k,re,ue.pan&&ue.pan.noMoveStart),this},setZoom:function(k,re){return this._loaded?this.setView(this.getCenter(),k,{zoom:re}):(this._zoom=k,this)},zoomIn:function(k,re){return k=k||(it.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+k,re)},zoomOut:function(k,re){return k=k||(it.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-k,re)},setZoomAround:function(k,re,ue){var ge=this.getZoomScale(re),Ce=this.getSize().divideBy(2),Ee=k instanceof E?k:this.latLngToContainerPoint(k),Ne=Ee.subtract(Ce).multiplyBy(1-1/ge),$e=this.containerPointToLatLng(Ce.add(Ne));return this.setView($e,re,{zoom:ue})},_getBoundsCenterZoom:function(k,re){re=re||{},k=k.getBounds?k.getBounds():s(k);var ue=x(re.paddingTopLeft||re.padding||[0,0]),ge=x(re.paddingBottomRight||re.padding||[0,0]),Ce=this.getBoundsZoom(k,!1,ue.add(ge));if(Ce=typeof re.maxZoom=="number"?Math.min(re.maxZoom,Ce):Ce,Ce===1/0)return{center:k.getCenter(),zoom:Ce};var Ee=ge.subtract(ue).divideBy(2),Ne=this.project(k.getSouthWest(),Ce),$e=this.project(k.getNorthEast(),Ce),Ue=this.unproject(Ne.add($e).divideBy(2).add(Ee),Ce);return{center:Ue,zoom:Ce}},fitBounds:function(k,re){if(k=s(k),!k.isValid())throw new Error("Bounds are not valid.");var ue=this._getBoundsCenterZoom(k,re);return this.setView(ue.center,ue.zoom,re)},fitWorld:function(k){return this.fitBounds([[-90,-180],[90,180]],k)},panTo:function(k,re){return this.setView(k,this._zoom,{pan:re})},panBy:function(k,re){if(k=x(k).round(),re=re||{},!k.x&&!k.y)return this.fire("moveend");if(re.animate!==!0&&!this.getSize().contains(k))return this._resetView(this.unproject(this.project(this.getCenter()).add(k)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Qv,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),re.noMoveStart||this.fire("movestart"),re.animate!==!1){yt(this._mapPane,"leaflet-pan-anim");var ue=this._getMapPanePos().subtract(k).round();this._panAnim.run(this._mapPane,ue,re.duration||.25,re.easeLinearity)}else this._rawPanBy(k),this.fire("move").fire("moveend");return this},flyTo:function(k,re,ue){if(ue=ue||{},ue.animate===!1||!it.any3d)return this.setView(k,re,ue);this._stop();var ge=this.project(this.getCenter()),Ce=this.project(k),Ee=this.getSize(),Ne=this._zoom;k=o(k),re=re===void 0?Ne:re;var $e=Math.max(Ee.x,Ee.y),Ue=$e*this.getZoomScale(Ne,re),Ze=Ce.distanceTo(ge)||1,ot=1.42,pt=ot*ot;function _t(wi){var fc=wi?-1:1,tE=wi?Ue:$e,iE=Ue*Ue-$e*$e+fc*pt*pt*Ze*Ze,rE=2*tE*pt*Ze,jd=iE/rE,Ly=Math.sqrt(jd*jd+1)-jd,nE=Ly<1e-9?-18:Math.log(Ly);return nE}function zi(wi){return(Math.exp(wi)-Math.exp(-wi))/2}function Ti(wi){return(Math.exp(wi)+Math.exp(-wi))/2}function mr(wi){return zi(wi)/Ti(wi)}var qi=_t(0);function Xo(wi){return $e*(Ti(qi)/Ti(qi+ot*wi))}function Kk(wi){return $e*(Ti(qi)*mr(qi+ot*wi)-zi(qi))/pt}function Qk(wi){return 1-Math.pow(1-wi,1.5)}var Jk=Date.now(),Ay=(_t(1)-qi)/ot,eE=ue.duration?1e3*ue.duration:1e3*Ay*.8;function Oy(){var wi=(Date.now()-Jk)/eE,fc=Qk(wi)*Ay;wi<=1?(this._flyToFrame=c(Oy,this),this._move(this.unproject(ge.add(Ce.subtract(ge).multiplyBy(Kk(fc)/Ze)),Ne),this.getScaleZoom($e/Xo(fc),Ne),{flyTo:!0})):this._move(k,re)._moveEnd(!0)}return this._moveStart(!0,ue.noMoveStart),Oy.call(this),this},flyToBounds:function(k,re){var ue=this._getBoundsCenterZoom(k,re);return this.flyTo(ue.center,ue.zoom,re)},setMaxBounds:function(k){return k=s(k),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),k.isValid()?(this.options.maxBounds=k,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(k){var re=this.options.minZoom;return this.options.minZoom=k,this._loaded&&re!==k&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(k):this},setMaxZoom:function(k){var re=this.options.maxZoom;return this.options.maxZoom=k,this._loaded&&re!==k&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(k):this},panInsideBounds:function(k,re){this._enforcingBounds=!0;var ue=this.getCenter(),ge=this._limitCenter(ue,this._zoom,s(k));return ue.equals(ge)||this.panTo(ge,re),this._enforcingBounds=!1,this},panInside:function(k,re){re=re||{};var ue=x(re.paddingTopLeft||re.padding||[0,0]),ge=x(re.paddingBottomRight||re.padding||[0,0]),Ce=this.project(this.getCenter()),Ee=this.project(k),Ne=this.getPixelBounds(),$e=m([Ne.min.add(ue),Ne.max.subtract(ge)]),Ue=$e.getSize();if(!$e.contains(Ee)){this._enforcingBounds=!0;var Ze=Ee.subtract($e.getCenter()),ot=$e.extend(Ee).getSize().subtract(Ue);Ce.x+=Ze.x<0?-ot.x:ot.x,Ce.y+=Ze.y<0?-ot.y:ot.y,this.panTo(this.unproject(Ce),re),this._enforcingBounds=!1}return this},invalidateSize:function(k){if(!this._loaded)return this;k=a({animate:!1,pan:!0},k===!0?{animate:!0}:k);var re=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var ue=this.getSize(),ge=re.divideBy(2).round(),Ce=ue.divideBy(2).round(),Ee=ge.subtract(Ce);return!Ee.x&&!Ee.y?this:(k.animate&&k.pan?this.panBy(Ee):(k.pan&&this._rawPanBy(Ee),this.fire("move"),k.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(A(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:re,newSize:ue}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(k){if(k=this._locateOptions=a({timeout:1e4,watch:!1},k),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var re=A(this._handleGeolocationResponse,this),ue=A(this._handleGeolocationError,this);return k.watch?this._locationWatchId=navigator.geolocation.watchPosition(re,ue,k):navigator.geolocation.getCurrentPosition(re,ue,k),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(k){if(this._container._leaflet_id){var re=k.code,ue=k.message||(re===1?"permission denied":re===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:re,message:"Geolocation error: "+ue+"."})}},_handleGeolocationResponse:function(k){if(this._container._leaflet_id){var re=k.coords.latitude,ue=k.coords.longitude,ge=new l(re,ue),Ce=ge.toBounds(k.coords.accuracy*2),Ee=this._locateOptions;if(Ee.setView){var Ne=this.getBoundsZoom(Ce);this.setView(ge,Ee.maxZoom?Math.min(Ne,Ee.maxZoom):Ne)}var $e={latlng:ge,bounds:Ce,timestamp:k.timestamp};for(var Ue in k.coords)typeof k.coords[Ue]=="number"&&($e[Ue]=k.coords[Ue]);this.fire("locationfound",$e)}},addHandler:function(k,re){if(!re)return this;var ue=this[k]=new re(this);return this._handlers.push(ue),this.options[k]&&ue.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(re){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Jt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(d(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var k;for(k in this._layers)this._layers[k].remove();for(k in this._panes)Jt(this._panes[k]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(k,re){var ue="leaflet-pane"+(k?" leaflet-"+k.replace("Pane","")+"-pane":""),ge=Pt("div",ue,re||this._mapPane);return k&&(this._panes[k]=ge),ge},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var k=this.getPixelBounds(),re=this.unproject(k.getBottomLeft()),ue=this.unproject(k.getTopRight());return new n(re,ue)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(k,re,ue){k=s(k),ue=x(ue||[0,0]);var ge=this.getZoom()||0,Ce=this.getMinZoom(),Ee=this.getMaxZoom(),Ne=k.getNorthWest(),$e=k.getSouthEast(),Ue=this.getSize().subtract(ue),Ze=m(this.project($e,ge),this.project(Ne,ge)).getSize(),ot=it.any3d?this.options.zoomSnap:1,pt=Ue.x/Ze.x,_t=Ue.y/Ze.y,zi=re?Math.max(pt,_t):Math.min(pt,_t);return ge=this.getScaleZoom(zi,ge),ot&&(ge=Math.round(ge/(ot/100))*(ot/100),ge=re?Math.ceil(ge/ot)*ot:Math.floor(ge/ot)*ot),Math.max(Ce,Math.min(Ee,ge))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(k,re){var ue=this._getTopLeftPoint(k,re);return new u(ue,ue.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(k){return this.options.crs.getProjectedBounds(k===void 0?this.getZoom():k)},getPane:function(k){return typeof k=="string"?this._panes[k]:k},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(k,re){var ue=this.options.crs;return re=re===void 0?this._zoom:re,ue.scale(k)/ue.scale(re)},getScaleZoom:function(k,re){var ue=this.options.crs;re=re===void 0?this._zoom:re;var ge=ue.zoom(k*ue.scale(re));return isNaN(ge)?1/0:ge},project:function(k,re){return re=re===void 0?this._zoom:re,this.options.crs.latLngToPoint(o(k),re)},unproject:function(k,re){return re=re===void 0?this._zoom:re,this.options.crs.pointToLatLng(x(k),re)},layerPointToLatLng:function(k){var re=x(k).add(this.getPixelOrigin());return this.unproject(re)},latLngToLayerPoint:function(k){var re=this.project(o(k))._round();return re._subtract(this.getPixelOrigin())},wrapLatLng:function(k){return this.options.crs.wrapLatLng(o(k))},wrapLatLngBounds:function(k){return this.options.crs.wrapLatLngBounds(s(k))},distance:function(k,re){return this.options.crs.distance(o(k),o(re))},containerPointToLayerPoint:function(k){return x(k).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(k){return x(k).add(this._getMapPanePos())},containerPointToLatLng:function(k){var re=this.containerPointToLayerPoint(x(k));return this.layerPointToLatLng(re)},latLngToContainerPoint:function(k){return this.layerPointToContainerPoint(this.latLngToLayerPoint(o(k)))},mouseEventToContainerPoint:function(k){return Zv(k,this._container)},mouseEventToLayerPoint:function(k){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(k))},mouseEventToLatLng:function(k){return this.layerPointToLatLng(this.mouseEventToLayerPoint(k))},_initContainer:function(k){var re=this._container=Gv(k);if(re){if(re._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");gt(re,"scroll",this._onScroll,this),this._containerId=q(re)},_initLayout:function(){var k=this._container;this._fadeAnimated=this.options.fadeAnimation&&it.any3d,yt(k,"leaflet-container"+(it.touch?" leaflet-touch":"")+(it.retina?" leaflet-retina":"")+(it.ielt9?" leaflet-oldie":"")+(it.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var re=ss(k,"position");re!=="absolute"&&re!=="relative"&&re!=="fixed"&&re!=="sticky"&&(k.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var k=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),xi(this._mapPane,new E(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(yt(k.markerPane,"leaflet-zoom-hide"),yt(k.shadowPane,"leaflet-zoom-hide"))},_resetView:function(k,re,ue){xi(this._mapPane,new E(0,0));var ge=!this._loaded;this._loaded=!0,re=this._limitZoom(re),this.fire("viewprereset");var Ce=this._zoom!==re;this._moveStart(Ce,ue)._move(k,re)._moveEnd(Ce),this.fire("viewreset"),ge&&this.fire("load")},_moveStart:function(k,re){return k&&this.fire("zoomstart"),re||this.fire("movestart"),this},_move:function(k,re,ue,ge){re===void 0&&(re=this._zoom);var Ce=this._zoom!==re;return this._zoom=re,this._lastCenter=k,this._pixelOrigin=this._getNewPixelOrigin(k),ge?ue&&ue.pinch&&this.fire("zoom",ue):((Ce||ue&&ue.pinch)&&this.fire("zoom",ue),this.fire("move",ue)),this},_moveEnd:function(k){return k&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return d(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(k){xi(this._mapPane,this._getMapPanePos().subtract(k))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(k){this._targets={},this._targets[q(this._container)]=this;var re=k?Wt:gt;re(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&re(window,"resize",this._onResize,this),it.any3d&&this.options.transform3DLimit&&(k?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){d(this._resizeRequest),this._resizeRequest=c(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var k=this._getMapPanePos();Math.max(Math.abs(k.x),Math.abs(k.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(k,re){for(var ue=[],ge,Ce=re==="mouseout"||re==="mouseover",Ee=k.target||k.srcElement,Ne=!1;Ee;){if(ge=this._targets[q(Ee)],ge&&(re==="click"||re==="preclick")&&this._draggableMoved(ge)){Ne=!0;break}if(ge&&ge.listens(re,!0)&&(Ce&&!Td(Ee,k)||(ue.push(ge),Ce))||Ee===this._container)break;Ee=Ee.parentNode}return!ue.length&&!Ne&&!Ce&&this.listens(re,!0)&&(ue=[this]),ue},_isClickDisabled:function(k){for(;k&&k!==this._container;){if(k._leaflet_disable_click)return!0;k=k.parentNode}},_handleDOMEvent:function(k){var re=k.target||k.srcElement;if(!(!this._loaded||re._leaflet_disable_events||k.type==="click"&&this._isClickDisabled(re))){var ue=k.type;ue==="mousedown"&&xd(re),this._fireDOMEvent(k,ue)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(k,re,ue){if(k.type==="click"){var ge=a({},k);ge.type="preclick",this._fireDOMEvent(ge,ge.type,ue)}var Ce=this._findEventTargets(k,re);if(ue){for(var Ee=[],Ne=0;Ne<ue.length;Ne++)ue[Ne].listens(re,!0)&&Ee.push(ue[Ne]);Ce=Ee.concat(Ce)}if(Ce.length){re==="contextmenu"&&ki(k);var $e=Ce[0],Ue={originalEvent:k};if(k.type!=="keypress"&&k.type!=="keydown"&&k.type!=="keyup"){var Ze=$e.getLatLng&&(!$e._radius||$e._radius<=10);Ue.containerPoint=Ze?this.latLngToContainerPoint($e.getLatLng()):this.mouseEventToContainerPoint(k),Ue.layerPoint=this.containerPointToLayerPoint(Ue.containerPoint),Ue.latlng=Ze?$e.getLatLng():this.layerPointToLatLng(Ue.layerPoint)}for(Ne=0;Ne<Ce.length;Ne++)if(Ce[Ne].fire(re,Ue,!0),Ue.originalEvent._stopped||Ce[Ne].options.bubblingMouseEvents===!1&&V(this._mouseEvents,re)!==-1)return}},_draggableMoved:function(k){return k=k.dragging&&k.dragging.enabled()?k:this,k.dragging&&k.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var k=0,re=this._handlers.length;k<re;k++)this._handlers[k].disable()},whenReady:function(k,re){return this._loaded?k.call(re||this,{target:this}):this.on("load",k,re),this},_getMapPanePos:function(){return uo(this._mapPane)||new E(0,0)},_moved:function(){var k=this._getMapPanePos();return k&&!k.equals([0,0])},_getTopLeftPoint:function(k,re){var ue=k&&re!==void 0?this._getNewPixelOrigin(k,re):this.getPixelOrigin();return ue.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(k,re){var ue=this.getSize()._divideBy(2);return this.project(k,re)._subtract(ue)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(k,re,ue){var ge=this._getNewPixelOrigin(ue,re);return this.project(k,re)._subtract(ge)},_latLngBoundsToNewLayerBounds:function(k,re,ue){var ge=this._getNewPixelOrigin(ue,re);return m([this.project(k.getSouthWest(),re)._subtract(ge),this.project(k.getNorthWest(),re)._subtract(ge),this.project(k.getSouthEast(),re)._subtract(ge),this.project(k.getNorthEast(),re)._subtract(ge)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(k){return this.latLngToLayerPoint(k).subtract(this._getCenterLayerPoint())},_limitCenter:function(k,re,ue){if(!ue)return k;var ge=this.project(k,re),Ce=this.getSize().divideBy(2),Ee=new u(ge.subtract(Ce),ge.add(Ce)),Ne=this._getBoundsOffset(Ee,ue,re);return Math.abs(Ne.x)<=1&&Math.abs(Ne.y)<=1?k:this.unproject(ge.add(Ne),re)},_limitOffset:function(k,re){if(!re)return k;var ue=this.getPixelBounds(),ge=new u(ue.min.add(k),ue.max.add(k));return k.add(this._getBoundsOffset(ge,re))},_getBoundsOffset:function(k,re,ue){var ge=m(this.project(re.getNorthEast(),ue),this.project(re.getSouthWest(),ue)),Ce=ge.min.subtract(k.min),Ee=ge.max.subtract(k.max),Ne=this._rebound(Ce.x,-Ee.x),$e=this._rebound(Ce.y,-Ee.y);return new E(Ne,$e)},_rebound:function(k,re){return k+re>0?Math.round(k-re)/2:Math.max(0,Math.ceil(k))-Math.max(0,Math.floor(re))},_limitZoom:function(k){var re=this.getMinZoom(),ue=this.getMaxZoom(),ge=it.any3d?this.options.zoomSnap:1;return ge&&(k=Math.round(k/ge)*ge),Math.max(re,Math.min(ue,k))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fi(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(k,re){var ue=this._getCenterOffset(k)._trunc();return(re&&re.animate)!==!0&&!this.getSize().contains(ue)?!1:(this.panBy(ue,re),!0)},_createAnimProxy:function(){var k=this._proxy=Pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(k),this.on("zoomanim",function(re){var ue=os,ge=this._proxy.style[ue];co(this._proxy,this.project(re.center,re.zoom),this.getZoomScale(re.zoom,1)),ge===this._proxy.style[ue]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Jt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var k=this.getCenter(),re=this.getZoom();co(this._proxy,this.project(k,re),this.getZoomScale(re,1))},_catchTransitionEnd:function(k){this._animatingZoom&&k.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(k,re,ue){if(this._animatingZoom)return!0;if(ue=ue||{},!this._zoomAnimated||ue.animate===!1||this._nothingToAnimate()||Math.abs(re-this._zoom)>this.options.zoomAnimationThreshold)return!1;var ge=this.getZoomScale(re),Ce=this._getCenterOffset(k)._divideBy(1-1/ge);return ue.animate!==!0&&!this.getSize().contains(Ce)?!1:(c(function(){this._moveStart(!0,ue.noMoveStart||!1)._animateZoom(k,re,!0)},this),!0)},_animateZoom:function(k,re,ue,ge){this._mapPane&&(ue&&(this._animatingZoom=!0,this._animateToCenter=k,this._animateToZoom=re,yt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:k,zoom:re,noUpdate:ge}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(A(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fi(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function fk(k,re){return new Mt(k,re)}var Br=y.extend({options:{position:"topright"},initialize:function(k){O(this,k)},getPosition:function(){return this.options.position},setPosition:function(k){var re=this._map;return re&&re.removeControl(this),this.options.position=k,re&&re.addControl(this),this},getContainer:function(){return this._container},addTo:function(k){this.remove(),this._map=k;var re=this._container=this.onAdd(k),ue=this.getPosition(),ge=k._controlCorners[ue];return yt(re,"leaflet-control"),ue.indexOf("bottom")!==-1?ge.insertBefore(re,ge.firstChild):ge.appendChild(re),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Jt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(k){this._map&&k&&k.screenX>0&&k.screenY>0&&this._map.getContainer().focus()}}),ds=function(k){return new Br(k)};Mt.include({addControl:function(k){return k.addTo(this),this},removeControl:function(k){return k.remove(),this},_initControlPos:function(){var k=this._controlCorners={},re="leaflet-",ue=this._controlContainer=Pt("div",re+"control-container",this._container);function ge(Ce,Ee){var Ne=re+Ce+" "+re+Ee;k[Ce+Ee]=Pt("div",Ne,ue)}ge("top","left"),ge("top","right"),ge("bottom","left"),ge("bottom","right")},_clearControlPos:function(){for(var k in this._controlCorners)Jt(this._controlCorners[k]);Jt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Jv=Br.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(k,re,ue,ge){return ue<ge?-1:ge<ue?1:0}},initialize:function(k,re,ue){O(this,ue),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var ge in k)this._addLayer(k[ge],ge);for(ge in re)this._addLayer(re[ge],ge,!0)},onAdd:function(k){this._initLayout(),this._update(),this._map=k,k.on("zoomend",this._checkDisabledLayers,this);for(var re=0;re<this._layers.length;re++)this._layers[re].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(k){return Br.prototype.addTo.call(this,k),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var k=0;k<this._layers.length;k++)this._layers[k].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(k,re){return this._addLayer(k,re),this._map?this._update():this},addOverlay:function(k,re){return this._addLayer(k,re,!0),this._map?this._update():this},removeLayer:function(k){k.off("add remove",this._onLayerChange,this);var re=this._getLayer(q(k));return re&&this._layers.splice(this._layers.indexOf(re),1),this._map?this._update():this},expand:function(){yt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var k=this._map.getSize().y-(this._container.offsetTop+50);return k<this._section.clientHeight?(yt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=k+"px"):fi(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return fi(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var k="leaflet-control-layers",re=this._container=Pt("div",k),ue=this.options.collapsed;re.setAttribute("aria-haspopup",!0),hs(re),Md(re);var ge=this._section=Pt("section",k+"-list");ue&&(this._map.on("click",this.collapse,this),gt(re,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var Ce=this._layersLink=Pt("a",k+"-toggle",re);Ce.href="#",Ce.title="Layers",Ce.setAttribute("role","button"),gt(Ce,{keydown:function(Ee){Ee.keyCode===13&&this._expandSafely()},click:function(Ee){ki(Ee),this._expandSafely()}},this),ue||this.expand(),this._baseLayersList=Pt("div",k+"-base",ge),this._separator=Pt("div",k+"-separator",ge),this._overlaysList=Pt("div",k+"-overlays",ge),re.appendChild(ge)},_getLayer:function(k){for(var re=0;re<this._layers.length;re++)if(this._layers[re]&&q(this._layers[re].layer)===k)return this._layers[re]},_addLayer:function(k,re,ue){this._map&&k.on("add remove",this._onLayerChange,this),this._layers.push({layer:k,name:re,overlay:ue}),this.options.sortLayers&&this._layers.sort(A(function(ge,Ce){return this.options.sortFunction(ge.layer,Ce.layer,ge.name,Ce.name)},this)),this.options.autoZIndex&&k.setZIndex&&(this._lastZIndex++,k.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ql(this._baseLayersList),Ql(this._overlaysList),this._layerControlInputs=[];var k,re,ue,ge,Ce=0;for(ue=0;ue<this._layers.length;ue++)ge=this._layers[ue],this._addItem(ge),re=re||ge.overlay,k=k||!ge.overlay,Ce+=ge.overlay?0:1;return this.options.hideSingleBase&&(k=k&&Ce>1,this._baseLayersList.style.display=k?"":"none"),this._separator.style.display=re&&k?"":"none",this},_onLayerChange:function(k){this._handlingClick||this._update();var re=this._getLayer(q(k.target)),ue=re.overlay?k.type==="add"?"overlayadd":"overlayremove":k.type==="add"?"baselayerchange":null;ue&&this._map.fire(ue,re)},_createRadioElement:function(k,re){var ue='<input type="radio" class="leaflet-control-layers-selector" name="'+k+'"'+(re?' checked="checked"':"")+"/>",ge=document.createElement("div");return ge.innerHTML=ue,ge.firstChild},_addItem:function(k){var re=document.createElement("label"),ue=this._map.hasLayer(k.layer),ge;k.overlay?(ge=document.createElement("input"),ge.type="checkbox",ge.className="leaflet-control-layers-selector",ge.defaultChecked=ue):ge=this._createRadioElement("leaflet-base-layers_"+q(this),ue),this._layerControlInputs.push(ge),ge.layerId=q(k.layer),gt(ge,"click",this._onInputClick,this);var Ce=document.createElement("span");Ce.innerHTML=" "+k.name;var Ee=document.createElement("span");re.appendChild(Ee),Ee.appendChild(ge),Ee.appendChild(Ce);var Ne=k.overlay?this._overlaysList:this._baseLayersList;return Ne.appendChild(re),this._checkDisabledLayers(),re},_onInputClick:function(){if(!this._preventClick){var k=this._layerControlInputs,re,ue,ge=[],Ce=[];this._handlingClick=!0;for(var Ee=k.length-1;Ee>=0;Ee--)re=k[Ee],ue=this._getLayer(re.layerId).layer,re.checked?ge.push(ue):re.checked||Ce.push(ue);for(Ee=0;Ee<Ce.length;Ee++)this._map.hasLayer(Ce[Ee])&&this._map.removeLayer(Ce[Ee]);for(Ee=0;Ee<ge.length;Ee++)this._map.hasLayer(ge[Ee])||this._map.addLayer(ge[Ee]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var k=this._layerControlInputs,re,ue,ge=this._map.getZoom(),Ce=k.length-1;Ce>=0;Ce--)re=k[Ce],ue=this._getLayer(re.layerId).layer,re.disabled=ue.options.minZoom!==void 0&&ge<ue.options.minZoom||ue.options.maxZoom!==void 0&&ge>ue.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var k=this._section;this._preventClick=!0,gt(k,"click",ki),this.expand();var re=this;setTimeout(function(){Wt(k,"click",ki),re._preventClick=!1})}}),mk=function(k,re,ue){return new Jv(k,re,ue)},Pd=Br.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(k){var re="leaflet-control-zoom",ue=Pt("div",re+" leaflet-bar"),ge=this.options;return this._zoomInButton=this._createButton(ge.zoomInText,ge.zoomInTitle,re+"-in",ue,this._zoomIn),this._zoomOutButton=this._createButton(ge.zoomOutText,ge.zoomOutTitle,re+"-out",ue,this._zoomOut),this._updateDisabled(),k.on("zoomend zoomlevelschange",this._updateDisabled,this),ue},onRemove:function(k){k.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(k){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(k.shiftKey?3:1))},_zoomOut:function(k){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(k.shiftKey?3:1))},_createButton:function(k,re,ue,ge,Ce){var Ee=Pt("a",ue,ge);return Ee.innerHTML=k,Ee.href="#",Ee.title=re,Ee.setAttribute("role","button"),Ee.setAttribute("aria-label",re),hs(Ee),gt(Ee,"click",po),gt(Ee,"click",Ce,this),gt(Ee,"click",this._refocusOnMap,this),Ee},_updateDisabled:function(){var k=this._map,re="leaflet-disabled";fi(this._zoomInButton,re),fi(this._zoomOutButton,re),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||k._zoom===k.getMinZoom())&&(yt(this._zoomOutButton,re),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||k._zoom===k.getMaxZoom())&&(yt(this._zoomInButton,re),this._zoomInButton.setAttribute("aria-disabled","true"))}});Mt.mergeOptions({zoomControl:!0}),Mt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Pd,this.addControl(this.zoomControl))});var gk=function(k){return new Pd(k)},ey=Br.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(k){var re="leaflet-control-scale",ue=Pt("div",re),ge=this.options;return this._addScales(ge,re+"-line",ue),k.on(ge.updateWhenIdle?"moveend":"move",this._update,this),k.whenReady(this._update,this),ue},onRemove:function(k){k.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(k,re,ue){k.metric&&(this._mScale=Pt("div",re,ue)),k.imperial&&(this._iScale=Pt("div",re,ue))},_update:function(){var k=this._map,re=k.getSize().y/2,ue=k.distance(k.containerPointToLatLng([0,re]),k.containerPointToLatLng([this.options.maxWidth,re]));this._updateScales(ue)},_updateScales:function(k){this.options.metric&&k&&this._updateMetric(k),this.options.imperial&&k&&this._updateImperial(k)},_updateMetric:function(k){var re=this._getRoundNum(k),ue=re<1e3?re+" m":re/1e3+" km";this._updateScale(this._mScale,ue,re/k)},_updateImperial:function(k){var re=k*3.2808399,ue,ge,Ce;re>5280?(ue=re/5280,ge=this._getRoundNum(ue),this._updateScale(this._iScale,ge+" mi",ge/ue)):(Ce=this._getRoundNum(re),this._updateScale(this._iScale,Ce+" ft",Ce/re))},_updateScale:function(k,re,ue){k.style.width=Math.round(this.options.maxWidth*ue)+"px",k.innerHTML=re},_getRoundNum:function(k){var re=Math.pow(10,(Math.floor(k)+"").length-1),ue=k/re;return ue=ue>=10?10:ue>=5?5:ue>=3?3:ue>=2?2:1,re*ue}}),vk=function(k){return new ey(k)},yk='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',kd=Br.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(it.inlineSvg?yk+" ":"")+"Leaflet</a>"},initialize:function(k){O(this,k),this._attributions={}},onAdd:function(k){k.attributionControl=this,this._container=Pt("div","leaflet-control-attribution"),hs(this._container);for(var re in k._layers)k._layers[re].getAttribution&&this.addAttribution(k._layers[re].getAttribution());return this._update(),k.on("layeradd",this._addAttribution,this),this._container},onRemove:function(k){k.off("layeradd",this._addAttribution,this)},_addAttribution:function(k){k.layer.getAttribution&&(this.addAttribution(k.layer.getAttribution()),k.layer.once("remove",function(){this.removeAttribution(k.layer.getAttribution())},this))},setPrefix:function(k){return this.options.prefix=k,this._update(),this},addAttribution:function(k){return k?(this._attributions[k]||(this._attributions[k]=0),this._attributions[k]++,this._update(),this):this},removeAttribution:function(k){return k?(this._attributions[k]&&(this._attributions[k]--,this._update()),this):this},_update:function(){if(this._map){var k=[];for(var re in this._attributions)this._attributions[re]&&k.push(re);var ue=[];this.options.prefix&&ue.push(this.options.prefix),k.length&&ue.push(k.join(", ")),this._container.innerHTML=ue.join(' <span aria-hidden="true">|</span> ')}}});Mt.mergeOptions({attributionControl:!0}),Mt.addInitHook(function(){this.options.attributionControl&&new kd().addTo(this)});var bk=function(k){return new kd(k)};Br.Layers=Jv,Br.Zoom=Pd,Br.Scale=ey,Br.Attribution=kd,ds.layers=mk,ds.zoom=gk,ds.scale=vk,ds.attribution=bk;var qr=y.extend({initialize:function(k){this._map=k},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});qr.addTo=function(k,re){return k.addHandler(re,this),this};var xk={Events:I},ty=it.touch?"touchstart mousedown":"mousedown",Rn=j.extend({options:{clickTolerance:3},initialize:function(k,re,ue,ge){O(this,ge),this._element=k,this._dragStartTarget=re||k,this._preventOutline=ue},enable:function(){this._enabled||(gt(this._dragStartTarget,ty,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Rn._dragging===this&&this.finishDrag(!0),Wt(this._dragStartTarget,ty,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(k){if(this._enabled&&(this._moved=!1,!fd(this._element,"leaflet-zoom-anim"))){if(k.touches&&k.touches.length!==1){Rn._dragging===this&&this.finishDrag();return}if(!(Rn._dragging||k.shiftKey||k.which!==1&&k.button!==1&&!k.touches)&&(Rn._dragging=this,this._preventOutline&&xd(this._element),vd(),ls(),!this._moving)){this.fire("down");var re=k.touches?k.touches[0]:k,ue=Yv(this._element);this._startPoint=new E(re.clientX,re.clientY),this._startPos=uo(this._element),this._parentScale=wd(ue);var ge=k.type==="mousedown";gt(document,ge?"mousemove":"touchmove",this._onMove,this),gt(document,ge?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(k){if(this._enabled){if(k.touches&&k.touches.length>1){this._moved=!0;return}var re=k.touches&&k.touches.length===1?k.touches[0]:k,ue=new E(re.clientX,re.clientY)._subtract(this._startPoint);!ue.x&&!ue.y||Math.abs(ue.x)+Math.abs(ue.y)<this.options.clickTolerance||(ue.x/=this._parentScale.x,ue.y/=this._parentScale.y,ki(k),this._moved||(this.fire("dragstart"),this._moved=!0,yt(document.body,"leaflet-dragging"),this._lastTarget=k.target||k.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),yt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(ue),this._moving=!0,this._lastEvent=k,this._updatePosition())}},_updatePosition:function(){var k={originalEvent:this._lastEvent};this.fire("predrag",k),xi(this._element,this._newPos),this.fire("drag",k)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(k){fi(document.body,"leaflet-dragging"),this._lastTarget&&(fi(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Wt(document,"mousemove touchmove",this._onMove,this),Wt(document,"mouseup touchend touchcancel",this._onUp,this),yd(),cs();var re=this._moved&&this._moving;this._moving=!1,Rn._dragging=!1,re&&this.fire("dragend",{noInertia:k,distance:this._newPos.distanceTo(this._startPos)})}});function iy(k,re,ue){var ge,Ce=[1,4,2,8],Ee,Ne,$e,Ue,Ze,ot,pt,_t;for(Ee=0,ot=k.length;Ee<ot;Ee++)k[Ee]._code=fo(k[Ee],re);for($e=0;$e<4;$e++){for(pt=Ce[$e],ge=[],Ee=0,ot=k.length,Ne=ot-1;Ee<ot;Ne=Ee++)Ue=k[Ee],Ze=k[Ne],Ue._code&pt?Ze._code&pt||(_t=rc(Ze,Ue,pt,re,ue),_t._code=fo(_t,re),ge.push(_t)):(Ze._code&pt&&(_t=rc(Ze,Ue,pt,re,ue),_t._code=fo(_t,re),ge.push(_t)),ge.push(Ue));k=ge}return k}function ry(k,re){var ue,ge,Ce,Ee,Ne,$e,Ue,Ze,ot;if(!k||k.length===0)throw new Error("latlngs not passed");fr(k)||(console.warn("latlngs are not flat! Only the first ring will be used"),k=k[0]);var pt=o([0,0]),_t=s(k),zi=_t.getNorthWest().distanceTo(_t.getSouthWest())*_t.getNorthEast().distanceTo(_t.getNorthWest());zi<1700&&(pt=Ed(k));var Ti=k.length,mr=[];for(ue=0;ue<Ti;ue++){var qi=o(k[ue]);mr.push(re.project(o([qi.lat-pt.lat,qi.lng-pt.lng])))}for($e=Ue=Ze=0,ue=0,ge=Ti-1;ue<Ti;ge=ue++)Ce=mr[ue],Ee=mr[ge],Ne=Ce.y*Ee.x-Ee.y*Ce.x,Ue+=(Ce.x+Ee.x)*Ne,Ze+=(Ce.y+Ee.y)*Ne,$e+=Ne*3;$e===0?ot=mr[0]:ot=[Ue/$e,Ze/$e];var Xo=re.unproject(x(ot));return o([Xo.lat+pt.lat,Xo.lng+pt.lng])}function Ed(k){for(var re=0,ue=0,ge=0,Ce=0;Ce<k.length;Ce++){var Ee=o(k[Ce]);re+=Ee.lat,ue+=Ee.lng,ge++}return o([re/ge,ue/ge])}var wk={__proto__:null,clipPolygon:iy,polygonCenter:ry,centroid:Ed};function ny(k,re){if(!re||!k.length)return k.slice();var ue=re*re;return k=Sk(k,ue),k=Ck(k,ue),k}function oy(k,re,ue){return Math.sqrt(ps(k,re,ue,!0))}function _k(k,re,ue){return ps(k,re,ue)}function Ck(k,re){var ue=k.length,ge=typeof Uint8Array!="undefined"?Uint8Array:Array,Ce=new ge(ue);Ce[0]=Ce[ue-1]=1,Ad(k,Ce,re,0,ue-1);var Ee,Ne=[];for(Ee=0;Ee<ue;Ee++)Ce[Ee]&&Ne.push(k[Ee]);return Ne}function Ad(k,re,ue,ge,Ce){var Ee=0,Ne,$e,Ue;for($e=ge+1;$e<=Ce-1;$e++)Ue=ps(k[$e],k[ge],k[Ce],!0),Ue>Ee&&(Ne=$e,Ee=Ue);Ee>ue&&(re[Ne]=1,Ad(k,re,ue,ge,Ne),Ad(k,re,ue,Ne,Ce))}function Sk(k,re){for(var ue=[k[0]],ge=1,Ce=0,Ee=k.length;ge<Ee;ge++)Mk(k[ge],k[Ce])>re&&(ue.push(k[ge]),Ce=ge);return Ce<Ee-1&&ue.push(k[Ee-1]),ue}var ay;function sy(k,re,ue,ge,Ce){var Ee=ge?ay:fo(k,ue),Ne=fo(re,ue),$e,Ue,Ze;for(ay=Ne;;){if(!(Ee|Ne))return[k,re];if(Ee&Ne)return!1;$e=Ee||Ne,Ue=rc(k,re,$e,ue,Ce),Ze=fo(Ue,ue),$e===Ee?(k=Ue,Ee=Ze):(re=Ue,Ne=Ze)}}function rc(k,re,ue,ge,Ce){var Ee=re.x-k.x,Ne=re.y-k.y,$e=ge.min,Ue=ge.max,Ze,ot;return ue&8?(Ze=k.x+Ee*(Ue.y-k.y)/Ne,ot=Ue.y):ue&4?(Ze=k.x+Ee*($e.y-k.y)/Ne,ot=$e.y):ue&2?(Ze=Ue.x,ot=k.y+Ne*(Ue.x-k.x)/Ee):ue&1&&(Ze=$e.x,ot=k.y+Ne*($e.x-k.x)/Ee),new E(Ze,ot,Ce)}function fo(k,re){var ue=0;return k.x<re.min.x?ue|=1:k.x>re.max.x&&(ue|=2),k.y<re.min.y?ue|=4:k.y>re.max.y&&(ue|=8),ue}function Mk(k,re){var ue=re.x-k.x,ge=re.y-k.y;return ue*ue+ge*ge}function ps(k,re,ue,ge){var Ce=re.x,Ee=re.y,Ne=ue.x-Ce,$e=ue.y-Ee,Ue=Ne*Ne+$e*$e,Ze;return Ue>0&&(Ze=((k.x-Ce)*Ne+(k.y-Ee)*$e)/Ue,Ze>1?(Ce=ue.x,Ee=ue.y):Ze>0&&(Ce+=Ne*Ze,Ee+=$e*Ze)),Ne=k.x-Ce,$e=k.y-Ee,ge?Ne*Ne+$e*$e:new E(Ce,Ee)}function fr(k){return!G(k[0])||typeof k[0][0]!="object"&&typeof k[0][0]!="undefined"}function ly(k){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),fr(k)}function cy(k,re){var ue,ge,Ce,Ee,Ne,$e,Ue,Ze;if(!k||k.length===0)throw new Error("latlngs not passed");fr(k)||(console.warn("latlngs are not flat! Only the first ring will be used"),k=k[0]);var ot=o([0,0]),pt=s(k),_t=pt.getNorthWest().distanceTo(pt.getSouthWest())*pt.getNorthEast().distanceTo(pt.getNorthWest());_t<1700&&(ot=Ed(k));var zi=k.length,Ti=[];for(ue=0;ue<zi;ue++){var mr=o(k[ue]);Ti.push(re.project(o([mr.lat-ot.lat,mr.lng-ot.lng])))}for(ue=0,ge=0;ue<zi-1;ue++)ge+=Ti[ue].distanceTo(Ti[ue+1])/2;if(ge===0)Ze=Ti[0];else for(ue=0,Ee=0;ue<zi-1;ue++)if(Ne=Ti[ue],$e=Ti[ue+1],Ce=Ne.distanceTo($e),Ee+=Ce,Ee>ge){Ue=(Ee-ge)/Ce,Ze=[$e.x-Ue*($e.x-Ne.x),$e.y-Ue*($e.y-Ne.y)];break}var qi=re.unproject(x(Ze));return o([qi.lat+ot.lat,qi.lng+ot.lng])}var Tk={__proto__:null,simplify:ny,pointToSegmentDistance:oy,closestPointOnSegment:_k,clipSegment:sy,_getEdgeIntersection:rc,_getBitCode:fo,_sqClosestPointOnSegment:ps,isFlat:fr,_flat:ly,polylineCenter:cy},Od={project:function(k){return new E(k.lng,k.lat)},unproject:function(k){return new l(k.y,k.x)},bounds:new u([-180,-90],[180,90])},Ld={R:6378137,R_MINOR:6356752314245179e-9,bounds:new u([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(k){var re=Math.PI/180,ue=this.R,ge=k.lat*re,Ce=this.R_MINOR/ue,Ee=Math.sqrt(1-Ce*Ce),Ne=Ee*Math.sin(ge),$e=Math.tan(Math.PI/4-ge/2)/Math.pow((1-Ne)/(1+Ne),Ee/2);return ge=-ue*Math.log(Math.max($e,1e-10)),new E(k.lng*re*ue,ge)},unproject:function(k){for(var re=180/Math.PI,ue=this.R,ge=this.R_MINOR/ue,Ce=Math.sqrt(1-ge*ge),Ee=Math.exp(-k.y/ue),Ne=Math.PI/2-2*Math.atan(Ee),$e=0,Ue=.1,Ze;$e<15&&Math.abs(Ue)>1e-7;$e++)Ze=Ce*Math.sin(Ne),Ze=Math.pow((1-Ze)/(1+Ze),Ce/2),Ue=Math.PI/2-2*Math.atan(Ee*Ze)-Ne,Ne+=Ue;return new l(Ne*re,k.x*re/ue)}},Pk={__proto__:null,LonLat:Od,Mercator:Ld,SphericalMercator:P},kk=a({},g,{code:"EPSG:3395",projection:Ld,transformation:function(){var k=.5/(Math.PI*Ld.R);return U(k,.5,-k,.5)}()}),uy=a({},g,{code:"EPSG:4326",projection:Od,transformation:U(1/180,1,-1/180,.5)}),Ek=a({},v,{projection:Od,transformation:U(1,0,-1,0),scale:function(k){return Math.pow(2,k)},zoom:function(k){return Math.log(k)/Math.LN2},distance:function(k,re){var ue=re.lng-k.lng,ge=re.lat-k.lat;return Math.sqrt(ue*ue+ge*ge)},infinite:!0});v.Earth=g,v.EPSG3395=kk,v.EPSG3857=S,v.EPSG900913=N,v.EPSG4326=uy,v.Simple=Ek;var zr=j.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(k){return k.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(k){return k&&k.removeLayer(this),this},getPane:function(k){return this._map.getPane(k?this.options[k]||k:this.options.pane)},addInteractiveTarget:function(k){return this._map._targets[q(k)]=this,this},removeInteractiveTarget:function(k){return delete this._map._targets[q(k)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(k){var re=k.target;if(re.hasLayer(this)){if(this._map=re,this._zoomAnimated=re._zoomAnimated,this.getEvents){var ue=this.getEvents();re.on(ue,this),this.once("remove",function(){re.off(ue,this)},this)}this.onAdd(re),this.fire("add"),re.fire("layeradd",{layer:this})}}});Mt.include({addLayer:function(k){if(!k._layerAdd)throw new Error("The provided object is not a Layer.");var re=q(k);return this._layers[re]?this:(this._layers[re]=k,k._mapToAdd=this,k.beforeAdd&&k.beforeAdd(this),this.whenReady(k._layerAdd,k),this)},removeLayer:function(k){var re=q(k);return this._layers[re]?(this._loaded&&k.onRemove(this),delete this._layers[re],this._loaded&&(this.fire("layerremove",{layer:k}),k.fire("remove")),k._map=k._mapToAdd=null,this):this},hasLayer:function(k){return q(k)in this._layers},eachLayer:function(k,re){for(var ue in this._layers)k.call(re,this._layers[ue]);return this},_addLayers:function(k){k=k?G(k)?k:[k]:[];for(var re=0,ue=k.length;re<ue;re++)this.addLayer(k[re])},_addZoomLimit:function(k){(!isNaN(k.options.maxZoom)||!isNaN(k.options.minZoom))&&(this._zoomBoundLayers[q(k)]=k,this._updateZoomLevels())},_removeZoomLimit:function(k){var re=q(k);this._zoomBoundLayers[re]&&(delete this._zoomBoundLayers[re],this._updateZoomLevels())},_updateZoomLevels:function(){var k=1/0,re=-1/0,ue=this._getZoomSpan();for(var ge in this._zoomBoundLayers){var Ce=this._zoomBoundLayers[ge].options;k=Ce.minZoom===void 0?k:Math.min(k,Ce.minZoom),re=Ce.maxZoom===void 0?re:Math.max(re,Ce.maxZoom)}this._layersMaxZoom=re===-1/0?void 0:re,this._layersMinZoom=k===1/0?void 0:k,ue!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ho=zr.extend({initialize:function(k,re){O(this,re),this._layers={};var ue,ge;if(k)for(ue=0,ge=k.length;ue<ge;ue++)this.addLayer(k[ue])},addLayer:function(k){var re=this.getLayerId(k);return this._layers[re]=k,this._map&&this._map.addLayer(k),this},removeLayer:function(k){var re=k in this._layers?k:this.getLayerId(k);return this._map&&this._layers[re]&&this._map.removeLayer(this._layers[re]),delete this._layers[re],this},hasLayer:function(k){var re=typeof k=="number"?k:this.getLayerId(k);return re in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(k){var re=Array.prototype.slice.call(arguments,1),ue,ge;for(ue in this._layers)ge=this._layers[ue],ge[k]&&ge[k].apply(ge,re);return this},onAdd:function(k){this.eachLayer(k.addLayer,k)},onRemove:function(k){this.eachLayer(k.removeLayer,k)},eachLayer:function(k,re){for(var ue in this._layers)k.call(re,this._layers[ue]);return this},getLayer:function(k){return this._layers[k]},getLayers:function(){var k=[];return this.eachLayer(k.push,k),k},setZIndex:function(k){return this.invoke("setZIndex",k)},getLayerId:function(k){return q(k)}}),Ak=function(k,re){return new Ho(k,re)},wn=Ho.extend({addLayer:function(k){return this.hasLayer(k)?this:(k.addEventParent(this),Ho.prototype.addLayer.call(this,k),this.fire("layeradd",{layer:k}))},removeLayer:function(k){return this.hasLayer(k)?(k in this._layers&&(k=this._layers[k]),k.removeEventParent(this),Ho.prototype.removeLayer.call(this,k),this.fire("layerremove",{layer:k})):this},setStyle:function(k){return this.invoke("setStyle",k)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var k=new n;for(var re in this._layers){var ue=this._layers[re];k.extend(ue.getBounds?ue.getBounds():ue.getLatLng())}return k}}),Ok=function(k,re){return new wn(k,re)},Uo=y.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(k){O(this,k)},createIcon:function(k){return this._createIcon("icon",k)},createShadow:function(k){return this._createIcon("shadow",k)},_createIcon:function(k,re){var ue=this._getIconUrl(k);if(!ue){if(k==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var ge=this._createImg(ue,re&&re.tagName==="IMG"?re:null);return this._setIconStyles(ge,k),(this.options.crossOrigin||this.options.crossOrigin==="")&&(ge.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),ge},_setIconStyles:function(k,re){var ue=this.options,ge=ue[re+"Size"];typeof ge=="number"&&(ge=[ge,ge]);var Ce=x(ge),Ee=x(re==="shadow"&&ue.shadowAnchor||ue.iconAnchor||Ce&&Ce.divideBy(2,!0));k.className="leaflet-marker-"+re+" "+(ue.className||""),Ee&&(k.style.marginLeft=-Ee.x+"px",k.style.marginTop=-Ee.y+"px"),Ce&&(k.style.width=Ce.x+"px",k.style.height=Ce.y+"px")},_createImg:function(k,re){return re=re||document.createElement("img"),re.src=k,re},_getIconUrl:function(k){return it.retina&&this.options[k+"RetinaUrl"]||this.options[k+"Url"]}});function Lk(k){return new Uo(k)}var fs=Uo.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(k){return typeof fs.imagePath!="string"&&(fs.imagePath=this._detectIconPath()),(this.options.imagePath||fs.imagePath)+Uo.prototype._getIconUrl.call(this,k)},_stripUrl:function(k){var re=function(ue,ge,Ce){var Ee=ge.exec(ue);return Ee&&Ee[Ce]};return k=re(k,/^url\((['"])?(.+)\1\)$/,2),k&&re(k,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var k=Pt("div","leaflet-default-icon-path",document.body),re=ss(k,"background-image")||ss(k,"backgroundImage");if(document.body.removeChild(k),re=this._stripUrl(re),re)return re;var ue=document.querySelector('link[href$="leaflet.css"]');return ue?ue.href.substring(0,ue.href.length-11-1):""}}),hy=qr.extend({initialize:function(k){this._marker=k},addHooks:function(){var k=this._marker._icon;this._draggable||(this._draggable=new Rn(k,k,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),yt(k,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&fi(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(k){var re=this._marker,ue=re._map,ge=this._marker.options.autoPanSpeed,Ce=this._marker.options.autoPanPadding,Ee=uo(re._icon),Ne=ue.getPixelBounds(),$e=ue.getPixelOrigin(),Ue=m(Ne.min._subtract($e).add(Ce),Ne.max._subtract($e).subtract(Ce));if(!Ue.contains(Ee)){var Ze=x((Math.max(Ue.max.x,Ee.x)-Ue.max.x)/(Ne.max.x-Ue.max.x)-(Math.min(Ue.min.x,Ee.x)-Ue.min.x)/(Ne.min.x-Ue.min.x),(Math.max(Ue.max.y,Ee.y)-Ue.max.y)/(Ne.max.y-Ue.max.y)-(Math.min(Ue.min.y,Ee.y)-Ue.min.y)/(Ne.min.y-Ue.min.y)).multiplyBy(ge);ue.panBy(Ze,{animate:!1}),this._draggable._newPos._add(Ze),this._draggable._startPos._add(Ze),xi(re._icon,this._draggable._newPos),this._onDrag(k),this._panRequest=c(this._adjustPan.bind(this,k))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(k){this._marker.options.autoPan&&(d(this._panRequest),this._panRequest=c(this._adjustPan.bind(this,k)))},_onDrag:function(k){var re=this._marker,ue=re._shadow,ge=uo(re._icon),Ce=re._map.layerPointToLatLng(ge);ue&&xi(ue,ge),re._latlng=Ce,k.latlng=Ce,k.oldLatLng=this._oldLatLng,re.fire("move",k).fire("drag",k)},_onDragEnd:function(k){d(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",k)}}),nc=zr.extend({options:{icon:new fs,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(k,re){O(this,re),this._latlng=o(k)},onAdd:function(k){this._zoomAnimated=this._zoomAnimated&&k.options.markerZoomAnimation,this._zoomAnimated&&k.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(k){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&k.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(k){var re=this._latlng;return this._latlng=o(k),this.update(),this.fire("move",{oldLatLng:re,latlng:this._latlng})},setZIndexOffset:function(k){return this.options.zIndexOffset=k,this.update()},getIcon:function(){return this.options.icon},setIcon:function(k){return this.options.icon=k,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var k=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(k)}return this},_initIcon:function(){var k=this.options,re="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),ue=k.icon.createIcon(this._icon),ge=!1;ue!==this._icon&&(this._icon&&this._removeIcon(),ge=!0,k.title&&(ue.title=k.title),ue.tagName==="IMG"&&(ue.alt=k.alt||"")),yt(ue,re),k.keyboard&&(ue.tabIndex="0",ue.setAttribute("role","button")),this._icon=ue,k.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&gt(ue,"focus",this._panOnFocus,this);var Ce=k.icon.createShadow(this._shadow),Ee=!1;Ce!==this._shadow&&(this._removeShadow(),Ee=!0),Ce&&(yt(Ce,re),Ce.alt=""),this._shadow=Ce,k.opacity<1&&this._updateOpacity(),ge&&this.getPane().appendChild(this._icon),this._initInteraction(),Ce&&Ee&&this.getPane(k.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Wt(this._icon,"focus",this._panOnFocus,this),Jt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Jt(this._shadow),this._shadow=null},_setPos:function(k){this._icon&&xi(this._icon,k),this._shadow&&xi(this._shadow,k),this._zIndex=k.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(k){this._icon&&(this._icon.style.zIndex=this._zIndex+k)},_animateZoom:function(k){var re=this._map._latLngToNewLayerPoint(this._latlng,k.zoom,k.center).round();this._setPos(re)},_initInteraction:function(){if(this.options.interactive&&(yt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),hy)){var k=this.options.draggable;this.dragging&&(k=this.dragging.enabled(),this.dragging.disable()),this.dragging=new hy(this),k&&this.dragging.enable()}},setOpacity:function(k){return this.options.opacity=k,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var k=this.options.opacity;this._icon&&pr(this._icon,k),this._shadow&&pr(this._shadow,k)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var k=this._map;if(k){var re=this.options.icon.options,ue=re.iconSize?x(re.iconSize):x(0,0),ge=re.iconAnchor?x(re.iconAnchor):x(0,0);k.panInside(this._latlng,{paddingTopLeft:ge,paddingBottomRight:ue.subtract(ge)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Dk(k,re){return new nc(k,re)}var Nn=zr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(k){this._renderer=k.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(k){return O(this,k),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&k&&Object.prototype.hasOwnProperty.call(k,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),oc=Nn.extend({options:{fill:!0,radius:10},initialize:function(k,re){O(this,re),this._latlng=o(k),this._radius=this.options.radius},setLatLng:function(k){var re=this._latlng;return this._latlng=o(k),this.redraw(),this.fire("move",{oldLatLng:re,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(k){return this.options.radius=this._radius=k,this.redraw()},getRadius:function(){return this._radius},setStyle:function(k){var re=k&&k.radius||this._radius;return Nn.prototype.setStyle.call(this,k),this.setRadius(re),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var k=this._radius,re=this._radiusY||k,ue=this._clickTolerance(),ge=[k+ue,re+ue];this._pxBounds=new u(this._point.subtract(ge),this._point.add(ge))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(k){return k.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Rk(k,re){return new oc(k,re)}var Dd=oc.extend({initialize:function(k,re,ue){if(typeof re=="number"&&(re=a({},ue,{radius:re})),O(this,re),this._latlng=o(k),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(k){return this._mRadius=k,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var k=[this._radius,this._radiusY||this._radius];return new n(this._map.layerPointToLatLng(this._point.subtract(k)),this._map.layerPointToLatLng(this._point.add(k)))},setStyle:Nn.prototype.setStyle,_project:function(){var k=this._latlng.lng,re=this._latlng.lat,ue=this._map,ge=ue.options.crs;if(ge.distance===g.distance){var Ce=Math.PI/180,Ee=this._mRadius/g.R/Ce,Ne=ue.project([re+Ee,k]),$e=ue.project([re-Ee,k]),Ue=Ne.add($e).divideBy(2),Ze=ue.unproject(Ue).lat,ot=Math.acos((Math.cos(Ee*Ce)-Math.sin(re*Ce)*Math.sin(Ze*Ce))/(Math.cos(re*Ce)*Math.cos(Ze*Ce)))/Ce;(isNaN(ot)||ot===0)&&(ot=Ee/Math.cos(Math.PI/180*re)),this._point=Ue.subtract(ue.getPixelOrigin()),this._radius=isNaN(ot)?0:Ue.x-ue.project([Ze,k-ot]).x,this._radiusY=Ue.y-Ne.y}else{var pt=ge.unproject(ge.project(this._latlng).subtract([this._mRadius,0]));this._point=ue.latLngToLayerPoint(this._latlng),this._radius=this._point.x-ue.latLngToLayerPoint(pt).x}this._updateBounds()}});function Nk(k,re,ue){return new Dd(k,re,ue)}var _n=Nn.extend({options:{smoothFactor:1,noClip:!1},initialize:function(k,re){O(this,re),this._setLatLngs(k)},getLatLngs:function(){return this._latlngs},setLatLngs:function(k){return this._setLatLngs(k),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(k){for(var re=1/0,ue=null,ge=ps,Ce,Ee,Ne=0,$e=this._parts.length;Ne<$e;Ne++)for(var Ue=this._parts[Ne],Ze=1,ot=Ue.length;Ze<ot;Ze++){Ce=Ue[Ze-1],Ee=Ue[Ze];var pt=ge(k,Ce,Ee,!0);pt<re&&(re=pt,ue=ge(k,Ce,Ee))}return ue&&(ue.distance=Math.sqrt(re)),ue},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return cy(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(k,re){return re=re||this._defaultShape(),k=o(k),re.push(k),this._bounds.extend(k),this.redraw()},_setLatLngs:function(k){this._bounds=new n,this._latlngs=this._convertLatLngs(k)},_defaultShape:function(){return fr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(k){for(var re=[],ue=fr(k),ge=0,Ce=k.length;ge<Ce;ge++)ue?(re[ge]=o(k[ge]),this._bounds.extend(re[ge])):re[ge]=this._convertLatLngs(k[ge]);return re},_project:function(){var k=new u;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,k),this._bounds.isValid()&&k.isValid()&&(this._rawPxBounds=k,this._updateBounds())},_updateBounds:function(){var k=this._clickTolerance(),re=new E(k,k);this._rawPxBounds&&(this._pxBounds=new u([this._rawPxBounds.min.subtract(re),this._rawPxBounds.max.add(re)]))},_projectLatlngs:function(k,re,ue){var ge=k[0]instanceof l,Ce=k.length,Ee,Ne;if(ge){for(Ne=[],Ee=0;Ee<Ce;Ee++)Ne[Ee]=this._map.latLngToLayerPoint(k[Ee]),ue.extend(Ne[Ee]);re.push(Ne)}else for(Ee=0;Ee<Ce;Ee++)this._projectLatlngs(k[Ee],re,ue)},_clipPoints:function(){var k=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(k))){if(this.options.noClip){this._parts=this._rings;return}var re=this._parts,ue,ge,Ce,Ee,Ne,$e,Ue;for(ue=0,Ce=0,Ee=this._rings.length;ue<Ee;ue++)for(Ue=this._rings[ue],ge=0,Ne=Ue.length;ge<Ne-1;ge++)$e=sy(Ue[ge],Ue[ge+1],k,ge,!0),$e&&(re[Ce]=re[Ce]||[],re[Ce].push($e[0]),($e[1]!==Ue[ge+1]||ge===Ne-2)&&(re[Ce].push($e[1]),Ce++))}},_simplifyPoints:function(){for(var k=this._parts,re=this.options.smoothFactor,ue=0,ge=k.length;ue<ge;ue++)k[ue]=ny(k[ue],re)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(k,re){var ue,ge,Ce,Ee,Ne,$e,Ue=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(k))return!1;for(ue=0,Ee=this._parts.length;ue<Ee;ue++)for($e=this._parts[ue],ge=0,Ne=$e.length,Ce=Ne-1;ge<Ne;Ce=ge++)if(!(!re&&ge===0)&&oy(k,$e[Ce],$e[ge])<=Ue)return!0;return!1}});function Ik(k,re){return new _n(k,re)}_n._flat=ly;var Vo=_n.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ry(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(k){var re=_n.prototype._convertLatLngs.call(this,k),ue=re.length;return ue>=2&&re[0]instanceof l&&re[0].equals(re[ue-1])&&re.pop(),re},_setLatLngs:function(k){_n.prototype._setLatLngs.call(this,k),fr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return fr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var k=this._renderer._bounds,re=this.options.weight,ue=new E(re,re);if(k=new u(k.min.subtract(ue),k.max.add(ue)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(k))){if(this.options.noClip){this._parts=this._rings;return}for(var ge=0,Ce=this._rings.length,Ee;ge<Ce;ge++)Ee=iy(this._rings[ge],k,!0),Ee.length&&this._parts.push(Ee)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(k){var re=!1,ue,ge,Ce,Ee,Ne,$e,Ue,Ze;if(!this._pxBounds||!this._pxBounds.contains(k))return!1;for(Ee=0,Ue=this._parts.length;Ee<Ue;Ee++)for(ue=this._parts[Ee],Ne=0,Ze=ue.length,$e=Ze-1;Ne<Ze;$e=Ne++)ge=ue[Ne],Ce=ue[$e],ge.y>k.y!=Ce.y>k.y&&k.x<(Ce.x-ge.x)*(k.y-ge.y)/(Ce.y-ge.y)+ge.x&&(re=!re);return re||_n.prototype._containsPoint.call(this,k,!0)}});function jk(k,re){return new Vo(k,re)}var Cn=wn.extend({initialize:function(k,re){O(this,re),this._layers={},k&&this.addData(k)},addData:function(k){var re=G(k)?k:k.features,ue,ge,Ce;if(re){for(ue=0,ge=re.length;ue<ge;ue++)Ce=re[ue],(Ce.geometries||Ce.geometry||Ce.features||Ce.coordinates)&&this.addData(Ce);return this}var Ee=this.options;if(Ee.filter&&!Ee.filter(k))return this;var Ne=ac(k,Ee);return Ne?(Ne.feature=cc(k),Ne.defaultOptions=Ne.options,this.resetStyle(Ne),Ee.onEachFeature&&Ee.onEachFeature(k,Ne),this.addLayer(Ne)):this},resetStyle:function(k){return k===void 0?this.eachLayer(this.resetStyle,this):(k.options=a({},k.defaultOptions),this._setLayerStyle(k,this.options.style),this)},setStyle:function(k){return this.eachLayer(function(re){this._setLayerStyle(re,k)},this)},_setLayerStyle:function(k,re){k.setStyle&&(typeof re=="function"&&(re=re(k.feature)),k.setStyle(re))}});function ac(k,re){var ue=k.type==="Feature"?k.geometry:k,ge=ue?ue.coordinates:null,Ce=[],Ee=re&&re.pointToLayer,Ne=re&&re.coordsToLatLng||Rd,$e,Ue,Ze,ot;if(!ge&&!ue)return null;switch(ue.type){case"Point":return $e=Ne(ge),dy(Ee,k,$e,re);case"MultiPoint":for(Ze=0,ot=ge.length;Ze<ot;Ze++)$e=Ne(ge[Ze]),Ce.push(dy(Ee,k,$e,re));return new wn(Ce);case"LineString":case"MultiLineString":return Ue=sc(ge,ue.type==="LineString"?0:1,Ne),new _n(Ue,re);case"Polygon":case"MultiPolygon":return Ue=sc(ge,ue.type==="Polygon"?1:2,Ne),new Vo(Ue,re);case"GeometryCollection":for(Ze=0,ot=ue.geometries.length;Ze<ot;Ze++){var pt=ac({geometry:ue.geometries[Ze],type:"Feature",properties:k.properties},re);pt&&Ce.push(pt)}return new wn(Ce);case"FeatureCollection":for(Ze=0,ot=ue.features.length;Ze<ot;Ze++){var _t=ac(ue.features[Ze],re);_t&&Ce.push(_t)}return new wn(Ce);default:throw new Error("Invalid GeoJSON object.")}}function dy(k,re,ue,ge){return k?k(re,ue):new nc(ue,ge&&ge.markersInheritOptions&&ge)}function Rd(k){return new l(k[1],k[0],k[2])}function sc(k,re,ue){for(var ge=[],Ce=0,Ee=k.length,Ne;Ce<Ee;Ce++)Ne=re?sc(k[Ce],re-1,ue):(ue||Rd)(k[Ce]),ge.push(Ne);return ge}function Nd(k,re){return k=o(k),k.alt!==void 0?[M(k.lng,re),M(k.lat,re),M(k.alt,re)]:[M(k.lng,re),M(k.lat,re)]}function lc(k,re,ue,ge){for(var Ce=[],Ee=0,Ne=k.length;Ee<Ne;Ee++)Ce.push(re?lc(k[Ee],fr(k[Ee])?0:re-1,ue,ge):Nd(k[Ee],ge));return!re&&ue&&Ce.length>0&&Ce.push(Ce[0].slice()),Ce}function Go(k,re){return k.feature?a({},k.feature,{geometry:re}):cc(re)}function cc(k){return k.type==="Feature"||k.type==="FeatureCollection"?k:{type:"Feature",properties:{},geometry:k}}var Id={toGeoJSON:function(k){return Go(this,{type:"Point",coordinates:Nd(this.getLatLng(),k)})}};nc.include(Id),Dd.include(Id),oc.include(Id),_n.include({toGeoJSON:function(k){var re=!fr(this._latlngs),ue=lc(this._latlngs,re?1:0,!1,k);return Go(this,{type:(re?"Multi":"")+"LineString",coordinates:ue})}}),Vo.include({toGeoJSON:function(k){var re=!fr(this._latlngs),ue=re&&!fr(this._latlngs[0]),ge=lc(this._latlngs,ue?2:re?1:0,!0,k);return re||(ge=[ge]),Go(this,{type:(ue?"Multi":"")+"Polygon",coordinates:ge})}}),Ho.include({toMultiPoint:function(k){var re=[];return this.eachLayer(function(ue){re.push(ue.toGeoJSON(k).geometry.coordinates)}),Go(this,{type:"MultiPoint",coordinates:re})},toGeoJSON:function(k){var re=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(re==="MultiPoint")return this.toMultiPoint(k);var ue=re==="GeometryCollection",ge=[];return this.eachLayer(function(Ce){if(Ce.toGeoJSON){var Ee=Ce.toGeoJSON(k);if(ue)ge.push(Ee.geometry);else{var Ne=cc(Ee);Ne.type==="FeatureCollection"?ge.push.apply(ge,Ne.features):ge.push(Ne)}}}),ue?Go(this,{geometries:ge,type:"GeometryCollection"}):{type:"FeatureCollection",features:ge}}});function py(k,re){return new Cn(k,re)}var Bk=py,uc=zr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(k,re,ue){this._url=k,this._bounds=s(re),O(this,ue)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(yt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Jt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(k){return this.options.opacity=k,this._image&&this._updateOpacity(),this},setStyle:function(k){return k.opacity&&this.setOpacity(k.opacity),this},bringToFront:function(){return this._map&&Wo(this._image),this},bringToBack:function(){return this._map&&$o(this._image),this},setUrl:function(k){return this._url=k,this._image&&(this._image.src=k),this},setBounds:function(k){return this._bounds=s(k),this._map&&this._reset(),this},getEvents:function(){var k={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(k.zoomanim=this._animateZoom),k},setZIndex:function(k){return this.options.zIndex=k,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var k=this._url.tagName==="IMG",re=this._image=k?this._url:Pt("img");if(yt(re,"leaflet-image-layer"),this._zoomAnimated&&yt(re,"leaflet-zoom-animated"),this.options.className&&yt(re,this.options.className),re.onselectstart=se,re.onmousemove=se,re.onload=A(this.fire,this,"load"),re.onerror=A(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(re.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),k){this._url=re.src;return}re.src=this._url,re.alt=this.options.alt},_animateZoom:function(k){var re=this._map.getZoomScale(k.zoom),ue=this._map._latLngBoundsToNewLayerBounds(this._bounds,k.zoom,k.center).min;co(this._image,ue,re)},_reset:function(){var k=this._image,re=new u(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),ue=re.getSize();xi(k,re.min),k.style.width=ue.x+"px",k.style.height=ue.y+"px"},_updateOpacity:function(){pr(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var k=this.options.errorOverlayUrl;k&&this._url!==k&&(this._url=k,this._image.src=k)},getCenter:function(){return this._bounds.getCenter()}}),zk=function(k,re,ue){return new uc(k,re,ue)},fy=uc.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var k=this._url.tagName==="VIDEO",re=this._image=k?this._url:Pt("video");if(yt(re,"leaflet-image-layer"),this._zoomAnimated&&yt(re,"leaflet-zoom-animated"),this.options.className&&yt(re,this.options.className),re.onselectstart=se,re.onmousemove=se,re.onloadeddata=A(this.fire,this,"load"),k){for(var ue=re.getElementsByTagName("source"),ge=[],Ce=0;Ce<ue.length;Ce++)ge.push(ue[Ce].src);this._url=ue.length>0?ge:[re.src];return}G(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(re.style,"objectFit")&&(re.style.objectFit="fill"),re.autoplay=!!this.options.autoplay,re.loop=!!this.options.loop,re.muted=!!this.options.muted,re.playsInline=!!this.options.playsInline;for(var Ee=0;Ee<this._url.length;Ee++){var Ne=Pt("source");Ne.src=this._url[Ee],re.appendChild(Ne)}}});function Fk(k,re,ue){return new fy(k,re,ue)}var my=uc.extend({_initImage:function(){var k=this._image=this._url;yt(k,"leaflet-image-layer"),this._zoomAnimated&&yt(k,"leaflet-zoom-animated"),this.options.className&&yt(k,this.options.className),k.onselectstart=se,k.onmousemove=se}});function Wk(k,re,ue){return new my(k,re,ue)}var Zr=zr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(k,re){k&&(k instanceof l||G(k))?(this._latlng=o(k),O(this,re)):(O(this,k),this._source=re),this.options.content&&(this._content=this.options.content)},openOn:function(k){return k=arguments.length?k:this._source._map,k.hasLayer(this)||k.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(k){return this._map?this.close():(arguments.length?this._source=k:k=this._source,this._prepareOpen(),this.openOn(k._map)),this},onAdd:function(k){this._zoomAnimated=k._zoomAnimated,this._container||this._initLayout(),k._fadeAnimated&&pr(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),k._fadeAnimated&&pr(this._container,1),this.bringToFront(),this.options.interactive&&(yt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(k){k._fadeAnimated?(pr(this._container,0),this._removeTimeout=setTimeout(A(Jt,void 0,this._container),200)):Jt(this._container),this.options.interactive&&(fi(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(k){return this._latlng=o(k),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(k){return this._content=k,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var k={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(k.zoomanim=this._animateZoom),k},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Wo(this._container),this},bringToBack:function(){return this._map&&$o(this._container),this},_prepareOpen:function(k){var re=this._source;if(!re._map)return!1;if(re instanceof wn){re=null;var ue=this._source._layers;for(var ge in ue)if(ue[ge]._map){re=ue[ge];break}if(!re)return!1;this._source=re}if(!k)if(re.getCenter)k=re.getCenter();else if(re.getLatLng)k=re.getLatLng();else if(re.getBounds)k=re.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(k),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var k=this._contentNode,re=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof re=="string")k.innerHTML=re;else{for(;k.hasChildNodes();)k.removeChild(k.firstChild);k.appendChild(re)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var k=this._map.latLngToLayerPoint(this._latlng),re=x(this.options.offset),ue=this._getAnchor();this._zoomAnimated?xi(this._container,k.add(ue)):re=re.add(k).add(ue);var ge=this._containerBottom=-re.y,Ce=this._containerLeft=-Math.round(this._containerWidth/2)+re.x;this._container.style.bottom=ge+"px",this._container.style.left=Ce+"px"}},_getAnchor:function(){return[0,0]}});Mt.include({_initOverlay:function(k,re,ue,ge){var Ce=re;return Ce instanceof k||(Ce=new k(ge).setContent(re)),ue&&Ce.setLatLng(ue),Ce}}),zr.include({_initOverlay:function(k,re,ue,ge){var Ce=ue;return Ce instanceof k?(O(Ce,ge),Ce._source=this):(Ce=re&&!ge?re:new k(ge,this),Ce.setContent(ue)),Ce}});var hc=Zr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(k){return k=arguments.length?k:this._source._map,!k.hasLayer(this)&&k._popup&&k._popup.options.autoClose&&k.removeLayer(k._popup),k._popup=this,Zr.prototype.openOn.call(this,k)},onAdd:function(k){Zr.prototype.onAdd.call(this,k),k.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Nn||this._source.on("preclick",ho))},onRemove:function(k){Zr.prototype.onRemove.call(this,k),k.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Nn||this._source.off("preclick",ho))},getEvents:function(){var k=Zr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(k.preclick=this.close),this.options.keepInView&&(k.moveend=this._adjustPan),k},_initLayout:function(){var k="leaflet-popup",re=this._container=Pt("div",k+" "+(this.options.className||"")+" leaflet-zoom-animated"),ue=this._wrapper=Pt("div",k+"-content-wrapper",re);if(this._contentNode=Pt("div",k+"-content",ue),hs(re),Md(this._contentNode),gt(re,"contextmenu",ho),this._tipContainer=Pt("div",k+"-tip-container",re),this._tip=Pt("div",k+"-tip",this._tipContainer),this.options.closeButton){var ge=this._closeButton=Pt("a",k+"-close-button",re);ge.setAttribute("role","button"),ge.setAttribute("aria-label","Close popup"),ge.href="#close",ge.innerHTML='<span aria-hidden="true">&#215;</span>',gt(ge,"click",function(Ce){ki(Ce),this.close()},this)}},_updateLayout:function(){var k=this._contentNode,re=k.style;re.width="",re.whiteSpace="nowrap";var ue=k.offsetWidth;ue=Math.min(ue,this.options.maxWidth),ue=Math.max(ue,this.options.minWidth),re.width=ue+1+"px",re.whiteSpace="",re.height="";var ge=k.offsetHeight,Ce=this.options.maxHeight,Ee="leaflet-popup-scrolled";Ce&&ge>Ce?(re.height=Ce+"px",yt(k,Ee)):fi(k,Ee),this._containerWidth=this._container.offsetWidth},_animateZoom:function(k){var re=this._map._latLngToNewLayerPoint(this._latlng,k.zoom,k.center),ue=this._getAnchor();xi(this._container,re.add(ue))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var k=this._map,re=parseInt(ss(this._container,"marginBottom"),10)||0,ue=this._container.offsetHeight+re,ge=this._containerWidth,Ce=new E(this._containerLeft,-ue-this._containerBottom);Ce._add(uo(this._container));var Ee=k.layerPointToContainerPoint(Ce),Ne=x(this.options.autoPanPadding),$e=x(this.options.autoPanPaddingTopLeft||Ne),Ue=x(this.options.autoPanPaddingBottomRight||Ne),Ze=k.getSize(),ot=0,pt=0;Ee.x+ge+Ue.x>Ze.x&&(ot=Ee.x+ge-Ze.x+Ue.x),Ee.x-ot-$e.x<0&&(ot=Ee.x-$e.x),Ee.y+ue+Ue.y>Ze.y&&(pt=Ee.y+ue-Ze.y+Ue.y),Ee.y-pt-$e.y<0&&(pt=Ee.y-$e.y),(ot||pt)&&(this.options.keepInView&&(this._autopanning=!0),k.fire("autopanstart").panBy([ot,pt]))}},_getAnchor:function(){return x(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),$k=function(k,re){return new hc(k,re)};Mt.mergeOptions({closePopupOnClick:!0}),Mt.include({openPopup:function(k,re,ue){return this._initOverlay(hc,k,re,ue).openOn(this),this},closePopup:function(k){return k=arguments.length?k:this._popup,k&&k.close(),this}}),zr.include({bindPopup:function(k,re){return this._popup=this._initOverlay(hc,this._popup,k,re),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(k){return this._popup&&(this instanceof wn||(this._popup._source=this),this._popup._prepareOpen(k||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(k){return this._popup&&this._popup.setContent(k),this},getPopup:function(){return this._popup},_openPopup:function(k){if(!(!this._popup||!this._map)){po(k);var re=k.layer||k.target;if(this._popup._source===re&&!(re instanceof Nn)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(k.latlng);return}this._popup._source=re,this.openPopup(k.latlng)}},_movePopup:function(k){this._popup.setLatLng(k.latlng)},_onKeyPress:function(k){k.originalEvent.keyCode===13&&this._openPopup(k)}});var dc=Zr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(k){Zr.prototype.onAdd.call(this,k),this.setOpacity(this.options.opacity),k.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(k){Zr.prototype.onRemove.call(this,k),k.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var k=Zr.prototype.getEvents.call(this);return this.options.permanent||(k.preclick=this.close),k},_initLayout:function(){var k="leaflet-tooltip",re=k+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Pt("div",re),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+q(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(k){var re,ue,ge=this._map,Ce=this._container,Ee=ge.latLngToContainerPoint(ge.getCenter()),Ne=ge.layerPointToContainerPoint(k),$e=this.options.direction,Ue=Ce.offsetWidth,Ze=Ce.offsetHeight,ot=x(this.options.offset),pt=this._getAnchor();$e==="top"?(re=Ue/2,ue=Ze):$e==="bottom"?(re=Ue/2,ue=0):$e==="center"?(re=Ue/2,ue=Ze/2):$e==="right"?(re=0,ue=Ze/2):$e==="left"?(re=Ue,ue=Ze/2):Ne.x<Ee.x?($e="right",re=0,ue=Ze/2):($e="left",re=Ue+(ot.x+pt.x)*2,ue=Ze/2),k=k.subtract(x(re,ue,!0)).add(ot).add(pt),fi(Ce,"leaflet-tooltip-right"),fi(Ce,"leaflet-tooltip-left"),fi(Ce,"leaflet-tooltip-top"),fi(Ce,"leaflet-tooltip-bottom"),yt(Ce,"leaflet-tooltip-"+$e),xi(Ce,k)},_updatePosition:function(){var k=this._map.latLngToLayerPoint(this._latlng);this._setPosition(k)},setOpacity:function(k){this.options.opacity=k,this._container&&pr(this._container,k)},_animateZoom:function(k){var re=this._map._latLngToNewLayerPoint(this._latlng,k.zoom,k.center);this._setPosition(re)},_getAnchor:function(){return x(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Hk=function(k,re){return new dc(k,re)};Mt.include({openTooltip:function(k,re,ue){return this._initOverlay(dc,k,re,ue).openOn(this),this},closeTooltip:function(k){return k.close(),this}}),zr.include({bindTooltip:function(k,re){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(dc,this._tooltip,k,re),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(k){if(!(!k&&this._tooltipHandlersAdded)){var re=k?"off":"on",ue={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?ue.add=this._openTooltip:(ue.mouseover=this._openTooltip,ue.mouseout=this.closeTooltip,ue.click=this._openTooltip,this._map?this._addFocusListeners():ue.add=this._addFocusListeners),this._tooltip.options.sticky&&(ue.mousemove=this._moveTooltip),this[re](ue),this._tooltipHandlersAdded=!k}},openTooltip:function(k){return this._tooltip&&(this instanceof wn||(this._tooltip._source=this),this._tooltip._prepareOpen(k)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(k){return this._tooltip&&this._tooltip.setContent(k),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(k){var re=typeof k.getElement=="function"&&k.getElement();re&&(gt(re,"focus",function(){this._tooltip._source=k,this.openTooltip()},this),gt(re,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(k){var re=typeof k.getElement=="function"&&k.getElement();re&&re.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(k){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var re=this;this._map.once("moveend",function(){re._openOnceFlag=!1,re._openTooltip(k)});return}this._tooltip._source=k.layer||k.target,this.openTooltip(this._tooltip.options.sticky?k.latlng:void 0)}},_moveTooltip:function(k){var re=k.latlng,ue,ge;this._tooltip.options.sticky&&k.originalEvent&&(ue=this._map.mouseEventToContainerPoint(k.originalEvent),ge=this._map.containerPointToLayerPoint(ue),re=this._map.layerPointToLatLng(ge)),this._tooltip.setLatLng(re)}});var gy=Uo.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(k){var re=k&&k.tagName==="DIV"?k:document.createElement("div"),ue=this.options;if(ue.html instanceof Element?(Ql(re),re.appendChild(ue.html)):re.innerHTML=ue.html!==!1?ue.html:"",ue.bgPos){var ge=x(ue.bgPos);re.style.backgroundPosition=-ge.x+"px "+-ge.y+"px"}return this._setIconStyles(re,"icon"),re},createShadow:function(){return null}});function Uk(k){return new gy(k)}Uo.Default=fs;var ms=zr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:it.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(k){O(this,k)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(k){k._addZoomLimit(this)},onRemove:function(k){this._removeAllTiles(),Jt(this._container),k._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Wo(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&($o(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(k){return this.options.opacity=k,this._updateOpacity(),this},setZIndex:function(k){return this.options.zIndex=k,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var k=this._clampZoom(this._map.getZoom());k!==this._tileZoom&&(this._tileZoom=k,this._updateLevels()),this._update()}return this},getEvents:function(){var k={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=J(this._onMoveEnd,this.options.updateInterval,this)),k.move=this._onMove),this._zoomAnimated&&(k.zoomanim=this._animateZoom),k},createTile:function(){return document.createElement("div")},getTileSize:function(){var k=this.options.tileSize;return k instanceof E?k:new E(k,k)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(k){for(var re=this.getPane().children,ue=-k(-1/0,1/0),ge=0,Ce=re.length,Ee;ge<Ce;ge++)Ee=re[ge].style.zIndex,re[ge]!==this._container&&Ee&&(ue=k(ue,+Ee));isFinite(ue)&&(this.options.zIndex=ue+k(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!it.ielt9){pr(this._container,this.options.opacity);var k=+new Date,re=!1,ue=!1;for(var ge in this._tiles){var Ce=this._tiles[ge];if(!(!Ce.current||!Ce.loaded)){var Ee=Math.min(1,(k-Ce.loaded)/200);pr(Ce.el,Ee),Ee<1?re=!0:(Ce.active?ue=!0:this._onOpaqueTile(Ce),Ce.active=!0)}}ue&&!this._noPrune&&this._pruneTiles(),re&&(d(this._fadeFrame),this._fadeFrame=c(this._updateOpacity,this))}},_onOpaqueTile:se,_initContainer:function(){this._container||(this._container=Pt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var k=this._tileZoom,re=this.options.maxZoom;if(k!==void 0){for(var ue in this._levels)ue=Number(ue),this._levels[ue].el.children.length||ue===k?(this._levels[ue].el.style.zIndex=re-Math.abs(k-ue),this._onUpdateLevel(ue)):(Jt(this._levels[ue].el),this._removeTilesAtZoom(ue),this._onRemoveLevel(ue),delete this._levels[ue]);var ge=this._levels[k],Ce=this._map;return ge||(ge=this._levels[k]={},ge.el=Pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),ge.el.style.zIndex=re,ge.origin=Ce.project(Ce.unproject(Ce.getPixelOrigin()),k).round(),ge.zoom=k,this._setZoomTransform(ge,Ce.getCenter(),Ce.getZoom()),this._onCreateLevel(ge)),this._level=ge,ge}},_onUpdateLevel:se,_onRemoveLevel:se,_onCreateLevel:se,_pruneTiles:function(){if(this._map){var k,re,ue=this._map.getZoom();if(ue>this.options.maxZoom||ue<this.options.minZoom){this._removeAllTiles();return}for(k in this._tiles)re=this._tiles[k],re.retain=re.current;for(k in this._tiles)if(re=this._tiles[k],re.current&&!re.active){var ge=re.coords;this._retainParent(ge.x,ge.y,ge.z,ge.z-5)||this._retainChildren(ge.x,ge.y,ge.z,ge.z+2)}for(k in this._tiles)this._tiles[k].retain||this._removeTile(k)}},_removeTilesAtZoom:function(k){for(var re in this._tiles)this._tiles[re].coords.z===k&&this._removeTile(re)},_removeAllTiles:function(){for(var k in this._tiles)this._removeTile(k)},_invalidateAll:function(){for(var k in this._levels)Jt(this._levels[k].el),this._onRemoveLevel(Number(k)),delete this._levels[k];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(k,re,ue,ge){var Ce=Math.floor(k/2),Ee=Math.floor(re/2),Ne=ue-1,$e=new E(+Ce,+Ee);$e.z=+Ne;var Ue=this._tileCoordsToKey($e),Ze=this._tiles[Ue];return Ze&&Ze.active?(Ze.retain=!0,!0):(Ze&&Ze.loaded&&(Ze.retain=!0),Ne>ge?this._retainParent(Ce,Ee,Ne,ge):!1)},_retainChildren:function(k,re,ue,ge){for(var Ce=2*k;Ce<2*k+2;Ce++)for(var Ee=2*re;Ee<2*re+2;Ee++){var Ne=new E(Ce,Ee);Ne.z=ue+1;var $e=this._tileCoordsToKey(Ne),Ue=this._tiles[$e];if(Ue&&Ue.active){Ue.retain=!0;continue}else Ue&&Ue.loaded&&(Ue.retain=!0);ue+1<ge&&this._retainChildren(Ce,Ee,ue+1,ge)}},_resetView:function(k){var re=k&&(k.pinch||k.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),re,re)},_animateZoom:function(k){this._setView(k.center,k.zoom,!0,k.noUpdate)},_clampZoom:function(k){var re=this.options;return re.minNativeZoom!==void 0&&k<re.minNativeZoom?re.minNativeZoom:re.maxNativeZoom!==void 0&&re.maxNativeZoom<k?re.maxNativeZoom:k},_setView:function(k,re,ue,ge){var Ce=Math.round(re);this.options.maxZoom!==void 0&&Ce>this.options.maxZoom||this.options.minZoom!==void 0&&Ce<this.options.minZoom?Ce=void 0:Ce=this._clampZoom(Ce);var Ee=this.options.updateWhenZooming&&Ce!==this._tileZoom;(!ge||Ee)&&(this._tileZoom=Ce,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),Ce!==void 0&&this._update(k),ue||this._pruneTiles(),this._noPrune=!!ue),this._setZoomTransforms(k,re)},_setZoomTransforms:function(k,re){for(var ue in this._levels)this._setZoomTransform(this._levels[ue],k,re)},_setZoomTransform:function(k,re,ue){var ge=this._map.getZoomScale(ue,k.zoom),Ce=k.origin.multiplyBy(ge).subtract(this._map._getNewPixelOrigin(re,ue)).round();it.any3d?co(k.el,Ce,ge):xi(k.el,Ce)},_resetGrid:function(){var k=this._map,re=k.options.crs,ue=this._tileSize=this.getTileSize(),ge=this._tileZoom,Ce=this._map.getPixelWorldBounds(this._tileZoom);Ce&&(this._globalTileRange=this._pxBoundsToTileRange(Ce)),this._wrapX=re.wrapLng&&!this.options.noWrap&&[Math.floor(k.project([0,re.wrapLng[0]],ge).x/ue.x),Math.ceil(k.project([0,re.wrapLng[1]],ge).x/ue.y)],this._wrapY=re.wrapLat&&!this.options.noWrap&&[Math.floor(k.project([re.wrapLat[0],0],ge).y/ue.x),Math.ceil(k.project([re.wrapLat[1],0],ge).y/ue.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(k){var re=this._map,ue=re._animatingZoom?Math.max(re._animateToZoom,re.getZoom()):re.getZoom(),ge=re.getZoomScale(ue,this._tileZoom),Ce=re.project(k,this._tileZoom).floor(),Ee=re.getSize().divideBy(ge*2);return new u(Ce.subtract(Ee),Ce.add(Ee))},_update:function(k){var re=this._map;if(re){var ue=this._clampZoom(re.getZoom());if(k===void 0&&(k=re.getCenter()),this._tileZoom!==void 0){var ge=this._getTiledPixelBounds(k),Ce=this._pxBoundsToTileRange(ge),Ee=Ce.getCenter(),Ne=[],$e=this.options.keepBuffer,Ue=new u(Ce.getBottomLeft().subtract([$e,-$e]),Ce.getTopRight().add([$e,-$e]));if(!(isFinite(Ce.min.x)&&isFinite(Ce.min.y)&&isFinite(Ce.max.x)&&isFinite(Ce.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Ze in this._tiles){var ot=this._tiles[Ze].coords;(ot.z!==this._tileZoom||!Ue.contains(new E(ot.x,ot.y)))&&(this._tiles[Ze].current=!1)}if(Math.abs(ue-this._tileZoom)>1){this._setView(k,ue);return}for(var pt=Ce.min.y;pt<=Ce.max.y;pt++)for(var _t=Ce.min.x;_t<=Ce.max.x;_t++){var zi=new E(_t,pt);if(zi.z=this._tileZoom,!!this._isValidTile(zi)){var Ti=this._tiles[this._tileCoordsToKey(zi)];Ti?Ti.current=!0:Ne.push(zi)}}if(Ne.sort(function(qi,Xo){return qi.distanceTo(Ee)-Xo.distanceTo(Ee)}),Ne.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var mr=document.createDocumentFragment();for(_t=0;_t<Ne.length;_t++)this._addTile(Ne[_t],mr);this._level.el.appendChild(mr)}}}},_isValidTile:function(k){var re=this._map.options.crs;if(!re.infinite){var ue=this._globalTileRange;if(!re.wrapLng&&(k.x<ue.min.x||k.x>ue.max.x)||!re.wrapLat&&(k.y<ue.min.y||k.y>ue.max.y))return!1}if(!this.options.bounds)return!0;var ge=this._tileCoordsToBounds(k);return s(this.options.bounds).overlaps(ge)},_keyToBounds:function(k){return this._tileCoordsToBounds(this._keyToTileCoords(k))},_tileCoordsToNwSe:function(k){var re=this._map,ue=this.getTileSize(),ge=k.scaleBy(ue),Ce=ge.add(ue),Ee=re.unproject(ge,k.z),Ne=re.unproject(Ce,k.z);return[Ee,Ne]},_tileCoordsToBounds:function(k){var re=this._tileCoordsToNwSe(k),ue=new n(re[0],re[1]);return this.options.noWrap||(ue=this._map.wrapLatLngBounds(ue)),ue},_tileCoordsToKey:function(k){return k.x+":"+k.y+":"+k.z},_keyToTileCoords:function(k){var re=k.split(":"),ue=new E(+re[0],+re[1]);return ue.z=+re[2],ue},_removeTile:function(k){var re=this._tiles[k];re&&(Jt(re.el),delete this._tiles[k],this.fire("tileunload",{tile:re.el,coords:this._keyToTileCoords(k)}))},_initTile:function(k){yt(k,"leaflet-tile");var re=this.getTileSize();k.style.width=re.x+"px",k.style.height=re.y+"px",k.onselectstart=se,k.onmousemove=se,it.ielt9&&this.options.opacity<1&&pr(k,this.options.opacity)},_addTile:function(k,re){var ue=this._getTilePos(k),ge=this._tileCoordsToKey(k),Ce=this.createTile(this._wrapCoords(k),A(this._tileReady,this,k));this._initTile(Ce),this.createTile.length<2&&c(A(this._tileReady,this,k,null,Ce)),xi(Ce,ue),this._tiles[ge]={el:Ce,coords:k,current:!0},re.appendChild(Ce),this.fire("tileloadstart",{tile:Ce,coords:k})},_tileReady:function(k,re,ue){re&&this.fire("tileerror",{error:re,tile:ue,coords:k});var ge=this._tileCoordsToKey(k);ue=this._tiles[ge],ue&&(ue.loaded=+new Date,this._map._fadeAnimated?(pr(ue.el,0),d(this._fadeFrame),this._fadeFrame=c(this._updateOpacity,this)):(ue.active=!0,this._pruneTiles()),re||(yt(ue.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:ue.el,coords:k})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),it.ielt9||!this._map._fadeAnimated?c(this._pruneTiles,this):setTimeout(A(this._pruneTiles,this),250)))},_getTilePos:function(k){return k.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(k){var re=new E(this._wrapX?ne(k.x,this._wrapX):k.x,this._wrapY?ne(k.y,this._wrapY):k.y);return re.z=k.z,re},_pxBoundsToTileRange:function(k){var re=this.getTileSize();return new u(k.min.unscaleBy(re).floor(),k.max.unscaleBy(re).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var k in this._tiles)if(!this._tiles[k].loaded)return!1;return!0}});function Vk(k){return new ms(k)}var Yo=ms.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(k,re){this._url=k,re=O(this,re),re.detectRetina&&it.retina&&re.maxZoom>0?(re.tileSize=Math.floor(re.tileSize/2),re.zoomReverse?(re.zoomOffset--,re.minZoom=Math.min(re.maxZoom,re.minZoom+1)):(re.zoomOffset++,re.maxZoom=Math.max(re.minZoom,re.maxZoom-1)),re.minZoom=Math.max(0,re.minZoom)):re.zoomReverse?re.minZoom=Math.min(re.maxZoom,re.minZoom):re.maxZoom=Math.max(re.minZoom,re.maxZoom),typeof re.subdomains=="string"&&(re.subdomains=re.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(k,re){return this._url===k&&re===void 0&&(re=!0),this._url=k,re||this.redraw(),this},createTile:function(k,re){var ue=document.createElement("img");return gt(ue,"load",A(this._tileOnLoad,this,re,ue)),gt(ue,"error",A(this._tileOnError,this,re,ue)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(ue.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(ue.referrerPolicy=this.options.referrerPolicy),ue.alt="",ue.src=this.getTileUrl(k),ue},getTileUrl:function(k){var re={r:it.retina?"@2x":"",s:this._getSubdomain(k),x:k.x,y:k.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var ue=this._globalTileRange.max.y-k.y;this.options.tms&&(re.y=ue),re["-y"]=ue}return X(this._url,a(re,this.options))},_tileOnLoad:function(k,re){it.ielt9?setTimeout(A(k,this,null,re),0):k(null,re)},_tileOnError:function(k,re,ue){var ge=this.options.errorTileUrl;ge&&re.getAttribute("src")!==ge&&(re.src=ge),k(ue,re)},_onTileRemove:function(k){k.tile.onload=null},_getZoomForUrl:function(){var k=this._tileZoom,re=this.options.maxZoom,ue=this.options.zoomReverse,ge=this.options.zoomOffset;return ue&&(k=re-k),k+ge},_getSubdomain:function(k){var re=Math.abs(k.x+k.y)%this.options.subdomains.length;return this.options.subdomains[re]},_abortLoading:function(){var k,re;for(k in this._tiles)if(this._tiles[k].coords.z!==this._tileZoom&&(re=this._tiles[k].el,re.onload=se,re.onerror=se,!re.complete)){re.src=z;var ue=this._tiles[k].coords;Jt(re),delete this._tiles[k],this.fire("tileabort",{tile:re,coords:ue})}},_removeTile:function(k){var re=this._tiles[k];if(re)return re.el.setAttribute("src",z),ms.prototype._removeTile.call(this,k)},_tileReady:function(k,re,ue){if(!(!this._map||ue&&ue.getAttribute("src")===z))return ms.prototype._tileReady.call(this,k,re,ue)}});function vy(k,re){return new Yo(k,re)}var yy=Yo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(k,re){this._url=k;var ue=a({},this.defaultWmsParams);for(var ge in re)ge in this.options||(ue[ge]=re[ge]);re=O(this,re);var Ce=re.detectRetina&&it.retina?2:1,Ee=this.getTileSize();ue.width=Ee.x*Ce,ue.height=Ee.y*Ce,this.wmsParams=ue},onAdd:function(k){this._crs=this.options.crs||k.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var re=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[re]=this._crs.code,Yo.prototype.onAdd.call(this,k)},getTileUrl:function(k){var re=this._tileCoordsToNwSe(k),ue=this._crs,ge=m(ue.project(re[0]),ue.project(re[1])),Ce=ge.min,Ee=ge.max,Ne=(this._wmsVersion>=1.3&&this._crs===uy?[Ce.y,Ce.x,Ee.y,Ee.x]:[Ce.x,Ce.y,Ee.x,Ee.y]).join(","),$e=Yo.prototype.getTileUrl.call(this,k);return $e+$(this.wmsParams,$e,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Ne},setParams:function(k,re){return a(this.wmsParams,k),re||this.redraw(),this}});function Gk(k,re){return new yy(k,re)}Yo.WMS=yy,vy.wms=Gk;var Sn=zr.extend({options:{padding:.1},initialize:function(k){O(this,k),q(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),yt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var k={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(k.zoomanim=this._onAnimZoom),k},_onAnimZoom:function(k){this._updateTransform(k.center,k.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(k,re){var ue=this._map.getZoomScale(re,this._zoom),ge=this._map.getSize().multiplyBy(.5+this.options.padding),Ce=this._map.project(this._center,re),Ee=ge.multiplyBy(-ue).add(Ce).subtract(this._map._getNewPixelOrigin(k,re));it.any3d?co(this._container,Ee,ue):xi(this._container,Ee)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var k in this._layers)this._layers[k]._reset()},_onZoomEnd:function(){for(var k in this._layers)this._layers[k]._project()},_updatePaths:function(){for(var k in this._layers)this._layers[k]._update()},_update:function(){var k=this.options.padding,re=this._map.getSize(),ue=this._map.containerPointToLayerPoint(re.multiplyBy(-k)).round();this._bounds=new u(ue,ue.add(re.multiplyBy(1+k*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),by=Sn.extend({options:{tolerance:0},getEvents:function(){var k=Sn.prototype.getEvents.call(this);return k.viewprereset=this._onViewPreReset,k},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Sn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var k=this._container=document.createElement("canvas");gt(k,"mousemove",this._onMouseMove,this),gt(k,"click dblclick mousedown mouseup contextmenu",this._onClick,this),gt(k,"mouseout",this._handleMouseOut,this),k._leaflet_disable_events=!0,this._ctx=k.getContext("2d")},_destroyContainer:function(){d(this._redrawRequest),delete this._ctx,Jt(this._container),Wt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var k;this._redrawBounds=null;for(var re in this._layers)k=this._layers[re],k._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Sn.prototype._update.call(this);var k=this._bounds,re=this._container,ue=k.getSize(),ge=it.retina?2:1;xi(re,k.min),re.width=ge*ue.x,re.height=ge*ue.y,re.style.width=ue.x+"px",re.style.height=ue.y+"px",it.retina&&this._ctx.scale(2,2),this._ctx.translate(-k.min.x,-k.min.y),this.fire("update")}},_reset:function(){Sn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(k){this._updateDashArray(k),this._layers[q(k)]=k;var re=k._order={layer:k,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=re),this._drawLast=re,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(k){this._requestRedraw(k)},_removePath:function(k){var re=k._order,ue=re.next,ge=re.prev;ue?ue.prev=ge:this._drawLast=ge,ge?ge.next=ue:this._drawFirst=ue,delete k._order,delete this._layers[q(k)],this._requestRedraw(k)},_updatePath:function(k){this._extendRedrawBounds(k),k._project(),k._update(),this._requestRedraw(k)},_updateStyle:function(k){this._updateDashArray(k),this._requestRedraw(k)},_updateDashArray:function(k){if(typeof k.options.dashArray=="string"){var re=k.options.dashArray.split(/[, ]+/),ue=[],ge,Ce;for(Ce=0;Ce<re.length;Ce++){if(ge=Number(re[Ce]),isNaN(ge))return;ue.push(ge)}k.options._dashArray=ue}else k.options._dashArray=k.options.dashArray},_requestRedraw:function(k){this._map&&(this._extendRedrawBounds(k),this._redrawRequest=this._redrawRequest||c(this._redraw,this))},_extendRedrawBounds:function(k){if(k._pxBounds){var re=(k.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new u,this._redrawBounds.extend(k._pxBounds.min.subtract([re,re])),this._redrawBounds.extend(k._pxBounds.max.add([re,re]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var k=this._redrawBounds;if(k){var re=k.getSize();this._ctx.clearRect(k.min.x,k.min.y,re.x,re.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var k,re=this._redrawBounds;if(this._ctx.save(),re){var ue=re.getSize();this._ctx.beginPath(),this._ctx.rect(re.min.x,re.min.y,ue.x,ue.y),this._ctx.clip()}this._drawing=!0;for(var ge=this._drawFirst;ge;ge=ge.next)k=ge.layer,(!re||k._pxBounds&&k._pxBounds.intersects(re))&&k._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(k,re){if(this._drawing){var ue,ge,Ce,Ee,Ne=k._parts,$e=Ne.length,Ue=this._ctx;if($e){for(Ue.beginPath(),ue=0;ue<$e;ue++){for(ge=0,Ce=Ne[ue].length;ge<Ce;ge++)Ee=Ne[ue][ge],Ue[ge?"lineTo":"moveTo"](Ee.x,Ee.y);re&&Ue.closePath()}this._fillStroke(Ue,k)}}},_updateCircle:function(k){if(!(!this._drawing||k._empty())){var re=k._point,ue=this._ctx,ge=Math.max(Math.round(k._radius),1),Ce=(Math.max(Math.round(k._radiusY),1)||ge)/ge;Ce!==1&&(ue.save(),ue.scale(1,Ce)),ue.beginPath(),ue.arc(re.x,re.y/Ce,ge,0,Math.PI*2,!1),Ce!==1&&ue.restore(),this._fillStroke(ue,k)}},_fillStroke:function(k,re){var ue=re.options;ue.fill&&(k.globalAlpha=ue.fillOpacity,k.fillStyle=ue.fillColor||ue.color,k.fill(ue.fillRule||"evenodd")),ue.stroke&&ue.weight!==0&&(k.setLineDash&&k.setLineDash(re.options&&re.options._dashArray||[]),k.globalAlpha=ue.opacity,k.lineWidth=ue.weight,k.strokeStyle=ue.color,k.lineCap=ue.lineCap,k.lineJoin=ue.lineJoin,k.stroke())},_onClick:function(k){for(var re=this._map.mouseEventToLayerPoint(k),ue,ge,Ce=this._drawFirst;Ce;Ce=Ce.next)ue=Ce.layer,ue.options.interactive&&ue._containsPoint(re)&&(!(k.type==="click"||k.type==="preclick")||!this._map._draggableMoved(ue))&&(ge=ue);this._fireEvent(ge?[ge]:!1,k)},_onMouseMove:function(k){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var re=this._map.mouseEventToLayerPoint(k);this._handleMouseHover(k,re)}},_handleMouseOut:function(k){var re=this._hoveredLayer;re&&(fi(this._container,"leaflet-interactive"),this._fireEvent([re],k,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(k,re){if(!this._mouseHoverThrottled){for(var ue,ge,Ce=this._drawFirst;Ce;Ce=Ce.next)ue=Ce.layer,ue.options.interactive&&ue._containsPoint(re)&&(ge=ue);ge!==this._hoveredLayer&&(this._handleMouseOut(k),ge&&(yt(this._container,"leaflet-interactive"),this._fireEvent([ge],k,"mouseover"),this._hoveredLayer=ge)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,k),this._mouseHoverThrottled=!0,setTimeout(A(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(k,re,ue){this._map._fireDOMEvent(re,ue||re.type,k)},_bringToFront:function(k){var re=k._order;if(re){var ue=re.next,ge=re.prev;if(ue)ue.prev=ge;else return;ge?ge.next=ue:ue&&(this._drawFirst=ue),re.prev=this._drawLast,this._drawLast.next=re,re.next=null,this._drawLast=re,this._requestRedraw(k)}},_bringToBack:function(k){var re=k._order;if(re){var ue=re.next,ge=re.prev;if(ge)ge.next=ue;else return;ue?ue.prev=ge:ge&&(this._drawLast=ge),re.prev=null,re.next=this._drawFirst,this._drawFirst.prev=re,this._drawFirst=re,this._requestRedraw(k)}}});function xy(k){return it.canvas?new by(k):null}var gs=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(k){return document.createElement("<lvml:"+k+' class="lvml">')}}catch(k){}return function(k){return document.createElement("<"+k+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Yk={_initContainer:function(){this._container=Pt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Sn.prototype._update.call(this),this.fire("update"))},_initPath:function(k){var re=k._container=gs("shape");yt(re,"leaflet-vml-shape "+(this.options.className||"")),re.coordsize="1 1",k._path=gs("path"),re.appendChild(k._path),this._updateStyle(k),this._layers[q(k)]=k},_addPath:function(k){var re=k._container;this._container.appendChild(re),k.options.interactive&&k.addInteractiveTarget(re)},_removePath:function(k){var re=k._container;Jt(re),k.removeInteractiveTarget(re),delete this._layers[q(k)]},_updateStyle:function(k){var re=k._stroke,ue=k._fill,ge=k.options,Ce=k._container;Ce.stroked=!!ge.stroke,Ce.filled=!!ge.fill,ge.stroke?(re||(re=k._stroke=gs("stroke")),Ce.appendChild(re),re.weight=ge.weight+"px",re.color=ge.color,re.opacity=ge.opacity,ge.dashArray?re.dashStyle=G(ge.dashArray)?ge.dashArray.join(" "):ge.dashArray.replace(/( *, *)/g," "):re.dashStyle="",re.endcap=ge.lineCap.replace("butt","flat"),re.joinstyle=ge.lineJoin):re&&(Ce.removeChild(re),k._stroke=null),ge.fill?(ue||(ue=k._fill=gs("fill")),Ce.appendChild(ue),ue.color=ge.fillColor||ge.color,ue.opacity=ge.fillOpacity):ue&&(Ce.removeChild(ue),k._fill=null)},_updateCircle:function(k){var re=k._point.round(),ue=Math.round(k._radius),ge=Math.round(k._radiusY||ue);this._setPath(k,k._empty()?"M0 0":"AL "+re.x+","+re.y+" "+ue+","+ge+" 0,"+65535*360)},_setPath:function(k,re){k._path.v=re},_bringToFront:function(k){Wo(k._container)},_bringToBack:function(k){$o(k._container)}},pc=it.vml?gs:W,vs=Sn.extend({_initContainer:function(){this._container=pc("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=pc("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Jt(this._container),Wt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Sn.prototype._update.call(this);var k=this._bounds,re=k.getSize(),ue=this._container;(!this._svgSize||!this._svgSize.equals(re))&&(this._svgSize=re,ue.setAttribute("width",re.x),ue.setAttribute("height",re.y)),xi(ue,k.min),ue.setAttribute("viewBox",[k.min.x,k.min.y,re.x,re.y].join(" ")),this.fire("update")}},_initPath:function(k){var re=k._path=pc("path");k.options.className&&yt(re,k.options.className),k.options.interactive&&yt(re,"leaflet-interactive"),this._updateStyle(k),this._layers[q(k)]=k},_addPath:function(k){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(k._path),k.addInteractiveTarget(k._path)},_removePath:function(k){Jt(k._path),k.removeInteractiveTarget(k._path),delete this._layers[q(k)]},_updatePath:function(k){k._project(),k._update()},_updateStyle:function(k){var re=k._path,ue=k.options;re&&(ue.stroke?(re.setAttribute("stroke",ue.color),re.setAttribute("stroke-opacity",ue.opacity),re.setAttribute("stroke-width",ue.weight),re.setAttribute("stroke-linecap",ue.lineCap),re.setAttribute("stroke-linejoin",ue.lineJoin),ue.dashArray?re.setAttribute("stroke-dasharray",ue.dashArray):re.removeAttribute("stroke-dasharray"),ue.dashOffset?re.setAttribute("stroke-dashoffset",ue.dashOffset):re.removeAttribute("stroke-dashoffset")):re.setAttribute("stroke","none"),ue.fill?(re.setAttribute("fill",ue.fillColor||ue.color),re.setAttribute("fill-opacity",ue.fillOpacity),re.setAttribute("fill-rule",ue.fillRule||"evenodd")):re.setAttribute("fill","none"))},_updatePoly:function(k,re){this._setPath(k,ee(k._parts,re))},_updateCircle:function(k){var re=k._point,ue=Math.max(Math.round(k._radius),1),ge=Math.max(Math.round(k._radiusY),1)||ue,Ce="a"+ue+","+ge+" 0 1,0 ",Ee=k._empty()?"M0 0":"M"+(re.x-ue)+","+re.y+Ce+ue*2+",0 "+Ce+-ue*2+",0 ";this._setPath(k,Ee)},_setPath:function(k,re){k._path.setAttribute("d",re)},_bringToFront:function(k){Wo(k._path)},_bringToBack:function(k){$o(k._path)}});it.vml&&vs.include(Yk);function wy(k){return it.svg||it.vml?new vs(k):null}Mt.include({getRenderer:function(k){var re=k.options.renderer||this._getPaneRenderer(k.options.pane)||this.options.renderer||this._renderer;return re||(re=this._renderer=this._createRenderer()),this.hasLayer(re)||this.addLayer(re),re},_getPaneRenderer:function(k){if(k==="overlayPane"||k===void 0)return!1;var re=this._paneRenderers[k];return re===void 0&&(re=this._createRenderer({pane:k}),this._paneRenderers[k]=re),re},_createRenderer:function(k){return this.options.preferCanvas&&xy(k)||wy(k)}});var _y=Vo.extend({initialize:function(k,re){Vo.prototype.initialize.call(this,this._boundsToLatLngs(k),re)},setBounds:function(k){return this.setLatLngs(this._boundsToLatLngs(k))},_boundsToLatLngs:function(k){return k=s(k),[k.getSouthWest(),k.getNorthWest(),k.getNorthEast(),k.getSouthEast()]}});function Xk(k,re){return new _y(k,re)}vs.create=pc,vs.pointsToPath=ee,Cn.geometryToLayer=ac,Cn.coordsToLatLng=Rd,Cn.coordsToLatLngs=sc,Cn.latLngToCoords=Nd,Cn.latLngsToCoords=lc,Cn.getFeature=Go,Cn.asFeature=cc,Mt.mergeOptions({boxZoom:!0});var Cy=qr.extend({initialize:function(k){this._map=k,this._container=k._container,this._pane=k._panes.overlayPane,this._resetStateTimeout=0,k.on("unload",this._destroy,this)},addHooks:function(){gt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Wt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Jt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(k){if(!k.shiftKey||k.which!==1&&k.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),ls(),vd(),this._startPoint=this._map.mouseEventToContainerPoint(k),gt(document,{contextmenu:po,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(k){this._moved||(this._moved=!0,this._box=Pt("div","leaflet-zoom-box",this._container),yt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(k);var re=new u(this._point,this._startPoint),ue=re.getSize();xi(this._box,re.min),this._box.style.width=ue.x+"px",this._box.style.height=ue.y+"px"},_finish:function(){this._moved&&(Jt(this._box),fi(this._container,"leaflet-crosshair")),cs(),yd(),Wt(document,{contextmenu:po,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(k){if(!(k.which!==1&&k.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(A(this._resetState,this),0);var re=new n(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(re).fire("boxzoomend",{boxZoomBounds:re})}},_onKeyDown:function(k){k.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Mt.addInitHook("addHandler","boxZoom",Cy),Mt.mergeOptions({doubleClickZoom:!0});var Sy=qr.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(k){var re=this._map,ue=re.getZoom(),ge=re.options.zoomDelta,Ce=k.originalEvent.shiftKey?ue-ge:ue+ge;re.options.doubleClickZoom==="center"?re.setZoom(Ce):re.setZoomAround(k.containerPoint,Ce)}});Mt.addInitHook("addHandler","doubleClickZoom",Sy),Mt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var My=qr.extend({addHooks:function(){if(!this._draggable){var k=this._map;this._draggable=new Rn(k._mapPane,k._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),k.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),k.on("zoomend",this._onZoomEnd,this),k.whenReady(this._onZoomEnd,this))}yt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fi(this._map._container,"leaflet-grab"),fi(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var k=this._map;if(k._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var re=s(this._map.options.maxBounds);this._offsetLimit=m(this._map.latLngToContainerPoint(re.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(re.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;k.fire("movestart").fire("dragstart"),k.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(k){if(this._map.options.inertia){var re=this._lastTime=+new Date,ue=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(ue),this._times.push(re),this._prunePositions(re)}this._map.fire("move",k).fire("drag",k)},_prunePositions:function(k){for(;this._positions.length>1&&k-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var k=this._map.getSize().divideBy(2),re=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=re.subtract(k).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(k,re){return k-(k-re)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var k=this._draggable._newPos.subtract(this._draggable._startPos),re=this._offsetLimit;k.x<re.min.x&&(k.x=this._viscousLimit(k.x,re.min.x)),k.y<re.min.y&&(k.y=this._viscousLimit(k.y,re.min.y)),k.x>re.max.x&&(k.x=this._viscousLimit(k.x,re.max.x)),k.y>re.max.y&&(k.y=this._viscousLimit(k.y,re.max.y)),this._draggable._newPos=this._draggable._startPos.add(k)}},_onPreDragWrap:function(){var k=this._worldWidth,re=Math.round(k/2),ue=this._initialWorldOffset,ge=this._draggable._newPos.x,Ce=(ge-re+ue)%k+re-ue,Ee=(ge+re+ue)%k-re-ue,Ne=Math.abs(Ce+ue)<Math.abs(Ee+ue)?Ce:Ee;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Ne},_onDragEnd:function(k){var re=this._map,ue=re.options,ge=!ue.inertia||k.noInertia||this._times.length<2;if(re.fire("dragend",k),ge)re.fire("moveend");else{this._prunePositions(+new Date);var Ce=this._lastPos.subtract(this._positions[0]),Ee=(this._lastTime-this._times[0])/1e3,Ne=ue.easeLinearity,$e=Ce.multiplyBy(Ne/Ee),Ue=$e.distanceTo([0,0]),Ze=Math.min(ue.inertiaMaxSpeed,Ue),ot=$e.multiplyBy(Ze/Ue),pt=Ze/(ue.inertiaDeceleration*Ne),_t=ot.multiplyBy(-pt/2).round();!_t.x&&!_t.y?re.fire("moveend"):(_t=re._limitOffset(_t,re.options.maxBounds),c(function(){re.panBy(_t,{duration:pt,easeLinearity:Ne,noMoveStart:!0,animate:!0})}))}}});Mt.addInitHook("addHandler","dragging",My),Mt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ty=qr.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(k){this._map=k,this._setPanDelta(k.options.keyboardPanDelta),this._setZoomDelta(k.options.zoomDelta)},addHooks:function(){var k=this._map._container;k.tabIndex<=0&&(k.tabIndex="0"),gt(k,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Wt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var k=document.body,re=document.documentElement,ue=k.scrollTop||re.scrollTop,ge=k.scrollLeft||re.scrollLeft;this._map._container.focus(),window.scrollTo(ge,ue)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(k){var re=this._panKeys={},ue=this.keyCodes,ge,Ce;for(ge=0,Ce=ue.left.length;ge<Ce;ge++)re[ue.left[ge]]=[-1*k,0];for(ge=0,Ce=ue.right.length;ge<Ce;ge++)re[ue.right[ge]]=[k,0];for(ge=0,Ce=ue.down.length;ge<Ce;ge++)re[ue.down[ge]]=[0,k];for(ge=0,Ce=ue.up.length;ge<Ce;ge++)re[ue.up[ge]]=[0,-1*k]},_setZoomDelta:function(k){var re=this._zoomKeys={},ue=this.keyCodes,ge,Ce;for(ge=0,Ce=ue.zoomIn.length;ge<Ce;ge++)re[ue.zoomIn[ge]]=k;for(ge=0,Ce=ue.zoomOut.length;ge<Ce;ge++)re[ue.zoomOut[ge]]=-k},_addHooks:function(){gt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Wt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(k){if(!(k.altKey||k.ctrlKey||k.metaKey)){var re=k.keyCode,ue=this._map,ge;if(re in this._panKeys){if(!ue._panAnim||!ue._panAnim._inProgress)if(ge=this._panKeys[re],k.shiftKey&&(ge=x(ge).multiplyBy(3)),ue.options.maxBounds&&(ge=ue._limitOffset(x(ge),ue.options.maxBounds)),ue.options.worldCopyJump){var Ce=ue.wrapLatLng(ue.unproject(ue.project(ue.getCenter()).add(ge)));ue.panTo(Ce)}else ue.panBy(ge)}else if(re in this._zoomKeys)ue.setZoom(ue.getZoom()+(k.shiftKey?3:1)*this._zoomKeys[re]);else if(re===27&&ue._popup&&ue._popup.options.closeOnEscapeKey)ue.closePopup();else return;po(k)}}});Mt.addInitHook("addHandler","keyboard",Ty),Mt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Py=qr.extend({addHooks:function(){gt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Wt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(k){var re=Kv(k),ue=this._map.options.wheelDebounceTime;this._delta+=re,this._lastMousePos=this._map.mouseEventToContainerPoint(k),this._startTime||(this._startTime=+new Date);var ge=Math.max(ue-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(A(this._performZoom,this),ge),po(k)},_performZoom:function(){var k=this._map,re=k.getZoom(),ue=this._map.options.zoomSnap||0;k._stop();var ge=this._delta/(this._map.options.wheelPxPerZoomLevel*4),Ce=4*Math.log(2/(1+Math.exp(-Math.abs(ge))))/Math.LN2,Ee=ue?Math.ceil(Ce/ue)*ue:Ce,Ne=k._limitZoom(re+(this._delta>0?Ee:-Ee))-re;this._delta=0,this._startTime=null,Ne&&(k.options.scrollWheelZoom==="center"?k.setZoom(re+Ne):k.setZoomAround(this._lastMousePos,re+Ne))}});Mt.addInitHook("addHandler","scrollWheelZoom",Py);var qk=600;Mt.mergeOptions({tapHold:it.touchNative&&it.safari&&it.mobile,tapTolerance:15});var ky=qr.extend({addHooks:function(){gt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Wt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(k){if(clearTimeout(this._holdTimeout),k.touches.length===1){var re=k.touches[0];this._startPos=this._newPos=new E(re.clientX,re.clientY),this._holdTimeout=setTimeout(A(function(){this._cancel(),this._isTapValid()&&(gt(document,"touchend",ki),gt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",re))},this),qk),gt(document,"touchend touchcancel contextmenu",this._cancel,this),gt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function k(){Wt(document,"touchend",ki),Wt(document,"touchend touchcancel",k)},_cancel:function(){clearTimeout(this._holdTimeout),Wt(document,"touchend touchcancel contextmenu",this._cancel,this),Wt(document,"touchmove",this._onMove,this)},_onMove:function(k){var re=k.touches[0];this._newPos=new E(re.clientX,re.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(k,re){var ue=new MouseEvent(k,{bubbles:!0,cancelable:!0,view:window,screenX:re.screenX,screenY:re.screenY,clientX:re.clientX,clientY:re.clientY});ue._simulated=!0,re.target.dispatchEvent(ue)}});Mt.addInitHook("addHandler","tapHold",ky),Mt.mergeOptions({touchZoom:it.touch,bounceAtZoomLimits:!0});var Ey=qr.extend({addHooks:function(){yt(this._map._container,"leaflet-touch-zoom"),gt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fi(this._map._container,"leaflet-touch-zoom"),Wt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(k){var re=this._map;if(!(!k.touches||k.touches.length!==2||re._animatingZoom||this._zooming)){var ue=re.mouseEventToContainerPoint(k.touches[0]),ge=re.mouseEventToContainerPoint(k.touches[1]);this._centerPoint=re.getSize()._divideBy(2),this._startLatLng=re.containerPointToLatLng(this._centerPoint),re.options.touchZoom!=="center"&&(this._pinchStartLatLng=re.containerPointToLatLng(ue.add(ge)._divideBy(2))),this._startDist=ue.distanceTo(ge),this._startZoom=re.getZoom(),this._moved=!1,this._zooming=!0,re._stop(),gt(document,"touchmove",this._onTouchMove,this),gt(document,"touchend touchcancel",this._onTouchEnd,this),ki(k)}},_onTouchMove:function(k){if(!(!k.touches||k.touches.length!==2||!this._zooming)){var re=this._map,ue=re.mouseEventToContainerPoint(k.touches[0]),ge=re.mouseEventToContainerPoint(k.touches[1]),Ce=ue.distanceTo(ge)/this._startDist;if(this._zoom=re.getScaleZoom(Ce,this._startZoom),!re.options.bounceAtZoomLimits&&(this._zoom<re.getMinZoom()&&Ce<1||this._zoom>re.getMaxZoom()&&Ce>1)&&(this._zoom=re._limitZoom(this._zoom)),re.options.touchZoom==="center"){if(this._center=this._startLatLng,Ce===1)return}else{var Ee=ue._add(ge)._divideBy(2)._subtract(this._centerPoint);if(Ce===1&&Ee.x===0&&Ee.y===0)return;this._center=re.unproject(re.project(this._pinchStartLatLng,this._zoom).subtract(Ee),this._zoom)}this._moved||(re._moveStart(!0,!1),this._moved=!0),d(this._animRequest);var Ne=A(re._move,re,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=c(Ne,this,!0),ki(k)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,d(this._animRequest),Wt(document,"touchmove",this._onTouchMove,this),Wt(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Mt.addInitHook("addHandler","touchZoom",Ey),Mt.BoxZoom=Cy,Mt.DoubleClickZoom=Sy,Mt.Drag=My,Mt.Keyboard=Ty,Mt.ScrollWheelZoom=Py,Mt.TapHold=ky,Mt.TouchZoom=Ey,i.Bounds=u,i.Browser=it,i.CRS=v,i.Canvas=by,i.Circle=Dd,i.CircleMarker=oc,i.Class=y,i.Control=Br,i.DivIcon=gy,i.DivOverlay=Zr,i.DomEvent=pk,i.DomUtil=hk,i.Draggable=Rn,i.Evented=j,i.FeatureGroup=wn,i.GeoJSON=Cn,i.GridLayer=ms,i.Handler=qr,i.Icon=Uo,i.ImageOverlay=uc,i.LatLng=l,i.LatLngBounds=n,i.Layer=zr,i.LayerGroup=Ho,i.LineUtil=Tk,i.Map=Mt,i.Marker=nc,i.Mixin=xk,i.Path=Nn,i.Point=E,i.PolyUtil=wk,i.Polygon=Vo,i.Polyline=_n,i.Popup=hc,i.PosAnimation=Qv,i.Projection=Pk,i.Rectangle=_y,i.Renderer=Sn,i.SVG=vs,i.SVGOverlay=my,i.TileLayer=Yo,i.Tooltip=dc,i.Transformation=B,i.Util=_,i.VideoOverlay=fy,i.bind=A,i.bounds=m,i.canvas=xy,i.circle=Nk,i.circleMarker=Rk,i.control=ds,i.divIcon=Uk,i.extend=a,i.featureGroup=Ok,i.geoJSON=py,i.geoJson=Bk,i.gridLayer=Vk,i.icon=Lk,i.imageOverlay=zk,i.latLng=o,i.latLngBounds=s,i.layerGroup=Ak,i.map=fk,i.marker=Dk,i.point=x,i.polygon=jk,i.polyline=Ik,i.popup=$k,i.rectangle=Xk,i.setOptions=O,i.stamp=q,i.svg=wy,i.svgOverlay=Wk,i.tileLayer=vy,i.tooltip=Hk,i.transformation=U,i.version=r,i.videoOverlay=Fk;var Zk=window.L;i.noConflict=function(){return window.L=Zk,this},window.L=i})})(Uf,Uf.exports);var kee=Uf.exports;const cn=Et(kee),Eee=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function Aee(e,t){const i=Eee[e.toLowerCase()];return i&&(t[i]=e),i||e}function Oee(e,t){return t[e.toLowerCase()]||e}const Lee=(e,t)=>{const{app:i}=Pi(),[r,a]=Be.useState([]),f=Be.useRef(e),A=Be.useCallback(()=>Fr(exports,null,function*(){if(!i||!e)return;const H={},q=QQ(t),J=yield i.httpClient.post("api/v1/geo/locations",Ae({locations:e.map(F=>({name:Aee(F.name,H)}))},q&&{geoLevel:q})),ne=f.current!==e;if(!J||ne)return;const se=J.reduce((F,O)=>{const $=ze(Ae({},O),{name:Oee(O.name,H)});return F[$.name]=$,F},{}),M=[],te=e.map(F=>(se[F.name]||M.push(F.name),Ae(Ae({},F),se[F.name]?{coordinates:se[F.name].latLng}:null)));M.length&&console.warn(`Locations "${M.join(", ")}" coordinates not found`),a(te)}),[i,a,e,t]);return Be.useEffect(()=>{e&&(f.current=e,e.some(q=>!!q.coordinates)?a(e):A())},[e,i,A,a]),r};function Dee(e){let t=Number.MAX_VALUE,i=Number.MIN_VALUE;return e.forEach(r=>{isNaN(r)||(t=Math.min(t,r),i=Math.max(i,r))}),{min:t,max:i}}function Ree(e,t=4,i=24){let r=0;const{min:a,max:f}=Dee(e.map(({value:H})=>H)),A=i-t;return r=f-a,e.map(H=>r===0?t:(H.value-a)/r*A+t)}const Nee=()=>{const{app:e}=Pi(),[t,i]=Be.useState(null),r=Be.useCallback(()=>Fr(exports,null,function*(){if(!e)return;const a=yield e.httpClient.get("api/v1/settings/system");a&&i(a.geo)}),[i,e]);return Be.useEffect(()=>{r()},[e,r]),t},Iee="#00cee6",jee=Dh({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>ze(Ae({},e),{color:t})});function Bee(e,t){return t?jee(e.map(({colorValue:i})=>({colorValue:i})),t).map(({color:i})=>i):e.map(()=>Iee)}function PM(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function kM(e){const{color:t,size:i,fill:r,blur:a}=e,{isFilled:f}=PM(r),q=a?{filled:.1,"filled-light":.1,hollow:.2,"hollow-bold":.25}[r]:{filled:.5,"filled-light":.2,hollow:.35,"hollow-bold":.9}[r];return{radius:i,fillOpacity:q,opacity:q,fillColor:f?t:"transparent",color:f?"transparent":t,stroke:!f,weight:f?0:2,customStyle:e}}function zee({coordinates:e,style:t}){const i=new cn.CircleMarker({lat:e.lat,lng:e.lng},kM(t));return i.on("mouseover",Fee),i.on("mouseout",Wee),i}function Fee(e){const t=e.target,i=t.options.customStyle,{isFilled:r,isLight:a}=PM(i.fill);return t.setStyle(r?{stroke:!0,weight:2,opacity:a?.5:.7,fillOpacity:a?.5:.7}:{weight:3,opacity:a?.6:1}),t}function Wee(e){const t=e.target,i=t.options.customStyle;t.setStyle(kM(i))}function $ee(e){e.forEach(t=>t.remove())}function Hee(e,t){const i=`
@@ -433,7 +433,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
433
433
  `))}return null}),children:fe.oneOfType([fe.node,fe.func]),container:fe.oneOfType([An,fe.func]),direction:fe.oneOf(["ltr","rtl"]),disablePortal:fe.bool,keepMounted:fe.bool,modifiers:fe.arrayOf(fe.shape({data:fe.object,effect:fe.func,enabled:fe.bool,fn:fe.func,name:fe.any,options:fe.object,phase:fe.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:fe.arrayOf(fe.string),requiresIfExists:fe.arrayOf(fe.string)})),open:fe.bool.isRequired,placement:fe.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:fe.shape({modifiers:fe.array,onFirstUpdate:fe.func,placement:fe.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:fe.oneOf(["absolute","fixed"])}),popperRef:Fl,slotProps:fe.shape({root:fe.oneOfType([fe.func,fe.object])}),slots:fe.shape({root:fe.elementType}),transition:fe.bool});var Av={};Object.defineProperty(Av,"__esModule",{value:!0});var EP=Av.default=void 0,zfe=Wfe(Be),Ffe=ZT;function AP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,i=new WeakMap;return(AP=function(r){return r?i:t})(e)}function Wfe(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var i=AP(t);if(i&&i.has(e))return i.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in e)if(f!=="default"&&Object.prototype.hasOwnProperty.call(e,f)){var A=a?Object.getOwnPropertyDescriptor(e,f):null;A&&(A.get||A.set)?Object.defineProperty(r,f,A):r[f]=e[f]}return r.default=e,i&&i.set(e,r),r}function $fe(e){return Object.keys(e).length===0}function Hfe(e=null){const t=zfe.useContext(Ffe.ThemeContext);return!t||$fe(t)?e:t}EP=Av.default=Hfe;const K1=e=>{let t;return e<1?t=5.11916*Qe(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Ufe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Vfe=xt(kP,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zl=Ie.forwardRef(function(t,i){var r;const a=EP(),f=ni({props:t,name:"MuiPopper"}),{anchorEl:A,component:H,components:q,componentsProps:J,container:ne,disablePortal:se,keepMounted:M,modifiers:te,open:F,placement:O,popperOptions:$,popperRef:Y,transition:X,slots:G,slotProps:V}=f,z=mt(f,Ufe),D=(r=G==null?void 0:G.root)!=null?r:q==null?void 0:q.Root,R=Fe({anchorEl:A,container:ne,disablePortal:se,keepMounted:M,modifiers:te,open:F,placement:O,popperOptions:$,popperRef:Y,transition:X},z);return Oe.jsx(Vfe,Fe({as:H,direction:a==null?void 0:a.direction,slots:{root:D},slotProps:V!=null?V:J},R,{ref:i}))});process.env.NODE_ENV!=="production"&&(Zl.propTypes={anchorEl:fe.oneOfType([An,fe.object,fe.func]),children:fe.oneOfType([fe.node,fe.func]),component:fe.elementType,components:fe.shape({Root:fe.elementType}),componentsProps:fe.shape({root:fe.oneOfType([fe.func,fe.object])}),container:fe.oneOfType([An,fe.func]),disablePortal:fe.bool,keepMounted:fe.bool,modifiers:fe.arrayOf(fe.shape({data:fe.object,effect:fe.func,enabled:fe.bool,fn:fe.func,name:fe.any,options:fe.object,phase:fe.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:fe.arrayOf(fe.string),requiresIfExists:fe.arrayOf(fe.string)})),open:fe.bool.isRequired,placement:fe.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:fe.shape({modifiers:fe.array,onFirstUpdate:fe.func,placement:fe.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:fe.oneOf(["absolute","fixed"])}),popperRef:Fl,slotProps:fe.shape({root:fe.oneOfType([fe.func,fe.object])}),slots:fe.shape({root:fe.elementType}),sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),transition:fe.bool});function Gfe(e){return ri("MuiTooltip",e)}const Fn=Zt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Yfe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Xfe(e){return Math.round(e*1e5)/1e5}const qfe=e=>{const{classes:t,disableInteractive:i,arrow:r,touch:a,placement:f}=e,A={popper:["popper",!i&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",a&&"touch",`tooltipPlacement${Ct(f.split("-")[0])}`],arrow:["arrow"]};return pi(A,Gfe,t)},Zfe=xt(Zl,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.popper,!i.disableInteractive&&t.popperInteractive,i.arrow&&t.popperArrow,!i.open&&t.popperClose]}})(({theme:e,ownerState:t,open:i})=>Fe({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!i&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Fn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Fn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Fn.arrow}`]:Fe({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Fn.arrow}`]:Fe({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Kfe=xt("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.tooltip,i.touch&&t.touch,i.arrow&&t.tooltipArrow,t[`tooltipPlacement${Ct(i.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Fe({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ui(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Xfe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Fn.popper}[data-popper-placement*="left"] &`]:Fe({transformOrigin:"right center"},t.isRtl?Fe({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Fe({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Fn.popper}[data-popper-placement*="right"] &`]:Fe({transformOrigin:"left center"},t.isRtl?Fe({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Fe({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Fn.popper}[data-popper-placement*="top"] &`]:Fe({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Fn.popper}[data-popper-placement*="bottom"] &`]:Fe({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Qfe=xt("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ui(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Wc=!1;const Q1=new Hl;let Es={x:0,y:0};function $c(e,t){return(i,...r)=>{t&&t(i,...r),e(i,...r)}}const ud=Ie.forwardRef(function(t,i){var r,a,f,A,H,q,J,ne,se,M,te,F,O,$,Y,X,G,V,z;const D=ni({props:t,name:"MuiTooltip"}),{arrow:R=!1,children:w,components:T={},componentsProps:p={},describeChild:c=!1,disableFocusListener:d=!1,disableHoverListener:_=!1,disableInteractive:y=!1,disableTouchListener:C=!1,enterDelay:I=100,enterNextDelay:j=0,enterTouchDelay:E=700,followCursor:b=!1,id:x,leaveDelay:u=0,leaveTouchDelay:m=1500,onClose:n,onOpen:s,open:l,placement:o="bottom",PopperComponent:v,PopperProps:g={},slotProps:h={},slots:P={},title:B,TransitionComponent:U=cl,TransitionProps:S}=D,N=mt(D,Yfe),W=Ie.isValidElement(w)?w:Oe.jsx("span",{children:w}),ee=Yl(),ie=av(),[Z,K]=Ie.useState(),[Q,le]=Ie.useState(null),ae=Ie.useRef(!1),oe=y||b,ce=ha(),de=ha(),he=ha(),me=ha(),[ye,we]=ov({controlled:l,default:!1,name:"Tooltip",state:"open"});let _e=ye;if(process.env.NODE_ENV!=="production"){const{current:rt}=Ie.useRef(l!==void 0);Ie.useEffect(()=>{Z&&Z.disabled&&!rt&&B!==""&&Z.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
434
434
  `))},[B,Z,rt])}const Te=r2(x),Se=Ie.useRef(),be=Tn(()=>{Se.current!==void 0&&(document.body.style.WebkitUserSelect=Se.current,Se.current=void 0),me.clear()});Ie.useEffect(()=>be,[be]);const pe=rt=>{Q1.clear(),Wc=!0,we(!0),s&&!_e&&s(rt)},ve=Tn(rt=>{Q1.start(800+u,()=>{Wc=!1}),we(!1),n&&_e&&n(rt),ce.start(ee.transitions.duration.shortest,()=>{ae.current=!1})}),xe=rt=>{ae.current&&rt.type!=="touchstart"||(Z&&Z.removeAttribute("title"),de.clear(),he.clear(),I||Wc&&j?de.start(Wc?j:I,()=>{pe(rt)}):pe(rt))},Me=rt=>{de.clear(),he.start(u,()=>{ve(rt)})},{isFocusVisibleRef:ke,onBlur:Pe,onFocus:Le,ref:Re}=e2(),[,De]=Ie.useState(!1),je=rt=>{Pe(rt),ke.current===!1&&(De(!1),Me(rt))},He=rt=>{Z||K(rt.currentTarget),Le(rt),ke.current===!0&&(De(!0),xe(rt))},We=rt=>{ae.current=!0;const oi=W.props;oi.onTouchStart&&oi.onTouchStart(rt)},Ye=rt=>{We(rt),he.clear(),ce.clear(),be(),Se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",me.start(E,()=>{document.body.style.WebkitUserSelect=Se.current,xe(rt)})},Xe=rt=>{W.props.onTouchEnd&&W.props.onTouchEnd(rt),be(),he.start(m,()=>{ve(rt)})};Ie.useEffect(()=>{if(!_e)return;function rt(oi){(oi.key==="Escape"||oi.key==="Esc")&&ve(oi)}return document.addEventListener("keydown",rt),()=>{document.removeEventListener("keydown",rt)}},[ve,_e]);const Ge=Gi(W.ref,Re,K,i);!B&&B!==0&&(_e=!1);const qe=Ie.useRef(),Ke=rt=>{const oi=W.props;oi.onMouseMove&&oi.onMouseMove(rt),Es={x:rt.clientX,y:rt.clientY},qe.current&&qe.current.update()},dt={},Je=typeof B=="string";c?(dt.title=!_e&&Je&&!_?B:null,dt["aria-describedby"]=_e?Te:null):(dt["aria-label"]=Je?B:null,dt["aria-labelledby"]=_e&&!Je?Te:null);const nt=Fe({},dt,N,W.props,{className:bt(N.className,W.props.className),onTouchStart:We,ref:Ge},b?{onMouseMove:Ke}:{});process.env.NODE_ENV!=="production"&&(nt["data-mui-internal-clone-element"]=!0,Ie.useEffect(()=>{Z&&!Z.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
435
435
  `))},[Z]));const ut={};C||(nt.onTouchStart=Ye,nt.onTouchEnd=Xe),_||(nt.onMouseOver=$c(xe,nt.onMouseOver),nt.onMouseLeave=$c(Me,nt.onMouseLeave),oe||(ut.onMouseOver=xe,ut.onMouseLeave=Me)),d||(nt.onFocus=$c(He,nt.onFocus),nt.onBlur=$c(je,nt.onBlur),oe||(ut.onFocus=He,ut.onBlur=je)),process.env.NODE_ENV!=="production"&&W.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${W.props.title}\` or the Tooltip component.`].join(`
436
- `));const it=Ie.useMemo(()=>{var rt;let oi=[{name:"arrow",enabled:!!Q,options:{element:Q,padding:4}}];return(rt=g.popperOptions)!=null&&rt.modifiers&&(oi=oi.concat(g.popperOptions.modifiers)),Fe({},g.popperOptions,{modifiers:oi})},[Q,g]),lt=Fe({},D,{isRtl:ie,arrow:R,disableInteractive:oe,placement:o,PopperComponentProp:v,touch:ae.current}),vt=qfe(lt),Kt=(r=(a=P.popper)!=null?a:T.Popper)!=null?r:Zfe,Ve=(f=(A=(H=P.transition)!=null?H:T.Transition)!=null?A:U)!=null?f:cl,tt=(q=(J=P.tooltip)!=null?J:T.Tooltip)!=null?q:Kfe,ct=(ne=(se=P.arrow)!=null?se:T.Arrow)!=null?ne:Qfe,ht=Is(Kt,Fe({},g,(M=h.popper)!=null?M:p.popper,{className:bt(vt.popper,g==null?void 0:g.className,(te=(F=h.popper)!=null?F:p.popper)==null?void 0:te.className)}),lt),Ft=Is(Ve,Fe({},S,(O=h.transition)!=null?O:p.transition),lt),Qt=Is(tt,Fe({},($=h.tooltip)!=null?$:p.tooltip,{className:bt(vt.tooltip,(Y=(X=h.tooltip)!=null?X:p.tooltip)==null?void 0:Y.className)}),lt),Yt=Is(ct,Fe({},(G=h.arrow)!=null?G:p.arrow,{className:bt(vt.arrow,(V=(z=h.arrow)!=null?z:p.arrow)==null?void 0:V.className)}),lt);return Oe.jsxs(Ie.Fragment,{children:[Ie.cloneElement(W,nt),Oe.jsx(Kt,Fe({as:v!=null?v:Zl,placement:o,anchorEl:b?{getBoundingClientRect:()=>({top:Es.y,left:Es.x,right:Es.x,bottom:Es.y,width:0,height:0})}:Z,popperRef:qe,open:Z?_e:!1,id:Te,transition:!0},ut,ht,{popperOptions:it,children:({TransitionProps:rt})=>Oe.jsx(Ve,Fe({timeout:ee.transitions.duration.shorter},rt,Ft,{children:Oe.jsxs(tt,Fe({},Qt,{children:[B,R?Oe.jsx(ct,Fe({},Yt,{ref:le})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(ud.propTypes={arrow:fe.bool,children:Bo.isRequired,classes:fe.object,className:fe.string,components:fe.shape({Arrow:fe.elementType,Popper:fe.elementType,Tooltip:fe.elementType,Transition:fe.elementType}),componentsProps:fe.shape({arrow:fe.object,popper:fe.object,tooltip:fe.object,transition:fe.object}),describeChild:fe.bool,disableFocusListener:fe.bool,disableHoverListener:fe.bool,disableInteractive:fe.bool,disableTouchListener:fe.bool,enterDelay:fe.number,enterNextDelay:fe.number,enterTouchDelay:fe.number,followCursor:fe.bool,id:fe.string,leaveDelay:fe.number,leaveTouchDelay:fe.number,onClose:fe.func,onOpen:fe.func,open:fe.bool,placement:fe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:fe.elementType,PopperProps:fe.object,slotProps:fe.shape({arrow:fe.object,popper:fe.object,tooltip:fe.object,transition:fe.object}),slots:fe.shape({arrow:fe.elementType,popper:fe.elementType,tooltip:fe.elementType,transition:fe.elementType}),sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),title:fe.node,TransitionComponent:fe.elementType,TransitionProps:fe.object});const Jfe=e=>ti(e)?"right":"left",J1=({displayValue:e,width:t,padding:i,ellipsizedLength:r,isHtml:a})=>{const f=e.length>r;return Oe.jsx("div",{className:Ns.tableCellContent,style:{maxWidth:`${t-i}px`},children:a?Oe.jsx("div",{dangerouslySetInnerHTML:{__html:e}}):f?Oe.jsx(ud,{title:e,children:Oe.jsx("div",{children:e})}):Oe.jsx("div",{children:e})})},eme=({dataTable:e,dataOptions:t,isLoading:i,height:r,width:a,customStyles:f,themeSettings:A,onSortUpdate:H})=>{var Y,X;const q=Be.useRef(i),J=f&&f.showFieldTypeIcon!==void 0?f.showFieldTypeIcon:!0,ne=cP+(J?uP:0),se=(f==null?void 0:f.paddingVertical)||B1,M=(f==null?void 0:f.paddingHorizontal)||B1,te=Be.useMemo(()=>t.columns.map(G=>{var V,z;return Ae({isHtml:(V=G.isHtml)!=null?V:!1},((z=f==null?void 0:f.columns)==null?void 0:z.width)==="auto"?{width:(a-M*2)/t.columns.length-1/t.columns.length}:null)}),[t,a,(Y=f==null?void 0:f.columns)==null?void 0:Y.width,M]),[F,O]=Be.useState(()=>{var G;return Pp(e,i,J,te,(G=A.typography)==null?void 0:G.fontFamily)});Be.useEffect(()=>{var G;i!==q.current&&(i||O(Pp(e,i,J,te,(G=A.typography)==null?void 0:G.fontFamily)),q.current=i)},[i,e,A,te,J]);const $=Be.useRef(!1);return Be.useEffect(()=>{!$.current&&document.fonts&&($.current=!0,document.fonts.ready.then(()=>{var G;O(Pp(e,i,J,te,(G=A.typography)==null?void 0:G.fontFamily))}).catch(G=>{throw G}))},[e,i,te,(X=A.typography)==null?void 0:X.fontFamily,J]),Oe.jsx("div",{className:Ns.tableWrapper,style:{padding:`${se}px ${M}px`},children:Oe.jsx(zc.Table,{className:Ns.table,rowHeight:(f==null?void 0:f.rowHeight)||cpe,rowsCount:e.rows.length,width:a-M*2,height:r-se*2,headerHeight:(f==null?void 0:f.headerHeight)||lpe,children:e.columns.map((G,V)=>{var z;return F[V]?Oe.jsx(zc.Column,{maxWidth:dm,minWidth:dm,allowCellsRecycling:!0,width:F[V],header:Oe.jsx(zc.Cell,{className:ka(Ns.tableHeader),style:F1({isHeaderCell:!0,themeSettings:A,customStyles:f}),children:Oe.jsx(spe,{column:G,onClick:H,isSelected:!!Math.abs(G.direction),showFieldTypeIcon:J,sortIcon:(f==null?void 0:f.sortIcon)||"standard",children:J1({displayValue:(z=t.columns[V].title)!=null?z:t.columns[V].name,width:F[V],padding:ne,ellipsizedLength:hpe})})}),cell:w=>{var T=w,{rowIndex:D}=T,R=mi(T,["rowIndex"]);var p;return Oe.jsx(zc.Cell,ze(Ae({className:ka(Ns.tableCell),style:F1({colIndex:V,rowIndex:D,themeSettings:A,customStyles:f})},R),{children:J1({displayValue:e.rows[D][V].displayValue,width:F[V],padding:hP,ellipsizedLength:dpe,isHtml:(p=t.columns[V].isHtml)!=null?p:!1})}))},align:Jfe(e.columns[V].type)},`col${V}`):null})})})},tme="_component_1rw9b_1",ime={component:tme},rme=(e,t)=>{if(!e.columns.some(A=>ti(A.type)))return e;const i=e.columns,a=e.rows.map(A=>A.map((H,q)=>{const J=i[q].type,ne=Vt(t.columns[q].numberFormatConfig);if(ti(J)){const se=_a(H.displayValue,J);return{displayValue:ii(ne,se.value),compareValue:se}}else return H}));return{columns:i,rows:a}},nme=({dataTable:e,dataOptions:t,designOptions:i={},onSortUpdate:r,themeSettings:a,width:f=400,height:A=500})=>{const H=Be.useRef(null),q=Be.useRef(e),J=Be.useMemo(()=>{let se=e;const M=e.columns.find(te=>te.direction!==0);return M&&(se=Mg(e,[M])),rme(se,t)},[e,t]);Be.useLayoutEffect(()=>{q.current=e},[e]);const ne=e!==q.current;return Oe.jsx("div",{className:ime.component,ref:H,children:Oe.jsx(eme,{dataTable:J,dataOptions:t,isLoading:ne,onSortUpdate:r,height:A,width:f,customStyles:Ae({sortIcon:"caret",showFieldTypeIcon:!1},i),themeSettings:a})})},ome=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}});var ame=Object.prototype,sme=ame.hasOwnProperty;function lme(e,t){return e!=null&&sme.call(e,t)}var cme=lme,ume=cme,hme=a_;function dme(e,t){return e!=null&&hme(e,t,ume)}var pme=dme;const fme=Et(pme);function mme(e,t){for(const i of t)fme(e,i)&&console.warn(`Prop '${i}' has been deprecated. Please refer to the documentation at https://sisense.dev/guides/sdk/ for the updated prop and use that instead.`)}const gme=e=>(mme(e,["headersColor","alternatingRowsColor","alternatingColumnsColor"]),{paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:Ae(Ae({},e.headersColor?{color:{enabled:e.headersColor}}:null),e.header),rows:Ae(Ae({},e.alternatingRowsColor?{alternatingColor:{enabled:e.alternatingRowsColor}}:null),e.rows),columns:Ae(Ae({},e.alternatingColumnsColor?{alternatingColor:{enabled:e.alternatingColumnsColor}}:null),e.columns)}),vme=25,yme=10,OP=({dataSet:e,dataOptions:t,styleOptions:i={},filters:r})=>{const{rowsPerPage:a=vme,width:f,height:A}=i,{themeSettings:H}=dr(),[q,J]=Be.useState(0),{filters:ne,relations:se}=mh(r),[M,te]=Be.useState(1),F=Be.useRef(null),O=Be.useMemo(()=>ST(t),[t]),$=Be.useMemo(()=>vT(O.columns.filter(kn)),[O]),[Y,X]=Be.useState(O),[G,V]=Be.useState(e),[z,D]=fue({dataSet:G,dataOptions:Y,filters:ne,filterRelations:se,count:a*yme,offset:q}),R=bue({data:z,innerDataOptions:D,dataColumnNamesMapping:$,needToAggregate:!va(G)});Be.useEffect(()=>{X(O),V(e),te(1),J(0)},[e,O]);const w=Be.useCallback(p=>{if(!z)return;Math.floor(z.rows.length/a)===p&&J(z.rows.length),te(p)},[z,a]),T=Be.useCallback(p=>{te(1),J(0),Y&&X(vue(Y,p))},[Y]);return D?Oe.jsx(Qa,{defaultSize:Vg("table"),size:{width:f,height:A},children:p=>{if(!R)return Oe.jsx(Gg,{themeSettings:H});if(NX(R))return Oe.jsx(dT,{iconType:"table"});const c={columns:R.columns,rows:R.rows.slice((M-1)*a,M*a)},d=Math.ceil(R.rows.length/a),_=d>1?32:0;return Oe.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:H.chart.backgroundColor},"aria-label":"table-root",children:[Oe.jsx(nme,{dataTable:c,dataOptions:D,designOptions:gme(i),themeSettings:H,width:p.width,height:p.height-_,onSortUpdate:T}),d>1&&Oe.jsx(c2,{ref:F,page:M,count:d,onChange:(y,C)=>w(C),sx:ome(H)})]})}}):null},LP=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},Ov=jo({componentName:"Chart",shouldSkipSisenseContextWaiting:LP,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if(bme(e))return Oe.jsx(OP,Ae({},e));if(xme(e))return Oe.jsx(Rae,Ae({},e));throw new di("errors.chartInvalidProps")});function bme(e){return e.chartType==="table"&&"columns"in e.dataOptions}function xme(e){return e.chartType!=="table"}const DP="sdkHookInit",wme=(e,t,i,r)=>{if(!i)return;Th(DP,{packageName:t,packageVersion:"1.15.0",hookName:e},i.httpClient).finally(r)};function _me(e){const{app:t,tracking:i}=Pi(),r=Be.useRef(!1);Be.useEffect(()=>{if(t!=null&&t.httpClient&&!r.current){const a={packageName:i.packageName,packageVersion:"1.15.0",hookName:e};Th(DP,a,t.httpClient,!i.enabled).finally(()=>r.current=!0)}},[t,i,e])}const Cme=e=>t=>(...i)=>(_me(e),t(...i));function Sme(e){return Mme(e.dataSet)}function Mme(e){return!!e&&typeof e!="string"&&"rows"in e&&"columns"in e}const RP=jo({componentName:"Table",shouldSkipSisenseContextWaiting:Sme})(e=>Oe.jsx(OP,Ae({},e))),Tme=25,Pme=10;function kme(e){return ri("MuiDivider",e)}const ew=Zt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Eme=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ame=e=>{const{absolute:t,children:i,classes:r,flexItem:a,light:f,orientation:A,textAlign:H,variant:q}=e;return pi({root:["root",t&&"absolute",q,f&&"light",A==="vertical"&&"vertical",a&&"flexItem",i&&"withChildren",i&&A==="vertical"&&"withChildrenVertical",H==="right"&&A!=="vertical"&&"textAlignRight",H==="left"&&A!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",A==="vertical"&&"wrapperVertical"]},kme,r)},Ome=xt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.absolute&&t.absolute,t[i.variant],i.light&&t.light,i.orientation==="vertical"&&t.vertical,i.flexItem&&t.flexItem,i.children&&t.withChildren,i.children&&i.orientation==="vertical"&&t.withChildrenVertical,i.textAlign==="right"&&i.orientation!=="vertical"&&t.textAlignRight,i.textAlign==="left"&&i.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Fe({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ui(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Fe({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Fe({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>Fe({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>Fe({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Lme=xt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.wrapper,i.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Fe({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Da=Ie.forwardRef(function(t,i){const r=ni({props:t,name:"MuiDivider"}),{absolute:a=!1,children:f,className:A,component:H=f?"div":"hr",flexItem:q=!1,light:J=!1,orientation:ne="horizontal",role:se=H!=="hr"?"separator":void 0,textAlign:M="center",variant:te="fullWidth"}=r,F=mt(r,Eme),O=Fe({},r,{absolute:a,component:H,flexItem:q,light:J,orientation:ne,role:se,textAlign:M,variant:te}),$=Ame(O);return Oe.jsx(Ome,Fe({as:H,className:bt($.root,A),role:se,ref:i,ownerState:O},F,{children:f?Oe.jsx(Lme,{className:$.wrapper,ownerState:O,children:f}):null}))});Da.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Da.propTypes={absolute:fe.bool,children:fe.node,classes:fe.object,className:fe.string,component:fe.elementType,flexItem:fe.bool,light:fe.bool,orientation:fe.oneOf(["horizontal","vertical"]),role:fe.string,sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),textAlign:fe.oneOf(["center","left","right"]),variant:fe.oneOfType([fe.oneOf(["fullWidth","inset","middle"]),fe.string])});function Dme(e){return ri("MuiListSubheader",e)}Zt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Rme=["className","color","component","disableGutters","disableSticky","inset"],Nme=e=>{const{classes:t,color:i,disableGutters:r,inset:a,disableSticky:f}=e,A={root:["root",i!=="default"&&`color${Ct(i)}`,!r&&"gutters",a&&"inset",!f&&"sticky"]};return pi(A,Dme,t)},Ime=xt("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.color!=="default"&&t[`color${Ct(i.color)}`],!i.disableGutters&&t.gutters,i.inset&&t.inset,!i.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>Fe({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Lv=Ie.forwardRef(function(t,i){const r=ni({props:t,name:"MuiListSubheader"}),{className:a,color:f="default",component:A="li",disableGutters:H=!1,disableSticky:q=!1,inset:J=!1}=r,ne=mt(r,Rme),se=Fe({},r,{color:f,component:A,disableGutters:H,disableSticky:q,inset:J}),M=Nme(se);return Oe.jsx(Ime,Fe({as:A,className:bt(M.root,a),ref:i,ownerState:se},ne))});Lv.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Lv.propTypes={children:fe.node,classes:fe.object,className:fe.string,color:fe.oneOf(["default","inherit","primary"]),component:fe.elementType,disableGutters:fe.bool,disableSticky:fe.bool,inset:fe.bool,sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object])});const $u=Ie.createContext({});process.env.NODE_ENV!=="production"&&($u.displayName="ListContext");function jme(e){return ri("MuiList",e)}Zt("MuiList",["root","padding","dense","subheader"]);const Bme=["children","className","component","dense","disablePadding","subheader"],zme=e=>{const{classes:t,disablePadding:i,dense:r,subheader:a}=e;return pi({root:["root",!i&&"padding",r&&"dense",a&&"subheader"]},jme,t)},Fme=xt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disablePadding&&t.padding,i.dense&&t.dense,i.subheader&&t.subheader]}})(({ownerState:e})=>Fe({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),NP=Ie.forwardRef(function(t,i){const r=ni({props:t,name:"MuiList"}),{children:a,className:f,component:A="ul",dense:H=!1,disablePadding:q=!1,subheader:J}=r,ne=mt(r,Bme),se=Ie.useMemo(()=>({dense:H}),[H]),M=Fe({},r,{component:A,dense:H,disablePadding:q}),te=zme(M);return Oe.jsx($u.Provider,{value:se,children:Oe.jsxs(Fme,Fe({as:A,className:bt(te.root,f),ref:i,ownerState:M},ne,{children:[J,a]}))})});process.env.NODE_ENV!=="production"&&(NP.propTypes={children:fe.node,classes:fe.object,className:fe.string,component:fe.elementType,dense:fe.bool,disablePadding:fe.bool,subheader:fe.node,sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object])});const Wme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ep(e,t,i){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:i?null:e.firstChild}function tw(e,t,i){return e===t?i?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:i?null:e.lastChild}function IP(e,t){if(t===void 0)return!0;let i=e.innerText;return i===void 0&&(i=e.textContent),i=i.trim().toLowerCase(),i.length===0?!1:t.repeating?i[0]===t.keys[0]:i.indexOf(t.keys.join(""))===0}function As(e,t,i,r,a,f){let A=!1,H=a(e,t,t?i:!1);for(;H;){if(H===e.firstChild){if(A)return!1;A=!0}const q=r?!1:H.disabled||H.getAttribute("aria-disabled")==="true";if(!H.hasAttribute("tabindex")||!IP(H,f)||q)H=a(e,H,i);else return H.focus(),!0}return!1}const Dv=Ie.forwardRef(function(t,i){const{actions:r,autoFocus:a=!1,autoFocusItem:f=!1,children:A,className:H,disabledItemsFocusable:q=!1,disableListWrap:J=!1,onKeyDown:ne,variant:se="selectedMenu"}=t,M=mt(t,Wme),te=Ie.useRef(null),F=Ie.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Eo(()=>{a&&te.current.focus()},[a]),Ie.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(G,{direction:V})=>{const z=!te.current.style.width;if(G.clientHeight<te.current.clientHeight&&z){const D=`${n2(Vi(G))}px`;te.current.style[V==="rtl"?"paddingLeft":"paddingRight"]=D,te.current.style.width=`calc(100% + ${D})`}return te.current}}),[]);const O=G=>{const V=te.current,z=G.key,D=Vi(V).activeElement;if(z==="ArrowDown")G.preventDefault(),As(V,D,J,q,Ep);else if(z==="ArrowUp")G.preventDefault(),As(V,D,J,q,tw);else if(z==="Home")G.preventDefault(),As(V,null,J,q,Ep);else if(z==="End")G.preventDefault(),As(V,null,J,q,tw);else if(z.length===1){const R=F.current,w=z.toLowerCase(),T=performance.now();R.keys.length>0&&(T-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&w!==R.keys[0]&&(R.repeating=!1)),R.lastTime=T,R.keys.push(w);const p=D&&!R.repeating&&IP(D,R);R.previousKeyMatched&&(p||As(V,D,!1,q,Ep,R))?G.preventDefault():R.previousKeyMatched=!1}ne&&ne(G)},$=Gi(te,i);let Y=-1;Ie.Children.forEach(A,(G,V)=>{if(!Ie.isValidElement(G)){Y===V&&(Y+=1,Y>=A.length&&(Y=-1));return}process.env.NODE_ENV!=="production"&&sl.isFragment(G)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
436
+ `));const it=Ie.useMemo(()=>{var rt;let oi=[{name:"arrow",enabled:!!Q,options:{element:Q,padding:4}}];return(rt=g.popperOptions)!=null&&rt.modifiers&&(oi=oi.concat(g.popperOptions.modifiers)),Fe({},g.popperOptions,{modifiers:oi})},[Q,g]),lt=Fe({},D,{isRtl:ie,arrow:R,disableInteractive:oe,placement:o,PopperComponentProp:v,touch:ae.current}),vt=qfe(lt),Kt=(r=(a=P.popper)!=null?a:T.Popper)!=null?r:Zfe,Ve=(f=(A=(H=P.transition)!=null?H:T.Transition)!=null?A:U)!=null?f:cl,tt=(q=(J=P.tooltip)!=null?J:T.Tooltip)!=null?q:Kfe,ct=(ne=(se=P.arrow)!=null?se:T.Arrow)!=null?ne:Qfe,ht=Is(Kt,Fe({},g,(M=h.popper)!=null?M:p.popper,{className:bt(vt.popper,g==null?void 0:g.className,(te=(F=h.popper)!=null?F:p.popper)==null?void 0:te.className)}),lt),Ft=Is(Ve,Fe({},S,(O=h.transition)!=null?O:p.transition),lt),Qt=Is(tt,Fe({},($=h.tooltip)!=null?$:p.tooltip,{className:bt(vt.tooltip,(Y=(X=h.tooltip)!=null?X:p.tooltip)==null?void 0:Y.className)}),lt),Yt=Is(ct,Fe({},(G=h.arrow)!=null?G:p.arrow,{className:bt(vt.arrow,(V=(z=h.arrow)!=null?z:p.arrow)==null?void 0:V.className)}),lt);return Oe.jsxs(Ie.Fragment,{children:[Ie.cloneElement(W,nt),Oe.jsx(Kt,Fe({as:v!=null?v:Zl,placement:o,anchorEl:b?{getBoundingClientRect:()=>({top:Es.y,left:Es.x,right:Es.x,bottom:Es.y,width:0,height:0})}:Z,popperRef:qe,open:Z?_e:!1,id:Te,transition:!0},ut,ht,{popperOptions:it,children:({TransitionProps:rt})=>Oe.jsx(Ve,Fe({timeout:ee.transitions.duration.shorter},rt,Ft,{children:Oe.jsxs(tt,Fe({},Qt,{children:[B,R?Oe.jsx(ct,Fe({},Yt,{ref:le})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(ud.propTypes={arrow:fe.bool,children:Bo.isRequired,classes:fe.object,className:fe.string,components:fe.shape({Arrow:fe.elementType,Popper:fe.elementType,Tooltip:fe.elementType,Transition:fe.elementType}),componentsProps:fe.shape({arrow:fe.object,popper:fe.object,tooltip:fe.object,transition:fe.object}),describeChild:fe.bool,disableFocusListener:fe.bool,disableHoverListener:fe.bool,disableInteractive:fe.bool,disableTouchListener:fe.bool,enterDelay:fe.number,enterNextDelay:fe.number,enterTouchDelay:fe.number,followCursor:fe.bool,id:fe.string,leaveDelay:fe.number,leaveTouchDelay:fe.number,onClose:fe.func,onOpen:fe.func,open:fe.bool,placement:fe.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:fe.elementType,PopperProps:fe.object,slotProps:fe.shape({arrow:fe.object,popper:fe.object,tooltip:fe.object,transition:fe.object}),slots:fe.shape({arrow:fe.elementType,popper:fe.elementType,tooltip:fe.elementType,transition:fe.elementType}),sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),title:fe.node,TransitionComponent:fe.elementType,TransitionProps:fe.object});const Jfe=e=>ti(e)?"right":"left",J1=({displayValue:e,width:t,padding:i,ellipsizedLength:r,isHtml:a})=>{const f=e.length>r;return Oe.jsx("div",{className:Ns.tableCellContent,style:{maxWidth:`${t-i}px`},children:a?Oe.jsx("div",{dangerouslySetInnerHTML:{__html:e}}):f?Oe.jsx(ud,{title:e,children:Oe.jsx("div",{children:e})}):Oe.jsx("div",{children:e})})},eme=({dataTable:e,dataOptions:t,isLoading:i,height:r,width:a,customStyles:f,themeSettings:A,onSortUpdate:H})=>{var Y,X;const q=Be.useRef(i),J=f&&f.showFieldTypeIcon!==void 0?f.showFieldTypeIcon:!0,ne=cP+(J?uP:0),se=(f==null?void 0:f.paddingVertical)||B1,M=(f==null?void 0:f.paddingHorizontal)||B1,te=Be.useMemo(()=>t.columns.map(G=>{var V,z;return Ae({isHtml:(V=G.isHtml)!=null?V:!1},((z=f==null?void 0:f.columns)==null?void 0:z.width)==="auto"?{width:(a-M*2)/t.columns.length-1/t.columns.length}:null)}),[t,a,(Y=f==null?void 0:f.columns)==null?void 0:Y.width,M]),[F,O]=Be.useState(()=>{var G;return Pp(e,i,J,te,(G=A.typography)==null?void 0:G.fontFamily)});Be.useEffect(()=>{var G;i!==q.current&&(i||O(Pp(e,i,J,te,(G=A.typography)==null?void 0:G.fontFamily)),q.current=i)},[i,e,A,te,J]);const $=Be.useRef(!1);return Be.useEffect(()=>{!$.current&&document.fonts&&($.current=!0,document.fonts.ready.then(()=>{var G;O(Pp(e,i,J,te,(G=A.typography)==null?void 0:G.fontFamily))}).catch(G=>{throw G}))},[e,i,te,(X=A.typography)==null?void 0:X.fontFamily,J]),Oe.jsx("div",{className:Ns.tableWrapper,style:{padding:`${se}px ${M}px`},children:Oe.jsx(zc.Table,{className:Ns.table,rowHeight:(f==null?void 0:f.rowHeight)||cpe,rowsCount:e.rows.length,width:a-M*2,height:r-se*2,headerHeight:(f==null?void 0:f.headerHeight)||lpe,children:e.columns.map((G,V)=>{var z;return F[V]?Oe.jsx(zc.Column,{maxWidth:dm,minWidth:dm,allowCellsRecycling:!0,width:F[V],header:Oe.jsx(zc.Cell,{className:ka(Ns.tableHeader),style:F1({isHeaderCell:!0,themeSettings:A,customStyles:f}),children:Oe.jsx(spe,{column:G,onClick:H,isSelected:!!Math.abs(G.direction),showFieldTypeIcon:J,sortIcon:(f==null?void 0:f.sortIcon)||"standard",children:J1({displayValue:(z=t.columns[V].title)!=null?z:t.columns[V].name,width:F[V],padding:ne,ellipsizedLength:hpe})})}),cell:w=>{var T=w,{rowIndex:D}=T,R=mi(T,["rowIndex"]);var p;return Oe.jsx(zc.Cell,ze(Ae({className:ka(Ns.tableCell),style:F1({colIndex:V,rowIndex:D,themeSettings:A,customStyles:f})},R),{children:J1({displayValue:e.rows[D][V].displayValue,width:F[V],padding:hP,ellipsizedLength:dpe,isHtml:(p=t.columns[V].isHtml)!=null?p:!1})}))},align:Jfe(e.columns[V].type)},`col${V}`):null})})})},tme="_component_1rw9b_1",ime={component:tme},rme=(e,t)=>{if(!e.columns.some(A=>ti(A.type)))return e;const i=e.columns,a=e.rows.map(A=>A.map((H,q)=>{const J=i[q].type,ne=Vt(t.columns[q].numberFormatConfig);if(ti(J)){const se=_a(H.displayValue,J);return{displayValue:ii(ne,se.value),compareValue:se}}else return H}));return{columns:i,rows:a}},nme=({dataTable:e,dataOptions:t,designOptions:i={},onSortUpdate:r,themeSettings:a,width:f=400,height:A=500})=>{const H=Be.useRef(null),q=Be.useRef(e),J=Be.useMemo(()=>{let se=e;const M=e.columns.find(te=>te.direction!==0);return M&&(se=Mg(e,[M])),rme(se,t)},[e,t]);Be.useLayoutEffect(()=>{q.current=e},[e]);const ne=e!==q.current;return Oe.jsx("div",{className:ime.component,ref:H,children:Oe.jsx(eme,{dataTable:J,dataOptions:t,isLoading:ne,onSortUpdate:r,height:A,width:f,customStyles:Ae({sortIcon:"caret",showFieldTypeIcon:!1},i),themeSettings:a})})},ome=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}});var ame=Object.prototype,sme=ame.hasOwnProperty;function lme(e,t){return e!=null&&sme.call(e,t)}var cme=lme,ume=cme,hme=a_;function dme(e,t){return e!=null&&hme(e,t,ume)}var pme=dme;const fme=Et(pme);function mme(e,t){for(const i of t)fme(e,i)&&console.warn(`Prop '${i}' has been deprecated. Please refer to the documentation at https://sisense.dev/guides/sdk/ for the updated prop and use that instead.`)}const gme=e=>(mme(e,["headersColor","alternatingRowsColor","alternatingColumnsColor"]),{paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:Ae(Ae({},e.headersColor?{color:{enabled:e.headersColor}}:null),e.header),rows:Ae(Ae({},e.alternatingRowsColor?{alternatingColor:{enabled:e.alternatingRowsColor}}:null),e.rows),columns:Ae(Ae({},e.alternatingColumnsColor?{alternatingColor:{enabled:e.alternatingColumnsColor}}:null),e.columns)}),vme=25,yme=10,OP=({dataSet:e,dataOptions:t,styleOptions:i={},filters:r})=>{const{rowsPerPage:a=vme,width:f,height:A}=i,{themeSettings:H}=dr(),[q,J]=Be.useState(0),{filters:ne,relations:se}=mh(r),[M,te]=Be.useState(1),F=Be.useRef(null),O=Be.useMemo(()=>ST(t),[t]),$=Be.useMemo(()=>vT(O.columns.filter(kn)),[O]),[Y,X]=Be.useState(O),[G,V]=Be.useState(e),[z,D]=fue({dataSet:G,dataOptions:Y,filters:ne,filterRelations:se,count:a*yme,offset:q}),R=bue({data:z,innerDataOptions:D,dataColumnNamesMapping:$,needToAggregate:!va(G)});Be.useEffect(()=>{X(O),V(e),te(1),J(0)},[e,O]);const w=Be.useCallback(p=>{if(!z)return;Math.floor(z.rows.length/a)===p&&J(z.rows.length),te(p)},[z,a]),T=Be.useCallback(p=>{te(1),J(0),Y&&X(vue(Y,p))},[Y]);return D?Oe.jsx(Qa,{defaultSize:Vg("table"),size:{width:f,height:A},children:p=>{if(!R)return Oe.jsx(Gg,{themeSettings:H});if(NX(R))return Oe.jsx(dT,{iconType:"table"});const c={columns:R.columns,rows:R.rows.slice((M-1)*a,M*a)},d=Math.ceil(R.rows.length/a),_=d>1?32:0;return Oe.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:H.chart.backgroundColor},"aria-label":"table-root",children:[Oe.jsx(nme,{dataTable:c,dataOptions:D,designOptions:gme(i),themeSettings:H,width:p.width,height:p.height-_,onSortUpdate:T}),d>1&&Oe.jsx(c2,{ref:F,page:M,count:d,onChange:(y,C)=>w(C),sx:ome(H)})]})}}):null},LP=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},Ov=jo({componentName:"Chart",shouldSkipSisenseContextWaiting:LP,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if(bme(e))return Oe.jsx(OP,Ae({},e));if(xme(e))return Oe.jsx(Rae,Ae({},e));throw new di("errors.chartInvalidProps")});function bme(e){return e.chartType==="table"&&"columns"in e.dataOptions}function xme(e){return e.chartType!=="table"}const DP="sdkHookInit",wme=(e,t,i,r)=>{if(!i)return;Th(DP,{packageName:t,packageVersion:"1.15.1",hookName:e},i.httpClient).finally(r)};function _me(e){const{app:t,tracking:i}=Pi(),r=Be.useRef(!1);Be.useEffect(()=>{if(t!=null&&t.httpClient&&!r.current){const a={packageName:i.packageName,packageVersion:"1.15.1",hookName:e};Th(DP,a,t.httpClient,!i.enabled).finally(()=>r.current=!0)}},[t,i,e])}const Cme=e=>t=>(...i)=>(_me(e),t(...i));function Sme(e){return Mme(e.dataSet)}function Mme(e){return!!e&&typeof e!="string"&&"rows"in e&&"columns"in e}const RP=jo({componentName:"Table",shouldSkipSisenseContextWaiting:Sme})(e=>Oe.jsx(OP,Ae({},e))),Tme=25,Pme=10;function kme(e){return ri("MuiDivider",e)}const ew=Zt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Eme=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ame=e=>{const{absolute:t,children:i,classes:r,flexItem:a,light:f,orientation:A,textAlign:H,variant:q}=e;return pi({root:["root",t&&"absolute",q,f&&"light",A==="vertical"&&"vertical",a&&"flexItem",i&&"withChildren",i&&A==="vertical"&&"withChildrenVertical",H==="right"&&A!=="vertical"&&"textAlignRight",H==="left"&&A!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",A==="vertical"&&"wrapperVertical"]},kme,r)},Ome=xt("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.absolute&&t.absolute,t[i.variant],i.light&&t.light,i.orientation==="vertical"&&t.vertical,i.flexItem&&t.flexItem,i.children&&t.withChildren,i.children&&i.orientation==="vertical"&&t.withChildrenVertical,i.textAlign==="right"&&i.orientation!=="vertical"&&t.textAlignRight,i.textAlign==="left"&&i.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Fe({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ui(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Fe({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Fe({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>Fe({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>Fe({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Lme=xt("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.wrapper,i.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Fe({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Da=Ie.forwardRef(function(t,i){const r=ni({props:t,name:"MuiDivider"}),{absolute:a=!1,children:f,className:A,component:H=f?"div":"hr",flexItem:q=!1,light:J=!1,orientation:ne="horizontal",role:se=H!=="hr"?"separator":void 0,textAlign:M="center",variant:te="fullWidth"}=r,F=mt(r,Eme),O=Fe({},r,{absolute:a,component:H,flexItem:q,light:J,orientation:ne,role:se,textAlign:M,variant:te}),$=Ame(O);return Oe.jsx(Ome,Fe({as:H,className:bt($.root,A),role:se,ref:i,ownerState:O},F,{children:f?Oe.jsx(Lme,{className:$.wrapper,ownerState:O,children:f}):null}))});Da.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Da.propTypes={absolute:fe.bool,children:fe.node,classes:fe.object,className:fe.string,component:fe.elementType,flexItem:fe.bool,light:fe.bool,orientation:fe.oneOf(["horizontal","vertical"]),role:fe.string,sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),textAlign:fe.oneOf(["center","left","right"]),variant:fe.oneOfType([fe.oneOf(["fullWidth","inset","middle"]),fe.string])});function Dme(e){return ri("MuiListSubheader",e)}Zt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Rme=["className","color","component","disableGutters","disableSticky","inset"],Nme=e=>{const{classes:t,color:i,disableGutters:r,inset:a,disableSticky:f}=e,A={root:["root",i!=="default"&&`color${Ct(i)}`,!r&&"gutters",a&&"inset",!f&&"sticky"]};return pi(A,Dme,t)},Ime=xt("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.color!=="default"&&t[`color${Ct(i.color)}`],!i.disableGutters&&t.gutters,i.inset&&t.inset,!i.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>Fe({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Lv=Ie.forwardRef(function(t,i){const r=ni({props:t,name:"MuiListSubheader"}),{className:a,color:f="default",component:A="li",disableGutters:H=!1,disableSticky:q=!1,inset:J=!1}=r,ne=mt(r,Rme),se=Fe({},r,{color:f,component:A,disableGutters:H,disableSticky:q,inset:J}),M=Nme(se);return Oe.jsx(Ime,Fe({as:A,className:bt(M.root,a),ref:i,ownerState:se},ne))});Lv.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Lv.propTypes={children:fe.node,classes:fe.object,className:fe.string,color:fe.oneOf(["default","inherit","primary"]),component:fe.elementType,disableGutters:fe.bool,disableSticky:fe.bool,inset:fe.bool,sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object])});const $u=Ie.createContext({});process.env.NODE_ENV!=="production"&&($u.displayName="ListContext");function jme(e){return ri("MuiList",e)}Zt("MuiList",["root","padding","dense","subheader"]);const Bme=["children","className","component","dense","disablePadding","subheader"],zme=e=>{const{classes:t,disablePadding:i,dense:r,subheader:a}=e;return pi({root:["root",!i&&"padding",r&&"dense",a&&"subheader"]},jme,t)},Fme=xt("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.disablePadding&&t.padding,i.dense&&t.dense,i.subheader&&t.subheader]}})(({ownerState:e})=>Fe({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),NP=Ie.forwardRef(function(t,i){const r=ni({props:t,name:"MuiList"}),{children:a,className:f,component:A="ul",dense:H=!1,disablePadding:q=!1,subheader:J}=r,ne=mt(r,Bme),se=Ie.useMemo(()=>({dense:H}),[H]),M=Fe({},r,{component:A,dense:H,disablePadding:q}),te=zme(M);return Oe.jsx($u.Provider,{value:se,children:Oe.jsxs(Fme,Fe({as:A,className:bt(te.root,f),ref:i,ownerState:M},ne,{children:[J,a]}))})});process.env.NODE_ENV!=="production"&&(NP.propTypes={children:fe.node,classes:fe.object,className:fe.string,component:fe.elementType,dense:fe.bool,disablePadding:fe.bool,subheader:fe.node,sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object])});const Wme=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ep(e,t,i){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:i?null:e.firstChild}function tw(e,t,i){return e===t?i?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:i?null:e.lastChild}function IP(e,t){if(t===void 0)return!0;let i=e.innerText;return i===void 0&&(i=e.textContent),i=i.trim().toLowerCase(),i.length===0?!1:t.repeating?i[0]===t.keys[0]:i.indexOf(t.keys.join(""))===0}function As(e,t,i,r,a,f){let A=!1,H=a(e,t,t?i:!1);for(;H;){if(H===e.firstChild){if(A)return!1;A=!0}const q=r?!1:H.disabled||H.getAttribute("aria-disabled")==="true";if(!H.hasAttribute("tabindex")||!IP(H,f)||q)H=a(e,H,i);else return H.focus(),!0}return!1}const Dv=Ie.forwardRef(function(t,i){const{actions:r,autoFocus:a=!1,autoFocusItem:f=!1,children:A,className:H,disabledItemsFocusable:q=!1,disableListWrap:J=!1,onKeyDown:ne,variant:se="selectedMenu"}=t,M=mt(t,Wme),te=Ie.useRef(null),F=Ie.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Eo(()=>{a&&te.current.focus()},[a]),Ie.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(G,{direction:V})=>{const z=!te.current.style.width;if(G.clientHeight<te.current.clientHeight&&z){const D=`${n2(Vi(G))}px`;te.current.style[V==="rtl"?"paddingLeft":"paddingRight"]=D,te.current.style.width=`calc(100% + ${D})`}return te.current}}),[]);const O=G=>{const V=te.current,z=G.key,D=Vi(V).activeElement;if(z==="ArrowDown")G.preventDefault(),As(V,D,J,q,Ep);else if(z==="ArrowUp")G.preventDefault(),As(V,D,J,q,tw);else if(z==="Home")G.preventDefault(),As(V,null,J,q,Ep);else if(z==="End")G.preventDefault(),As(V,null,J,q,tw);else if(z.length===1){const R=F.current,w=z.toLowerCase(),T=performance.now();R.keys.length>0&&(T-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&w!==R.keys[0]&&(R.repeating=!1)),R.lastTime=T,R.keys.push(w);const p=D&&!R.repeating&&IP(D,R);R.previousKeyMatched&&(p||As(V,D,!1,q,Ep,R))?G.preventDefault():R.previousKeyMatched=!1}ne&&ne(G)},$=Gi(te,i);let Y=-1;Ie.Children.forEach(A,(G,V)=>{if(!Ie.isValidElement(G)){Y===V&&(Y+=1,Y>=A.length&&(Y=-1));return}process.env.NODE_ENV!=="production"&&sl.isFragment(G)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
437
437
  `)),G.props.disabled||(se==="selectedMenu"&&G.props.selected||Y===-1)&&(Y=V),Y===V&&(G.props.disabled||G.props.muiSkipListHighlight||G.type.muiSkipListHighlight)&&(Y+=1,Y>=A.length&&(Y=-1))});const X=Ie.Children.map(A,(G,V)=>{if(V===Y){const z={};return f&&(z.autoFocus=!0),G.props.tabIndex===void 0&&se==="selectedMenu"&&(z.tabIndex=0),Ie.cloneElement(G,z)}return G});return Oe.jsx(NP,Fe({role:"menu",ref:$,className:H,onKeyDown:O,tabIndex:a?0:-1},M,{children:X}))});process.env.NODE_ENV!=="production"&&(Dv.propTypes={autoFocus:fe.bool,autoFocusItem:fe.bool,children:fe.node,className:fe.string,disabledItemsFocusable:fe.bool,disableListWrap:fe.bool,onKeyDown:fe.func,variant:fe.oneOf(["menu","selectedMenu"])});function $me(e){const t=Vi(e);return t.body===e?ll(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Us(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function iw(e){return parseInt(ll(e).getComputedStyle(e).paddingRight,10)||0}function Hme(e){const i=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return i||r}function rw(e,t,i,r,a){const f=[t,i,...r];[].forEach.call(e.children,A=>{const H=f.indexOf(A)===-1,q=!Hme(A);H&&q&&Us(A,a)})}function Ap(e,t){let i=-1;return e.some((r,a)=>t(r)?(i=a,!0):!1),i}function Ume(e,t){const i=[],r=e.container;if(!t.disableScrollLock){if($me(r)){const A=n2(Vi(r));i.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${iw(r)+A}px`;const H=Vi(r).querySelectorAll(".mui-fixed");[].forEach.call(H,q=>{i.push({value:q.style.paddingRight,property:"padding-right",el:q}),q.style.paddingRight=`${iw(q)+A}px`})}let f;if(r.parentNode instanceof DocumentFragment)f=Vi(r).body;else{const A=r.parentElement,H=ll(r);f=(A==null?void 0:A.nodeName)==="HTML"&&H.getComputedStyle(A).overflowY==="scroll"?A:r}i.push({value:f.style.overflow,property:"overflow",el:f},{value:f.style.overflowX,property:"overflow-x",el:f},{value:f.style.overflowY,property:"overflow-y",el:f}),f.style.overflow="hidden"}return()=>{i.forEach(({value:f,el:A,property:H})=>{f?A.style.setProperty(H,f):A.style.removeProperty(H)})}}function Vme(e){const t=[];return[].forEach.call(e.children,i=>{i.getAttribute("aria-hidden")==="true"&&t.push(i)}),t}class Gme{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,i){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Us(t.modalRef,!1);const a=Vme(i);rw(i,t.mount,t.modalRef,a,!0);const f=Ap(this.containers,A=>A.container===i);return f!==-1?(this.containers[f].modals.push(t),r):(this.containers.push({modals:[t],container:i,restore:null,hiddenSiblings:a}),r)}mount(t,i){const r=Ap(this.containers,f=>f.modals.indexOf(t)!==-1),a=this.containers[r];a.restore||(a.restore=Ume(a,i))}remove(t,i=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=Ap(this.containers,A=>A.modals.indexOf(t)!==-1),f=this.containers[a];if(f.modals.splice(f.modals.indexOf(t),1),this.modals.splice(r,1),f.modals.length===0)f.restore&&f.restore(),t.modalRef&&Us(t.modalRef,i),rw(f.container,t.mount,t.modalRef,f.hiddenSiblings,!1),this.containers.splice(a,1);else{const A=f.modals[f.modals.length-1];A.modalRef&&Us(A.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Yme(e){return typeof e=="function"?e():e}function Xme(e){return e?e.props.hasOwnProperty("in"):!1}const qme=new Gme;function Zme(e){const{container:t,disableEscapeKeyDown:i=!1,disableScrollLock:r=!1,manager:a=qme,closeAfterTransition:f=!1,onTransitionEnter:A,onTransitionExited:H,children:q,onClose:J,open:ne,rootRef:se}=e,M=Ie.useRef({}),te=Ie.useRef(null),F=Ie.useRef(null),O=Gi(F,se),[$,Y]=Ie.useState(!ne),X=Xme(q);let G=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(G=!1);const V=()=>Vi(te.current),z=()=>(M.current.modalRef=F.current,M.current.mount=te.current,M.current),D=()=>{a.mount(z(),{disableScrollLock:r}),F.current&&(F.current.scrollTop=0)},R=Tn(()=>{const I=Yme(t)||V().body;a.add(z(),I),F.current&&D()}),w=Ie.useCallback(()=>a.isTopModal(z()),[a]),T=Tn(I=>{te.current=I,I&&(ne&&w()?D():F.current&&Us(F.current,G))}),p=Ie.useCallback(()=>{a.remove(z(),G)},[G,a]);Ie.useEffect(()=>()=>{p()},[p]),Ie.useEffect(()=>{ne?R():(!X||!f)&&p()},[ne,p,X,f,R]);const c=I=>j=>{var E;(E=I.onKeyDown)==null||E.call(I,j),!(j.key!=="Escape"||j.which===229||!w())&&(i||(j.stopPropagation(),J&&J(j,"escapeKeyDown")))},d=I=>j=>{var E;(E=I.onClick)==null||E.call(I,j),j.target===j.currentTarget&&J&&J(j,"backdropClick")};return{getRootProps:(I={})=>{const j=mP(e);delete j.onTransitionEnter,delete j.onTransitionExited;const E=Fe({},j,I);return Fe({role:"presentation"},E,{onKeyDown:c(E),ref:O})},getBackdropProps:(I={})=>{const j=I;return Fe({"aria-hidden":!0},j,{onClick:d(j),open:ne})},getTransitionProps:()=>{const I=()=>{Y(!1),A&&A()},j=()=>{Y(!0),H&&H(),f&&p()};return{onEnter:w1(I,q==null?void 0:q.props.onEnter),onExited:w1(j,q==null?void 0:q.props.onExited)}},rootRef:O,portalRef:T,isTopModal:w,exited:$,hasTransition:X}}const Kme=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Qme(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function Jme(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let i=t(`[name="${e.name}"]:checked`);return i||(i=t(`[name="${e.name}"]`)),i!==e}function ege(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Jme(e))}function tge(e){const t=[],i=[];return Array.from(e.querySelectorAll(Kme)).forEach((r,a)=>{const f=Qme(r);f===-1||!ege(r)||(f===0?t.push(r):i.push({documentOrder:a,tabIndex:f,node:r}))}),i.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(t)}function ige(){return!0}function Hu(e){const{children:t,disableAutoFocus:i=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:f=tge,isEnabled:A=ige,open:H}=e,q=Ie.useRef(!1),J=Ie.useRef(null),ne=Ie.useRef(null),se=Ie.useRef(null),M=Ie.useRef(null),te=Ie.useRef(!1),F=Ie.useRef(null),O=Gi(t.ref,F),$=Ie.useRef(null);Ie.useEffect(()=>{!H||!F.current||(te.current=!i)},[i,H]),Ie.useEffect(()=>{if(!H||!F.current)return;const G=Vi(F.current);return F.current.contains(G.activeElement)||(F.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
438
438
  `)),F.current.setAttribute("tabIndex","-1")),te.current&&F.current.focus()),()=>{a||(se.current&&se.current.focus&&(q.current=!0,se.current.focus()),se.current=null)}},[H]),Ie.useEffect(()=>{if(!H||!F.current)return;const G=Vi(F.current),V=R=>{$.current=R,!(r||!A()||R.key!=="Tab")&&G.activeElement===F.current&&R.shiftKey&&(q.current=!0,ne.current&&ne.current.focus())},z=()=>{const R=F.current;if(R===null)return;if(!G.hasFocus()||!A()||q.current){q.current=!1;return}if(R.contains(G.activeElement)||r&&G.activeElement!==J.current&&G.activeElement!==ne.current)return;if(G.activeElement!==M.current)M.current=null;else if(M.current!==null)return;if(!te.current)return;let w=[];if((G.activeElement===J.current||G.activeElement===ne.current)&&(w=f(F.current)),w.length>0){var T,p;const c=!!((T=$.current)!=null&&T.shiftKey&&((p=$.current)==null?void 0:p.key)==="Tab"),d=w[0],_=w[w.length-1];typeof d!="string"&&typeof _!="string"&&(c?_.focus():d.focus())}else R.focus()};G.addEventListener("focusin",z),G.addEventListener("keydown",V,!0);const D=setInterval(()=>{G.activeElement&&G.activeElement.tagName==="BODY"&&z()},50);return()=>{clearInterval(D),G.removeEventListener("focusin",z),G.removeEventListener("keydown",V,!0)}},[i,r,a,A,H,f]);const Y=G=>{se.current===null&&(se.current=G.relatedTarget),te.current=!0,M.current=G.target;const V=t.props.onFocus;V&&V(G)},X=G=>{se.current===null&&(se.current=G.relatedTarget),te.current=!0};return Oe.jsxs(Ie.Fragment,{children:[Oe.jsx("div",{tabIndex:H?0:-1,onFocus:X,ref:J,"data-testid":"sentinelStart"}),Ie.cloneElement(t,{ref:O,onFocus:Y}),Oe.jsx("div",{tabIndex:H?0:-1,onFocus:X,ref:ne,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Hu.propTypes={children:Bo,disableAutoFocus:fe.bool,disableEnforceFocus:fe.bool,disableRestoreFocus:fe.bool,getTabbable:fe.func,isEnabled:fe.func,open:fe.bool.isRequired});process.env.NODE_ENV!=="production"&&(Hu.propTypes=cv(Hu.propTypes));const rge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],nge={entering:{opacity:1},entered:{opacity:1}},Rv=Ie.forwardRef(function(t,i){const r=Yl(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:f,appear:A=!0,children:H,easing:q,in:J,onEnter:ne,onEntered:se,onEntering:M,onExit:te,onExited:F,onExiting:O,style:$,timeout:Y=a,TransitionComponent:X=yn}=t,G=mt(t,rge),V=Ie.useRef(null),z=Gi(V,H.ref,i),D=y=>C=>{if(y){const I=V.current;C===void 0?y(I):y(I,C)}},R=D(M),w=D((y,C)=>{const I=zu({style:$,timeout:Y,easing:q},{mode:"enter"});y.style.webkitTransition=r.transitions.create("opacity",I),y.style.transition=r.transitions.create("opacity",I),ne&&ne(y,C)}),T=D(se),p=D(O),c=D(y=>{const C=zu({style:$,timeout:Y,easing:q},{mode:"exit"});y.style.webkitTransition=r.transitions.create("opacity",C),y.style.transition=r.transitions.create("opacity",C),te&&te(y)}),d=D(F),_=y=>{f&&f(V.current,y)};return Oe.jsx(X,Fe({appear:A,in:J,nodeRef:V,onEnter:w,onEntered:T,onEntering:R,onExit:c,onExited:d,onExiting:p,addEndListener:_,timeout:Y},G,{children:(y,C)=>Ie.cloneElement(H,Fe({style:Fe({opacity:0,visibility:y==="exited"&&!J?"hidden":void 0},nge[y],$,H.props.style),ref:z},C))}))});process.env.NODE_ENV!=="production"&&(Rv.propTypes={addEndListener:fe.func,appear:fe.bool,children:Bo.isRequired,easing:fe.oneOfType([fe.shape({enter:fe.string,exit:fe.string}),fe.string]),in:fe.bool,onEnter:fe.func,onEntered:fe.func,onEntering:fe.func,onExit:fe.func,onExited:fe.func,onExiting:fe.func,style:fe.object,timeout:fe.oneOfType([fe.number,fe.shape({appear:fe.number,enter:fe.number,exit:fe.number})])});function oge(e){return ri("MuiBackdrop",e)}Zt("MuiBackdrop",["root","invisible"]);const age=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],sge=e=>{const{classes:t,invisible:i}=e;return pi({root:["root",i&&"invisible"]},oge,t)},lge=xt("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,i.invisible&&t.invisible]}})(({ownerState:e})=>Fe({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),Nv=Ie.forwardRef(function(t,i){var r,a,f;const A=ni({props:t,name:"MuiBackdrop"}),{children:H,className:q,component:J="div",components:ne={},componentsProps:se={},invisible:M=!1,open:te,slotProps:F={},slots:O={},TransitionComponent:$=Rv,transitionDuration:Y}=A,X=mt(A,age),G=Fe({},A,{component:J,invisible:M}),V=sge(G),z=(r=F.root)!=null?r:se.root;return Oe.jsx($,Fe({in:te,timeout:Y},X,{children:Oe.jsx(lge,Fe({"aria-hidden":!0},z,{as:(a=(f=O.root)!=null?f:ne.Root)!=null?a:J,className:bt(V.root,q,z==null?void 0:z.className),ownerState:Fe({},G,z==null?void 0:z.ownerState),classes:V,ref:i,children:H}))}))});process.env.NODE_ENV!=="production"&&(Nv.propTypes={children:fe.node,classes:fe.object,className:fe.string,component:fe.elementType,components:fe.shape({Root:fe.elementType}),componentsProps:fe.shape({root:fe.object}),invisible:fe.bool,open:fe.bool.isRequired,slotProps:fe.shape({root:fe.object}),slots:fe.shape({root:fe.elementType}),sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),TransitionComponent:fe.elementType,transitionDuration:fe.oneOfType([fe.number,fe.shape({appear:fe.number,enter:fe.number,exit:fe.number})])});function cge(e){return ri("MuiModal",e)}Zt("MuiModal",["root","hidden","backdrop"]);const uge=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],hge=e=>{const{open:t,exited:i,classes:r}=e;return pi({root:["root",!t&&i&&"hidden"],backdrop:["backdrop"]},cge,r)},dge=xt("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,!i.open&&i.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Fe({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),pge=xt(Nv,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Iv=Ie.forwardRef(function(t,i){var r,a,f,A,H,q;const J=ni({name:"MuiModal",props:t}),{BackdropComponent:ne=pge,BackdropProps:se,className:M,closeAfterTransition:te=!1,children:F,container:O,component:$,components:Y={},componentsProps:X={},disableAutoFocus:G=!1,disableEnforceFocus:V=!1,disableEscapeKeyDown:z=!1,disablePortal:D=!1,disableRestoreFocus:R=!1,disableScrollLock:w=!1,hideBackdrop:T=!1,keepMounted:p=!1,onBackdropClick:c,open:d,slotProps:_,slots:y}=J,C=mt(J,uge),I=Fe({},J,{closeAfterTransition:te,disableAutoFocus:G,disableEnforceFocus:V,disableEscapeKeyDown:z,disablePortal:D,disableRestoreFocus:R,disableScrollLock:w,hideBackdrop:T,keepMounted:p}),{getRootProps:j,getBackdropProps:E,getTransitionProps:b,portalRef:x,isTopModal:u,exited:m,hasTransition:n}=Zme(Fe({},I,{rootRef:i})),s=Fe({},I,{exited:m}),l=hge(s),o={};if(F.props.tabIndex===void 0&&(o.tabIndex="-1"),n){const{onEnter:S,onExited:N}=b();o.onEnter=S,o.onExited=N}const v=(r=(a=y==null?void 0:y.root)!=null?a:Y.Root)!=null?r:dge,g=(f=(A=y==null?void 0:y.backdrop)!=null?A:Y.Backdrop)!=null?f:ne,h=(H=_==null?void 0:_.root)!=null?H:X.root,P=(q=_==null?void 0:_.backdrop)!=null?q:X.backdrop,B=Qn({elementType:v,externalSlotProps:h,externalForwardedProps:C,getSlotProps:j,additionalProps:{ref:i,as:$},ownerState:s,className:bt(M,h==null?void 0:h.className,l==null?void 0:l.root,!s.open&&s.exited&&(l==null?void 0:l.hidden))}),U=Qn({elementType:g,externalSlotProps:P,additionalProps:se,getSlotProps:S=>E(Fe({},S,{onClick:N=>{c&&c(N),S!=null&&S.onClick&&S.onClick(N)}})),className:bt(P==null?void 0:P.className,se==null?void 0:se.className,l==null?void 0:l.backdrop),ownerState:s});return!p&&!d&&(!n||m)?null:Oe.jsx(dl,{ref:x,container:O,disablePortal:D,children:Oe.jsxs(v,Fe({},B,{children:[!T&&ne?Oe.jsx(g,Fe({},U)):null,Oe.jsx(Hu,{disableEnforceFocus:V,disableAutoFocus:G,disableRestoreFocus:R,isEnabled:u,open:d,children:Ie.cloneElement(F,o)})]}))})});process.env.NODE_ENV!=="production"&&(Iv.propTypes={BackdropComponent:fe.elementType,BackdropProps:fe.object,children:Bo.isRequired,classes:fe.object,className:fe.string,closeAfterTransition:fe.bool,component:fe.elementType,components:fe.shape({Backdrop:fe.elementType,Root:fe.elementType}),componentsProps:fe.shape({backdrop:fe.oneOfType([fe.func,fe.object]),root:fe.oneOfType([fe.func,fe.object])}),container:fe.oneOfType([An,fe.func]),disableAutoFocus:fe.bool,disableEnforceFocus:fe.bool,disableEscapeKeyDown:fe.bool,disablePortal:fe.bool,disableRestoreFocus:fe.bool,disableScrollLock:fe.bool,hideBackdrop:fe.bool,keepMounted:fe.bool,onBackdropClick:fe.func,onClose:fe.func,onTransitionEnter:fe.func,onTransitionExited:fe.func,open:fe.bool.isRequired,slotProps:fe.shape({backdrop:fe.oneOfType([fe.func,fe.object]),root:fe.oneOfType([fe.func,fe.object])}),slots:fe.shape({backdrop:fe.elementType,root:fe.elementType}),sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object])});function fge(e){return ri("MuiPaper",e)}Zt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const mge=["className","component","elevation","square","variant"],gge=e=>{const{square:t,elevation:i,variant:r,classes:a}=e,f={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${i}`]};return pi(f,fge,a)},vge=xt("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:i}=e;return[t.root,t[i.variant],!i.square&&t.rounded,i.variant==="elevation"&&t[`elevation${i.elevation}`]]}})(({theme:e,ownerState:t})=>{var i;return Fe({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Fe({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${ui("#fff",K1(t.elevation))}, ${ui("#fff",K1(t.elevation))})`},e.vars&&{backgroundImage:(i=e.vars.overlays)==null?void 0:i[t.elevation]}))}),hd=Ie.forwardRef(function(t,i){const r=ni({props:t,name:"MuiPaper"}),{className:a,component:f="div",elevation:A=1,square:H=!1,variant:q="elevation"}=r,J=mt(r,mge),ne=Fe({},r,{component:f,elevation:A,square:H,variant:q}),se=gge(ne);return process.env.NODE_ENV!=="production"&&Yl().shadows[A]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${A}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${A}]\` is defined.`].join(`
439
439
  `)),Oe.jsx(vge,Fe({as:f,ownerState:ne,className:bt(se.root,a),ref:i},J))});process.env.NODE_ENV!=="production"&&(hd.propTypes={children:fe.node,classes:fe.object,className:fe.string,component:fe.elementType,elevation:ro(rn,e=>{const{elevation:t,variant:i}=e;return t>0&&i==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${i}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:fe.bool,sx:fe.oneOfType([fe.arrayOf(fe.oneOfType([fe.func,fe.object,fe.bool])),fe.func,fe.object]),variant:fe.oneOfType([fe.oneOf(["elevation","outlined"]),fe.string])});function yge(e){return ri("MuiPopover",e)}Zt("MuiPopover",["root","paper"]);const bge=["onEntering"],xge=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],wge=["slotProps"];function nw(e,t){let i=0;return typeof t=="number"?i=t:t==="center"?i=e.height/2:t==="bottom"&&(i=e.height),i}function ow(e,t){let i=0;return typeof t=="number"?i=t:t==="center"?i=e.width/2:t==="right"&&(i=e.width),i}function aw(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function au(e){return typeof e=="function"?e():e}const _ge=e=>{const{classes:t}=e;return pi({root:["root"],paper:["paper"]},yge,t)},Cge=xt(Iv,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),jP=xt(hd,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),dd=Ie.forwardRef(function(t,i){var r,a,f;const A=ni({props:t,name:"MuiPopover"}),{action:H,anchorEl:q,anchorOrigin:J={vertical:"top",horizontal:"left"},anchorPosition:ne,anchorReference:se="anchorEl",children:M,className:te,container:F,elevation:O=8,marginThreshold:$=16,open:Y,PaperProps:X={},slots:G,slotProps:V,transformOrigin:z={vertical:"top",horizontal:"left"},TransitionComponent:D=cl,transitionDuration:R="auto",TransitionProps:{onEntering:w}={},disableScrollLock:T=!1}=A,p=mt(A.TransitionProps,bge),c=mt(A,xge),d=(r=V==null?void 0:V.paper)!=null?r:X,_=Ie.useRef(),y=Gi(_,d.ref),C=Fe({},A,{anchorOrigin:J,anchorReference:se,elevation:O,marginThreshold:$,externalPaperSlotProps:d,transformOrigin:z,TransitionComponent:D,transitionDuration:R,TransitionProps:p}),I=_ge(C),j=Ie.useCallback(()=>{if(se==="anchorPosition")return process.env.NODE_ENV!=="production"&&(ne||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),ne;const S=au(q),N=S&&S.nodeType===1?S:Vi(_.current).body,W=N.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ee=N.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ee.top===0&&ee.left===0&&ee.right===0&&ee.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`