arize-phoenix 10.12.0__py3-none-any.whl → 10.13.1__py3-none-any.whl
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.
Potentially problematic release.
This version of arize-phoenix might be problematic. Click here for more details.
- {arize_phoenix-10.12.0.dist-info → arize_phoenix-10.13.1.dist-info}/METADATA +2 -1
- {arize_phoenix-10.12.0.dist-info → arize_phoenix-10.13.1.dist-info}/RECORD +22 -22
- phoenix/config.py +15 -0
- phoenix/server/api/queries.py +10 -0
- phoenix/server/app.py +4 -0
- phoenix/server/main.py +3 -0
- phoenix/server/static/.vite/manifest.json +36 -36
- phoenix/server/static/assets/{components-CKFZdR5A.js → components-37rV35eH.js} +256 -256
- phoenix/server/static/assets/{index-D3uXREcK.js → index-CdNW7TcY.js} +2 -2
- phoenix/server/static/assets/{pages-BEpY_9Jm.js → pages-BWWAYqfd.js} +541 -475
- phoenix/server/static/assets/{vendor-ARQZvmz5.js → vendor-BKYy4SMr.js} +1 -1
- phoenix/server/static/assets/{vendor-arizeai-Ct6kvW4e.js → vendor-arizeai-hGVPFFRq.js} +22 -22
- phoenix/server/static/assets/{vendor-codemirror-BxoXtD6f.js → vendor-codemirror-BlmFw5CA.js} +1 -1
- phoenix/server/static/assets/{vendor-recharts-Cl8AO7Np.js → vendor-recharts-Bz7zqjbW.js} +1 -1
- phoenix/server/static/assets/{vendor-shiki-BpqODMgR.js → vendor-shiki-BitvudxD.js} +1 -1
- phoenix/server/templates/index.html +24 -0
- phoenix/settings.py +3 -0
- phoenix/version.py +1 -1
- {arize_phoenix-10.12.0.dist-info → arize_phoenix-10.13.1.dist-info}/WHEEL +0 -0
- {arize_phoenix-10.12.0.dist-info → arize_phoenix-10.13.1.dist-info}/entry_points.txt +0 -0
- {arize_phoenix-10.12.0.dist-info → arize_phoenix-10.13.1.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-10.12.0.dist-info → arize_phoenix-10.13.1.dist-info}/licenses/LICENSE +0 -0
phoenix/server/static/assets/{vendor-codemirror-BxoXtD6f.js → vendor-codemirror-BlmFw5CA.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c$ as NS,d0 as Le,d1 as pg,d2 as gg,d3 as mg,d4 as qe,d5 as bi,d6 as Jl,d7 as Nn,d8 as bg,d9 as Us,da as yg,db as Sg,A as J,z as wg,dc as xg,dd as FS,de as IS,df as HS,dg as VS,dh as Ut,di as Hc,r as mi,dj as $S,dk as WS,dl as zS,dm as qS,dn as vg,dp as KS,dq as jS,dr as kg,ds as _S,dt as Cg,du as GS}from"./vendor-
|
|
1
|
+
import{c$ as NS,d0 as Le,d1 as pg,d2 as gg,d3 as mg,d4 as qe,d5 as bi,d6 as Jl,d7 as Nn,d8 as bg,d9 as Us,da as yg,db as Sg,A as J,z as wg,dc as xg,dd as FS,de as IS,df as HS,dg as VS,dh as Ut,di as Hc,r as mi,dj as $S,dk as WS,dl as zS,dm as qS,dn as vg,dp as KS,dq as jS,dr as kg,ds as _S,dt as Cg,du as GS}from"./vendor-BKYy4SMr.js";import{m as YS}from"./vendor-shiki-BitvudxD.js";var $a={},Id;function Vc(){return Id||(Id=1,function(n){var t=NS();class e{lineAt(b){if(b<0||b>this.length)throw new RangeError(`Invalid position ${b} in document of length ${this.length}`);return this.lineInner(b,!1,1,0)}line(b){if(b<1||b>this.lines)throw new RangeError(`Invalid line number ${b} in ${this.lines}-line document`);return this.lineInner(b,!0,1,0)}replace(b,w,C){[b,w]=x(this,b,w);let O=[];return this.decompose(0,b,O,2),C.length&&C.decompose(0,C.length,O,3),this.decompose(w,this.length,O,1),s.from(O,this.length-(w-b)+C.length)}append(b){return this.replace(this.length,this.length,b)}slice(b,w=this.length){[b,w]=x(this,b,w);let C=[];return this.decompose(b,w,C,0),s.from(C,w-b)}eq(b){if(b==this)return!0;if(b.length!=this.length||b.lines!=this.lines)return!1;let w=this.scanIdentical(b,1),C=this.length-this.scanIdentical(b,-1),O=new c(this),L=new c(b);for(let N=w,q=w;;){if(O.next(N),L.next(N),N=0,O.lineBreak!=L.lineBreak||O.done!=L.done||O.value!=L.value)return!1;if(q+=O.value.length,O.done||q>=C)return!0}}iter(b=1){return new c(this,b)}iterRange(b,w=this.length){return new g(this,b,w)}iterLines(b,w){let C;if(b==null)C=this.iter();else{w==null&&(w=this.lines+1);let O=this.line(b).from;C=this.iterRange(O,Math.max(O,w==this.lines+1?this.length:w<=1?0:this.line(w-1).to))}return new p(C)}toString(){return this.sliceString(0)}toJSON(){let b=[];return this.flatten(b),b}constructor(){}static of(b){if(b.length==0)throw new RangeError("A document must have at least one line");return b.length==1&&!b[0]?e.empty:b.length<=32?new i(b):s.from(i.split(b,[]))}}class i extends e{constructor(b,w=r(b)){super(),this.text=b,this.length=w}get lines(){return this.text.length}get children(){return null}lineInner(b,w,C,O){for(let L=0;;L++){let N=this.text[L],q=O+N.length;if((w?C:q)>=b)return new y(O,q,C,N);O=q+1,C++}}decompose(b,w,C,O){let L=b<=0&&w>=this.length?this:new i(h(this.text,b,w),Math.min(w,this.length)-Math.max(0,b));if(O&1){let N=C.pop(),q=l(L.text,N.text.slice(),0,L.length);if(q.length<=32)C.push(new i(q,N.length+L.length));else{let _=q.length>>1;C.push(new i(q.slice(0,_)),new i(q.slice(_)))}}else C.push(L)}replace(b,w,C){if(!(C instanceof i))return super.replace(b,w,C);[b,w]=x(this,b,w);let O=l(this.text,l(C.text,h(this.text,0,b)),w),L=this.length+C.length-(w-b);return O.length<=32?new i(O,L):s.from(i.split(O,[]),L)}sliceString(b,w=this.length,C=`
|
|
2
2
|
`){[b,w]=x(this,b,w);let O="";for(let L=0,N=0;L<=w&&N<this.text.length;N++){let q=this.text[N],_=L+q.length;L>b&&N&&(O+=C),b<_&&w>L&&(O+=q.slice(Math.max(0,b-L),w-L)),L=_+1}return O}flatten(b){for(let w of this.text)b.push(w)}scanIdentical(){return 0}static split(b,w){let C=[],O=-1;for(let L of b)C.push(L),O+=L.length+1,C.length==32&&(w.push(new i(C,O)),C=[],O=-1);return O>-1&&w.push(new i(C,O)),w}}class s extends e{constructor(b,w){super(),this.children=b,this.length=w,this.lines=0;for(let C of b)this.lines+=C.lines}lineInner(b,w,C,O){for(let L=0;;L++){let N=this.children[L],q=O+N.length,_=C+N.lines-1;if((w?_:q)>=b)return N.lineInner(b,w,C,O);O=q+1,C=_+1}}decompose(b,w,C,O){for(let L=0,N=0;N<=w&&L<this.children.length;L++){let q=this.children[L],_=N+q.length;if(b<=_&&w>=N){let Z=O&((N<=b?1:0)|(_>=w?2:0));N>=b&&_<=w&&!Z?C.push(q):q.decompose(b-N,w-N,C,Z)}N=_+1}}replace(b,w,C){if([b,w]=x(this,b,w),C.lines<this.lines)for(let O=0,L=0;O<this.children.length;O++){let N=this.children[O],q=L+N.length;if(b>=L&&w<=q){let _=N.replace(b-L,w-L,C),Z=this.lines-N.lines+_.lines;if(_.lines<Z>>4&&_.lines>Z>>6){let lt=this.children.slice();return lt[O]=_,new s(lt,this.length-(w-b)+C.length)}return super.replace(L,q,_)}L=q+1}return super.replace(b,w,C)}sliceString(b,w=this.length,C=`
|
|
3
3
|
`){[b,w]=x(this,b,w);let O="";for(let L=0,N=0;L<this.children.length&&N<=w;L++){let q=this.children[L],_=N+q.length;N>b&&L&&(O+=C),b<_&&w>N&&(O+=q.sliceString(b-N,w-N,C)),N=_+1}return O}flatten(b){for(let w of this.children)w.flatten(b)}scanIdentical(b,w){if(!(b instanceof s))return 0;let C=0,[O,L,N,q]=w>0?[0,0,this.children.length,b.children.length]:[this.children.length-1,b.children.length-1,-1,-1];for(;;O+=w,L+=w){if(O==N||L==q)return C;let _=this.children[O],Z=b.children[L];if(_!=Z)return C+_.scanIdentical(Z,w);C+=_.length+1}}static from(b,w=b.reduce((C,O)=>C+O.length+1,-1)){let C=0;for(let pt of b)C+=pt.lines;if(C<32){let pt=[];for(let It of b)It.flatten(pt);return new i(pt,w)}let O=Math.max(32,C>>5),L=O<<1,N=O>>1,q=[],_=0,Z=-1,lt=[];function ht(pt){let It;if(pt.lines>L&&pt instanceof s)for(let be of pt.children)ht(be);else pt.lines>N&&(_>N||!_)?(gt(),q.push(pt)):pt instanceof i&&_&&(It=lt[lt.length-1])instanceof i&&pt.lines+It.lines<=32?(_+=pt.lines,Z+=pt.length+1,lt[lt.length-1]=new i(It.text.concat(pt.text),It.length+1+pt.length)):(_+pt.lines>O&>(),_+=pt.lines,Z+=pt.length+1,lt.push(pt))}function gt(){_!=0&&(q.push(lt.length==1?lt[0]:s.from(lt,Z)),Z=-1,_=lt.length=0)}for(let pt of b)ht(pt);return gt(),q.length==1?q[0]:new s(q,w)}}e.empty=new i([""],0);function r(V){let b=-1;for(let w of V)b+=w.length+1;return b}function l(V,b,w=0,C=1e9){for(let O=0,L=0,N=!0;L<V.length&&O<=C;L++){let q=V[L],_=O+q.length;_>=w&&(_>C&&(q=q.slice(0,C-O)),O<w&&(q=q.slice(w-O)),N?(b[b.length-1]+=q,N=!1):b.push(q)),O=_+1}return b}function h(V,b,w){return l(V,[""],b,w)}class c{constructor(b,w=1){this.dir=w,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[b],this.offsets=[w>0?1:(b instanceof i?b.text.length:b.children.length)<<1]}nextInner(b,w){for(this.done=this.lineBreak=!1;;){let C=this.nodes.length-1,O=this.nodes[C],L=this.offsets[C],N=L>>1,q=O instanceof i?O.text.length:O.children.length;if(N==(w>0?q:0)){if(C==0)return this.done=!0,this.value="",this;w>0&&this.offsets[C-1]++,this.nodes.pop(),this.offsets.pop()}else if((L&1)==(w>0?0:1)){if(this.offsets[C]+=w,b==0)return this.lineBreak=!0,this.value=`
|
|
4
4
|
`,this;b--}else if(O instanceof i){let _=O.text[N+(w<0?-1:0)];if(this.offsets[C]+=w,_.length>Math.max(0,b))return this.value=b==0?_:w>0?_.slice(b):_.slice(0,_.length-b),this;b-=_.length}else{let _=O.children[N+(w<0?-1:0)];b>_.length?(b-=_.length,this.offsets[C]+=w):(w<0&&this.offsets[C]--,this.nodes.push(_),this.offsets.push(w>0?1:(_ instanceof i?_.text.length:_.children.length)<<1))}}}next(b=0){return b<0&&(this.nextInner(-b,-this.dir),b=this.value.length),this.nextInner(b,this.dir)}}class g{constructor(b,w,C){this.value="",this.done=!1,this.cursor=new c(b,w>C?-1:1),this.pos=w>C?b.length:0,this.from=Math.min(w,C),this.to=Math.max(w,C)}nextInner(b,w){if(w<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;b+=Math.max(0,w<0?this.pos-this.to:this.from-this.pos);let C=w<0?this.pos-this.from:this.to-this.pos;b>C&&(b=C),C-=b;let{value:O}=this.cursor.next(b);return this.pos+=(O.length+b)*w,this.value=O.length<=C?O:w<0?O.slice(O.length-C):O.slice(0,C),this.done=!this.value,this}next(b=0){return b<0?b=Math.max(b,this.from-this.pos):b>0&&(b=Math.min(b,this.to-this.pos)),this.nextInner(b,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class p{constructor(b){this.inner=b,this.afterBreak=!0,this.value="",this.done=!1}next(b=0){let{done:w,lineBreak:C,value:O}=this.inner.next(b);return w&&this.afterBreak?(this.value="",this.afterBreak=!1):w?(this.done=!0,this.value=""):C?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=O,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this.iter()},c.prototype[Symbol.iterator]=g.prototype[Symbol.iterator]=p.prototype[Symbol.iterator]=function(){return this});class y{constructor(b,w,C,O){this.from=b,this.to=w,this.number=C,this.text=O}get length(){return this.to-this.from}}function x(V,b,w){return b=Math.max(0,Math.min(V.length,b)),[b,Math.max(b,Math.min(V.length,w))]}function T(V,b,w=!0,C=!0){return t.findClusterBreak(V,b,w,C)}function P(V){return V>=56320&&V<57344}function I(V){return V>=55296&&V<56320}function z(V,b){let w=V.charCodeAt(b);if(!I(w)||b+1==V.length)return w;let C=V.charCodeAt(b+1);return P(C)?(w-55296<<10)+(C-56320)+65536:w}function W(V){return V<=65535?String.fromCharCode(V):(V-=65536,String.fromCharCode((V>>10)+55296,(V&1023)+56320))}function U(V){return V<65536?1:2}const ot=/\r\n?|\n/;n.MapMode=void 0,function(V){V[V.Simple=0]="Simple",V[V.TrackDel=1]="TrackDel",V[V.TrackBefore=2]="TrackBefore",V[V.TrackAfter=3]="TrackAfter"}(n.MapMode||(n.MapMode={}));class Q{constructor(b){this.sections=b}get length(){let b=0;for(let w=0;w<this.sections.length;w+=2)b+=this.sections[w];return b}get newLength(){let b=0;for(let w=0;w<this.sections.length;w+=2){let C=this.sections[w+1];b+=C<0?this.sections[w]:C}return b}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(b){for(let w=0,C=0,O=0;w<this.sections.length;){let L=this.sections[w++],N=this.sections[w++];N<0?(b(C,O,L),O+=L):O+=N,C+=L}}iterChangedRanges(b,w=!1){Pt(this,b,w)}get invertedDesc(){let b=[];for(let w=0;w<this.sections.length;){let C=this.sections[w++],O=this.sections[w++];O<0?b.push(C,O):b.push(O,C)}return new Q(b)}composeDesc(b){return this.empty?b:b.empty?this:le(this,b)}mapDesc(b,w=!1){return b.empty?this:Tt(this,b,w)}mapPos(b,w=-1,C=n.MapMode.Simple){let O=0,L=0;for(let N=0;N<this.sections.length;){let q=this.sections[N++],_=this.sections[N++],Z=O+q;if(_<0){if(Z>b)return L+(b-O);L+=q}else{if(C!=n.MapMode.Simple&&Z>=b&&(C==n.MapMode.TrackDel&&O<b&&Z>b||C==n.MapMode.TrackBefore&&O<b||C==n.MapMode.TrackAfter&&Z>b))return null;if(Z>b||Z==b&&w<0&&!q)return b==O||w<0?L:L+_;L+=_}O=Z}if(b>O)throw new RangeError(`Position ${b} is out of range for changeset of length ${O}`);return L}touchesRange(b,w=b){for(let C=0,O=0;C<this.sections.length&&O<=w;){let L=this.sections[C++],N=this.sections[C++],q=O+L;if(N>=0&&O<=w&&q>=b)return O<b&&q>w?"cover":!0;O=q}return!1}toString(){let b="";for(let w=0;w<this.sections.length;){let C=this.sections[w++],O=this.sections[w++];b+=(b?" ":"")+C+(O>=0?":"+O:"")}return b}toJSON(){return this.sections}static fromJSON(b){if(!Array.isArray(b)||b.length%2||b.some(w=>typeof w!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Q(b)}static create(b){return new Q(b)}}class st extends Q{constructor(b,w){super(b),this.inserted=w}apply(b){if(this.length!=b.length)throw new RangeError("Applying change set to a document with the wrong length");return Pt(this,(w,C,O,L,N)=>b=b.replace(O,O+(C-w),N),!1),b}mapDesc(b,w=!1){return Tt(this,b,w,!0)}invert(b){let w=this.sections.slice(),C=[];for(let O=0,L=0;O<w.length;O+=2){let N=w[O],q=w[O+1];if(q>=0){w[O]=q,w[O+1]=N;let _=O>>1;for(;C.length<_;)C.push(e.empty);C.push(N?b.slice(L,L+N):e.empty)}L+=N}return new st(w,C)}compose(b){return this.empty?b:b.empty?this:le(this,b,!0)}map(b,w=!1){return b.empty?this:Tt(this,b,w,!0)}iterChanges(b,w=!1){Pt(this,b,w)}get desc(){return Q.create(this.sections)}filter(b){let w=[],C=[],O=[],L=new ae(this);t:for(let N=0,q=0;;){let _=N==b.length?1e9:b[N++];for(;q<_||q==_&&L.len==0;){if(L.done)break t;let lt=Math.min(L.len,_-q);at(O,lt,-1);let ht=L.ins==-1?-1:L.off==0?L.ins:0;at(w,lt,ht),ht>0&&wt(C,w,L.text),L.forward(lt),q+=lt}let Z=b[N++];for(;q<Z;){if(L.done)break t;let lt=Math.min(L.len,Z-q);at(w,lt,-1),at(O,lt,L.ins==-1?-1:L.off==0?L.ins:0),L.forward(lt),q+=lt}}return{changes:new st(w,C),filtered:Q.create(O)}}toJSON(){let b=[];for(let w=0;w<this.sections.length;w+=2){let C=this.sections[w],O=this.sections[w+1];O<0?b.push(C):O==0?b.push([C]):b.push([C].concat(this.inserted[w>>1].toJSON()))}return b}static of(b,w,C){let O=[],L=[],N=0,q=null;function _(lt=!1){if(!lt&&!O.length)return;N<w&&at(O,w-N,-1);let ht=new st(O,L);q=q?q.compose(ht.map(q)):ht,O=[],L=[],N=0}function Z(lt){if(Array.isArray(lt))for(let ht of lt)Z(ht);else if(lt instanceof st){if(lt.length!=w)throw new RangeError(`Mismatched change set length (got ${lt.length}, expected ${w})`);_(),q=q?q.compose(lt.map(q)):lt}else{let{from:ht,to:gt=ht,insert:pt}=lt;if(ht>gt||ht<0||gt>w)throw new RangeError(`Invalid change range ${ht} to ${gt} (in doc of length ${w})`);let It=pt?typeof pt=="string"?e.of(pt.split(C||ot)):pt:e.empty,be=It.length;if(ht==gt&&be==0)return;ht<N&&_(),ht>N&&at(O,ht-N,-1),at(O,gt-ht,be),wt(L,O,It),N=gt}}return Z(b),_(!q),q}static empty(b){return new st(b?[b,-1]:[],[])}static fromJSON(b){if(!Array.isArray(b))throw new RangeError("Invalid JSON representation of ChangeSet");let w=[],C=[];for(let O=0;O<b.length;O++){let L=b[O];if(typeof L=="number")w.push(L,-1);else{if(!Array.isArray(L)||typeof L[0]!="number"||L.some((N,q)=>q&&typeof N!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(L.length==1)w.push(L[0],0);else{for(;C.length<O;)C.push(e.empty);C[O]=e.of(L.slice(1)),w.push(L[0],C[O].length)}}}return new st(w,C)}static createSet(b,w){return new st(b,w)}}function at(V,b,w,C=!1){if(b==0&&w<=0)return;let O=V.length-2;O>=0&&w<=0&&w==V[O+1]?V[O]+=b:O>=0&&b==0&&V[O]==0?V[O+1]+=w:C?(V[O]+=b,V[O+1]+=w):V.push(b,w)}function wt(V,b,w){if(w.length==0)return;let C=b.length-2>>1;if(C<V.length)V[V.length-1]=V[V.length-1].append(w);else{for(;V.length<C;)V.push(e.empty);V.push(w)}}function Pt(V,b,w){let C=V.inserted;for(let O=0,L=0,N=0;N<V.sections.length;){let q=V.sections[N++],_=V.sections[N++];if(_<0)O+=q,L+=q;else{let Z=O,lt=L,ht=e.empty;for(;Z+=q,lt+=_,_&&C&&(ht=ht.append(C[N-2>>1])),!(w||N==V.sections.length||V.sections[N+1]<0);)q=V.sections[N++],_=V.sections[N++];b(O,Z,L,lt,ht),O=Z,L=lt}}}function Tt(V,b,w,C=!1){let O=[],L=C?[]:null,N=new ae(V),q=new ae(b);for(let _=-1;;){if(N.done&&q.len||q.done&&N.len)throw new Error("Mismatched change set lengths");if(N.ins==-1&&q.ins==-1){let Z=Math.min(N.len,q.len);at(O,Z,-1),N.forward(Z),q.forward(Z)}else if(q.ins>=0&&(N.ins<0||_==N.i||N.off==0&&(q.len<N.len||q.len==N.len&&!w))){let Z=q.len;for(at(O,q.ins,-1);Z;){let lt=Math.min(N.len,Z);N.ins>=0&&_<N.i&&N.len<=lt&&(at(O,0,N.ins),L&&wt(L,O,N.text),_=N.i),N.forward(lt),Z-=lt}q.next()}else if(N.ins>=0){let Z=0,lt=N.len;for(;lt;)if(q.ins==-1){let ht=Math.min(lt,q.len);Z+=ht,lt-=ht,q.forward(ht)}else if(q.ins==0&&q.len<lt)lt-=q.len,q.next();else break;at(O,Z,_<N.i?N.ins:0),L&&_<N.i&&wt(L,O,N.text),_=N.i,N.forward(N.len-lt)}else{if(N.done&&q.done)return L?st.createSet(O,L):Q.create(O);throw new Error("Mismatched change set lengths")}}}function le(V,b,w=!1){let C=[],O=w?[]:null,L=new ae(V),N=new ae(b);for(let q=!1;;){if(L.done&&N.done)return O?st.createSet(C,O):Q.create(C);if(L.ins==0)at(C,L.len,0,q),L.next();else if(N.len==0&&!N.done)at(C,0,N.ins,q),O&&wt(O,C,N.text),N.next();else{if(L.done||N.done)throw new Error("Mismatched change set lengths");{let _=Math.min(L.len2,N.len),Z=C.length;if(L.ins==-1){let lt=N.ins==-1?-1:N.off?0:N.ins;at(C,_,lt,q),O&<&&wt(O,C,N.text)}else N.ins==-1?(at(C,L.off?0:L.len,_,q),O&&wt(O,C,L.textBit(_))):(at(C,L.off?0:L.len,N.off?0:N.ins,q),O&&!N.off&&wt(O,C,N.text));q=(L.ins>_||N.ins>=0&&N.len>_)&&(q||C.length>Z),L.forward2(_),N.forward(_)}}}}class ae{constructor(b){this.set=b,this.i=0,this.next()}next(){let{sections:b}=this.set;this.i<b.length?(this.len=b[this.i++],this.ins=b[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:b}=this.set,w=this.i-2>>1;return w>=b.length?e.empty:b[w]}textBit(b){let{inserted:w}=this.set,C=this.i-2>>1;return C>=w.length&&!b?e.empty:w[C].slice(this.off,b==null?void 0:this.off+b)}forward(b){b==this.len?this.next():(this.len-=b,this.off+=b)}forward2(b){this.ins==-1?this.forward(b):b==this.ins?this.next():(this.ins-=b,this.off+=b)}}class zt{constructor(b,w,C){this.from=b,this.to=w,this.flags=C}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let b=this.flags&7;return b==7?null:b}get goalColumn(){let b=this.flags>>6;return b==16777215?void 0:b}map(b,w=-1){let C,O;return this.empty?C=O=b.mapPos(this.from,w):(C=b.mapPos(this.from,1),O=b.mapPos(this.to,-1)),C==this.from&&O==this.to?this:new zt(C,O,this.flags)}extend(b,w=b){if(b<=this.anchor&&w>=this.anchor)return Ot.range(b,w);let C=Math.abs(b-this.anchor)>Math.abs(w-this.anchor)?b:w;return Ot.range(this.anchor,C)}eq(b,w=!1){return this.anchor==b.anchor&&this.head==b.head&&(!w||!this.empty||this.assoc==b.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(b){if(!b||typeof b.anchor!="number"||typeof b.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Ot.range(b.anchor,b.head)}static create(b,w,C){return new zt(b,w,C)}}class Ot{constructor(b,w){this.ranges=b,this.mainIndex=w}map(b,w=-1){return b.empty?this:Ot.create(this.ranges.map(C=>C.map(b,w)),this.mainIndex)}eq(b,w=!1){if(this.ranges.length!=b.ranges.length||this.mainIndex!=b.mainIndex)return!1;for(let C=0;C<this.ranges.length;C++)if(!this.ranges[C].eq(b.ranges[C],w))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Ot([this.main],0)}addRange(b,w=!0){return Ot.create([b].concat(this.ranges),w?0:this.mainIndex+1)}replaceRange(b,w=this.mainIndex){let C=this.ranges.slice();return C[w]=b,Ot.create(C,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(b=>b.toJSON()),main:this.mainIndex}}static fromJSON(b){if(!b||!Array.isArray(b.ranges)||typeof b.main!="number"||b.main>=b.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Ot(b.ranges.map(w=>zt.fromJSON(w)),b.main)}static single(b,w=b){return new Ot([Ot.range(b,w)],0)}static create(b,w=0){if(b.length==0)throw new RangeError("A selection needs at least one range");for(let C=0,O=0;O<b.length;O++){let L=b[O];if(L.empty?L.from<=C:L.from<C)return Ot.normalized(b.slice(),w);C=L.to}return new Ot(b,w)}static cursor(b,w=0,C,O){return zt.create(b,b,(w==0?0:w<0?8:16)|(C==null?7:Math.min(6,C))|(O??16777215)<<6)}static range(b,w,C,O){let L=(C??16777215)<<6|(O==null?7:Math.min(6,O));return w<b?zt.create(w,b,48|L):zt.create(b,w,(w>b?8:0)|L)}static normalized(b,w=0){let C=b[w];b.sort((O,L)=>O.from-L.from),w=b.indexOf(C);for(let O=1;O<b.length;O++){let L=b[O],N=b[O-1];if(L.empty?L.from<=N.to:L.from<N.to){let q=N.from,_=Math.max(L.to,N.to);O<=w&&w--,b.splice(--O,2,L.anchor>L.head?Ot.range(_,q):Ot.range(q,_))}}return new Ot(b,w)}}function ne(V,b){for(let w of V.ranges)if(w.to>b)throw new RangeError("Selection points outside of document")}let Rt=0;class Bt{constructor(b,w,C,O,L){this.combine=b,this.compareInput=w,this.compare=C,this.isStatic=O,this.id=Rt++,this.default=b([]),this.extensions=typeof L=="function"?L(this):L}get reader(){return this}static define(b={}){return new Bt(b.combine||(w=>w),b.compareInput||((w,C)=>w===C),b.compare||(b.combine?(w,C)=>w===C:vt),!!b.static,b.enables)}of(b){return new Zt([],this,0,b)}compute(b,w){if(this.isStatic)throw new Error("Can't compute a static facet");return new Zt(b,this,1,w)}computeN(b,w){if(this.isStatic)throw new Error("Can't compute a static facet");return new Zt(b,this,2,w)}from(b,w){return w||(w=C=>C),this.compute([b],C=>w(C.field(b)))}}function vt(V,b){return V==b||V.length==b.length&&V.every((w,C)=>w===b[C])}class Zt{constructor(b,w,C,O){this.dependencies=b,this.facet=w,this.type=C,this.value=O,this.id=Rt++}dynamicSlot(b){var w;let C=this.value,O=this.facet.compareInput,L=this.id,N=b[L]>>1,q=this.type==2,_=!1,Z=!1,lt=[];for(let ht of this.dependencies)ht=="doc"?_=!0:ht=="selection"?Z=!0:(((w=b[ht.id])!==null&&w!==void 0?w:1)&1)==0&<.push(b[ht.id]);return{create(ht){return ht.values[N]=C(ht),1},update(ht,gt){if(_&>.docChanged||Z&&(gt.docChanged||gt.selection)||ue(ht,lt)){let pt=C(ht);if(q?!se(pt,ht.values[N],O):!O(pt,ht.values[N]))return ht.values[N]=pt,1}return 0},reconfigure:(ht,gt)=>{let pt,It=gt.config.address[L];if(It!=null){let be=ft(gt,It);if(this.dependencies.every(Gt=>Gt instanceof Bt?gt.facet(Gt)===ht.facet(Gt):Gt instanceof Qe?gt.field(Gt,!1)==ht.field(Gt,!1):!0)||(q?se(pt=C(ht),be,O):O(pt=C(ht),be)))return ht.values[N]=be,0}else pt=C(ht);return ht.values[N]=pt,1}}}}function se(V,b,w){if(V.length!=b.length)return!1;for(let C=0;C<V.length;C++)if(!w(V[C],b[C]))return!1;return!0}function ue(V,b){let w=!1;for(let C of b)Ii(V,C)&1&&(w=!0);return w}function qn(V,b,w){let C=w.map(_=>V[_.id]),O=w.map(_=>_.type),L=C.filter(_=>!(_&1)),N=V[b.id]>>1;function q(_){let Z=[];for(let lt=0;lt<C.length;lt++){let ht=ft(_,C[lt]);if(O[lt]==2)for(let gt of ht)Z.push(gt);else Z.push(ht)}return b.combine(Z)}return{create(_){for(let Z of C)Ii(_,Z);return _.values[N]=q(_),1},update(_,Z){if(!ue(_,L))return 0;let lt=q(_);return b.compare(lt,_.values[N])?0:(_.values[N]=lt,1)},reconfigure(_,Z){let lt=ue(_,C),ht=Z.config.facets[b.id],gt=Z.facet(b);if(ht&&!lt&&vt(w,ht))return _.values[N]=gt,0;let pt=q(_);return b.compare(pt,gt)?(_.values[N]=gt,0):(_.values[N]=pt,1)}}}const he=Bt.define({static:!0});class Qe{constructor(b,w,C,O,L){this.id=b,this.createF=w,this.updateF=C,this.compareF=O,this.spec=L,this.provides=void 0}static define(b){let w=new Qe(Rt++,b.create,b.update,b.compare||((C,O)=>C===O),b);return b.provide&&(w.provides=b.provide(w)),w}create(b){let w=b.facet(he).find(C=>C.field==this);return((w==null?void 0:w.create)||this.createF)(b)}slot(b){let w=b[this.id]>>1;return{create:C=>(C.values[w]=this.create(C),1),update:(C,O)=>{let L=C.values[w],N=this.updateF(L,O);return this.compareF(L,N)?0:(C.values[w]=N,1)},reconfigure:(C,O)=>{let L=C.facet(he),N=O.facet(he),q;return(q=L.find(_=>_.field==this))&&q!=N.find(_=>_.field==this)?(C.values[w]=q.create(C),1):O.config.address[this.id]!=null?(C.values[w]=O.field(this),0):(C.values[w]=this.create(C),1)}}}init(b){return[this,he.of({field:this,create:b})]}get extension(){return this}}const Ze={lowest:4,low:3,default:2,high:1,highest:0};function ti(V){return b=>new Zi(b,V)}const Kn={highest:ti(Ze.highest),high:ti(Ze.high),default:ti(Ze.default),low:ti(Ze.low),lowest:ti(Ze.lowest)};class Zi{constructor(b,w){this.inner=b,this.prec=w}}class Ni{of(b){return new Fi(this,b)}reconfigure(b){return Ni.reconfigure.of({compartment:this,extension:b})}get(b){return b.config.compartments.get(this)}}class Fi{constructor(b,w){this.compartment=b,this.inner=w}}class gn{constructor(b,w,C,O,L,N){for(this.base=b,this.compartments=w,this.dynamicSlots=C,this.address=O,this.staticValues=L,this.facets=N,this.statusTemplate=[];this.statusTemplate.length<C.length;)this.statusTemplate.push(0)}staticFacet(b){let w=this.address[b.id];return w==null?b.default:this.staticValues[w>>1]}static resolve(b,w,C){let O=[],L=Object.create(null),N=new Map;for(let gt of as(b,w,N))gt instanceof Qe?O.push(gt):(L[gt.facet.id]||(L[gt.facet.id]=[])).push(gt);let q=Object.create(null),_=[],Z=[];for(let gt of O)q[gt.id]=Z.length<<1,Z.push(pt=>gt.slot(pt));let lt=C==null?void 0:C.config.facets;for(let gt in L){let pt=L[gt],It=pt[0].facet,be=lt&<[gt]||[];if(pt.every(Gt=>Gt.type==0))if(q[It.id]=_.length<<1|1,vt(be,pt))_.push(C.facet(It));else{let Gt=It.combine(pt.map(rn=>rn.value));_.push(C&&It.compare(Gt,C.facet(It))?C.facet(It):Gt)}else{for(let Gt of pt)Gt.type==0?(q[Gt.id]=_.length<<1|1,_.push(Gt.value)):(q[Gt.id]=Z.length<<1,Z.push(rn=>Gt.dynamicSlot(rn)));q[It.id]=Z.length<<1,Z.push(Gt=>qn(Gt,It,pt))}}let ht=Z.map(gt=>gt(q));return new gn(b,N,ht,q,_,L)}}function as(V,b,w){let C=[[],[],[],[],[]],O=new Map;function L(N,q){let _=O.get(N);if(_!=null){if(_<=q)return;let Z=C[_].indexOf(N);Z>-1&&C[_].splice(Z,1),N instanceof Fi&&w.delete(N.compartment)}if(O.set(N,q),Array.isArray(N))for(let Z of N)L(Z,q);else if(N instanceof Fi){if(w.has(N.compartment))throw new RangeError("Duplicate use of compartment in extensions");let Z=b.get(N.compartment)||N.inner;w.set(N.compartment,Z),L(Z,q)}else if(N instanceof Zi)L(N.inner,N.prec);else if(N instanceof Qe)C[q].push(N),N.provides&&L(N.provides,q);else if(N instanceof Zt)C[q].push(N),N.facet.extensions&&L(N.facet.extensions,Ze.default);else{let Z=N.extension;if(!Z)throw new Error(`Unrecognized extension value in extension set (${N}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);L(Z,q)}}return L(V,Ze.default),C.reduce((N,q)=>N.concat(q))}function Ii(V,b){if(b&1)return 2;let w=b>>1,C=V.status[w];if(C==4)throw new Error("Cyclic dependency between fields and/or facets");if(C&2)return C;V.status[w]=4;let O=V.computeSlot(V,V.config.dynamicSlots[w]);return V.status[w]=2|O}function ft(V,b){return b&1?V.config.staticValues[b>>1]:V.values[b>>1]}const jn=Bt.define(),ye=Bt.define({combine:V=>V.some(b=>b),static:!0}),Ke=Bt.define({combine:V=>V.length?V[0]:void 0,static:!0}),hs=Bt.define(),ei=Bt.define(),De=Bt.define(),mn=Bt.define({combine:V=>V.length?V[0]:!1});class Oe{constructor(b,w){this.type=b,this.value=w}static define(){return new ii}}class ii{of(b){return new Oe(this,b)}}class bn{constructor(b){this.map=b}of(b){return new Ht(this,b)}}class Ht{constructor(b,w){this.type=b,this.value=w}map(b){let w=this.type.map(this.value,b);return w===void 0?void 0:w==this.value?this:new Ht(this.type,w)}is(b){return this.type==b}static define(b={}){return new bn(b.map||(w=>w))}static mapEffects(b,w){if(!b.length)return b;let C=[];for(let O of b){let L=O.map(w);L&&C.push(L)}return C}}Ht.reconfigure=Ht.define(),Ht.appendConfig=Ht.define();class ce{constructor(b,w,C,O,L,N){this.startState=b,this.changes=w,this.selection=C,this.effects=O,this.annotations=L,this.scrollIntoView=N,this._doc=null,this._state=null,C&&ne(C,w.newLength),L.some(q=>q.type==ce.time)||(this.annotations=L.concat(ce.time.of(Date.now())))}static create(b,w,C,O,L,N){return new ce(b,w,C,O,L,N)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(b){for(let w of this.annotations)if(w.type==b)return w.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(b){let w=this.annotation(ce.userEvent);return!!(w&&(w==b||w.length>b.length&&w.slice(0,b.length)==b&&w[b.length]=="."))}}ce.time=Oe.define(),ce.userEvent=Oe.define(),ce.addToHistory=Oe.define(),ce.remote=Oe.define();function di(V,b){let w=[];for(let C=0,O=0;;){let L,N;if(C<V.length&&(O==b.length||b[O]>=V[C]))L=V[C++],N=V[C++];else if(O<b.length)L=b[O++],N=b[O++];else return w;!w.length||w[w.length-1]<L?w.push(L,N):w[w.length-1]<N&&(w[w.length-1]=N)}}function yn(V,b,w){var C;let O,L,N;return w?(O=b.changes,L=st.empty(b.changes.length),N=V.changes.compose(b.changes)):(O=b.changes.map(V.changes),L=V.changes.mapDesc(b.changes,!0),N=V.changes.compose(O)),{changes:N,selection:b.selection?b.selection.map(L):(C=V.selection)===null||C===void 0?void 0:C.map(O),effects:Ht.mapEffects(V.effects,O).concat(Ht.mapEffects(b.effects,L)),annotations:V.annotations.length?V.annotations.concat(b.annotations):b.annotations,scrollIntoView:V.scrollIntoView||b.scrollIntoView}}function tn(V,b,w){let C=b.selection,O=Fe(b.annotations);return b.userEvent&&(O=O.concat(ce.userEvent.of(b.userEvent))),{changes:b.changes instanceof st?b.changes:st.of(b.changes||[],w,V.facet(Ke)),selection:C&&(C instanceof Ot?C:Ot.single(C.anchor,C.head)),effects:Fe(b.effects),annotations:O,scrollIntoView:!!b.scrollIntoView}}function _t(V,b,w){let C=tn(V,b.length?b[0]:{},V.doc.length);b.length&&b[0].filter===!1&&(w=!1);for(let L=1;L<b.length;L++){b[L].filter===!1&&(w=!1);let N=!!b[L].sequential;C=yn(C,tn(V,b[L],N?C.changes.newLength:V.doc.length),N)}let O=ce.create(V,C.changes,C.selection,C.effects,C.annotations,C.scrollIntoView);return _e(w?je(O):O)}function je(V){let b=V.startState,w=!0;for(let O of b.facet(hs)){let L=O(V);if(L===!1){w=!1;break}Array.isArray(L)&&(w=w===!0?L:di(w,L))}if(w!==!0){let O,L;if(w===!1)L=V.changes.invertedDesc,O=st.empty(b.doc.length);else{let N=V.changes.filter(w);O=N.changes,L=N.filtered.mapDesc(N.changes).invertedDesc}V=ce.create(b,O,V.selection&&V.selection.map(L),Ht.mapEffects(V.effects,L),V.annotations,V.scrollIntoView)}let C=b.facet(ei);for(let O=C.length-1;O>=0;O--){let L=C[O](V);L instanceof ce?V=L:Array.isArray(L)&&L.length==1&&L[0]instanceof ce?V=L[0]:V=_t(b,Fe(L),!1)}return V}function _e(V){let b=V.startState,w=b.facet(De),C=V;for(let O=w.length-1;O>=0;O--){let L=w[O](V);L&&Object.keys(L).length&&(C=yn(C,tn(b,L,V.changes.newLength),!0))}return C==V?V:ce.create(b,V.changes,V.selection,C.effects,C.annotations,C.scrollIntoView)}const Vt=[];function Fe(V){return V==null?Vt:Array.isArray(V)?V:[V]}n.CharCategory=void 0,function(V){V[V.Word=0]="Word",V[V.Space=1]="Space",V[V.Other=2]="Other"}(n.CharCategory||(n.CharCategory={}));const en=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ge;try{Ge=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function cs(V){if(Ge)return Ge.test(V);for(let b=0;b<V.length;b++){let w=V[b];if(/\w/.test(w)||w>""&&(w.toUpperCase()!=w.toLowerCase()||en.test(w)))return!0}return!1}function er(V){return b=>{if(!/\S/.test(b))return n.CharCategory.Space;if(cs(b))return n.CharCategory.Word;for(let w=0;w<V.length;w++)if(b.indexOf(V[w])>-1)return n.CharCategory.Word;return n.CharCategory.Other}}class Wt{constructor(b,w,C,O,L,N){this.config=b,this.doc=w,this.selection=C,this.values=O,this.status=b.statusTemplate.slice(),this.computeSlot=L,N&&(N._state=this);for(let q=0;q<this.config.dynamicSlots.length;q++)Ii(this,q<<1);this.computeSlot=null}field(b,w=!0){let C=this.config.address[b.id];if(C==null){if(w)throw new RangeError("Field is not present in this state");return}return Ii(this,C),ft(this,C)}update(...b){return _t(this,b,!0)}applyTransaction(b){let w=this.config,{base:C,compartments:O}=w;for(let q of b.effects)q.is(Ni.reconfigure)?(w&&(O=new Map,w.compartments.forEach((_,Z)=>O.set(Z,_)),w=null),O.set(q.value.compartment,q.value.extension)):q.is(Ht.reconfigure)?(w=null,C=q.value):q.is(Ht.appendConfig)&&(w=null,C=Fe(C).concat(q.value));let L;w?L=b.startState.values.slice():(w=gn.resolve(C,O,this),L=new Wt(w,this.doc,this.selection,w.dynamicSlots.map(()=>null),(_,Z)=>Z.reconfigure(_,this),null).values);let N=b.startState.facet(ye)?b.newSelection:b.newSelection.asSingle();new Wt(w,b.newDoc,N,L,(q,_)=>_.update(q,b),b)}replaceSelection(b){return typeof b=="string"&&(b=this.toText(b)),this.changeByRange(w=>({changes:{from:w.from,to:w.to,insert:b},range:Ot.cursor(w.from+b.length)}))}changeByRange(b){let w=this.selection,C=b(w.ranges[0]),O=this.changes(C.changes),L=[C.range],N=Fe(C.effects);for(let q=1;q<w.ranges.length;q++){let _=b(w.ranges[q]),Z=this.changes(_.changes),lt=Z.map(O);for(let gt=0;gt<q;gt++)L[gt]=L[gt].map(lt);let ht=O.mapDesc(Z,!0);L.push(_.range.map(ht)),O=O.compose(lt),N=Ht.mapEffects(N,lt).concat(Ht.mapEffects(Fe(_.effects),ht))}return{changes:O,selection:Ot.create(L,w.mainIndex),effects:N}}changes(b=[]){return b instanceof st?b:st.of(b,this.doc.length,this.facet(Wt.lineSeparator))}toText(b){return e.of(b.split(this.facet(Wt.lineSeparator)||ot))}sliceDoc(b=0,w=this.doc.length){return this.doc.sliceString(b,w,this.lineBreak)}facet(b){let w=this.config.address[b.id];return w==null?b.default:(Ii(this,w),ft(this,w))}toJSON(b){let w={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(b)for(let C in b){let O=b[C];O instanceof Qe&&this.config.address[O.id]!=null&&(w[C]=O.spec.toJSON(this.field(b[C]),this))}return w}static fromJSON(b,w={},C){if(!b||typeof b.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let O=[];if(C){for(let L in C)if(Object.prototype.hasOwnProperty.call(b,L)){let N=C[L],q=b[L];O.push(N.init(_=>N.spec.fromJSON(q,_)))}}return Wt.create({doc:b.doc,selection:Ot.fromJSON(b.selection),extensions:w.extensions?O.concat([w.extensions]):O})}static create(b={}){let w=gn.resolve(b.extensions||[],new Map),C=b.doc instanceof e?b.doc:e.of((b.doc||"").split(w.staticFacet(Wt.lineSeparator)||ot)),O=b.selection?b.selection instanceof Ot?b.selection:Ot.single(b.selection.anchor,b.selection.head):Ot.single(0);return ne(O,C.length),w.staticFacet(ye)||(O=O.asSingle()),new Wt(w,C,O,w.dynamicSlots.map(()=>null),(L,N)=>N.create(L),null)}get tabSize(){return this.facet(Wt.tabSize)}get lineBreak(){return this.facet(Wt.lineSeparator)||`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{dv as mu,dw as zt,dx as ye,dy as Wr,r as B,bA as Wt,dz as W,dA as z,dB as da,dC as X,R as A,dD as gu,dE as Dn,dF as bu,dG as xu,dH as Ou,dI as Au,dJ as wu,dK as Pu,dL as Wc,dM as Ti,dN as fi,dO as Kc,dP as Z,q as at,dQ as Su,dR as ju,dS as Eu,dT as $u,dU as Tu,dV as ku,dW as Iu,dX as Mn,dY as Re,dZ as Fe,d_ as ki,d$ as Ii,e0 as rn,e1 as _i,e2 as _u,e3 as Hr,e4 as Cu,e5 as Du,e6 as Mu,e7 as Bu,e8 as Nu,e9 as Lu,ea as Ru,eb as Fc,ec as zu,ed as Wu,ee as Ku,ef as Fu,eg as Vu,eh as Xu,ei as De,ej as Gu,ek as Hu,el as Uu,em as Yu,en as an,eo as Vc,ep as qu,eq as Zu,er as Ju,es as Qu,et as es}from"./vendor-ARQZvmz5.js";var se=function(e){return e===0?0:e>0?1:-1},tt=function(e){return Wr(e)&&e.indexOf("%")===e.length-1},M=function(e){return mu(e)&&!zt(e)},ne=function(e){return M(e)||Wr(e)},ts=0,Xe=function(e){var r=++ts;return"".concat(e||"").concat(r)},fe=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!M(e)&&!Wr(e))return n;var i;if(tt(e)){var o=e.indexOf("%");i=r*parseFloat(e.slice(0,o))/100}else i=+e;return zt(i)&&(i=n),a&&i>r&&(i=r),i},Le=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},rs=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},a=0;a<r;a++)if(!n[e[a]])n[e[a]]=!0;else return!0;return!1},te=function(e,r){return M(e)&&M(r)?function(n){return e+n*(r-e)}:function(){return r}};function on(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):ye(n,e))===r})}var ns=function(e){if(!e||!e.length)return null;for(var r=e.length,n=0,a=0,i=0,o=0,c=1/0,l=-1/0,u=0,s=0,f=0;f<r;f++)u=e[f].cx||0,s=e[f].cy||0,n+=u,a+=s,i+=u*s,o+=u*u,c=Math.min(c,u),l=Math.max(l,u);var d=r*o!==n*n?(r*i-n*a)/(r*o-n*n):0;return{xmin:c,xmax:l,a:d,b:(a-d*n)/r}};function Ot(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}var as=["viewBox","children"],is=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ci=["points","pathLength"],ta={svg:as,polygon:Ci,polyline:Ci},di=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],cn=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(B.isValidElement(e)&&(n=e.props),!Wt(n))return null;var a={};return Object.keys(n).forEach(function(i){di.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},os=function(e,r,n){return function(a){return e(r,n,a),null}},Ve=function(e,r,n){if(!Wt(e)||pa(e)!=="object")return null;var a=null;return Object.keys(e).forEach(function(i){var o=e[i];di.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=os(o,r,n))}),a},cs=["children"],ls=["children"];function Di(t,e){if(t==null)return{};var r=us(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function us(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function va(t){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(t)}var Mi={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ce=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Bi=null,ra=null,pi=function t(e){if(e===Bi&&Array.isArray(ra))return ra;var r=[];return B.Children.forEach(e,function(n){z(n)||(da.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),ra=r,Bi=e,r};function de(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(a){return Ce(a)}):n=[Ce(e)],pi(t).forEach(function(a){var i=ye(a,"type.displayName")||ye(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function he(t,e){var r=de(t,e);return r&&r[0]}var Ni=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,a=r.height;return!(!M(n)||n<=0||!M(a)||a<=0)},ss=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],fs=function(e){return e&&e.type&&Wr(e.type)&&ss.indexOf(e.type)>=0},Xc=function(e){return e&&va(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},ds=function(e,r,n,a){var i,o=(i=ta==null?void 0:ta[a])!==null&&i!==void 0?i:[];return!W(e)&&(a&&o.includes(r)||is.includes(r))||n&&di.includes(r)},R=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(B.isValidElement(e)&&(a=e.props),!Wt(a))return null;var i={};return Object.keys(a).forEach(function(o){var c;ds((c=a)===null||c===void 0?void 0:c[o],o,r,n)&&(i[o]=a[o])}),i},ha=function t(e,r){if(e===r)return!0;var n=B.Children.count(e);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Li(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=e[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!t(i,o))return!1}else if(!Li(i,o))return!1}return!0},Li=function(e,r){if(z(e)&&z(r))return!0;if(!z(e)&&!z(r)){var n=e.props||{},a=n.children,i=Di(n,cs),o=r.props||{},c=o.children,l=Di(o,ls);return a&&c?Ot(i,l)&&ha(a,c):!a&&!c?Ot(i,l):!1}return!1},Ri=function(e,r){var n=[],a={};return pi(e).forEach(function(i,o){if(fs(i))n.push(i);else if(i){var c=Ce(i.type),l=r[c]||{},u=l.handler,s=l.once;if(u&&(!s||!a[c])){var f=u(i,c,o);n.push(f),a[c]=!0}}}),n},ps=function(e){var r=e&&e.type;return r&&Mi[r]?Mi[r]:null},vs=function(e,r){return pi(r).indexOf(e)},hs=["children","width","height","viewBox","className","style","title","desc"];function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ya.apply(this,arguments)}function ys(t,e){if(t==null)return{};var r=ms(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ms(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function ma(t){var e=t.children,r=t.width,n=t.height,a=t.viewBox,i=t.className,o=t.style,c=t.title,l=t.desc,u=ys(t,hs),s=a||{width:r,height:n,x:0,y:0},f=X("recharts-surface",i);return A.createElement("svg",ya({},R(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),A.createElement("title",null,c),A.createElement("desc",null,l),e)}var gs=["children","className"];function ga(){return ga=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ga.apply(this,arguments)}function bs(t,e){if(t==null)return{};var r=xs(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xs(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var H=A.forwardRef(function(t,e){var r=t.children,n=t.className,a=bs(t,gs),i=X("recharts-layer",n);return A.createElement("g",ga({className:i},R(a,!0),{ref:e}),r)}),Se=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function sr(t){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(t)}var Os=["type","size","sizeType"];function ba(){return ba=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ba.apply(this,arguments)}function zi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zi(Object(r),!0).forEach(function(n){As(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function As(t,e,r){return e=ws(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ws(t){var e=Ps(t,"string");return sr(e)=="symbol"?e:String(e)}function Ps(t,e){if(sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ss(t,e){if(t==null)return{};var r=js(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function js(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var Gc={symbolCircle:Wc,symbolCross:Pu,symbolDiamond:wu,symbolSquare:Au,symbolStar:Ou,symbolTriangle:xu,symbolWye:bu},Es=Math.PI/180,$s=function(e){var r="symbol".concat(Dn(e));return Gc[r]||Wc},Ts=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*Es;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},ks=function(e,r){Gc["symbol".concat(Dn(e))]=r},Bn=function(e){var r=e.type,n=r===void 0?"circle":r,a=e.size,i=a===void 0?64:a,o=e.sizeType,c=o===void 0?"area":o,l=Ss(e,Os),u=Wi(Wi({},l),{},{type:n,size:i,sizeType:c}),s=function(){var g=$s(n),O=gu().type(g).size(Ts(i,c,n));return O()},f=u.className,d=u.cx,p=u.cy,m=R(u,!0);return d===+d&&p===+p&&i===+i?A.createElement("path",ba({},m,{className:X("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:s()})):null};Bn.registerSymbol=ks;function wt(t){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(t)}function xa(){return xa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xa.apply(this,arguments)}function Ki(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Is(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ki(Object(r),!0).forEach(function(n){fr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Uc(n.key),n)}}function Ds(t,e,r){return e&&Cs(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ms(t,e,r){return e=ln(e),Bs(t,Hc()?Reflect.construct(e,r||[],ln(t).constructor):e.apply(t,r))}function Bs(t,e){if(e&&(wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ns(t)}function Ns(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hc=function(){return!!t})()}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(t)}function Ls(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oa(t,e)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Oa(t,e)}function fr(t,e,r){return e=Uc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uc(t){var e=Rs(t,"string");return wt(e)=="symbol"?e:String(e)}function Rs(t,e){if(wt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(wt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ae=32,vi=function(t){Ls(e,t);function e(){return _s(this,e),Ms(this,e,arguments)}return Ds(e,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=Ae/2,o=Ae/6,c=Ae/3,l=n.inactive?a:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:Ae,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(c,`
|
|
1
|
+
import{dv as mu,dw as zt,dx as ye,dy as Wr,r as B,bA as Wt,dz as W,dA as z,dB as da,dC as X,R as A,dD as gu,dE as Dn,dF as bu,dG as xu,dH as Ou,dI as Au,dJ as wu,dK as Pu,dL as Wc,dM as Ti,dN as fi,dO as Kc,dP as Z,q as at,dQ as Su,dR as ju,dS as Eu,dT as $u,dU as Tu,dV as ku,dW as Iu,dX as Mn,dY as Re,dZ as Fe,d_ as ki,d$ as Ii,e0 as rn,e1 as _i,e2 as _u,e3 as Hr,e4 as Cu,e5 as Du,e6 as Mu,e7 as Bu,e8 as Nu,e9 as Lu,ea as Ru,eb as Fc,ec as zu,ed as Wu,ee as Ku,ef as Fu,eg as Vu,eh as Xu,ei as De,ej as Gu,ek as Hu,el as Uu,em as Yu,en as an,eo as Vc,ep as qu,eq as Zu,er as Ju,es as Qu,et as es}from"./vendor-BKYy4SMr.js";var se=function(e){return e===0?0:e>0?1:-1},tt=function(e){return Wr(e)&&e.indexOf("%")===e.length-1},M=function(e){return mu(e)&&!zt(e)},ne=function(e){return M(e)||Wr(e)},ts=0,Xe=function(e){var r=++ts;return"".concat(e||"").concat(r)},fe=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!M(e)&&!Wr(e))return n;var i;if(tt(e)){var o=e.indexOf("%");i=r*parseFloat(e.slice(0,o))/100}else i=+e;return zt(i)&&(i=n),a&&i>r&&(i=r),i},Le=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},rs=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},a=0;a<r;a++)if(!n[e[a]])n[e[a]]=!0;else return!0;return!1},te=function(e,r){return M(e)&&M(r)?function(n){return e+n*(r-e)}:function(){return r}};function on(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):ye(n,e))===r})}var ns=function(e){if(!e||!e.length)return null;for(var r=e.length,n=0,a=0,i=0,o=0,c=1/0,l=-1/0,u=0,s=0,f=0;f<r;f++)u=e[f].cx||0,s=e[f].cy||0,n+=u,a+=s,i+=u*s,o+=u*u,c=Math.min(c,u),l=Math.max(l,u);var d=r*o!==n*n?(r*i-n*a)/(r*o-n*n):0;return{xmin:c,xmax:l,a:d,b:(a-d*n)/r}};function Ot(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function pa(t){"@babel/helpers - typeof";return pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pa(t)}var as=["viewBox","children"],is=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ci=["points","pathLength"],ta={svg:as,polygon:Ci,polyline:Ci},di=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],cn=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(B.isValidElement(e)&&(n=e.props),!Wt(n))return null;var a={};return Object.keys(n).forEach(function(i){di.includes(i)&&(a[i]=r||function(o){return n[i](n,o)})}),a},os=function(e,r,n){return function(a){return e(r,n,a),null}},Ve=function(e,r,n){if(!Wt(e)||pa(e)!=="object")return null;var a=null;return Object.keys(e).forEach(function(i){var o=e[i];di.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=os(o,r,n))}),a},cs=["children"],ls=["children"];function Di(t,e){if(t==null)return{};var r=us(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function us(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function va(t){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},va(t)}var Mi={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ce=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},Bi=null,ra=null,pi=function t(e){if(e===Bi&&Array.isArray(ra))return ra;var r=[];return B.Children.forEach(e,function(n){z(n)||(da.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),ra=r,Bi=e,r};function de(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(a){return Ce(a)}):n=[Ce(e)],pi(t).forEach(function(a){var i=ye(a,"type.displayName")||ye(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function he(t,e){var r=de(t,e);return r&&r[0]}var Ni=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,a=r.height;return!(!M(n)||n<=0||!M(a)||a<=0)},ss=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],fs=function(e){return e&&e.type&&Wr(e.type)&&ss.indexOf(e.type)>=0},Xc=function(e){return e&&va(e)==="object"&&"cx"in e&&"cy"in e&&"r"in e},ds=function(e,r,n,a){var i,o=(i=ta==null?void 0:ta[a])!==null&&i!==void 0?i:[];return!W(e)&&(a&&o.includes(r)||is.includes(r))||n&&di.includes(r)},R=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var a=e;if(B.isValidElement(e)&&(a=e.props),!Wt(a))return null;var i={};return Object.keys(a).forEach(function(o){var c;ds((c=a)===null||c===void 0?void 0:c[o],o,r,n)&&(i[o]=a[o])}),i},ha=function t(e,r){if(e===r)return!0;var n=B.Children.count(e);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Li(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var a=0;a<n;a++){var i=e[a],o=r[a];if(Array.isArray(i)||Array.isArray(o)){if(!t(i,o))return!1}else if(!Li(i,o))return!1}return!0},Li=function(e,r){if(z(e)&&z(r))return!0;if(!z(e)&&!z(r)){var n=e.props||{},a=n.children,i=Di(n,cs),o=r.props||{},c=o.children,l=Di(o,ls);return a&&c?Ot(i,l)&&ha(a,c):!a&&!c?Ot(i,l):!1}return!1},Ri=function(e,r){var n=[],a={};return pi(e).forEach(function(i,o){if(fs(i))n.push(i);else if(i){var c=Ce(i.type),l=r[c]||{},u=l.handler,s=l.once;if(u&&(!s||!a[c])){var f=u(i,c,o);n.push(f),a[c]=!0}}}),n},ps=function(e){var r=e&&e.type;return r&&Mi[r]?Mi[r]:null},vs=function(e,r){return pi(r).indexOf(e)},hs=["children","width","height","viewBox","className","style","title","desc"];function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ya.apply(this,arguments)}function ys(t,e){if(t==null)return{};var r=ms(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ms(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function ma(t){var e=t.children,r=t.width,n=t.height,a=t.viewBox,i=t.className,o=t.style,c=t.title,l=t.desc,u=ys(t,hs),s=a||{width:r,height:n,x:0,y:0},f=X("recharts-surface",i);return A.createElement("svg",ya({},R(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),A.createElement("title",null,c),A.createElement("desc",null,l),e)}var gs=["children","className"];function ga(){return ga=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ga.apply(this,arguments)}function bs(t,e){if(t==null)return{};var r=xs(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function xs(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var H=A.forwardRef(function(t,e){var r=t.children,n=t.className,a=bs(t,gs),i=X("recharts-layer",n);return A.createElement("g",ga({className:i},R(a,!0),{ref:e}),r)}),Se=function(e,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;i<n;i++)a[i-2]=arguments[i]};function sr(t){"@babel/helpers - typeof";return sr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr(t)}var Os=["type","size","sizeType"];function ba(){return ba=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ba.apply(this,arguments)}function zi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Wi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?zi(Object(r),!0).forEach(function(n){As(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function As(t,e,r){return e=ws(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ws(t){var e=Ps(t,"string");return sr(e)=="symbol"?e:String(e)}function Ps(t,e){if(sr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ss(t,e){if(t==null)return{};var r=js(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function js(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}var Gc={symbolCircle:Wc,symbolCross:Pu,symbolDiamond:wu,symbolSquare:Au,symbolStar:Ou,symbolTriangle:xu,symbolWye:bu},Es=Math.PI/180,$s=function(e){var r="symbol".concat(Dn(e));return Gc[r]||Wc},Ts=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var a=18*Es;return 1.25*e*e*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},ks=function(e,r){Gc["symbol".concat(Dn(e))]=r},Bn=function(e){var r=e.type,n=r===void 0?"circle":r,a=e.size,i=a===void 0?64:a,o=e.sizeType,c=o===void 0?"area":o,l=Ss(e,Os),u=Wi(Wi({},l),{},{type:n,size:i,sizeType:c}),s=function(){var g=$s(n),O=gu().type(g).size(Ts(i,c,n));return O()},f=u.className,d=u.cx,p=u.cy,m=R(u,!0);return d===+d&&p===+p&&i===+i?A.createElement("path",ba({},m,{className:X("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:s()})):null};Bn.registerSymbol=ks;function wt(t){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(t)}function xa(){return xa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xa.apply(this,arguments)}function Ki(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Is(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ki(Object(r),!0).forEach(function(n){fr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ki(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function _s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cs(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Uc(n.key),n)}}function Ds(t,e,r){return e&&Cs(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ms(t,e,r){return e=ln(e),Bs(t,Hc()?Reflect.construct(e,r||[],ln(t).constructor):e.apply(t,r))}function Bs(t,e){if(e&&(wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ns(t)}function Ns(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Hc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hc=function(){return!!t})()}function ln(t){return ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ln(t)}function Ls(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Oa(t,e)}function Oa(t,e){return Oa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Oa(t,e)}function fr(t,e,r){return e=Uc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Uc(t){var e=Rs(t,"string");return wt(e)=="symbol"?e:String(e)}function Rs(t,e){if(wt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(wt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Ae=32,vi=function(t){Ls(e,t);function e(){return _s(this,e),Ms(this,e,arguments)}return Ds(e,[{key:"renderIcon",value:function(n){var a=this.props.inactiveColor,i=Ae/2,o=Ae/6,c=Ae/3,l=n.inactive?a:n.color;if(n.type==="plainline")return A.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:i,x2:Ae,y2:i,className:"recharts-legend-icon"});if(n.type==="line")return A.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(c,`
|
|
2
2
|
A`).concat(o,",").concat(o,",0,1,1,").concat(2*c,",").concat(i,`
|
|
3
3
|
H`).concat(Ae,"M").concat(2*c,",").concat(i,`
|
|
4
4
|
A`).concat(o,",").concat(o,",0,1,1,").concat(c,",").concat(i),className:"recharts-legend-icon"});if(n.type==="rect")return A.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Ae/8,"h").concat(Ae,"v").concat(Ae*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(A.isValidElement(n.legendIcon)){var u=Is({},n);return delete u.legendIcon,A.cloneElement(n.legendIcon,u)}return A.createElement(Bn,{fill:l,cx:i,cy:i,size:Ae,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,a=this.props,i=a.payload,o=a.iconSize,c=a.layout,l=a.formatter,u=a.inactiveColor,s={x:0,y:0,width:Ae,height:Ae},f={display:c==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var y=p.formatter||l,g=X(fr(fr({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var O=W(p.value)?null:p.value;Se(!W(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=p.inactive?u:p.color;return A.createElement("li",xa({className:g,style:f,key:"legend-item-".concat(m)},Ve(n.props,p,m)),A.createElement(ma,{width:o,height:o,viewBox:s,style:d},n.renderIcon(p)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(O,p,m):O))})}},{key:"render",value:function(){var n=this.props,a=n.payload,i=n.layout,o=n.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return A.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}]),e}(B.PureComponent);fr(vi,"displayName","Legend");fr(vi,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function Yc(t,e,r){return e===!0?Ti(t,r):W(e)?Ti(t,e):t}function Pt(t){"@babel/helpers - typeof";return Pt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pt(t)}var zs=["ref"];function Fi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function Ze(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fi(Object(r),!0).forEach(function(n){Nn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ws(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vi(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Jc(n.key),n)}}function Ks(t,e,r){return e&&Vi(t.prototype,e),r&&Vi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Fs(t,e,r){return e=un(e),Vs(t,qc()?Reflect.construct(e,r||[],un(t).constructor):e.apply(t,r))}function Vs(t,e){if(e&&(Pt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zc(t)}function qc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qc=function(){return!!t})()}function un(t){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},un(t)}function Zc(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Aa(t,e)}function Aa(t,e){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Aa(t,e)}function Nn(t,e,r){return e=Jc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jc(t){var e=Gs(t,"string");return Pt(e)=="symbol"?e:String(e)}function Gs(t,e){if(Pt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Pt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hs(t,e){if(t==null)return{};var r=Us(t,e),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Us(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,i;for(i=0;i<n.length;i++)a=n[i],!(e.indexOf(a)>=0)&&(r[a]=t[a]);return r}function Ys(t){return t.value}function qs(t,e){if(A.isValidElement(t))return A.cloneElement(t,e);if(typeof t=="function")return A.createElement(t,e);e.ref;var r=Hs(e,zs);return A.createElement(vi,r)}var Xi=1,dr=function(t){Xs(e,t);function e(){var r;Ws(this,e);for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return r=Fs(this,e,[].concat(a)),Nn(Zc(r),"lastBoundingBox",{width:-1,height:-1}),r}return Ks(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>Xi||Math.abs(a.height-this.lastBoundingBox.height)>Xi)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,n&&n(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Ze({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var a=this.props,i=a.layout,o=a.align,c=a.verticalAlign,l=a.margin,u=a.chartWidth,s=a.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(c==="middle"){var m=this.getBBoxSnapshot();d={top:((s||0)-m.height)/2}}else d=c==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Ze(Ze({},f),d)}},{key:"render",value:function(){var n=this,a=this.props,i=a.content,o=a.width,c=a.height,l=a.wrapperStyle,u=a.payloadUniqBy,s=a.payload,f=Ze(Ze({position:"absolute",width:o||"auto",height:c||"auto"},this.getDefaultPosition(l)),l);return A.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},qs(i,Ze(Ze({},this.props),{},{payload:Yc(s,u,Ys)})))}}],[{key:"getWithHeight",value:function(n,a){var i=n.props.layout;return i==="vertical"&&M(n.props.height)?{height:n.props.height}:i==="horizontal"?{width:n.props.width||a}:null}}]),e}(B.PureComponent);Nn(dr,"displayName","Legend");Nn(dr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function pr(t){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(t)}function wa(){return wa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wa.apply(this,arguments)}function Zs(t,e){return tf(t)||ef(t,e)||Qs(t,e)||Js()}function Js(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|