PageSourceSearch

https://eveworkbench.com/main-7WKUWMP3.js

js eveworkbench.com collected 2026-09-25 20:08:23 UTC 1,446,292 bytes, 1,833 lines download raw bytes

vendor: 4,444 bytes, line 1
1import{$ as jw,$a as xs,$b as Pe,$c as Wt,A as Rw,Aa as oT,Ab as mo,Ac as LT,Ad as ho,B as Lw,Bc as OT,Bd as wm,C as im,Cb as ga,Cc as bt,Cd as xt,D as _n,Db as CT,Dc as $e,Dd as _a,E as rm,Ea as aT,Eb as va,Ec as AT,Ed as $t,F as nm,Fb as Xr,Fc as BT,Fd as pr,Ga as sm,Gb as ri,Gc as NT,Gd as iE,H as Ow,Ha as lm,Hb as Wd,Hc as i_,Hd as mi,I as Zl,Ib as Xv,Ic as VT,Id as rE,J as Aw,Jb as ST,Jc as qd,Jd as nE,K as Bw,Kb as wT,Kd as oE,L as Nw,La as sT,Lb as TT,Lc as zT,Ld as Tm,M as Vw,Ma as cm,Mb as Cs,Mc as r_,Md as aE,N as ha,Na as dm,Nb as Ss,Nc as n_,Nd as sE,Oa as lT,Ob as bn,Oc as UT,P as zw,Pb as hm,Pc as o_,Pd as lE,Q as Uw,Qb as Gd,Qc as a_,Qd as Em,R as it,Rb as ET,Rd as ba,S as Wi,Sa as cT,Sb as kT,Sc as HT,Sd as km,T as Hw,Ta as Jl,Tb as Jv,Tc as WT,Td as rc,Ua as co,Ub as Uo,Uc as GT,Ud as Ki,Va as Tr,Vb as e_,Vc as s_,Vd as cE,W as Ww,Wa as jv,Wb as IT,Wc as qT,Wd as Cn,X as Br,Xa as Yv,Xb as t_,Xc as xm,Xd as dE,Y as Gw,Ya as Kv,Yc as jT,Yd as pE,Z as om,Za as dT,Zb as DT,Zc as l_,_ as qw,_a as pT,_c as vi,_d as uE,a as Sw,aa as Yw,ab as pm,ad as YT,b as ww,ba as am,bb as $v,bc as MT,bd as yn,c as _t,ca as Kw,cb as uT,cc as Ot,cd as KT,d as Tw,da as qv,db as mT,dc as Yt,dd as $T,e as jl,eb as fT,ec as mt,ed as ZT,f as ge,fa as $w,fb as po,fc as qi,fd as ic,g as fa,gb as hT,gc as PT,gd as QT,h as ci,ha as Zw,hb as zd,hc as FT,hd as dO,i as Ew,ia as Qw,ib as ec,ic as Kt,id as Nr,j as Yl,ja as Vd,jb as Qt,jc as lr,jd as xn,k as em,ka as ys,kb as zo,kc as gm,kd as XT,l as kw,la as Xw,lb as Zv,lc as vm,ld as Cm,m as Vt,ma as Vo,mb as um,md as At,n as Hi,na as Jw,nb as Ud,nd as JT,o as Iw,ob as Hd,od as ft,p as Dw,pb as uo,pc as ji,pd as eE,qa as Ql,qb as gT,qc as Yi,qd as ni,r as Kl,ra as eT,rb as vT,rc as _m,s as Mw,sa as tT,sb as mm,sc as bm,t as Pw,tb as _T,tc as cr,td as c_,u as Fw,ub as Qv,uc as yt,ud as dr,v as tm,va as Xl,vb as bT,vc as ui,vd as Vr,w as $l,wa as iT,wb as yT,wc as tc,wd as tE,x as bs,xa as rT,xb as xT,xc as RT,xd as Sm,y as Gv,ya as nT,yb as fm,yc as ym,yd as Dt,z as gt,zb as Gi,zc as Xt,zd as fo}from"./chunk-NX56BXEZ.js";import{$b as T,$c as Ar,A as gn,Aa as Ld,Ac as f,B as Vi,Ba as vn,Bb as K,Bc as $,C as Hu,Ca as Zu,Cb as so,Cc as V,Db as Sr,Dc as kt,Ea as he,Eb as Xu,Ec as Nd,Fa as Si,Fb as ua,Fc as Qe,Gb as Ke,Gc as Xe,H as X2,Hb as M,Hc as Je,I as Av,Ia as ir,J as Wu,Ja as lw,K as J2,Kb as gw,L as Rd,La as cw,Lc as De,M as hs,Ma as xr,Mc as Q,N as ew,Na as si,Nc as ma,Oa as Vv,Ob as Uv,Oc as Ju,P as Gu,Pa as Cr,Pb as Ge,Pc as yw,Q as tw,Qb as vw,Qc as wr,R as pa,Rb as _w,Rc as be,S as Bv,Sb as H,Sc as te,T as qu,Ta as Od,Tb as W,Tc as It,U as iw,Ua as dw,Ub as rr,Uc as Gn,V as Nv,Vb as Te,Vc as xw,W as no,Wb as oe,X as rw,Xb as ae,Yb as b,Zb as p,_b as m,_c as G,a as lt,ac as Y,ad as Ne,b as pi,ba as nw,bc as B,bd as ee,ca as gs,cc as zi,cd as Hv,d as j2,da as oo,dc as Ut,dd as de,e as Y2,ea as Zr,ec as Ht,f as $r,fa as vs,fc as vt,g as Ri,ga as ow,gb as ke,gc as J,h as Et,ha as aw,hb as re,hc as lo,ib as Ad,ja as sw,jd as li,k as da,ka as Ye,kb as pw,kc as R,l as K2,la as ao,lb as v,lc as bw,mc as S,n as fs,na as St,nc as Gl,o as Ze,oa as ti,oc as ql,od as Wv,p as Pd,pa as ie,pb as uw,pc as Qr,pd as jt,q as Lv,qa as ju,qb as mw,qc as Ui,r as $2,ra as Yu,rb as zv,rc as Ce,s as Z2,sa as Ku,sb as Bd,sc as Se,sd as Cw,t as Q2,tb as Qu,td as No,u as Fd,ub as N,v as hn,va as $u,vb as fw,vc as Ve,w as Ov,wa as L,wb as hw,wc as Wn,xa as O,xc as Rt,xd as ot,ya as Ft,yc as Lt,yd as wi,za as _s,zc as _e}from"./chunk-RZGHLHJX.js";var cI=Y2((hLe,oh)=>{"use strict";var Wk,Gk,qk,jk,Yk,Kk,$k,Zk,Qk,rh,Cy,Xk,Jk,eI,xc,tI,iI,rI,nI,oI,aI,sI,lI,nh;(function(i){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){i(e(t,e(r)))}):typeof oh=="object"&&typeof oh.exports=="object"?i(e(t,e(oh.exports))):i(e(t));function e(r,n){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(o,a){return r[o]=n?n(o,a):a}}})(function(i){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])};Wk=function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(r,n);function o(){this.constructor=r}
1r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},Gk=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},qk=function(r,n){var o={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&n.indexOf(a)<0&&(o[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(r);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(r,a[s])&&(o[a[s]]=r[a[s]]);return o},jk=function(r,n,o,a){var s=arguments.length,l=s<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,o):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,n,o,a);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(l=(s<3?c(l):s>3?c(n,o,l):c(n,o))||l);return s>3&&l&&Object.defineProperty(n,o,l),l},Yk=function(r,n){return function(o,a){n(o,a,r)}},Kk=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},$k=function(r,n,o,a){function s(l){return l instanceof o?l:new o(function(c){c(l)})}return new(o||(o=Promise))(function(l,c){function d(g){try{h(a.next(g))}catch(_){c(_)}}function u(g){try{h(a.throw(g))}catch(_){c(_)}}function h(g){g.done?l(g.value):s(g.value).then(d,u)}h((a=a.apply(r,n||[])).next())})},Zk=function(r,n){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(h){return function(g){return u([h,g])}}function u(h){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,s&&(l=h[0]&2?s.return:h[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,h[1])).done)return l;switch(s=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,s=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(l=o.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){o.label=h[1];break}if(h[0]===6&&o.label<l[1]){o.label=l[1],l=h;break}if(l&&o.label<l[2]){o.label=l[2],o.ops.push(h);break}l[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(r,o)}catch(g){h=[6,g],s=0}finally{a=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Qk=function(r,n){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&nh(n,r,o)},nh=Object.create?function(r,n,o,a){a===void 0&&(a=o),Object.defineProperty(r,a,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,a){a===void 0&&(a=o),r[a]=n[o]},rh=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],a=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Cy=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var a=o.call(r),s,l=[],c;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(d){c={error:d}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(c)throw c.error}}return l},Xk=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Cy(arguments[n]));return r},Jk=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var a=Array(r),s=0,n=0;n<o;n++)for(var l=arguments[n],c=0,d=l.length;c<d;c++,s++)a[s]=l[c];return a},eI=function(r,n,o){if(o||arguments.length===2)for(var a=0,s=n.length,l;a<s;a++)(l||!(a in n))&&(l||(l=Array.prototype.slice.call(n,0,a)),l[a]=n[a]);return r.concat(l||n)},xc=function(r){return this instanceof xc?(this.v=r,this):new xc(r)},tI=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=o.apply(r,n||[]),s,l=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(y){a[y]&&(s[y]=function(C){return new Promise(function(x,w){l.push([y,C,x,w])>1||d(y,C)})})}function d(y,C){try{u(a[y](C))}catch(x){_(l[0][3],x)}}function u(y){y.value instanceof xc?Promise.resolve(y.value.v).then(h,g):_(l[0][2],y)}function h(y){d("next",y)}function g(y){d("throw",y)}function _(y,C){y(C),l.shift(),l.length&&d(l[0][0],l[0][1])}},iI=function(r){var n,o;return n={},a("next"),a("throw",function(s){throw s}),a("return"),n[Symbol.iterator]=function(){return this},n;function a(s,l){n[s]=r[s]?function(c){return(o=!o)?{value:xc(r[s](c)),done:s==="return"}:l?l(c):c}:l}},rI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof rh=="function"?rh(r):r[Symbol.iterator](),o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o);function a(l){o[l]=r[l]&&function(c){return new Promise(function(d,u){c=r[l](c),s(d,u,c.done,c.value)})}}function s(l,c,d,u){Promise.resolve(u).then(function(h){l({value:h,done:d})},c)}},nI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r};var e=Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n};oI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&nh(n,r,o);return e(n,r),n},aI=function(r){return r&&r.__esModule?r:{default:r}},sI=function(r,n,o,a){if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?r!==n||!a:!n.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?a:o==="a"?a.call(r):a?a.value:n.get(r)}
1,lI=function(r,n,o,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?r!==n||!s:!n.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(r,o):s?s.value=o:n.set(r,o),o},i("__extends",Wk),i("__assign",Gk),i("__rest",qk),i("__decorate",jk),i("__param",Yk),i("__metadata",Kk),i("__awaiter",$k),i("__generator",Zk),i("__exportStar",Qk),i("__createBinding",nh),i("__values",rh),i("__read",Cy),i("__spread",Xk),i("__spreadArrays",Jk),i("__spreadArray",eI),i("__await",xc),i("__asyncGenerator",tI),i("__asyncDelegator",iI),i("__asyncValues",rI),i("__makeTemplateObject",nI),i("__importStar",oI),i("__importDefault",aI),i("__classPrivateFieldGet",sI),i("__classPrivateFieldSet",lI)})});var BI=Y2((WLe,mh)=>{"use strict";var vI,_I,bI,yI,xI,CI,SI,wI,TI,ph,Dy,EI,kI,II,Tc,DI,MI,PI,FI,RI,LI,OI,AI,uh;(function(i){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){i(e(t,e(r)))}):typeof mh=="object"&&typeof mh.exports=="object"?i(e(t,e(mh.exports))):i(e(t));function e(r,n){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(o,a){return r[o]=n?n(o,a):a}}})(function(i){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])};vI=function(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},_I=Object.assign||function(r){for(var n,o=1,a=arguments.length;o<a;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])}return r},bI=function(r,n){var o={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&n.indexOf(a)<0&&(o[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(r);s<a.length;s++)n.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(r,a[s])&&(o[a[s]]=r[a[s]]);return o},yI=function(r,n,o,a){var s=arguments.length,l=s<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,o):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,n,o,a);else for(var d=r.length-1;d>=0;d--)(c=r[d])&&(l=(s<3?c(l):s>3?c(n,o,l):c(n,o))||l);return s>3&&l&&Object.defineProperty(n,o,l),l},xI=function(r,n){return function(o,a){n(o,a,r)}},CI=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},SI=function(r,n,o,a){function s(l){return l instanceof o?l:new o(function(c){c(l)})}return new(o||(o=Promise))(function(l,c){function d(g){try{h(a.next(g))}catch(_){c(_)}}function u(g){try{h(a.throw(g))}catch(_){c(_)}}function h(g){g.done?l(g.value):s(g.value).then(d,u)}h((a=a.apply(r,n||[])).next())})},wI=function(r,n){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,s,l,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(h){return function(g){return u([h,g])}}function u(h){if(a)throw new TypeError("Generator is already executing.");for(;o;)try{if(a=1,s&&(l=h[0]&2?s.return:h[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,h[1])).done)return l;switch(s=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,s=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(l=o.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){o=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){o.label=h[1];break}if(h[0]===6&&o.label<l[1]){o.label=l[1],l=h;break}if(l&&o.label<l[2]){o.label=l[2],o.ops.push(h);break}l[2]&&o.ops.pop(),o.trys.pop();continue}h=n.call(r,o)}catch(g){h=[6,g],s=0}
1finally{a=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},TI=function(r,n){for(var o in r)o!=="default"&&!Object.prototype.hasOwnProperty.call(n,o)&&uh(n,r,o)},uh=Object.create?function(r,n,o,a){a===void 0&&(a=o),Object.defineProperty(r,a,{enumerable:!0,get:function(){return n[o]}})}:function(r,n,o,a){a===void 0&&(a=o),r[a]=n[o]},ph=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],a=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Dy=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var a=o.call(r),s,l=[],c;try{for(;(n===void 0||n-- >0)&&!(s=a.next()).done;)l.push(s.value)}catch(d){c={error:d}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(c)throw c.error}}return l},EI=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(Dy(arguments[n]));return r},kI=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var a=Array(r),s=0,n=0;n<o;n++)for(var l=arguments[n],c=0,d=l.length;c<d;c++,s++)a[s]=l[c];return a},II=function(r,n,o){if(o||arguments.length===2)for(var a=0,s=n.length,l;a<s;a++)(l||!(a in n))&&(l||(l=Array.prototype.slice.call(n,0,a)),l[a]=n[a]);return r.concat(l||n)},Tc=function(r){return this instanceof Tc?(this.v=r,this):new Tc(r)},DI=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=o.apply(r,n||[]),s,l=[];return s={},c("next"),c("throw"),c("return"),s[Symbol.asyncIterator]=function(){return this},s;function c(y){a[y]&&(s[y]=function(C){return new Promise(function(x,w){l.push([y,C,x,w])>1||d(y,C)})})}function d(y,C){try{u(a[y](C))}catch(x){_(l[0][3],x)}}function u(y){y.value instanceof Tc?Promise.resolve(y.value.v).then(h,g):_(l[0][2],y)}function h(y){d("next",y)}function g(y){d("throw",y)}function _(y,C){y(C),l.shift(),l.length&&d(l[0][0],l[0][1])}},MI=function(r){var n,o;return n={},a("next"),a("throw",function(s){throw s}),a("return"),n[Symbol.iterator]=function(){return this},n;function a(s,l){n[s]=r[s]?function(c){return(o=!o)?{value:Tc(r[s](c)),done:s==="return"}:l?l(c):c}:l}},PI=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof ph=="function"?ph(r):r[Symbol.iterator](),o={},a("next"),a("throw"),a("return"),o[Symbol.asyncIterator]=function(){return this},o);function a(l){o[l]=r[l]&&function(c){return new Promise(function(d,u){c=r[l](c),s(d,u,c.done,c.value)})}}function s(l,c,d,u){Promise.resolve(u).then(function(h){l({value:h,done:d})},c)}},FI=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r};var e=Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:!0,value:n})}:function(r,n){r.default=n};RI=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)o!=="default"&&Object.prototype.hasOwnProperty.call(r,o)&&uh(n,r,o);return e(n,r),n},LI=function(r){return r&&r.__esModule?r:{default:r}},OI=function(r,n,o,a){if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof n=="function"?r!==n||!a:!n.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?a:o==="a"?a.call(r):a?a.value:n.get(r)}
vendor: 9,701 bytes, lines 1-63
1,AI=function(r,n,o,a,s){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof n=="function"?r!==n||!s:!n.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?s.call(r,o):s?s.value=o:n.set(r,o),o},i("__extends",vI),i("__assign",_I),i("__rest",bI),i("__decorate",yI),i("__param",xI),i("__metadata",CI),i("__awaiter",SI),i("__generator",wI),i("__exportStar",TI),i("__createBinding",uh),i("__values",ph),i("__read",Dy),i("__spread",EI),i("__spreadArrays",kI),i("__spreadArray",II),i("__await",Tc),i("__asyncGenerator",DI),i("__asyncDelegator",MI),i("__asyncValues",PI),i("__makeTemplateObject",FI),i("__importStar",RI),i("__importDefault",LI),i("__classPrivateFieldGet",OI),i("__classPrivateFieldSet",AI)})});var mE=`
2    .p-popover {
3        margin-block-start: dt('popover.gutter');
4        background: dt('popover.background');
5        color: dt('popover.color');
6        border: 1px solid dt('popover.border.color');
7        border-radius: dt('popover.border.radius');
8        box-shadow: dt('popover.shadow');
9        will-change: transform;
10    }
11
12    .p-popover-content {
13        padding: dt('popover.content.padding');
14    }
15
16    .p-popover-flipped {
17        margin-block-start: calc(dt('popover.gutter') * -1);
18        margin-block-end: dt('popover.gutter');
19    }
20
21    .p-popover:after,
22    .p-popover:before {
23        bottom: 100%;
24        left: calc(dt('popover.arrow.offset') + dt('popover.arrow.left'));
25        content: ' ';
26        height: 0;
27        width: 0;
28        position: absolute;
29        pointer-events: none;
30    }
31
32    .p-popover:after {
33        border-width: calc(dt('popover.gutter') - 2px);
34        margin-left: calc(-1 * (dt('popover.gutter') - 2px));
35        border-style: solid;
36        border-color: transparent;
37        border-bottom-color: dt('popover.background');
38    }
39
40    .p-popover:before {
41        border-width: dt('popover.gutter');
42        margin-left: calc(-1 * dt('popover.gutter'));
43        border-style: solid;
44        border-color: transparent;
45        border-bottom-color: dt('popover.border.color');
46    }
47
48    .p-popover-flipped:after,
49    .p-popover-flipped:before {
50        bottom: auto;
51        top: 100%;
52    }
53
54    .p-popover.p-popover-flipped:after {
55        border-bottom-color: transparent;
56        border-top-color: dt('popover.background');
57    }
58
59    .p-popover.p-popover-flipped:before {
60        border-bottom-color: transparent;
61        border-top-color: dt('popover.border.color');
62    }
63`;var pO=["content"],uO=["*"],mO=i=>({closeCallback:i});function fO(i,t){}function hO(i,t){i&1&&M(0,fO,0,0,"ng-template")}function gO(i,t){if(i&1){let e=J();p(0,"div",1),R("click",function(n){L(e);let o=S();return O(o.onOverlayClick(n))})("pMotionOnEnter",function(n){L(e);let o=S();return O(o.onAnimationStart(n))})("pMotionOnAfterLeave",function(){L(e);let n=S();return O(n.onAnimationEnd())}),p(1,"div",2),R("click",function(n){L(e);let o=S();return O(o.onContentClick(n))})("mousedown",function(n){L(e);let o=S();return O(o.onContentClick(n))}),ql(2),M(3,hO,1,0,null,3),m()()}if(i&2){let e=S();Lt(e.sx("root")),_e(e.cn(e.cx("root"),e.styleClass)),b("pBind",e.ptm("root"))("ngStyle",e.style)("pMotion",e.overlayVisible)("pMotionAppear",!0)("pMotionOptions",e.computedMotionOptions()),Ge("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),v(),_e(e.cx("content")),b("pBind",e.ptm("content")),v(2),b("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",te(17,mO,e.onCloseClick.bind(e)))}}var vO={root:()=>({position:"absolute"})},_O={root:"p-popover p-component",content:"p-popover-content"},fE=(()=>{class i extends ga{name="popover";style=mE;classes=_O;inlineStyles=vO;static \u0275fac=(()=>{let e;return function(n){return(e||(e=si(i)))(n||i)}})();static \u0275prov=Ye({token:i,factory:i.\u0275fac})}return i})(),hE=new St("POPOVER_INSTANCE"),go=(()=>{class i extends Xr{componentName="Popover";$pcPopover=ie(hE,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=ie(ri,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}ariaLabel;ariaLabelledBy;dismissable=!0;style;styleClass;appendTo=jt("body");autoZIndex=!0;ariaCloseLabel;baseZIndex=0;focusOnShow=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";motionOptions=jt(void 0);computedMotionOptions=li(()=>lt(lt({},this.ptm("motion")),this.motionOptions()));onShow=new he;onHide=new he;$appendTo=li(()=>this.appendTo()||this.config.overlayAppendTo());container;overlayVisible=!1;render=!1;selfClick=!1;documentClickListener;target;willHide;scrollHandler;documentResizeListener;contentTemplate;templates;_contentTemplate;destroyCallback;overlayEventListener;overlaySubscription;_componentStyle=ie(fE);zone=ie(Si);overlayService=ie(fm);onAfterContentInit(){this.templates.forEach(e=>{e.getType()==="content"&&(this._contentTemplate=e.template)})}bindDocumentClickListener(){if(Hi(this.platformId)&&!this.documentClickListener){let e=mm()?"touchstart":"click",r=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(r,e,n=>{this.dismissable&&(!this.container?.contains(n.target)&&this.target!==n.target&&!this.target.contains(n.target)&&!this.selfClick&&this.hide(),this.selfClick=!1,this.cd.markForCheck())})}}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null,this.selfClick=!1)}toggle(e,r){this.overlayVisible?(this.hasTargetChanged(e,r)&&(this.destroyCallback=()=>{this.show(null,r||e.currentTarget||e.target)}),this.hide()):this.show(e,r)}show(e,r){r&&e&&e.stopPropagation(),this.container&&!this.overlayVisible&&(this.container=null),this.target=r||e.currentTarget||e.target,this.overlayVisible=!0,this.render=!0,this.cd.markForCheck()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}onContentClick(e){let r=e.target;this.selfClick=e.offsetX<r.clientWidth&&e.offsetY<r.clientHeight}hasTargetChanged(e,r){return this.target!=null&&this.target!==(r||e.currentTarget||e.target)}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?po(this.document.body,this.container):po(this.$appendTo(),this.container))}restoreAppend(){this.container&&this.$appendTo()&&this.$appendTo()!=="self"&&po(this.el.nativeElement,this.container)}setZIndex(){this.autoZIndex&&bn.set("overlay",this.container,this.baseZIndex+this.config.zIndex.overlay)}align(){if(this.target&&this.container){uT(this.container,this.target,!1);let e=uo(this.container),r=uo(this.target),n=this.document.defaultView?.getComputedStyle(this.container).getPropertyValue("border-radius"),o=0;e.left<r.left&&(o=r.left-e.left-parseFloat(n)*2),this.container.style.setProperty(yT("popover.arrow.left").name,`${o}px`),e.top<r.top&&(this.container.setAttribute("data-p-popover-flipped","true"),!this.$unstyled()&&xs(this.container,"p-popover-flipped"))}}onAnimationStart(e){this.container=e.element,this.container?.setAttribute(this.$attrSelector,""),this.appendOverlay(),this.align(),this.setZIndex(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.focusOnShow&&this.focus(),this.overlayEventListener=r=>{this.container&&this.container.contains(r.target)&&(this.selfClick=!0)},this.overlaySubscription=this.overlayService.clickObservable.subscribe(this.overlayEventListener),this.onShow.emit(null)}onAnimationEnd(){this.overlayVisible||(this.destroyCallback&&(this.destroyCallback(),this.destroyCallback=null),this.overlaySubscription&&this.overlaySubscription.unsubscribe(),this.autoZIndex&&bn.clear(this.container),this.onContainerDestroy(),this.onHide.emit({}),this.render=!1,this.container=null)}focus(){let e=Qt(this.container,"[autofocus]");e&&this.zone.runOutsideAngular(()=>{setTimeout(()=>e.focus(),5)})}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onCloseClick(e){this.hide(),e.preventDefault()}onEscapeKeydown(e){this.hide()}onWindowResize(){this.overlayVisible&&!_T()&&this.hide()}bindDocumentResizeListener(){if(Hi(this.platformId)&&!this.documentResizeListener){let e=this.document.defaultView;this.documentResizeListener=this.renderer.listen(e,"resize",this.onWindowResize.bind(this))}}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){Hi(this.platformId)&&(this.scrollHandler||(this.scrollHandler=new TT(this.target,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener())}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}onContainerDestroy(){this.cd.destroyed||(this.target=null),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener()}onDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&bn.clear(this.container),this.cd.destroyed||(this.target=null),this.destroyCallback=null,this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.overlaySubscription&&this.overlaySubscription.unsubscribe()}static \u0275fac=(()=>{let e;return function(n){return(e||(e=si(i)))(n||i)}})();static \u0275cmp=K({type:i,selectors:[["p-popover"]],contentQueries:function(r,n,o){if(r&1&&Qr(o,pO,4)(o,Gi,4),r&2){let a;Ce(a=Se())&&(n.contentTemplate=a.first),Ce(a=Se())&&(n.templates=a)}},hostBindings:function(r,n){r&1&&R("keydown.escape",function(a){return n.onEscapeKey
63down(a)},pw)},inputs:{ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",dismissable:[2,"dismissable","dismissable",ot],style:"style",styleClass:"styleClass",appendTo:[1,"appendTo"],autoZIndex:[2,"autoZIndex","autoZIndex",ot],ariaCloseLabel:"ariaCloseLabel",baseZIndex:[2,"baseZIndex","baseZIndex",wi],focusOnShow:[2,"focusOnShow","focusOnShow",ot],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",motionOptions:[1,"motionOptions"]},outputs:{onShow:"onShow",onHide:"onHide"},features:[wr([fE,{provide:hE,useExisting:i},{provide:va,useExisting:i}]),ua([ri]),Ke],ngContentSelectors:uO,decls:1,vars:1,consts:[["role","dialog","pMotionName","p-anchored-overlay",3,"pBind","class","style","ngStyle","pMotion","pMotionAppear","pMotionOptions"],["role","dialog","pMotionName","p-anchored-overlay",3,"click","pMotionOnEnter","pMotionOnAfterLeave","pBind","ngStyle","pMotion","pMotionAppear","pMotionOptions"],[3,"click","mousedown","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,n){r&1&&(Gl(),H(0,gO,4,19,"div",0)),r&2&&W(n.render?0:-1)},dependencies:[Vt,ci,fa,mo,ri,Ss,Cs],encapsulation:2,changeDetection:0})}return i})();var ya=(s=>(s[s.Unplugged=0]="Unplugged",s[s.Offline=1]="Offline",s[s.Online=2]="Online",s[s.Active=3]="Active",s[s.Overloaded=4]="Overloaded",s[s.Empty=5]="Empty",s[s.Unavailable=6]="Unavailable",s))(ya||{}),ws=(d=>(d[d.HighSlot=0]="HighSlot",d[d.MediumSlot=1]="MediumSlot",d[d.LowSlot=2]="LowSlot",d[d.RigSlot=3]="RigSlot",d[d.SubSystemSlot=4]="SubSystemSlot",d[d.DroneBay=5]="DroneBay",d[d.FighterBay=6]="FighterBay",d[d.ServiceSlot=7]="ServiceSlot",d[d.Unknown=9999]="Unknown",d[d.AnySlot=1e4]="AnySlot",d))(ws||{});var vo=class i{_updateFitStatistics=new Ze;updateFitStatistics(t){this._updateFitStatistics.next(t)}get _fitSlotEvents$(){return this._updateFitStatistics.asObservable()}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ye({token:i,factory:i.\u0275fac,providedIn:"root"})};var nc=class i{constructor(t,e){this.fitClient=t;this.fitService=e;this.slots={LowSlots:[],MediumSlots:[],RigSlots:[],SubSystemSlots:[],HighSlots:[],DroneBay:[],FighterBay:[],FighterTubes:[]},this.fitService._fitSlotEvents$.subscribe(r=>{this.fit&&this.fit.attributes&&(this.fit.attributes.highSlots=r.highSlots??0,this.fit.attributes.medSlots=r.medSlots??0,this.fit.attributes.lowSlots=r.lowSlots??0,this.fit.attributes.rigSlots=r.rigSlots??0,this.generateSlotConfig())})}fit=new Qw;inputSlots;statistics;droneBayMetadata={AvailableBandwidth:0};theoryCraftMode=!1;readOnly=!1;onUpdateFit=new he;onUpdateSlots=new he;get turretsFitted(){return this.statistics?.turretsFitted??0}get launchersFitted(){return this.statistics?.launchersFitted??0}get turretsTotal(){return this.statistics?.turretSlotsLeft??0}get launchersTotal(){return this.statistics?.launcherSlotsLeft??0}get turretPipCount(){return Math.min(this.turretsTotal,8)}get launcherPipCount(){return Math.min(this.launchersTotal,8)}get launcherPipStartAngle(){return 33.5-70/(this.fit.attributes?.highSlots??7)+10}get launcherIconAngle(){return 44}range(t){return Array.from({length:t},(e,r)=>r)}arcX(t,e){return 256+e*Math.sin(t*Math.PI/180)}arcY(t,e){return 256-e*Math.cos(t*Math.PI/180)}slots;possibleCharges=[];filteredCharges=[];filteredModule;ngOnChanges(t){t.fit&&!t.fit.isFirstChange()&&this.theoryCraftMode&&(this.slots={LowSlots:[],MediumSlots:[],RigSlots:[],SubSystemSlots:[],HighSlots:[],DroneBay:[],FighterBay:[],FighterTubes:[]},this.ngOnInit()),t.statistics&&this.statistics&&(this.droneBayMetadata.AvailableBandwidth=this.statistics.droneBandwidth,this.droneBayMetadata.MaxActiveDrones=this.statistics.droneMaxActive,this.droneBayMetadata.DroneCapacity=this.statistics.droneCapacityRaw)}getCombinedSlots(){let t=[...this.slots.HighSlots,...this.slots.MediumSlots,...this.slots.LowSlots,...this.slots.RigSlots];return this.fit.isT3Destroyer||(t=[...t,...this.slots.SubSystemSlots]),t}ngOnInit(){if(this.inputSlots!==void 0)this.slots=this.inputSlots;else{for(let t=0;t<=7;t++)this.slots.HighSlots.push({IsPassive:!1,AvailableSlots:this.getAvailableSlots(0),Data:void 0,Index:t,Rotation:this.getBaseRotationInfo(0),SlotType:0,State:t<(this.fit.attributes?.highSlots??0)?5:6,Droppable:!1,PossibleStates:[]}),this.slots.MediumSlots.push({IsPassive:!1,AvailableSlots:this.getAvailableSlots(1),Data:void 0,Index:t,Rotation:this.getBaseRotationInfo(1),SlotType:1,State:t<(this.fit.attributes?.medSlots??0)?5:6,Droppable:!1,PossibleStates:[]}),this.slots.LowSlots.push({IsPassive:!1,AvailableSlots:this.getAvailableSlots(2),Data:void 0,Index:t,Rotation:this.getBaseRotationInfo(2),SlotType:2,State:t<(this.fit.attributes?.lowSlots??0)?5:6,Droppable:!1,PossibleStates:[]});for(let t=0;t<=2;t++)this.slots.RigSlots.push({IsPassive:!1,AvailableSlots:this.getAvailableSlots(3),Data:void 0,Index:t,Rotation:this.getBaseRotationInfo(3),SlotType:3,State:t<(this.fit.attributes?.rigSlots??0)?5:6,Droppable:!1,PossibleStates:[]});for(let t=0;t<=3;t++)this.slots.SubSystemSlots.push({IsPassive:!1,AvailableSlots:this.getAvailableSlots(4),Data:void 0,Index:t,Rotation:this.getBaseRotationInfo(4),SlotType:4,State:t<(this.fit.attributes?.subSystemSlots??0)?5:6,Droppable:!1,PossibleStates:[]});this.generateSlotConfig(),this.populateDroneBay(this.fit.droneBay,this.slots.DroneBay,5),this.populateFighterBay(this.fit.fighterBay,this.slots.FighterBay,6)}this.populatePossibleCharges(),this.filterPossibleCharges(void 0)}generateSlotConfig(){this.populateSlots(this.fit.highSlot,this.slots.HighSlots,0),this.populateSlots(this.fit.mediumSlot,this.slots.MediumSlots,1),this.populateSlots(this.fit.lowSlot,this.slots.LowSlots,2),this.populateSlots(this.fit.rigSlot,this.slots.RigSlots,3),this.populateSlots(this.fit.subSlot,this.slots.SubSystemSlots,4)}populateSlots(t,e,r){t?.forEach(n=>{let o=(n.slotNumber??1)-1,a=e[o];a!==void 0&&(a.Data=n,a.State=n.state??5,a.IsPassive=this.isPassiveModule(n),a.PossibleStates=n.possibleStates??[])})}populateFighterBay(t,e,r){t?.forEach(n=>{e.push(this.updateFighterBay(n,r))}),this.resetFighterTubes()}resetFighterTubes(t=!1){let e=this.fit?.additionalShipInformation?this.fit?.additionalShipInformation.fighterTubes:0;this.slots.FighterTubes=[];for(let r=0;r<5;r++)this.slots.FighterTubes.push(this.updateFighterTubes(r<e));t&&this.informModuleStateChange()}updateFighterTubes(t=!1){return{Amount:void 0,MaxAmount:void 0,TypeId:void 0,IsEnabled:t}}updateFighterBay(t,e){return{Quantity:t.amount,Active:t.activeAmount,HoverQuantity:0,Data:t,SlotType:e,AdditionalInformation:t.additionalInformation}}populateDroneBay(t,e,r){t?.forEach(n=>{e.push(this.updateDroneBay(n,r))})}updateDroneBay(t,e){let r=t.additionalInformation?t.additionalInformation.droneBandwidthUsed:0;return{Quantity:t.amount,Active:0,HoverQuantity:0,Data:t,SlotType:e,BandwidthNeeded:r}}updateSlot(t,e){return{IsPassive:this.isPassiveModule(t),AvailableSlots:this.getAvailableSlots(e),Data:t,Index:(t.slotNumber??1)-1,Rotation:this.getBaseRotationInfo(e),SlotType:e,State:t.state??5,Droppable:!1,PossibleStates:t.possibleStates??[]}}getSlotRotation(t,e,r,n){return`--rotation: ${t+e/r*n}deg`}toggleModuleState(t){if(t!==void 0&&t.State!==6){if(t.State===5||t.PossibleStates.length==0)return;let e=t.State,r=t.PossibleStates.indexOf(e+1)!==-1?t.PossibleStates.indexOf(e+1):0;t.State=t.PossibleStates[r],this.informModuleStateChange()}}informModuleStateChange(){this.patchFit(),this.onUpdateFit.emit(!0),this.onUpdateSlots.emit(this.slots)}isPassiveModule(t){return t.possibleStates?.length==2&&t.possibleStates.indexOf(2)!==-1&&t.possibleStates.indexOf(1)!==-1}getDisplayState(t){return this.readOnly&&t===3?ya[2]:ya[t]}patchFit(){return this.fit.highSlot=[],this.slots.HighSlots.forEac
63h((t,e)=>{let r=t.Data;r!==void 0&&(r.state=t.State,this.fit.highSlot?.push(r))}),this.fit.mediumSlot=[],this.slots.MediumSlots.forEach((t,e)=>{let r=t.Data;r!==void 0&&(r.state=t.State,this.fit.mediumSlot?.push(r))}),this.fit.lowSlot=[],this.slots.LowSlots.forEach((t,e)=>{let r=t.Data;r!==void 0&&(r.state=t.State,this.fit.lowSlot?.push(r))}),this.fit.rigSlot=[],this.slots.RigSlots.forEach((t,e)=>{let r=t.Data;r!==void 0&&(r.state=t.State,this.fit.rigSlot?.push(r))}),this.fit.subSlot=[],this.slots.SubSystemSlots.forEach((t,e)=>{let r=t.Data;r!==void 0&&(r.state=t.State,this.fit.subSlot?.push(r))}),this.fit.droneBay=[],this.slots.DroneBay.forEach(t=>{let e=t.Data;e!==void 0&&(e.activeAmount=t.Active,this.fit.droneBay?.push(e))}),this.fit.fighterBay?.forEach(t=>{let e=this.slots.FighterTubes.filter(r=>r.TypeId==t.typeId);t.activeAmount=0,e.forEach(r=>t.activeAmount+=r.Amount??0),(t.activeAmount??0)>(t.amount??0)&&(t.amount=t.activeAmount)}),this.fit}getAvailableSlots(t){switch(t){case 0:return this.fit.attributes?.highSlots??0;case 1:return this.fit.attributes?.medSlots??0;case 2:return this.fit.attributes?.lowSlots??0;case 3:return this.fit.attributes?.rigSlots??0;case 4:return this.fit.attributes?.subSystemSlots??0}return 0}getBaseRotationInfo(t){switch(t){default:case 0:return{InitialRotation:-36.5,Divider:70,SlotAmount:7};case 1:return{InitialRotation:53,Divider:70,SlotAmount:7};case 2:return{InitialRotation:142,Divider:72,SlotAmount:7};case 3:return{InitialRotation:-74,Divider:21,SlotAmount:2};case 4:return{InitialRotation:-128,Divider:38,SlotAmount:3}}}getEmptySlotIcon(t){switch(t){default:case 0:return"/shared/assets/public/images/fit/icon-highslot.png";case 1:return"/shared/assets/public/images/fit/icon-mediumslot.png";case 2:return"/shared/assets/public/images/fit/icon-lowslot.png";case 3:return"/shared/assets/public/images/fit/icon-rigslot.png";case 4:return"/shared/assets/public/images/fit/icon-subsystemslot.png"}}canUseItemAsCharge(t){return this.possibleCharges.filter(r=>r.charges.filter(n=>n.typeId==t).length>0).length>0}getModuleForCharge(t){let e=this.possibleCharges.filter(n=>n.charges.filter(o=>o.typeId==t).length>0),r=[];return e.forEach(n=>{r.push(n.typeId)}),r}populatePossibleCharges(){if(this.fit.possibleCharges!==void 0)for(let[t,e]of Object.entries(this.fit.possibleCharges??[])){let r=parseInt(t),n=this.getCombinedSlots().filter(a=>a.Data?.typeId==r),o={charges:[],typeId:r,typeName:n[0].Data?.typeName};e.forEach(a=>{o.charges.push({typeId:a.typeId,typeName:a.name})}),this.possibleCharges.push(o)}}filterPossibleCharges(t,e=!1){t===void 0||t===this.filteredModule&&!e?(this.filteredCharges=this.possibleCharges,this.filteredModule=void 0):(this.filteredModule=t,this.filteredCharges=this.possibleCharges.filter(r=>r.typeId==t))}unloadAmmo(t){t.Data!==void 0&&(t.Data.chargeTypeName=void 0,t.Data.chargeTypeId=null),this.informModuleStateChange()}unloadModule(t){t.Data=void 0,t.State=5,t.IsPassive=!1,t.PossibleStates=[],this.informModuleStateChange()}toggleOnlineOffline(t){t.State==2||t.State==3?t.State=1:t.State=2}switchTacticalMode(t){this.fit.tacticalMode=t,this.informModuleStateChange()}SlotType=ws;SlotState=ya;static \u0275fac=function(e){return new(e||i)(N(it),N(vo))};static \u0275cmp=K({type:i,selectors:[["app-fit-base"]],inputs:{fit:"fit",inputSlots:"inputSlots",statistics:"statistics",droneBayMetadata:"droneBayMetadata",theoryCraftMode:"theoryCraftMode",readOnly:"readOnly"},outputs:{onUpdateFit:"onUpdateFit",onUpdateSlots:"onUpdateSlots"},features:[xr],decls:0,vars:0,template:function(e,r){},encapsulation:2})};var bO=i=>({"tube-disabled":i});function yO(i,t){if(i&1&&(p(0,"span",11),f(1),m()),i&2){let e=S();v(),kt(" L: ",e.usedLightFighterTubes," / ",e.maxLightFighterTubes," ")}}function xO(i,t){if(i&1&&(p(0,"span",12),f(1),m()),i&2){let e=S();v(),kt(" H: ",e.usedHeavyFighterTubes," / ",e.maxHeavyFighterTubes," ")}}function CO(i,t){if(i&1&&(p(0,"span",13),f(1),m()),i&2){let e=S();v(),kt(" S: ",e.usedSupportFighterTubes," / ",e.maxSupportFighterTubes," ")}}function SO(i,t){i&1&&T(0,"span",22)}function wO(i,t){i&1&&(p(0,"span",23),f(1,"+"),m())}function TO(i,t){if(i&1&&(p(0,"span",24),T(1,"img",25),m()),i&2){let e=S().$implicit;v(),b("src",Q("https://images.evetech.net/types/",e.TypeId,"/render?size=128"),re)}}function EO(i,t){if(i&1){let e=J();p(0,"span",26),R("click",function(){L(e);let n=S().$implicit,o=S();return O(o.changeFighterAmount(n,-1))}),f(1,"-"),m(),p(2,"span",27),R("click",function(){L(e);let n=S().$implicit,o=S();return O(o.changeFighterAmount(n,1))}),f(3,"+"),m()}}function kO(i,t){i&1&&(p(0,"span",29),f(1,"open"),m())}function IO(i,t){i&1&&(p(0,"span",29),f(1,"disabled"),m())}function DO(i,t){if(i&1&&M(0,kO,2,0,"span",28)(1,IO,2,0,"span",28),i&2){let e=S().$implicit;b("ngIf",e.IsEnabled),v(),b("ngIf",!e.IsEnabled)}}function MO(i,t){if(i&1){let e=J();p(0,"div",6)(1,"div",14)(2,"div",15),f(3),m()(),p(4,"div",16)(5,"span",17),R("dragover",function(n){let o=L(e).$implicit,a=S();return O(a.canDropFighter(n,o))})("drop",function(n){let o=L(e).$implicit,a=S();return O(a.dropFighter(n,o))}),M(6,SO,1,0,"span",18)(7,wO,2,0,"span",19)(8,TO,2,2,"span",20),m()(),p(9,"div",21),H(10,EO,4,0)(11,DO,2,2),m()()}if(i&2){let e=t.$implicit,r=S();b("ngClass",te(9,bO,!e.IsEnabled)),v(3),kt(" ",e.Amount??0," / ",e.MaxAmount??0," "),v(2),Rt("drop-active",r.showDropFighter&&e.IsEnabled&&e.TypeId===void 0),v(),b("ngIf",r.showDropFighter&&e.TypeId===void 0&&e.IsEnabled),v(),b("ngIf",e.TypeId===void 0),v(),b("ngIf",e.TypeId!==void 0),v(2),W(e.TypeId!==void 0?10:11)}}function PO(i,t){if(i&1){let e=J();p(0,"div",7)(1,"div",30),R("dragstart",function(n){let o=L(e).$implicit,a=S();return O(a.dragFighterStart(n,(o.Data==null?null:o.Data.typeId)??0,(o.Data==null?null:o.Data.typeName)??""))})("dragend",function(n){L(e);let o=S();return O(o.dragFighterEnd(n))}),p(2,"div",31),f(3),m(),p(4,"div",32),T(5,"img",33),m(),p(6,"div",34)(7,"div"),f(8),m()()()()}if(i&2){let e=t.$implicit;v(3),V(" ",e.Quantity," x "),v(2),b("src",Q("https://images.evetech.net/types/",e.Data==null?null:e.Data.typeId,"/icon?size=128"),re)("alt",De(e.Data==null?null:e.Data.typeName)),v(3),V(" ",e.Data==null?null:e.Data.typeName," ")}}var oc=class i{fighterBay;fighterTubes;fit;onResetFighterTubes=new he;onInformChange=new he;maxLightFighterTubes=0;usedLightFighterTubes=0;maxHeavyFighterTubes=0;usedHeavyFighterTubes=0;maxSupportFighterTubes=0;usedSupportFighterTubes=0;showDropFighter=!1;dragFighterId;dragFighterName;ngOnInit(){this._refreshMaxTubes()}ngOnChanges(t){t.fit&&this._refreshMaxTubes()}_refreshMaxTubes(){this.maxLightFighterTubes=this.getMaxTubesOfType(0),this.maxHeavyFighterTubes=this.getMaxTubesOfType(1),this.maxSupportFighterTubes=this.getMaxTubesOfType(2)}getFighterInformation(){let t=this.fighterBay.filter(e=>e.Data?.typeId==this.dragFighterId);return t.length>0?t[0]:void 0}getFighterType(){let t=this.getFighterInformation(),e=t?.AdditionalInformation?t?.AdditionalInformation.fighterSquadronIsLight:!1,r=t?.AdditionalInformation?t?.AdditionalInformation.fighterSquadronIsHeavy:!1,n=t?.AdditionalInformation?t?.AdditionalInformation.fighterSquadronIsSupport:!1,o;return e&&(o=0),r&&(o=1),n&&(o=2),o}getMaxTubesOfType(t){switch(t){case 0:return this.fit.additionalShipInformation?.fighterLightSlots??0;case 1:return this.fit.additionalShipInformation?.fighterHeavySlots??0;case 2:return this.fit.additionalShipInformation?.fighterSupportSlots??0;default:return 0}}dragFighterStart(t,e,r){this.dragFighterId=e,this.dragFighterName=r,this.showDropFighter=!0}dragFighterEnd(t){this.showDropFighter=!1,this.dragFighterId=void 0,this.dragFighterName=void 0}dropFighter(t,e){let r=this.getFighterInformation();if(!r)return;let n=this.getFighterType();if(n===void 0)return;let o=this.getMaxTubesOfType(n);if(this.fighterTubes.filter(l=>l!==e&&l.FighterType===n).length>=o)return;let s=r.AdditionalInformation?.fighterSquadronMaxSize??0;e.TypeId=this.dragFighterId,e.Amount=s,e.MaxAmount=s,e.FighterType=n,this.updateUsedTubes(),this.onInformChange?.emit(!0)}changeFighterAmount(t,e){if(!(t.Amount==null||t.Amount+e>(t.MaxAmount??0))){if(t.Amount+e==0){t.Amount=void 0,t.TypeId=void 0,t.MaxAmount=void 0,t.FighterType=void 0,this.updateUsedTubes(),this.onInformChange?.emit(!0);return}t.Amount+=e,this.updateUsedTubes(),this.onInformChange?.emit(!0)}}canDropFighter(t,e){if(this.dragFighterId===void 0||!e.IsEnabled)return;let r=this.getFighterType();if(r===void 0)return;let n=this.getMaxTubesOfType(r);this.fighterTubes.filter(a=>a!==e&&a.FighterType===r).length>=n||t.preventDefault()}updateUsedTubes(){this.usedLightFighterTubes=this.fighterTubes.filter(t=>t.FighterType==0).length,this.usedHeavyFighterTubes=this.fighterTubes.filter(t=>t.FighterType==1).length,this.usedSupportFighterTubes=this.fighterTubes.filter(t=>t.FighterType==2).length}resetFighterTubes(){this.onResetFighterTubes?.emit(!0),this.updateUsedTubes()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["fit-fighter-bay"]],inputs:{fighterBay:"fighterBay",fighterTubes:"fighterTubes",fit:"fit"},outputs:{onResetFighterTubes:"onResetFighterTubes",onInformChange:"onInformChange"},features:[xr],decls:14,vars:3,consts:[[1,"fighters"],[1,"mt-2","mb-3","small"],["ewbTooltip","Light Figthers",4,"ngIf"],["ewbTooltip","Heavy Figthers",4,"ngIf"],["ewbTooltip","Support Figthers",4,"ngIf"],[1,"fighter-bay","row","row-cols-5"],[1,"col","tube",3,"ngClass"],[1,"bay"],[1,"row","mt-3"],[1,"col","text-center"],[1,"btn","btn-dark",3,"click"],["ewbTooltip","Light Figthers"],["ewbTooltip","Heavy Figthers"],["ewbTooltip","Support Figthers"],[1,"tube-head"],[1,"text-center"],[1,"tube-contents"],[1,"tube-circle",3,"dragover","drop"],["class","tube-circle-drop",4,"ngIf"],["class","tube-circle-sign",4,"ngIf"],["class","tube-circle-image",4,"ngIf"],[1,"tube-actions","text-center","mt-1","mb-1"],[1,"tube-circle-drop"],[1,"tube-circle-sign"],[1,"tube-circle-image"],[3,"src"],[1,"btn","btn-dark","btn-sm","action","me-2",3,"click"],[1,"btn","btn-dark","btn-sm","action",3,"click"],["class","text-muted text-small",4,"ngIf"],[1,"text-muted","text-small"],["draggable","true",1,"fighter",3,"dragstart","dragend"],[1,"d-inline-block","v-align-middle","text-center","me-3"],[1,"d-inline-block","me-3"],[1,"img-32",3,"src","alt"],[1,"d-inline-block"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1),M(2,yO,2,2,"span",2)(3,xO,2,2,"span",3)(4,CO,2,2,"span",4),m(),p(5,"div",5),oe(6,MO,12,11,"div",6,Te),m(),oe(8,PO,9,6,"div",7,Te),p(10,"div",8)(11,"div",9)(12,"button",10),R("click",function(){return r.resetFighterTubes()}),f(13,"Remove all"),m()()()()),e&2&&(v(2),b("ngIf",r.maxLightFighterTubes>0),v(),b("ngIf",r.maxHeavyFighterTubes>0),v(),b("ngIf",r.maxSupportFighterTubes>0),v(2),ae(r.fighterTubes),v(2),ae(r.fighterBay))},dependencies:[ge,_t,Pe],styles:[".fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube-disabled[_ngcontent-%COMP%]{opacity:.3}.fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube[_ng
63content-%COMP%]   .tube-contents[_ngcontent-%COMP%]{zoom:.5;align-items:center;text-align:center}.fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube[_ngcontent-%COMP%]   .tube-contents[_ngcontent-%COMP%]   .tube-circle[_ngcontent-%COMP%]{display:inline-block;border:1px solid rgba(204,204,204,.5);border-radius:50%;min-height:96px;min-width:96px;position:relative}.fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube[_ngcontent-%COMP%]   .tube-contents[_ngcontent-%COMP%]   .tube-circle.drop-active[_ngcontent-%COMP%]{border:3px dashed orangered!important;box-shadow:0 0 8px #ff450080}.fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube[_ngcontent-%COMP%]   .tube-contents[_ngcontent-%COMP%]   .tube-circle-drop[_ngcontent-%COMP%]{min-height:96px;min-width:96px;top:0;left:0;border-radius:50%;position:absolute}.fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube[_ngcontent-%COMP%]   .tube-contents[_ngcontent-%COMP%]   .tube-circle-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:50%;height:96px;width:96px}.fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube[_ngcontent-%COMP%]   .tube-contents[_ngcontent-%COMP%]   .tube-circle-sign[_ngcontent-%COMP%]{top:0;left:0;display:inline-block;text-align:center;line-height:0;position:absolute;font-size:64px;font-weight:100;margin-top:calc(50% + 3px);color:#cccccc80;min-height:96px;min-width:96px}.fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube[_ngcontent-%COMP%]   .tube-actions[_ngcontent-%COMP%]{padding:4px;font-size:24px}.fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube[_ngcontent-%COMP%]   .tube-actions[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]{padding:10px}.fighters[_ngcontent-%COMP%]   .fighter-bay[_ngcontent-%COMP%]   .tube[_ngcontent-%COMP%]   .tube-actions[_ngcontent-%COMP%]   .action[_ngcontent-%COMP%]:hover{text-shadow:#0d6efd 3px 3px 3px}.fighters[_ngcontent-%COMP%]   .bay[_ngcontent-%COMP%]   .fighter[_ngcontent-%COMP%]{padding:4px;cursor:move}.fighters[_ngcontent-%COMP%]   .bay[_ngcontent-%COMP%]   .fighter[_ngcontent-%COMP%]:hover{background-color:#285e4d66}@media(min-width:768px){.tube-contents[_ngcontent-%COMP%]{zoom:1}}"]})};var FO=()=>[1,2,3,4,5],RO=(i,t,e)=>({selected:i,unused:t,hover:e});function LO(i,t){if(i&1&&(p(0,"div"),f(1),m()),i&2){let e=S();v(),kt("",e.usedVolume," / ",e.metadata.DroneCapacity," m\xB3")}}function OO(i,t){if(i&1){let e=J();p(0,"div",12),R("mouseover",function(){let n=L(e).$implicit,o=S().$implicit,a=S();return O(a.highlightSlotDroneBay(o,n))})("click",function(){let n=L(e).$implicit,o=S().$implicit,a=S();return O(a.selectSlotDroneBay(o,o.Active==n?n-1:n))}),m()}if(i&2){let e=t.$implicit,r=S().$implicit,n=S();b("ngClass",Gn(1,RO,r.Active>=e,r.BandwidthNeeded*e>(n.metadata.AvailableBandwidth??0)-n.usedBandwidth+r.BandwidthNeeded*r.Active||n.calculateTotalActiveDrones()-r.Active+e>(n.metadata.MaxActiveDrones??5),r.HoverQuantity>=e))}}function AO(i,t){if(i&1){let e=J();p(0,"div",2)(1,"div",4)(2,"div",5),f(3),m(),p(4,"div",6),T(5,"img",7),m(),p(6,"div",8)(7,"div"),f(8),m(),p(9,"div",9),R("mouseout",function(){let n=L(e).$implicit,o=S();return O(o.highlightSlotDroneBay(n,0))}),p(10,"span",10),f(11,"Selected:"),m(),oe(12,OO,1,5,"div",11,rr),m()()()()}if(i&2){let e=t.$implicit;v(3),V(" ",e.Quantity," x "),v(2),b("src",Q("https://images.evetech.net/types/",e.Data==null?null:e.Data.typeId,"/icon?size=128"),re)("alt",De(e.Data==null?null:e.Data.typeName)),v(3),V(" ",e.Data==null?null:e.Data.typeName," "),v(4),ae(be(6,FO))}}function BO(i,t){i&1&&(p(0,"div",3),f(1,"Drop drone here"),m())}var ac=class i{fit;droneBay;metadata;showDrop=!1;onInformChange=new he;usedBandwidth=0;ngOnInit(){this.update()}highlightSlotDroneBay(t,e){t.BandwidthNeeded*e>(this.metadata?.AvailableBandwidth??0)-this.usedBandwidth+t.BandwidthNeeded*t.Active||t.BandwidthNeeded*e>(this.metadata?.AvailableBandwidth??0)||e>t.Quantity||this.calculateTotalActiveDrones()-t.Active+e>(this.metadata?.MaxActiveDrones??5)||(t.HoverQuantity=e)}selectSlotDroneBay(t,e){t.BandwidthNeeded*e>(this.metadata?.AvailableBandwidth??0)-this.usedBandwidth+t.BandwidthNeeded*t.Active||t.BandwidthNeeded*e>(this.metadata?.AvailableBandwidth??0)||e>t.Quantity||this.calculateTotalActiveDrones()-t.Active+e>(this.metadata?.MaxActiveDrones??5)||(t.Active=e,this.usedBandwidth=this.calculateUsedBandwidth(),this.onInformChange?.emit(!0))}calculateUsedBandwidth(){let t=0;return this.droneBay.forEach((e,r)=>{e.Active>0&&(t+=e.BandwidthNeeded*e.Active)}),t}calculateTotalActiveDrones(){return this.droneBay.reduce((t,e)=>t+e.Active,0)}get usedVolume(){return this.droneBay.reduce((t,e)=>{let r=e.Data?.additionalInformation?.volume??0;return t+r*e.Quantity},0)}update(){this.usedBandwidth=this.calculateUsedBandwidth()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["fit-drone-bay"]],inputs:{fit:"fit",droneBay:"droneBay",metadata:"metadata",showDrop:"showDrop"},outputs:{onInformChange:"onInformChange"},decls:10,vars:4,consts:[[1,"d-flex","justify-content-between","justify-content-center"],[1,"d-inline-block","small","text-end"],[1,"bay"],[1,"drop-zone-hint"],[1,"drone"],[1,"d-inline-block","v-align-middle","text-center","me-3"],[1,"d-inline-block","me-3"],[1,"img-48",3,"src","alt"],[1,"d-inline-block"],[1,"d-inline-flex","level-selector-container",3,"mouseout"],[1,"me-2"],[1,"level-selector",3,"ngClass"],[1,"level-selector",3,"mouseover","click","ngClass"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"h5"),f(2,"Drone Bay"),m(),p(3,"div",1)(4,"div"),f(5),m(),H(6,LO,2,2,"div"),m()(),oe(7,AO,14,7,"div",2,Te),H(9,BO,2,0,"div",3)),e&2&&(v(5),kt("",r.usedBandwidth," / ",r.metadata.AvailableBandwidth," mbit/s"),v(),W(r.metadata.DroneCapacity?6:-1),v(),ae(r.droneBay),v(2),W(r.showDrop?9:-1))},dependencies:[_t],styles:[".drop-zone-hint[_ngcontent-%COMP%]{text-align:center;color:#fff;font-size:.8rem;padding:8px 0 0;pointer-events:none;border-top:1px dashed rgba(255,69,0,.4);margin-top:8px}"]})};var sc=class i{slots;rackName;iconSuffix="high";iconClass="img-24";onInformChange=new he;
vendor: 16,384 bytes, lines 63-202
63setStateForRack(t){this.slots?.forEach(e=>{e.Data!==void 0&&e.PossibleStates.indexOf(t)!==-1?e.State=t:e.IsPassive&&t!==1&&(e.State=2)}),this.onInformChange?.emit(!0)}unloadAmmo(){this.slots?.forEach(t=>{t.Data!==void 0&&(t.Data.chargeTypeId=void 0,t.Data.chargeTypeName=void 0,t.Data.chargeAmount=void 0)}),this.onInformChange?.emit(!0)}SlotState=ya;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["fit-rack-state"]],inputs:{slots:"slots",rackName:"rackName",iconSuffix:"iconSuffix",iconClass:"iconClass"},outputs:{onInformChange:"onInformChange"},decls:23,vars:9,consts:[["rack",""],[1,"cursor-pointer",3,"click","ewbTooltip"],[3,"src","alt"],[1,"rack-options"],[1,"btn","btn-secondary","w-100","mb-1",3,"click"],["src","/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenuactions_fitting_online.png","alt","Online"],["src","/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenuactions_fitting_active.png","alt","Activate"],["src","/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenuactions_fitting_heat.png","alt","Overheat"],["src","/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenuactions_fitting_offline.png","alt","Offline"],["src","/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenuactions_fitting_unloadammo.png","alt","Unload Ammo"],[1,"btn","btn-secondary","w-100","mb-1",3,"disabled"],["src","/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenuactions_fitting_unload.png","alt","Unload Module"]],template:function(e,r){if(e&1){let n=J();p(0,"span",1),R("click",function(a){L(n);let s=Ve(3);return O(s.toggle(a))}),T(1,"img",2),m(),p(2,"p-popover",null,0)(4,"div",3)(5,"button",4),R("click",function(){return r.setStateForRack(r.SlotState.Online)}),T(6,"img",5),f(7," Online"),m(),p(8,"button",4),R("click",function(){return r.setStateForRack(r.SlotState.Active)}),T(9,"img",6),f(10," Activate"),m(),p(11,"button",4),R("click",function(){return r.setStateForRack(r.SlotState.Overloaded)}),T(12,"img",7),f(13," Overheat"),m(),p(14,"button",4),R("click",function(){return r.setStateForRack(r.SlotState.Offline)}),T(15,"img",8),f(16," Offline"),m(),p(17,"button",4),R("click",function(){return r.unloadAmmo()}),T(18,"img",9),f(19," Unload Ammo"),m(),p(20,"button",10),T(21,"img",11),f(22," Unload Module"),m()()()}e&2&&(b("ewbTooltip",Q("Open menu for ",r.rackName," Slots")),v(),_e(r.iconClass),b("src",Q("/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenu_fitting_",r.iconSuffix,".png"),re)("alt",De(r.rackName)),v(19),b("disabled",!0))},dependencies:[go,Pe],styles:[".rack-options[_ngcontent-%COMP%]{width:175px}"]})};var vE=`
64    .p-contextmenu {
65        background: dt('contextmenu.background');
66        color: dt('contextmenu.color');
67        border: 1px solid dt('contextmenu.border.color');
68        border-radius: dt('contextmenu.border.radius');
69        box-shadow: dt('contextmenu.shadow');
70        min-width: 12.5rem;
71    }
72
73    .p-contextmenu-root-list,
74    .p-contextmenu-submenu {
75        margin: 0;
76        padding: dt('contextmenu.list.padding');
77        list-style: none;
78        outline: 0 none;
79        display: flex;
80        flex-direction: column;
81        gap: dt('contextmenu.list.gap');
82    }
83
84    .p-contextmenu-submenu {
85        position: absolute;
86        display: flex;
87        flex-direction: column;
88        min-width: 100%;
89        z-index: 1;
90        background: dt('contextmenu.background');
91        color: dt('contextmenu.color');
92        border: 1px solid dt('contextmenu.border.color');
93        border-radius: dt('contextmenu.border.radius');
94        box-shadow: dt('contextmenu.shadow');
95    }
96
97    .p-contextmenu-item {
98        position: relative;
99    }
100
101    .p-contextmenu-item-content {
102        transition:
103            background dt('contextmenu.transition.duration'),
104            color dt('contextmenu.transition.duration');
105        border-radius: dt('contextmenu.item.border.radius');
106        color: dt('contextmenu.item.color');
107    }
108
109    .p-contextmenu-item-link {
110        cursor: pointer;
111        display: flex;
112        align-items: center;
113        text-decoration: none;
114        overflow: hidden;
115        position: relative;
116        color: inherit;
117        padding: dt('contextmenu.item.padding');
118        gap: dt('contextmenu.item.gap');
119        user-select: none;
120    }
121
122    .p-contextmenu-item-label {
123        line-height: 1;
124    }
125
126    .p-contextmenu-item-icon {
127        color: dt('contextmenu.item.icon.color');
128    }
129
130    .p-contextmenu-submenu-icon {
131        color: dt('contextmenu.submenu.icon.color');
132        margin-left: auto;
133        font-size: dt('contextmenu.submenu.icon.size');
134        width: dt('contextmenu.submenu.icon.size');
135        height: dt('contextmenu.submenu.icon.size');
136    }
137
138    .p-contextmenu-submenu-icon:dir(rtl) {
139        margin-left: 0;
140        margin-right: auto;
141    }
142
143    .p-contextmenu-item.p-focus > .p-contextmenu-item-content {
144        color: dt('contextmenu.item.focus.color');
145        background: dt('contextmenu.item.focus.background');
146    }
147
148    .p-contextmenu-item.p-focus > .p-contextmenu-item-content .p-contextmenu-item-icon {
149        color: dt('contextmenu.item.icon.focus.color');
150    }
151
152    .p-contextmenu-item.p-focus > .p-contextmenu-item-content .p-contextmenu-submenu-icon {
153        color: dt('contextmenu.submenu.icon.focus.color');
154    }
155
156    .p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover {
157        color: dt('contextmenu.item.focus.color');
158        background: dt('contextmenu.item.focus.background');
159    }
160
161    .p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover .p-contextmenu-item-icon {
162        color: dt('contextmenu.item.icon.focus.color');
163    }
164
165    .p-contextmenu-item:not(.p-disabled) > .p-contextmenu-item-content:hover .p-contextmenu-submenu-icon {
166        color: dt('contextmenu.submenu.icon.focus.color');
167    }
168
169    .p-contextmenu-item-active > .p-contextmenu-item-content {
170        color: dt('contextmenu.item.active.color');
171        background: dt('contextmenu.item.active.background');
172    }
173
174    .p-contextmenu-item-active > .p-contextmenu-item-content .p-contextmenu-item-icon {
175        color: dt('contextmenu.item.icon.active.color');
176    }
177
178    .p-contextmenu-item-active > .p-contextmenu-item-content .p-contextmenu-submenu-icon {
179        color: dt('contextmenu.submenu.icon.active.color');
180    }
181
182    .p-contextmenu-separator {
183        border-block-start: 1px solid dt('contextmenu.separator.border.color');
184    }
185
186    .p-contextmenu-mobile .p-contextmenu-submenu {
187        position: static;
188        box-shadow: none;
189        border: 0 none;
190        padding-inline-start: dt('tieredmenu.submenu.mobile.indent');
191        padding-inline-end: 0;
192    }
193
194    .p-contextmenu-mobile .p-contextmenu-submenu-icon {
195        transition: transform 0.2s;
196        transform: rotate(90deg);
197    }
198
199    .p-contextmenu-mobile .p-contextmenu-item-active > .p-contextmenu-item-content .p-contextmenu-submenu-icon {
200        transform: rotate(-90deg);
201    }
202`;var NO=["sublist"],VO=(i,t)=>({instance:i,processedItem:t}),bE=()=>({class:"p-contextmenu-submenu-icon"}),zO=()=>({exact:!1}),UO=i=>({$implicit:i});function HO(i,t){if(i&1&&T(0,"li",8),i&2){let e=S().$implicit,r=S(2);Lt(r.getItemProp(e,"style")),_e(r.cn(r.cx("separator"),r.getItemProp(e,"styleClass"))),b("pBind",r._ptm("separator")),Ge("id",r.getItemId(e))}}function WO(i,t){if(i&1&&T(0,"span",19),i&2){let e=S(4),r=e.$implicit,n=e.index,o=S(2);_e(o.cn(o.cx("itemIcon"),o.getItemProp(r,"icon"),o.getItemProp(r,"iconClass"))),b("ngStyle",o.getItemProp(r,"iconStyle"))("pBind",o.getPTOptions(r,n,"itemIcon")),Ge("aria-hidden",!0)("tabindex",-1)}}function GO(i,t){if(i&1&&(p(0,"span",19),f(1),m()),i&2){let e=S(4),r=e.$implicit,n=e.index,o=S(2);_e(o.cn(o.cx("itemLabel"),o.getItemProp(r,"labelClass"))),b("ngStyle",o.getItemProp(r,"labelStyle"))("pBind",o.getPTOptions(r,n,"itemLabel")),v(),V(" ",o.getItemLabel(r)," ")}}function qO(i,t){if(i&1&&T(0,"span",20),i&2){let e=S(4),r=e.$implicit,n=e.index,o=S(2);_e(o.cn(o.cx("itemLabel"),o.getItemProp(r,"labelClass"))),b("ngStyle",o.getItemProp(r,"labelStyle"))("innerHTML",o.getItemLabel(r),ke)("pBind",o.getPTOptions(r,n,"itemLabel"))}}function jO(i,t){if(i&1&&T(0,"p-badge",21),i&2){let e=S(4).$implicit,r=S(2);_e(r.getItemProp(e,"badgeStyleClass")),b("value",r.getItemProp(e,"badge"))("unstyled",r.unstyled())}}function YO(i,t){if(i&1&&(Ft(),T(0,"svg",24)),i&2){let e=S(5),r=e.$implicit,n=e.index,o=S(2);_e(o.cx("submenuIcon")),b("pBind",o.getPTOptions(r,n,"submenuIcon")),Ge("aria-hidden",!0)}}function KO(i,t){}function $O(i,t){i&1&&M(0,KO,0,0,"ng-template",25),i&2&&Uv("aria-hidden",!0)}function ZO(i,t){if(i&1&&(Ut(0),M(1,YO,1,4,"svg",22)(2,$O,1,1,null,23),Ht()),i&2){let e=S(6);v(),b("ngIf",!e.contextMenu.submenuIconTemplate&&!e.contextMenu._submenuIconTemplate),v(),b("ngTemplateOutlet",e.contextMenu.submenuIconTemplate||e.contextMenu._submenuIconTemplate)("ngTemplateOutletContext",be(3,bE))}}function QO(i,t){if(i&1&&(p(0,"a",15),M(1,WO,1,6,"span",16)(2,GO,2,5,"span",17)(3,qO,1,5,"ng-template",null,2,de)(5,jO,1,4,"p-badge",18)(6,ZO,3,4,"ng-container",11),m()),i&2){let e=Ve(4),r=S(3),n=r.$implicit,o=r.index,a=S(2);_e(a.cn(a.cx("itemLink"),a.getItemProp(n,"linkClass"))),b("target",a.getItemProp(n,"target"))("ngStyle",a.getItemProp(n,"linkStyle"))("pBind",a.getPTOptions(n,o,"itemLink")),Ge("href",a.getItemProp(n,"url"),re)("data-automationid",a.getItemProp(n,"automationId"))("title",a.getItemProp(n,"title"))("tabindex",-1),v(),b("ngIf",a.getItemProp(n,"icon")),v(),b("ngIf",a.getItemProp(n,"escape"))("ngIfElse",e),v(3),b("ngIf",a.getItemProp(n,"badge")),v(),b("ngIf",a.isItemGroup(n))}}function XO(i,t){if(i&1&&T(0,"span",19),i&2){let e=S(4),r=e.$implicit,n=e.index,o=S(2);_e(o.cn(o.cx("itemIcon"),o.getItemProp(r,"icon"),o.getItemProp(r,"iconClass"))),b("ngStyle",o.getItemProp(r,"iconStyle"))("pBind",o.getPTOptions(r,n,"itemIcon")),Ge("aria-hidden",!0)("tabindex",-1)}}function JO(i,t){if(i&1&&(p(0,"span",19),f(1),m()),i&2){let e=S(4),r=e.$implicit,n=e.index,o=S(2);_e(o.cn(o.cx("itemLabel"),o.getItemProp(r,"labelClass"))),b("ngStyle",o.getItemProp(r,"labelStyle"))("pBind",o.getPTOptions(r,n,"itemLabel")),v(),V(" ",o.getItemLabel(r)," ")}}function eA(i,t){if(i&1&&T(0,"span",20),i&2){let e=S(4),r=e.$implicit,n=e.index,o=S(2);_e(o.cn(o.cx("itemLabel"),o.getItemProp(r,"labelClass"))),b("ngStyle",o.getItemProp(r,"labelStyle"))("innerHTML",o.getItemLabel(r),ke)("pBind",o.getPTOptions(r,n,"itemLabel"))}}function tA(i,t){if(i&1&&T(0,"p-badge",21),i&2){let e=S(4).$implicit,r=S(2);_e(r.getItemProp(e,"badgeStyleClass")),b("value",r.getItemProp(e,"badge"))("unstyled",r.unstyled())}}function iA(i,t){if(i&1&&(Ft(),T(0,"svg",24)),i&2){let e=S(5),r=e.$implicit,n=e.index,o=S(2);_e(o.cx("submenuIcon")),b("pBind",o.getPTOptions(r,n,"submenuIcon")),Ge("aria-hidden",!0)}}function rA(i,t){}function nA(i,t){i&1&&M(0,rA,0,0,"ng-template",25),i&2&&Uv("aria-hidden",!0)}function oA(i,t){if(i&1&&(Ut(0),M(1,iA,1,4,"svg",22)(2,nA,1,1,null,23),Ht()),i&2){let e=S(6);v(),b("ngIf",!e.contextMenu.submenuIconTemplate&&!e.contextMenu._submenuIconTemplate),v(),b("ngTemplateOutlet",e.contextMenu.submenuIconTemplate||e.contextMenu._submenuIconTemplate)("ngTemplateOutletContext",be(3,bE))}}function aA(i,t){if(i&1&&(p(0,"a",26),M(1,XO,1,6,"span",16)(2,JO,2,5,"span",17)(3,eA,1,5,"ng-template",null,2,de)(5,tA,1,4,"p-badge",18)(6,oA,3,4,"ng-container",11),m()),i&2){let e=Ve(4),r=S(3),n=r.$implicit,o=r.index,a=S(2);_e(a.cn(a.cx("itemLink"),a.getItemProp(n,"linkClass"))),b("routerLink",a.getItemProp(n,"routerLink"))("queryParams",a.getItemProp(n,"queryParams"))("routerLinkActiveOptions",a.getItemProp(n,"routerLinkActiveOptions")||be(22,zO))("target",a.getItemProp(n,"target"))("ngStyle",a.getItemProp(n,"linkStyle"))("fragment",a.getItemProp(n,"fragment"))("queryParamsHandling",a.getItemProp(n,"queryParamsHandling"))("preserveFragment",a.getItemProp(n,"preserveFragment"))("skipLocationChange",a.getItemProp(n,"skipLocationChange"))("replaceUrl",a.getItemProp(n,"replaceUrl"))("state",a.getItemProp(n,"state"))("pBind",a.getPTOptions(n,o,"itemLink")),Ge("data-automationid",a.getItemProp(n,"automationId"))("title",a.getItemProp(n,"title"))("tabindex",-1),v(),b("ngIf",a.getItemProp(n,"icon")),v(),b("ngIf",a.getItemProp(n,"escape"))("ngIfElse",e),v(3),b("ngIf",a.getItemProp(n,"badge")),v(),b("ngIf",a.isItemGroup(n))}}function sA(i,t){if(i&1&&(Ut(0),M(1,QO,7,14,"a",13)(2,aA,7,23,"a",14),Ht()),i&2){let e=S(2).$implicit,r=S(2);v(),b("ngIf",!r.getItemProp(e,"routerLink")),v(),b("ngIf",r.getItemProp(e,"routerLink"))}}function lA(i,t){}function cA(i,t){i&1&&M(0,lA,0,0,"ng-template")}function dA(i,t){if(i&1&&(Ut(0),M(1,cA,1,0,null,23),Ht()),i&2){let e=S(2).$implicit,r=S(2);v(),b("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",te(2,UO,e.item))}}function pA(i,t){if(i&1){let e=J();p(0,"p-contextmenu-sub",27),R("itemClick",function(n){L(e);let o=S(4);return O(o.itemClick.emit(n))})("itemMouseEnter",function(n){L(e);let o=S(4);return O(o.onItemMouseEnter(n))}),m()}if(i&2){let e=S(2).$implicit,r=S(2);b("items",e.items)("itemTemplate",r.itemTemplate)("menuId",r.menuId)("visible",r.isItemActive(e)&&r.isItemGroup(e))("activeItemPath",r.activeItemPath)("focusedItemId",r.focusedItemId)("level",r.level+1)("pt",r.pt())("motionOptions",r.motionOptions)("unstyled",r.unstyled())}}function uA(i,t){if(i&1){let e=J();p(0,"li",9,1)(2,"div",10),R("click",function(n){L(e);let o=S().$implicit,a=S(2);return O(a.onItemClick(n,o))})("mouseenter",function(n){L(e);let o=S().$implicit,a=S(2);return O(a.onItemMouseEnter({$event:n,processedItem:o}))}),M(3,sA,3,2,"ng-container",11)(4,dA,2,4,"ng-container",11),m(),M(5,pA,1,10,"p-contextmenu-sub",12),m()}if(i&2){let e=S(),r=e.$implicit,n=e.index,o=S(2);Lt(o.getItemProp(r,"style")),_e(o.cn(o.cx("item",It(24,VO,o,r)),o.getItemProp(r,"styleClass"))),b("pBind",o.getPTOptions(r,n,"item"))("tooltipOptions",o.getItemProp(r,"tooltipOptions"))("pTooltipUnstyled",o.unstyled()),Ge("id",o.getItemId(r))("data-p-highlight",o.isItemActive(r))("data-p-focused",o.isItemFocused(r))("data-p-disabled",o.isItemDisabled(r))("aria-label",o.getItemLabel(r))("aria-disabled",o.isItemDisabled(r)||void 0)("aria-haspopup",o.isItemGroup(r)&&!o.getItemProp(r,"to")?"menu":void 0)("aria-expanded",o.isItemGroup(r)?o.isItemActive(r):void 0)("aria-level",o.level+1)("aria-setsize",o.getAriaSetSize())("aria-posinset",o.getAriaPosInset(n)),v(2),_e(o.cx("itemContent")),b("pBind",o.getPTOptions(r,n,"itemContent")),v(),b("ngIf",!o.itemTemplate),v(),b("ngIf",o.itemTemplate),v(),b("ngIf",o.isItemVisible(r)&&o.isItemGroup(r))}}function mA(i,t){if(i&1&&M(0,HO,1,6,"li",6)(1,uA,6,27,"li",7),i&2){let e=t.$implicit,r=S(2);b("ngIf",r.isItemVisible(e)&&r.getItemProp(e,"separator")),v(),b("ngIf",r.isItemVisible(e)&&!r.getItemProp(e,"separator"))}}function fA(i,t){if(i&1){let e=J();p(0,"ul",4,0),R("keydown",function(n){L(e);let o=S();return O(o.menuKeydown.emit(n))})("focus",function(n){L(e);let o=S();return O(o.menuFocus.emit(n))})("blur",function(n){L(e);let o=S();return O(o.menuBlur.emit(n))})("pMotionOnBeforeEnter",function(n){L(e);let o=S();return O(o.onBeforeEnter(n))})("pMotionOnAfterLeave",function(){L(e);let n=S();return O(n.onAfterLeave())}),M(2,mA,2,2,"ng-template",5),m()}if(i&2){let e=S();_e(e.root?e.cx("rootList"):e.cx("submenu")),b("pBind",e._ptm(e.root?"rootList":"submenu"))("tabindex",e.tabindex)("pMotion",e.root?!0:e.visible)("pMotionAppear",!0)("pMotionName","p-anchored-overlay")("pMotionOptions",e.motionOptions),Ge("id",e.menuId+"_list")("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy)("aria-activedescendant",e.focusedItemId)("aria-orientation","vertical"),v(2),b("ngForOf",e.items)}}var hA=["item"],gA=["submenuicon"],vA=["rootmenu"];function _A(i,t){if(i&1){let e=J();p(0,"div",3,0),R("pMotionOnBeforeEnter",function(n){L(e);let o=S();return O(o.onBeforeEnter(n))})("pMotionOnAfterEnter",function(){L(e);let n=S();return O(n.onAfterEnter())})("pMotionOnAfterLeave",function(){L(e);let n=S();return O(n.onAfterLeave())}),p(2,"p-contextmenu-sub",4,1),R("itemClick",function(n){L(e);let o=S();return O(o.onItemClick(n))})("menuFocus",function(n){L(e);let o=S();return O(o.onMenuFocus(n))})("menuBlur",function(n){L(e);let o=S();return O(o.onMenuBlur(n))})("menuK
202eydown",function(n){L(e);let o=S();return O(o.onKeyDown(n))})("itemMouseEnter",function(n){L(e);let o=S();return O(o.onItemMouseEnter(n))}),m()()}if(i&2){let e=S();Lt(e.sx("root")),_e(e.cn(e.cx("root"),e.styleClass)),b("ngStyle",e.style)("pBind",e.ptm("root"))("pMotion",e.visible())("pMotionName","p-anchored-overlay")("pMotionAppear",!0)("pMotionOptions",e.computedMotionOptions()),Ge("id",e.id),v(2),b("root",!0)("items",e.processedItems)("itemTemplate",e.itemTemplate||e._itemTemplate)("menuId",e.id)("ariaLabel",e.ariaLabel)("ariaLabelledBy",e.ariaLabelledBy)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("visible",e.submenuVisible())("focusedItemId",e.focused?e.focusedItemId:void 0)("activeItemPath",e.activeItemPath())("pt",e.pt())("unstyled",e.unstyled())("motionOptions",e.computedMotionOptions())}}var bA={root:{position:"absolute"}},yA={root:()=>["p-contextmenu p-component"],rootList:"p-contextmenu-root-list",item:({instance:i,processedItem:t})=>["p-contextmenu-item",{"p-contextmenu-item-active":i.isItemActive(t),"p-focus":i.isItemFocused(t),"p-disabled":i.isItemDisabled(t),"p-contextmenu-mobile":i.queryMatches}],itemContent:"p-contextmenu-item-content",itemLink:"p-contextmenu-item-link",itemIcon:"p-contextmenu-item-icon",itemLabel:"p-contextmenu-item-label",submenuIcon:"p-contextmenu-submenu-icon",submenu:"p-contextmenu-submenu",separator:"p-contextmenu-separator"},Dm=(()=>{class i extends ga{name="contextmenu";style=vE;classes=yA;inlineStyles=bA;static \u0275fac=(()=>{let e;return function(n){return(e||(e=si(i)))(n||i)}})();static \u0275prov=Ye({token:i,factory:i.\u0275fac})}return i})();var yE=new St("CONTEXTMENU_INSTANCE"),_E=new St("CONTEXTMENUSUB_INSTANCE"),xA=(()=>{class i extends Xr{el;renderer;contextMenu;get visible(){return this._visible}set visible(e){this._visible=e,(this._visible||this.root)&&this.render.set(!0)}items;itemTemplate;root=!1;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath;motionOptions;tabindex=0;itemClick=new he;itemMouseEnter=new he;menuFocus=new he;menuBlur=new he;menuKeydown=new he;sublistViewChild;render=ir(!1);hostName="ContextMenu";_componentStyle=ie(Dm);$pcContextMenu=ie(yE,{optional:!0,skipSelf:!0})??void 0;$pcContextMenuSub=ie(_E,{optional:!0,skipSelf:!0})??void 0;_visible=!1;constructor(e,r,n){super(),this.el=e,this.renderer=r,this.contextMenu=n,this.contextMenu.handleSubmenuAfterLeave=()=>{this.root&&this.onAfterLeave()}}getItemProp(e,r,n=null){return e&&e.item?Kv(e.item[r],n):void 0}getItemId(e){return e.item&&e.item?.id?e.item.id:`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemLabel(e){return this.getItemProp(e,"label")}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(r=>this.isItemVisible(r)&&this.getItemProp(r,"separator")).length+1}isItemVisible(e){return this.getItemProp(e,"visible")!==!1}isItemActive(e){if(this.activeItemPath)return this.activeItemPath.some(r=>r.key===e.key)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return co(e.items)}onItemMouseEnter(e){let{event:r,processedItem:n}=e;this.itemMouseEnter.emit({originalEvent:r,processedItem:n})}onItemClick(e,r){this.getItemProp(r,"command",{originalEvent:e,item:r.item}),this.itemClick.emit({originalEvent:e,processedItem:r,isFocus:!0})}onBeforeEnter(e){this.position(e.element)}onAfterLeave(){this.render.set(!1)}_ptm(e,r){return this.$pcContextMenu?this.$pcContextMenu.ptm(e,r):this.ptm(e,r)}getPTOptions(e,r,n){return this._ptm(n,{context:{item:e.item,index:r,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e)}})}position(e){let r=e.parentElement.parentElement,n=uo(e.parentElement.parentElement),o=$v(),a=e.offsetParent?e.offsetWidth:Ud(e),s=fT(r.children[0]);e.style.top="0px",parseInt(n.left,10)+s+a>o.width-zd()?e.style.left=-1*a+"px":e.style.left=s+"px"}static \u0275fac=function(r){return new(r||i)(N(Cr),N(Qu),N(sw(()=>p_)))};static \u0275cmp=K({type:i,selectors:[["p-contextMenuSub"],["p-contextmenu-sub"]],viewQuery:function(r,n){if(r&1&&Ui(NO,5),r&2){let o;Ce(o=Se())&&(n.sublistViewChild=o.first)}},inputs:{visible:"visible",items:"items",itemTemplate:"itemTemplate",root:[2,"root","root",ot],autoZIndex:[2,"autoZIndex","autoZIndex",ot],baseZIndex:[2,"baseZIndex","baseZIndex",wi],popup:[2,"popup","popup",ot],menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:[2,"level","level",wi],focusedItemId:"focusedItemId",activeItemPath:"activeItemPath",motionOptions:"motionOptions",tabindex:[2,"tabindex","tabindex",wi]},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},features:[wr([Dm,{provide:_E,useExisting:i},{provide:va,useExisting:i}]),Ke],decls:1,vars:1,consts:[["sublist",""],["listItem",""],["htmlLabel",""],["role","menu",3,"class","pBind","tabindex","pMotion","pMotionAppear","pMotionName","pMotionOptions"],["role","menu",3,"keydown","focus","blur","pMotionOnBeforeEnter","pMotionOnAfterLeave","pBind","tabindex","pMotion","pMotionAppear","pMotionName","pMotionOptions"],["ngFor","",3,"ngForOf"],["role","separator",3,"style","class","pBind",4,"ngIf"],["role","menuitem","pTooltip","",3,"style","class","pBind","tooltipOptions","pTooltipUnstyled",4,"ngIf"],["role","separator",3,"pBind"],["role","menuitem","pTooltip","",3,"pBind","tooltipOptions","pTooltipUnstyled"],[3,"click","mouseenter","pBind"],[4,"ngIf"],[3,"items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","pt","motionOptions","unstyled","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","class","ngStyle","pBind",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActiveOptions","target","class","ngStyle","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","pBind",4,"ngIf"],["pRipple","",3,"target","ngStyle","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","ngStyle","pBind",4,"ngIf","ngIfElse"],[3,"class","value","unstyled",4,"ngIf"],[3,"ngStyle","pBind"],[3,"ngStyle","innerHTML","pBind"],[3,"value","unstyled"],["data-p-icon","angle-right",3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","angle-right",3,"pBind"],[3,"aria-hidden"],["pRipple","",3,"routerLink","queryParams","routerLinkActiveOptions","target","ngStyle","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","pBind"],[3,"itemClick","itemMouseEnter","items","itemTemplate","menuId","visible","activeItemPath","focusedItemId","level","pt","motionOptions","unstyled"]],template:function(r,n){r&1&&H(0,fA,3,14,"ul",3),r&2&&W(n.render()?0:-1)},dependencies:[i,Vt,jl,ge,ci,fa,i_,$e,xm,l_,jT,ri,zT,qd,VT,mo,Wd,Ss,Cs],encapsulation:2})}return i})(),p_=(()=>{class i extends Xr{overlayService;componentName="ContextMenu";set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}triggerEvent="contextmenu";target;global;style;styleClass;autoZIndex=!0;baseZIndex=0;
vendor: 13,646 bytes, line 202
202id;breakpoint="960px";ariaLabel;ariaLabelledBy;pressDelay=500;appendTo=jt(void 0);motionOptions=jt(void 0);computedMotionOptions=li(()=>lt(lt({},this.ptm("motion")),this.motionOptions()));onShow=new he;onHide=new he;rootmenu;container;handleSubmenuAfterLeave=null;outsideClickListener;resizeListener;triggerEventListener;documentClickListener;documentTriggerListener;touchEndListener;pageX;pageY;visible=ir(!1);render=ir(!1);focused=!1;activeItemPath=ir([]);focusedItemInfo=ir({index:-1,level:0,parentKey:"",item:null});submenuVisible=ir(!1);$appendTo=li(()=>this.appendTo()||this.config.overlayAppendTo());searchValue="";searchTimeout;_processedItems;_model;pressTimer;hideCallback;matchMediaListener;query;queryMatches=ir(!1);_componentStyle=ie(Dm);get visibleItems(){let e=this.activeItemPath().find(r=>r.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){let e=this.focusedItemInfo();return e.item&&e.item?.id?e.item.id:e.index!==-1?`${this.id}${co(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e){super(),this.overlayService=e,cw(()=>{let r=this.activeItemPath();co(r)?this.bindGlobalListeners():this.visible()||this.unbindGlobalListeners()})}onInit(){this.id=this.id||bT("pn_id_"),this.bindMatchMediaListener(),this.bindTriggerEventListener()}isMobile(){return mm()||gT()}bindTriggerEventListener(){Hi(this.platformId)&&(this.triggerEventListener||(this.isMobile()?this.global?(this.triggerEventListener=this.renderer.listen(this.document,"touchstart",this.onTouchStart.bind(this)),this.touchEndListener=this.renderer.listen(this.document,"touchend",this.onTouchEnd.bind(this))):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,"touchstart",this.onTouchStart.bind(this)),this.touchEndListener=this.renderer.listen(this.target,"touchend",this.onTouchEnd.bind(this))):this.global?this.triggerEventListener=this.renderer.listen(this.document,this.triggerEvent,e=>{this.show(e)}):this.target&&(this.triggerEventListener=this.renderer.listen(this.target,this.triggerEvent,e=>{this.show(e)}))))}bindGlobalListeners(){if(Hi(this.platformId)){if(!this.documentClickListener){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentClickListener=this.renderer.listen(e,"click",r=>{this.container?.offsetParent&&this.isOutsideClicked(r)&&!r.ctrlKey&&r.button!==2&&this.hide()})}this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()}))}}itemTemplate;submenuIconTemplate;templates;_submenuIconTemplate;_itemTemplate;onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"submenuicon":this._submenuIconTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}getPTOptions(e,r,n,o){return this.ptm(e,{context:{item:r,index:n,focused:this.isItemFocused({index:n,item:r}),disabled:this.isItemDisabled(r)}})}isItemFocused(e){return this.focusedItemInfo().index===e.index}createProcessedItems(e,r=0,n={},o=""){let a=[];return e&&e.forEach((s,l)=>{let c=(o!==""?o+"_":"")+l,d={item:s,index:l,level:r,key:c,parent:n,parentKey:o};d.items=this.createProcessedItems(s.items,r+1,d,c),a.push(d)}),a}bindMatchMediaListener(){if(Hi(this.platformId)&&!this.matchMediaListener){let e=window.matchMedia(`(max-width: ${this.breakpoint})`);this.query=e,this.queryMatches.set(e.matches),this.matchMediaListener=()=>{this.queryMatches.set(e.matches),this.cd.markForCheck()},e.addEventListener("change",this.matchMediaListener)}}unbindMatchMediaListener(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)}getItemProp(e,r){return e?Kv(e[r]):void 0}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isProcessedItemGroup(e){return e&&co(e.items)}isSelected(e){return this.activeItemPath().some(r=>r.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&co(e.items)}onItemClick(e){let{processedItem:r}=e,n=this.isProcessedItemGroup(r);if(this.isSelected(r)){let{index:a,key:s,level:l,parentKey:c,item:d}=r;this.activeItemPath.set(this.activeItemPath().filter(u=>s!==u.key&&s.startsWith(u.key))),this.focusedItemInfo.set({index:a,level:l,parentKey:c,item:d}),zo(this.rootmenu?.sublistViewChild?.nativeElement)}else n?this.onItemChange(e):this.hide()}onItemMouseEnter(e){this.onItemChange(e,"hover")}onKeyDown(e){let r=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!r&&dT(e.key)&&this.searchItems(e,e.key);break}}onArrowDownKey(e){let r=this.focusedItemInfo().index!==-1?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,r),e.preventDefault()}onArrowRightKey(e){let r=this.visibleItems[this.focusedItemInfo().index];this.isProccessedItemGroup(r)&&(this.onItemChange({originalEvent:e,processedItem:r}),this.focusedItemInfo.set({index:-1,parentKey:r.key,item:r.item}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(this.focusedItemInfo().index!==-1){let r=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(r)&&this.onItemChange({originalEvent:e,processedItem:r})}this.hide(),e.preventDefault()}else{let r=this.focusedItemInfo().index!==-1?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,r),e.preventDefault()}}onArrowLeftKey(e){let r=this.visibleItems[this.focusedItemInfo().index],n=this.activeItemPath().find(s=>s.key===r.parentKey);Jl(r.parent)||(this.focusedItemInfo.set({index:-1,parentKey:n?n.parentKey:"",item:r.item}),this.searchValue="",this.onArrowDownKey(e));let a=this.activeItemPath().filter(s=>s.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(a),e.preventDefault()}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide();let r=this.findVisibleItem(this.findFirstFocusedItemIndex()),n=this.focusedItemInfo();this.focusedItemInfo.set(pi(lt({},n),{index:this.findFirstFocusedItemIndex(),item:r.item})),e.preventDefault()}onTabKey(e){if(this.focusedItemInfo().index!==-1){let r=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(r)&&this.onItemChange({originalEvent:e,processedItem:r})}this.hide()}onEnterKey(e){if(this.focusedItemInfo().index!==-1){let r=Qt(this.rootmenu?.el?.nativeElement,`li[id="${`${this.focusedItemId}`}"]`),n=r&&(Qt(r,'[data-pc-section="itemlink"]')||Qt(r,"a,button"));n?n.click():r&&r.click();let o=this.visibleItems[this.focusedItemInfo().index];if(!this.isProccessedItemGroup(o)){let s=this.focusedItemInfo();this.focusedItemInfo.set(pi(lt({},s),{index:this.findFirstFocusedItemIndex()}))}}e.preventDefault()}onItemChange(e,r){let{processedItem:n,isFocus:o}=e;if(Jl(n))return;let{index:a,key:s,level:l,parentKey:c,items:d}=n,u=co(d),h=this.activeItemPath().filter(g=>g.parentKey!==c&&g.parentKey!==s);u&&(h.push(n),this.submenuVisible.set(!0)),this.focusedItemInfo.set({index:a,level:l,parentKey:c,item:n.item}),o&&zo(this.rootmenu?.sublistViewChild?.nativeElement),!(r==="hover"&&this.queryMatches())&&this.activeItemPath.set(h)}onMenuFocus(e){this.focused=!0;let r=this.focusedItemInfo().index!==-1?this.focusedItemInfo():{index:-1,level:0,parentKey:"",item:null};this.focusedItemInfo.set(r)}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue=""}onBeforeEnter(e){this.container=e.element,this.appendOverlay(),this.moveOnTop(),this.position(),this.$attrSelector&&this.container?.setAttribute(this.$attrSelector,"")}onAfterEnter(){this.bindGlobalListeners(),zo(this.rootmenu?.sublistViewChild?.nativeElement)}onAfterLeave(){this.restoreOverlayAppend(),this.onOverlayHide(),this.handleSubmenuAfterLeave?.(),this.render.set(!1)}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?po(this.document.body,this.container):po(this.$appendTo(),this.container))}restoreOverlayAppend(){this.container&&this.$appendTo()!=="self"&&this.el.nativeElement.appendChild(this.container)}moveOnTop(){this.autoZIndex&&this.container&&bn.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}onOverlayHide(){this.unbindGlobalListeners(),this.cd.destroyed||(this.target=null),this.container&&this.autoZIndex&&bn.clear(this.container),this.container=null}onTouchStart(e){this.pressTimer=setTimeout(()=>{this.show(e)},this.pressDelay)}onTouchEnd(){clearTimeout(this.pressTimer)}hide(){this.visible.set(!1),this.onHide.emit(),this.hideCallback?.(),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null})}toggle(e){this.visible()?this.hide():this.show(e)}show(e){this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),zo(this.rootmenu?.sublistViewChild?.nativeElement),this.pageX=e.pageX,this.pageY=e.pageY,this.onShow.emit(),this.visible()?this.position():this.visible.set(!0),this.render.set(!0),e.stopPropagation(),e.preventDefault()}position(){if(!this.document.scrollingElement||!this.container)return;let e=this.pageX+1,r=this.pageY+1,n=this.container.offsetParent?this.container.offsetWidth:Ud(this.container),o=this.container.offsetParent?this.container.offsetHeight:um(this.container),a=$v();e+n-this.document.scrollingElement.scrollLeft>a.width&&(e-=n),r+o-this.document.scrollingElement.scrollTop>a.height&&(r-=o),e<this.document.scrollingElement.scrollLeft&&(e=this.document.scrollingElement.scrollLeft),r<this.document.scrollingElement.scrollTop&&(r=this.document.scrollingElement.scrollTop),this.container.style.left=e+"px",this.container.style.top=r+"px"}searchItems(e,r){this.searchValue=(this.searchValue||"")+r;let n=-1,o=!1;return this.focusedItemInfo().index!==-1?(n=this.visibleItems.slice(this.focusedItemInfo().index).findIndex(a=>this.isItemMatched(a)),n=n===-1?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(a=>this.isItemMatched(a)):n+this.focusedItemInfo().index):n=this.visibleItems.findIndex(a=>this.isItemMatched(a)),n!==-1&&(o=!0),n===-1&&this.focusedItemInfo().index===-1&&(n=this.findFirstFocusedItemIndex()),n!==-1&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}findVisibleItem(e){return co(this.visibleItems)?this.visibleItems[e]:null}findLastFocusedItemIndex(){let e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return Yv(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){let r=e>0?Yv(this.visibleItems.slice(0,e),n=>this.isValidItem(n)):-1;return r>-1?r:e}findNextItemIndex(e){let r=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(n=>this.isValidItem(n)):-1;return r>-1?r+e+1:e}findFirstFocusedItemIndex(){let e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}changeFocusedItemIndex(e,r){let n=this.findVisibleItem(r),o=this.focusedItemInfo();o.index!==r&&(this.focusedItemInfo.set(pi(lt({},o),{index:r,item:n.item})),this.scrollInView())}scrollInView(e=-1){let r=e!==-1?`${this.id}_${e}`:this.focusedItemId,n=Qt(this.rootmenu?.el?.nativeElement,`li[id="${r}"]`);n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"})}bindResizeListener(){Hi(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{this.hide()})))}isOutsideClicked(e){return!(this.container?.isSameNode(e.target)||this.container?.contains(e.target))}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}unbindGlobalListeners(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null),this.documentTriggerListener&&(this.documentTriggerListener(),this.documentTriggerListener=null),this.resizeListener&&(this.resizeListener(),this.resizeListener=null),this.touchEndListener&&(this.touchEndListener(),this.touchEndListener=null)}unbindTriggerEventListener(){this.triggerEventListener&&(this.triggerEventListener(),this.triggerEventListener=null)}onDestroy(){this.unbindGlobalListeners(),this.unbindTriggerEventListener(),this.unbindMat
202chMediaListener(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(r){return new(r||i)(N(fm))};static \u0275cmp=K({type:i,selectors:[["p-contextMenu"],["p-contextmenu"],["p-context-menu"]],contentQueries:function(r,n,o){if(r&1&&Qr(o,hA,4)(o,gA,4)(o,Gi,4),r&2){let a;Ce(a=Se())&&(n.itemTemplate=a.first),Ce(a=Se())&&(n.submenuIconTemplate=a.first),Ce(a=Se())&&(n.templates=a)}},viewQuery:function(r,n){if(r&1&&Ui(vA,5),r&2){let o;Ce(o=Se())&&(n.rootmenu=o.first)}},inputs:{model:"model",triggerEvent:"triggerEvent",target:"target",global:[2,"global","global",ot],style:"style",styleClass:"styleClass",autoZIndex:[2,"autoZIndex","autoZIndex",ot],baseZIndex:[2,"baseZIndex","baseZIndex",wi],id:"id",breakpoint:"breakpoint",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",pressDelay:[2,"pressDelay","pressDelay",wi],appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"]},outputs:{onShow:"onShow",onHide:"onHide"},features:[wr([Dm,{provide:yE,useExisting:i}]),Ke],decls:1,vars:1,consts:[["container",""],["rootmenu",""],[3,"class","style","ngStyle","pBind","pMotion","pMotionName","pMotionAppear","pMotionOptions"],[3,"pMotionOnBeforeEnter","pMotionOnAfterEnter","pMotionOnAfterLeave","ngStyle","pBind","pMotion","pMotionName","pMotionAppear","pMotionOptions"],[3,"itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter","root","items","itemTemplate","menuId","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","visible","focusedItemId","activeItemPath","pt","unstyled","motionOptions"]],template:function(r,n){r&1&&H(0,_A,4,25,"div",2),r&2&&W(n.render()?0:-1)},dependencies:[Vt,fa,xA,i_,l_,ri,qd,mo,Wd,Ss,Cs],encapsulation:2,changeDetection:0})}return i})();var CA=(i,t)=>t.key;function SA(i,t){if(i&1&&(Ft(),p(0,"g"),T(1,"path",9)(2,"path",10),m()),i&2){let e=S().$implicit,r=S();Rt("pulse",e.isOver),Ge("filter","url(#gaugeGlow)"),v(),Ge("d",e.fillPath)("stroke",e.fill)("stroke-width",r.band),v(),Ge("d",e.fillPath)("stroke",e.core)("stroke-width",r.coreWidth)}}function wA(i,t){if(i&1&&(Ft(),T(0,"line",6)),i&2){let e=t.$implicit;Ge("x1",e.x1)("y1",e.y1)("x2",e.x2)("y2",e.y2)("stroke-width",e.onFill?1:.9)("opacity",e.onFill?.9:.62)}}function TA(i,t){if(i&1&&(Ft(),T(0,"line",7)),i&2){let e=t.$implicit;Ge("x1",e.x1)("y1",e.y1)("x2",e.x2)("y2",e.y2)}}function EA(i,t){if(i&1&&(H(0,SA,3,9,":svg:g",5),Ft(),p(1,"g"),oe(2,wA,1,6,":svg:line",6,rr),oe(4,TA,1,4,":svg:line",7,rr),m(),T(6,"path",8)),i&2){let e=t.$implicit;W(e.fillPath?0:-1),v(),Rt("pulse",e.isOver),v(),ae(e.ticks),v(2),ae(e.markers),v(2),b("ewbTooltip",e.label+": "+e.used+" / "+e.total+" "+e.unit+" = "+e.percentage+" %")("tooltipFollowCursor",!0),Ge("d",e.trackPath)}}var xE=256,xa=226,jd=9,kA=5,IA=[{key:"cpu",label:"CPU",unit:"tf",rotation:134.5,angle:-44,intervals:40,markers:5,fill:"#7BACC3",core:"#BFE0E6",outputField:"cpuOutput",loadField:"cpuLoad"},{key:"pg",label:"Power Grid",unit:"MW",rotation:135,angle:44,intervals:40,markers:5,fill:"#C13B2D",core:"#F08070",outputField:"powerOutput",loadField:"powerLoad"},{key:"cal",label:"Calibration",unit:"pts",rotation:-47,angle:-30,intervals:30,markers:2,fill:"#AEB9C2",core:"#DCE4E9",outputField:"calibrationOutput",loadField:"calibrationLoad"}],Pm=class i{statistics;band=jd;coreWidth=kA;gauges=[];ngOnChanges(){this.gauges=IA.map(t=>this.buildGauge(t))}buildGauge(t){let e=this.num(this.statistics?.[t.outputField]),r=this.num(this.statistics?.[t.loadField]),n=e>0?Math.max(0,Math.min(r/e,1)):0,o=e>0&&r>e,a=-90+t.rotation,s=t.angle,l=[];for(let d=0;d<=t.intervals;d++){let u=d/t.intervals,h=a+s*u,g=this.pointOnCircle(h,xa-jd*.4),_=this.pointOnCircle(h,xa+jd*.55);l.push({x1:g.x,y1:g.y,x2:_.x,y2:_.y,onFill:Math.abs(s*n)>=Math.abs(s*u)})}let c=[];for(let d=0;d<t.markers;d++){let u=a+s*d/(t.markers-1),h=this.pointOnCircle(u,xa-jd*.5),g=this.pointOnCircle(u,xa+jd*.8);c.push({x1:h.x,y1:h.y,x2:g.x,y2:g.y,onFill:!1})}return{key:t.key,label:t.label,unit:t.unit,fill:t.fill,core:t.core,fillPath:this.buildArc(a,s*n),trackPath:this.buildArc(a,s),ticks:l,markers:c,used:r,total:e,percentage:e>0?Math.round(r/e*1e3)/10:0,isOver:o}}pointOnCircle(t,e){let r=t*Math.PI/180;return{x:xE+e*Math.cos(r),y:xE+e*Math.sin(r)}}buildArc(t,e){if(Math.abs(e)<.2)return"";let r=this.pointOnCircle(t,xa),n=this.pointOnCircle(t+e,xa),o=Math.abs(e)>180?1:0,a=e>=0?1:0;return`M ${r.x.toFixed(2)} ${r.y.toFixed(2)} A ${xa} ${xa} 0 ${o} ${a} ${n.x.toFixed(2)} ${n.y.toFixed(2)}`}num(t){return typeof t=="number"&&isFinite(t)?t:0}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["fit-resource-gauges"]],inputs:{statistics:"statistics"},features:[xr],decls:9,vars:0,consts:[["viewBox","24 24 464 464","xmlns","http://www.w3.org/2000/svg",1,"resource-gauges"],["id","gaugeGlow","x","-40%","y","-40%","width","180%","height","180%"],["stdDeviation","2","result","b"],["in","b"],["in","SourceGraphic"],[3,"pulse"],["stroke","#eef4f7"],["stroke","#eef4f7","stroke-width","1.4","opacity","0.92"],[1,"gauge-hit",3,"ewbTooltip","tooltipFollowCursor"],["fill","none","stroke-linecap","butt","opacity","0.96"],["fill","none","stroke-linecap","butt","opacity","0.55"]],template:function(e,r){e&1&&(Ft(),p(0,"svg",0)(1,"def
202s")(2,"filter",1),T(3,"feGaussianBlur",2),p(4,"feMerge"),T(5,"feMergeNode",3)(6,"feMergeNode",4),m()()(),oe(7,EA,7,6,null,null,CA),m()),e&2&&(v(7),ae(r.gauges))},dependencies:[Vt,Pe],styles:["[_nghost-%COMP%]{position:absolute;top:0;left:0;width:100%;pointer-events:none;z-index:2}.resource-gauges[_ngcontent-%COMP%]{display:block;position:absolute;top:0;left:0;width:100%;height:auto;overflow:visible}.gauge-hit[_ngcontent-%COMP%]{fill:none;stroke:transparent;stroke-width:22;pointer-events:stroke;cursor:help}.pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_gauge-breathe .5s ease-in-out infinite}@keyframes _ngcontent-%COMP%_gauge-breathe{0%,to{opacity:1}50%{opacity:.42}}"]})};var lc=class i{constructor(t){this.theoryCraftingClient=t;this.loadTheoryCrafterData()}possibleModuleStates;moduleCharges;hulls;loadTheoryCrafterData(){this.possibleModuleStates||this.theoryCraftingClient.possibleStates().subscribe(t=>{this.possibleModuleStates=t.result}),this.hulls||this.theoryCraftingClient.hulls().subscribe(t=>{t.success&&(this.hulls=t.result)}),this.moduleCharges||this.theoryCraftingClient.charges().subscribe(t=>{t.success&&(this.moduleCharges=t.result)})}getHulls(){return this.theoryCraftingClient.hulls()}compatibleHardwareCache={};turretTypeIdCache={};launcherTypeIdCache={};isModuleTurret(t,e){return this.turretTypeIdCache[t]?.has(e)??!1}isModuleLauncher(t,e){return this.launcherTypeIdCache[t]?.has(e)??!1}_extractHardpointSets(t,e){for(let r of e)r.id!=null&&r.attributes&&(r.attributes.turretHardpoint&&this.turretTypeIdCache[t].add(r.id),r.attributes.launcherHardpoint&&this.launcherTypeIdCache[t].add(r.id)),r.children?.length&&this._extractHardpointSets(t,r.children)}getCompatibleHardware(t){return Et(this,null,function*(){if(this.compatibleHardwareCache[t])return this.compatibleHardwareCache[t];let e=yield gn(this.theoryCraftingClient.hardware(t));if(e.success&&e.result)return this.compatibleHardwareCache[t]=e.result,this.turretTypeIdCache[t]=new Set,this.launcherTypeIdCache[t]=new Set,this._extractHardpointSets(t,e.result),e.result})}createEmptyFit(t){return Et(this,null,function*(){let e=yield gn(this.theoryCraftingClient.createEmptyFit(t));if(e.success&&e.result)return e.result})}importFromEft(t){return Et(this,null,function*(){let e=new aT;e.eft=t;let r=yield gn(this.theoryCraftingClient.loadFromEft(e));if(r.success&&r.result)return r.result})}getPossibleStatesForModule(t){if(this.possibleModuleStates==null)return[];let e=this.possibleModuleStates[t],r=[];for(let n=0;n<e.length;n++)r.push(e[n]);return r}canModuleHaveCharges(t){return this.moduleCharges==null?!1:this.moduleCharges[t]!=null}getModuleCharges(t){if(this.moduleCharges!=null&&this.moduleCharges[t]!=null)return this.moduleCharges[t]}getModuleAttribute(t,e,r){let n=this.compatibleHardwareCache[t];if(n)return this._findAttributeInTree(n,e,r)}_findAttributeInTree(t,e,r){for(let n of t){if(n.id===e)return n.attributes?.[r];if(n.children?.length){let o=this._findAttributeInTree(n.children,e,r);if(o!==void 0)return o}}}getSlotTypeForModule(t,e){let r=this.compatibleHardwareCache[t];if(r)return this._findSlotTypeInTree(r,e)}_findSlotTypeInTree(t,e){for(let r of t){if(r.id===e&&r.data)return this._slotTypeFromString(r.data);if(r.children?.length){let n=this._findSlotTypeInTree(r.children,e);if(n!==void 0)return n}}}_slotTypeFromString(t){switch(t){case"High":return 0;case"Mid":return 1;case"Low":return 2;case"Rig":return 3;case"Subsystem":return 4;case"Service":return 7;case"Drone":return 5;case"Fighter":return 6;default:return 9999}}static \u0275fac=function(e){return new(e||i)(ti(qw))};static \u0275prov=Ye({token:i,factory:i.\u0275fac,providedIn:"root"})};var DA=["slotContextMenu"],MA=i=>({data:i}),u_=i=>({active:i}),PA=i=>({title:"Cargo Bay",data:i}),FA=i=>({title:"Charges",data:i}),RA=i=>({title:"Implants",data:i}),LA=i=>({title:"Boosters",data:i}),SE=i=>({droppable:i}),Fm=(i,t)=>t.typeId,OA=(i,t)=>e=>e.IsEnabled;function AA(i,t){if(i&1){let e=J();p(0,"div")(1,"img",70),R("click",function(){let n=L(e).$implicit,o=S(3);return O(o.filterPossibleCharges(n.typeId))}),m()()}if(i&2){let e=t.$implicit,r=S(3);_e(Q("filter-module ",e.typeId===r.filteredModule?"selected":"")),v(),b("title",Q("Show charges for ",e.typeName))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,32,e.typeName),re)}}function BA(i,t){if(i&1&&(p(0,"div",7)(1,"div",68),oe(2,AA,2,6,"div",69,Fm),m()()),i&2){let e=S(2);v(2),ae(e.possibleCharges)}}function NA(i,t){if(i&1){let e=J();p(0,"div",74),R("dragstart",function(n){let o=L(e).$implicit,a=S().$implicit,s=S(2);return O(s.dragChargeStart(n,o.typeId,o.typeName,[a.typeId]))})("dragend",function(n){L(e);let o=S(3);return O(o.dragChargeEnd(n))}),T(1,"img",75),p(2,"div",76),f(3),m()()}if(i&2){let e=t.$implicit,r=S(3);v(),b("src",r.EveImageHelper.getTypeImageUrl(e.typeId,32,e.typeName),re),v(2),$(e.typeName)}}function VA(i,t){if(i&1&&(p(0,"div",71)(1,"span",72),f(2),m()(),oe(3,NA,4,2,"div",73,Fm)),i&2){let e=t.$implicit;v(2),$(e.typeName),v(),ae(e.charges)}}function zA(i,t){if(i&1){let e=J();p(0,"div",7)(1,"div",64)(2,"button",65),R("click",function(n){L(e);let o=Ve(5);return O(o.toggle(n))}),f(3,"Charges"),m(),p(4,"p-popover",null,6)(6,"div",66)(7,"h6"),f(8,"Possible charges"),m(),H(9,BA,4,0,"div",7),p(10,"div",67),oe(11,VA,5,1,null,null,Fm),m()()()()()}if(i&2){let e=S();v(9),W(e.possibleCharges.length>1?9:-1),v(2),ae(e.filteredCharges)}}function UA(i,t){if(i&1){let e=J();p(0,"div",77),R("drop",function(n){L(e);let o=S();return O(o.dropChargeHull(n))})("dragover",function(n){L(e);let o=S();return O(o.canDropCharge(n,-1))}),p(1,"div",78),f(2,"Drop the charge"),T(3,"br"),f(4,"to load on"),T(5,"br"),f(6,"all applicable slots."),m()()}}function HA(i,t){if(i&1){let e=J();p(0,"div",79),R("drop",function(n){L(e);let o=S();return O(o.dropModuleHull(n))})("dragover",function(n){L(e);let o=S();return O(o.canDropModule(n,o.SlotType.AnySlot))}),p(1,"div",80),f(2,"Drop the module"),T(3,"br"),f(4,"to load on"),T(5,"br"),f(6,"all empty applicable slots."),m()()}}function WA(i,t){if(i&1){let e=J();p(0,"div",79),R("drop",function(n){L(e);let o=S();return O(o.dropDroneOnBay(n))})("dragover",function(n){return n.preventDefault()}),p(1,"div",80),f(2,"Drop drone to add"),T(3,"br"),f(4,"to Drone Bay."),m()()}}function GA(i,t){if(i&1){let e=J();p(0,"div",79),R("drop",function(n){L(e);let o=S();return O(o.dropFighterToBay(n))})("dragover",function(n){return n.preventDefault()}),p(1,"div",80),f(2,"Drop fighter to add"),T(3,"br"),f(4,"to Fighter Bay."),m()()}}function qA(i,t){}function jA(i,t){i&1&&M(0,qA,0,0,"ng-template")}function YA(i,t){if(i&1&&M(0,jA,1,0,null,81),i&2){let e=t.$implicit;S();let r=Ve(55);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,MA,e))}}function KA(i,t){if(i&1){let e=J();p(0,"div",38)(1,"span",82),R("click",function(){L(e);let n=S();return O(n.switchTacticalMode(n.TacticalMode.Defense))}),T(2,"img",83),m(),p(3,"span",84),R("click",function(){L(e);let n=S();return O(n.switchTacticalMode(n.TacticalMode.Sharpshooter))}),T(4,"img",85),m(),p(5,"span",86),R("click",function(){L(e);let n=S();return O(n.switchTacticalMode(n.TacticalMode.Propulsion))}),T(6,"img",87),m()()}if(i&2){let e=S();v(),b("ngClass",te(9,u_,e.fit.tacticalMode===e.TacticalMode.Defense)),v(),b("ewbTooltip",Q("",e.fit.shipName," Defense Mode")),v(),b("ngClass",te(11,u_,e.fit.tacticalMode===e.TacticalMode.Sharpshooter)),v(),b("ewbTooltip",Q("",e.fit.shipName," Sharpshooter Mode")),v(),b("ngClass",te(13,u_,e.fit.tacticalMode===e.TacticalMode.Propulsion)),v(),b("ewbTooltip",Q("",e.fit.shipName," Propulsion Mode"))}}function $A(i,t){if(i&1&&(Ft(),T(0,"circle",89)),i&2){let e=t.$implicit,r=S(2);Rt("pip--used",e<r.turretsFitted),Ge("cx",r.arcX(322+e*3,224))("cy",r.arcY(322+e*3,224))}}function ZA(i,t){if(i&1&&(Ft(),p(0,"svg",39),oe(1,$A,1,4,":svg:circle",88,Te),m()),i&2){let e=S();v(),ae(e.range(e.turretPipCount))}}function QA(i,t){if(i&1&&(Ft(),T(0,"circle",89)),i&2){let e=t.$implicit,r=S(2);Rt("pip--used",e<r.launchersFitted),Ge("cx",r.arcX(r.launcherIconAngle-6-e*3,224))("cy",r.arcY(r.launcherIconAngle-6-e*3,224))}}function XA(i,t){if(i&1&&(Ft(),p(0,"svg",39),oe(1,QA,1,4,":svg:circle",88,Te),m()),i&2){let e=S();v(),ae(e.range(e.launcherPipCount))}}function JA(i,t){}function eB(i,t){i&1&&M(0,JA,0,0,"ng-template")}function tB(i,t){if(i&1&&(p(0,"div",42),M(1,eB,1,0,null,81),m()),i&2){let e=S(),r=Ve(51);v(),b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,PA,e.fit.cargoBay))}}function iB(i,t){if(i&1){let e=J();p(0,"div",90)(1,"div",93),R("dragover",function(n){L(e);let o=S(2);return O(o.showDropDrone&&n.preventDefault())})("drop",function(n){L(e);let o=S(2);return O(o.dropDroneOnBay(n))}),p(2,"div",94)(3,"fit-drone-bay",95),R("onInformChange",function(){L(e);let n=S(2);return O(n.informModuleStateChange())}),m()()()()}if(i&2){let e=S(2);v(),Rt("drop-target-active",e.showDropDrone)("bg-black",!e.showDropDrone),v(2),b("droneBay",e.slots.DroneBay)("metadata",e.droneBayMetadata)("fit",e.fit)("showDrop",e.
202showDropDrone)}}function rB(i,t){i&1&&(p(0,"div",97),f(1,"Drop fighter here"),m())}function nB(i,t){if(i&1){let e=J();p(0,"div",91)(1,"div",93),R("dragover",function(n){L(e);let o=S(2);return O(o.showDropFighter&&n.preventDefault())})("drop",function(n){L(e);let o=S(2);return O(o.dropFighterToBay(n))}),p(2,"div",94)(3,"h5"),f(4,"Fighter Bay"),m(),p(5,"fit-fighter-bay",96),R("onResetFighterTubes",function(){L(e);let n=S(2);return O(n.resetFighterTubes(!0))})("onInformChange",function(){L(e);let n=S(2);return O(n.informModuleStateChange())}),m(),H(6,rB,2,0,"div",97),m()()()}if(i&2){let e=S(2);v(),Rt("drop-target-active",e.showDropFighter)("bg-black",!e.showDropFighter),v(4),b("fit",e.fit)("fighterBay",e.slots.FighterBay)("fighterTubes",e.slots.FighterTubes),v(),W(e.showDropFighter?6:-1)}}function oB(i,t){}function aB(i,t){i&1&&M(0,oB,0,0,"ng-template")}function sB(i,t){}function lB(i,t){i&1&&M(0,sB,0,0,"ng-template")}function cB(i,t){}function dB(i,t){i&1&&M(0,cB,0,0,"ng-template")}function pB(i,t){}function uB(i,t){i&1&&M(0,pB,0,0,"ng-template")}function mB(i,t){if(i&1&&(p(0,"div",43),H(1,iB,4,8,"div",90),H(2,nB,7,8,"div",91),M(3,aB,1,0,null,81)(4,lB,1,0,null,92)(5,dB,1,0,null,81)(6,uB,1,0,null,81),m()),i&2){let e=S(),r=Ve(49),n=Ve(51),o=Ve(53);v(),W(e.slots.DroneBay.length>0||(e.droneBayMetadata.AvailableBandwidth??0)>0?1:-1),v(),W(e.slots.FighterBay.length>0||e.slots.FighterTubes.some(yw(9,OA,t))?2:-1),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(10,FA,e.fit.charges)),v(),b("ngTemplateOutlet",r),v(),b("ngTemplateOutlet",o)("ngTemplateOutletContext",te(12,RA,e.fit.implants)),v(),b("ngTemplateOutlet",o)("ngTemplateOutletContext",te(14,LA,e.fit.boosters))}}function fB(i,t){i&1&&(p(0,"div",97),f(1,"Drop module or charge here"),m())}function hB(i,t){if(i&1){let e=J();p(0,"div",103),R("dragstart",function(n){L(e);let o=S().$implicit,a=S(3);return O(a.dragChargeStartFromCargo(n,o.typeId,o.typeName,a.getModuleForCharge(o.typeId)))})("dragend",function(n){L(e);let o=S(4);return O(o.dragChargeEnd(n))}),T(1,"img",100),m()}if(i&2){let e=S().$implicit,r=S(3);v(),b("ewbTooltip",ma("",e.typeName," x ",e.amount))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,128,e.typeName),re)}}function gB(i,t){if(i&1){let e=J();p(0,"div",103),R("dragstart",function(n){L(e);let o=S().$implicit,a=S(3);return O(a.dragModuleStartFromCargo(n,o))})("dragend",function(n){L(e);let o=S(4);return O(o.dragModuleEnd(n))}),T(1,"img",100),m()}if(i&2){let e=S().$implicit,r=S(3);v(),b("ewbTooltip",ma("",e.typeName," x ",e.amount))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,128,e.typeName),re)}}function vB(i,t){if(i&1&&T(0,"img",100),i&2){let e=S().$implicit,r=S(3);b("ewbTooltip",ma("",e.typeName," x ",e.amount))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,128,e.typeName),re)}}function _B(i,t){if(i&1){let e=J();p(0,"span",104),R("click",function(){L(e);let n=S().$implicit,o=S(3);return O(o.removeFromCargo(n.typeId))}),f(1,"\xD7"),m()}}function bB(i,t){if(i&1&&(p(0,"div",98),H(1,hB,2,4,"div",99)(2,gB,2,4,"div",99)(3,vB,1,4,"img",100),p(4,"span",101),f(5),m(),H(6,_B,2,0,"span",102),m()),i&2){let e=t.$implicit,r=S(3);v(),W(r.canUseItemAsCharge(e.typeId)?1:r.theoryCraftMode&&r.getCargoItemSlotType(e)!==void 0?2:3),v(4),V("x",e.amount),v(),W(r.theoryCraftMode?6:-1)}}function yB(i,t){if(i&1){let e=J();p(0,"div",90)(1,"div",93),R("dragover",function(n){L(e);let o=S(2);return O(o.showDropCargo&&n.preventDefault())})("drop",function(n){L(e);let o=S(2);return O(o.dropToCargo(n))}),p(2,"div",94)(3,"h5"),f(4,"Cargo Bay"),m(),H(5,fB,2,0,"div",97),oe(6,bB,7,3,"div",98,Fm),m()()()}if(i&2){let e=S(2);v(),Rt("drop-target-active",e.showDropCargo)("bg-black",!e.showDropCargo),v(4),W(e.showDropCargo&&((e.fit.cargoBay==null?null:e.fit.cargoBay.length)??0)===0?5:-1),v(),ae(e.fit.cargoBay)}}function xB(i,t){if(i&1&&H(0,yB,8,5,"div",90),i&2){let e=S();W(e.theoryCraftMode&&e.hasCargoBay||((e.fit.cargoBay==null?null:e.fit.cargoBay.length)??0)>0?0:-1)}}function CB(i,t){if(i&1){let e=J();p(0,"div",108),R("dragstart",function(n){L(e);let o=S().$implicit,a=S(3);return O(a.dragChargeStart(n,o.typeId,o.typeName,a.getModuleForCharge(o.typeId)
202))})("dragend",function(n){L(e);let o=S(4);return O(o.dragChargeEnd(n))}),T(1,"img",100),m()}if(i&2){let e=S().$implicit,r=S(3);v(),b("ewbTooltip",ma("",e.typeName," x ",e.amount))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,128,e.typeName),re)}}function SB(i,t){if(i&1&&(p(0,"div",107),T(1,"img",100),m()),i&2){let e=S().$implicit,r=S(3);v(),b("ewbTooltip",ma("",e.typeName," x ",e.amount))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,128,e.typeName),re)}}function wB(i,t){if(i&1&&H(0,CB,2,4,"div",106)(1,SB,2,4,"div",107),i&2){let e=t.$implicit,r=S(3);W(r.canUseItemAsCharge(e.typeId)?0:1)}}function TB(i,t){if(i&1&&(p(0,"div",90)(1,"div",105)(2,"div",94)(3,"h5"),f(4),m(),oe(5,wB,2,1,null,null,Te),m()()()),i&2){let e=S(),r=e.data,n=e.title;v(4),$(n),v(),ae(r)}}function EB(i,t){if(i&1&&H(0,TB,7,1,"div",90),i&2){let e=t.data;W((e==null?null:e.length)>0?0:-1)}}function kB(i,t){if(i&1){let e=J();p(0,"div",109),T(1,"img",100),p(2,"span"),f(3),m(),p(4,"div",110)(5,"p-toggleswitch",111),Je("ngModelChange",function(n){let o=L(e).$implicit;return Xe(o.state,n)||(o.state=n),O(n)}),R("change",function(){L(e);let n=S(3);return O(n.informModuleStateChange())}),m()()()}if(i&2){let e=t.$implicit,r=S(3);v(),b("ewbTooltip",De(e.typeName))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,128,e.typeName),re),v(2),$(e.typeName),v(2),b("trueValue",r.SlotState.Offline)("falseValue",r.SlotState.Unplugged),Qe("ngModel",e.state)}}function IB(i,t){if(i&1&&(p(0,"div",90)(1,"div",105)(2,"div",94)(3,"h5"),f(4),m(),oe(5,kB,6,7,"div",109,Te),m()()()),i&2){let e=S(),r=e.data,n=e.title;v(4),$(n),v(),ae(r)}}function DB(i,t){if(i&1&&H(0,IB,7,1,"div",90),i&2){let e=t.data;W((e==null?null:e.length)>0?0:-1)}}function MB(i,t){i&1&&(Ft(),T(0,"use",117))}function PB(i,t){i&1&&(Ft(),T(0,"use",118))}function FB(i,t){if(i&1){let e=J();p(0,"div",122),R("dragstart",function(n){L(e);let o=S().data,a=S();return O(a.theoryCraftMode&&a.dragModuleStartFromSlot(n,o))})("dragend",function(n){L(e);let o=S(2);return O(o.theoryCraftMode&&o.dragModuleEnd(n))}),T(1,"img",123),m()}if(i&2){let e=S().data,r=S();Rt("draggable",r.theoryCraftMode)("dragging-from",r.dragFromSlot===e),Ge("draggable",r.theoryCraftMode?"true":null),v(),b("src",r.EveImageHelper.getTypeImageUrl(e.Data.chargeTypeId||e.Data.typeId,64,e.Data.chargeTypeName??e.Data.typeName??null),re)}}function RB(i,t){if(i&1){let e=J();p(0,"div",124),R("dragover",function(n){L(e);let o=S().data,a=S();return O(!a.readOnly&&a.canDropModule(n,o.SlotType))})("drop",function(n){L(e);let o=S().data,a=S();return O(!a.readOnly&&a.dropModule(n,o))}),T(1,"img",123),m()}if(i&2){let e=S().data,r=S();b("ngClass",te(2,SE,e.Droppable)),v(),b("src",r.getEmptySlotIcon(e.SlotType),re)}}function LB(i,t){i&1&&(p(0,"div"),T(1,"img",126),m())}function OB(i,t){if(i&1){let e=J();p(0,"div")(1,"img",127),R("click",function(){L(e);let n=S(2).data,o=S();return O(o.unloadModule(n))}),m()()}}function AB(i,t){if(i&1){let e=J();p(0,"div")(1,"img",128),R("click",function(){L(e);let n=S(2).data,o=S();return O(o.unloadAmmo(n))}),m()()}}function BB(i,t){if(i&1){let e=J();p(0,"div",121),H(1,LB,2,0,"div"),H(2,OB,2,0,"div"),H(3,AB,2,0,"div"),p(4,"div")(5,"img",125),R("click",function(){L(e);let n=S().data,o=S();return O(o.toggleOnlineOffline(n))}),m()()()}if(i&2){let e=S().data,r=S();v(),W(r.theoryCraftMode?-1:1),v(),W(r.theoryCraftMode?2:-1),v(),W(e.Data.chargeTypeId!==null?3:-1)}}function NB(i,t){if(i&1){let e=J();p(0,"div",112)(1,"div",113)(2,"div",114),R("drop",function(n){let o=L(e).data,a=S();return O(!a.readOnly&&a.dropChargeModule(n,o))})("dragover",function(n){let o=L(e).data,a=S();return O(!a.readOnly&&a.canDropCharge(n,(o==null||o.Data==null?null:o.Data.typeId)??0))})("click",function(){let n=L(e).data,o=S();return O(!o.readOnly&&o.toggleModuleState(n))})("contextmenu",function(n){let o=L(e).data,a=S();return O(!a.readOnly&&a.onSlotContextMenu(n,o))}),Ft(),p(3,"svg",115),T(4,"use",116),H(5,MB,1,0,":svg:use",117),H(6,PB,1,0,":svg:use",118),m(),H(7,FB,2,6,"div",119),H(8,RB,2,4,"div",120),m(),H(9,BB,6,3,"div",121),m()()}if(i&2){let e=t.data,r=S(),n=Ve(81);Lt(r.getSlotRotation(e.Rotation.InitialRotation,e.Rotation.Divider,e.Rotation.SlotAmount,e.Index)),v(2),_e(Q("slot-inner ",e.Index>=e.AvailableSlots?"unavailable":"")),b("ewbTooltip",n)("shouldShowTooltip",e.Data!=null)("ngClass",te(15,SE,e.Droppable))("tooltipData",e),Ge("data-state",r.getDisplayState(e.State)),v(3),W(!e.IsPassive&&e.Data!==void 0?5:-1),v(),W(e.IsPassive?6:-1),v(),W(e.Data!==void 0?7:-1),v(),W(e.State!==r.SlotState.Unavailable&&e.Data===void 0&&r.getEmptySlotIcon(e.SlotType)!==void 0?8:-1),v(),W(e.Data!==void 0&&!r.readOnly?9:-1)}}function VB(i,t){if(i&1&&(p(0,"div",133),T(1,"img",131),p(2,"span",132),f(3),m()()),i&2){let e=S().data,r=S();v(),b("alt",De(e.Data.chargeTypeName))("src",r.EveImageHelper.getTypeImageUrl(e.Data.chargeTypeId,32,e.Data.chargeTypeName??null),re),v(2),$(e.Data.chargeTypeName)}}function zB(i,t){i&1&&(p(0,"div",135)(1,"strong"),f(2,"Online Passive Module"),m()())}function UB(i,t){i&1&&(p(0,"div",136)(1,"strong"),f(2,"Offline Passive Module"),m()())}function HB(i,t){if(i&1&&H(0,zB,3,0,"div",135)(1,UB,3,0,"div",136),i&2){let e,r=S().data,n=S();W((e=r.State)===(n.SlotState.Online||n.SlotState.Active)?0:e===n.SlotState.Offline?1:-1)}}function WB(i,t){i&1&&(p(0,"div",135)(1,"strong"),f(2,"Online Module"),m()())}function GB(i,t){i&1&&(p(0,"div",137)(1,"strong"),f(2,"Active Module"),m()())}function qB(i,t){i&1&&(p(0,"div",138)(1,"strong"),f(2,"Overheated Module"),m()())}function jB(i,t){i&1&&(p(0,"div",136)(1,"strong"),f(2,"Offline Module"),m()())}function YB(i,t){if(i&1&&H(0,WB,3,0,"div",135)(1,GB,3,0,"div",137)(2,qB,3,0,"div",138)(3,jB,3,0,"div",136),i&2){let e,r=S().data,n=S();W((e=r.State)===n.SlotState.Online?0:e===n.SlotState.Active?1:e===n.SlotState.Overloaded?2:e===n.SlotState.Offline?3:-1)}}function KB(i,t){i&1&&(p(0,"div",134),f(1," You can right click for more options! "),m())}function $B(i,t){if(i&1&&(p(0,"div",129)(1,"div",130),T(2,"img",131),p(3,"span",132),f(4),m()(),H(5,VB,4,4,"div",133),H(6,HB,2,1)(7,YB,4,1),m(),H(8,KB,2,0,"div",134)),i&2){let e=t.data,r=S();v(2),b("alt",De(e.Data.typeName))("src",r.EveImageHelper.getTypeImageUrl(e.Data.typeId,32,e.Data.typeName),re),v(2),$(e.Data.typeName),v(),W(e.Data.chargeTypeId?5:-1),v(),W(e.IsPassive?6:7),v(2),W(r.readOnly?-1:8)}}var zr=class i extends nc{constructor(e,r,n,o){super(e,r);this.theoryCraftingService=n;this.typeService=o}EveImageHelper=vi;slotContextMenu;showCharges=!0;possibleModuleStates;slotContextMenuItems=[];onSlotContextMenu(e,r){r.Data&&(e.preventDefault(),this.slotContextMenuItems=[{label:"Information about module",icon:"pi pi-info-circle",command:()=>
202this.typeService.showTypeModal(r.Data.typeId)},...r.Data.chargeTypeId?[{label:"Information about charge",icon:"pi pi-info-circle",command:()=>this.typeService.showTypeModal(r.Data.chargeTypeId)}]:[]],this.slotContextMenu.show(e))}ngOnInit(){super.ngOnInit()}showDropCharge=!1;dragChargeId;dragChargeName;dragModuleIds;dropChargeHull(e){e.preventDefault(),this.getCombinedSlots().forEach(r=>{r.Data!==void 0&&this.dragModuleIds?.indexOf(r.Data.typeId??0)!==-1&&(r.Data.chargeTypeId=this.dragChargeId,r.Data.chargeTypeName=this.dragChargeName)}),this.informModuleStateChange(),this.dragChargeEnd(e)}dropChargeModule(e,r){e.preventDefault(),r.Data!==void 0&&(r.Data.chargeTypeId=this.dragChargeId,r.Data.chargeTypeName=this.dragChargeName),this.informModuleStateChange(),this.dragChargeEnd(e)}canDropCharge(e,r){(r===-1||(this.dragModuleIds??[]).indexOf(r)!==-1)&&e.preventDefault()}dragChargeStart(e,r,n,o){this.dragChargeId=r,this.dragChargeName=n,this.dragModuleIds=o,this.showDropCharge=!0,this.getCombinedSlots().filter(a=>o.indexOf(a.Data?.typeId??0)!==-1).forEach(a=>{a.Droppable=!0}),this.theoryCraftMode&&this.hasCargoBay&&(this.showDropCargo=!0)}dragChargeEnd(e){this.showDropCharge=!1,this.showDropCargo=!1,this.dragChargeId=void 0,this.dragChargeName=void 0,this.dragModuleIds=void 0,this.getCombinedSlots().filter(r=>r.Droppable).forEach(r=>{r.Droppable=!1})}dragModuleId;dragModuleName;dragModuleSlotType;dragModuleAttributes;dragFromCargoTypeId;dragFromSlot;showDropModule=!1;showDropDrone=!1;showDropFighter=!1;showDropCargo=!1;get hasCargoBay(){return(this.statistics?.cargoCapacity??0)>0}dropModule(e,r){return Et(this,null,function*(){if(e.preventDefault(),e.stopPropagation(),this.dragModuleId===void 0||this.dragModuleName===void 0||this.dragModuleSlotType===void 0)return;let n=this.dragFromSlot!==void 0&&!e.shiftKey;!n&&(this.dragModuleAttributes?.turretHardpoint&&this.turretsFitted>=this.turretsTotal||this.dragModuleAttributes?.launcherHardpoint&&this.launchersFitted>=this.launchersTotal)||(this.setModuleSlot(r),this._removeFromCargoIfNeeded(),n&&this._clearSlotData(this.dragFromSlot),this.dragFromSlot=void 0,this.informModuleStateChange(),this.dragModuleEnd(e))})}dragModuleStart(e,r,n,o,a){this.dragModuleId=r,this.dragModuleName=n,this.dragModuleSlotType=o,this.dragModuleAttributes=a,o===5?this.showDropDrone=!0:o===6?this.showDropFighter=!0:(this.showDropModule=!0,this.getCombinedSlots().filter(s=>s.SlotType==o&&s.State!=6).forEach(s=>{s.Droppable=!0})),this.theoryCraftMode&&this.hasCargoBay&&(this.showDropCargo=!0)}dragModuleEnd(e){this.dragModuleId=void 0,this.dragModuleName=void 0,this.dragModuleSlotType=void 0,this.dragModuleAttributes=void 0,this.dragFromCargoTypeId=void 0,this.dragFromSlot=void 0,this.showDropModule=!1,this.showDropDrone=!1,this.showDropFighter=!1,this.showDropCargo=!1,this.getCombinedSlots().filter(r=>r.Droppable).forEach(r=>{r.Droppable=!1})}getCargoItemSlotType(e){if(e.additionalInformation?._slotType!==void 0)return e.additionalInformation._slotType;if(this.fit?.shipId&&e.typeId)return this.theoryCraftingService.getSlotTypeForModule(this.fit.shipId,e.typeId)}dragChargeStartFromCargo(e,r,n,o){this.dragChargeStart(e,r,n,o),this.showDropCargo=!1}dragModuleStartFromCargo(e,r){let n=this.getCargoItemSlotType(r);if(n===void 0)return;this.dragFromCargoTypeId=r.typeId;let o=r.additionalInformation;this.dragModuleStart(e,r.typeId,r.typeName,n,o),this.showDropCargo=!1}dragModuleStartFromSlot(e,r){if(!r.Data)return;this.dragFromSlot=r;let n={};this.fit.shipId&&r.Data.typeId&&(this.theoryCraftingService.isModuleTurret(this.fit.shipId,r.Data.typeId)&&(n.turretHardpoint=1),this.theoryCraftingService.isModuleLauncher(this.fit.shipId,r.Data.typeId)&&(n.launcherHardpoint=1)),this.dragModuleStart(e,r.Data.typeId,r.Data.typeName,r.SlotType,n)}_clearSlotData(e){e.Data=void 0,e.State=5,e.IsPassive=!1,e.PossibleStates=[]}_removeFromCargoIfNeeded(){if(this.dragFromCargoTypeId===void 0||!this.fit.cargoBay)return;let e=this.fit.cargoBay.findIndex(r=>r.typeId===this.dragFromCargoTypeId);e!==-1&&this.fit.cargoBay.splice(e,1),this.dragFromCargoTypeId=void 0}_calculateDroneBayUsedVolume(){return this.slots.DroneBay.reduce((e,r)=>{let n=r.Data?.additionalInformation?.volume??(this.fit.shipId&&r.Data?.typeId?this.theoryCraftingService.getModuleAttribute(this.fit.shipId,r.Data.typeId,"volume")??0:0);return e+n*r.Quantity},0)}dropDroneOnBay(e){if(e.preventDefault(),this.dragModuleId===void 0||this.dragModuleName===void 0)return;if(this.droneBayMetadata.DroneCapacity){let n=this.dragModuleAttributes?.volume??0;if(this._calculateDroneBayUsedVolume()+n>this.droneBayMetadata.DroneCapacity)return}let r=this.fit.droneBay?.find(n=>n.typeId===this.dragModuleId);if(r){r.amount=(r.amount??0)+1;let n=this.slots.DroneBay.find(o=>o.Data?.typeId===this.dragModuleId);n&&n.Quantity++}else{let n=new Vd;n.typeId=this.dragModuleId,n.typeName=this.dragModuleName,n.amount=1,n.slotNumber=(this.fit.droneBay?.length??0)+1,n.price=0,n.canFitCharges=!1,n.additionalInformation=this.dragModuleAttributes??null,this.fit.droneBay||(this.fit.droneBay=[]),this.fit.droneBay.push(n),this.slots.DroneBay.push({SlotType:5,Data:n,HoverQuantity:0,Quantity:1,Active:1,BandwidthNeeded:this.dragModuleAttributes?.droneBandwidthUsed??0})}this._removeFromCargoIfNeeded(),this.informModuleStateChange(),this.dragModuleEnd(e)}dropFighterToBay(e){if(e.preventDefault(),this.dragModuleId===void 0||this.dragModuleName===void 0)return;if(!this.fit.fighterBay?.find(n=>n.typeId===this.dragModuleId)){let n=new Vd;n.typeId=this.dragModuleId,n.typeName=this.dragModuleName,n.amount=this.dragModuleAttributes?.fighterSquadronMaxSize??0,n.slotNumber=(this.fit.fighterBay?.length??0)+1,n.price=0,n.canFitCharges=!1,n.additionalInformation=this.dragModuleAttributes??null,this.fit.fighterBay||(this.fit.fighterBay=[]),this.fit.fighterBay.push(n),this.slots.FighterBay.push({SlotType:6,Data:n,HoverQuantity:0,Quantity:n.amount??0,Active:0,AdditionalInformation:this.dragModuleAttributes??null})}this._removeFromCargoIfNeeded(),this.informModuleStateChange(),this.dragModuleEnd(e)}canDropModule(e,r){this.dragModuleAttributes?.turretHardpoint&&this.turretsFitted>=this.turretsTotal||this.dragModuleAttributes?.launcherHardpoint&&this.launchersFitted>
202=this.launchersTotal||(r==1e4||this.dragModuleSlotType==r)&&e.preventDefault()}dropToCargo(e){e.preventDefault(),e.stopPropagation();let r=this.dragModuleId??this.dragChargeId,n=this.dragModuleName??this.dragChargeName;if(r===void 0||n===void 0)return;this.fit.cargoBay||(this.fit.cargoBay=[]);let o=this.fit.cargoBay.find(a=>a.typeId===r);if(o)o.amount=(o.amount??0)+1;else{let a=new Vd;a.typeId=r,a.typeName=n,a.amount=1,a.slotNumber=0,a.price=0,a.canFitCharges=!1,this.dragModuleId!==void 0&&(a.additionalInformation=pi(lt({},this.dragModuleAttributes??{}),{_slotType:this.dragModuleSlotType})),this.fit.cargoBay.push(a)}this.dragFromSlot&&(this._clearSlotData(this.dragFromSlot),this.dragFromSlot=void 0),this.informModuleStateChange(),this.dragModuleId!==void 0?this.dragModuleEnd(e):this.dragChargeEnd(e)}removeFromCargo(e){if(!this.fit.cargoBay)return;let r=this.fit.cargoBay.findIndex(n=>n.typeId===e);r!==-1&&this.fit.cargoBay.splice(r,1),this.informModuleStateChange()}dropModuleHull(e){if(e.preventDefault(),this.dragModuleId===void 0||this.dragModuleName===void 0||this.dragModuleSlotType===void 0)return;let r=!!this.dragModuleAttributes?.turretHardpoint,n=!!this.dragModuleAttributes?.launcherHardpoint,o=0,a=0;
202this.getCombinedSlots().forEach(s=>{s.Data!==void 0||!s.Droppable||r&&this.turretsFitted+o>=this.turretsTotal||n&&this.launchersFitted+a>=this.launchersTotal||(this.setModuleSlot(s),r&&o++,n&&a++)}),this.dragFromSlot&&!e.shiftKey&&this._clearSlotData(this.dragFromSlot),this.dragFromSlot=void 0,this._removeFromCargoIfNeeded(),this.informModuleStateChange(),this.dragModuleEnd(e)}setModuleSlot(e){if(this.dragModuleId===void 0||this.dragModuleName===void 0||this.dragModuleSlotType===void 0)return;let r=this.theoryCraftingService.getPossibleStatesForModule(this.dragModuleId),n=new Vd;n.typeName=this.dragModuleName,n.typeId=this.dragModuleId,n.slotNumber=(e.Index??0)+1,n.chargeTypeId=void 0,n.chargeTypeName=void 0,n.possibleStates=r,n.amount=1,n.price=0,n.canFitCharges=this.theoryCraftingService.canModuleHaveCharges(this.dragModuleId),e.Data=n,e.PossibleStates=r,e.IsPassive=this.isPassiveModule(n),r.indexOf(3)!==-1&&!e.IsPassive?e.State=3:r.indexOf(2)!==-1&&e.IsPassive&&(e.State=2)}TacticalMode=dm;top=top;static \u0275fac=function(r){return new(r||i)(N(it),N(vo),N(lc),N(xn))};static \u0275cmp=K({type:i,selectors:[["fit-radial"]],viewQuery:function(r,n){if(r&1&&Ui(DA,5),r&2){let o;Ce(o=Se())&&(n.slotContextMenu=o.first)}},inputs:{showCharges:"showCharges"},features:[Ke],decls:82,vars:24,consts:[["cargoBaySlot",""],["inventorySlot",""],["boosterImplantSlot",""],["slotTemplate",""],["slotContextMenu",""],["slotToolTip",""],["charges",""],[1,"row"],[1,"col"],[1,"d-flex","justify-content-center"],[1,"fit-radial"],[1,"fit-modules"],["viewBox","24 24 464 464","xmlns","http://www.w3.org/2000/svg",1,"ring-outer"],["cx","256","cy","256","r","224",2,"fill","none","stroke","rgb(0, 0, 0)","stroke-width","16"],["width","17","height","17","x","98","y","89",2,"fill","rgb(0, 0, 0)"],["width","17","height","17","x","401","y","93",2,"fill","rgb(0, 0, 0)"],["width","17","height","17","x","402","y","401",2,"fill","rgb(0, 0, 0)"],["width","17","height","17","x","94","y","402",2,"fill","rgb(0, 0, 0)"],["width","12","height","12","x","196","y","82","transform","rotate(56)",2,"fill","rgb(0, 0, 0)"],["viewBox","24 24 464 464","xmlns","http://www.w3.org/2000/svg",1,"ring-inner"],["id","slot-corners"],["width","512","height","512","x","0","y","0",2,"fill","rgb(255, 255, 255)"],["width","17","height","17","x","133","y","126",2,"fill","rgb(0, 0, 0)"],["width","17","height","17","x","366","y","129",2,"fill","rgb(0, 0, 0)"],["width","17","height","17","x","366","y","366",2,"fill","rgb(0, 0, 0)"],["width","17","height","17","x","132","y","369",2,"fill","rgb(0, 0, 0)"],["width","12","height","12","x","230","y","44","transform","rotate(56)",2,"fill","rgb(0, 0, 0)"],["cx","256","cy","256","r","195","mask","url(#slot-corners)",2,"fill","none","stroke","rgb(0, 0, 0)","stroke-width","46","stroke-opacity","0.6"],[3,"statistics"],[1,"hull"],[1,"drop-charge"],[1,"drop-module"],[3,"src","alt"],[1,"slots"],[1,"racks"],["rackName","High",1,"rack","rack-high",3,"onInformChange","slots"],["rackName","Mid","iconSuffix","med",1,"rack","rack-medium",3,"onInformChange","slots"],["rackName","Low","iconSuffix","low",1,"rack","rack-low",3,"onInformChange","slots"],[1,"tactical-modes"],["viewBox","24 24 464 464","xmlns","http://www.w3.org/2000/svg",1,"pip-overlay"],["href","/shared/assets/public/images/fit/radial/ui_texture_classes_fitting_iconturrethardpoint.png","width","14","height","14"],["href","/shared/assets/public/images/fit/radial/ui_texture_classes_fitting_iconlauncherhardpoint.png","width","14","height","14"],[1,"row","mt-4"],[1,"row","row-cols-1","row-cols-md-1","row-cols-lg-3","mt-4"],["appendTo","body",3,"model"],["viewBox","235 40 52 50","xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMin slice",2,"display","none"],["id","slot"],["d","M 243 46 A 210 210 0 0 1 279 46.7 L 276 84.7 A 172 172 0 0 0 246 84 L 243 46",2,"fill-opacity","0.1","stroke-width","1","stroke-opacity","0.5"],["id","slot-active"],["d","M 250 84 L 254 79 L 268 79 L 272 84",2,"fill-opacity","0.6","stroke-width","1"],["id","slot-passive"],["d","M 245 48 A 208 208 0 0 1 250 47.5 L 248 50 L 245 50",2,"stroke-width","1"],["d","M 277.5 48.5 A 208 208 0 0 0 273 48 L 275 50.5 L 277.5 50.5",2,"stroke-width","1"],["d","M 247 82 A 170 170 0 0 1 252 82 L 250 80 L 246.8 80",2,"stroke-width","1"],["d","M 275 82.5 A 170 170 0 0 0 270 82 L 272 80 L 275.2 80",2,"stroke-width","1"],["viewBox","0 0 20 20","xmlns","http://www.w3.org/2000/svg",2,"display","none"],["id","uncharge"],["d","M 4 6 A 8 8 0 1 1 4 14",2,"fill","none","stroke-width","1"],["d","M 11 6 L 6 10 L 11 14",2,"fill","none","stroke-width","1"],["d","M 6 10 L 16 10",2,"fill","none","stroke-width","1"],["id","unfit"],["id","offline"],["d","M 12 4 A 8 8 0 1 1 6 4",2,"fill","none","stroke-width","1"],["d","M 9 2 L 9 12",2,"fill","none","stroke-width","1"],[1,"d-sm-none","d-md-inline-block","col-md-1"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"p-0"],[1,"row","row-cols-1","charges","p-0","scroll"],[1,"col","filter-modules"],[3,"class"],[3,"click","
202src","title"],[1,"col-12","mt-2"],[1,"small","text-muted"],["draggable","true",1,"col","justify-content-center","mt-2","fit-charge"],["draggable","true",1,"col","justify-content-center","mt-2","fit-charge",3,"dragstart","dragend"],[1,"show-tooltip",3,"src"],[1,"d-inline-block",2,"font-size","12px"],[1,"drop-charge",3,"drop","dragover"],[1,"drop-charge-text"],[1,"drop-module",3,"drop","dragover"],[1,"drop-module-text"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"tactical-mode","tactical-mode-defense",2,"z-index","100",3,"click","ngClass"],["src","/shared/assets/public/images/fit/radial/ui_texture_icons_defence.png","alt","Defense",3,"ewbTooltip"],[1,"tactical-mode","tactical-mode-sharpshooter",2,"z-index","100",3,"click","ngClass"],["src","/shared/assets/public/images/fit/radial/ui_texture_icons_target.png","alt","Sharpshooter",3,"ewbTooltip"],[1,"tactical-mode","tactical-mode-propulsion",2,"z-index","100",3,"click","ngClass"],["src","/shared/assets/public/images/fit/radial/ui_texture_icons_speed.png","alt","Propulsion",3,"ewbTooltip"],["r","3",1,"pip",3,"pip--used"],["r","3",1,"pip"],[1,"col","mb-3"],[1,"col","col-md-12","col-lg-8","mb-3"],[4,"ngTemplateOutlet"],[1,"card","bg-opacity-50",3,"dragover","drop"],[1,"card-body"],[3,"onInformChange","droneBay","metadata","fit","showDrop"],[3,"onResetFighterTubes","onInformChange","fit","fighterBay","fighterTubes"],[1,"drop-zone-hint"],[1,"d-inline-flex","align-items-center","inventory-slot"],["draggable","true",1,"d-inline-block","draggable"],[1,"img-32",3,"src","ewbTooltip"],[1,"text-muted","small","ms-1"],[1,"ms-2","cursor-pointer","text-muted","cargo-remove"],["draggable","true",1,"d-inline-block","draggable",3,"dragstart","dragend"],[1,"ms-2","cursor-pointer","text-muted","cargo-remove",3,"click"],[1,"card","bg-black","bg-opacity-50"],["draggable","true",1,"d-inline-block","inventory-slot","draggable"],[1,"d-inline-block","inventory-slot"],["draggable","true",1,"d-inline-block","inventory-slot","draggable",3,"dragstart","dragend"],[1,"d-inline-block","inventory-slot","d-flex","justify-content-between","align-middle","align-items-center"],[1,"text-end"],[3,"ngModelChange","change","trueValue","falseValue","ngModel"],[1,"slot"],[1,"slot-outer"],[3,"drop","dragover","click","contextmenu","ewbTooltip","shouldShowTooltip","ngClass","tooltipData"],["viewBox","235 40 52 50","xmlns","http://www.w3.org/2000/svg","preserveAspectRatio","xMidYMin slice"],["href","#slot"],["href","#slot-active"],["href","#slot-passive"],[1,"slot-module",3,"draggable","dragging-from"],[1,"slot-module-placeholder",3,"ngClass"],[1,"slot-actions"],[1,"slot-module",3,"dragstart","dragend"],[3,"src"],[1,"slot-module-placeholder",3,"dragover","drop","ngClass"],["src","/shared/assets/public/images/fit/radial/offline.png","ewbTooltip","Toggle Offline/Online",1,"img-24","cursor-pointer",3,"click"],["src","/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenuactions_fitting_unload.png","ewbTooltip","Unload Module (only usable in Theory Crafting mode!)",1,"img-24","disabled","cursor-pointer"],["src","/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenuactions_fitting_unload.png","ewbTooltip","Unload Module",1,"img-24","cursor-pointer",3,"click"],["src","/shared/assets/public/images/fit/radial/ui_texture_classes_radialmenuactions_fitting_unloadammo.png","ewbTooltip","Unload Ammo",1,"img-24","cursor-pointer",3,"click"],[1,"module-tooltip"],[1,"d-flex","justify-content-start"],[1,"img-20",3,"src","alt"],[1,"ms-2"],[1,"d-flex","justify-content-start","mt-2"],[1,"mt-2","text-center","text-muted","small"],[1,"mt-2","slot-state","slot-state-active"],[1,"mt-2","text-muted"],[1,"mt-2","slot-state","slot-state-online"],[1,"mt-2","slot-state","slot-state-overloaded"]],template:function(r,n){r&1&&(H(0,zA,13,1,"div",7),p(1,"div",7)(2,"div",8)(3,"div",9)(4,"div",10)(5,"div",11),Ft(),p(6,"svg",12)(7,"g"),T(8,"circle",13)(9,"rect",14)(10,"rect",15)(11,"rect",16)(12,"rect",17)(13,"rect",18),m()(),p(14,"svg",19)(15,"defs")(16,"mask",20),T(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26),m()(),p(23,"g"),T(24,"circle",27),m()(),_s(),T(25,"fit-resource-gauges",28),p(26,"div",29),H(27,UA,7,0,"div",30),H(28,HA,7,0,"div",31),H(29,WA,5,0,"div",31),H(30,GA,5,0,"div",31),T(31,"img",32),m(),p(32,"div",33),oe(33,YA,1,4,null,null,rr),m(),p(35,"div",34)(36,"fit-rack-state",35),R("onInformChange",function(){return n.informModuleStateChange()}),m(),p(37,"fit-rack-state",36),R("onInformChange",function(){return n.informModuleStateChange()}),m(),p(38,"fit-rack-state",37),R("onInformChange",function(){return n.informModuleStateChange()}),m()(),H(39,KA,7,15,"div",38),Ft(),p(40,"svg",39),T(41,"image",40),m(),H(42,ZA,3,0,":svg:svg",39),p(43,"svg",39),T(44,"image",41),m(),H(45,XA,3,0,":svg:svg",39),m()()()()(),H(46,tB,2,4,"div",42),H(47,mB,7,16,"div",43),M(48,xB,1,1,"ng-template",null,0,de)(50,EB,1,1,"ng-template",null,1,de)(52,DB,1,1,"ng-template",null,2,de)(54,NB,10,17,"ng-template",null,3,de),_s(),T(56,"p-contextMenu",44,4),Ft(),p(58,"svg",45)(59,"g",46),T(60,"path",47),m(),p(61,"g",48),T(62,"path",49),m(),p(63,"g",50),T(64,"path",51)(65,"path",52)(66,"path",53)(67,"path",54),m()(),p(68,"svg",55)(69,"g",56),T(70,"path",57)(71,"path",58)(72,"path",59),m(),p(73,"g",60),T(74,"path",57)(75,"path",58)(76,"path",59),m(),p(77,"g",61),T(78,"path",62)(79,"path",63),m()(),M(80,$B,9,7,"ng-template",null,5,de)),r&2&&(W(n.showCharges?0:-1),v(4),Rt("read-only",n.readOnly),v(21),b("statistics",n.statistics),v(2),W(n.showDropCharge?27:-1),v(),W(n.showDropModule?28:-1),v(),W(n.showDropDrone?29:-1),v(),W(n.showDropFighter?30:-1),v(),b("alt",De(n.fit.shipName))("src",n.EveImageHelper.getTypeRenderUrl(n.fit.shipId,1024),re),v(2),ae(n.getCombinedSlots()),v(3),b("slots",n.slots.HighSlots),v(),b("slots",n.slots.MediumSlots),v(),b("slots",n.slots.LowSlots),v(),W(n.fit.isT3Destroyer?39:-1),v(2),Ge("x",n.arcX(315,222)+0)("y",n.arcY(315,222)-7),v(),W(n.turretPipCount>0?42:-1),v(2),Ge("x",n.arcX(n.launcherIconAngle,222)-10)("y",n.arcY(n.launcherIconAngle,222)-1),v(),W(n.launcherPipCount>0?45:-1),v(),W(n.readOnly&&((n.fit.cargoBay==null?null:n.fit.cargoBay.length)??0)>0?46:-1),v(),W(n.readOnly?-1:47),v(9),b("model",n.slotContextMenuItems))},dependencies:[Vt,_t,ci,go,oc,ac,sc,Pe,tc,yt,mt,Kt,p_,Pm],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;container-type:inline-size}.drop-target-active[_ngcontent-%COMP%]{border:1px dashed rgba(255,69,0,.8)!important;background-color:#ff450080!important}.drop-zone-hint[_ngcontent-%COMP%]{text-align:center;color:#fff;font-size:.8rem;padding:4px 0 0;pointer-events:none}.scroll[_ngcontent-%COMP%]{width:250px;max-height:400px;overflow-y:auto;overflow-x:hidden}.filter-modules[_ngcontent-%COMP%]   .filter-module[_ngcontent-%COMP%]{display:inline-block;padding:4px;border:1px solid transparent;position:relative}.filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]{border-color:#5dc19c}.filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]:before, .filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]:after{position:absolute;width:15px;height:15px;right:0;bottom:0}.filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]:before{content:"\\2714";z-index:2;font-size:12px;text-align:center}.filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]:after{content:" ";background-color:#5dc19c;display:inline-block}.fit-charge[_ngcontent-%COMP%]{padding-top:2px;padding-bottom:2px;cursor:move}.fit-charge[_ngcontent-%COMP%]:hover{background-color:#285e4d66}.fit-radial[_ngcontent-%COMP%]{zoom:.45!important}.fit-radial.read-only[_ngcontent-%COMP%]{cursor:default}.fit-radial.read-only[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{pointer-events:none!important;cursor:default!important}.fit-radial.read-only[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%]{pointer-events:all!important;cursor:default!important}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]{position:relative;height:730px;width:730px}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .hull[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .hull[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:flex;height:94%;width:94%;border-radius:50%;margin-top:3%;margin-left:3%;justify-content:space-evenly;align-items:center}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .hull[_ngcontent-%COMP%]   .drop-module[_ngcontent-%COMP%], .fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .hull[_ngcontent-%COMP%]   .drop-charge[_ngcontent-%COMP%]{--drop-charge-size: 65%;--drop-charge-c: calc(50% - (var(--drop-charge-size) / 2));position:absolute;border:3px dashed orangered;background-color:#ff450080;display:inline-block;background-repeat:no-repeat;background-position:center center;width:var(--drop-charge-size);height:var(--drop-charge-size);left:var(--drop-charge-c);top:var(--drop-charge-c);z-index:20;border-radius:50%}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .hull[_ngcontent-%COMP%]   .drop-module-text[_ngcontent-%COMP%], .fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .hull[_ngcontent-%COMP%]   .drop-charge-text[_ngcontent-%COMP%]{position:relative;text-align:center;vertical-align:middle;top:calc(50% - 50px);line-height:36px;font-size:35px;transform:rotate(-25deg)}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .hull[_ngcontent-%COMP%]   .drop-module.show[_ngcontent-%COMP%], .fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .hull[_ngcontent-%COMP%]   .drop-charge.show[_ngcontent-%COMP%]{display:inline-block}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]{height:100%;position:absolute;width:100%}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot[_ngcontent-%COMP%]{height:100%;pointer-events:none;position:absolute;transform:rotate(var(--rotation));width:100%;z-index:4}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{--reverse-rotation: calc(-1* var(--rotation));left:50%;pointer-events:all;position:absolute;top:3.5%}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]{height:18%;margin-left:-2.5%;position:absolute;width:7%}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%]{height:50%;position:relative;-webkit-user-select:none;user-select:none;width:100%}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner.droppable[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{fill:#f60!important;stroke:#f60!important}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner.unavailable[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%], .fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[data-state=Unavailable][_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{opacity:.2;fill-opacity:.1;stroke-opacity:.1}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[data-state=Active][_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{fill:#0f0;stroke:#0f0}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[data-state=Overloaded][_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{fill:red;stroke:red}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[data-state=Offline][_ngcontent-%COMP%]{opacity:.3}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[data-state=Offline][_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{opacity:.3}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{fill:#999;stroke:#999;height:100%;position:absolute;width:100%;z-index:4}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%]   .slot-module[_ngcontent-%COMP%]{transform:rotate(var(--reverse-rotation));height:100%;position:absolute;width:100%;z-index:5}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%]   .slot-module[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-top-left-radius:50%;margin-left:-10%;margin-top:5%;width:120%}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%]   .slot-module-placeholder[_ngcontent-%COMP%]{height:100%;position:absolute;width:100%;z-index:5}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-inner[_ngcontent-%COMP%]   .slot-module-placeholder[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-left:20%;margin-top:35%;width:60%}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-actions[_ngcontent-%COMP%]{display:none;position:absolute;margin-left:9px;margin-top:8px}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]   .slot-actions[_ngcontent-%COMP%]   div[_ngcontent-%COMP%]{transform:rotate(var(--reverse-rotation))}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .slots[_ngcontent-%COMP%]   .slot-outer[_ngcontent-%COMP%]:hover   .slot-actions[_ngcontent-%COMP%]{display:inline-block}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .ring-outer[_ngcontent-%COMP%]{filter:drop-shadow(0 0 6px #000000);position:absolute;width:100%;z-index:2}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .ring-inner[_ngcontent-%COMP%]{position:absolute;width:100%;z-index:1}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .pip-overlay[_ngcontent-%COMP%]{position:absolute;width:100%;z-index:5;pointer-events:none}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .pip[_ngcontent-%COMP%]{fill:transparent;stroke:#aaa;stroke-width:.5}.fit-radial[_ngcontent-%COMP%]   .fit-modules[_ngcontent-%COMP%]   .pip.pip--used[_ngcontent-%COMP%]{fill:#aaa}.inventory-slot[_ngcontent-%COMP%]{padding:5px}.dragging-from[_ngcontent-%COMP%]{opacity:.3}.cargo-remove[_ngcontent-%COMP%]{font-size:1.1rem;line-height:1;cursor:pointer}.cargo-remove[_ngcontent-%COMP%]:hover{color:#f44}.module-tooltip[_ngcontent-%COMP%]   .slot-state-online[_ngcontent-%COMP%]{color:#0f0}.module-tooltip[_ngcontent-%COMP%]   .slot-state-overloaded[_ngcontent-%COMP%]{color:#ff2908}.tactical-modes[_ngcontent-%COMP%]{position:relative;z-index:400}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:32px;height:32px;padding:0;display:inline-block;background-color:#bfbfbf4d;border-radius:50%;box-shadow:inset .1em .1em .1em #ffffff80,inset -.1em -.1em .1em #00000080}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode-defense[_ngcontent-%COMP%]{margin-top:366px;margin-left:45px}
202.tactical-modes[_ngcontent-%COMP%]   .tactical-mode-sharpshooter[_ngcontent-%COMP%]{margin-top:421px;margin-left:55px}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode-propulsion[_ngcontent-%COMP%]{margin-top:474px;margin-left:72px}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode.active[_ngcontent-%COMP%]{background-color:#5dc19c99}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode.active[_ngcontent-%COMP%]:hover{background-color:#5dc19ccc}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode[_ngcontent-%COMP%]:hover{background-color:#bfbfbf99}.racks[_ngcontent-%COMP%]   .rack[_ngcontent-%COMP%]{position:absolute;z-index:10}.racks[_ngcontent-%COMP%]   .rack.rack-high[_ngcontent-%COMP%]{top:0;left:0;margin-top:129px;margin-left:144px}.racks[_ngcontent-%COMP%]   .rack.rack-medium[_ngcontent-%COMP%]{left:unset;top:0;right:0;margin-top:136px;margin-right:139px}.racks[_ngcontent-%COMP%]   .rack.rack-low[_ngcontent-%COMP%]{left:unset;right:0;bottom:137px;margin-right:137px}@container (min-width: 475px){.fit-radial[_ngcontent-%COMP%]{zoom:.65!important}.fit-radial.read-only[_ngcontent-%COMP%]{zoom:.45!important}}@container (min-width: 600px){.fit-radial[_ngcontent-%COMP%]{zoom:.82!important}.fit-radial.read-only[_ngcontent-%COMP%]{zoom:.45!important}}@container (min-width: 730px){.fit-radial[_ngcontent-%COMP%]{zoom:1!important}.fit-radial.read-only[_ngcontent-%COMP%]{zoom:.45!important}}']})};function ZB(i,t){i&1&&(p(0,"div",5),T(1,"i",7),f(2,"Loading fit\u2026 "),m())}function QB(i,t){i&1&&T(0,"fit-radial",6),i&2&&b("fit",t)("readOnly",!0)("showCharges",!1)}var Kd=class i{fitId=jt.required();id=jt.required();name=jt.required();hull=jt.required();fitClient=ie(it);fitResource=im({params:()=>this.fitId(),stream:({params:t})=>this.fitClient.getById(t)});EveImageHelper=vi;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["app-fit-preview"]],inputs:{fitId:[1,"fitId"],id:[1,"id"],name:[1,"name"],hull:[1,"hull"]},decls:11,vars:6,consts:[[1,"d-plex","justify-content-start"],[1,"ip-type-image"],[1,"img-64",3,"src","alt"],[1,"ms-2"],[1,"text-muted"],[1,"fit-preview-loading"],[3,"fit","readOnly","showCharges"],[1,"fa-solid","fa-spinner","fa-spin","me-2"]],template:function(e,r){if(e&1&&(p(0,"div",0)(1,"span",1),T(2,"img",2),m(),p(3,"span",3)(4,"strong"),f(5),m(),T(6,"br"),p(7,"span",4),f(8),m()()(),H(9,ZB,3,0,"div",5)(10,QB,1,3,"fit-radial",6)),e&2){let n;v(2),b("alt",De(r.name()))("src",r.EveImageHelper.getTypeImageUrl(r.id(),128,r.name()),re),v(3),$(r.name()),v(3),$(r.hull()),v(),W(r.fitResource.isLoading()?9:(n=(n=r.fitResource.value())==null?null:n.result)?10:-1,n)}},dependencies:[zr],styles:["[_nghost-%COMP%]{display:block;overflow-x:hidden}.fit-preview-loading[_ngcontent-%COMP%]{padding:16px;text-align:center;color:var(--p-text-muted-color);font-size:.875rem}"]})};var Rm=class i{constructor(t){this.fitClient=t}id="fits";name="Fits";icon="fa-duotone fa-solid fa-ship";prefixes=["fit","fits"];minQueryLength=2;maxResults=10;previewWidth=450;recentPreviewComponent=Kd;viewAllLink=t=>({commands:["/fits"],queryParams:{q:t}});search(t){return this.fitClient.getSearchFitsTypeahead(!1,void 0,t).pipe(Vi(e=>(e.result??[]).map(r=>({id:r.id,title:r.name??"Unknown fit",subtitle:r.shipName??void 0,imageUrl:r.shipId?`https://images.evetech.net/types/${r.shipId}/render?size=128`:void 0,routerLink:["/fit",r.id],previewComponent:{component:Kd,inputs:{id:r.shipId,name:r.name,hull:r.shipName,fitId:r.id}}}))))}static \u0275fac=function(e){return new(e||i)(ti(it))};static \u0275prov=Ye({token:i,factory:i.\u0275fac})};var Lm=class i{constructor(t){this.grpcService=t}id="characters";name="Characters";icon="fa-duotone fa-solid fa-user-astronaut";prefixes=["character","characters","char"];minQueryLength=3;search(t){return this.grpcService.profileSearch(t,0,5,!0).pipe(Vi(e=>e.getResultsList().map(r=>({id:String(r.getId()),title:r.getName()||"Unknown character",subtitle:r.getCorporationname()?.getValue()??"EVE Character",imageUrl:`https://images.evetech.net/characters/${r.getId()}/portrait?size=128`,routerLink:["/u",r.getSlug()],previewDetails:[...r.getAlliancename()?.getValue()?[{label:"Alliance",value:r.getAlliancename().getValue()}]:[]]}))))}static \u0275fac=function(e){return new(e||i)(ti(Nr))};static \u0275prov=Ye({token:i,factory:i.\u0275fac})};var XB=new Set(["market/:orderType/:id","market/:orderType/:regionId/:id","market/:orderType/:regionId/:locationId/:id"]),Om=class{isMarketRoute(t){return XB.has(t.routeConfig?.path??"")}shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig?!0:this.isMarketRoute(t)&&this.isMarketRoute(e)}};var JB="@",eN=(()=>{class i{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;
vendor: 4,302 bytes, lines 202-212
202scheduler=null;injector=ie(Ld);loadingSchedulerFn=ie(tN,{optional:!0});_engine;constructor(e,r,n,o,a){this.doc=e,this.delegate=r,this.zone=n,this.animationType=o,this.moduleImpl=a}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-QHNE5XPN.js").then(n=>n),r;return this.loadingSchedulerFn?r=this.loadingSchedulerFn(e):r=e(),r.catch(n=>{throw new aw(5300,!1)}).then(({\u0275createEngine:n,\u0275AnimationRendererFactory:o})=>{this._engine=n(this.animationType,this.doc);let a=new o(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,r){let n=this.delegate.createRenderer(e,r);if(n.\u0275type===0)return n;typeof n.throwOnSyntheticProps=="boolean"&&(n.throwOnSyntheticProps=!1);let o=new m_(n);return r?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let s=a.createRenderer(e,r);o.use(s),this.scheduler??=this.injector.get(lw,null,{optional:!0}),this.scheduler?.notify(10)}).catch(a=>{o.use(n)}),o}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(r){fw()};static \u0275prov=Ye({token:i,factory:i.\u0275fac})}return i})(),m_=class{delegate;replay=[];\u0275type=1;constructor(t){this.delegate=t}use(t){if(this.delegate=t,this.replay!==null){for(let e of this.replay)e(t);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}get destroyNode(){return this.delegate.destroyNode}appendChild(t,e){this.delegate.appendChild(t,e)}insertBefore(t,e,r,n){this.delegate.insertBefore(t,e,r,n)}removeChild(t,e,r,n){this.delegate.removeChild(t,e,r,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,r,n){this.delegate.setAttribute(t,e,r,n)}removeAttribute(t,e,r){this.delegate.removeAttribute(t,e,r)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,r,n){this.delegate.setStyle(t,e,r,n)}removeStyle(t,e,r){this.delegate.removeStyle(t,e,r)}setProperty(t,e,r){this.shouldReplay(e)&&this.replay.push(n=>n.setProperty(t,e,r)),this.delegate.setProperty(t,e,r)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,r,n){return this.shouldReplay(e)&&this.replay.push(o=>o.listen(t,e,r,n)),this.delegate.listen(t,e,r,n)}shouldReplay(t){return this.replay!==null&&t.startsWith(JB)}},tN=new St("");function wE(i="animations"){return uw("NgAsyncAnimations"),Ku([{provide:Bd,useFactory:()=>new eN(ie(vn),ie(Iw),ie(Si),i)},{provide:dw,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}])}var iN={transitionDuration:"{transition.duration}"},rN={borderWidth:"0",borderColor:"{content.border.color}"},nN={color:"{text.color}",hoverColor:"{text.color}",activeColor:"{text.color}",activeHoverColor:"{text.color}",padding:"1.25rem",fontWeight:"600",borderRadius:"0",borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",hoverBackground:"{content.hover.background}",activeBackground:"{content.background}",activeHoverBackground:"{content.background}",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"},toggleIcon:{color:"{text.muted.color}",hoverColor:"{text.muted.color}",activeColor:"{text.muted.color}",activeHoverColor:"{text.muted.color}"},first:{topBorderRadius:"{content.border.radius}",borderWidth:"0"},last:{bottomBorderRadius:"{content.border.radius}",activeBottomBorderRadius:"0"}},oN={borderWidth:"0",borderColor:"{content.border.color}",background:"{content.background}",color:"{text.color}",padding:"0 1.25rem 1.25rem 1.25rem"},aN=`
203.p-accordionpanel {
204    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
205    transition: margin dt('accordion.transition.duration');
206}
207
208.p-accordionpanel-active {
209    margin: 1rem 0;
210}
211
212.p-accordionpanel:first-child {
213    border-top-left-radius: dt('content.border.radius');
214    border-top-right-radius: dt('content.border.radius');
215    margin-top: 0;
216}
217
218.p-accordionpanel:last-child {
219    border-bottom-left-radius: dt('content.border.radius');
220    border-bottom-right-radius: dt('content.border.radius');
221    margin-bottom: 0;
222}
223
224.p-accordionpanel:not(.p-disabled) .p-accordionheader:focus-visible {
225    background: dt('navigation.item.active.background');
226}
227`,f_={root:iN,panel:rN,header:nN,content:oN,css:aN};var sN={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},lN={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},cN={padding:"{list.padding}",gap:"{list.gap}"},dN={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},pN={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},uN={width:"3rem",sm:{width:"2.5rem"},lg:{width:"3.5rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},mN={borderRadius:"{border.radius.sm}"},fN={padding:"{list.option.padding}"},hN={light:{chip:{focusBackground:"{surface.300}",focusColor:"{surface.950}"},dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.600}",focusColor:"{surface.0}"},dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"}}},gN=`
228.p-autocomplete-dropdown:focus-visible {
229    background: dt('autocomplete.dropdown.hover.background');
230    border-color: dt('autocomplete.dropdown.hover.border.color');
231    color: dt('autocomplete.dropdown.hover.color');
232}
233
234.p-variant-filled.p-autocomplete-input-multiple {
235    border-bottom-left-radius: 0;
236    border-bottom-right-radius: 0;
237    border: 1px solid transparent;
238    background: dt('autocomplete.filled.background') no-repeat;
239    background-image: linear-gradient(to bottom, dt('autocomplete.focus.border.color'), dt('autocomplete.focus.border.color')), linear-gradient(to bottom, dt('autocomplete.border.color'), dt('autocomplete.border.color'));
240    background-size: 0 2px, 100% 1px;
241    background-position: 50% 100%, 50% 100%;
242    background-origin: border-box;
243    transition: background-size 0.3s cubic-bezier(0.64, 0.09, 0.08, 1);
244}
245
246.p-autocomplete:not(.p-disabled):hover .p-variant-filled.p-autocomplete-input-multiple {
247    background: dt('autocomplete.filled.hover.background') no-repeat;
248    background-image: linear-gradient(to bottom, dt('autocomplete.focus.border.color'), dt('autocomplete.focus.border.color')), linear-gradient(to bottom, dt('autocomplete.hover.border.color'), dt('autocomplete.hover.border.color'));
249    background-size: 0 2px, 100% 1px;
250    background-position: 50% 100%, 50% 100%;
251    background-origin: border-box;
252    border-color: transparent;
253}
254
255.p-autocomplete:not(.p-disabled).p-focus .p-variant-filled.p-autocomplete-input-multiple {
256    outline: 0 none;
257    background: dt('autocomplete.filled.focus.background') no-repeat;
258    background-image: linear-gradient(to bottom, dt('autocomplete.focus.border.color'), dt('autocomplete.focus.border.color')), linear-gradient(to bottom, dt('autocomplete.border.color'), dt('autocomplete.border.color'));
259    background-size: 100% 2px, 100% 1px;
260    background-position: 50% 100%, 50% 100%;
261    background-origin: border-box;
262    border-color: transparent;
263}
264
265.p-autocomplete:not(.p-disabled).p-focus:hover .p-variant-filled.p-autocomplete-input-multiple {
266    background-image: linear-gradient(to bottom, dt('autocomplete.focus.border.color'), dt('autocomplete.focus.border.color')), linear-gradient(to bottom, dt('autocomplete.hover.border.color'), dt('autocomplete.hover.border.color'));
267}
268
269.p-autocomplete.p-invalid .p-autocomplete-input-multiple {
270    background-image: linear-gradient(to bottom, dt('autocomplete.invali
270d.border.color'), dt('autocomplete.invalid.border.color')), linear-gradient(to bottom, dt('autocomplete.invalid.border.color'), dt('autocomplete.invalid.border.color'));
271}
272
273.p-autocomplete.p-invalid.p-focus .p-autocomplete-input-multiple  {
274    background-image: linear-gradient(to bottom, dt('autocomplete.invalid.border.color'), dt('autocomplete.invalid.border.color')), linear-gradient(to bottom, dt('autocomplete.invalid.border.color'), dt('autocomplete.invalid.border.color'));
275}
276
277.p-autocomplete-option {
278    transition: none;
279}
280`,h_={root:sN,overlay:lN,list:cN,option:dN,optionGroup:pN,dropdown:uN,chip:mN,emptyMessage:fN,colorScheme:hN,css:gN};var vN={width:"2rem",height:"2rem",fontSize:"1rem",background:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},_N={size:"1rem"},bN={borderColor:"{content.background}",offset:"-0.75rem"},yN={width:"3rem",height:"3rem",fontSize:"1.5rem",icon:{size:"1.5rem"},group:{offset:"-1rem"}},xN={width:"4rem",height:"4rem",fontSize:"2rem",icon:{size:"2rem"},group:{offset:"-1.5rem"}};var g_={root:vN,icon:_N,group:bN,lg:yN,xl:xN,css:""};var CN={borderRadius:"{border.radius.md}",padding:"0 0.5rem",fontSize:"0.75rem",fontWeight:"700",minWidth:"1.5rem",height:"1.5rem"},SN={size:"0.5rem"},wN={fontSize:"0.625rem",minWidth:"1.25rem",height:"1.25rem"},TN={fontSize:"0.875rem",minWidth:"1.75rem",height:"1.75rem"},EN={fontSize:"1rem",minWidth:"2rem",height:"2rem"},kN={light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}};var v_={root:CN,dot:SN,sm:wN,lg:TN,xl:EN,colorScheme:kN,css:""};var IN={borderRadius:{none:"0",xs:"2px",sm:"4px",md:"6px",lg:"8px",xl:"12px"},emerald:{50:"#E8F6F1",100:"#C5EBE1",200:"#9EDFCF",300:"#76D3BD",400:"#58C9AF",500:"#3BBFA1",600:"#35AF94",700:"#2D9B83",800:"#268873",900:"#1A6657",950:"#0d3329"},green:{50:"#E8F5E9",100:"#C8E6C9",200:"#A5D6A7",300:"#81C784",400:"#66BB6A",500:"#4CAF50",600:"#43A047",700:"#388E3C",800:"#2E7D32",900:"#1B5E20",950:"#0e2f10"},lime:{50:"#F9FBE7",100:"#F0F4C3",200:"#E6EE9C",300:"#DCE775",400:"#D4E157",500:"#CDDC39",600:"#C0CA33",700:"#AFB42B",800:"#9E9D24",900:"#827717",950:"#413c0c"},red:{50:"#FFEBEE",100:"#FFCDD2",200:"#EF9A9A",300:"#E57373",400:"#EF5350",500:"#F44336",600:"#E53935",700:"#D32F2F",800:"#C62828",900:"#B71C1C",950:"#5c0e0e"},orange:{50:"#FFF3E0",100:"#FFE0B2",200:"#FFCC80",300:"#FFB74D",400:"#FFA726",500:"#FF9800",600:"#FB8C00",700:"#F57C00",800:"#EF6C00",900:"#E65100",950:"#732900"},amber:{50:"#FFF8E1",100:"#FFECB3",200:"#FFE082",300:"#FFD54F",400:"#FFCA28",500:"#FFC107",600:"#FFB300",700:"#FFA000",800:"#FF8F00",900:"#FF6F00",950:"#803800"},yellow:{50:"#FFFDE7",100:"#FFF9C4",200:"#FFF59D",300:"#FFF176",400:"#FFEE58",500:"#FFEB3B",600:"#FDD835",700:"#FBC02D",800:"#F9A825",900:"#F57F17",950:"#7b400c"},teal:{50:"#E0F2F1",100:"#B2DFDB",200:"#80CBC4",300:"#4DB6AC",400:"#26A69A",500:"#009688",600:"#00897B",700:"#00796B",800:"#00695C",900:"#004D40",950:"#002720"},cyan:{50:"#E0F7FA",100:"#B2EBF2",200:"#80DEEA",300:"#4DD0E1",400:"#26C6DA",500:"#00BCD4",600:"#00ACC1",700:"#0097A7",800:"#00838F",900:"#006064",950:"#003032"},sky:{50:"#E1F5FE",100:"#B3E5FC",200:"#81D4FA",300:"#4FC3F7",400:"#29B6F6",500:"#03A9F4",600:"#039BE5",700:"#0288D1",800:"#0277BD",900:"#01579B",950:"#012c4e"},blue:{50:"#E3F2FD",100:"#BBDEFB",200:"#90CAF9",300:"#64B5F6",400:"#42A5F5",500:"#2196F3",600:"#1E88E5",700:"#1976D2",800:"#1565C0",900:"#0D47A1",950:"#072451"},indigo:{50:"#E8EAF6",100:"#C5CAE9",200:"#9FA8DA",300:"#7986CB",400:"#5C6BC0",500:"#3F51B5",600:"#3949AB",700:"#303F9F",800:"#283593",900:"#1A237E",950:"#0d123f"},violet:{50:"#EDE7F6",100:"#D1C4E9",200:"#B39DDB",300:"#9575CD",400:"#7E57C2",500:"#673AB7",600:"#5E35B1",700:"#512DA8",800:"#4527A0",900:"#311B92",950:"#190e49"},purple:{50:"#F3E5F5",100:"#E1BEE7",200:"#CE93D8",300:"#BA68C8",400:"#AB47BC",500:"#9C27B0",600:"#8E24AA",700:"#7B1FA2",800:"#6A1B9A",900:"#4A148C",950:"#250a46"},fuchsia:{50:"#FDE6F3",100:"#FBC1E3",200:"#F897D1",300:"#F56DBF",400:"#F34DB2",500:"#F12DA5",600:"#E0289D",700:"#CC2392",800:"#B81E88",900:"#951777",950:"#4b0c3c"},pink:{50:"#FCE4EC",100:"#F8BBD0",200:"#F48FB1",300:"#F06292",400:"#EC407A",500:"#E91E63",600:"#D81B60",700:"#C2185B",800:"#AD1457",900:"#880E4F",950:"#440728"},rose:{50:"#FFF0F0",100:"#FFD9D9",200:"#FFC0C0",300:"#FFA7A7",400:"#FF8E8E",500:"#FF7575",600:"#FF5252",700:"#FF3838",800:"#F71C1C",900:"#D50000",950:"#3E0000"},slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"}},DN={transitionDuration:"0.2s",focusRing:{width:"0",style:"none",color:"unset",offset:"0"},disabledOpacity:"0.38",iconSize:"1rem",anchorGutter:"0",primary:{50:"{emerald.50}",100:"{emerald.100}",200:"{emerald.200}",300:"{emerald.300}",400:"{emerald.400}",500:"{emerald.500}",600:"{emerald.600}",700:"{emerald.700}",800:"{emerald.800}",900:"{emerald.900}",950:"{emerald.950}"},formField:{paddingX:"0.75rem",paddingY:"0.75rem",sm:{fontSize:"0.875rem",paddingX:"0.625rem",paddingY:"0.625rem"},lg:{fontSize:"1.125rem",paddingX:"0.825rem",paddingY:"0.825rem"}
280,borderRadius:"{border.radius.sm}",focusRing:{width:"2px",style:"solid",color:"{primary.color}",offset:"-2px",shadow:"none"},transitionDuration:"{transition.duration}"},list:{padding:"0.5rem 0",gap:"0",header:{padding:"0.75rem 1rem"},option:{padding:"0.75rem 1rem",borderRadius:"{border.radius.none}"},optionGroup:{padding:"0.75rem 1rem",fontWeight:"700"}},content:{borderRadius:"{border.radius.sm}"},mask:{transitionDuration:"0.3s"},navigation:{list:{padding:"0.5rem 0",gap:"0"},item:{padding:"0.75rem 1rem",borderRadius:"{border.radius.none}",gap:"0.5rem"},submenuLabel:{padding:"0.75rem 1rem",fontWeight:"700"},submenuIcon:{size:"0.875rem"}},overlay:{select:{borderRadius:"{border.radius.sm}",shadow:"0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12)"},popover:{borderRadius:"{border.radius.sm}",padding:"1rem",shadow:"0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12)"},modal:{borderRadius:"{border.radius.sm}",padding:"1.5rem",shadow:"0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12)"},navigation:{shadow:"0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12)"}},colorScheme:{light:{focusRing:{shadow:"0 0 1px 4px {surface.200}"},surface:{0:"#ffffff",50:"{slate.50}",100:"{slate.100}",200:"{slate.200}",300:"{slate.300}",400:"{slate.400}",500:"{slate.500}",600:"{slate.600}",700:"{slate.700}",800:"{slate.800}",900:"{slate.900}",950:"{slate.950}"},primary:{color:"{primary.500}",contrastColor:"#ffffff",hoverColor:"{primary.400}",activeColor:"{primary.300}"},highlight:{background:"color-mix(in srgb, {primary.color}, transparent 88%)",focusBackground:"color-mix(in srgb, {primary.color}, transparent 76%)",color:"{primary.700}
280",focusColor:"{primary.800}"},mask:{background:"rgba(0,0,0,0.32)",color:"{surface.200}"},formField:{background:"{surface.0}",disabledBackground:"{surface.300}",filledBackground:"{surface.100}",filledHoverBackground:"{surface.200}",filledFocusBackground:"{surface.100}",borderColor:"{surface.400}",hoverBorderColor:"{surface.900}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.800}",color:"{surface.900}",disabledColor:"{surface.600}",placeholderColor:"{surface.600}",invalidPlaceholderColor:"{red.800}",floatLabelColor:"{surface.600}",floatLabelFocusColor:"{primary.600}",floatLabelActiveColor:"{surface.600}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.600}",shadow:"none"},text:{color:"{surface.900}",hoverColor:"{surface.900}",mutedColor:"{surface.600}",hoverMutedColor:"{surface.600}"},content:{background:"{surface.0}",hoverBackground:"{surface.100}",borderColor:"{surface.300}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.0}",borderColor:"{surface.0}",color:"{text.color}"},popover:{background:"{surface.0}",borderColor:"{surface.0}",color:"{text.color}"},modal:{background:"{surface.0}",borderColor:"{surface.0}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.100}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.600}",focusColor:"{surface.600}"}},optionGroup:{background:"transparent",color:"{text.color}"}},navigation:{item:{focusBackground:"{surface.100}",activeBackground:"{surface.200}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.600}",focusColor:"{surface.600}",activeColor:"{surface.600}"}},submenuLabel:{background:"transparent",color:"{text.color}"},submenuIcon:{color:"{surface.600}",focusColor:"{surface.600}",activeColor:"{surface.600}"}}},dark:{focusRing:{shadow:"0 0 1px 4px {surface.700}"},surface:{0:"#ffffff",50:"{zinc.50}",100:"{zinc.100}",200:"{zinc.200}",300:"{zinc.300}",400:"{zinc.400}",500:"{zinc.500}",600:"{zinc.600}",700:"{zinc.700}",800:"{zinc.800}",900:"{zinc.900}",950:"{zinc.950}"},primary:{color:"{primary.400}",contrastColor:"{surface.900}",hoverColor:"{primary.300}",activeColor:"{primary.200}"},highlight:{background:"color-mix(in srgb, {primary.400}, transparent 84%)",focusBackground:"color-mix(in srgb, {primary.400}, transparent 76%)",color:"rgba(255,255,255,.87)",focusColor:"rgba(255,255,255,.87)"},mask:{background:"rgba(0,0,0,0.6)",color:"{surface.200}"},formField:{background:"{surface.950}",disabledBackground:"{surface.700}",filledBackground:"{surface.800}",filledHoverBackground:"{surface.700}",filledFocusBackground:"{surface.800}",borderColor:"{surface.600}",hoverBorderColor:"{surface.400}",focusBorderColor:"{primary.color}",invalidBorderColor:"{red.300}",color:"{surface.0}",disabledColor:"{surface.400}",placeholderColor:"{surface.400}",invalidPlaceholderColor:"{red.300}",floatLabelColor:"{surface.400}",floatLabelFocusColor:"{primary.color}",floatLabelActiveColor:"{surface.400}",floatLabelInvalidColor:"{form.field.invalid.placeholder.color}",iconColor:"{surface.400}",shadow:"none"},text:{color:"{surface.0}",hoverColor:"{surface.0}",mutedColor:"{surface.400}",hoverMutedColor:"{surface.400}"},content:{background:"{surface.900}",hoverBackground:"{surface.800}",borderColor:"{surface.700}",color:"{text.color}",hoverColor:"{text.hover.color}"},overlay:{select:{background:"{surface.900}",borderColor:"{surface.900}",color:"{text.color}"},popover:{background:"{surface.900}",borderColor:"{surface.900}",color:"{text.color}"},modal:{background:"{surface.900}",borderColor:"{surface.900}",color:"{text.color}"}},list:{option:{focusBackground:"{surface.800}",selectedBackground:"{highlight.background}",selectedFocusBackground:"{highlight.focus.background}",color:"{text.color}",focusColor:"{text.hover.color}",selectedColor:"{highlight.color}",selectedFocusColor:"{highlight.focus.color}",icon:{color:"{surface.400}",focusColor:"{surface.400}"}},optionGroup:{background:"transparent",color:"{text.muted.color}"}}
280,navigation:{item:{focusBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{text.color}",focusColor:"{text.hover.color}",activeColor:"{text.hover.color}",icon:{color:"{surface.400}",focusColor:"{surface.400}",activeColor:"{surface.400}"}},submenuLabel:{background:"transparent",color:"{text.muted.color}"},submenuIcon:{color:"{surface.400}",focusColor:"{surface.400}",activeColor:"{surface.400}"}}}}},__={primitive:IN,semantic:DN};var MN={borderRadius:"{content.border.radius}"};var b_={root:MN,css:""};var PN={padding:"1rem",background:"{content.background}",gap:"0.5rem",transitionDuration:"{transition.duration}"},FN={color:"{text.muted.color}",hoverColor:"{text.color}",borderRadius:"{content.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",hoverColor:"{navigation.item.icon.focus.color}"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},RN={color:"{navigation.item.icon.color}"};var y_={root:PN,item:FN,separator:RN,css:""};var LN={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",gap:"0.5rem",paddingX:"1rem",paddingY:"0.625rem",iconOnlyWidth:"3rem",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}",iconOnlyWidth:"2.5rem"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}",iconOnlyWidth:"3.5rem"},label:{fontWeight:"500"},raisedShadow:"0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12)",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"},badgeSize:"1rem",transitionDuration:"{form.field.transition.duration}"},ON={light:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",borderColor:"{surface.100}",hoverBorderColor:"{surface.200}",activeBorderColor:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}",focusRing:{color:"{surface.600}",shadow:"none"}},info:{background:"{sky.500}",hoverBackground:"{sky.400}",activeBackground:"{sky.300}",borderColor:"{sky.500}",hoverBorderColor:"{sky.400}",activeBorderColor:"{sky.300}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{sky.500}",shadow:"none"}},success:{background:"{green.500}",hoverBackground:"{green.400}",activeBackground:"{green.300}",borderColor:"{green.500}",hoverBorderColor:"{green.400}",activeBorderColor:"{green.300}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{green.500}",shadow:"none"}},warn:{background:"{orange.500}",hoverBackground:"{orange.400}",activeBackground:"{orange.300}",borderColor:"{orange.500}",hoverBorderColor:"{orange.400}",activeBorderColor:"{orange.300}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{orange.500}",shadow:"none"}},help:{background:"{purple.500}",hoverBackground:"{purple.400}",activeBackground:"{purple.300}",borderColor:"{purple.500}",hoverBorderColor:"{purple.400}",activeBorderColor:"{purple.300}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{purple.500}",shadow:"none"}},danger:{background:"{red.500}",hoverBackground:"{red.400}",activeBackground:"{red.300}",borderColor:"{red.500}",hoverBorderColor:"{red.400}",activeBorderColor:"{red.300}",color:"#ffffff",hoverColor:"#ffffff",activeColor:"#ffffff",focusRing:{color:"{red.500}",shadow:"none"}},contrast:{background:"{surface.950}",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.950}",hoverBorderColor:"{surface.800}",activeBorderColor:"{surface.700}",color:"{surface.0}",hoverColor:"{surface.0}",activeColor:"{surface.0}",focusRing:{color:"{surface.950}",shadow:"none"}}}
280,outlined:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",borderColor:"{primary.color}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.600}",color:"{surface.600}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",borderColor:"{green.500}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",borderColor:"{sky.500}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",borderColor:"{orange.500}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",borderColor:"{purple.500}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",borderColor:"{red.500}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.950}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",borderColor:"{surface.900}",color:"{surface.900}"}},text:{primary:{hoverBackground:"{primary.50}",activeBackground:"{primary.100}",color:"{primary.color}"},secondary:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.600}"},success:{hoverBackground:"{green.50}",activeBackground:"{green.100}",color:"{green.500}"},info:{hoverBackground:"{sky.50}",activeBackground:"{sky.100}",color:"{sky.500}"},warn:{hoverBackground:"{orange.50}",activeBackground:"{orange.100}",color:"{orange.500}"},help:{hoverBackground:"{purple.50}",activeBackground:"{purple.100}",color:"{purple.500}"},danger:{hoverBackground:"{red.50}",activeBackground:"{red.100}",color:"{red.500}"},contrast:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.950}"},plain:{hoverBackground:"{surface.50}",activeBackground:"{surface.100}",color:"{surface.900}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}},dark:{root:{primary:{background:"{primary.color}",hoverBackground:"{primary.hover.color}",activeBackground:"{primary.active.color}",borderColor:"{primary.color}",hoverBorderColor:"{primary.hover.color}",activeBorderColor:"{primary.active.color}",color:"{primary.contrast.color}",hoverColor:"{primary.contrast.color}",activeColor:"{primary.contrast.color}",focusRing:{color:"{primary.color}",shadow:"none"}},secondary:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",borderColor:"{surface.800}",hoverBorderColor:"{surface.700}",activeBorderColor:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}",focusRing:{color:"{surface.300}",shadow:"none"}},info:{background:"{sky.400}",hoverBackground:"{sky.300}",activeBackground:"{sky.200}",borderColor:"{sky.400}",hoverBorderColor:"{sky.300}",activeBorderColor:"{sky.200}",color:"{sky.950}",hoverColor:"{sky.950}",activeColor:"{sky.950}",focusRing:{color:"{sky.400}",shadow:"none"}},success:{background:"{green.400}",hoverBackground:"{green.300}",activeBackground:"{green.200}",borderColor:"{green.400}",hoverBorderColor:"{green.300}",activeBorderColor:"{green.200}",color:"{green.950}",hoverColor:"{green.950}",activeColor:"{green.950}",focusRing:{color:"{green.400}",shadow:"none"}},warn:{background:"{orange.400}",hoverBackground:"{orange.300}",activeBackground:"{orange.200}",borderColor:"{orange.400}",hoverBorderColor:"{orange.300}",activeBorderColor:"{orange.200}",color:"{orange.950}",hoverColor:"{orange.950}",activeColor:"{orange.950}",focusRing:{color:"{orange.400}",shadow:"none"}},help:{background:"{purple.400}",hoverBackground:"{purple.300}",activeBackground:"{purple.200}",borderColor:"{purple.400}",hoverBorderColor:"{purple.300}",activeBorderColor:"{purple.200}",color:"{purple.950}",hoverColor:"{purple.950}",activeColor:"{purple.950}",focusRing:{color:"{purple.400}",shadow:"none"}},danger:{background:"{red.400}",hoverBackground:"{red.300}",activeBackground:"{red.200}",borderColor:"{red.400}",hoverBorderColor:"{red.300}",activeBorderColor:"{red.200}",color:"{red.950}",hoverColor:"{red.950}",activeColor:"{red.950}",focusRing:{color:"{red.400}",shadow:"none"}},contrast:{background:"{surface.0}
280",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{surface.0}",hoverBorderColor:"{surface.100}",activeBorderColor:"{surface.200}",color:"{surface.950}",hoverColor:"{surface.950}",activeColor:"{surface.950}",focusRing:{color:"{surface.0}",shadow:"none"}}},outlined:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",borderColor:"{primary.700}",color:"{primary.color}"},secondary:{hoverBackground:"rgba(255,255,255,0.04)",activeBackground:"rgba(255,255,255,0.16)",borderColor:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",borderColor:"{green.700}",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",borderColor:"{sky.700}",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",borderColor:"{orange.700}",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",borderColor:"{purple.700}",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",borderColor:"{red.700}",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.500}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{surface.600}",color:"{surface.0}"}},text:{primary:{hoverBackground:"color-mix(in srgb, {primary.color}, transparent 96%)",activeBackground:"color-mix(in srgb, {primary.color}, transparent 84%)",color:"{primary.color}"},secondary:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.400}"},success:{hoverBackground:"color-mix(in srgb, {green.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {green.400}, transparent 84%)",color:"{green.400}"},info:{hoverBackground:"color-mix(in srgb, {sky.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {sky.400}, transparent 84%)",color:"{sky.400}"},warn:{hoverBackground:"color-mix(in srgb, {orange.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {orange.400}, transparent 84%)",color:"{orange.400}"},help:{hoverBackground:"color-mix(in srgb, {purple.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {purple.400}, transparent 84%)",color:"{purple.400}"},danger:{hoverBackground:"color-mix(in srgb, {red.400}, transparent 96%)",activeBackground:"color-mix(in srgb, {red.400}, transparent 84%)",color:"{red.400}"},contrast:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"},plain:{hoverBackground:"{surface.800}",activeBackground:"{surface.700}",color:"{surface.0}"}},link:{color:"{primary.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"}}},AN=`
281.p-button:focus-visible {
282    background: dt('button.primary.active.background');
283    border-color: dt('button.primary.active.background');
284}
285
286.p-button-secondary:focus-visible {
287    background: dt('button.secondary.active.background');
288    border-color: dt('button.secondary.active.background');
289}
290
291.p-button-success:focus-visible {
292    background: dt('button.success.active.background');
293    border-color: dt('button.success.active.background');
294}
295
296.p-button-info:focus-visible {
297    background: dt('button.info.active.background');
298    border-color: dt('button.info.active.background');
299}
300
301.p-button-warn:focus-visible {
302    background: dt('button.warn.active.background');
303    border-color: dt('button.warn.active.background');
304}
305
306.p-button-help:focus-visible {
307    background: dt('button.help.active.background');
308    border-color: dt('button.help.active.background');
309}
310
311.p-button-danger:focus-visible {
312    background: dt('button.danger.active.background');
313    border-color: dt('button.danger.active.background');
314}
315
316.p-button-contrast:focus-visible {
317    background: dt('button.contrast.active.background');
318    border-color: dt('button.contrast.active.background');
319}
320
321.p-button-link:focus-visible {
322    background: color-mix(in srgb, dt('primary.color'), transparent 84%);
323    border-color: transparent;
324}
325
326.p-button-text:focus-visible {
327    background: dt('button.text.primary.active.background');
328    border-color: transparent;
329}
330
331.p-button-secondary.p-button-text:focus-visible {
332    background: dt('button.text.secondary.active.background');
333    border-color: transparent;
334}
335
336.p-button-success.p-button-text:focus-visible {
337    background: dt('button.text.success.active.background');
338    border-color: transparent;
339}
340
341.p-button-info.p-button-text:focus-visible {
342    background: dt('button.text.info.active.background');
343    border-color: transparent;
344}
345
346.p-button-warn.p-button-text:focus-visible {
347    background: dt('button.text.warn.active.background');
348    border-color: transparent;
349}
350
351.p-button-help.p-button-text:focus-visible {
352    background: dt('button.text.help.active.background');
353    border-color: transparent;
354}
355
356.p-button-danger.p-button-text:focus-visible {
357    background: dt('button.text.danger.active.background');
358    border-color: transparent;
359}
360
361.p-button-contrast.p-button-text:focus-visible {
362    background: dt('button.text.contrast.active.background');
363    border-color: transparent;
364}
365
366.p-button-plain.p-button-text:focus-visible {
367    background: dt('button.text.plain.active.background');
368    border-color: transparent;
369}
370
371.p-button-outlined:focus-visible {
372    background: dt('button.outlined.primary.active.background');
373}
374
375.p-button-secondary.p-button-outlined:focus-visible {
376    background: dt('button.outlined.secondary.active.background');
377    border-color: dt('button.outlined.secondary.border.color');
378}
379
380.p-button-success.p-button-outlined:focus-visible {
381    background: dt('button.outlined.success.active.background');
382}
383
384.p-button-info.p-button-outlined:focus-visible {
385    background: dt('button.outlined.info.active.background');
386}
387
388.p-button-warn.p-button-outlined:focus-visible {
389    background: dt('button.outlined.warn.active.background');
390}
391
392.p-button-help.p-button-outlined:focus-visible {
393    background: dt('button.outlined.help.active.background');
394}
395
396.p-button-danger.p-button-outlined:focus-visible {
397    background: dt('button.outlined.danger.active.background');
398}
399
400.p-button-contrast.p-button-outlined:focus-visible {
401    background: dt('button.outlined.contrast.active.background');
402}
403
404.p-button-plain.p-button-outlined:focus-visible {
405    background: dt('button.outlined.plain.active.background');
406}
407`,x_={root:LN,colorScheme:ON,css:AN};var BN={background:"{content.background}
407",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12)"},NN={padding:"1.5rem",gap:"0.75rem"},VN={gap:"0.5rem"},zN={fontSize:"1.25rem",fontWeight:"500"},UN={color:"{text.muted.color}"};var C_={root:BN,body:NN,caption:VN,title:zN,subtitle:UN,css:""};var HN={transitionDuration:"{transition.duration}"},WN={gap:"0.25rem"},GN={padding:"1rem",gap:"1rem"},qN={width:"1.25rem",height:"1.25rem",borderRadius:"50%",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},jN={light:{indicator:{background:"{surface.200}",hoverBackground:"{surface.300}",activeBackground:"{primary.color}"}},dark:{indicator:{background:"{surface.700}",hoverBackground:"{surface.600}",activeBackground:"{primary.color}"}}},YN=`
408.p-carousel-indicator-button:hover {
409    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('text.color'), transparent 96%);
410}
411
412.p-carousel-indicator-button:focus-visible {
413    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('text.color'), transparent 96%);
414}
415
416.p-carousel-indicator-active .p-carousel-indicator-button:hover {
417    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('carousel.indicator.active.background'), transparent 92%);
418}
419
420.p-carousel-indicator-active .p-carousel-indicator-button:focus-visible {
421    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('carousel.indicator.active.background'), transparent 84%);
422}
423`,S_={root:HN,content:WN,indicatorList:GN,indicator:qN,colorScheme:jN,css:YN};var KN={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},$N={width:"2.5rem",color:"{form.field.icon.color}"},ZN={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},QN={padding:"{list.padding}",gap:"{list.gap}",mobileIndent:"1rem"},XN={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",icon:{color:"{list.option.icon.color}",focusColor:"{list.option.icon.focus.color}",size:"0.875rem"}},JN={color:"{form.field.icon.color}"},e6=`
424.p-cascadeselect.p-variant-filled {
425    border-bottom-left-radius: 0;
426    border-bottom-right-radius: 0;
427    border: 1px solid transparent;
428    background: dt('cascadeselect.filled.background') no-repeat;
429    background-image: linear-gradient(to bottom, dt('cascadeselect.focus.border.color'), dt('cascadeselect.focus.border.color')), linear-gradient(to bottom, dt('cascadeselect.border.color'), dt('cascadeselect.border.color'));
430    background-size: 0 2px, 100% 1px;
431    background-position: 50% 100%, 50% 100%;
432    background-origin: border-box;
433    transition: background-size 0.3s cubic-bezier(0.64, 0.09, 0.08, 1);
434}
435
436.p-cascadeselect.p-variant-filled:not(.p-disabled):hover {
437    background: dt('cascadeselect.filled.hover.background') no-repeat;
438    background-image: linear-gradient(to bottom, dt('cascadeselect.focus.border.color'), dt('cascadeselect.focus.border.color')), linear-gradient(to bottom, dt('cascadeselect.hover.border.color'), dt('cascadeselect.hover.border.color'));
439    background-size: 0 2px, 100% 1px;
440    background-position: 50% 100%, 50% 100%;
441    background-origin: border-box;
442    border-color: transparent;
443}
444
445.p-cascadeselect.p-variant-filled:not(.p-disabled).p-focus {
446    outline: 0 none;
447    background: dt('cascadeselect.filled.focus.background') no-repeat;
448    background-image: linear-gradient(to bottom, dt('cascadeselect.focus.border.color'), dt('cascadeselect.focus.border.color')), linear-gradient(to bottom, dt('cascadeselect.border.color'), dt('cascadeselect.border.color'));
449    background-size: 100% 2px, 100% 1px;
450    background-position: 50% 100%, 50% 100%;
451    background-origin: border-box;
452    border-color: transparent;
453}
454
455.p-cascadeselect.p-variant-filled:not(.p-disabled).p-focus:hover {
456    background-image: linear-gradient(to bottom, dt('cascadeselect.focus.border.color'), dt('cascadeselect.focus.border.color')), linear-gradient(to bottom, dt('cascadeselect.hover.border.color'), dt('cascadeselect.hover.border.color'));
457}
458
459.p-cascadeselect.p-variant-filled.p-invalid {
460    background-image: linear-gradient(to bottom, dt('cascadeselect.invali
460d.border.color'), dt('cascadeselect.invalid.border.color')), linear-gradient(to bottom, dt('cascadeselect.invalid.border.color'), dt('cascadeselect.invalid.border.color'));
461}
462
463.p-cascadeselect.p-variant-filled.p-invalid:not(.p-disabled).p-focus  {
464    background-image: linear-gradient(to bottom, dt('cascadeselect.invalid.border.color'), dt('cascadeselect.invalid.border.color')), linear-gradient(to bottom, dt('cascadeselect.invalid.border.color'), dt('cascadeselect.invalid.border.color'));
465}
466
467.p-cascadeselect-option {
468    transition: none;
469}
470`,w_={root:KN,dropdown:$N,overlay:ZN,list:QN,option:XN,clearIcon:JN,css:e6};var t6={borderRadius:"{border.radius.xs}",width:"18px",height:"18px",background:"{form.field.background}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"},transitionDuration:"{form.field.transition.duration}",sm:{width:"14px",height:"14px"},lg:{width:"22px",height:"22px"}},i6={size:"0.875rem",color:"{form.field.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"0.75rem"},lg:{size:"1rem"}},r6=`
471.p-checkbox {
472    border-radius: 50%;
473    transition: box-shadow dt('checkbox.transition.duration');
474}
475
476.p-checkbox-box {
477    border-width: 2px;
478}
479
480.p-checkbox:not(.p-disabled):has(.p-checkbox-input:hover) {
481    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('text.color'), transparent 96%);
482}
483
484.p-checkbox:not(.p-disabled):has(.p-checkbox-input:focus-visible) {
485    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('text.color'), transparent 88%);
486}
487
488.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:hover) {
489    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('checkbox.checked.background'), transparent 92%);
490}
491
492.p-checkbox-checked:not(.p-disabled):has(.p-checkbox-input:focus-visible) {
493    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('checkbox.checked.background'), transparent 84%);
494}
495
496.p-checkbox-checked .p-checkbox-box:before  {
497    content: "";
498    position: absolute;
499    top: var(--p-md-check-icon-t);
500    left: 2px;
501    border-right: 2px solid transparent;
502    border-bottom: 2px solid transparent;
503    transform: rotate(45deg);
504    transform-origin: 0% 100%;
505    animation: p-md-check 125ms 50ms linear forwards;
506}
507
508.p-checkbox-checked .p-checkbox-icon {
509    display: none;
510}
511
512.p-checkbox {
513    --p-md-check-icon-t: 10px;
514    --p-md-check-icon-w: 6px;
515    --p-md-check-icon-h: 12px;
516}
517
518.p-checkbox-sm {
519    --p-md-check-icon-t: 8px;
520    --p-md-check-icon-w: 4px;
521    --p-md-check-icon-h: 10px;
522}
523
524.p-checkbox-lg {
525    --p-md-check-icon-t: 12px;
526    --p-md-check-icon-w: 8px;
527    --p-md-check-icon-h: 16px;
528}
529
530@keyframes p-md-check {
531    0%{
532      width: 0;
533      height: 0;
534      border-color: dt('checkbox.icon.checked.color');
535      transform: translate3d(0,0,0) rotate(45deg);
536    }
537    33%{
538      width: var(--p-md-check-icon-w);
539      height: 0;
540      transform: translate3d(0,0,0) rotate(45deg);
541    }
542    100%{
543      width: var(--p-md-check-icon-w);
544      height: var(--p-md-check-icon-h);
545      border-color: dt('checkbox.icon.checked.color');
546      transform: translate3d(0,calc(-1 * var(--p-md-check-icon-h)),0) rotate(45deg);
547    }
548}
549`,T_={root:t6,icon:i6,css:r6};var n6={borderRadius:"2rem",paddingX:"0.75rem",paddingY:"0.75rem",gap:"0.5rem",transitionDuration:"{transition.duration}"},o6={width:"2.25rem",height:"2.25rem"},a6={size:"1rem"},s6={size:"1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}"}},l6={light:{root:{background:"{surface.200}",color:"{surface.900}"},icon:{color:"{surface.600}"},removeIcon:{color:"{surface.600}",focusRing:{shadow:"0 0 1px 4px {surface.300}"}}},dark:{root:{background:"{surface.700}",color:"{surface.0}"},icon:{color:"{surface.0}"},removeIcon:{color:"{surface.0}",focusRing:{shadow:"0 0 1px 4px {surface.600}"}}}};var E_={root:n6,image:o6,icon:a6,removeIcon:s6,colorScheme:l6,css:""};var c6={transitionDuration:"{transition.duration}"},d6={width:"2rem",height:"2rem",borderRadius:"{form.field.border.radiu
549s}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},p6={shadow:"{overlay.popover.shadow}",borderRadius:"{overlay.popover.borderRadius}"},u6={light:{panel:{background:"{surface.800}",borderColor:"{surface.900}"},handle:{color:"{surface.0}"}},dark:{panel:{background:"{surface.900}",borderColor:"{surface.700}"},handle:{color:"{surface.0}"}}};var k_={root:c6,preview:d6,panel:p6,colorScheme:u6,css:""};var m6={size:"2rem",color:"{overlay.modal.color}"},f6={gap:"1rem"};var I_={icon:m6,content:f6,css:""};var h6={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},g6={padding:"{overlay.popover.padding}",gap:"1rem"},v6={size:"1.5rem",color:"{overlay.popover.color}"},_6={gap:"0.5rem",padding:"0 {overlay.popover.padding} {overlay.popover.padding} {overlay.popover.padding}"};var D_={root:h6,content:g6,icon:v6,footer:_6,css:""};var b6={background:"{content.background}",borderColor:"transparent",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},y6={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},x6={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},C6={mobileIndent:"1rem"},S6={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},w6={borderColor:"{content.border.color}"};var M_={root:b6,list:y6,item:x6,submenu:C6,submenuIcon:S6,separator:w6,css:""};var T6={transitionDuration:"{transition.duration}"},E6={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},k6={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{datatable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},I6={fontWeight:"600"},D6={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},M6={borderColor:"{datatable.border.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},P6={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},F6={fontWeight:"600"},R6={background:"{content.background}",borderColor:"{datatable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",sm:{padding:"0.375rem 0.5rem"},lg:{padding:"1rem 1.25rem"}},L6={color:"{primary.color}"},O6={width:"0.5rem"},A6={width:"1px",color:"{primary.color}"},B6={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},N6={size:"2rem"}
549,V6={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},z6={inlineGap:"0.5rem",overlaySelect:{background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},overlayPopover:{background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",shadow:"{overlay.popover.shadow}",padding:"{overlay.popover.padding}",gap:"0.5rem"},rule:{borderColor:"{content.border.color}"},constraintList:{padding:"{list.padding}",gap:"{list.gap}"},constraint:{focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",separator:{borderColor:"{content.border.color}"},padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"}},U6={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},H6={borderColor:"{datatable.border.color}",borderWidth:"0 0 1px 0"},W6={light:{root:{borderColor:"{content.border.color}"},row:{stripedBackground:"{surface.50}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},row:{stripedBackground:"{surface.950}"},bodyCell:{selectedBorderColor:"{primary.900}"}}},G6=`
550.p-datatable-header-cell,
551.p-datatable-tbody > tr {
552    transition: none;
553}
554`,P_={root:T6,header:E6,headerCell:k6,columnTitle:I6,row:D6,bodyCell:M6,footerCell:P6,columnFooter:F6,footer:R6,dropPoint:L6,columnResizer:O6,resizeIndicator:A6,sortIcon:B6,loadingIcon:N6,rowToggleButton:V6,filter:z6,paginatorTop:U6,paginatorBottom:H6,colorScheme:W6,css:G6};var q6={borderColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0"},j6={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem",borderRadius:"0"},Y6={background:"{content.background}",color:"{content.color}",borderColor:"transparent",borderWidth:"0",padding:"0",borderRadius:"0"},K6={background:"{content.background}",color:"{content.color}",borderColor:"{content.border.color}",borderWidth:"1px 0 0 0",padding:"0.75rem 1rem",borderRadius:"0"},$6={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},Z6={borderColor:"{content.border.color}",borderWidth:"1px 0 0 0"};var F_={root:q6,header:j6,content:Y6,footer:K6,paginatorTop:$6,paginatorBottom:Z6,css:""};var Q6={transitionDuration:"{transition.duration}"},X6={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.popover.shadow}",padding:"0.5rem"},J6={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",padding:"0 0 0.5rem 0"},e7={gap:"0.5rem",fontWeight:"700"},t7={width:"3rem",sm:{width:"2.5rem"},lg:{width:"3.5rem"},borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",borderRadius:"{form.field.border.radius}",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},i7={color:"{form.field.icon.color}"},r7={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.5rem 0.75rem",borderRadius:"{content.border.radius}"},n7={hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",padding:"0.5rem 0.75rem",borderRadius:"{content.border.radius}"},o7={borderColor:"{content.border.color}",gap:"{overlay.popover.padding}"},a7={margin:"0.5rem 0 0 0"},s7={padding:"0.5rem",fontWeight:"700",color:"{content.color}"}
554,l7={hoverBackground:"{content.hover.background}",selectedBackground:"{primary.color}",rangeSelectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{primary.contrast.color}",rangeSelectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",padding:"0.125rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},c7={margin:"0.5rem 0 0 0"},d7={padding:"0.625rem",borderRadius:"{content.border.radius}"},p7={margin:"0.5rem 0 0 0"},u7={padding:"0.625rem",borderRadius:"{content.border.radius}"},m7={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}"},f7={padding:"0.5rem 0 0 0",borderColor:"{content.border.color}",gap:"0.5rem",buttonGap:"0.25rem"},h7={light:{dropdown:{background:"{surface.100}",hoverBackground:"{surface.200}",activeBackground:"{surface.300}",color:"{surface.600}",hoverColor:"{surface.700}",activeColor:"{surface.800}"},today:{background:"{surface.200}",color:"{surface.900}"}},dark:{dropdown:{background:"{surface.800}",hoverBackground:"{surface.700}",activeBackground:"{surface.600}",color:"{surface.300}",hoverColor:"{surface.200}",activeColor:"{surface.100}"},today:{background:"{surface.700}",color:"{surface.0}"}}},g7=`
555.p-datepicker-header {
556    justify-content: start;
557}
558
559.p-datepicker-title {
560    order: 1;
561}
562
563.p-datepicker-prev-button {
564    order: 2;
565    margin-inline-start: auto;
566}
567
568.p-datepicker-next-button {
569    order: 2;
570    margin-inline-start: 0.5rem;
571}
572
573.p-datepicker-select-month:focus-visible {
574    background: dt('datepicker.select.month.hover.background');
575    color: dt('datepicker.select.month.hover.color');
576    outline: 0 none;
577}
578
579.p-datepicker-select-year:focus-visible {
580    background: dt('datepicker.select.year.hover.background');
581    color: dt('datepicker.select.year.hover.color');
582    outline: 0 none;
583}
584
585.p-datepicker-dropdown:focus-visible {
586    outline: 0 none;
587    background: dt('datepicker.dropdown.hover.background');
588    border-color: dt('datepicker.dropdown.hover.border.color');
589    color: dt('datepicker.dropdown.hover.color');
590}
591`,R_={root:Q6,panel:X6,header:J6,title:e7,dropdown:t7,inputIcon:i7,selectMonth:r7,selectYear:n7,group:o7,dayView:a7,weekDay:s7,date:l7,monthView:c7,month:d7,yearView:p7,year:u7,buttonbar:m7,timePicker:f7,colorScheme:h7,css:g7};var v7={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",borderRadius:"{overlay.modal.border.radius}",shadow:"{overlay.modal.shadow}"},_7={padding:"{overlay.modal.padding}",gap:"0.5rem"},b7={fontSize:"1.25rem",fontWeight:"600"},y7={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},x7={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}",gap:"0.5rem"};var L_={root:v7,header:_7,title:b7,content:y7,footer:x7,css:""};var C7={borderColor:"{content.border.color}"},S7={background:"{content.background}",color:"{text.color}"},w7={margin:"1rem 0",padding:"0 1rem",content:{padding:"0 0.5rem"}},T7={margin:"0 1rem",padding:"0.5rem 0",content:{padding:"0.5rem 0"}};var O_={root:C7,content:S7,horizontal:w7,vertical:T7,css:""};var E7={background:"rgba(255, 255, 255, 0.1)",borderColor:"rgba(255, 255, 255, 0.2)",padding:"0.5rem",borderRadius:"{border.radius.xl}"},k7={borderRadius:"{content.border.radius}",padding:"0.5rem",size:"3rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}};var A_={root:E7,item:k7,css:""};var I7={background:"{overlay.modal.background}",borderColor:"{overlay.modal.border.color}",color:"{overlay.modal.color}",shadow:"{overlay.modal.shadow}"},D7={padding:"{overlay.modal.padding}"},M7={fontSize:"1.5rem",fontWeight:"600"},P7={padding:"0 {overlay.modal.padding} {overlay.modal.padding} {overlay.modal.padding}"},F7={padding:"{overlay.modal.padding}"};var B_={root:I7,header:D7,title:M7,content:P7,footer:F7,css:""};var R7={background:"{content.background}",borderColor:"{content.border.color}
591",borderRadius:"{content.border.radius}"},L7={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},O7={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}",padding:"{list.padding}"},A7={focusBackground:"{list.option.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},B7={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},N7=`
592.p-editor .p-editor-toolbar {
593    padding: 0.75rem
594}
595`,N_={toolbar:R7,toolbarItem:L7,overlay:O7,overlayOption:A7,content:B7,css:N7};var V7={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",padding:"0 1.25rem 1.25rem 1.25rem",transitionDuration:"{transition.duration}"},z7={background:"{content.background}",hoverBackground:"{content.hover.background}",color:"{content.color}",hoverColor:"{content.hover.color}",borderRadius:"{content.border.radius}",borderWidth:"1px",borderColor:"transparent",padding:"0.75rem 1rem",gap:"0.5rem",fontWeight:"600",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},U7={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}"},H7={padding:"0"},W7=`
596.p-fieldset-toggle-button:focus-visible {
597    background: dt('navigation.item.active.background');
598}
599`,V_={root:V7,legend:z7,toggleIcon:U7,content:H7,css:W7};var G7={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},q7={background:"transparent",color:"{text.color}",padding:"1.25rem",borderColor:"unset",borderWidth:"0",borderRadius:"0",gap:"0.5rem"},j7={highlightBorderColor:"{primary.color}",padding:"0 1.25rem 1.25rem 1.25rem",gap:"1rem"},Y7={padding:"1rem",gap:"1rem",borderColor:"{content.border.color}",info:{gap:"0.5rem"}},K7={gap:"0.5rem"},$7={height:"0.25rem"},Z7={gap:"0.5rem"};var z_={root:G7,header:q7,content:j7,file:Y7,fileList:K7,progressbar:$7,basic:Z7,css:""};var Q7={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",activeColor:"{form.field.float.label.active.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",positionY:"{form.field.padding.y}",fontWeight:"500",active:{fontSize:"0.75rem",fontWeight:"400"}},X7={active:{top:"-1.25rem"}},J7={input:{paddingTop:"1.5rem",paddingBottom:"0.5rem"},active:{top:"0.5rem"}},e8={borderRadius:"{border.radius.xs}",active:{background:"{form.field.background}",padding:"0 0.125rem"}};var U_={root:Q7,over:X7,in:J7,on:e8,css:""};var t8={borderWidth:"1px",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",transitionDuration:"{transition.duration}"},i8={background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.100}",hoverColor:"{surface.0}",size:"3rem",gutter:"0.5rem",prev:{borderRadius:"50%"},next:{borderRadius:"50%"},focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},r8={size:"1.5rem"},n8={background:"{content.background}",padding:"1rem 0.25rem"},o8={size:"2rem",borderRadius:"50%",gutter:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},a8={size:"1rem"},s8={background:"rgba(0, 0, 0, 0.5)",color:"{surface.100}",padding:"1rem"},l8={gap:"0.5rem",padding:"1rem"}
599,c8={width:"1rem",height:"1rem",activeBackground:"{primary.color}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},d8={background:"rgba(0, 0, 0, 0.5)"},p8={background:"rgba(255, 255, 255, 0.4)",hoverBackground:"rgba(255, 255, 255, 0.6)",activeBackground:"rgba(255, 255, 255, 0.9)"},u8={size:"3rem",gutter:"0.5rem",background:"rgba(255, 255, 255, 0.1)",hoverBackground:"rgba(255, 255, 255, 0.2)",color:"{surface.50}",hoverColor:"{surface.0}",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},m8={size:"1.5rem"},f8={light:{thumbnailNavButton:{hoverBackground:"{surface.100}",color:"{surface.600}",hoverColor:"{surface.700}"},indicatorButton:{background:"{surface.200}",hoverBackground:"{surface.300}"}},dark:{thumbnailNavButton:{hoverBackground:"{surface.700}",color:"{surface.400}",hoverColor:"{surface.0}"},indicatorButton:{background:"{surface.700}",hoverBackground:"{surface.600}"}}};var H_={root:t8,navButton:i8,navIcon:r8,thumbnailsContent:n8,thumbnailNavButton:o8,thumbnailNavButtonIcon:a8,caption:s8,indicatorList:l8,indicatorButton:c8,insetIndicatorList:d8,insetIndicatorButton:p8,closeButton:u8,closeButtonIcon:m8,colorScheme:f8,css:""};var h8={color:"{form.field.icon.color}"};var W_={icon:h8,css:""};var g8={color:"{form.field.float.label.color}",focusColor:"{form.field.float.label.focus.color}",invalidColor:"{form.field.float.label.invalid.color}",transitionDuration:"0.2s",positionX:"{form.field.padding.x}",top:"0.5rem",fontSize:"0.75rem",fontWeight:"400"},v8={paddingTop:"1.5rem",paddingBottom:"0.5rem"};var G_={root:g8,input:v8,css:""};var _8={transitionDuration:"{transition.duration}"},b8={icon:{size:"1.5rem"},mask:{background:"{mask.background}",color:"{mask.color}"}},y8={position:{left:"auto",right:"1rem",top:"1rem",bottom:"auto"},blur:"8px",background:"rgba(255,255,255,0.1)",borderColor:"rgba(255,255,255,0.2)",borderWidth:"1px",borderRadius:"30px",padding:".5rem",gap:"0.5rem"},x8={hoverBackground:"rgba(255,255,255,0.1)",color:"{surface.50}",hoverColor:"{surface.0}",size:"3rem",iconSize:"1.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}};var q_={root:_8,preview:b8,toolbar:y8,action:x8,css:""};var C8={size:"20px",hoverSize:"40px",background:"rgba(255,255,255,0.4)",hoverBackground:"rgba(255,255,255,0.6)",borderColor:"unset",hoverBorderColor:"unset",borderWidth:"0",borderRadius:"50%",transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"rgba(255,255,255,0.3)",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}};var j_={handle:C8,css:""};var S8={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",gap:"0.5rem"},w8={fontWeight:"500"},T8={size:"1rem"},E8={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {blue.500}, transparent 96%)"},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}
599, transparent 64%)",color:"{green.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {green.500}, transparent 96%)"},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {yellow.500}, transparent 96%)"},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"0px 4px 8px 0px color-mix(in srgb, {red.500}, transparent 96%)"},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.500}, transparent 96%)"},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"0px 4px 8px 0px color-mix(in srgb, {surface.950}, transparent 96%)"}}};var Y_={root:S8,text:w8,icon:T8,colorScheme:E8,css:""};var k8={padding:"{form.field.padding.y} {form.field.padding.x}",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},transitionDuration:"{transition.duration}"},I8={hoverBackground:"{content.hover.background}",hoverColor:"{content.hover.color}"};var K_={root:k8,display:I8,css:""};var D8={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}"},M8={borderRadius:"{border.radius.sm}"},P8={light:{chip:{focusBackground:"{surface.200}",color:"{surface.800}"}},dark:{chip:{focusBackground:"{surface.700}",color:"{surface.0}"}}};var $_={root:D8,chip:M8,colorScheme:P8,css:""};var F8={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.icon.color}",borderRadius:"{form.field.border.radius}",padding:"0.75rem",minWidth:"3rem"},R8=`
600.p-inputgroup:has(.p-variant-filled) .p-inputgroupaddon {
601    border-block-start-color: dt('inputtext.filled.background');
602    border-inline-color: dt('inputtext.filled.background');
603    background: dt('inputtext.filled.background') no-repeat;
604    border-bottom-left-radius: 0;
605    border-bottom-right-radius: 0;
606}
607`,Z_={addon:F8,css:R8};var L8={transitionDuration:"{transition.duration}"},O8={width:"3rem",borderRadius:"{form.field.border.radius}",verticalPadding:"{form.field.padding.y}"},A8={light:{button:{background:"transparent",hoverBackground:"{surface.100}",activeBackground:"{surface.200}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.500}",activeColor:"{surface.600}"}},dark:{button:{background:"transparent",hoverBackground:"{surface.800}",activeBackground:"{surface.700}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.border.color}",activeBorderColor:"{form.field.border.color}",color:"{surface.400}",hoverColor:"{surface.300}",activeColor:"{surface.200}"}}},B8=`
608.p-inputnumber-stacked .p-inputnumber-button-group {
609    top: 2px;
610    right: 2px;
611    height: calc(100% - 4px);
612}
613
614.p-inputnumber-horizontal:has(.p-variant-filled) .p-inputnumber-button {
615    border-block-start-color: dt('inputtext.filled.background');
616    border-inline-color: dt('inputtext.filled.background');
617    background: dt('inputtext.filled.background') no-repeat;
618    border-bottom-left-radius: 0;
619    border-bottom-right-radius: 0;
620}
621
622.p-inputnumber-vertical:has(.p-variant-filled) .p-inputnumber-button {
623    border-block-color: dt('inputtext.filled.background');
624    border-inline-color: dt('inputtext.filled.background');
625    background: dt('inputtext.filled.background') no-repeat;
626}
627
628.p-inputnumber-vertical:has(.p-variant-filled) .p-inputnumber-increment-button {
629    border-block-end: 1px solid dt('inputtext.border.color')
630}
631`,Q_={root:L8,button:O8,colorScheme:A8,css:B8};var N8={gap:"0.5rem"},V8={width:"3rem",sm:{width:"2.5rem"},lg:{width:"3.5rem"}};var X_={root:N8,input:V8,css:""};var z8={background:"{form.field.background}
631",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},U8=`
632.p-inputtext.p-variant-filled {
633    border-bottom-left-radius: 0;
634    border-bottom-right-radius: 0;
635    border: 1px solid transparent;
636    background: dt('inputtext.filled.background') no-repeat;
637    background-image: linear-gradient(to bottom, dt('inputtext.focus.border.color'), dt('inputtext.focus.border.color')), linear-gradient(to bottom, dt('inputtext.border.color'), dt('inputtext.border.color'));
638    background-size: 0 2px, 100% 1px;
639    background-position: 50% 100%, 50% 100%;
640    background-origin: border-box;
641    transition: background-size 0.3s cubic-bezier(0.64, 0.09, 0.08, 1);
642}
643
644.p-inputtext.p-variant-filled:enabled:hover {
645    background: dt('inputtext.filled.hover.background') no-repeat;
646    background-image: linear-gradient(to bottom, dt('inputtext.focus.border.color'), dt('inputtext.focus.border.color')), linear-gradient(to bottom, dt('inputtext.hover.border.color'), dt('inputtext.hover.border.color'));
647    background-size: 0 2px, 100% 1px;
648    background-position: 50% 100%, 50% 100%;
649    background-origin: border-box;
650    border-color: transparent;
651}
652
653.p-inputtext.p-variant-filled:enabled:focus {
654    outline: 0 none;
655    background: dt('inputtext.filled.focus.background') no-repeat;
656    background-image: linear-gradient(to bottom, dt('inputtext.focus.border.color'), dt('inputtext.focus.border.color')), linear-gradient(to bottom, dt('inputtext.border.color'), dt('inputtext.border.color'));
657    background-size: 100% 2px, 100% 1px;
658    background-position: 50% 100%, 50% 100%;
659    background-origin: border-box;
660    border-color: transparent;
661}
662
663.p-inputtext.p-variant-filled:enabled:hover:focus {
664    background-image: linear-gradient(to bottom, dt('inputtext.focus.border.color'), dt('inputtext.focus.border.color')), linear-gradient(to bottom, dt('inputtext.hover.border.color'), dt('inputtext.hover.border.color'));
665}
666
667.p-inputtext.p-variant-filled.p-invalid {
668    background-image: linear-gradient(to bottom, dt('inputtext.invalid.border.color'), dt('inputtext.invalid.border.color')), linear-gradient(to bottom, dt('inputtext.invalid.border.color'), dt('inputtext.invalid.border.color'));
669}
670
671.p-inputtext.p-variant-filled.p-invalid:enabled:focus {
672    background-image: linear-gradient(to bottom, dt('inputtext.invalid.border.color'), dt('inputtext.invalid.border.color')), linear-gradient(to bottom, dt('inputtext.invalid.border.color'), dt('inputtext.invalid.border.color'));
673}
674
675.p-inputtext.p-variant-filled:disabled {
676    background: dt('inputtext.disabled.background') no-repeat;
677    background-image: linear-gradient(to bottom, dt('inputtext.border.color'), dt('inputtext.border.color')), linear-gradient(to bottom, dt('inputtext.border.color'), dt('inputtext.border.color'));
678    background-size: 0 2px, 100% 1px;
679    background-position: 50% 100%, 50% 100%;
680    background-origin: border-box;
681    border-color: transparent;
682}
683`,J_={root:z8,css:U8};var H8={transitionDuration:"{transition.duration}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},W8={background:"{primary.color}"},G8={background:"{content.border.color}"},q8={color:"{text.muted.color}"};var eb={root:H8,value:W8,range:G8,text:q8,css:""};var j8={background:"{form.field.background}
683",disabledBackground:"{form.field.disabled.background}",borderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",shadow:"{form.field.shadow}",borderRadius:"{form.field.border.radius}",transitionDuration:"{form.field.transition.duration}"},Y8={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},K8={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},$8={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},Z8={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},Q8={padding:"{list.option.padding}"},X8={light:{option:{stripedBackground:"{surface.50}"}},dark:{option:{stripedBackground:"{surface.900}"}}},J8=`
684.p-listbox-option {
685    transition: none;
686}
687`,tb={root:j8,list:Y8,option:K8,optionGroup:$8,checkmark:Z8,emptyMessage:Q8,colorScheme:X8,css:J8};var eV={background:"{content.background}",borderColor:"{content.border.color}",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",verticalOrientation:{padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},horizontalOrientation:{padding:"0.5rem 0.75rem",gap:"0.5rem"},transitionDuration:"{transition.duration}"},tV={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},iV={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},rV={padding:"0",background:"{content.background}",borderColor:"transparent",borderRadius:"{content.border.radius}",color:"{content.color}",shadow:"{overlay.navigation.shadow}",gap:"0.5rem"},nV={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},oV={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},aV={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},sV={borderColor:"{content.border.color}"},lV={borderRadius:"50%",size:"2.5rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},cV=`
688.p-megamenu-button:focus-visible {
689    background: dt('navigation.item.active.background');
690}
691`,ib={root:eV,baseItem:tV,item:iV,overlay:rV,submenu:nV,submenuLabel:oV,submenuIcon:aV,separator:sV,mobileButton:lV,css:cV};var dV={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},pV={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"},uV={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},mV={padding:"{navigation.submenu.label.padding}",fontWeight:"{navigation.submenu.label.font.weight}",background:"{navigation.submenu.label.background}",color:"{navigation.submenu.label.color}"},fV={borderColor:"{content.border.color}"},hV=`
692.p-menu-overlay {
693    border-color: transparent;
694}
695`,rb={root:dV,list:pV,item:uV,submenuLabel:mV,separator:fV,css:hV};var gV={background:"{content.background}",borderColor:"{content.border.color}
695",borderRadius:"{content.border.radius}",color:"{content.color}",gap:"0.5rem",padding:"0.5rem 0.75rem",transitionDuration:"{transition.duration}"},vV={borderRadius:"{content.border.radius}",padding:"{navigation.item.padding}"},_V={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},bV={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}",background:"{content.background}",borderColor:"transparent",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",mobileIndent:"1rem",icon:{size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"}},yV={borderColor:"{content.border.color}"},xV={borderRadius:"50%",size:"2.5rem",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",hoverBackground:"{content.hover.background}",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},CV=`
696.p-menubar-button:focus-visible {
697    background: dt('navigation.item.active.background');
698}
699`,nb={root:gV,baseItem:vV,item:_V,submenu:bV,separator:yV,mobileButton:xV,css:CV};var SV={borderRadius:"{content.border.radius}",borderWidth:"0",transitionDuration:"{transition.duration}"},wV={padding:"1rem 1.25rem",gap:"0.5rem",sm:{padding:"0.625rem 0.625rem"},lg:{padding:"0.825rem 0.825rem"}},TV={fontSize:"1rem",fontWeight:"500",sm:{fontSize:"0.875rem"},lg:{fontSize:"1.125rem"}},EV={size:"1.25rem",sm:{size:"1rem"},lg:{size:"1.5rem"}},kV={width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},IV={size:"1rem",sm:{size:"0.875rem"},lg:{size:"1.125rem"}},DV={root:{borderWidth:"1px"}},MV={content:{padding:"0"}},PV={light:{info:{background:"color-mix(in srgb, {blue.50}, transparent 5%)",borderColor:"{blue.200}",color:"{blue.600}",shadow:"none",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}},outlined:{color:"{blue.600}",borderColor:"{blue.600}"},simple:{color:"{blue.600}"}},success:{background:"color-mix(in srgb, {green.50}, transparent 5%)",borderColor:"{green.200}",color:"{green.600}",shadow:"none",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}},outlined:{color:"{green.600}",borderColor:"{green.600}"},simple:{color:"{green.600}"}},warn:{background:"color-mix(in srgb,{yellow.50}, transparent 5%)",borderColor:"{yellow.200}",color:"{yellow.900}",shadow:"none",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}},outlined:{color:"{yellow.900}",borderColor:"{yellow.900}"},simple:{color:"{yellow.900}"}},error:{background:"color-mix(in srgb, {red.50}, transparent 5%)",borderColor:"{red.200}",color:"{red.600}",shadow:"none",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}},outlined:{color:"{red.600}",borderColor:"{red.600}"},simple:{color:"{red.600}"}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",shadow:"none",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}},outlined:{color:"{surface.600}",borderColor:"{surface.600}"},simple:{color:"{surface.600}"}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",shadow:"none",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}},outlined:{color:"{surface.950}",borderColor:"{surface.950}"},simple:{color:"{surface.950}"}}},dark:{info:{background:"color-mix(in srgb, {blue.500}, transparent 84%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{blue.500}
699",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}},outlined:{color:"{blue.500}",borderColor:"{blue.500}"},simple:{color:"{blue.500}"}},success:{background:"color-mix(in srgb, {green.500}, transparent 84%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{green.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}},outlined:{color:"{green.500}",borderColor:"{green.500}"},simple:{color:"{green.500}"}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 84%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{yellow.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}},outlined:{color:"{yellow.500}",borderColor:"{yellow.500}"},simple:{color:"{yellow.500}"}},error:{background:"color-mix(in srgb, {red.500}, transparent 84%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{red.500}",shadow:"none",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}},outlined:{color:"{red.500}",borderColor:"{red.500}"},simple:{color:"{red.500}"}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",shadow:"none",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}},outlined:{color:"{surface.400}",borderColor:"{surface.400}"},simple:{color:"{surface.400}"}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",shadow:"none",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}},outlined:{color:"{surface.0}",borderColor:"{surface.0}"},simple:{color:"{surface.0}"}}}};var ob={root:SV,content:wV,text:TV,icon:EV,closeButton:kV,closeIcon:IV,outlined:DV,simple:MV,colorScheme:PV,css:""};var FV={borderRadius:"{content.border.radius}",gap:"1rem"},RV={background:"{content.border.color}",size:"0.5rem"},LV={gap:"0.5rem"},OV={size:"0.5rem"},AV={size:"1rem"},BV={verticalGap:"0.5rem",horizontalGap:"1rem"};var ab={root:FV,meters:RV,label:LV,labelMarker:OV,labelIcon:AV,labelList:BV,css:""};var NV={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},VV={width:"2.5rem",color:"{form.field.icon.color}"},zV={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},UV={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},HV={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}
699",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}",gap:"0.75rem"},WV={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},GV={color:"{form.field.icon.color}"},qV={borderRadius:"{border.radius.sm}"},jV={padding:"{list.option.padding}"},YV=`
700.p-multiselect.p-variant-filled {
701    border-bottom-left-radius: 0;
702    border-bottom-right-radius: 0;
703    border: 1px solid transparent;
704    background: dt('multiselect.filled.background') no-repeat;
705    background-image: linear-gradient(to bottom, dt('multiselect.focus.border.color'), dt('multiselect.focus.border.color')), linear-gradient(to bottom, dt('multiselect.border.color'), dt('multiselect.border.color'));
706    background-size: 0 2px, 100% 1px;
707    background-position: 50% 100%, 50% 100%;
708    background-origin: border-box;
709    transition: background-size 0.3s cubic-bezier(0.64, 0.09, 0.08, 1);
710}
711
712.p-multiselect.p-variant-filled:not(.p-disabled):hover {
713    background: dt('multiselect.filled.hover.background') no-repeat;
714    background-image: linear-gradient(to bottom, dt('multiselect.focus.border.color'), dt('multiselect.focus.border.color')), linear-gradient(to bottom, dt('multiselect.hover.border.color'), dt('multiselect.hover.border.color'));
715    background-size: 0 2px, 100% 1px;
716    background-position: 50% 100%, 50% 100%;
717    background-origin: border-box;
718    border-color: transparent;
719}
720
721.p-multiselect.p-variant-filled:not(.p-disabled).p-focus {
722    outline: 0 none;
723    background: dt('multiselect.filled.focus.background') no-repeat;
724    background-image: linear-gradient(to bottom, dt('multiselect.focus.border.color'), dt('multiselect.focus.border.color')), linear-gradient(to bottom, dt('multiselect.border.color'), dt('multiselect.border.color'));
725    background-size: 100% 2px, 100% 1px;
726    background-position: 50% 100%, 50% 100%;
727    background-origin: border-box;
728    border-color: transparent;
729}
730
731.p-multiselect.p-variant-filled:not(.p-disabled).p-focus:hover {
732    background-image: linear-gradient(to bottom, dt('multiselect.focus.border.color'), dt('multiselect.focus.border.color')), linear-gradient(to bottom, dt('multiselect.hover.border.color'), dt('multiselect.hover.border.color'));
733}
734
735.p-multiselect.p-variant-filled.p-invalid {
736    background-image: linear-gradient(to bottom, dt('multiselect.invalid.border.color'), dt('multiselect.invalid.border.color')), linear-gradient(to bottom, dt('multiselect.invalid.border.color'), dt('multiselect.invalid.border.color'));
737}
738
739.p-multiselect.p-variant-filled.p-invalid:not(.p-disabled).p-focus  {
740    background-image: linear-gradient(to bottom, dt('multiselect.invalid.border.color'), dt('multiselect.invalid.border.color')), linear-gradient(to bottom, dt('multiselect.invalid.border.color'), dt('multiselect.invalid.border.color'));
741}
742
743.p-multiselect-option {
744    transition: none;
745}
746`,sb={root:NV,dropdown:VV,overlay:zV,list:UV,option:HV,optionGroup:WV,chip:qV,clearIcon:GV,emptyMessage:jV,css:YV};var KV={gap:"1.125rem"},$V={gap:"0.5rem"};var lb={root:KV,controls:$V,css:""};var ZV={gutter:"0.75rem",transitionDuration:"{transition.duration}"},QV={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{content.border.color}",color:"{content.color}",selectedColor:"{highlight.color}",hoverColor:"{content.hover.color}",padding:"1rem 1.25rem",toggleablePadding:"1rem 1.25rem 1.5rem 1.25rem",borderRadius:"{content.border.radius}"},XV={background:"{content.background}",hoverBackground:"{content.hover.background}",borderColor:"{content.border.color}",color:"{text.muted.color}",hoverColor:"{text.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},JV={color:"{content.border.color}
746",borderRadius:"{content.border.radius}",height:"24px"};var cb={root:ZV,node:QV,nodeToggleButton:XV,connector:JV,css:""};var ez={outline:{width:"2px",color:"{content.background}"}};var db={root:ez,css:""};var tz={padding:"0.5rem 1rem",gap:"0.25rem",borderRadius:"{content.border.radius}",background:"{content.background}",color:"{content.color}",transitionDuration:"{transition.duration}"},iz={background:"transparent",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}",width:"2.5rem",height:"2.5rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},rz={color:"{text.muted.color}"},nz={maxWidth:"2.5rem"};var pb={root:tz,navButton:iz,currentPageReport:rz,jumpToPageInput:nz,css:""};var oz={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}"},az={background:"transparent",color:"{text.color}",padding:"1.25rem",borderColor:"{content.border.color}",borderWidth:"0",borderRadius:"0"},sz={padding:"0.5rem 1.25rem"},lz={fontWeight:"600"},cz={padding:"0 1.25rem 1.25rem 1.25rem"},dz={padding:"0 1.25rem 1.25rem 1.25rem"};var ub={root:oz,header:az,toggleableHeader:sz,title:lz,content:cz,footer:dz,css:""};var pz={gap:"0",transitionDuration:"{transition.duration}"},uz={background:"{content.background}",borderColor:"{content.border.color}",borderWidth:"0",color:"{content.color}",padding:"0",borderRadius:"0",first:{borderWidth:"0",topBorderRadius:"{content.border.radius}"},last:{borderWidth:"0",bottomBorderRadius:"{content.border.radius}"}},mz={focusBackground:"{navigation.item.focus.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",gap:"0.5rem",padding:"{navigation.item.padding}",borderRadius:"{content.border.radius}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}"}},fz={indent:"1rem"},hz={color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}"},gz=`
747.p-panelmenu-panel {
748    box-shadow: 0 0 0 1px dt('panelmenu.panel.border.color');
749    transition: margin dt('panelmenu.transition.duration');
750}
751
752.p-panelmenu-panel:has(.p-panelmenu-header-active) {
753    margin: 1rem 0;
754}
755
756.p-panelmenu-panel:first-child {
757    border-top-left-radius: dt('content.border.radius');
758    border-top-right-radius: dt('content.border.radius');
759    margin-top: 0;
760}
761
762.p-panelmenu-panel:last-child {
763    border-bottom-left-radius: dt('content.border.radius');
764    border-bottom-right-radius: dt('content.border.radius');
765    margin-bottom: 0;
766}
767
768.p-accordionpanel:not(.p-disabled) .p-accordionheader:focus-visible {
769    background: dt('navigation.item.active.background');
770}
771`,mb={root:pz,panel:uz,item:mz,submenu:fz,submenuIcon:hz,css:gz};var vz={background:"{content.border.color}",borderRadius:"{content.border.radius}",height:".75rem"},_z={color:"{form.field.icon.color}"},bz={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",borderRadius:"{overlay.popover.border.radius}",color:"{overlay.popover.color}",padding:"{overlay.popover.padding}",shadow:"{overlay.popover.shadow}"},yz={gap:"0.5rem"},xz={light:{strength:{weakBackground:"{red.500}",mediumBackground:"{amber.500}",strongBackground:"{green.500}"}},dark:{strength:{weakBackground:"{red.400}",mediumBackground:"{amber.400}",strongBackground:"{green.400}"}}};var fb={meter:vz,icon:_z,overlay:bz,content:yz,colorScheme:xz,css:""};var Cz={gap:"1.125rem"},Sz={gap:"0.5rem"};var hb={root:Cz,controls:Sz,css:""};var wz={background:"{overlay.popover.background}",borderColor:"{overlay.popover.border.color}",color:"{overlay.popover.color}",borderRadius:"{overlay.popover.border.radius}",shadow:"{overlay.popover.shadow}",gutter:"10px",arrowOffset:"1.25rem"},Tz={padding:"{overlay.popover.padding}"};var gb={root:wz,content:Tz,css:""};var Ez={background:"{content.border.color}
771",borderRadius:"{content.border.radius}",height:"1rem"},kz={background:"{primary.color}"},Iz={color:"{primary.contrast.color}",fontSize:"0.75rem",fontWeight:"600"};var vb={root:Ez,value:kz,label:Iz,css:""};var Dz={light:{root:{colorOne:"{red.500}",colorTwo:"{blue.500}",colorThree:"{green.500}",colorFour:"{yellow.500}"}},dark:{root:{colorOne:"{red.400}",colorTwo:"{blue.400}",colorThree:"{green.400}",colorFour:"{yellow.400}"}}};var _b={colorScheme:Dz,css:""};var Mz={width:"20px",height:"20px",background:"{form.field.background}",checkedBackground:"{primary.contrast.color}",checkedHoverBackground:"{primary.contrast.color}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",checkedBorderColor:"{primary.color}",checkedHoverBorderColor:"{primary.color}",checkedFocusBorderColor:"{primary.color}",checkedDisabledBorderColor:"{form.field.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",shadow:"{form.field.shadow}",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"},transitionDuration:"{form.field.transition.duration}",sm:{width:"16px",height:"16px"},lg:{width:"24px",height:"24px"}},Pz={size:"10px",checkedColor:"{primary.color}",checkedHoverColor:"{primary.color}",disabledColor:"{form.field.disabled.color}",sm:{size:"8px"},lg:{size:"12px"}},Fz=`
772.p-radiobutton {
773    border-radius: 50%;
774    transition: box-shadow dt('radiobutton.transition.duration');
775}
776
777.p-radiobutton-box {
778    border-width: 2px;
779}
780
781.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover) {
782    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('text.color'), transparent 96%);
783}
784
785.p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:focus-visible) {
786    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('text.color'), transparent 88%);
787}
788
789.p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) {
790    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('radiobutton.checked.border.color'), transparent 92%);
791}
792
793.p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:focus-visible) {
794    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('radiobutton.checked.border.color'), transparent 84%);
795}
796`,bb={root:Mz,icon:Pz,css:Fz};var Rz={gap:"0.5rem",transitionDuration:"{transition.duration}",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},Lz={size:"1.125rem",color:"{text.muted.color}",hoverColor:"{primary.color}",activeColor:"{primary.color}"},Oz=`
797.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-option:hover {
798    background: color-mix(in srgb, dt('rating.icon.color'), transparent 96%);
799    box-shadow: 0 0 1px 8px color-mix(in srgb, dt('rating.icon.color'), transparent 96%);
800}
801
802.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-option-active:hover {
803    background: color-mix(in srgb, dt('rating.icon.active.color'), transparent 92%);
804    box-shadow: 0 0 1px 8px color-mix(in srgb, dt('rating.icon.active.color'), transparent 92%);
805}
806
807.p-rating-option.p-focus-visible {
808    background: color-mix(in srgb, dt('rating.icon.active.color'), transparent 84%);
809    box-shadow: 0 0 1px 8px color-mix(in srgb, dt('rating.icon.active.color'), transparent 84%);
810}
811`,yb={root:Rz,icon:Lz,css:Oz};var Az={light:{root:{background:"rgba(0,0,0,0.1)"}},dark:{root:{background:"rgba(255,255,255,0.3)"}}};var xb={colorScheme:Az,css:""};var Bz={transitionDuration:"{transition.duration}"},Nz={size:"9px",borderRadius:"{border.radius.sm}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},Vz={light:{bar:{background:"{surface.200}"}},dark:{bar:{background:"{surface.700}"}}};var Cb={root:Bz,bar:Nz,colorScheme:Vz,css:""};var zz={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}
811",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Uz={width:"2.5rem",color:"{form.field.icon.color}"},Hz={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},Wz={padding:"{list.padding}",gap:"{list.gap}",header:{padding:"{list.header.padding}"}},Gz={focusBackground:"{list.option.focus.background}",selectedBackground:"{list.option.selected.background}",selectedFocusBackground:"{list.option.selected.focus.background}",color:"{list.option.color}",focusColor:"{list.option.focus.color}",selectedColor:"{list.option.selected.color}",selectedFocusColor:"{list.option.selected.focus.color}",padding:"{list.option.padding}",borderRadius:"{list.option.border.radius}"},qz={background:"{list.option.group.background}",color:"{list.option.group.color}",fontWeight:"{list.option.group.font.weight}",padding:"{list.option.group.padding}"},jz={color:"{form.field.icon.color}"},Yz={color:"{list.option.color}",gutterStart:"-0.375rem",gutterEnd:"0.375rem"},Kz={padding:"{list.option.padding}"},$z=`
812.p-select.p-variant-filled {
813    border-bottom-left-radius: 0;
814    border-bottom-right-radius: 0;
815    border: 1px solid transparent;
816    background: dt('select.filled.background') no-repeat;
817    background-image: linear-gradient(to bottom, dt('select.focus.border.color'), dt('select.focus.border.color')), linear-gradient(to bottom, dt('select.border.color'), dt('select.border.color'));
818    background-size: 0 2px, 100% 1px;
819    background-position: 50% 100%, 50% 100%;
820    background-origin: border-box;
821    transition: background-size 0.3s cubic-bezier(0.64, 0.09, 0.08, 1);
822}
823
824.p-select.p-variant-filled:not(.p-disabled):hover {
825    background: dt('select.filled.hover.background') no-repeat;
826    background-image: linear-gradient(to bottom, dt('select.focus.border.color'), dt('select.focus.border.color')), linear-gradient(to bottom, dt('select.hover.border.color'), dt('select.hover.border.color'));
827    background-size: 0 2px, 100% 1px;
828    background-position: 50% 100%, 50% 100%;
829    background-origin: border-box;
830    border-color: transparent;
831}
832
833.p-select.p-variant-filled:not(.p-disabled).p-focus {
834    outline: 0 none;
835    background: dt('select.filled.focus.background') no-repeat;
836    background-image: linear-gradient(to bottom, dt('select.focus.border.color'), dt('select.focus.border.color')), linear-gradient(to bottom, dt('select.border.color'), dt('select.border.color'));
837    background-size: 100% 2px, 100% 1px;
838    background-position: 50% 100%, 50% 100%;
839    background-origin: border-box;
840    border-color: transparent;
841}
842
843.p-select.p-variant-filled:not(.p-disabled).p-focus:hover {
844    background-image: linear-gradient(to bottom, dt('select.focus.border.color'), dt('select.focus.border.color')), linear-gradient(to bottom, dt('select.hover.border.color'), dt('select.hover.border.color'));
845}
846
847.p-select.p-variant-filled.p-invalid {
848    background-image: linear-gradient(to bottom, dt('select.invalid.border.color'), dt('select.invali
848d.border.color')), linear-gradient(to bottom, dt('select.invalid.border.color'), dt('select.invalid.border.color'));
849}
850
851.p-select.p-variant-filled.p-invalid:not(.p-disabled).p-focus  {
852    background-image: linear-gradient(to bottom, dt('select.invalid.border.color'), dt('select.invalid.border.color')), linear-gradient(to bottom, dt('select.invalid.border.color'), dt('select.invalid.border.color'));
853}
854
855.p-select-option {
856    transition: none;
857}
858`,Sb={root:zz,dropdown:Uz,overlay:Hz,list:Wz,option:Gz,optionGroup:qz,clearIcon:jz,checkmark:Yz,emptyMessage:Kz,css:$z};var Zz={borderRadius:"{form.field.border.radius}"},Qz={light:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}},dark:{root:{invalidBorderColor:"{form.field.invalid.border.color}"}}};var wb={root:Zz,colorScheme:Qz,css:""};var Xz={borderRadius:"{content.border.radius}"},Jz={light:{root:{background:"{surface.200}",animationBackground:"rgba(255,255,255,0.4)"}},dark:{root:{background:"rgba(255, 255, 255, 0.06)",animationBackground:"rgba(255, 255, 255, 0.04)"}}};var Tb={root:Xz,colorScheme:Jz,css:""};var e9={transitionDuration:"{transition.duration}"},t9={background:"{content.border.color}",borderRadius:"{border.radius.xs}",size:"2px"},i9={background:"{primary.color}"},r9={width:"18px",height:"18px",borderRadius:"50%",background:"{primary.color}",hoverBackground:"{primary.color}",content:{borderRadius:"50%",background:"{primary.color}",hoverBackground:"{primary.color}",width:"18px",height:"18px",shadow:"0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12)"},focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},n9=`
859.p-slider-handle {
860    transition: box-shadow dt('slider.transition.duration');
861}
862
863.p-slider:not(.p-disabled) .p-slider-handle:hover {
864    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('slider.handle.background'), transparent 92%);
865}
866
867.p-slider-handle:focus-visible,
868.p-slider:not(.p-disabled) .p-slider-handle:focus:hover {
869    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('slider.handle.background'), transparent 84%);
870}
871`,Eb={root:e9,track:t9,range:i9,handle:r9,css:n9};var o9={gap:"0.5rem",transitionDuration:"{transition.duration}"};var kb={root:o9,css:""};var a9={borderRadius:"{form.field.border.radius}",roundedBorderRadius:"2rem",raisedShadow:"0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)"};var Ib={root:a9,css:""};var s9={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",transitionDuration:"{transition.duration}"},l9={background:"{content.border.color}"},c9={size:"24px",background:"transparent",borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}};var Db={root:s9,gutter:l9,handle:c9,css:""};var d9={transitionDuration:"{transition.duration}"},p9={background:"{content.border.color}",activeBackground:"{primary.color}",margin:"0 0 0 1.625rem",size:"2px"},u9={padding:"0.5rem",gap:"1rem"},m9={padding:"0.75rem 1rem",borderRadius:"{content.border.radius}",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"},gap:"0.5rem"},f9={color:"{text.muted.color}",activeColor:"{text.color}",fontWeight:"500"},h9={activeBackground:"{primary.color}",activeBorderColor:"{primary.color}",activeColor:"{primary.contrast.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"none"},g9={padding:"0.875rem 0.5rem 1.125rem 0.5rem"},v9={background:"{content.background}",color:"{content.color}",padding:"0",indent:"1rem"},_9={light:{stepNumber:{background:"{surface.400}",borderColor:"{surface.400}",color:"{surface.0}"}},dark:{stepNumber:{background:"{surface.200}",borderColor:"{surface.200}",color:"{surface.900}"}}},b9=`
872.p-step-header:focus-visible {
873    background: dt('navigation.item.active.background');
874}
875`,Mb={root:d9,separator:p9,step:u9,stepHeader:m9,stepTitle:f9,stepNumber:h9,steppanels:g9,steppanel:v9,colorScheme:_9,css:b9};var y9={transitionDuration:"{transition.duration}"},x9={background:"{content.border.color}"}
875,C9={borderRadius:"{content.border.radius}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},S9={color:"{text.muted.color}",activeColor:"{primary.color}",fontWeight:"500"},w9={background:"{content.background}",activeBackground:"{content.background}",borderColor:"{content.border.color}",activeBorderColor:"{content.border.color}",color:"{text.muted.color}",activeColor:"{primary.color}",size:"2rem",fontSize:"1.143rem",fontWeight:"500",borderRadius:"50%",shadow:"0px 0.5px 0px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12)"};var Pb={root:y9,separator:x9,itemLink:C9,itemLabel:S9,itemNumber:w9,css:""};var T9={transitionDuration:"{transition.duration}"},E9={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},k9={background:"transparent",hoverBackground:"transparent",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.125rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},I9={color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},D9={height:"1px",bottom:"-1px",background:"{primary.color}"};var Fb={root:T9,tablist:E9,item:k9,itemIcon:I9,activeBar:D9,css:""};var M9={transitionDuration:"{transition.duration}"},P9={borderWidth:"0 0 1px 0",background:"{content.background}",borderColor:"{content.border.color}"},F9={background:"transparent",hoverBackground:"{content.hover.background}",activeBackground:"transparent",borderWidth:"0 0 1px 0",borderColor:"{content.border.color}",hoverBorderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.color}",hoverColor:"{text.color}",activeColor:"{primary.color}",padding:"1rem 1.25rem",fontWeight:"600",margin:"0 0 -1px 0",gap:"0.5rem",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},R9={background:"{content.background}",color:"{content.color}",padding:"1.25rem 1.25rem 1.25rem 1.25rem",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},L9={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",width:"3rem",shadow:"none",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"}},O9={height:"2px",bottom:"-1px",background:"{primary.color}"},A9=`
876.p-tabs-scrollable .p-tab {
877    flex-grow: 0
878}
879
880.p-tab-active {
881    --p-ripple-background: color-mix(in srgb, dt('primary.color'), transparent 90%);
882}
883
884.p-tab:not(.p-disabled):focus-visible {
885    background: dt('navigation.item.active.background');
886}
887
888.p-tablist-nav-button:focus-visible {
889    background: dt('navigation.item.active.background');
890}
891`,Rb={root:M9,tablist:P9,tab:F9,tabpanel:R9,navButton:L9,activeBar:O9,css:A9};var B9={transitionDuration:"{transition.duration}"},N9={background:"{content.background}",borderColor:"{content.border.color}"},V9={borderColor:"{content.border.color}",activeBorderColor:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",activeColor:"{primary.color}"},z9={background:"{content.background}",color:"{content.color}"},U9={background:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}"},H9={light:{navButton:{shadow:"0px 0px 10px 50px rgba(255, 255, 255, 0.6)"}},dark:{navButton:{shadow:"0px 0px 10px 50px color-mix(in srgb, {content.background}, transparent 50%)"}}};var Lb={root:B9,tabList:N9,tab:V9,tabPanel:z9,navButton:U9,colorScheme:H9,css:""};var W9={fontSize:"0.875rem",fontWeight:"700",padding:"0.25rem 0.5rem",gap:"0.25rem",borderRadius:"{content.border.radius}",roundedBorderRadius:"{border.radius.xl}"},G9={size:"0.75rem"},q9={light:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.100}",color:"{surface.600}"},success:{background:"{green.500}",color:"{surface.0}"},info:{background:"{sky.500}",color:"{surface.0}"},warn:{background:"{orange.500}",color:"{surface.0}"},danger:{background:"{red.500}",color:"{surface.0}"},contrast:{background:"{surface.950}",color:"{surface.0}"}},dark:{primary:{background:"{primary.color}",color:"{primary.contrast.color}"},secondary:{background:"{surface.800}",color:"{surface.300}"},success:{background:"{green.400}",color:"{green.950}"},info:{background:"{sky.400}",color:"{sky.950}"},warn:{background:"{orange.400}",color:"{orange.950}"},danger:{background:"{red.400}",color:"{red.950}"},contrast:{background:"{surface.0}",color:"{surface.950}"}}};var Ob={root:W9,icon:G9,colorScheme:q9,css:""};var j9={background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",height:"18rem",padding:"{form.field.padding.y} {form.field.padding.x}
891",borderRadius:"{form.field.border.radius}"},Y9={gap:"0.25rem"},K9={margin:"2px 0"};var Ab={root:j9,prompt:Y9,commandResponse:K9,css:""};var $9={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},Z9=`
892.p-textarea.p-variant-filled {
893    border-bottom-left-radius: 0;
894    border-bottom-right-radius: 0;
895    border: 1px solid transparent;
896    background: dt('textarea.filled.background') no-repeat;
897    background-image: linear-gradient(to bottom, dt('textarea.focus.border.color'), dt('textarea.focus.border.color')), linear-gradient(to bottom, dt('textarea.border.color'), dt('textarea.border.color'));
898    background-size: 0 2px, 100% 1px;
899    background-position: 50% 100%, 50% 100%;
900    background-origin: border-box;
901    transition: background-size 0.3s cubic-bezier(0.64, 0.09, 0.08, 1);
902}
903
904.p-textarea.p-variant-filled:enabled:hover {
905    background: dt('textarea.filled.hover.background') no-repeat;
906    background-image: linear-gradient(to bottom, dt('textarea.focus.border.color'), dt('textarea.focus.border.color')), linear-gradient(to bottom, dt('textarea.hover.border.color'), dt('textarea.hover.border.color'));
907    background-size: 0 2px, 100% 1px;
908    background-position: 50% 100%, 50% 100%;
909    background-origin: border-box;
910    border-color: transparent;
911}
912
913.p-textarea.p-variant-filled:enabled:focus {
914    outline: 0 none;
915    background: dt('textarea.filled.focus.background') no-repeat;
916    background-image: linear-gradient(to bottom, dt('textarea.focus.border.color'), dt('textarea.focus.border.color')), linear-gradient(to bottom, dt('textarea.border.color'), dt('textarea.border.color'));
917    background-size: 100% 2px, 100% 1px;
918    background-position: 50% 100%, 50% 100%;
919    background-origin: border-box;
920    border-color: transparent;
921}
922
923.p-textarea.p-variant-filled:enabled:hover:focus {
924    background-image: linear-gradient(to bottom, dt('textarea.focus.border.color'), dt('textarea.focus.border.color')), linear-gradient(to bottom, dt('textarea.hover.border.color'), dt('textarea.hover.border.color'));
925}
926
927.p-textarea.p-variant-filled.p-invalid {
928    background-image: linear-gradient(to bottom, dt('textarea.invalid.border.color'), dt('textarea.invalid.border.color')), linear-gradient(to bottom, dt('textarea.invalid.border.color'), dt('textarea.invalid.border.color'));
929}
930
931.p-textarea.p-variant-filled.p-invalid:enabled:focus {
932    background-image: linear-gradient(to bottom, dt('textarea.invalid.border.color'), dt('textarea.invalid.border.color')), linear-gradient(to bottom, dt('textarea.invalid.border.color'), dt('textarea.invalid.border.color'));
933}
934`,Bb={root:$9,css:Z9};var Q9={background:"{content.background}",borderColor:"{content.border.color}",color:"{content.color}",borderRadius:"{content.border.radius}",shadow:"{overlay.navigation.shadow}",transitionDuration:"{transition.duration}"},X9={padding:"{navigation.list.padding}",gap:"{navigation.list.gap}"}
934,J9={focusBackground:"{navigation.item.focus.background}",activeBackground:"{navigation.item.active.background}",color:"{navigation.item.color}",focusColor:"{navigation.item.focus.color}",activeColor:"{navigation.item.active.color}",padding:"{navigation.item.padding}",borderRadius:"{navigation.item.border.radius}",gap:"{navigation.item.gap}",icon:{color:"{navigation.item.icon.color}",focusColor:"{navigation.item.icon.focus.color}",activeColor:"{navigation.item.icon.active.color}"}},eU={mobileIndent:"1rem"},tU={size:"{navigation.submenu.icon.size}",color:"{navigation.submenu.icon.color}",focusColor:"{navigation.submenu.icon.focus.color}",activeColor:"{navigation.submenu.icon.active.color}"},iU={borderColor:"{content.border.color}"},rU=`
935.p-tieredmenu-overlay {
936    border-color: transparent;
937}
938`,Nb={root:Q9,list:X9,item:J9,submenu:eU,submenuIcon:tU,separator:iU,css:rU};var nU={minHeight:"5rem"},oU={eventContent:{padding:"1rem 0"}},aU={eventContent:{padding:"0 1rem"}},sU={size:"1.5rem",borderRadius:"50%",borderWidth:"2px",background:"{primary.color}",content:{borderRadius:"50%",size:"0",background:"{primary.color}",insetShadow:"none"}},lU={color:"{content.border.color}",size:"2px"},cU={light:{eventMarker:{borderColor:"{surface.0}"}},dark:{eventMarker:{borderColor:"{surface.900}"}}};var Vb={event:nU,horizontal:oU,vertical:aU,eventMarker:sU,eventConnector:lU,colorScheme:cU,css:""};var dU={width:"25rem",borderRadius:"{content.border.radius}",borderWidth:"0",transitionDuration:"{transition.duration}"},pU={size:"1.25rem"},uU={padding:"{overlay.popover.padding}",gap:"0.5rem"},mU={gap:"0.5rem"},fU={fontWeight:"500",fontSize:"1rem"},hU={fontWeight:"500",fontSize:"0.875rem"},gU={width:"2rem",height:"2rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",offset:"{focus.ring.offset}"}},vU={size:"1rem"},_U={light:{root:{blur:"0"},info:{background:"{blue.50}",borderColor:"{blue.200}",color:"{blue.600}",detailColor:"{surface.700}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"{blue.100}",focusRing:{color:"{blue.600}",shadow:"none"}}},success:{background:"{green.50}",borderColor:"{green.200}",color:"{green.600}",detailColor:"{surface.700}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"{green.100}",focusRing:{color:"{green.600}",shadow:"none"}}},warn:{background:"{yellow.50}",borderColor:"{yellow.200}",color:"{yellow.900}",detailColor:"{surface.700}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"{yellow.100}",focusRing:{color:"{yellow.600}",shadow:"none"}}},error:{background:"{red.50}",borderColor:"{red.200}",color:"{red.600}",detailColor:"{surface.700}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"{red.100}",focusRing:{color:"{red.600}",shadow:"none"}}},secondary:{background:"{surface.100}",borderColor:"{surface.200}",color:"{surface.600}",detailColor:"{surface.700}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"{surface.200}",focusRing:{color:"{surface.600}",shadow:"none"}}},contrast:{background:"{surface.900}",borderColor:"{surface.950}",color:"{surface.50}",detailColor:"{surface.0}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"{surface.800}",focusRing:{color:"{surface.50}",shadow:"none"}}}},dark:{root:{blur:"10px"},info:{background:"color-mix(in srgb, {blue.500}, transparent 36%)",borderColor:"color-mix(in srgb, {blue.700}, transparent 64%)",color:"{surface.0}",detailColor:"{blue.100}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackgroun
938d:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{blue.500}",shadow:"none"}}},success:{background:"color-mix(in srgb, {green.500}, transparent 36%)",borderColor:"color-mix(in srgb, {green.700}, transparent 64%)",color:"{surface.0}",detailColor:"{green.100}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{green.500}",shadow:"none"}}},warn:{background:"color-mix(in srgb, {yellow.500}, transparent 36%)",borderColor:"color-mix(in srgb, {yellow.700}, transparent 64%)",color:"{surface.0}",detailColor:"{yellow.50}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{yellow.500}",shadow:"none"}}},error:{background:"color-mix(in srgb, {red.500}, transparent 36%)",borderColor:"color-mix(in srgb, {red.700}, transparent 64%)",color:"{surface.0}",detailColor:"{red.100}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"rgba(255, 255, 255, 0.05)",focusRing:{color:"{red.500}",shadow:"none"}}},secondary:{background:"{surface.800}",borderColor:"{surface.700}",color:"{surface.300}",detailColor:"{surface.0}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"{surface.700}",focusRing:{color:"{surface.300}",shadow:"none"}}},contrast:{background:"{surface.0}",borderColor:"{surface.100}",color:"{surface.950}",detailColor:"{surface.950}",shadow:"0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",closeButton:{hoverBackground:"{surface.100}",focusRing:{color:"{surface.950}",shadow:"none"}}}}};var zb={root:dU,icon:pU,content:uU,text:mU,summary:fU,detail:hU,closeButton:gU,closeIcon:vU,colorScheme:_U,css:""};var bU={padding:"0.75rem 1rem",borderRadius:"{form.field.border.radius}",gap:"0.5rem",fontWeight:"500",background:"{form.field.background}",borderColor:"{form.field.border.color}",color:"{form.field.color}",hoverColor:"{form.field.color}",checkedColor:"{form.field.color}",checkedBorderColor:"{form.field.border.color}",disabledBackground:"{form.field.disabled.background}",disabledBorderColor:"{form.field.disabled.background}",disabledColor:"{form.field.disabled.color}",invalidBorderColor:"{form.field.invalid.border.color}",focusRing:{width:"0",style:"none",offset:"0",color:"unset",shadow:"none"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",padding:"0.625rem 0.75rem"},lg:{fontSize:"{form.field.lg.font.size}",padding:"0.875rem 1.25rem"}},yU={color:"{text.muted.color}",hoverColor:"{text.muted.color}",checkedColor:"{text.muted.color}",disabledColor:"{form.field.disabled.color}"},xU={checkedBackground:"transparent",checkedShadow:"none",padding:"0",borderRadius:"0",sm:{padding:"0"},lg:{padding:"0"}},CU={light:{root:{hoverBackground:"{surface.100}",checkedBackground:"{surface.200}"}},dark:{root:{hoverBackground:"{surface.800}",checkedBackground:"{surface.700}"}}},SU=`
939.p-togglebutton:focus-visible {
940    background: dt('togglebutton.hover.background');
941}
942`,Ub={root:bU,icon:yU,content:xU,colorScheme:CU,css:SU};var wU={width:"2.75rem",height:"1rem",borderRadius:"30px",gap:"0px",shadow:"none",focusRing:{width:"0",style:"none",color:"unset",offset:"0",shadow:"none"},borderWidth:"1px",borderColor:"transparent",hoverBorderColor:"transparent",checkedBorderColor:"transparent",checkedHoverBorderColor:"transparent",invalidBorderColor:"{form.field.invalid.border.color}",transitionDuration:"{form.field.transition.duration}",slideDuration:"0.2s"},TU={borderRadius:"50%",size:"1.5rem"},EU={light:{root:{background:"{surface.300}",disabledBackground:"{surface.400}",hoverBackground:"{surface.300}",checkedBackground:"{primary.200}",checkedHoverBackground:"{primary.200}"},handle:{background:"{surface.0}
942",disabledBackground:"{surface.200}",hoverBackground:"{surface.0}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.color}",color:"{text.muted.color}",hoverColor:"{text.color}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}"}},dark:{root:{background:"{surface.700}",disabledBackground:"{surface.600}",hoverBackground:"{surface.700}",checkedBackground:"{primary.color}",checkedHoverBackground:"{primary.color}"},handle:{background:"{surface.400}",disabledBackground:"{surface.500}",hoverBackground:"{surface.300}",checkedBackground:"{primary.200}",checkedHoverBackground:"{primary.200}",color:"{surface.800}",hoverColor:"{surface.900}",checkedColor:"{primary.contrast.color}",checkedHoverColor:"{primary.contrast.color}"}}},kU=`
943.p-toggleswitch-handle {
944    box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
945}
946
947.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover) .p-toggleswitch-handle {
948    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('text.color'), transparent 96%), 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
949}
950
951.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible) .p-toggleswitch-handle {
952    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('text.color'), transparent 88%), 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
953}
954
955.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:hover).p-toggleswitch-checked .p-toggleswitch-handle {
956    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('toggleswitch.handle.checked.background'), transparent 92%), 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
957}
958
959.p-toggleswitch:not(.p-disabled):has(.p-toggleswitch-input:focus-visible).p-toggleswitch-checked .p-toggleswitch-handle {
960    box-shadow: 0 0 1px 10px color-mix(in srgb, dt('toggleswitch.handle.checked.background'), transparent 84%), 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
961}
962`,Hb={root:wU,handle:TU,colorScheme:EU,css:kU};var IU={color:"{content.color}",borderRadius:"{content.border.radius}",gap:"0.5rem",padding:"1rem"},DU={light:{root:{background:"{surface.100}",borderColor:"{surface.100}"}},dark:{root:{background:"{surface.800}",borderColor:"{surface.800}"}}};var Wb={root:IU,colorScheme:DU,css:""};var MU={background:"{surface.600}",color:"{surface.0}",maxWidth:"12.5rem",gutter:"0.25rem",shadow:"{overlay.popover.shadow}",padding:"0.5rem 0.75rem",borderRadius:"{overlay.popover.border.radius}"};var Gb={root:MU,css:""};var PU={background:"{content.background}",color:"{content.color}",padding:"1rem",gap:"2px",indent:"2rem",transitionDuration:"{transition.duration}"},FU={padding:"0.5rem 0.75rem",borderRadius:"{border.radius.xs}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{text.color}",hoverColor:"{text.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"},gap:"0.5rem"},RU={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedColor:"{highlight.color}"},LU={borderRadius:"50%",size:"2rem",hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",selectedHoverColor:"{primary.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},OU={size:"2rem"},AU={margin:"0 0 0.75rem 0"},BU=`
963.p-tree-node-content {
964    transition: none;
965}
966`,qb={root:PU,node:FU,nodeIcon:RU,nodeToggleButton:LU,loadingIcon:OU,filter:AU,css:BU};var NU={background:"{form.field.background}",disabledBackground:"{form.field.disabled.background}",filledBackground:"{form.field.filled.background}
966",filledHoverBackground:"{form.field.filled.hover.background}",filledFocusBackground:"{form.field.filled.focus.background}",borderColor:"{form.field.border.color}",hoverBorderColor:"{form.field.hover.border.color}",focusBorderColor:"{form.field.focus.border.color}",invalidBorderColor:"{form.field.invalid.border.color}",color:"{form.field.color}",disabledColor:"{form.field.disabled.color}",placeholderColor:"{form.field.placeholder.color}",invalidPlaceholderColor:"{form.field.invalid.placeholder.color}",shadow:"{form.field.shadow}",paddingX:"{form.field.padding.x}",paddingY:"{form.field.padding.y}",borderRadius:"{form.field.border.radius}",focusRing:{width:"{form.field.focus.ring.width}",style:"{form.field.focus.ring.style}",color:"{form.field.focus.ring.color}",offset:"{form.field.focus.ring.offset}",shadow:"{form.field.focus.ring.shadow}"},transitionDuration:"{form.field.transition.duration}",sm:{fontSize:"{form.field.sm.font.size}",paddingX:"{form.field.sm.padding.x}",paddingY:"{form.field.sm.padding.y}"},lg:{fontSize:"{form.field.lg.font.size}",paddingX:"{form.field.lg.padding.x}",paddingY:"{form.field.lg.padding.y}"}},VU={width:"2.5rem",color:"{form.field.icon.color}"},zU={background:"{overlay.select.background}",borderColor:"{overlay.select.border.color}",borderRadius:"{overlay.select.border.radius}",color:"{overlay.select.color}",shadow:"{overlay.select.shadow}"},UU={padding:"{list.padding}"},HU={padding:"{list.option.padding}"},WU={borderRadius:"{border.radius.sm}"},GU={color:"{form.field.icon.color}"},qU=`
967.p-treeselect.p-variant-filled {
968    border-bottom-left-radius: 0;
969    border-bottom-right-radius: 0;
970    border: 1px solid transparent;
971    background: dt('treeselect.filled.background') no-repeat;
972    background-image: linear-gradient(to bottom, dt('treeselect.focus.border.color'), dt('treeselect.focus.border.color')), linear-gradient(to bottom, dt('treeselect.border.color'), dt('treeselect.border.color'));
973    background-size: 0 2px, 100% 1px;
974    background-position: 50% 100%, 50% 100%;
975    background-origin: border-box;
976    transition: background-size 0.3s cubic-bezier(0.64, 0.09, 0.08, 1);
977}
978
979.p-treeselect.p-variant-filled:not(.p-disabled):hover {
980    background: dt('treeselect.filled.hover.background') no-repeat;
981    background-image: linear-gradient(to bottom, dt('treeselect.focus.border.color'), dt('treeselect.focus.border.color')), linear-gradient(to bottom, dt('treeselect.hover.border.color'), dt('treeselect.hover.border.color'));
982    background-size: 0 2px, 100% 1px;
983    background-position: 50% 100%, 50% 100%;
984    background-origin: border-box;
985    border-color: transparent;
986}
987
988.p-treeselect.p-variant-filled:not(.p-disabled).p-focus {
989    outline: 0 none;
990    background: dt('treeselect.filled.focus.background') no-repeat;
991    background-image: linear-gradient(to bottom, dt('treeselect.focus.border.color'), dt('treeselect.focus.border.color')), linear-gradient(to bottom, dt('treeselect.border.color'), dt('treeselect.border.color'));
992    background-size: 100% 2px, 100% 1px;
993    background-position: 50% 100%, 50% 100%;
994    background-origin: border-box;
995    border-color: transparent;
996}
997
998.p-treeselect.p-variant-filled:not(.p-disabled).p-focus:hover {
999    background-image: linear-gradient(to bottom, dt('treeselect.focus.border.color'), dt('treeselect.focus.border.color')), linear-gradient(to bottom, dt('treeselect.hover.border.color'), dt('treeselect.hover.border.color'));
1000}
1001
1002.p-treeselect.p-variant-filled.p-invalid {
1003    background-image: linear-gradient(to bottom, dt('treeselect.invalid.border.color'), dt('treeselect.invalid.border.color')), linear-gradient(to bottom, dt('treeselect.invalid.border.color'), dt('treeselect.invalid.border.color'));
1004}
1005
1006.p-treeselect.p-variant-filled.p-invalid:not(.p-disabled).p-focus  {
1007    background-image: linear-gradient(to bottom, dt('treeselect.invalid.border.color'), dt('treeselect.invalid.border.color')), linear-gradient(to bottom, dt('treeselect.invalid.border.color'), dt('treeselect.invalid.border.color'));
1008}
1009`,jb={root:NU,dropdown:VU,overlay:zU,tree:UU,emptyMessage:HU,chip:WU,clearIcon:GU,css:qU};var jU={transitionDuration:"{transition.duration}"},YU={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},KU={background:"{content.background}
1009",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",borderColor:"{treetable.border.color}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",gap:"0.5rem",padding:"0.75rem 1rem",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},$U={fontWeight:"600"},ZU={background:"{content.background}",hoverBackground:"{content.hover.background}",selectedBackground:"{highlight.background}",color:"{content.color}",hoverColor:"{content.hover.color}",selectedColor:"{highlight.color}",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"-1px",shadow:"{focus.ring.shadow}"}},QU={borderColor:"{treetable.border.color}",padding:"0.75rem 1rem",gap:"0.5rem"},XU={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",padding:"0.75rem 1rem"},JU={fontWeight:"600"},eH={background:"{content.background}",borderColor:"{treetable.border.color}",color:"{content.color}",borderWidth:"0 0 1px 0",padding:"0.75rem 1rem"},tH={width:"0.5rem"},iH={width:"1px",color:"{primary.color}"},rH={color:"{text.muted.color}",hoverColor:"{text.hover.muted.color}",size:"0.875rem"},nH={size:"2rem"},oH={hoverBackground:"{content.hover.background}",selectedHoverBackground:"{content.background}",color:"{text.muted.color}",hoverColor:"{text.color}",selectedHoverColor:"{primary.color}",size:"1.75rem",borderRadius:"50%",focusRing:{width:"{focus.ring.width}",style:"{focus.ring.style}",color:"{focus.ring.color}",offset:"{focus.ring.offset}",shadow:"{focus.ring.shadow}"}},aH={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},sH={borderColor:"{content.border.color}",borderWidth:"0 0 1px 0"},lH={light:{root:{borderColor:"{content.border.color}"},bodyCell:{selectedBorderColor:"{primary.100}"}},dark:{root:{borderColor:"{surface.800}"},bodyCell:{selectedBorderColor:"{primary.900}"}}};var Yb={root:jU,header:YU,headerCell:KU,columnTitle:$U,row:ZU,bodyCell:QU,footerCell:XU,columnFooter:JU,footer:eH,columnResizer:tH,resizeIndicator:iH,sortIcon:rH,loadingIcon:nH,nodeToggleButton:oH,paginatorTop:aH,paginatorBottom:sH,colorScheme:lH};var cH={mask:{background:"{content.background}",color:"{text.muted.color}"},icon:{size:"2rem"}};var Kb={loader:cH,css:""};var TE=pi(lt({},__),{components:{accordion:f_,autocomplete:h_,avatar:g_,badge:v_,blockui:b_,breadcrumb:y_,button:x_,datepicker:R_,card:C_,carousel:S_,cascadeselect:w_,checkbox:T_,chip:E_,colorpicker:k_,confirmdialog:I_,confirmpopup:D_,contextmenu:M_,dataview:F_,datatable:P_,dialog:L_,divider:O_,dock:A_,drawer:B_,editor:N_,fieldset:V_,fileupload:z_,iftalabel:G_,floatlabel:U_,galleria:H_,iconfield:W_,image:q_,imagecompare:j_,inlinemessage:Y_,inplace:K_,inputchips:$_,inputgroup:Z_,inputnumber:Q_,inputotp:X_,inputtext:J_,knob:eb,listbox:tb,megamenu:ib,menu:rb,menubar:nb,message:ob,metergroup:ab,multiselect:sb,orderlist:lb,organizationchart:cb,overlaybadge:db,popover:gb,paginator:pb,password:fb,panel:ub,panelmenu:mb,picklist:hb,progressbar:vb,progressspinner:_b,radiobutton:bb,rating:yb,ripple:xb,scrollpanel:Cb,select:Sb,selectbutton:wb,skeleton:Tb,slider:Eb,speeddial:kb,splitter:Db,splitbutton:Ib,stepper:Mb,steps:Pb,tabmenu:Fb,tabs:Rb,tabview:Lb,textarea:Bb,tieredmenu:Nb,tag:Ob,terminal:Ab,timeline:Vb,togglebutton:Ub,toggleswitch:Hb,tree:qb,treeselect:jb,treetable:Yb,toast:zb,toolbar:Wb,tooltip:Gb,virtualscroller:Kb}});var $b=new St("ADSENSE_CLIENT_ID",{providedIn:"root",factory:()=>null}),EE=class i{constructor(t,e,r,n,o){this.consentService=t;this.donationTracker=e;this.router=r;this.doc=n;this.clientId=o;this._setAdsPaused(!0),this._loadScript(),this._sub=Hu([this.consentService.preferences$.pipe(gs(this.consentService.preferences)),Lw(this.donationTracker.tracker)]).subscribe(([a,s])=>{this._tracker=s,this.nonPersonalized$.next(!(a?.advertising??!1)),this._updateConsentSignals(a),this._rollAds()}),this._sub.add(this.router.events.pipe(hs(a=>a instanceof ym)).subscribe(()=>this._rollAds()))}scriptLoaded=!1;_sub;_tracker=null;adsEnabled$=new Pd(!1);nonPersonalized$=new Pd(!0);ngOnDestroy(){this._sub?.unsubscribe()}_rollAds(){let t=this._tracker;if(!t?.enabled||(t.progressPercentage??0)>=100){this._setAdsPaused(!0),this.adsEnabled$.next(!1);return}let e=Math.max(0,t.progressPercentage??0),r=Math.random()>=e/100;this._setAdsPaused(!r),r&&this.adsEnabled$.value?(this.adsEnabled$.next(!1),setTimeout(()=>this.adsEnabled$.next(!0))):this.adsEnabled$.next(r)}_loadScript(){if(this.scriptLoaded||!this.clientId)return;this.scriptLoaded=!0;let t=this.doc.createElement("script");t.async=!0,t.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.clientId}`,t.crossOrigin="anonymous",this.doc.head.appendChild(t)}_setAdsPaused(t){let e=this.doc.defaultView;(e.adsbygoogle=e.adsbygoogle||[]).pauseAdRequests=t?1:0}_updateConsentSignals(t){let e=this.doc.defaultView;typeof e?.gtag=="function"&&e.gtag("consent","update",{ad_storage:t?.advertising?"granted":"denied",ad_user_data:t?.advertising?"granted":"denied",ad_personalization:t?.advertising?"granted":"denied",analytics_storage:t?.analytics?"granted":"denied"})}static \u0275fac=function(e){return new(e||i)(ti(XT),ti(Cm),ti(bt),ti(vn),ti($b,8))};static \u0275prov=Ye({token:i,factory:i.\u0275fac,providedIn:"root"})};function kE(i){return i.buttons===0||i.detail===0}function IE(i){let t=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];
vendor: 5,462 bytes, lines 1009-1022
1009return!!t&&t.identifier===-1&&(t.radiusX==null||t.radiusX===1)&&(t.radiusY==null||t.radiusY===1)}function Xb(i){let t=i.cloneNode(!0),e=t.querySelectorAll("[id]"),r=i.nodeName.toLowerCase();t.removeAttribute("id");for(let n=0;n<e.length;n++)e[n].removeAttribute("id");return r==="canvas"?PE(i,t):(r==="input"||r==="select"||r==="textarea")&&ME(i,t),DE("canvas",i,t,PE),DE("input, textarea, select",i,t,ME),t}function DE(i,t,e,r){let n=t.querySelectorAll(i);if(n.length){let o=e.querySelectorAll(i);for(let a=0;a<n.length;a++)r(n[a],o[a])}}var dH=0;function ME(i,t){t.type!=="file"&&(t.value=i.value),t.type==="radio"&&t.name&&(t.name=`mat-clone-${t.name}-${dH++}`)}function PE(i,t){let e=t.getContext("2d");if(e)try{e.drawImage(i,0,0)}catch(r){}}function ny(i){let t=i.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Jb(i,t,e){let{top:r,bottom:n,left:o,right:a}=i;return e>=r&&e<=n&&t>=o&&t<=a}function pH(i,t){let e=t.left<i.left,r=t.left+t.width>i.right,n=t.top<i.top,o=t.top+t.height>i.bottom;return e||r||n||o}function Qd(i,t,e){i.top+=t,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function FE(i,t,e,r){let{top:n,right:o,bottom:a,left:s,width:l,height:c}=i,d=l*t,u=c*t;return r>n-u&&r<a+u&&e>s-d&&e<o+d}var Am=class{_document;positions=new Map;constructor(t){this._document=t}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),t.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:ny(e)})})}handleScroll(t){let e=Gd(t),r=this.positions.get(e);if(!r)return null;let n=r.scrollPosition,o,a;if(e===this._document){let c=this.getViewportScrollPosition();o=c.top,a=c.left}else o=e.scrollTop,a=e.scrollLeft;let s=n.top-o,l=n.left-a;return this.positions.forEach((c,d)=>{c.clientRect&&e!==d&&e.contains(d)&&Qd(c.clientRect,s,l)}),n.top=o,n.left=a,{top:s,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function GE(i,t){let e=i.rootNodes;if(e.length===1&&e[0].nodeType===t.ELEMENT_NODE)return e[0];let r=t.createElement("div");return e.forEach(n=>r.appendChild(n)),r}function oy(i,t,e){for(let r in t)if(t.hasOwnProperty(r)){let n=t[r];n?i.setProperty(r,n,e?.has(r)?"important":""):i.removeProperty(r)}return i}function dc(i,t){let e=t?"":"none";oy(i.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function RE(i,t,e){oy(i.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Bm(i,t){return t&&t!="none"?i+" "+t:i}function LE(i,t){i.style.width=`${t.width}px`,i.style.height=`${t.height}px`,i.style.transform=Xd(t.left,t.top)}function Xd(i,t){return`translate3d(${Math.round(i)}px, ${Math.round(t)}px, 0)`}var $d={capture:!0},Zb={passive:!1,capture:!0},uH=(()=>{class i{static \u0275fac=function(r){return new(r||i)};static \u0275cmp=K({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(r,n){},styles:[`@layer cdk-resets {
1010  .cdk-drag-preview {
1011    background: none;
1012    border: none;
1013    padding: 0;
1014    color: inherit;
1015    inset: auto;
1016  }
1017}
1018.cdk-drag-placeholder *,
1019.cdk-drag-preview * {
1020  pointer-events: none !important;
1021}
1022`],encapsulation:2,changeDetection:0})}return i})(),ay=(()=>{class i{_ngZone=ie(Si);_document=ie(vn);_styleLoader=ie(ET);_renderer=ie(Bd).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new Ze;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=ir([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new Ze;pointerUp=new Ze;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,Zb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,r){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(uH),this._activeDragInstances.update(n=>[...n,e]),this._activeDragInstances().length===1)){let n=r.type.startsWith("touch"),o=s=>this.pointerUp.next(s),a=[["scroll",s=>this._scroll.next(s),$d],["selectstart",this._preventDefaultWhileDragging,Zb]];n?a.push(["touchend",o,$d],["touchcancel",o,$d]):a.push(["mouseup",o,$d]),n||a.push(["mousemove",s=>this.pointerMove.next(s),Zb]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=a.map(([s,l,c])=>this._renderer.listen(this._document,s,l,c))})}}stopDragging(e){this._activeDragInstances.update(r=>{let n=r.indexOf(e);return n>-1?(r.splice(n,1),[...r]):r}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let r=[this._scroll];return e&&e!==this._document&&r.push(new fs(n=>this._ngZone.runOutsideAngular(()=>{let o=this._renderer.listen(e,"scroll",a=>{this._activeDragInstances().length&&n.next(a)},$d);return()=>{o()}}))),Rd(...r)}
vendor: 16,587 bytes, line 1022
1022registerDirectiveNode(e,r){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,r)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(r){return new(r||i)};static \u0275prov=Ye({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function OE(i){let t=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*t}function mH(i){let t=getComputedStyle(i),e=Qb(t,"transition-property"),r=e.find(s=>s==="transform"||s==="all");if(!r)return 0;let n=e.indexOf(r),o=Qb(t,"transition-duration"),a=Qb(t,"transition-delay");return OE(o[n])+OE(a[n])}function Qb(i,t){return i.getPropertyValue(t).split(",").map(r=>r.trim())}var fH=new Set(["position"]),ey=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView=null;_preview;get element(){return this._preview}constructor(t,e,r,n,o,a,s,l,c,d){this._document=t,this._rootElement=e,this._direction=r,this._initialDomRect=n,this._previewTemplate=o,this._previewClass=a,this._pickupPositionOnPage=s,this._initialTransform=l,this._zIndex=c,this._renderer=d}attach(t){this._preview=this._createPreview(),t.appendChild(this._preview),AE(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(t){this._preview.style.transform=t}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(t){this._preview.classList.add(t)}getTransitionDuration(){return mH(this._preview)}addEventListener(t,e){return this._renderer.listen(this._preview,t,e)}_createPreview(){let t=this._previewTemplate,e=this._previewClass,r=t?t.template:null,n;if(r&&t){let o=t.matchSize?this._initialDomRect:null,a=t.viewContainer.createEmbeddedView(r,t.context);a.detectChanges(),n=GE(a,this._document),this._previewEmbeddedView=a,t.matchSize?LE(n,o):n.style.transform=Xd(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=Xb(this._rootElement),LE(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return oy(n.style,{"pointer-events":"none",margin:AE(n)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},fH),dc(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>n.classList.add(o)):n.classList.add(e)),n}};function AE(i){return"showPopover"in i}var hH={passive:!0},BE={passive:!1},gH={passive:!1,capture:!0},vH=800,NE="cdk-drag-placeholder",VE=new Set(["position"]);function _H(i,t,e={dragStartThreshold:5,pointerDirectionChangeThreshold:5}){let r=i.get(Qu,null,{optional:!0})||i.get(Bd).createRenderer(null,null);return new ty(t,e,i.get(vn),i.get(Si),i.get(t_),i.get(ay),r)}var ty=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview=null;_previewContainer;_placeholderRef=null;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=ir(!1);_hasMoved=!1;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new Ze;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement=null;_rootElementTapHighlight;_pointerMoveSubscription=da.EMPTY;_pointerUpSubscription=da.EMPTY;_scrollSubscription=da.EMPTY;_resizeSubscription=da.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef=null;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(t){t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>dc(e,t)))}_disabled=!1;beforeStarted=new Ze;started=new Ze;released=new Ze;ended=new Ze;entered=new Ze;exited=new Ze;dropped=new Ze;moved=this._moveEvents;data;constrainPosition;constructor(t,e,r,n,o,a,s){this._config=e,this._document=r,this._ngZone=n,this._viewportRuler=o,this._dragDropRegistry=a,this._renderer=s,this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new Am(r),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(r=>Uo(r)),this._handles.forEach(r=>dc(r,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(r=>{this._handles.indexOf(r)>-1&&e.add(r)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){let e=Uo(t);if(e!==this._rootElement){this._removeRootElementListeners();let r=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[r.listen(e,"mousedown",this._pointerDown,BE),r.listen(e,"touchstart",this._pointerDown,hH),r.listen(e,"dragstart",this._nativeDragStart,BE)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?Uo(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&pH(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let t=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),r=0,n=0;e.left<t.left?r=t.left-e.left:e.right>t.right&&(r=t.right-e.right),e.top<t.top?n=t.top-e.top:e.bottom>t.bottom&&(n=t.bottom-e.bottom);let o=this._activeTransform.x,a=this._activeTransform.y,s=o+r,l=a+n;this._rootElement.style.transform=Xd(s,l),this._activeTransform={x:s,y:l},this._passiveTransform={x:s,y:l}}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),dc(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),dc(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){let t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){let t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(t);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)};_pointerMove=t=>{let e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging()){let n=Math.abs(e.x-this._pickupPositionOnPage.x),o=Math.abs(e.y-this._pickupPositionOnPage.y);if(n+o>=this._config.dragStartThreshold){let s=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),l=this._dropContainer;if(!s){this._endDragSequence(t);return}(!l||!l.isDragging()&&!l.isReceiving())&&(t.cancelable&&t.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(t)))}return}t.cancelable&&t.preventDefault();let r=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(r),this._dropContainer)this._updateActiveDropContainer(r,e);else{let n=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,o=this._activeTransform;o.x=r.x-n.x+this._passiveTransform.x,o.y=r.y-n.y+this._passiveTransform.y,this._applyRootElementTransform(o.x,o.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:r,event:t,distance:this._getDragDistance(r),delta:this._pointerDirectionDelta})})};_pointerUp=t=>{this._endDragSequence(t)};_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Zd(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),r=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",bH,gH)}),r){let n=this._rootElement,o=n.parentNode,a=this._placeholder=this._createPlaceholderElement(),s=this._marker=this._marker||this._document.createComment("");o.insertBefore(s,n),this._initialTransform=n.style.transform||"",this._preview=new ey(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(o,e)),RE(n,!1,VE),this._document.body.appendChild(o.replaceChild(a,n)),this.started.next({source:this,event:t}),r.start(),this._initialContainer=r,this._initialIndex=r.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(r?r.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();let r=this.isDragging(),n=Zd(e),o=!n&&e.button!==0,a=this._rootElement,s=Gd(e),l=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+vH>Date.now(),c=n?IE(e):kE(e);if(s&&s.draggable&&e.type==="mousedown"&&e.preventDefault(),r||o||l||c)return;if(this._handles.length){let h=a.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=ny(this._boundaryElement));let d=this._previewTemplate;this._pickupPositionInElement=d&&d.template&&!d.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,t,e);let u=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:u.x,y:u.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){RE(this._rootElement,!0,VE),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,r=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),o=this._getDragDistance(n),a=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:o,dropPoint:n,event:t}),this.dropped.next({item:this,currentIndex:r,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:o,dropPoint:n,event:t}),e.drop(this,r,this._initialIndex,this._initialContainer,a,o,n,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:r,y:n}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{let a=this._dropContainer.getItemIndex(this),s=this._dropContainer.getItemAtIndex(a+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(o,this._dropContainer,s),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(r,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let t=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(r=>{let n=s=>{(!s||this._preview&&Gd(s)===this._preview.element&&s.propertyName==="transform")&&(a(),r(),clearTimeout(o))},o=setTimeout(n,e*1.5),a=this._preview.addEventListener("transitionend",n)}
vendor: 6,314 bytes, line 1022
1022))}_createPlaceholderElement(){let t=this._placeholderTemplate,e=t?t.template:null,r;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),r=GE(this._placeholderRef,this._document)):r=Xb(this._rootElement),r.style.pointerEvents="none",r.classList.add(NE),r}_getPointerPositionInElement(t,e,r){let n=e===this._rootElement?null:e,o=n?n.getBoundingClientRect():t,a=Zd(r)?r.targetTouches[0]:r,s=this._getViewportScrollPosition(),l=a.pageX-o.left-s.left,c=a.pageY-o.top-s.top;return{x:o.left-t.left+l,y:o.top-t.top+c}}_getPointerPositionOnPage(t){let e=this._getViewportScrollPosition(),r=Zd(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=r.pageX-e.left,o=r.pageY-e.top;if(this._ownerSVGElement){let a=this._ownerSVGElement.getScreenCTM();if(a){let s=this._ownerSVGElement.createSVGPoint();return s.x=n,s.y=o,s.matrixTransform(a.inverse())}}return{x:n,y:o}}_getConstrainedPointerPosition(t){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:r,y:n}=this.constrainPosition?this.constrainPosition(t,this,this._initialDomRect,this._pickupPositionInElement):t;if(this.lockAxis==="x"||e==="x"?n=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(r=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:o,y:a}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,s=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),d=s.top+a,u=s.bottom-(c-a),h=s.left+o,g=s.right-(l-o);r=zE(r,h,g),n=zE(n,d,u)}return{x:r,y:n}}_updatePointerDirectionDelta(t){let{x:e,y:r}=t,n=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-o.x),s=Math.abs(r-o.y);return a>this._config.pointerDirectionChangeThreshold&&(n.x=e>o.x?1:-1,o.x=e),s>this._config.pointerDirectionChangeThreshold&&(n.y=r>o.y?1:-1,o.y=r),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,dc(this._rootElement,t))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(t=>t()),this._rootElementCleanups=void 0}_applyRootElementTransform(t,e){let r=1/this.scale,n=Xd(t*r,e*r),o=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=o.transform&&o.transform!="none"?o.transform:""),o.transform=Bm(n,this._initialTransform)}_applyPreviewTransform(t,e){let r=this._previewTemplate?.template?void 0:this._initialTransform,n=Xd(t,e);this._preview.setTransform(Bm(n,r))}_getDragDistance(t){let e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(t===0&&e===0||this.isDragging()||!this._boundaryElement)return;let r=this._rootElement.getBoundingClientRect(),n=this._boundaryElement.getBoundingClientRect();if(n.width===0&&n.height===0||r.width===0&&r.height===0)return;let o=n.left-r.left,a=r.right-n.right,s=n.top-r.top,l=r.bottom-n.bottom;n.width>r.width?(o>0&&(t+=o),a>0&&(t-=a)):t=0,n.height>r.height?(s>0&&(e+=s),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){let e=this.dragStartDelay;return typeof e=="number"?e:Zd(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){let e=this._parentPositions.handleScroll(t);if(e){let r=Gd(t);this._boundaryRect&&r!==this._boundaryElement&&r.contains(this._boundaryElement)&&Qd(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=hm(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){let r=this._previewContainer||"global";if(r==="parent")return t;if(r==="global"){let n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return Uo(r)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=t=>{if(this._handles.length){let e=this._getTargetHandle(t);e&&!this._disabledHandles.has(e)&&!this.disabled&&t.preventDefault()}else this.disabled||t.preventDefault()};_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}_conditionallyInsertAnchor(t,e,r){if(t===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let n=this._anchor??=Xb(this._placeholder);n.classList.remove(NE),n.classList.add("cdk-drag-anchor"),n.style.transform="",r?r.before(n):Uo(e.element).appendChild(n)}}};function zE(i,t,e){return Math.max(t,Math.min(e,i))}function Zd(i){return i.type[0]==="t"}function bH(i){i.preventDefault()}function zm(i,t,e){let r=Nm(t,i.length-1),n=Nm(e,i.length-1);if(r===n)return;let o=i[r],a=n<r?-1:1;for(let s=r;s!==n;s+=a)i[s]=i[s+a];i[n]=o}function qE(i,t,e,r){let n=Nm(e,i.length-1),o=Nm(r,t.length);i.length&&t.splice(o,0,i.splice(n,1)[0])}function Nm(i,t){return Math.max(0,Math.min(t,i))}var Vm=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction="ltr";constructor(t){this._dragDropRegistry=t}_previousSwap={drag:null,delta:0,overlaps:!1};start(t){this.withItems(t)}sort(t,e,r,n){let o=this._itemPositions,a=this._getItemIndexFromPointerPosition(t,e,r,n);if(a===-1&&o.length>0)return null;let s=this.orientation==="horizontal",l=o.findIndex(C=>C.drag===t),c=o[a],d=o[l].clientRect,u=c.clientRect,h=l>a?1:-1,g=this._getItemOffsetPx(d,u,h),_=this._getSiblingOffsetPx(l,o,h),y=o.slice();return zm(o,l,a),o.forEach((C,x)=>
vendor: 10,405 bytes, line 1022
1022{if(y[x]===C)return;let w=C.drag===t,E=w?g:_,k=w?t.getPlaceholderElement():C.drag.getRootElement();C.offset+=E;let D=Math.round(C.offset*(1/C.drag.scale));s?(k.style.transform=Bm(`translate3d(${D}px, 0, 0)`,C.initialTransform),Qd(C.clientRect,0,E)):(k.style.transform=Bm(`translate3d(0, ${D}px, 0)`,C.initialTransform),Qd(C.clientRect,E,0))}),this._previousSwap.overlaps=Jb(u,e,r),this._previousSwap.drag=c.drag,this._previousSwap.delta=s?n.x:n.y,{previousIndex:l,currentIndex:a}}enter(t,e,r,n){let o=this._activeDraggables,a=o.indexOf(t),s=t.getPlaceholderElement();a>-1&&o.splice(a,1);let l=n==null||n<0?this._getItemIndexFromPointerPosition(t,e,r):n,c=o[l];if(c===t&&(c=o[l+1]),!c&&(l==null||l===-1||l<o.length-1)&&this._shouldEnterAsFirstChild(e,r)&&(c=o[0]),c&&!this._dragDropRegistry.isDragging(c)){let d=c.getRootElement();d.parentElement.insertBefore(s,d),o.splice(l,0,t)}else this._element.appendChild(s),o.push(t);s.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables?.forEach(t=>{let e=t.getRootElement();if(e){let r=this._itemPositions.find(n=>n.drag===t)?.initialTransform;e.style.transform=r||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return this._getVisualItemPositions().findIndex(e=>e.drag===t)}getItemAtIndex(t){return this._getVisualItemPositions()[t]?.drag||null}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:r})=>{Qd(r,t,e)}),this._itemPositions.forEach(({drag:r})=>{this._dragDropRegistry.isDragging(r)&&r._sortFromLastPointerPosition()})}withElementContainer(t){this._element=t}_cacheItemPositions(){let t=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let r=e.getVisibleElement();return{drag:e,offset:0,initialTransform:r.style.transform||"",clientRect:ny(r)}}).sort((e,r)=>t?e.clientRect.left-r.clientRect.left:e.clientRect.top-r.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(t,e,r){let n=this.orientation==="horizontal",o=n?e.left-t.left:e.top-t.top;return r===-1&&(o+=n?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,r){let n=this.orientation==="horizontal",o=e[t].clientRect,a=e[t+r*-1],s=o[n?"width":"height"]*r;if(a){let l=n?"left":"top",c=n?"right":"bottom";r===-1?s-=a.clientRect[l]-o[c]:s+=o[l]-a.clientRect[c]}return s}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;let r=this._itemPositions,n=this.orientation==="horizontal";if(r[0].drag!==this._activeDraggables[0]){let a=r[r.length-1].clientRect;return n?t>=a.right:e>=a.bottom}else{let a=r[0].clientRect;return n?t<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(t,e,r,n){let o=this.orientation==="horizontal",a=this._itemPositions.findIndex(({drag:s,clientRect:l})=>{if(s===t)return!1;if(n){let c=o?n.x:n.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e<Math.floor(l.right):r>=Math.floor(l.top)&&r<Math.floor(l.bottom)});return a===-1||!this._sortPredicate(a,t)?-1:a}},iy=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(t,e){this._document=t,this._dragDropRegistry=e}start(t){let e=this._element.childNodes;this._relatedNodes=[];for(let r=0;r<e.length;r++){let n=e[r];this._relatedNodes.push([n,n.nextSibling])}this.withItems(t)}sort(t,e,r,n){let o=this._getItemIndexFromPointerPosition(t,e,r),a=this._previousSwap;if(o===-1||this._activeItems[o]===t)return null;let s=this._activeItems[o];if(a.drag===s&&a.overlaps&&a.deltaX===n.x&&a.deltaY===n.y)return null;let l=this.getItemIndex(t),c=t.getPlaceholderElement(),d=s.getRootElement();o>l?d.after(c):d.before(c),zm(this._activeItems,l,o);let u=this._getRootNode().elementFromPoint(e,r);return a.deltaX=n.x,a.deltaY=n.y,a.drag=s,a.overlaps=d===u||d.contains(u),{previousIndex:l,currentIndex:o}}enter(t,e,r,n){let o=this._activeItems.indexOf(t);o>-1&&this._activeItems.splice(o,1);let a=n==null||n<0?this._getItemIndexFromPointerPosition(t,e,r):n;a===-1&&(a=this._getClosestItemIndexToPointer(t,e,r));let s=this._activeItems[a];s&&!this._dragDropRegistry.isDragging(s)?(this._activeItems.splice(a,0,t),s.getRootElement().before(t.getPlaceholderElement())):(this._activeItems.push(t),this._element.appendChild(t.getPlaceholderElement()))}withItems(t){this._activeItems=t.slice()}withSortPredicate(t){this._sortPredicate=t}reset(){let t=this._element,e=this._previousSwap;for(let r=this._relatedNodes.length-1;r>-1;r--){let[n,o]=this._relatedNodes[r];n.parentNode===t&&n.nextSibling!==o&&(o===null?t.appendChild(n):o.parentNode===t&&t.insertBefore(n,o))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(t){return this._activeItems.indexOf(t)}getItemAtIndex(t){return this._activeItems[t]||null}updateOnScroll(){this._activeItems.forEach(t=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(t){t!==this._element&&(this._element=t,this._rootNode=void 0)}_getItemIndexFromPointerPosition(t,e,r){let n=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(r)),o=n?this._activeItems.findIndex(a=>{let s=a.getRootElement();return n===s||s.contains(n)}):-1;return o===-1||!this._sortPredicate(o,t)?-1:o}_getRootNode(){return this._rootNode||(this._rootNode=hm(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(t,e,r){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let n=1/0,o=-1;for(let a=0;a<this._activeItems.length;a++){let s=this._activeItems[a];if(s!==t){let{x:l,y:c}=s.getRootElement().getBoundingClientRect(),d=Math.hypot(e-l,r-c);d<n&&(n=d,o=a)}}return o}},UE=.05,jE=.05,Sn=(function(i){return i[i.NONE=0]="NONE",i[i.UP=1]="UP",i[i.DOWN=2]="DOWN",i})(Sn||{}),Er=(function(i){return i[i.NONE=0]="NONE",i[i.LEFT=1]="LEFT",i[i.RIGHT=2]="RIGHT",i})(Er||{});function yH(i,t){return new ry(t,i.get(ay),i.get(vn),i.get(Si),i.get(t_))}var ry=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new Ze;entered=new Ze;exited=new Ze;dropped=new Ze;sorted=new Ze;receivingStarted=new Ze;receivingStopped=new Ze;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=da.EMPTY;_verticalScrollDirection=Sn.NONE;_horizontalScrollDirection=Er.NONE;_scrollNode;_stopScrollTimers=new Ze;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(t,e,r,n,o){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=o;let a=this.element=Uo(t);this._document=r,this.withOrientation("vertical").withElementContainer(a),e.registerDropContainer(this),this._parentPositions=new Am(r)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,r,n){this._draggingStarted(),n==null&&this.sortingDisabled&&(n=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,r,n),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,r,n,o,a,s,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:r,container:this,previousContainer:n,isPointerOverContainer:o,distance:a,dropPoint:s,event:l})}withItems(t){let e=this._draggables;return this._draggables=t,t.forEach(r=>r._withDropContainer(this)),this.isDragging()&&(e.filter(n=>n.isDragging()).every(n=>t.indexOf(n)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._direction=t,this._sortStrategy instanceof Vm&&(this._sortStrategy.direction=t),this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){if(t==="mixed")this._sortStrategy=new iy(this._document,this._dragDropRegistry);else{let e=new Vm(this._dragDropRegistry);e.direction=this._direction,e.orientation=t,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,r)=>this.sortPredicate(e,r,this)),this}withScrollableParents(t){let e=this._container;return this._scrollableElements=t.indexOf(e)===-1?[e,...t]:t.slice(),this}withElementContainer(t){if(t===this._container)return this;let e=Uo(this.element),r=this._scrollableElements.indexOf(this._container),n=this._scrollableElements.indexOf(t);return r>-1&&this._scrollableElements.splice(r,1),n>-1&&this._scrollableElements.splice(n,1),this._sortStrategy&&this._sortStrategy.withElementContainer(t),this._cachedShadowRoot=null,this._scrollableElements.unshift(t),this._container=t,this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}getItemAtIndex(t){return this._isDragging?this._sortStrategy.getItemAtIndex(t):this._draggables[t]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,r,n){if(this.sortingDisabled||!this._domRect||!FE(this._domRect,UE,e,r))return;let o=this._sortStrategy.sort(t,e,r,n);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let r,n=Sn.NONE,o=Er.NONE;if(this._parentPositions.positions.forEach((a,s)=>
vendor: 13,499 bytes, line 1022
1022{s===this._document||!a.clientRect||r||FE(a.clientRect,UE,t,e)&&([n,o]=xH(s,a.clientRect,this._direction,t,e),(n||o)&&(r=s))}),!n&&!o){let{width:a,height:s}=this._viewportRuler.getViewportSize(),l={width:a,height:s,top:0,right:a,bottom:s,left:0};n=YE(l,e),o=KE(l,t),r=window}r&&(n!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||r!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=o,this._scrollNode=r,(n||o)&&r?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let t=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let t=this._container.style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),J2(0,Z2).pipe(Zr(this._stopScrollTimers)).subscribe(()=>{let t=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===Sn.UP?t.scrollBy(0,-e):this._verticalScrollDirection===Sn.DOWN&&t.scrollBy(0,e),this._horizontalScrollDirection===Er.LEFT?t.scrollBy(-e,0):this._horizontalScrollDirection===Er.RIGHT&&t.scrollBy(e,0)})};_isOverContainer(t,e){return this._domRect!=null&&Jb(this._domRect,t,e)}_getSiblingContainerFromPosition(t,e,r){return this._siblings.find(n=>n._canReceive(t,e,r))}_canReceive(t,e,r){if(!this._domRect||!Jb(this._domRect,e,r)||!this.enterPredicate(t,this))return!1;let n=this._getShadowRoot().elementFromPoint(e,r);return n?n===this._container||this._container.contains(n):!1}_startReceiving(t,e){let r=this._activeSiblings;!r.has(t)&&e.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-1)&&(r.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let t=hm(this._container);this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}};function YE(i,t){let{top:e,bottom:r,height:n}=i,o=n*jE;return t>=e-o&&t<=e+o?Sn.UP:t>=r-o&&t<=r+o?Sn.DOWN:Sn.NONE}function KE(i,t){let{left:e,right:r,width:n}=i,o=n*jE;return t>=e-o&&t<=e+o?Er.LEFT:t>=r-o&&t<=r+o?Er.RIGHT:Er.NONE}function xH(i,t,e,r,n){let o=YE(t,n),a=KE(t,r),s=Sn.NONE,l=Er.NONE;if(o){let c=i.scrollTop;o===Sn.UP?c>0&&(s=Sn.UP):i.scrollHeight-c>i.clientHeight&&(s=Sn.DOWN)}if(a){let c=i.scrollLeft;e==="rtl"?a===Er.RIGHT?c<0&&(l=Er.RIGHT):i.scrollWidth+c>i.clientWidth&&(l=Er.LEFT):a===Er.LEFT?c>0&&(l=Er.LEFT):i.scrollWidth-c>i.clientWidth&&(l=Er.RIGHT)}return[s,l]}var HE=new St("CDK_DRAG_PARENT");var CH=new St("CdkDragHandle");var $E=new St("CDK_DRAG_CONFIG"),ZE=new St("CdkDropList"),QE=(()=>{class i{element=ie(Cr);dropContainer=ie(ZE,{optional:!0,skipSelf:!0});_ngZone=ie(Si);_viewContainerRef=ie(hw);_dir=ie(e_,{optional:!0});_changeDetectorRef=ie(No);_selfHandle=ie(CH,{optional:!0,self:!0});_parentDrag=ie(HE,{optional:!0,skipSelf:!0});_dragDropRegistry=ie(ay);_destroyed=new Ze;_handles=new Pd([]);_previewTemplate=null;_placeholderTemplate=null;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled=!1;constrainPosition;previewClass;previewContainer;scale=1;started=new he;released=new he;ended=new he;entered=new he;exited=new he;dropped=new he;moved=new fs(e=>{let r=this._dragRef.moved.pipe(Vi(n=>({source:this,pointerPosition:n.pointerPosition,event:n.event,delta:n.delta,distance:n.distance}))).subscribe(e);return()=>{r.unsubscribe()}});_injector=ie(Ld);constructor(){let e=this.dropContainer,r=ie($E,{optional:!0});this._dragRef=_H(this._injector,this.element,{dragStartThreshold:r&&r.dragStartThreshold!=null?r.dragStartThreshold:5,pointerDirectionChangeThreshold:r&&r.pointerDirectionChangeThreshold!=null?r.pointerDirectionChangeThreshold:5,zIndex:r?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),r&&this._assignDefaults(r),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(Zr(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){mw(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let r=e.rootElementSelector,n=e.freeDragPosition;r&&!r.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let r=this._handles.getValue();r.push(e),this._handles.next(r)}_removeHandle(e){let r=this._handles.getValue(),n=r.indexOf(e);n>-1&&(r.splice(n,1),this._handles.next(r))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,r=e;this.rootElementSelector&&(r=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(r||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):Uo(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let r=this._dir,n=this.dragStartDelay,o=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof n=="object"&&n?n:Jv(n),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(o).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),r&&e.withDirection(r.value)}}),e.beforeStarted.pipe(qu(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let r=this.element.nativeElement.parentElement;for(;r;){let n=this._dragDropRegistry.getDragDirectiveForNode(r);if(n){e.withParent(n._dragRef);break}r=r.parentElement}})}_handleEvents(e){e.started.subscribe(r=>{this.started.emit({source:this,event:r.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(r=>{this.released.emit({source:this,event:r.event})}),e.ended.subscribe(r=>{this.ended.emit({source:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(r=>{this.entered.emit({container:r.container.data,item:this,currentIndex:r.currentIndex})}),e.exited.subscribe(r=>{this.exited.emit({container:r.container.data,item:this})}),e.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,isPointerOverContainer:r.isPointerOverContainer,item:this,distance:r.distance,dropPoint:r.dropPoint,event:r.event})})}_assignDefaults(e){let{lockAxis:r,dragStartDelay:n,constrainPosition:o,previewClass:a,boundaryElement:s,draggingDisabled:l,rootElementSelector:c,previewContainer:d}=e;this.disabled=l??!1,this.dragStartDelay=n||0,this.lockAxis=r||null,o&&(this.constrainPosition=o),a&&(this.previewClass=a),s&&(this.boundaryElement=s),c&&(this.rootElementSelector=c),d&&(this.previewContainer=d)}_setupHandlesListener(){this._handles.pipe(vs(e=>{let r=e.map(n=>n.element);this._selfHandle&&this.rootElementSelector&&r.push(this.element),this._dragRef.withHandles(r)}),oo(e=>Rd(...e.map(r=>r._stateChanges.pipe(gs(r))))),Zr(this._destroyed)).subscribe(e=>{let r=this._dragRef,n=e.element.nativeElement;e.disabled?r.disableHandle(n):r.enableHandle(n)})}static \u0275fac=function(r){return new(r||i)};static \u0275dir=Sr({type:i,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(r,n){r&2&&Rt("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",ot],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",wi]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[wr([{provide:HE,useExisting:i}]),xr]})}return i})(),WE=new St("CdkDropListGroup");var XE=(()=>{class i{element=ie(Cr);_changeDetectorRef=ie(No);_scrollDispatcher=ie(IT);_dir=ie(e_,{optional:!0});_group=ie(WE,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new Ze;_scrollableParentsResolved=!1;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation="vertical";id=ie(DT).getId("cdk-drop-list-");lockAxis=null;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled=!1;sortingDisabled=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled=!1;autoScrollStep;elementContainerSelector=null;hasAnchor=!1;dropped=new he;entered=new he;exited=new he;sorted=new he;_unsortedItems=new Set;constructor(){let e=ie($E,{optional:!0}),r=ie(Ld);this._dropListRef=yH(r,this.element),this._dropListRef.data=this,e&&this._assignDefaults(e),this._dropListRef.enterPredicate=(n,o)=>this.enterPredicate(n.data,o.data),this._dropListRef.sortPredicate=(n,o,a)=>this.sortPredicate(n,o.data,a.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),i._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),e._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(r=>r._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let r=this._latestSortedRefs.indexOf(e._dragRef);r>-1&&(this._latestSortedRefs.splice(r,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,r)=>e._dragRef.getVisibleElement().compareDocumentPosition(r._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=i._dropLists.indexOf(this);e>-1&&i._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(gs(this._dir.value),Zr(this._destroyed)).subscribe(r=>e.withDirection(r)),e.beforeStarted.subscribe(()=>{let r=kT(this.connectedTo).map(n=>{if(typeof n=="string"){let o=i._dropLists.find(a=>a.id===n);return o}return n});
1022if(this._group&&this._group._items.forEach(n=>{r.indexOf(n)===-1&&r.push(n)}),!this._scrollableParentsResolved){let n=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(o=>o.getElementRef().nativeElement);this._dropListRef.withScrollableParents(n),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let n=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(n)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=Jv(this.autoScrollStep,2),e.hasAnchor=this.hasAnchor,e.connectedTo(r.filter(n=>n&&n!==this).map(n=>n._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(r=>r._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(r=>{this.entered.emit({container:this,item:r.item.data,currentIndex:r.currentIndex})}),e.exited.subscribe(r=>{this.exited.emit({container:this,item:r.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(r=>{this.sorted.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:r.item.data})}),e.dropped.subscribe(r=>{this.dropped.emit({previousIndex:r.previousIndex,currentIndex:r.currentIndex,previousContainer:r.previousContainer.data,container:r.container.data,item:r.item.data,isPointerOverContainer:r.isPointerOverContainer,distance:r.distance,dropPoint:r.dropPoint,event:r.event}),this._changeDetectorRef.markForCheck()}),Rd(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:r,draggingDisabled:n,sortingDisabled:o,listAutoScrollDisabled:a,listOrientation:s}=e;this.disabled=n??!1,this.sortingDisabled=o??!1,this.autoScrollDisabled=a??!1,this.orientation=s||"vertical",this.lockAxis=r||null}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(r){return new(r||i)};static \u0275dir=Sr({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(r,n){r&2&&(Ge("id",n.id),Rt("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",ot],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",ot],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",ot],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",ot]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[wr([{provide:WE,useValue:void 0},{provide:ZE,useExisting:i}])]})}return i})();var Ei=class i{constructor(t){this.frontpageComponent=t}uniqueId;hasWidgetSettings=!1;widgetTitle="Base Widget";isLoading=!1;static \u0275fac=function(e){return new(e||i)(N(ki))};static \u0275cmp=K({type:i,selectors:[["base-widget"]],inputs:{uniqueId:"uniqueId"},decls:0,vars:0,template:function(e,r){},encapsulation:2})};var wH=()=>[],sy=i=>["/fit",i];function TH(i,t){i&1&&T(0,"overlay-loader")}function EH(i,t){i&1&&(p(0,"tr"),T(1,"th",6),p(2,"th"),f(3,"Name"),m(),p(4,"th",7),f(5,"Est. price"),m()())}function kH(i,t){if(i&1&&(p(0,"tr",8)(1,"td",9)(2,"div",10)(3,"a",11),T(4,"img",12),m()()(),p(5,"td",9)(6,"div",10)(7,"a",11),f(8),T(9,"br"),p(10,"span",13),f(11),m()()()(),p(12,"td",14)(13,"div",10)(14,"a",11),T(15,"span",15),G(16,"shortPrice"),p(17,"span",16),f(18," ISK"),m()()()()()),i&2){let e=t.$implicit;v(3),b("routerLink",te(14,sy,e.id)),v(),b("src",Q("https://images.evetech.net/types/",e.shipId,"/icon?size=64"),re)("alt",De(e.shipName)),v(3),b("routerLink",te(16,sy,e.id)),v(),V(" ",e.name),v(3),kt("",e.shipClass," \u2022 ",e.shipName),v(3),b("routerLink",te(18,sy,e.id)),v(),b("innerHTML",Ne(16,11,e.totalCost,""),ke)}}
1022var Jd=class i extends Ei{constructor(e,r,n){super(n);this.fitClient=e;this.router=r}title="";cloneState=0;loading=!0;fits=void 0;ngOnInit(){this.loading=!0,this.fitClient.getLatest(this.cloneState).subscribe(e=>{this.loading=!1,e.success&&(this.fits=e.result)})}static \u0275fac=function(r){return new(r||i)(N(it),N(bt),N(ki))};static \u0275cmp=K({type:i,selectors:[["app-latest-fits-widget"]],inputs:{title:"title",cloneState:"cloneState"},features:[Ke],decls:10,vars:4,consts:[["header",""],["body",""],[4,"ngIf"],[1,"card","shadow-sm","mb-3"],[1,"card-body"],["stripedRows","","rowHover","",1,"small",3,"value"],[2,"width","32px"],[1,"text-end"],["pSelectableRow",""],[1,"p-0"],[1,"position-relative","p-3"],[1,"stretched-link",3,"routerLink"],[1,"border","rounded-circle","border-2","border-white",3,"src","alt"],[1,"text-muted","small"],[1,"text-end","p-0"],[3,"innerHTML"],[1,"small"]],template:function(r,n){r&1&&(M(0,TH,1,0,"overlay-loader",2),p(1,"div",3)(2,"div",4)(3,"h5"),f(4),m(),p(5,"p-table",5),M(6,EH,6,0,"ng-template",null,0,de)(8,kH,19,20,"ng-template",null,1,de),m()()()),r&2&&(b("ngIf",n.loading),v(4),V("Latest ",n.title," Fits"),v(),b("value",n.fits??be(3,wH)))},dependencies:[Vt,ge,ft,xt,Dt,wm,$e,At],encapsulation:2})};var Um=class i{transform(t,e){if(t!=null)return e[t].split(/(?=[A-Z])/).join().replace(","," ")}static \u0275fac=function(e){return new(e||i)};static \u0275pipe=Xu({name:"eNumAsString",type:i,pure:!0})};function IH(i,t){i&1&&T(0,"overlay-loader")}function DH(i,t){i&1&&(p(0,"div",6),f(1," Loading widget data... "),m())}function MH(i,t){i&1&&(p(0,"tr"),T(1,"th"),p(2,"th"),f(3,"Ship name"),m(),p(4,"th"),f(5,"Abyss Weather"),m(),p(6,"th"),f(7,"Abyss Tier"),m(),p(8,"th"),f(9,"Duration"),m()())}function PH(i,t){if(i&1&&(T(0,"img",17),G(1,"eNumAsString"),G(2,"lowercase"),G(3,"eNumAsString"),G(4,"titlecase")),i&2){let e=S().$implicit,r=S(2);b("src",Q("https://abysstracker.com/assets/images/icons/ship-class/ffffff/",Ar(2,6,Ne(1,3,e.hullType,r.HullTypes)),"_64.png"),re)("ewbTooltip",Ar(4,11,Ne(3,8,e.hullType,r.HullTypes)))}}function FH(i,t){i&1&&T(0,"img",18)}function RH(i,t){if(i&1&&(p(0,"tr",10)(1,"td",11)(2,"div",12)(3,"a",13),M(4,PH,5,13,"img",14)(5,FH,1,0,"img",15),m()()(),p(6,"td",11)(7,"div",12)(8,"a",13),f(9),m()()(),p(10,"td",11)(11,"div",12)(12,"a",13),T(13,"img",16),G(14,"eNumAsString"),G(15,"lowercase"),f(16),G(17,"eNumAsString"),m()()(),p(18,"td",11)(19,"div",12)(20,"a",13),T(21,"img",16),f(22),G(23,"eNumAsString"),m()()(),p(24,"td",11)(25,"div",12)(26,"a",13),f(27),m()()()()),i&2){let e=t.$implicit,r=S(2);v(3),b("href",Q("https://abysstracker.com/run/",e.id),re),v(),b("ngIf",e.hullType!=null),v(),b("ngIf",!e.survived),v(3),b("href",Q("https://abysstracker.com/run/",e.id),re),v(),V(" ",e.hullName," "),v(3),b("href",Q("https://abysstracker.com/run/",e.id),re),v(),b("src",Q("https://abysstracker.com/assets/images/types/",Ar(15,24,Ne(14,21,e.abyssWeather,r.AbyssWeathers)),".png"),re),v(3),V(" ",Ne(17,26,e.abyssWeather,r.AbyssWeathers)," "),v(4),b("href",Q("https://abysstracker.com/run/",e.id),re),v(),b("src",Q("https://abysstracker.com/assets/images/tiers/",e.abyssTier,".png"),re),v(),kt(" ",Ne(23,29,e.abyssTier,r.AbyssTiers)," (Tier ",e.abyssTier,") "),v(4),b("href",Q("https://abysstracker.com/run/",e.id),re),v(),V(" ",e.timeSpendString," ")}}function LH(i,t){if(i&1&&(p(0,"p-table",7),M(1,MH,10,0,"ng-template",null,0,de)(3,RH,28,32,"ng-template",null,1,de),m()),i&2){let e=S();b("value",e.runs)}}var Hm=class i extends Ei{constructor(e,r){super(r);this.runClient=e;this.isLoading=!0}runs=[];ngOnInit(){this.runClient.getLatestRuns(0,10).subscribe(e=>{e.success&&(this.runs=e.result??[]),this.isLoading=!1})}openRunInNewTab(e){window.open(`https://abysstracker.com/run/${e.id}`,"_blank")}HullTypes=nT;AbyssWeathers=am;AbyssTiers=Yw;static \u0275fac=function(r){return new(r||i)(N(Gw),N(ki))};static \u0275cmp=K({type:i,selectors:[["app-latest-abyss-tracker-runs-widget"]],features:[Ke],decls:13,vars:2,consts:[["header",""],["body",""],[1,"card","shadow-sm","mb-3"],[1,"card-body"],[4,"ngIf"],["src","/shared/assets/public/images/abysstracker-logo.png","alt","Abyss Tracker logo",1,"img-24","d-inline-block"],[1,"p-5","text-muted","text-center"],["stripedRows","","rowHover","",1,"small",3,"value"],[1,"card-footer"],["href","https://abysstracker.com","target","_blank","rel","nofollow"],[1,"curs
1022or-pointer"],[1,"p-0"],[1,"p-3","position-relative"],["target","_blank","rel","nofollow",1,"stretched-link",3,"href"],["class","img-16",3,"src","ewbTooltip",4,"ngIf"],["src","https://abysstracker.com/assets/images/dead.png","class","img-14","ewbTooltip","The capsuleer was unfortunate and lost his ship and capsule in the abyss.",4,"ngIf"],[1,"img-16",3,"src"],[1,"img-16",3,"src","ewbTooltip"],["src","https://abysstracker.com/assets/images/dead.png","ewbTooltip","The capsuleer was unfortunate and lost his ship and capsule in the abyss.",1,"img-14"]],template:function(r,n){r&1&&(p(0,"div",2)(1,"div",3),M(2,IH,1,0,"overlay-loader",4),p(3,"h5"),f(4,"Latest submitted Abyss Runs by "),T(5,"img",5),f(6," Abyss Tracker"),m(),H(7,DH,2,0,"div",6)(8,LH,5,1,"p-table",7),m(),p(9,"div",8),f(10," Datasource: "),p(11,"a",9),f(12,"Abyss Tracker"),m()()()),r&2&&(v(2),b("ngIf",n.isLoading),v(5),W(n.isLoading?7:8))},dependencies:[ft,ge,xt,Dt,Pe,Ew,Um,Yl],encapsulation:2})};function OH(i,t){i&1&&T(0,"overlay-loader")}function AH(i,t){i&1&&(p(0,"div",6),f(1," Loading widget data... "),m())}function BH(i,t){i&1&&(p(0,"tr")(1,"th"),f(2,"Date"),m(),p(3,"th"),f(4,"Hull"),m(),p(5,"th"),f(6,"Location"),m(),p(7,"th"),f(8,"Victim"),m()())}function NH(i,t){if(i&1&&(p(0,"strong",20),f(1),m()),i&2){let e=S().$implicit;v(),$(e.victimName)}}function VH(i,t){if(i&1&&T(0,"span",21),i&2){let e=S().$implicit;b("innerHtml",e.victimCorporation,ke)}}function zH(i,t){if(i&1&&T(0,"span",21),i&2){let e=S().$implicit;b("innerHtml",e.victimAlliance,ke)}}function UH(i,t){if(i&1&&(p(0,"tr",10)(1,"td",11)(2,"div",12)(3,"a",13),T(4,"span",14),m()()(),p(5,"td",11)(6,"div",12)(7,"a",13),T(8,"img",15),m()()(),p(9,"td",11)(10,"div",12)(11,"a",13)(12,"span"),f(13),m(),f(14),T(15,"br"),p(16,"small"),f(17),m()()()(),p(18,"td",11)(19,"div",12)(20,"a",13)(21,"div",16),T(22,"img",17),p(23,"div"),M(24,NH,2,1,"strong",18)(25,VH,1,1,"span",19)(26,zH,1,1,"span",19),m()()()()()()),i&2){let e=t.$implicit,r=S(2);v(3),b("href",Q("https://evewreckbench.com/kill/",e.id),re),v(),b("innerHtml",r.transformDate(e.timestamp),ke),v(3),b("href",Q("https://evewreckbench.com/kill/",e.id),re),v(),b("src",Q("https://images.evetech.net/types/",e.shipId,"/render?size=64"),re),v(3),b("href",Q("https://evewreckbench.com/kill/",e.id),re),v(),_e(Q("security-level security-level-",r.getSecurityStatusClassString(e.systemSecurity))),v(),$(r.getSecurityStatusString(e.systemSecurity)),v(),V(" ",e.system),v(3),$(e.region),v(3),b("href",Q("https://evewreckbench.com/kill/",e.id),re),v(2),b("src",Q("https://images.evetech.net/characters/",e.victimId,"/portrait/?size=32"),re)("alt",De(e.victimName)),v(2),b("ngIf",e.victimName),v(),b("ngIf",e.victimCorporation),v(),b("ngIf",e.victimAlliance)}}function HH(i,t){if(i&1&&(p(0,"p-table",7),M(1,BH,9,0,"ng-template",null,0,de)(3,UH,27,24,"ng-template",null,1,de),m()),i&2){let e=S();b("value",e.kills)}}var Wm=class i extends Ei{constructor(e,r,n){super(n);this.wreckbenchClient=e;this.router=r;this.isLoading=!0}kills=[];ngOnInit(){this.wreckbenchClient.getLatestKills().subscribe(e=>{e.success&&(this.kills=e.result??[]),this.isLoading=!1})}getSecurityStatusClassString(e){return this.getSecurityStatusString(e).replace(".","")}getSecurityStatusString(e){if(e===void 0)return"";let r=e?.toFixed(1);return e===1?"1.0":r}openKill(e){window.open(`https://evewreckbench.com/kill/${e}`,"_blank")}transformDate(e){let r=e.split(" "),n=r[0].split("/"),o=r[1].split(":"),a=`${n[1].padStart(2,"0")}-${n[0].padStart(2,"0")}`,s=`${o[0]}:${o[1]}`;return`${a}<br />${s}`}static \u0275fac=function(r){return new(r||i)(N(Vw),N(bt),N(ki))};static \u0275cmp=K({type:i,selectors:[["app-latest-kills-widget"]],features:[Ke],decls:13,vars:2,consts:[["header",""],["body",""],[1,"card","shadow-sm","mb-3"],[4,"ngIf"],[1,"card-body"],["src","/shared/assets/public/images/evewreckbench-logo.svg","alt","EVE Wreckbench logo",1,"img-24","d-inline"],[1,"p-5","text-muted","text-center"],["stripedRows","","rowHover","",1,"small",3,"value"],[1,"card-footer"],["href","https://evewreckbench.com","target","_blank","rel","nofollow "],[1,"curs
1022or-pointer"],[1,"p-0"],[1,"p-3","position-relative"],["target","_blank",1,"stretched-link",3,"href"],[3,"innerHtml"],[1,"img-48","rounded-circle","border","border-1","border-white",3,"src"],[1,"d-flex","justify-content-start","align-items-center"],[1,"img-48","rounded-circle","border","border-1","border-white","me-4",3,"src","alt"],["class","d-block",4,"ngIf"],["class","d-block",3,"innerHtml",4,"ngIf"],[1,"d-block"],[1,"d-block",3,"innerHtml"]],template:function(r,n){r&1&&(p(0,"div",2),M(1,OH,1,0,"overlay-loader",3),p(2,"div",4)(3,"h5"),f(4,"Latest kills by "),T(5,"img",5),f(6," EVE Wreckbench"),m(),H(7,AH,2,0,"div",6)(8,HH,5,1,"p-table",7),m(),p(9,"div",8),f(10," Datasource: "),p(11,"a",9),f(12,"EVE Wreckbench"),m()()()),r&2&&(v(),b("ngIf",n.isLoading),v(6),W(n.isLoading?7:8))},dependencies:[ft,ge,xt,Dt],encapsulation:2})};var Gm=i=>["/fleet",i];function WH(i,t){i&1&&T(0,"overlay-loader")}function GH(i,t){i&1&&(p(0,"div",5),f(1," Loading widget data... "),m())}function qH(i,t){i&1&&(p(0,"tr")(1,"th"),f(2,"Name"),m(),p(3,"th"),f(4,"No. fits"),m(),p(5,"th"),f(6,"Used fits"),m(),p(7,"th"),f(8,"Posted"),m()())}function jH(i,t){if(i&1&&T(0,"img",11),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.shipId,"/render?size=32"),re)("ewbTooltip",Ju("Fit: ",e.shipName,", ",e.name," | Amount: ",e.amount," | Role: ",e.role))}}function YH(i,t){if(i&1&&(p(0,"tr",7)(1,"td",8)(2,"div",9)(3,"a",10),f(4),m()()(),p(5,"td",8)(6,"div",9)(7,"a",10),f(8),m()()(),p(9,"td",8)(10,"div",9)(11,"a",10),oe(12,jH,1,7,"img",11,Te),m()()(),p(14,"td",8)(15,"div",9)(16,"a",10),f(17),G(18,"daysAgo"),m()()()()),i&2){let e=t.$implicit;v(3),b("routerLink",te(9,Gm,e.id)),v(),V(" ",e.name," "),v(3),b("routerLink",te(11,Gm,e.id)),v(),V(" ",e.memberCount," "),v(3),b("routerLink",te(13,Gm,e.id)),v(),ae(e.fits),v(4),b("routerLink",te(15,Gm,e.id)),v(),V(" ",Ar(18,7,e.dateAdded)," ")}}function KH(i,t){if(i&1&&(p(0,"p-table",6),M(1,qH,9,0,"ng-template",null,0,de)(3,YH,19,17,"ng-template",null,1,de),m()),i&2){let e=S();b("value",e.fleets)}}var qm=class i extends Ei{constructor(e,r){super(r);this.fleetClient=e;this.isLoading=!0}fleets=[];ngOnInit(){this.fleetClient.getLatestFleets().subscribe(e=>{e.success&&(this.fleets=e.result??[]),this.isLoading=!1})}static \u0275fac=function(r){return new(r||i)(N(Wi),N(ki))};static \u0275cmp=K({type:i,selectors:[["app-latest-fleets-widget"]],features:[Ke],decls:7,vars:2,consts:[["header",""],["body",""],[1,"card","shadow-sm","mb-3"],[1,"card-body"],[4,"ngIf"],[1,"p-5","text-muted","text-center"],["stripedRows","","rowHover","",1,"small",3,"value"],[1,"cursor-pointer"],[1,"p-0"],[1,"p-3","position-relative"],[1,"stretched-link",3,"routerLink"],[1,"img-24","rounded-circle","border","border-1","border-white","me-2",3,"src","ewbTooltip"]],template:function(r,n){r&1&&(p(0,"div",2)(1,"div",3),M(2,WH,1,0,"overlay-loader",4),p(3,"h5"),f(4,"Latest fleets"),m(),H(5,GH,2,0,"div",5)(6,KH,5,1,"p-table",6),m()()),r&2&&(v(2),b("ngIf",n.isLoading),v(3),W(n.isLoading?5:6))},dependencies:[ft,ge,xt,Dt,$e,Pe,_a],encapsulation:2})};var ly=Ri(pr());function $H(i,t){i&1&&T(0,"overlay-loader")}function ZH(i,t){i&1&&(p(0,"div",10)(1,"button",11),f(2,"Clear"),m()())}var pc=class i{constructor(t,e){this.appraisalClient=t;this.router=e}showClear=!0;cargoRows=15;cargoContents="";selectedStation=60003760;selectedType=1;loading=!1;typeOptions=[{label:"Lowest Sell / Highest Buy",value:1},{label:"Averages",value:0}];stationOptions=[{label:"Jita",value:60003760},{label:"Amarr",value:60008494},{label:"Rens",value:60004588},{label:"Dodixie",value:60011866},{label:"Hek",value:60005686},{label:"Oursulaert",value:60011740}];submitForm(){this.loading=!0;let t=new $w;t.station=this.selectedStation,t.type=this.selectedType,t.inventory=this.cargoContents??"",this.appraisalClient.appraise(t).subscribe(e=>{e.success?ly.default.fire({showConfirmButton:!1,timer:2e3,icon:"success",title:"Appraisal saved successfully."}).then(r=>{this.router.navigate(["/tools/appraisal",e.result]),this.loading=!1}):ly.default.fire("Error!",e.message?.toString(),"error")})}static \u0275fac=function(e){return new(e||i)(N(nm),N(bt))};static \u0275cmp=K({type:i,selectors:[["appraisal-input-component"]],inputs:{showClear:"showClear",cargoRows:"cargoRows",cargoContents:"cargoContents",selectedStation:"selectedStation",selectedType:"selectedType"},decls:20,vars:8,consts:[[4,"ngIf"],[1,"row","row-cols-2","mb-3"],[1,"col"],["variant","in"],[1,"w-100",3,"ngModelChange","ngModel","options"],["for","value2"],[1,"row","mb-3"],["pInputText","","id","value2","placeholder","Cargo contents here",1,"w-100",3,"ngModelChange","ngModel","rows"],["class","col col-md-6",4,"ngIf"],[1,"btn","btn-primary","btn-lg","w-100",3,"click"],[1,"col","col-md-6"],[1,"btn","btn-light","btn-lg","w-100"]],template:function(e,r){e&1&&(M(0,$H,1,0,"overlay-loader",0),p(1,"div",1)(2,"div",2)(3,"p-floatlabel",3)(4,"p-select",4),Je("ngModelChange",function(o){return Xe(r.selectedType,o)||(r.selectedType=o),o}),m(),p(5,"label",5),f(6,"Type"),m()()(),p(7,"div",2)(8,"p-floatlabel",3)(9,"p-select",4),Je("ngModelChange",function(o){return Xe(r.selectedStation,o)||(r.selectedStation=o),o}),m(),p(10,"label",5),f(11,"Station"),m()()()(),p(12,"div",6)(13,"div",2)(14,"textarea",7),Je("ngModelChange",function(o){return Xe(r.cargoContents,o)||(r.cargoContents=o),o}),m()()(),p(15,"div",6),M(16,ZH,3,0,"div",8),p(17,"div",2)(18,"button",9),R("click",function(){return r.submitForm(
1022)}),f(19,"Appraise"),m()()()),e&2&&(b("ngIf",r.loading),v(4),Qe("ngModel",r.selectedType),b("options",r.typeOptions),v(5),Qe("ngModel",r.selectedStation),b("options",r.stationOptions),v(5),Qe("ngModel",r.cargoContents),b("rows",r.cargoRows),v(2),b("ngIf",r.showClear))},dependencies:[Vt,ge,$t,ni,yt,Ot,mt,Kt,dr,ft],encapsulation:2})};var jm=class i extends Ei{static \u0275fac=(()=>{let t;return function(r){return(t||(t=si(i)))(r||i)}})();static \u0275cmp=K({type:i,selectors:[["app-appraisal-widget"]],features:[Ke],decls:6,vars:2,consts:[[1,"card","card-body","mb-3"],[1,"alert","alert-info"],[3,"cargoRows","showClear"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"h5"),f(2,"Appraisal"),m(),p(3,"div",1),f(4," You can easily create new Appraisals directly from the frontpage with this widget! "),m(),T(5,"appraisal-input-component",2),m()),e&2&&(v(5),b("cargoRows",10)("showClear",!1))},dependencies:[pc],encapsulation:2})};var JE=`
1023    .p-drawer {
1024        display: flex;
1025        flex-direction: column;
1026        transform: translate3d(0px, 0px, 0px);
1027        position: relative;
1028        transition: transform 0.3s;
1029        background: dt('drawer.background');
1030        color: dt('drawer.color');
1031        border-style: solid;
1032        border-color: dt('drawer.border.color');
1033        box-shadow: dt('drawer.shadow');
1034    }
1035
1036    .p-drawer-content {
1037        overflow-y: auto;
1038        flex-grow: 1;
1039        padding: dt('drawer.content.padding');
1040    }
1041
1042    .p-drawer-header {
1043        display: flex;
1044        align-items: center;
1045        justify-content: space-between;
1046        flex-shrink: 0;
1047        padding: dt('drawer.header.padding');
1048    }
1049
1050    .p-drawer-footer {
1051        padding: dt('drawer.footer.padding');
1052    }
1053
1054    .p-drawer-title {
1055        font-weight: dt('drawer.title.font.weight');
1056        font-size: dt('drawer.title.font.size');
1057    }
1058
1059    .p-drawer-full .p-drawer {
1060        transition: none;
1061        transform: none;
1062        width: 100vw !important;
1063        height: 100vh !important;
1064        max-height: 100%;
1065        top: 0px !important;
1066        left: 0px !important;
1067        border-width: 1px;
1068    }
1069
1070    .p-drawer-left .p-drawer-enter-active {
1071        animation: p-animate-drawer-enter-left 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1072    }
1073    .p-drawer-left .p-drawer-leave-active {
1074        animation: p-animate-drawer-leave-left 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1075    }
1076
1077    .p-drawer-right .p-drawer-enter-active {
1078        animation: p-animate-drawer-enter-right 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1079    }
1080    .p-drawer-right .p-drawer-leave-active {
1081        animation: p-animate-drawer-leave-right 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1082    }
1083
1084    .p-drawer-top .p-drawer-enter-active {
1085        animation: p-animate-drawer-enter-top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1086    }
1087    .p-drawer-top .p-drawer-leave-active {
1088        animation: p-animate-drawer-leave-top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1089    }
1090
1091    .p-drawer-bottom .p-drawer-enter-active {
1092        animation: p-animate-drawer-enter-bottom 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1093    }
1094    .p-drawer-bottom .p-drawer-leave-active {
1095        animation: p-animate-drawer-leave-bottom 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1096    }
1097
1098    .p-drawer-full .p-drawer-enter-active {
1099        animation: p-animate-drawer-enter-full 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1100    }
1101    .p-drawer-full .p-drawer-leave-active {
1102        animation: p-animate-drawer-leave-full 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1103    }
1104    
1105    .p-drawer-left .p-drawer {
1106        width: 20rem;
1107        height: 100%;
1108        border-inline-end-width: 1px;
1109    }
1110
1111    .p-drawer-right .p-drawer {
1112        width: 20rem;
1113        height: 100%;
1114        border-inline-start-width: 1px;
1115    }
1116
1117    .p-drawer-top .p-drawer {
1118        height: 10rem;
1119        width: 100%;
1120        border-block-end-width: 1px;
1121    }
1122
1123    .p-drawer-bottom .p-drawer {
1124        height: 10rem;
1125        width: 100%;
1126        border-block-start-width: 1px;
1127    }
1128
1129    .p-drawer-left .p-drawer-content,
1130    .p-drawer-right .p-drawer-content,
1131    .p-drawer-top .p-drawer-content,
1132    .p-drawer-bottom .p-drawer-content {
1133        width: 100%;
1134        height: 100%;
1135    }
1136
1137    .p-drawer-open {
1138        display: flex;
1139    }
1140
1141    .p-drawer-mask:dir(rtl) {
1142        flex-direction: row-reverse;
1143    }
1144
1145    @keyframes p-animate-drawer-enter-left {
1146        from {
1147            transform: translate3d(-100%, 0px, 0px);
1148        }
1149    }
1150
1151    @keyframes p-animate-drawer-leave-left {
1152        to {
1153            transform: translate3d(-100%, 0px, 0px);
1154        }
1155    }
1156
1157    @keyframes p-animate-drawer-enter-right {
1158        from {
1159            transform: translate3d(100%, 0px, 0px);
1160        }
1161    }
1162
1163    @keyframes p-animate-drawer-leave-right {
1164        to {
1165            transform: translate3d(100%, 0px, 0px);
1166        }
1167    }
1168
1169    @keyframes p-animate-drawer-enter-top {
1170        from {
1171            transform: translate3d(0px, -100%, 0px);
1172        }
1173    }
1174
1175    @keyframes p-animate-drawer-leave-top {
1176        to {
1177            transform: translate3d(0px, -100%, 0px);
1178        }
1179    }
1180
1181    @keyframes p-animate-drawer-enter-bottom {
1182        from {
1183            transform: translate3d(0px, 100%, 0px);
1184        }
1185    }
1186
1187    @keyframes p-animate-drawer-leave-bottom {
1188        to {
1189            transform: translate3d(0px, 100%, 0px);
1190        }
1191    }
1192
1193    @keyframes p-animate-drawer-enter-full {
1194        from {
1195            opacity: 0;
1196            transform: scale(0.93);
1197        }
1198    }
1199
1200    @keyframes p-animate-drawer-leave-full {
1201        to {
1202            opacity: 0;
1203            transform: scale(0.93);
1204        }
1205    }
1206`;var QH=["header"],XH=["footer"],JH=["content"],eW=["closeicon"],tW=["headless"],iW=["container"],rW=["closeButton"],nW=["*"];function oW(i,t){i&1&&vt(0)}function aW(i,t){if(i&1&&M(0,oW,1,0,"ng-container",4),i&2){let e=S(2);b("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function sW(i,t){i&1&&vt(0)}function lW(i,t){if(i&1&&(p(0,"div",9),f(1),m()),i&2){let e=S(3);_e(e.cx("title")),b("pBind",e.ptm("title")),v(),$(e.header)}}function cW(i,t){i&1&&(Ft(),T(0,"svg",12)),i&2&&Ge("data-pc-section","closeicon")}function dW(i,t){}function pW(i,t){i&1&&M(0,dW,0,0,"ng-template")}function uW(i,t){if(i&1&&M(0,cW,1,1,"svg",11)(1,pW,1,0,null,4),i&2){let e=S(4);b("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),v(),b("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function mW(i,t){if(i&1){let e=J();p(0,"p-button",10),R("onClick",function(n){L(e);let o=S(3);return O(o.close(n))})("keydown.enter",function(n){L(e);let o=S(3);return O(o.close(n))}),M(1,uW,2,2,"ng-template",null,1,de),m()}if(i&2){let e=S(3);b("pt",e.ptm("pcCloseButton"))("ngClass",e.cx("pcCloseButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel)("unstyled",e.unstyled()),Ge("data-pc-group-section","iconcontainer")}}function fW(i,t){i&1&&vt(0)}function hW(i,t){i&1&&vt(0)}function gW(i,t){if(i&1&&(Ut(0),p(1,"div",5),M(2,hW,1,0,"ng-container",4),m(),Ht()),i&2){let e=S(3);v(),b("pBind",e.ptm("footer"))("ngClass",e.cx("footer")),Ge("data-pc-section","footer"),v(),b("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function vW(i,t){if(i&1&&(p(0,"div",5),M(1,sW,1,0,"ng-container",4)(2,lW,2,4,"div",6)(3,mW,3,6,"p-button",7),m(),p(4,"div",5),ql(5),M(6,fW,1,0,"ng-container",4),m(),M(7,gW,3,4,"ng-container",8)),i&2){let e=S(2);b("pBind",e.ptm("header"))("ngClass",e.cx("header")),Ge("data-pc-section","header"),v(),b("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),v(),b("ngIf",e.header),v(),b("ngIf",e.showCloseIcon&&e.closable),v(),b("pBind",e.ptm("content"))("ngClass",e.cx("content")),Ge("data-pc-section","content"),v(2),b("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),v(),b("ngIf",e.footerTemplate||e._footerTemplate)}}function _W(i,t){if(i&1){let e=J();p(0,"div",3,0),R("pMotionOnBeforeEnter",function(n){L(e);let o=S();return O(o.onBeforeEnter(n))})("pMotionOnAfterLeave",function(n){L(e);let o=S();return O(o.onAfterLeave(n))})("keydown",function(n){L(e);let o=S();return O(o.onKeyDown(n))}),H(2,aW,1,1,"ng-container")(3,vW,8,11),m()}if(i&2){let e=S();Lt(e.style),_e(e.cn(e.cx("root"),e.styleClass)),b("pBind",e.ptm("root"))("pMotion",e.visible)("pMotionAppear",!0)("pMotionEnterActiveClass",e.$enterAnimation())("pMotionLeaveActiveClass",e.$leaveAnimation())("pMotionOptions",e.computedMotionOptions()),Ge("data-p",e.dataP)("data-p-open",e.visible),v(2),W(e.headlessTemplate||e._headlessTemplate?2:3)}}var bW=`
1207${JE}
1208
1209/** For PrimeNG **/
1210.p-drawer {
1211    position: fixed;
1212}
1213
1214.p-drawer-left {
1215    top: 0;
1216    left: 0;
1217    width: 20rem;
1218    height: 100%;
1219    border-inline-end-width: 1px;
1220}
1221
1222.p-drawer-right {
1223    top: 0;
1224    right: 0;
1225    width: 20rem;
1226    height: 100%;
1227    border-inline-start-width: 1px;
1228}
1229
1230.p-drawer-top {
1231    top: 0;
1232    left: 0;
1233    width: 100%;
1234    height: 10rem;
1235    border-block-end-width: 1px;
1236}
1237
1238.p-drawer-bottom {
1239    bottom: 0;
1240    left: 0;
1241    width: 100%;
1242    height: 10rem;
1243    border-block-start-width: 1px;
1244}
1245
1246.p-drawer-full {
1247    width: 100%;
1248    height: 100%;
1249    top: 0;
1250    left: 0;
1251    -webkit-transition: none;
1252    transition: none;
1253}
1254
1255/* Animations */
1256.p-drawer-enter-left {
1257    animation: p-animate-drawer-enter-left 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1258}
1259
1260.p-drawer-leave-left {
1261    animation: p-animate-drawer-leave-left 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1262}
1263
1264.p-drawer-enter-right {
1265    animation: p-animate-drawer-enter-right 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1266}
1267
1268.p-drawer-leave-right {
1269    animation: p-animate-drawer-leave-right 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1270}
1271
1272.p-drawer-enter-top {
1273    animation: p-animate-drawer-enter-top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1274}
1275
1276.p-drawer-leave-top {
1277    animation: p-animate-drawer-leave-top 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1278}
1279
1280.p-drawer-enter-bottom {
1281    animation: p-animate-drawer-enter-bottom 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1282}
1283
1284.p-drawer-leave-bottom {
1285    animation: p-animate-drawer-leave-bottom 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1286}
1287
1288.p-drawer-enter-full {
1289    animation: p-animate-drawer-enter-full 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1290}
1291
1292.p-drawer-leave-full {
1293    animation: p-animate-drawer-leave-full 0.5s cubic-bezier(0.32, 0.72, 0, 1);
1294}
1295`,yW={mask:({instance:i})=>["p-drawer-mask",{"p-overlay-mask p-overlay-mask-enter-active":i.modal},{"p-drawer-full":i.fullScreen()}],root:({instance:i})=>["p-drawer p-component",{"p-drawer-full":i.fullScreen(),"p-drawer-open":i.visible},`p-drawer-${i.position()}`],header:"p-drawer-header",title:"p-drawer-title",pcCloseButton:"p-drawer-close-button",content:"p-drawer-content",footer:"p-drawer-footer"},ek=(()=>{class i extends ga{name="drawer";style=bW;classes=yW;static \u0275fac=(()=>{let e;return function(n){return(e||(e=si(i)))(n||i)}})();static \u0275prov=Ye({token:i,factory:i.\u0275fac})}return i})();var tk=new St("DRAWER_INSTANCE"),ik=(()=>{class i extends Xr{componentName="Drawer";$pcDrawer=ie(tk,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=ie(ri,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("host"))}appendTo=jt(void 0);motionOptions=jt(void 0);computedMotionOptions=li(()=>lt(lt({},this.ptm("motion")),this.motionOptions()));blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;closeButtonProps={severity:"secondary",text:!0,rounded:!0};dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible??!1}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}position=jt("left");fullScreen=jt(!1);$enterAnimation=li(()=>this.fullScreen()?"p-drawer-enter-full":`p-drawer-enter-${this.position()}`);$leaveAnimation=li(()=>this.fullScreen()?"p-drawer-leave-full":`p-drawer-leave-${this.position()}`);header;maskStyle;closable=!0;onShow=new he;onHide=new he;visibleChange=new he;containerViewChild;closeButtonViewChild;initialized;_visible;_position="left";_fullScreen=!1;modalVisible=!1;container;mask;maskClickListener;documentEscapeListener;animationEndListener;_componentStyle=ie(ek);onAfterViewInit(){this.initialized=!0}headerTemplate;footerTemplate;contentTemplate;closeIconTemplate;headlessTemplate;$appendTo=li(()=>this.appendTo()||this.config.overlayAppendTo());_headerTemplate;_footerTemplate;_contentTemplate;_closeIconTemplate;_headlessTemplate;templates;
vendor: 5,786 bytes, line 1295
1295onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}onKeyDown(e){e.code==="Escape"&&this.hide(!1)}show(){this.container?.setAttribute(this.$attrSelector,""),this.autoZIndex&&bn.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(),this.visibleChange.emit(!1),this.cd.markForCheck(),e.preventDefault()}enableModality(){let e=this.document.querySelectorAll('[data-p-open="true"]'),r=e.length,n=r==1?String(parseInt(this.container.style.zIndex)-1):String(parseInt(e[r-1].style.zIndex)-1);if(!this.mask){if(this.mask=this.renderer.createElement("div"),this.mask){let o=`z-index: ${n};${this.getMaskStyle()}`;Qv(this.mask,"style",o),Qv(this.mask,"data-p",this.dataP),xs(this.mask,this.cx("mask"))}this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",o=>{this.dismissible&&this.close(o)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&ST()}}getMaskStyle(){return this.maskStyle?Object.entries(this.maskStyle).map(([e,r])=>`${e}: ${r}`).join("; "):""}disableModality(){this.mask&&(!this.$unstyled()&&pm(this.mask,"p-overlay-mask-enter-active"),!this.$unstyled()&&xs(this.mask,"p-overlay-mask-leave-active"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&wT(),this.unbindAnimationEndListener(),this.mask=null}onBeforeEnter(e){this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener()}onAfterLeave(){this.hide(!1),bn.clear(this.container),this.unbindGlobalListeners(),this.modalVisible=!1,this.container=null}appendContainer(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?po(this.document.body,this.container):po(this.$appendTo(),this.container))}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentEscapeListener=this.renderer.listen(e,"keydown",r=>{r.which==27&&parseInt(this.container?.style.zIndex)===bn.get(this.container)&&this.close(r)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}onDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.$appendTo()&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&bn.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}get dataP(){return this.cn({"full-screen":this.position()==="full",[this.position()]:this.position(),open:this.visible,modal:this.modal})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=si(i)))(n||i)}})();static \u0275cmp=K({type:i,selectors:[["p-drawer"]],contentQueries:function(r,n,o){if(r&1&&Qr(o,QH,4)(o,XH,4)(o,JH,4)(o,eW,4)(o,tW,4)(o,Gi,4),r&2){let a;Ce(a=Se())&&(n.headerTemplate=a.first),Ce(a=Se())&&(n.footerTemplate=a.first),Ce(a=Se())&&(n.contentTemplate=a.first),Ce(a=Se())&&(n.closeIconTemplate=a.first),Ce(a=Se())&&(n.headlessTemplate=a.first),Ce(a=Se())&&(n.templates=a)}},viewQuery:function(r,n){if(r&1&&Ui(iW,5)(rW,5),r&2){let o;Ce(o=Se())&&(n.containerViewChild=o.first),Ce(o=Se())&&(n.closeButtonViewChild=o.first)}},inputs:{appendTo:[1,"appendTo"],motionOptions:[1,"motionOptions"],blockScroll:[2,"blockScroll","blockScroll",ot],style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:[2,"autoZIndex","autoZIndex",ot],baseZIndex:[2,"baseZIndex","baseZIndex",wi],modal:[2,"modal","modal",ot],closeButtonProps:"closeButtonProps",dismissible:[2,"dismissible","dismissible",ot],showCloseIcon:[2,"showCloseIcon","showCloseIcon",ot],closeOnEscape:[2,"closeOnEscape","closeOnEscape",ot],transitionOptions:"transitionOptions",visible:"visible",position:[1,"position"],fullScreen:[1,"fullScreen"],header:"header",maskStyle:"maskStyle",closable:[2,"closable","closable",ot]},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},features:[wr([ek,{provide:tk,useExisting:i},{provide:va,useExisting:i}]),ua([ri]),Ke],ngContentSelectors:nW,decls:1,vars:1,consts:[["container",""],["icon",""],["role","complementary","pFocusTrap","",3,"pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions","class","style"],["role","complementary","pFocusTrap","",3,"pMotionOnBeforeEnter","pMotionOnAfterLeave","keydown","pBind","pMotion","pMotionAppear","pMotionEnterActiveClass","pMotionLeaveActiveClass","pMotionOptions"],[4,"ngTemplateOutlet"],[3,"pBind","ngClass"],[3,"pBind","class",4,"ngIf"],[3,"pt","ngClass","buttonProps","ariaLabel","unstyled","onClick","keydown.enter",4,"ngIf"],[4,"ngIf"],[3,"pBind"],[3,"onClick","keydown.enter","pt","ngClass","buttonProps","ariaLabel","unstyled"],["data-p-icon","times",4,"ngIf"],["data-p-icon","times"]],template:function(r,n){r&1&&(Gl(
1295),H(0,_W,4,13,"div",2)),r&2&&W(n.modalVisible?0:-1)},dependencies:[Vt,_t,ge,ci,KT,qT,mo,ri,ZT,$T,Ss,Cs],encapsulation:2,changeDetection:0})}return i})();var xW=()=>[],Ym=(i,t,e)=>["/market/sell",i,t,e];function CW(i,t){i&1&&T(0,"overlay-loader")}function SW(i,t){if(i&1){let e=J();p(0,"span",4)(1,"p"),f(2,"Please configure the market widget"),m(),p(3,"button",6),R("click",function(){L(e);let n=S();return O(n.showConfigScreen=!0)}),T(4,"i",7),f(5," Configure widget"),m()()}}function wW(i,t){if(i&1){let e=J();p(0,"div",5)(1,"div",8),f(2," Select the trade hub where you want to see the Top 10 Market items for. "),m(),p(3,"p-floatlabel",9)(4,"p-select",10),Je("ngModelChange",function(n){L(e);let o=S();return Xe(o.configRegionId,n)||(o.configRegionId=n),O(n)}),m(),p(5,"label",11),f(6,"Trade Hub"),m()(),p(7,"div",12)(8,"button",13),R("click",function(){L(e);let n=S();return O(n.showConfigScreen=!1)}),f(9,"Cancel"),m(),p(10,"button",6),R("click",function(){L(e);let n=S();return O(n.saveConfig())}),f(11,"Save"),m()()()}if(i&2){let e=S();v(4),Qe("ngModel",e.configRegionId),b("options",e.regions)}}function TW(i,t){if(i&1&&(p(0,"h5"),f(1),m(),p(2,"div",14),f(3," Loading market orders... "),m()),i&2){let e=S();v(),V(" Top 10 Market Items ",e.regionName," ")}}function EW(i,t){i&1&&(p(0,"tr"),T(1,"th"),p(2,"th"),f(3,"Item"),m(),p(4,"th"),f(5,"# orders"),m(),p(6,"th"),f(7,"Avg. price"),m()())}function kW(i,t){if(i&1&&(p(0,"tr",19)(1,"td")(2,"div",20)(3,"a",21),T(4,"img",22),m()()(),p(5,"td",23)(6,"div",20)(7,"a",21),f(8),m()()(),p(9,"td",23)(10,"div",20)(11,"a",21),f(12),m()()(),p(13,"td",24)(14,"div",20)(15,"a",21),T(16,"span",25),G(17,"shortPrice"),f(18," ISK "),m()()()()),i&2){let e=t.$implicit;v(3),b("routerLink",Gn(14,Ym,e.regionId,e.stationId,e.typeId)),v(),b("src",Q("https://images.evetech.net/types/",e.typeId,"/icon?size=64"),re)("alt",De(e.name)),v(3),b("routerLink",Gn(18,Ym,e.regionId,e.stationId,e.typeId)),v(),V(" ",e.name," "),v(3),b("routerLink",Gn(22,Ym,e.regionId,e.stationId,e.typeId)),v(),V(" ",e.totalOrders," "),v(3),b("routerLink",Gn(26,Ym,e.regionId,e.stationId,e.typeId)),v(),b("innerHTML",Ne(17,11,e._AveragePrice,""),ke)}}function IW(i,t){if(i&1){let e=J();p(0,"div",15)(1,"h5"),f(2),m(),p(3,"span",16),R("click",function(){L(e);let n=S();return O(n.showConfigScreen=!0)}),T(4,"i",17),m()(),p(5,"p-table",18),M(6,EW,8,0,"ng-template",null,0,de)(8,kW,19,30,"ng-template",null,1,de),m()}if(i&2){let e=S();v(2),V(" Top 10 Market Items ",e.regionName," "),v(3),b("value",e.marketOrders??be(2,xW))}}var Km=class i extends Ei{constructor(e,r){super(r);this.marketBrowserClient=e}regionId;regionName;showConfigScreen=!1;configRegionId;marketOrders;ngOnInit(){this.configRegionId=this.regionId,this.regionId!==void 0&&(this.getRegionName(),this.getMarketTop10())}getMarketTop10(){this.isLoading=!0,this.regionId!==void 0&&this.marketBrowserClient.getTop10(this.regionId).subscribe(e=>{e.success&&(this.marketOrders=e.result,this.isLoading=!1)})}regions=[{label:"Jita IV - Moon 4 - Caldari Navy Assembly Plant",value:60003760},{label:"Amarr VIII (Oris) - Emperor Family Academy",value:60008494},{label:"Dodixie IX - Moon 20 - Federation Navy Assembly Plant",value:60011866},{label:"Rens VI - Moon 8 - Brutor Tribe Treasury",value:60004588},{label:"Hek VIII - Moon 12 - Boundless Creation Factory",value:60005686},{label:"Oursulaert III - Federation Navy Testing Facilities",value:60011740},{label:"Tash-Murkon Prime II - Moon 1 - Kaalakiota Corporation Factory",value:60001096},{label:"Agil VI - Moon 2 - CONCORD Logistic Support",value:60012412}];getRegionName(){if(this.regionId!==void 0){let e=this.regions.filter(r=>r.value===this.regionId);e!==void 0&&(this.regionName=e[0].label)}}saveConfig(){let e={regionId:this.configRegionId};this.frontpageComponent.saveConfigurationById(this.uniqueId,e),this.showConfigScreen=!1,this.regionId=this.configRegionId,this.getRegionName(),this.getMarketTop10()}static \u0275fac=function(r){return new(r||i)(N(Zl),N(ki))};static \u0275cmp=K({type:i,selectors:[["app-market-widget"]],inputs:{regionId:"regionId"},features:[Ke],decls:6,vars:2,consts:[["header",""],["body",""],[1,"card","card-body","shadow-sm","mb-3"],[4,"ngIf"],[1,"d-block","w-100","py-5","text-center","text-muted","ng-star-inserted"],[1,"py-2"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa","fa-solid","fa-cog","me-1"],[1,"alert","alert-info","mb-2"],["variant","in"],["inputId","regionId","styleClass","w-100","optionLabel","label","optionValue","value",3,"ngModelChange","ngModel","options"],["for","regi
1295onId"],[1,"mt-2","text-end","w-100"],[1,"btn","btn-secondary","btn-sm","me-1",3,"click"],[1,"py-5","text-center","text-muted"],[1,"d-flex","justify-content-between"],["ewbTooltip","Change widget configuration",1,"cursor-pointer",3,"click"],[1,"fa","fa-solid","fa-cog"],["stripedRows","",1,"small",3,"value"],[1,"small","cursor-pointer"],[1,"p-1","position-relative"],[1,"stretched-link",3,"routerLink"],[1,"border","rounded-circle","border-1","border-white","img-24",3,"src","alt"],[1,"p-0"],[1,"text-end","p-0"],[3,"innerHTML"]],template:function(r,n){r&1&&(p(0,"div",2),M(1,CW,1,0,"overlay-loader",3),H(2,SW,6,0,"span",4)(3,wW,12,2,"div",5)(4,TW,4,1)(5,IW,10,3),m()),r&2&&(v(),b("ngIf",n.isLoading),v(),W(n.regionId===void 0&&!n.showConfigScreen?2:n.showConfigScreen?3:n.regionId!==void 0&&n.isLoading?4:5))},dependencies:[$t,dr,yt,mt,Kt,ft,ge,xt,Dt,Pe,$e,At],encapsulation:2})};var $m=class i extends Ei{static \u0275fac=(()=>{let t;return function(r){return(t||(t=si(i)))(r||i)}})();static \u0275cmp=K({type:i,selectors:[["tips-widget"]],features:[Ke],decls:18,vars:0,consts:[[1,"card","shadow-sm","mb-3"],[1,"card-body"]],template:function(e,r){e&1&&(Y(0,"div",0)(1,"div",1)(2,"h5"),f(3,"EVE Workbench 2 tips and shortcuts"),B(),Y(4,"h6"),f(5,"Frontpage"),B(),Y(6,"p"),f(7,"You can change what you see on the EVE Workbench 2 frontpage. Click on the "),Y(8,"strong"),f(9,"Edit frontpage"),B(),f(10," in the top right corner to add or remove widgets to your liking!"),B(),Y(11,"h6"),f(12,"Fits"),B(),Y(13,"p"),f(14,"If you copied the EFT from EVE Online or PyFa you can press "),Y(15,"strong"),f(16,"CTRL+V"),B(),f(17," everywhere in EWB to start the import process. (You'll need to allow us to access your clipboard)"),B()()())},encapsulation:2})};var DW=()=>[1,2,3,4,5];function MW(i,t){i&1&&T(0,"overlay-loader")}function PW(i,t){i&1&&(p(0,"h5"),f(1,"Skill Queue"),m(),p(2,"span",3),T(3,"i",4),f(4," Log in with EVE Online to see your skill queue. "),m())}function FW(i,t){if(i&1){let e=J();p(0,"div",2)(1,"div",5),f(2," Choose the character and how many queued skills to show. "),m(),p(3,"p-floatlabel",6)(4,"p-select",7),Je("ngModelChange",function(n){L(e);let o=S();return Xe(o.configCharacterId,n)||(o.configCharacterId=n),O(n)}),m(),p(5,"label",8),f(6,"Character"),m()(),p(7,"p-floatlabel",9)(8,"input",10),Je("ngModelChange",function(n){L(e);let o=S();return Xe(o.configLimit,n)||(o.configLimit=n),O(n)}),m(),p(9,"label",11),f(10),m()(),p(11,"div",12)(12,"button",13),R("click",function(){L(e);let n=S();return O(n.showConfigScreen=!1)}),f(13,"Cancel"),m(),p(14,"button",14),R("click",function(){L(e);let n=S();return O(n.saveConfig())}),f(15,"Save"),m()()()}if(i&2){let e=S();v(4),Qe("ngModel",e.configCharacterId),b("options",e.characterOptions),v(4),b("max",e.MAX_SKILLS_SHOWN),Qe("ngModel",e.configLimit),v(2),V("Skills to show (1\u2013",e.MAX_SKILLS_SHOWN,")")}}function RW(i,t){if(i&1&&(p(0,"small",16),f(1),m()),i&2){let e=S(2);v(),V("\u2014 ",e.characterName)}}function LW(i,t){if(i&1){let e=J();p(0,"div",19)(1,"p",20),f(2,"The skill queue could not be loaded."),m(),p(3,"button",21),R("click",function(){L(e);let n=S(2);return O(n.loadQueue())}),f(4,"Retry"),m()()}}function OW(i,t){i&1&&(p(0,"div",19),f(1," No skills in training. "),m())}function AW(i,t){if(i&1&&T(0,"span",29),i&2){let e=t.$implicit,r=S().$implicit;Rt("trained",r.targetLevel>e)("training",r.targetLevel===e)("untrained",r.targetLevel!==e)}}function BW(i,t){if(i&1&&(p(0,"div",24)(1,"span",25),oe(2,AW,1,6,"span",26,Te),m(),p(4,"div",27),f(5),m(),p(6,"div",28),f(7),m()()),i&2){let e=t.$implicit,r=t.$index;Wn("--category-progress",e.progressPercent+"%"),Rt("selected",r===0),v(2),ae(be(6,DW)),v(3),$(e.name),v(2),$(e.remainingLabel)}}function NW(i,t){if(i&1&&f(0),i&2){let e=S(3);V(" \xB7 finishes ",e.queueEndsAtLabel," ")}}function VW(i,t){if(i&1&&(oe(0,BW,8,7,"div",22,rr),p(2,"div",23),f(3),H(4,NW,1,1),m()),i&2){let e=S(2);ae(e.rows),v(3),kt(" ",e.totalSkillsInQueue," skill",e.totalSkillsInQueue===1?"":"s"," in queue "),v(),W(e.queueEndsAtLabel?4:-1)}}function zW(i,t){if(i&1){let e=J();p(0,"div",15)(1,"h5"),f(2," Skill Queue "),H(3,RW,2,1,"small",16),m(),p(4,"span",17),R("click",function(){L(e);let n=S();return O(n.openConfigScreen())}),T(5,"i",18),m()(),H(6,LW,5,0,"div",19)(7,OW,2,0,"div",19)(8,VW,5,3)}if(i&2){let e=S();v(3),W(e.characterName?3:-1),v(3),W(e.hasError?6:!e.isLoading&&e.rows.length===0?7:8)}}
1295var rk=25,Zm=5,Qm=class i extends Ei{constructor(e,r,n){super(n);this.myAccountClient=e;this.authService=r}characterId;limit=Zm;isAuthenticated=!1;hasError=!1;rows=[];totalSkillsInQueue=0;queueEndsAtLabel=null;characterName;characterOptions=[];showConfigScreen=!1;configCharacterId;configLimit=Zm;tickHandle;static clampLimit(e){if(e==null||e==="")return Zm;let r=Math.floor(Number(e));return Number.isFinite(r)?Math.min(Math.max(r,1),rk):Zm}ngOnInit(){this.limit=i.clampLimit(this.limit),this.configLimit=this.limit,this.configCharacterId=this.characterId,this.isAuthenticated=this.authService.isAuthenticated(),this.isAuthenticated&&(this.loadCharacters(),this.loadQueue(),this.tickHandle=setInterval(()=>this.updateRemainingLabel(),1e3))}ngOnDestroy(){this.tickHandle!==void 0&&clearInterval(this.tickHandle)}loadQueue(){this.isLoading=!0,this.hasError=!1,this.myAccountClient.getSkillQueue(this.characterId??void 0).subscribe({next:e=>{if(!e.success){this.failed();return}this.mapQueue(e.result?.skills??[]),this.isLoading=!1},error:()=>this.failed()})}saveConfig(){let e=i.clampLimit(this.configLimit),r={characterId:this.configCharacterId??void 0,limit:e};this.frontpageComponent.saveConfigurationById(this.uniqueId,r),this.characterId=this.configCharacterId,this.limit=e,this.configLimit=e,this.showConfigScreen=!1,this.loadCharacters(),this.loadQueue()}openConfigScreen(){this.configCharacterId=this.characterId,this.configLimit=i.clampLimit(this.limit),this.showConfigScreen=!0}loadCharacters(){return Et(this,null,function*(){try{let e=yield this.authService.getUserInformation();this.characterOptions=(e?.allCharacters??[]).map(r=>({label:r.characterName,value:r.characterId})),this.characterName=this.characterOptions.find(r=>r.value===this.characterId)?.label??e?.selectedCharacter?.characterName}catch(e){this.characterOptions=[]}})}mapQueue(e){let r=_n.now(),n=[...e].sort((o,a)=>Number(o.queuePosition)-Number(a.queuePosition));this.totalSkillsInQueue=n.length,this.queueEndsAtLabel=n.length>0?r.plus({seconds:Math.max(...n.map(o=>Number(o.timeToFinishInSeconds)||0))}).toFormat("dd LLL yyyy"):null,this.rows=n.slice(0,i.clampLimit(this.limit)).map(o=>{let a=r.plus({seconds:Number(o.timeToFinishInSeconds)||0}),s=Number(o.targetLevel);return{name:`${o.name} ${YT.numberToRoman(s)??s}`,targetLevel:s,progressPercent:Math.min(Math.max(Number(o.progressPercent)||0,0),100),finishesAt:a,remainingLabel:i.remainingLabel(a)}})}updateRemainingLabel(){let e=this.rows[0];e!==void 0&&(e.remainingLabel=i.remainingLabel(e.finishesAt))}static remainingLabel(e){return iE.formatRelativeTime(Math.round(e.diffNow("seconds").seconds))}failed(){this.isAuthenticated=this.authService.isAuthenticated(),this.hasError=!0,this.isLoading=!1,this.rows=[],this.totalSkillsInQueue=0,this.queueEndsAtLabel=null}MAX_SKILLS_SHOWN=rk;static \u0275fac=function(r){return new(r||i)(N(Ww),N(mi),N(ki))};static \u0275cmp=K({type:i,selectors:[["app-skill-queue-widget"]],inputs:{characterId:"characterId",limit:"limit"},features:[Ke],decls:5,vars:2,consts:[[1,"card","card-body","shadow-sm","mb-3","skill-queue-widget"],[4,"ngIf"],[1,"py-2"],[1,"d-block","w-100","py-4","text-center","text-muted"],[1,"fa","fa-solid","fa-right-to-bracket","me-1"],[1,"alert","alert-info","mb-2"],["variant","in",1,"d-block","mb-2"],["inputId","characterId","styleClass","w-100","optionLabel","label","optionValue","value",3,"ngModelChange","ngModel","options"],["for","characterId"],["variant","in",1,"d-block"],["id","skillCount","pInputText","","type","number","min","1",1,"w-100",3,"ngModelChange","max","ngModel"],["for","skillCount"],[1,"d-flex","justify-content-end","w-100","mt-2"],[1,"btn","btn-secondary","btn-sm","me-1",3,"click"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"d-flex","justify-content-between"],[1,"text-muted"],["ewbTooltip","Change widget configuration",1,"cursor-pointer",3,"click"],[1,"fa","fa-solid","fa-cog"],[1,"py-4","text-center","text-muted"],[1,"mb-2"],[1,"btn","btn-secondary","btn-sm",3,"click"],[1,"d-flex","justify-content-start","align-items-center","queue-row","skill-category",3,"--category-progress","selected"],[1,"text-muted","small","mt-2","pt-2","border-top"],[1,"d-flex","justify-content-start","align-items-center","queue-row","skill-category"],[1,"skill-level-selector-container","ms-1","me-2"],[1,"level-selector",3,"trained","training","untrained"],[1,"text-truncate"],[1,"ms-auto","me-1","text-nowrap"],[1,"level-selector"]],template:function(r,n){r&1&&(p(0,"div",0),M(1,MW,1,0,"overlay-loader",1),H(2,PW,5,0)(3,FW,16,5,"div",2)(4,zW,9,2),m()),r&2&&(v(),b("ngIf",n.isLoading),v(),W(n.isAuthenticated?n.showConfigScreen?3:4:2))},dependencies:[ge,yt,Ot,gm,mt,bm,_m,Kt,$t,ni,dr,ft,Pe],encapsulation:2})};var UW=i=>["/u",i];function HW(i,t){if(i&1&&(p(0,"div",0)(1,"div",1)(2,"h5"),f(3),m(),T(4,"iframe",2),p(5,"div",3)(6,"a",4),f(7),m()()()()),i&2){let e=S();v(3),kt("",e.widgetData!=null&&e.widgetData.isPromoted?"Promoted":"Featured"," streamer: ",e.widgetData==null?null:e.widgetData.twitchUsername),v(),b("src",e.getTwitchEmbedUrl(),Ad),v(2),b("routerLink",te(5,UW,e.widgetData==null?null:e.widgetData.characterSlug)),v(),V("View profile of ",e.widgetData==null?null:e.widgetData.characterName)}}
1295var Xm=class i extends Ei{constructor(e,r,n,o){super(o);this.twitchClient=e;this.sanitizer=r;this.cdr=n}hideMargin;showTwitchWidget=!1;widgetData;ngOnInit(){this.twitchClient.getActiveStreamer().subscribe(e=>{e.success&&(this.widgetData=e.result,this.showTwitchWidget=!0,this.cdr.markForCheck())})}getTwitchEmbedUrl(){let e="https://player.twitch.tv/?channel=TWITCHUSERNAME&parent=eveworkbench.com&parent=www.eveworkbench.com&parent=staging.eveworkbench.com&parent=preview.eveworkbench.com&parent=localhost&autoplay=false";return this.widgetData!==void 0&&(e=e.replace("TWITCHUSERNAME",this.widgetData?.twitchUsername??"")),this.sanitizer.bypassSecurityTrustResourceUrl(e)}static \u0275fac=function(r){return new(r||i)(N(Nw),N($l),N(No),N(ki))};static \u0275cmp=K({type:i,selectors:[["app-twitch-widget"]],inputs:{hideMargin:"hideMargin"},features:[Ke],decls:1,vars:1,consts:[[1,"card","mb-3"],[1,"card-body"],["height","465","width","100%","frameborder","0","scrolling","no","allowfullscreen","true",3,"src"],[1,"mt-3","text-end"],[1,"btn","btn-primary","btn-sm",3,"routerLink"]],template:function(r,n){r&1&&H(0,HW,8,7,"div",0),r&2&&W(n.showTwitchWidget?0:-1)},dependencies:[$e],encapsulation:2,changeDetection:0})};var cy=(i,t)=>[i,t],Jm=()=>[],ok=i=>({tags:i}),Ts=i=>["/fit",i],dy=i=>
1295({draggable:i});function WW(i,t){if(i&1&&T(0,"span",28),i&2){let e=S(3);b("innerHtml",e.activeGameEvent==null?null:e.activeGameEvent.announcementText,ke)}}function GW(i,t){if(i&1&&T(0,"p-chip",25),i&2){let e=t.$implicit;b("label",e)}}function qW(i,t){if(i&1&&(p(0,"div",19)(1,"div",20)(2,"div",21)(3,"div",22)(4,"h5"),f(5),m(),M(6,WW,1,1,"span",23),p(7,"div",24),f(8," Get your fits for this event ready and upload them using one of the following tags: "),m(),oe(9,GW,1,1,"p-chip",25,Te),p(11,"div",26),f(12," Event starts in: "),T(13,"div",27),m()()()()()),i&2){let e=S(2);v(5),V("Get ready for ",e.activeGameEvent==null?null:e.activeGameEvent.name),v(),b("ngIf",e.activeGameEvent==null?null:e.activeGameEvent.announcementText),v(3),ae((e.activeGameEvent==null?null:e.activeGameEvent.allowedTags)??be(3,Jm)),v(4),b("innerHtml",e.timeLeft,ke)}}function jW(i,t){i&1&&(p(0,"tr"),T(1,"th",36),p(2,"th"),f(3,"Name"),m(),p(4,"th",37),f(5,"Est. price"),m()())}function YW(i,t){if(i&1&&(p(0,"tr",38)(1,"td",39)(2,"div",40)(3,"a",41),T(4,"img",42),m()()(),p(5,"td",39)(6,"div",40)(7,"a",41),f(8),T(9,"br"),p(10,"span",43),f(11),m()()()(),p(12,"td",44)(13,"div",40)(14,"a",41),T(15,"span",45),G(16,"shortPrice"),p(17,"span",46),f(18," ISK"),m()()()()()),i&2){let e=t.$implicit;v(3),b("routerLink",te(14,Ts,e.id)),v(),b("src",Q("https://images.evetech.net/types/",e.shipId,"/icon?size=64"),re)("alt",De(e.shipName)),v(3),b("routerLink",te(16,Ts,e.id)),v(),V(" ",e.name),v(3),kt("",e.shipClass," \u2022 ",e.shipName),v(3),b("routerLink",te(18,Ts,e.id)),v(),b("innerHTML",Ne(16,11,e.totalCost,""),ke)}}function KW(i,t){i&1&&(p(0,"tr")(1,"td",47),f(2," No event fits uploaded yet! "),m()())}function $W(i,t){i&1&&(p(0,"tr"),T(1,"th",36),p(2,"th"),f(3,"Name"),m(),p(4,"th"),f(5,"Rating "),p(6,"span",48),T(7,"i",49),m()(),p(8,"th",37),f(9,"Est. price"),m()())}function ZW(i,t){if(i&1&&(p(0,"tr",38)(1,"td",39)(2,"div",40)(3,"a",41),T(4,"img",42),m()()(),p(5,"td",39)(6,"div",40)(7,"a",41),f(8),T(9,"br"),p(10,"span",43),f(11),m()()()(),p(12,"td",39)(13,"div",40)(14,"a",41),f(15),m()()(),p(16,"td",44)(17,"div",40)(18,"a",41),T(19,"span",45),G(20,"shortPrice"),p(21,"span",46),f(22," ISK"),m()()()()()),i&2){let e=t.$implicit;v(3),b("routerLink",te(16,Ts,e.id)),v(),b("src",Q("https://images.evetech.net/types/",e.shipId,"/icon?size=64"),re)("alt",De(e.shipName)),v(3),b("routerLink",te(18,Ts,e.id)),v(),V(" ",e.name),v(3),kt("",e.shipClass," \u2022 ",e.shipName),v(3),b("routerLink",te(20,Ts,e.id)),v(),V(" ",e.rating," "),v(3),b("routerLink",te(22,Ts,e.id)),v(),b("innerHTML",Ne(20,13,e.totalCost,""),ke)}}function QW(i,t){i&1&&(p(0,"tr")(1,"td",50),f(2," No event fits uploaded yet! "),m()())}function XW(i,t){if(i&1&&(p(0,"a",32),T(1,"p-chip",25),m()),i&2){let e=t.$implicit;b("queryParams",te(2,ok,e)),v(),b("label",e)}}function JW(i,t){if(i&1&&(p(0,"div",6)(1,"div")(2,"div",21)(3,"div",22)(4,"h5"),f(5),m(),p(6,"p-table",29),M(7,jW,6,0,"ng-template",null,3,de)(9,YW,19,20,"ng-template",null,4,de)(11,KW,3,0,"ng-template",null,5,de),m()()()(),p(13,"div")(14,"div",21)(15,"div",22)(16,"h5"),f(17),m(),p(18,"p-table",29),M(19,$W,10,0,"ng-template",null,3,de)(21,ZW,23,24,"ng-template",null,4,de)(23,QW,3,0,"ng-template",null,5,de),m()()()(),p(25,"div")(26,"div",21)(27,"div",22)(28,"h5"),f(29),m(),T(30,"div",30),p(31,"p",31),f(32,"Want your fit visible in the "),p(33,"strong"),f(34,"Latest"),m(),f(35," or "),p(36,"strong"),f(37,"Most Popular"),m(),f(38," section for this event? Make sure to upload your fit using one of the following tags: "),m(),oe(39,XW,2,4,"a",32,Te),p(41,"div",33)(42,"a",34),f(43),m()(),p(44,"div",35),f(45," Event ends in: "),T(46,"div",27),m()()()()()),i&2){let e=S(2);v(),_e(e.columnsClass),v(4),V("Latest ",e.activeGameEvent==null?null:e.activeGameEvent.name," fits"),v(),b("value",e.eventLatestFits??be(15,Jm)),v(7),_e(e.columnsClass),v(4),V("Most Popular ",e.activeGameEvent==null?null:e.activeGameEvent.name," fits"),v(),b("value",e.eventPopularFits??be(16,Jm)),v(7),_e(e.columnsClass),v(4),$(e.activeGameEvent==null?null:e.activeGameEvent.name),v(),b("innerHtml",e.activeGameEvent==null?null:e.activeGameEvent.description,ke),v(9),ae((e.activeGameEvent==null?null:e.activeGameEvent.allowedTags)??be(17,Jm)),v(3),b("queryParams",te(18,ok,e.activeGameEvent==null||e.activeGameEvent.allowedTags==null?null:e.activeGameEvent.allowedTags.join(","))),v(),V("Browse ",e.activeGameEvent==null?null:e.activeGameEvent.name," fits"),v(3),b("innerHtml",e.timeLeft,ke)}}function eG(i,t){if(i&1&&H(0,qW,14,4,"div",19)(1,JW,47,20,"div",6),i&2){let e=S();W(e.dateNow>((e.activeGameEvent==null?null:e.activeGameEvent.showAnnouncementDate)??e.DateTime.now())&&e.dateNow<((e.activeGameEvent==null?null:e.activeGameEvent.eventStartDate)??e.DateTime.now())?0:e.dateNow>((e.activeGameEvent==null?null:e.activeGameEvent.eventStartDate)??e.DateTime.now())?1:-1)}}function tG(i,t){if(i&1){let e=J();p(0,"div",6)(1,"div",9)(2,"div",51)(3,"div",22)(4,"button",52),R("click",function(){L(e);let n=S();return O(n.resetToDefaults(!0))}),f(5,"Reset to defaults"),m()()()()()}}function iG(i,t){if(i&1){let e=J();p(0,"div",55)(1,"div",56)(2,"span",57),R("click",function(){L(e);let n=S().$index,o=S();return O(o.deleteWidget(n,"column1"))}),T(3,"i",58),m()(),p(4,"div",59),f(5," Drag me around "),m()()}}function rG(i,t){if(i&1&&(p(0,"div",60)(1,"div",22),f(2),m()()),i&2){let e=S().$implicit;v(2),V(" ",e.title," ")}}function nG(i,t){i&1&&vt(0)}function oG(i,t){if(i&1&&M(0,nG,1,0,"ng-container",61),i&2){let e=S().$implicit,r=S();b("ngComponentOutlet",e.component)("ngComponentOutletInputs",r.getWidgetSettings(e))}}function aG(i,t){if(i&1&&(p(0,"div",14),M(1,iG,6,0,"div",53)(2,rG,3,1,"div",54),H(3,oG,1,2,"ng-container"),m()),i&2){let e=S();b("ngClass",te(4,dy,e.enabledWidgetDragDrop)),v(),b("ngIf",e.enabledWidgetDragDrop),v(),b("ngIf",e.enabledWidgetDragDrop),v(),W(e.enabledWidgetDragDrop?-1:3)}}function sG(i,t){if(i&1){let e=J();p(0,"div")(1,"div",62),R("click",function(){L(e);let n=S();
1295return O(n.showWidgetsPanel("column1"))}),f(2," Add widget "),m()()}}function lG(i,t){if(i&1){let e=J();p(0,"div",55)(1,"div",56)(2,"span",57),R("click",function(){L(e);let n=S().$index,o=S();return O(o.deleteWidget(n,"column2"))}),T(3,"i",58),m()(),p(4,"div",59),f(5," Drag me around "),m()()}}function cG(i,t){if(i&1&&(p(0,"div",60)(1,"div",22),f(2),m()()),i&2){let e=S().$implicit;v(2),V(" ",e.title," ")}}function dG(i,t){i&1&&vt(0)}function pG(i,t){if(i&1&&M(0,dG,1,0,"ng-container",61),i&2){let e=S().$implicit,r=S();b("ngComponentOutlet",e.component)("ngComponentOutletInputs",r.getWidgetSettings(e))}}function uG(i,t){if(i&1&&(p(0,"div",14),M(1,lG,6,0,"div",53)(2,cG,3,1,"div",54),H(3,pG,1,2,"ng-container"),m()),i&2){let e=S();b("ngClass",te(4,dy,e.enabledWidgetDragDrop)),v(),b("ngIf",e.enabledWidgetDragDrop),v(),b("ngIf",e.enabledWidgetDragDrop),v(),W(e.enabledWidgetDragDrop?-1:3)}}function mG(i,t){if(i&1){let e=J();p(0,"div")(1,"div",62),R("click",function(){L(e);let n=S();return O(n.showWidgetsPanel("column2"))}),f(2," Add widget "),m()()}}function fG(i,t){if(i&1){let e=J();p(0,"div",55)(1,"div",56)(2,"span",57),R("click",function(){L(e);let n=S().$index,o=S();return O(o.deleteWidget(n,"column3"))}),T(3,"i",58),m()(),p(4,"div",59),f(5," Drag me around "),m()()}}function hG(i,t){if(i&1&&(p(0,"div",60)(1,"div",22),f(2),m()()),i&2){let e=S().$implicit;v(2),V(" ",e.title," ")}}function gG(i,t){i&1&&vt(0)}function vG(i,t){if(i&1&&M(0,gG,1,0,"ng-container",61),i&2){let e=S().$implicit,r=S();b("ngComponentOutlet",e.component)("ngComponentOutletInputs",r.getWidgetSettings(e))}}function _G(i,t){if(i&1&&(p(0,"div",14),M(1,fG,6,0,"div",53)(2,hG,3,1,"div",54),H(3,vG,1,2,"ng-container"),m()),i&2){let e=S();b("ngClass",te(4,dy,e.enabledWidgetDragDrop)),v(),b("ngIf",e.enabledWidgetDragDrop),v(),b("ngIf",e.enabledWidgetDragDrop),v(),W(e.enabledWidgetDragDrop?-1:3)}}function bG(i,t){if(i&1){let e=J();p(0,"div")(1,"div",62),R("click",function(){L(e);let n=S();return O(n.showWidgetsPanel("column3"))}),f(2," Add widget "),m()()}}function yG(i,t){if(i&1){let e=J();p(0,"div",18)(1,"div",64),R("click",function(){L(e);let n=S().$implicit,o=S();return O(o.addWidget(n,o.addLocation))}),f(2),m()()}if(i&2){let e=S().$implicit;v(2),V(" ",e.title," ")}}function xG(i,t){if(i&1&&M(0,yG,3,1,"div",63),i&2){let e=t.$implicit,r=S();b("ngIf",e.onlyOnce&&!r.isWidgetUsed(e.id)||!e.onlyOnce)}}var ki=class i{constructor(t,e,r){this.gameEventClient=t;this.fitClient=e;this.router=r}widgets={column1Widgets:[],column2Widgets:[],column3Widgets:[]};availableWidgets=[];columnsClass="col-12 col-md-12 col-lg-6 col-xl-4";enabledWidgetDragDrop=!1;widgetsPanelVisible=!1;ngOnInit(){this.availableWidgets=this.getAvailableWidgets();let t=localStorage.getItem("ewb-fp-widgets"),e=JSON.parse(t);if(e===null)this.resetToDefaults();else{for(let r of e.column1Widgets){let n=this.availableWidgets.filter(o=>o.id===r.id);if(n.length===1){let o=lt({},n[0]);o.uniqueId=r.uniqueId,o.configuration=r.configuration,this.addWidget(o,"column1",!1)}}for(let r of e.column2Widgets){let n=this.availableWidgets.filter(o=>o.id===r.id);if(n.length===1){let o=lt({},n[0]);o.uniqueId=r.uniqueId,o.configuration=r.configuration,this.addWidget(o,"column2",!1)}}for(let r of e.column3Widgets){let n=this.availableWidgets.filter(o=>o.id===r.id);if(n.length===1){let o=lt({},n[0]);o.uniqueId=r.uniqueId,o.configuration=r.configuration,this.addWidget(o,"column3",!1)}}}this.checkActiveGameEvents()}dateNow=_n.now();targetDate=_n.now();activeGameEvent;eventLatestFits=[];eventPopularFits=[];checkActiveGameEvents(){this.gameEventClient.getActiveEvent().subscribe(t=>{t.success&&t.result!=null&&(this.activeGameEvent=t.result,this.dateNow>(this.activeGameEvent?.showAnnouncementDate??_n.now())&&this.dateNow<(this.activeGameEvent?.eventStartDate??_n.now())?this.targetDate=t.result.eventStartDate??_n.now():(this.fitClient.getFitsByTag((this.activeGameEvent.allowedTags??[]).join(","),!1).subscribe(e=>{this.eventLatestFits=e.result}),this.fitClient.getFitsByTag((this.activeGameEvent.allowedTags??[]).join(","),!0).subscribe(e=>{this.eventPopularFits=e.result}),this.targetDate=t.result.eventEndDate??_n.now()),this.updateCountdown())})}timeLeft="Initializing Countdown...";interval;updateCountdown(){let t=this.targetDate??_n.now();this.interval=setInterval(()=>{let e=_n.now(),r=t.diff(e);r.isValid||clearInterval(this.interval),this.timeLeft=r.toFormat("d 'Days' h 'Hours' m 'Minutes' ss 'Seconds'")},1*1e3)}resetToDefaults(t=!1){let e=this.getAvailableWidgets().filter(g=>g.id==="latest-fits-omega")[0],r=this.getAvailableWidgets().filter(g=>g.id==="latest-fits-alpha")[0],n=this.getAvailableWidgets().filter(g=>g.id==="latest-abyss-runs")[0],o=this.getAvailableWidgets().filter(g=>g.id==="quick-appraisal")[0],a=this.getAvailableWidgets().filter(g=>g.id==="tips")[0],s=this.getAvailableWidgets().filter(g=>g.id==="twitch")[0],l=this.getAvailableWidgets().filter(g=>g.id==="latest-fleets")[0],c=this.getAvailableWidgets().filter(g=>g.id==="market")[0],d=lt({},c),u=lt({},c),h=lt({},c);e.uniqueId=crypto.randomUUID(),r.uniqueId=crypto.randomUUID(),n.uniqueId=crypto.randomUUID(),a.uniqueId=crypto.randomUUID(),d.uniqueId=crypto.randomUUID(),d.configuration={regionId:60003760},u.uniqueId=crypto.randomUUID(),u.configuration={regionId:60008494},h.uniqueId=crypto.randomUUID(),h.configuration={regionId:60011866},this.widgets.column1Widgets=[e,d,n],this.widgets.column2Widgets=[r,u,l],this.widgets.column3Widgets=[s,a,o,h
1295],t&&this.storeWidgets()}drop(t){t.previousContainer===t.container?zm(t.container.data,t.previousIndex,t.currentIndex):qE(t.previousContainer.data,t.container.data,t.previousIndex,t.currentIndex),this.storeWidgets()}storeWidgets(){let t={column1Widgets:[],column2Widgets:[],column3Widgets:[]};for(let e of this.widgets.column1Widgets)t.column1Widgets.push({id:e.id,uniqueId:e.uniqueId??crypto.randomUUID(),configuration:e.configuration});for(let e of this.widgets.column2Widgets)t.column2Widgets.push({id:e.id,uniqueId:e.uniqueId??crypto.randomUUID(),configuration:e.configuration});for(let e of this.widgets.column3Widgets)t.column3Widgets.push({id:e.id,uniqueId:e.uniqueId??crypto.randomUUID(),configuration:e.configuration});localStorage.setItem("ewb-fp-widgets",JSON.stringify(t))}addLocation;showWidgetsPanel(t){this.addLocation=t,this.widgetsPanelVisible=!0}addWidget(t,e,r=!0){let n=pi(lt({},t),{uniqueId:t.uniqueId??crypto.randomUUID(),configuration:structuredClone(t.configuration??{})});e==="column1"?this.widgets.column1Widgets.push(n):e==="column2"?this.widgets.column2Widgets.push(n):e==="column3"&&this.widgets.column3Widgets.push(n),r&&this.storeWidgets()}deleteWidget(t,e){e==="column1"?this.widgets.column1Widgets.splice(t,1):e==="column2"?this.widgets.column2Widgets.splice(t,1):e==="column3"&&this.widgets.column3Widgets.splice(t,1),this.storeWidgets()}isWidgetUsed(t){return this.widgets.column1Widgets.findIndex(e=>e.id===t)>-1||this.widgets.column2Widgets.findIndex(e=>e.id===t)>-1||this.widgets.column3Widgets.findIndex(e=>e.id===t)>-1}getAvailableWidgets(){let t=[];return t.push({id:"latest-fits-omega",uniqueId:void 0,component:Jd,configuration:{title:"Omega",cloneState:1},title:"Latest Omega Fits",onlyOnce:!0,hasSettings:!1}),t.push({id:"latest-fits-alpha",uniqueId:void 0,component:Jd,configuration:{title:"Alpha",cloneState:0},title:"Latest Alpha Fits",onlyOnce:!0,hasSettings:!1}),t.push({id:"twitch",uniqueId:void 0,component:Xm,configuration:{hideMargin:!0},title:"Twitch",onlyOnce:!0,hasSettings:!1}),t.push({id:"latest-abyss-runs",uniqueId:void 0,component:Hm,configuration:{},title:"Latest Abyss Tracker Runs",onlyOnce:!0,hasSettings:!1}),t.push({id:"latest-kills",uniqueId:void 0,component:Wm,configuration:{},title:"Killmail feed",onlyOnce:!0,hasSettings:!1}),t.push({id:"latest-fleets",uniqueId:void 0,component:qm,configuration:{},title:"Latest fleets",onlyOnce:!0,hasSettings:!1}),t.push({id:"quick-appraisal",uniqueId:void 0,component:jm,configuration:{},title:"Quick appraisal widget",onlyOnce:!0,hasSettings:!1}),t.push({id:"market",uniqueId:void 0,component:Km,title:"Top 10 Market Widget",configuration:{regionId:void 0},onlyOnce:!1,hasSettings:!1}),t.push({id:"tips",uniqueId:void 0,component:$m,title:"EVE Workbench 2 tips and shortcuts",onlyOnce:!0,hasSettings:!1}),t.push({id:"skill-queue",uniqueId:void 0,component:Qm,title:"Skill Queue",configuration:{characterId:void 0,limit:5},onlyOnce:!1,hasSettings:!0}),t}getWidgetSettings(t){return t.configuration===void 0&&(t.configuration={}),t.configuration.uniqueId=t.uniqueId,t.configuration}saveConfigurationById(t,e){let r;r=[...this.widgets.column1Widgets.filter(n=>n.uniqueId===t),...this.widgets.column2Widgets.filter(n=>n.uniqueId===t),...this.widgets.column3Widgets.filter(n=>n.uniqueId===t)],r.length>0&&(r[0].configuration=e,this.storeWidgets())}DateTime=_n;open=open;static \u0275fac=function(e){return new(e||i)(N(Hw),N(it),N(bt))};static \u0275cmp=K({type:i,selectors:[["app-frontpage"]],decls:37,vars:31,consts:[["column1WidgetList","cdkDropList"],["column2WidgetList","cdkDropList"],["column3WidgetList","cdkDropList"],["header",""],["body",""],["emptymessage",""],[1,"row","mb-3"],[1,"col","text-end"],[3,"ngModelChange","ngModel"],[1,"col"],[1,"alert","alert-info"],["class","row mb-3",4,"ngIf"],[1,"row"],["cdkDropList","",3,"cdkDropListDropped","cdkDropListDisabled","cdkDropListData","cdkDropListConnectedTo"],["cdkDrag","",1,"widget-block",3,"ngClass"],[4,"ngIf"],["header","Available widgets","position","right",3,"visibleChange","visible"],[1,"row","row-cols-1"],[1,"col","mb-2"],[1,"row","justify-content-center","mb-3"],[1,"col-8"],[1,"card","bg-opacity-25","bg-primary"],[1,"card-body"],[3,"innerHtml",4,"ngIf"],[1,"mt-1"],[1,"me-1",3,"label"],[1,"text-center"],[1,"text-center","countdown-text",3,"innerHtml"],[3,"innerHtml"],["stripedRows","","rowHover","",1,"small",3,"value"],[1,"mt-2","mb-2",3,"innerHtml"],[1,"mt-2"],["routerLink","/fits",3,"queryParams"],[1,"mt-3","mb-3","text-center"],["routerLink","/fits",1,"btn","btn-secondary",3,"queryParams"],[1,"text-center","mt-3"],[2,"width","32px"],[1,"text-end"],["pSelectableRow",""],[1,"p-0"],[1,"p-3","position-relative"],[1,"stretched-link",3,"routerLink"],[1,"border","rounded-circle","border-2","border-white",3,"src","alt"],[1,"text-muted","small"],[1,"text-end","p-0"],[3,"innerHTML"],[1,"small"],["colspan","3",1,"text-muted","text-center","p-5"],["ewbTooltip","Rating is based on the amount of up and down votes given by other EVE Workbench users."],[1,"fa","fa-info-circle"],["colspan","4",1,"text-muted","text-center","p-5"],[1,"card"],[1,"btn","btn-sm","btn-primary","d-inline-block",3,"click"],["class","widget-overlay",4,"ngIf"],["class","card mb-3",4,"ngIf"],[1,"widget-overlay"],[1,"actions","text-end","mt-3","me-3"],[1,"curs
1295or-pointer",3,"click"],[1,"fa-regular","fa-trash-can"],[1,"absolute-div"],[1,"card","mb-3"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[1,"card","card-body","text-center",3,"click"],["class","col mb-2",4,"ngIf"],[1,"card","card-body",3,"click"]],template:function(e,r){if(e&1){let n=J();p(0,"div",6)(1,"div",7),f(2," Edit frontpage "),p(3,"p-toggleswitch",8),Je("ngModelChange",function(a){return L(n),Xe(r.enabledWidgetDragDrop,a)||(r.enabledWidgetDragDrop=a),O(a)}),m()()(),p(4,"div",6)(5,"div",9)(6,"div",10),f(7," You can now change the frontpage to add and remove widgets "),p(8,"strong"),f(9,"you"),m(),f(10," like to use. Click on the switch "),p(11,"strong")(12,"em"),f(13,"Edit frontpage"),m()(),f(14," to modify. "),m()()(),H(15,eG,2,1),M(16,tG,6,0,"div",11),p(17,"div",12)(18,"div",13,0),R("cdkDropListDropped",function(a){return r.drop(a)}),oe(20,aG,4,6,"div",14,Te),M(22,sG,3,0,"div",15),m(),p(23,"div",13,1),R("cdkDropListDropped",function(a){return r.drop(a)}),oe(25,uG,4,6,"div",14,Te),M(27,mG,3,0,"div",15),m(),p(28,"div",13,2),R("cdkDropListDropped",function(a){return r.drop(a)}),oe(30,_G,4,6,"div",14,Te),M(32,bG,3,0,"div",15),m()(),p(33,"p-drawer",16),Je("visibleChange",function(a){return L(n),Xe(r.widgetsPanelVisible,a)||(r.widgetsPanelVisible=a),O(a)}),p(34,"div",17),oe(35,xG,1,1,"div",18,Te),m()()}if(e&2){let n=Ve(19),o=Ve(24),a=Ve(29);v(3),Qe("ngModel",r.enabledWidgetDragDrop),v(12),W(r.activeGameEvent!==void 0?15:-1),v(),b("ngIf",r.enabledWidgetDragDrop),v(2),_e(r.columnsClass),b("cdkDropListDisabled",!r.enabledWidgetDragDrop)("cdkDropListData",r.widgets.column1Widgets)("cdkDropListConnectedTo",It(22,cy,o,a)),v(2),ae(r.widgets.column1Widgets),v(2),b("ngIf",r.enabledWidgetDragDrop),v(),_e(r.columnsClass),b("cdkDropListDisabled",!r.enabledWidgetDragDrop)("cdkDropListData",r.widgets.column2Widgets)("cdkDropListConnectedTo",It(25,cy,n,a)),v(2),ae(r.widgets.column2Widgets),v(2),b("ngIf",r.enabledWidgetDragDrop),v(),_e(r.columnsClass),b("cdkDropListDisabled",!r.enabledWidgetDragDrop)("cdkDropListData",r.widgets.column3Widgets)("cdkDropListConnectedTo",It(28,cy,n,o)),v(2),ae(r.widgets.column3Widgets),v(2),b("ngIf",r.enabledWidgetDragDrop),v(),Qe("visible",r.widgetsPanelVisible),v(2),ae(r.availableWidgets)}},dependencies:[Vt,_t,Tw,ge,yt,mt,Kt,XE,QE,tc,ik,rE,xt,Dt,wm,Pe,$e,At],styles:[".draggable[_ngcontent-%COMP%]{cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.widget-block[_ngcontent-%COMP%]{position:relative}.widget-block[_ngcontent-%COMP%] > .widget-overlay[_ngcontent-%COMP%]{top:0;position:absolute;z-index:10;background-color:#000c;width:100%;height:100%;border-radius:var(--bs-border-radius);text-align:center}.widget-block[_ngcontent-%COMP%] > .widget-overlay[_ngcontent-%COMP%]   .absolute-div[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;justify-content:center;align-items:center}.countdown-text[_ngcontent-%COMP%]{font-size:20px}"]})};var ak=Ri(pr());function CG(i,t){i&1&&(T(0,"p-progress-spinner",5),p(1,"h5",6),f(2,"Signing you in..."),m())}function SG(i,t){i&1&&(p(0,"h5",7),f(1,"Something went wrong"),m(),p(2,"p",8),f(3,"We couldn't sign you in. Please try again."),m(),p(4,"a",9),f(5,"Back to home"),m())}var ef=class i{constructor(t,e,r,n,o){this.parent=t;this.route=e;this.router=r;this.authClient=n;this.authService=o}state="loading";ngOnInit(){let t=this.route.snapshot.queryParamMap.get("code");t!=null?this.authClient.validateOauth(t).subscribe({next:e=>{if(e.success&&e.result!=null){let r=e.result;localStorage.setItem("access_token",r.access_token),localStorage.setItem("access_token_expires_in",r.expires_in.toString()),localStorage.setItem("refresh_token",r.refresh_token),this.authService.invalidateCache(),this.parent.authenticationStateChanged.emit(!0),this.authService.getUserInformation().then(n=>{ak.default.fire({toast:!0,title:`Welcome ${n?.selectedCharacter?.characterName??"back"}`,icon:"success",showConfirmButton:!1,timer:1500,timerProgressBar:!0})}).catch(()=>{}),this.router.navigate(["/"])}else this.state="error"},error:()=>{this.state="error"}}):this.router.navigate(["/"])}static \u0275fac=function(e){return new(e||i)(N(Em),N(Xt),N(bt),N(jw),N(mi))};
1295static \u0275cmp=K({type:i,selectors:[["app-validate"]],decls:7,vars:1,consts:[[1,"container"],[1,"row","justify-content-center","mt-5"],[1,"col-12","col-md-6","col-lg-4"],[1,"card","validate-card"],[1,"card-body","text-center","py-5"],["ariaLabel","loading","styleClass","validate-spinner"],[1,"mb-0","mt-3"],[1,"mb-2"],[1,"text-muted"],["routerLink","/",1,"btn","btn-primary","mt-2"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),H(5,CG,3,0)(6,SG,6,0),m()()()()()),e&2&&(v(5),W(r.state==="loading"?5:r.state==="error"?6:-1))},dependencies:[$e,JT],styles:[".validate-card[_ngcontent-%COMP%]{box-shadow:0 .25rem .75rem #00000026}.validate-spinner[_ngcontent-%COMP%]{width:50px;height:50px}"]})};var sk=(i,t)=>{let e=ie(mi),r=ie(bt);return e.isAuthenticated()?!0:(console.log("canActivate, not authenticated"),r.navigate(["/"]),!1)};var tf=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["app-authenticated"]],decls:1,vars:0,template:function(e,r){e&1&&T(0,"router-outlet")},dependencies:[LT],encapsulation:2})};var rf=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["appraisal-how-to-use"]],decls:7,vars:0,template:function(e,r){e&1&&(Y(0,"p"),f(1,"Copy and paste from "),Y(2,"strong"),f(3,"EVE Online"),B(),f(4," inventory or contract"),B(),Y(5,"p"),f(6,"Windows/Linux: CTRL+A => CTRL+V, MacOs: CMD+A => CMD+V"),B())},encapsulation:2})};function wG(i,t){i&1&&(p(0,"tr"),T(1,"th",3),p(2,"th",4),f(3,"Item "),T(4,"p-sortIcon",5),m(),p(5,"th",6),f(6,"Quantity "),T(7,"p-sortIcon",7),m(),p(8,"th",8),f(9,"Volume (m3) "),T(10,"p-sortIcon",9),m(),p(11,"th",10),f(12,"Buy (total) "),T(13,"p-sortIcon",11),m(),p(14,"th",12),f(15,"Sell (total) "),T(16,"p-sortIcon",13),m()())}function TG(i,t){if(i&1&&(p(0,"tr")(1,"td",18),T(2,"img",14),m(),p(3,"td",19),f(4),m()()),i&2){let e=S().$implicit;v(2),b("src",Q("https://images.evetech.net/types/",e.blueprintTypeId,"/bpc?size=32"),re)("alt",De(e.blueprintTypeName)),v(2),$(e.blueprintTypeName)}}function EG(i,t){if(i&1&&(p(0,"tr")(1,"td"),T(2,"img",14),m(),p(3,"td"),f(4),m(),p(5,"td"),f(6),m(),T(7,"td",15),G(8,"numericFormatter"),p(9,"td"),T(10,"span",15),G(11,"shortPrice"),p(12,"span",16),f(13," ISK"),m()(),p(14,"td"),T(15,"span",15),G(16,"shortPrice"),p(17,"span",16),f(18," ISK"),m()()(),M(19,TG,5,5,"tr",17)),i&2){let e=t.$implicit,r=S();v(2),b("alt",De(e.name))("src",r.EveImageHelper.getTypeImageUrl(e.typeID,32,e.name),re),v(2),$(e.name),v(2),$(e.amount),v(),b("innerHTML",ee(8,9,e.volume," ",2),ke),v(3),b("innerHTML",Ne(11,13,e.buyPrice,""),ke),v(5),b("innerHTML",Ne(16,16,e.sellPrice,""),ke),v(4),b("ngIf",e.blueprintTypeId!=null&&e.blueprintTypeName!=null)}}var nf=class i{items=[];AppraisalResultItem=Kw;JSON=JSON;EveImageHelper=vi;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["appraisal-results"]],inputs:{items:"items"},decls:5,vars:1,consts:[["header",""],["body",""],["stripedRows","",3,"value"],[2,"width","32px"],["pSortableColumn","name"],["field","name",1,"float-end"],["pSortableColumn","amount"],["field","amount",1,"float-end"],["pSortableColumn","volume"],["field","volume",1,"float-end"],["pSortableColumn","buyPrice"],["field","buyPrice",1,"float-end"],["pSortableColumn","sellPrice"],["field","sellPrice",1,"float-end"],[1,"img-24",3,"src","alt"],[3,"innerHTML"],[1,"small"],[4,"ngIf"],[2,"padding-left","3em"],["colspan","5",2,"padding-left","3em"]],template:function(e,r){e&1&&(p(0,"p-table",2),M(1,wG,17,0,"ng-template",null,0,de)(3,EG,20,19,"ng-template",null,1,de),m()),e&2&&b("value",r.items)},dependencies:[xt,Dt,fo,ho,ge,At,Wt],encapsulation:2})};var lk=Ri(pr());function kG(i,t){i&1&&f(0," Lowest Sell / Highest Buy prices ")}function IG(i,t){i&1&&f(0," Average prices ")}function DG(i,t){if(i&1&&(p(0,"div",9)(1,"div",4)(2,"div",0)(3,"div",10),f(4," Pricing Method "),m(),p(5,"div",11),H(6,kG,1,0)(7,IG,1,0),m()(),p(8,"div",0)(9,"div",10),f(10," Items (Buy) "),m(),p(11,"div",11),T(12,"span",12),G(13,"numericFormatter"),G(14,"shortPrice"),m()(),p(15,"div",0)(16,"div",10),f(17," Items (Sell) "),m(),p(18,"div",11),T(19,"span",12),G(20,"numericFormatter"),G(21,"shortPrice"),m()(),p(22,"div",0)(23,"div",10),f(24," Total volume (m3) "),m(),p(25,"div",11),f(26),G(27,"numericFormatter"),m()()()()),i&2){let e=S();v(6),W(e.selectedType==e.AppraisalType.MinMax?6:e.selectedType==e.AppraisalType.Average?7:-1),v(6),b("ewbTooltip",Q("",ee(13,8,e.totalBuyPrice," ",2)," ISK"))("innerHTML",Ne(14,12,e.totalBuyPrice,""),ke),v(7),b("ewbTooltip",Q("",ee(20,15,e.totalSellPrice," ",2)," ISK"))("innerHTML",Ne(21,19,e.totalSellPrice,""),ke),v(7),V(" ",ee(27,22,e.totalVolume," ",0)," ")}}function MG(i,t){i&1&&T(0,"appraisal-how-to-use")}function PG(i,t){if(i&1&&T(0,"appraisal-results",13),i&2){let e=S();b("items",e.items)}}var ep=class i{constructor(t,e,r){this.appraisalClient=t;this.router=e;this.route=r}hasResults=!1;sub;id;cargoContents=null;items=[];selectedStation=60003760;selectedType=1;totalSellPrice=0;totalBuyPrice=0;totalVolume=0;ngOnInit(){this.sub=this.route.params.subscribe(e=>{this.id=e.id,this.id!=null&&this.appraisalClient.getAppraisalById(this.id).subscribe(r=>{r.success?(this.hasResults=!0,this.cargoContents=r.result?.inventory??null,this.items=r.result?.items??[],this.selectedStation=r.result?.station??60003760,this.selectedType=r.result?.type??1,this.totalBuyPrice=r.result?.totalItemBuyPrice??0,this.totalSellPrice=r.result?.totalItemsSellPrice??0,this.totalVolume=r.result?.totalVolume??0):lk.default.fire("Error!",r.message?.toString(),"error")})})}AppraisalType=qv;static \u0275fac=function(e){return new(e||i)(N(nm),N(bt),N(Xt))};static \u0275cmp=K({type:i,selectors:[["app-appraisal"]],decls:11,vars:6,consts:[[1,"row"],[1,"col","col-md-4","mb-4","mb-md-0"],["class","card mb-4",4,"ngIf"],[1,"card"],[1,"card-body"],[3,"selectedStation","selectedType","cargoContents"],[1,"col"],[4,"ngIf"],[3,"items",4,"ngIf"],[1,"card","mb-4"],[1,"col-12","col-md-4"],[1,"col","text-end"],[3,"innerHTML","ewbTooltip"],[3,"items"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1),M(2,DG,28,26,"div",2),p(3,"div",3)(4,"div",4),T(5,"appraisal-input-component",5),m()()(),p(6,"div",6)(7,"div",3)(8,"div",4),M(9,MG,1,0,"appraisal-how-to-use",7)(10,PG,1,1,"appraisal-results",8),m()()()()),e&2&&(v(2),b("ngIf",r.hasResults),v(3),b("selectedStation",r.selectedStation)("selectedType",r.selectedType)("cargoContents",r.cargoContents),v(4),b("ngIf",!r.hasResults),v(),b("ngIf",r.hasResults))},dependencies:[Vt,ge,pc,rf,nf,Pe,At,Wt],encapsulation:2})};var uy=Ri(pr());var my=()=>({standalone:!0}),RG=()=>({width:"75rem"}),LG=()=>({"1199px":"75vw","575px":"90vw"}),OG=()=>[1,2,3,4,5],AG=(i,t)=>({selected:i,unused:!1,hover:t});function BG(i,t){i&1&&T(0,"overlay-loader")}function NG(i,t){if(i&1&&(p(0,"div",60)(1,"div",62),f(2,"Computed base yield \u2014 per ore type"),m(),p(3,"div",63)(4,"span",64),f(5,"Asteroid ore"),m(),p(6,"span",65),f(7),m()(),p(8,"div",63)(9,"span",64),f(10,"Moon ore"),m(),p(11,"span",65),f(12),m()(),p(13,"div",63)(14,"span",64),f(15,"Ice "),p(16,"small",29),f(17),m()(),p(18,"span",65),f(19),m()()()),i&2){let e=S(2);v(7),$(e.formatBase(e.baseYieldPreview.asteroidBase)),v(5),$(e.formatBase(e.baseYieldPreview.moonBase)),v(),Rt("base-yield-preview__value--dim",e.refineryForm.value.iceRigTier===0),v(4),$(e.refineryForm.value.iceRigTier===0?"\xB7 no rig":""),v(),Rt("dim",e.refineryForm.value.iceRigTier===0),v(),$(e.formatBase(e.baseYieldPreview.iceBase))}}function VG(i,t){i&1&&(p(0,"div",61),T(1,"i",66),f(2," Computing base yield\u2026"),m())}function zG(i,t){if(i&1){let e=J();p(0,"div",2)(1,"div",3)(2,"p-floatlabel",7)(3,"p-select",45),Je("ngModelChange",function(n){L(e);let o=S();return Xe(o.selectedPreset,n)||(o.selectedPreset=n),O(n)}),R("onChange",function(n){L(e);let o=S();return O(o.applyPreset(n.value))}),m(),p(4,"label",46),f(5,"Preset"),m()(),p(6,"small",29),f(7,"Optional \u2014 fills structure, rigs & security below."),m()()(),p(8,"div",47)(9,"div",6)(10,"p-floatlabel",7),T(11,"p-select",48),p(12,"label",49),f(13,"Structure"),m()()(),p(14,"div",6)(15,"p-floatlabel",7),T(16,"p-select",50),p(17,"label",51),f(18,"Security"),m()()()(),p(19,"div",52),f(20,"Reprocessing rigs \u2014 per ore type \xB7 3 rig slots"),m(),p(21,"div",53)(22,"div",6)(23,"p-floatlabel",7),T(24,"p-select",54),p(25,"label",55),f(26,"Asteroid ore"),m()()(),p(27,"div",6)(28,"p-floatlabel",7),T(29,"p-select",56),p(30,"label",57),f(31,"Moon ore"),m()()(),p(32,"div",6)(33,"p-floatlabel",7),T(34,"p-select",58),p(35,"label",59),f(36,"Ice"),m()()()(),H(37,NG,20,8,"div",60),H(38,VG,3,0,"div",61)}if(i&2){let e=S();v(3),b("options",e.presetOptions),Qe("ngModel",e.selectedPreset),b("ngModelOptions",be(13,my))("showClear",!0)("filter",!0),v(8),b("options",e.structureOptions)("filter",!0),v(5),b("options",e.securityBandOptions),v(8),b("options",e.rigTierOptions),v(5),b("options",e.rigTierOptions),v(5),b("options",e.rigTierOptions),v(3),W(e.baseYieldPreview?37:-1),v(),W(e.baseYieldLoading?38:-1)}}function UG(i,t){if(i&1&&(p(0,"div",60)(1,"div",62),f(2,"Computed base yield"),m(),p(3,"div",63)(4,"span",64),f(5,"All ore types "),p(6,"small",29),f(7,"\xB7 station base \xB7 no Sm/Rm/Sec"),m()(),p(8,"span",65),f(9),m()()()),i&2){let e=S(2);v(9),$(e.formatBase(e.baseYieldPreview.npcBase))}}function HG(i,t){if(i&1){let e=J();p(0,"div",47)(1,"div",6)(2,"p-floatlabel",7)(3,"p-autoComplete",67),Je("ngModelChange",function(n){L(e);let o=S();
1295return Xe(o.selectedStation,n)||(o.selectedStation=n),O(n)}),R("completeMethod",function(n){L(e);let o=S();return O(o.searchStations(n))})("onSelect",function(n){L(e);let o=S();return O(o.onStationSelect(n))})("onClear",function(){L(e);let n=S();return O(n.clearStation())}),m(),p(4,"label",68),f(5,"NPC station"),m()(),p(6,"small",29),f(7,"Pick a station to auto-fill efficiency & tax, or set efficiency manually below."),m()(),p(8,"div",6)(9,"p-floatlabel",7)(10,"input",69),R("input",function(){L(e);let n=S();return O(n.clearStation())}),m(),p(11,"label",70),f(12,"Station efficiency (%)"),m()(),p(13,"small",29),f(14,"Auto-filled from the selected station; editable."),m()()(),p(15,"div",2)(16,"div",3)(17,"div",71),T(18,"i",72),f(19," Reprocessing rigs / Security \u2014 not applicable for NPC stations "),m()()(),H(20,UG,10,1,"div",60)}if(i&2){let e=S();v(3),Qe("ngModel",e.selectedStation),b("ngModelOptions",be(6,my))("suggestions",e.stationSuggestions)("minLength",2)("forceSelection",!0),v(17),W(e.baseYieldPreview?20:-1)}}function WG(i,t){if(i&1){let e=J();p(0,"div",76),R("mouseover",function(){let n=L(e).$implicit,o=S().$implicit,a=S();return O(a.highlightLevel(o,o.level==n?n-1:n))})("click",function(){let n=L(e).$implicit,o=S().$implicit,a=S();return O(a.selectLevel(o,n))}),m()}if(i&2){let e=t.$implicit,r=S().$implicit;b("ngClass",It(1,AG,r.level>=e,r.hoverLevel>=e))}}function GG(i,t){if(i&1){let e=J();p(0,"li",38)(1,"div",73),R("mouseout",function(){let n=L(e).$implicit,o=S();return O(o.highlightLevel(n,0))}),oe(2,WG,1,4,"div",74,rr),m(),p(4,"div",75),f(5),m()()}if(i&2){let e=t.$implicit;v(2),ae(be(1,OG)),v(3),$(e.name)}}var py="refinery-preferences",of=class i{constructor(t,e,r,n,o){this.formBuilder=t;this.refineryClient=e;this.authService=r;this.http=n;this.apiBaseUrl=o;this.refineryForm=this.formBuilder.group({locationType:[1,[Yt.required]],structureTypeId:[35835,[Yt.required]],asteroidRigTier:[0],moonRigTier:[0],iceRigTier:[0],securityBand:[0],npcStationId:[0],base:[50],reprocessingTax:[0,[Yt.required]],implant:[0,[Yt.required]],reprocessingEfficiency:[5,[Yt.required]],reprocessing:[5,[Yt.required]],oreProcessing:[5,[Yt.required]],scrapMetalProcessing:[5,[Yt.required]],inventory:[this.cargoContents,[Yt.required]]});for(let a=0;a<=100;a++)this.reprocessingTaxOptions.push({label:`${a}%`,value:a})}showClear=!0;cargoRows=15;cargoContents="";isLoading=!1;storePreferences=!1;selectedPreset=null;selectedStation=null;stationSuggestions=[];baseYieldPreview=null;baseYieldLoading=!1;destroy$=new Ze;locationTypeOptions=[{label:"NPC Station",value:0},{label:"Player Structure",value:1}];structureOptions=[{label:"Athanor",value:35835},{label:"Tatara",value:35836}];rigTierOptions=[{label:"None",value:0},{label:"T1",value:1},{label:"T2",value:2}];securityBandOptions=[{label:"Highsec",value:0},{label:"Lowsec",value:1},{label:"Null / Wormhole",value:2}];presetOptions=[{label:"T2 Rigged Null Tatara",structureTypeId:35836,asteroidRigTier:2,moonRigTier:2,iceRigTier:2,securityBand:2},{label:"T1 Rigged Null Tatara",structureTypeId:35836,asteroidRigTier:1,moonRigTier:1,iceRigTier:1,securityBand:2},{label:"T2 Rigged Null Athanor",structureTypeId:35835,asteroidRigTier:2,moonRigTier:2,iceRigTier:2,securityBand:2},{label:"T1 Rigged Null Athanor",structureTypeId:35835,asteroidRigTier:1,moonRigTier:1,iceRigTier:1,securityBand:2},{label:"T2 Rigged Low Tatara",structureTypeId:35836,asteroidRigTier:2,moonRigTier:2,iceRigTier:2,securityBand:1},{label:"T1 Rigged Low Tatara",structureTypeId:35836,asteroidRigTier:1,moonRigTier:1,iceRigTier:1,securityBand:1},{label:"T2 Rigged Hi Tatara",structureTypeId:35836,asteroidRigTier:2,moonRigTier:2,iceRigTier:2,securityBand:0},{label:"T1 Rigged Hi Tatara",structureTypeId:35836,asteroidRigTier:1,moonRigTier:1,iceRigTier:1,securityBand:0},{label:"T2 Rigged Hi Athanor",structureTypeId:35835,asteroidRigTier:2,moonRigTier:2,iceRigTier:2,securityBand:0},{label:"T1 Rigged Hi Athanor",structureTypeId:35835,asteroidRigTier:1,moonRigTier:1,iceRigTier:1,securityBand:0},{label:"Unrigged Tatara",structureTypeId:35836,asteroidRigTier:0,moonRigTier:0,iceRigTier:0,securityBand:0},{label:"Unrigged Athanor",structureTypeId:35835,asteroidRigTier:0,moonRigTier:0,iceRigTier:0,securityBand:0}];reprocessingTaxOptions=[];implantOptions=[{label:"none",value:0},{label:"1%",value:1},{label:"2%",value:2},{label:"4%",value:4}];levelOptions=[{label:"none",value:0},{label:"Level 1",value:1},{label:"Level 2",value:2},{label:"Level 3",value:3},{label:"Level 4",value:4},{label:"Level 5",value:5}];defaultOreOptions=[{label:"none",value:0},{label:"Level 1",value:1},{label:"Level 2",value:2},{label:"Level 3",value:3},{label:"Level 4",value:4},{label:"Level 5",value:5},{label:"Advanced",value:null}];advancedOreOptions=[{typeId:60381,name:"Abyssal Ore Processing",level:5,hoverLevel:0},{typeId:60378,name:"Coherent Ore Processing",level:5,hoverLevel:0},{typeId:46153,name:"Common Moon Ore Processing",level:5,hoverLevel:0},{typeId:60380,name:"Complex Ore Processing",level:5,hoverLevel:0},{typeId:46156,name:"Exceptional Moon Ore Processing",level:5,hoverLevel:0},{typeId:18025,name:"Ice Processing",level:5,hoverLevel:0},{typeId:12189,name:"Mercoxit Ore Processing",level:5,hoverLevel:0},{typeId:46155,name:"Rare Moon Ore Processing",level:5,hoverLevel:0},{typeId:60377,name:"Simple Ore Processing",level:5,hoverLevel:0},{typeId:46152,name:"Ubiquitous Moon Ore Processing",level:5,hoverLevel:0},{typeId:46154,name:"Uncommon Moon Ore Processing",level:5,hoverLevel:0},{typeId:60379,name:"Variegated Ore Processing",level:5,hoverLevel:0}];refineryForm;isLoggedIn=!1;onResult=new he;ngOnInit(){this.loadAverageOreProcessing(),this.loadPreferences(),this.isLoggedIn=this.authService.isAuthenticated(),this.refineryForm.valueChanges.pipe(Vi(t=>`${t.locationType}|${t.structureTypeId}|${t.asteroidRigTier}|${t.moonRigTier}|${t.iceRigTier}|${t.securityBand}|${t.npcStationId}|${t.base}`),no(),pa(350),Zr(this.destroy$)).subscribe(()=>this.refreshBaseYield()),this.refreshBaseYield()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get isUpwell(){return this.refineryForm.value.locationType===1}applyPreset(t){t&&this.refineryForm.patchValue({structureTypeId:t.structureTypeId,asteroidRigTier:t.asteroidRigTier,moonRigTier:t.moonRigTier,iceRigTier:t.iceRigTier,securityBand:t.securityBand})}refreshBaseYield(){let t=this.refineryForm.value;if(t.locationType===0&&!t.npcStationId){this.baseYieldPreview={asteroidBase:t.base??50,moonBase:t.base??50,iceBase:t.base??50,npcBase:t.base??50};return}this.baseYieldLoading=!0;let r=`${this.apiBaseUrl??""}/Refinery/BaseYieldPreview?locationType=${t.locationType}&structureTypeId=${t.structureTypeId}&asteroidRigTier=${t.asteroidRigTier}&moonRigTier=${t.moonRigTier}&iceRigTier=${t.iceRigTier}&securityBand=${t.securityBand}&npcStationId=${t.npcStationId??0}`;this.http.get(r).subscribe({next:n=>{n.success&&(this.baseYieldPreview=n.result),this.baseYieldLoading=!1},error:()=>{this.baseYieldLoading=!1}})}searchStations(t){let e=(t.query??"").trim();if(e.length<2){this.stationSuggestions=[];return}let n=`${this.apiBaseUrl??""}/Refinery/SearchStations?q=${encodeURIComponent(e)}`;this.http.get(n).subscribe({next:o=>{this.stationSuggestions=o.success?o.result??[]:[]},error:()=>{this.stationSuggestions=[]}})}onStationSelect(t){let e=t.value;this.refineryForm.patchValue({npcStationId:e.stationId,base:Math.round(e.reprocessingEfficiency*100*100)/100,reprocessingTax:Math.round(e.reprocessingStationsTake*100)})}clearStation(){this.selectedStation=null,this.refineryForm.patchValue({npcStationId:0})}formatBase(t){return t!=null?t.toFixed(2)+"%":"\u2014"}
1295submitForm(){this.isLoading=!0,this.refineryForm.markAsTouched();let t={base:this.refineryForm.value.base,locationType:this.refineryForm.value.locationType,structureTypeId:this.refineryForm.value.structureTypeId,asteroidRigTier:this.refineryForm.value.asteroidRigTier,moonRigTier:this.refineryForm.value.moonRigTier,iceRigTier:this.refineryForm.value.iceRigTier,securityBand:this.refineryForm.value.securityBand,npcStationId:this.refineryForm.value.npcStationId??0,reprocessingTax:this.refineryForm.value.reprocessingTax,implant:this.refineryForm.value.implant,reprocessingSkill:this.refineryForm.value.reprocessing,reprocessingEfficiencySkill:this.refineryForm.value.reprocessingEfficiency,oreProcessingSkill:this.refineryForm.value.oreProcessing,scrapMetalProcessingSkill:this.refineryForm.value.scrapMetalProcessing,inventory:this.refineryForm.value.inventory,skillLevelOverrides:{}};if(this.useAdvancedReprocessingSkills)for(let e of this.advancedOreOptions)t.skillLevelOverrides[e.typeId]=e.level;this.storePreferences?this.savePreferences():localStorage.removeItem(py),this.refineryClient.createRefinery(t).subscribe(e=>{e.success?(this.onResult.emit(e.result),this.isLoading=!1):uy.default.fire("Error",e.message?.toString(),"error")})}savePreferences(){let t=this.refineryForm.value,e={locationType:t.locationType,structureTypeId:t.structureTypeId,asteroidRigTier:t.asteroidRigTier,moonRigTier:t.moonRigTier,iceRigTier:t.iceRigTier,securityBand:t.securityBand,npcStationId:t.npcStationId,selectedStation:this.selectedStation,base:t.base,reprocessingTax:t.reprocessingTax,implant:t.implant,reprocessingEfficiency:t.reprocessingEfficiency,reprocessing:t.reprocessing,oreProcessing:t.oreProcessing,scrapMetalProcessing:t.scrapMetalProcessing};localStorage.setItem(py,JSON.stringify(e))}loadPreferences(){let t=localStorage.getItem(py);if(!t)return;this.storePreferences=!0;let e=JSON.parse(t);this.refineryForm.patchValue({locationType:e.locationType??1,structureTypeId:e.structureTypeId??35835,asteroidRigTier:e.asteroidRigTier??0,moonRigTier:e.moonRigTier??0,iceRigTier:e.iceRigTier??0,securityBand:e.securityBand??0,npcStationId:e.npcStationId??0,base:e.base??50,reprocessingTax:e.reprocessingTax??0,implant:e.implant??0,reprocessingEfficiency:e.reprocessingEfficiency??5,reprocessing:e.reprocessing??5,oreProcessing:e.oreProcessing??5,scrapMetalProcessing:e.scrapMetalProcessing??5}),this.selectedStation=e.selectedStation??null}showAdvancedReprocessingDialog=!1;useAdvancedReprocessingSkills=!1;highlightLevel(t,e){t.hoverLevel=e}selectLevel(t,e){if(t.level==1&&e==1){t.level=0;return}t.level=e}saveAdvancedOreProcessing(){localStorage.setItem("refinery-advanced-ore-processing",JSON.stringify(this.advancedOreOptions)),this.useAdvancedReprocessingSkills=!0,this.refineryForm.controls.oreProcessing.setValue(0),uy.default.fire({toast:!0,position:"center",icon:"success",text:"Advanced Reprocessing Skills saved",showConfirmButton:!1,timer:2e3,timerProgressBar:!0}),this.showAdvancedReprocessingDialog=!1}loadAverageOreProcessing(){let t=localStorage.getItem("refinery-advanced-ore-processing");if(t==null)return;this.useAdvancedReprocessingSkills=!0,this.refineryForm.controls.oreProcessing.setValue(0),JSON.parse(t).forEach(r=>{let n=this.advancedOreOptions.filter(o=>o.typeId==r.typeId);n.length==1&&(n[0].level=r.level)})}defaultOreTooltip(){return this.useAdvancedReprocessingSkills?"Advanced Reprocessing Skills are active, therefore you can't change this selectbox.":"By default the selected level is used for ALL Ore and Ice reprocessing skills. You can override the separate skills under Advanced Reprocessing Skills."}turnOffAdvancedProcessingSkills(){localStorage.removeItem("refinery-advanced-ore-processing"),this.advancedOreOptions.forEach(t=>{t.level=0,t.hoverLevel=0}),this.useAdvancedReprocessingSkills=!1,this.refineryForm.controls.oreProcessing.setValue(5),this.showAdvancedReprocessingDialog=!1}syncReprocessingSkills(){this.isLoggedIn&&this.refineryClient.getReprocessingSkill().subscribe(t=>{t.success&&this.advancedOreOptions.forEach(e=>{e.level=0,t.result[e.typeId]!=null&&(e.level=t.result[e.typeId])})})}static \u0275fac=function(e){return new(e||i)(N(cr),N(Aw),N(mi),N(Kl),N(rm,8))};static \u0275cmp=K({type:i,selectors:[["refinery-input"]],inputs:{showClear:"showClear",cargoRows:"cargoRows",cargoContents:"cargoContents"},outputs:{onResult:"onResult"},decls:84,vars:27,consts:[[4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"row","mb-3"],[1,"col"],["formControlName","locationType","optionLabel","label","optionValue","value","styleClass","location-toggle",3,"options","allowEmpty"],[1,"row","row-cols-1","row-cols-lg-2"],[1,"col","mb-3"],["variant","in"],["inputId","reprocessingTaxOptions","formControlName","reprocessingTax","optionLabel","label","optionValue","value","styleClass","w-100",3,"options"],["for","reprocessingTaxOptions"],["inputId","implantOptions","optionLabel","label","optionValue","value","formControlName","implant","styleClass","w-100",3,"options"],["for","implantOptions"],["inputId","reprocessing","optionLabel","label","optionValue","value","formControlName","reprocessing","styleClass","w-100",3,"options"],["for","reprocessing"],["inputId","reprocessingEfficiency","optionLabel","label","optionValue","value","formControlName","reprocessingEfficiency","styleClass","w-100",3,"options"],["for","reprocessingEfficiency"],["inputId","scrapMetalProcessing","optionLabel","label","optionValue","value","formControlName","scrapMetalProcessing","styleClass","w-100",3,"options"],["for","scrapMetalProcessing"],["variant","in",3,"ewbTooltip"],["inputId","oreProcessing","optionLabel","label","optionValue","value","formControlName","oreProcessing","styleClass","w-100",3,"options","disabled"],["for","oreProcessing"],[1,"btn","btn-secondary","btn-sm","w-100","cursor-pointer",3,"click"],[1,"fa","fa-cog","me-1"],["pInputText","","id","value2","formControlName","inventory","placeholder","Paste EVE inventory / contract here\u2026 (mixed ore types are each refined with their own rig)",1,"w-100",3,"rows"],[1,"row","mb-2"],[1,"col","d-flex","align-items-center"],[1,"form-check"],["type","checkbox","id","storePrefs",1,"form-check-input",3,"ngModelChange","ngModel","ngModelOptions"],["for","storePrefs",1,"form-check-label"],[1,"text-muted"],[1,"col","col-md-6"],["type","button",1,"btn","btn-light","btn-lg","w-100"],["type","submit",1,"btn","btn-primary","btn-lg","w-100"],["header","Advanced Reprocessing Skills",3,"visibleChange","visible","modal","draggable","breakpoints","closable"],[1,"alert","alert-info"],[1,"btn","btn-sm","btn-primary",3,"click","disabled"],[1,"fa","fa-refresh"],[1,"list-unstyled",2,"columns","2"],[1,"justify-content-start","d-flex"],[1,"d-flex","justify-content-end","gap-2","mt-3"],[1,"btn","btn-secondary","d-inline-flex","align-items-center",3,"click"],[1,"fa-duotone","fa-solid","fa-power-off","fa-fw","me-1"],[1,"fa-duotone","fa-solid","fa-ban","fa-fw","me-1"],[1,"btn","btn-primary","d-inline-flex","align-items-center",3,"click"],[1,"fa-duotone","fa-solid","fa-save","fa-fw","me-1"],["inputId","preset","optionLabel","label","filterBy","label","styleClass","w-100",3,"ngModelChange","onChange","options","ngModel","ngModelOptions","showClear","filter"],["for","preset"],[1,"row","row-cols-1","row-cols-lg-2","mb-1"],["
1295inputId","structureTypeId","formControlName","structureTypeId","optionLabel","label","optionValue","value","filterBy","label","styleClass","w-100",3,"options","filter"],["for","structureTypeId"],["inputId","securityBand","formControlName","securityBand","optionLabel","label","optionValue","value","styleClass","w-100",3,"options"],["for","securityBand"],[1,"text-muted","small","mb-2"],[1,"row","row-cols-3","mb-1"],["inputId","asteroidRigTier","formControlName","asteroidRigTier","optionLabel","label","optionValue","value","styleClass","w-100",3,"options"],["for","asteroidRigTier"],["inputId","moonRigTier","formControlName","moonRigTier","optionLabel","label","optionValue","value","styleClass","w-100",3,"options"],["for","moonRigTier"],["inputId","iceRigTier","formControlName","iceRigTier","optionLabel","label","optionValue","value","styleClass","w-100",3,"options"],["for","iceRigTier"],[1,"base-yield-preview","mb-3"],[1,"text-muted","small","mb-3"],[1,"base-yield-preview__title"],[1,"base-yield-preview__row"],[1,"base-yield-preview__label"],[1,"base-yield-preview__value"],[1,"fa","fa-spinner","fa-spin"],["inputId","npcStation","optionLabel","name","styleClass","w-100",3,"ngModelChange","completeMethod","onSelect","onClear","ngModel","ngModelOptions","suggestions","minLength","forceSelection"],["for","npcStation"],["pInputText","","id","npcBase","type","number","min","0","max","100","step","0.1","formControlName","base",1,"w-100",3,"input"],["for","npcBase"],[1,"p-2","rounded","border","border-secondary","opacity-50","text-muted","small"],[1,"fa","fa-ban","me-1"],[1,"level-selector-container",3,"mouseout"],[1,"level-selector",3,"ngClass"],[1,"ms-3"],[1,"level-selector",3,"mouseover","click","ngClass"]],template:function(e,r){e&1&&(M(0,BG,1,0,"overlay-loader",0),p(1,"form",1),R("ngSubmit",function(){return r.submitForm()}),p(2,"div",2)(3,"div",3),T(4,"p-selectbutton",4),m()(),H(5,zG,39,14)(6,HG,21,7),p(7,"div",5)(8,"div",6)(9,"p-floatlabel",7),T(10,"p-select",8),p(11,"label",9),f(12,"Reprocessing tax"),m()()(),p(13,"div",6)(14,"p-floatlabel",7),T(15,"p-select",10),p(16,"label",11),f(17,"Implant"),m()()(),p(18,"div",6)(19,"p-floatlabel",7),T(20,"p-select",12),p(21,"label",13),f(22,"Reprocessing"),m()()(),p(23,"div",6)(24,"p-floatlabel",7),T(25,"p-select",14),p(26,"label",15),f(27,"Reprocessing Efficiency"),m()()(),p(28,"div",6)(29,"p-floatlabel",7),T(30,"p-select",16),p(31,"label",17),f(32,"Scrapmetal Processing"),m()()(),p(33,"div",6)(34,"p-floatlabel",18),T(35,"p-select",19),p(36,"label",20),f(37,"Default Ore/Ice Processing"),m()()()(),p(38,"div",2)(39,"div",3)(40,"span",21),R("click",function(){return r.showAdvancedReprocessingDialog=!0}),T(41,"i",22),f(42," Advanced Reprocessing Skills "),m()()(),p(43,"div",2)(44,"div",3),T(45,"textarea",23),m()(),p(46,"div",24)(47,"div",25)(48,"div",26)(49,"input",27),Je("ngModelChange",function(o){return Xe(r.storePreferences,o)||(r.storePreferences=o),o}),m(),p(50,"label",28),f(51," Store my preferences "),p(52,"small",29),f(53,"\xB7 remembers structure, rigs, security & skills next time"),m()()()()(),p(54,"div",2)(55,"div",30)(56,"button",31),f(57,"Clear"),m()(),p(58,"div",3)(59,"button",32),f(60,"Refine"),m()()()(),p(61,"p-dialog",33),Je("visibleChange",function(o){return Xe(r.showAdvancedReprocessingDialog,o)||(r.showAdvancedReprocessingDialog=o),o}),p(62,"div",34),f(63,"You can set the skills you have for Ore and Ice reprocessing here. This will then override the "),p(64,"strong"),f(65,"Default Ore/Ice Processing"),m(),f(66,"-selection. If you are logged in, you can also press this button to "),p(67,"button",35),R("click",function(){return r.syncReprocessingSkills()}),T(68,"i",36),f(69," Sync Skills"),m(),f(70," with your skills."),m(),p(71,"ul",37),oe(72,GG,6,2,"li",38,Te),m(),p(74,"div",39)(75,"button",40),R("click",function(){return r.turnOffAdvancedProcessingSkills()}),T(76,"i",41),f(77," Turn off"),m(),p(78,"button",40),R("click",function(){return r.showAdvancedReprocessingDialog=!1,r.loadAverageOreProcessing()}),T(79,"i",42),f(80," Cancel"),m(),p(81,"button",43),R("click",function(){return r.s
1295aveAdvancedOreProcessing()}),T(82,"i",44),f(83," Save"),m()()()),e&2&&(b("ngIf",r.isLoading),v(),b("formGroup",r.refineryForm),v(3),b("options",r.locationTypeOptions)("allowEmpty",!1),v(),W(r.isUpwell?5:6),v(5),b("options",r.reprocessingTaxOptions),v(5),b("options",r.implantOptions),v(5),b("options",r.levelOptions),v(5),b("options",r.levelOptions),v(5),b("options",r.levelOptions),v(4),b("ewbTooltip",r.defaultOreTooltip()),v(),b("options",r.levelOptions)("disabled",r.useAdvancedReprocessingSkills),v(10),b("rows",r.cargoRows),v(4),Qe("ngModel",r.storePreferences),b("ngModelOptions",be(24,my)),v(12),Lt(be(25,RG)),Qe("visible",r.showAdvancedReprocessingDialog),b("modal",!0)("draggable",!1)("breakpoints",be(26,LG))("closable",!1),v(6),b("disabled",!r.isLoggedIn),v(5),ae(r.advancedOreOptions))},dependencies:[$t,dr,Sm,ni,ge,ui,lr,Ot,gm,MT,mt,qi,bm,_m,Yi,ji,yt,Kt,ft,Pe,ic,ba,_t],styles:['[_nghost-%COMP%]     .p-selectbutton{display:flex;width:100%;gap:1.5rem}[_nghost-%COMP%]     .p-selectbutton .p-togglebutton{flex:1 1 0;justify-content:center;align-items:center;border-radius:6px;padding:.7rem 1rem;font-weight:600;transition:background .15s ease,border-color .15s ease,color .15s ease}[_nghost-%COMP%]     .p-selectbutton .p-togglebutton .p-togglebutton-label{white-space:nowrap}[_nghost-%COMP%]     .p-selectbutton .p-togglebutton:not(.p-togglebutton-checked):hover{border-color:var(--primary-color, #4f9eff)}[_nghost-%COMP%]     .p-selectbutton .p-togglebutton.p-togglebutton-checked{background:var(--primary-color, #4f9eff);border-color:var(--primary-color, #4f9eff)}[_nghost-%COMP%]     .p-selectbutton .p-togglebutton.p-togglebutton-checked .p-togglebutton-label{color:#fff}[_nghost-%COMP%]     p-autocomplete.w-100{display:block;width:100%}[_nghost-%COMP%]     p-autocomplete.w-100 .p-autocomplete{width:100%}[_nghost-%COMP%]     p-autocomplete.w-100 .p-autocomplete-input, [_nghost-%COMP%]     p-autocomplete.w-100 input{width:100%}.base-yield-preview[_ngcontent-%COMP%]{background:var(--surface-ground, #0d1117);border:1px solid var(--surface-border, #30363d);border-radius:6px;padding:.75rem 1rem}.base-yield-preview__title[_ngcontent-%COMP%]{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-color-secondary);margin-bottom:.5rem}.base-yield-preview__row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:.2rem 0;font-size:.9rem}.base-yield-preview__row[_ngcontent-%COMP%] + .base-yield-preview__row[_ngcontent-%COMP%]{border-top:1px solid var(--surface-border, #30363d)}.base-yield-preview__label[_ngcontent-%COMP%]{color:var(--text-color-secondary)}.base-yield-preview__value[_ngcontent-%COMP%]{font-weight:600;color:var(--primary-color, #4f9eff);font-feature-settings:"tnum"}.base-yield-preview__value.dim[_ngcontent-%COMP%]{color:var(--text-color-secondary);font-weight:400}']})};var af=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["refinery-how-to"]],decls:37,vars:0,consts:[[1,"card"],[1,"card-body"],[1,"mb-2"],[1,"small","mb-0"]],template:function(e,r){e&1&&(Y(0,"div",0)(1,"div",1)(2,"h5"),f(3,"How to use the EVE Workbench Refinery tool"),B(),Y(4,"p"),f(5,"Copy and paste from "),Y(6,"strong"),f(7,"EVE Online"),B(),f(8," inventory or contract"),B(),Y(9,"p"),f(10,"Windows/Linux: CTRL+A => CTRL+V, MacOs: CMD+A => CMD+V"),B(),zi(11,"hr"),Y(12,"h6"),f(13,"Location"),B(),Y(14,"p",2)(15,"strong"),f(16,"NPC station"),B(),f(17," \u2014 pick a station to auto-fill its base efficiency and tax. Structure bonuses, rigs and security do not apply."),B(),Y(18,"p",2)(19,"strong"),f(20,"Player structure (Upwell)"),B(),f(21," \u2014 the base yield is computed live from the structure (Athanor/Tatara), the reprocessing rigs and the system security:"),B(),Y(22,"ul",3)(23,"li"),f(24,"Reprocessing rigs are "),Y(25,"strong"),f(26,"per ore type"),B(),f(27," (asteroid / moon / ice) \u2014 a mixed batch is refined with each ore's own rig, so the base is shown per ore type."),B(),Y(28,"li")(29,"strong"),f(30,"Security"),B(),f(31," only counts for an ore type that has a rig fitted (Highsec \xD71.00, Lowsec \xD71.06, Null/WH \xD71.12)."),B(),Y(32,"li"),f(33,"Use a "),Y(34,"strong"),f(35,"preset"),B(),f(36," to quickly fill structure, rigs and security \u2014 it is only a shortcut, all values come from the EVE SDE."),B()()()())},encapsulation:2})};var qG=["colgroup"],jG=["caption"],YG=["header"],KG=["body"],$G=["footer"],ZG=["summary"],QG=["emptymessage"],XG=["paginatorleft"],JG=["paginatorright"],eq=["paginatordropdownitem"],tq=["frozenheader"],iq=["frozenbody"],rq=["frozenfooter"],nq=["frozencolgroup"],oq=["loadingicon"],aq=["reorderindicatorupicon"],sq=["reorderindicatordownicon"],lq=["sorticon"],cq=["checkboxicon"],dq=["headercheckboxicon"],pq=["togglericon"],uq=["paginatorfirstpagelinkicon"],mq=["paginatorlastpagelinkicon"],fq=["paginatorpreviouspagelinkicon"],hq=["paginatornextpagelinkicon"],gq=["loader"],vq=["resizeHelper"],_q=["reorderIndicatorUp"],bq=["reorderIndicatorDown"],yq=["table"],xq=["scrollableView"],Cq=["scrollableFrozenView"],Ho=i=>({$implicit:i}),Sq=(i,t)=>({left:i,width:t}),wq=(i,t)=>[i,t],Tq=i=>({width:i});function Eq(i,t){if(i&1&&T(0,"i"),i&2){let e=S(2);_e(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function kq(i,t){if(i&1&&(Ft(),T(0,"svg",13)),i&2){let e=S(3);_e(e.cx("loadingIcon")),b("spin",!0)}}function Iq(i,t){}function Dq(i,t){i&1&&M(0,Iq,0,0,"ng-template")}function Mq(i,t){if(i&1&&(p(0,"span"),M(1,Dq,1,0,null,14),m()),i&2){let e=S(3);_e(e.cx("loadingIcon")),v(),b("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Pq(i,t){if(i&1&&(Ut(0),M(1,kq,1,3,"svg",12)(2,Mq,2,3,"span",10),Ht()),i&2){let e=S(2);v(),b("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),v(),b("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Fq(i,t){if(i&1&&(p(0,"div",9),_w("p-overlay-mask-leave-active"),vw("p-overlay-mask-enter-active"),M(1,Eq,1,2,"i",10)(2,Pq,3,2,"ng-container",11),m()),i&2){let e=S();_e(e.cx("mask")),b("pBind",e.ptm("mask")),v(),b("ngIf",e.loadingIcon),v(),b("ngIf",!e.loadingIcon)}}function Rq(i,t){i&1&&vt(0)}function Lq(i,t){if(i&1&&(p(0,"div",9),M(1,Rq,1,0,"ng-container",14),m()),i&2){let e=S();_e(e.cx("header")),b("pBind",e.ptm("header")),v(),b("ngTemplateOutlet",e.captionTemplate||e._captionTemplate)}}function Oq(i,t){i&1&&vt(0)}function Aq(i,t){if(i&1&&M(0,Oq,1,0,"ng-container",14),i&2){let e=S(3);b("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function Bq(i,t){i&1&&M(0,Aq,1,1,"ng-template",16)}function Nq(i,t){i&1&&vt(0)}function Vq(i,t){if(i&1&&M(0,Nq,1,0,"ng-container",14),i&2){let e=S(3);b("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function zq(i,t){i&1&&M(0,Vq,1,1,"ng-template",17)}function Uq(i,t){i&1&&vt(0)}function Hq(i,t){if(i&1&&M(0,Uq,1,0,"ng-container",14),i&2){let e=S(3);b("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function Wq(i,t){i&1&&M(0,Hq,1,1,"ng-template",18)}function Gq(i,t){i&1&&vt(0)}function qq(i,t){if(i&1&&M(0,Gq,1,0,"ng-container",14),i&2){let e=S(3);b("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function jq(i,t){i&1&&M(0,qq,1,1,"ng-template",19)}function Yq(i,t){if(i&1){let e=J();p(0,"p-paginator",15),R("onPageChange",function(n){L(e);let o=S();return O(o.onPageChange(n))}),M(1,Bq,1,0,null,11)(2,zq,1,0,null,11)(3,Wq,1,0,null,11)(4,jq,1,0,null,11),m()}if(i&2){let e=S();b("pt",e.ptm("pcPaginator"))("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("styleClass",e.cx("pcPaginator"))("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate??e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate??e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate??e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("locale",e.paginatorLocale)("unstyled",e.unstyled()),v(),b("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),v(),b("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),v(),b("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),v(),b("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function Kq(i,t){i&1&&vt(0)}function $q(i,t){i&1&&vt(0)}function Zq(i,t){i&1&&vt(0)}
vendor: 10,517 bytes, line 1295
1295function Qq(i,t){if(i&1&&(p(0,"div",9)(1,"table",20,0),M(3,Kq,1,0,"ng-container",21),p(4,"thead",22),M(5,$q,1,0,"ng-container",21),m(),T(6,"tbody",23),p(7,"tfoot",22),M(8,Zq,1,0,"ng-container",21),m()()()),i&2){let e=S();_e(e.cx("wrapper")),b("pBind",e.ptm("wrapper")),v(),b("pBind",e.ptm("table"))("ngClass",e.tableStyleClass)("ngStyle",e.tableStyle),v(2),b("ngTemplateOutlet",e.colGroupTemplate||e._colGroupTemplate)("ngTemplateOutletContext",te(24,Ho,e.columns)),v(),_e(e.cx("thead")),b("pBind",e.ptm("thead")),v(),b("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",te(26,Ho,e.columns)),v(),_e(e.cx("tbody")),b("pBind",e.ptm("tbody"))("unstyled",e.unstyled())("pTreeTableBody",e.columns)("pTreeTableBodyTemplate",e.bodyTemplate??e._bodyTemplate),v(),_e(e.cx("tfoot")),b("pBind",e.ptm("tfoot")),v(),b("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)("ngTemplateOutletContext",te(28,Ho,e.columns))}}function Xq(i,t){if(i&1&&T(0,"div",26,2),i&2){let e=S(2);b("ngClass",It(7,wq,e.cx("scrollableView"),e.cx("frozenView")))("ttScrollableView",e.frozenColumns)("unstyled",e.unstyled())("frozen",!0)("ngStyle",te(10,Tq,e.frozenWidth))("scrollHeight",e.scrollHeight)("pBind",e.ptm("scrollableView"))}}function Jq(i,t){if(i&1&&(p(0,"div",9),M(1,Xq,2,12,"div",24),T(2,"div",25,1),m()),i&2){let e=S();_e(e.cx("scrollableWrapper")),b("pBind",e.ptm("scrollableWrapper")),v(),b("ngIf",e.frozenColumns||e.frozenBodyTemplate||e._frozenBodyTemplate),v(),_e(e.cx("scrollableView")),b("pBind",e.ptm("scrollableView"))("ttScrollableView",e.columns)("unstyled",e.unstyled())("frozen",!1)("scrollHeight",e.scrollHeight)("ngStyle",It(12,Sq,e.frozenWidth,"calc(100% - "+e.frozenWidth+")"))}}function ej(i,t){i&1&&vt(0)}function tj(i,t){if(i&1&&M(0,ej,1,0,"ng-container",14),i&2){let e=S(3);b("ngTemplateOutlet",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate)}}function ij(i,t){i&1&&M(0,tj,1,1,"ng-template",16)}function rj(i,t){i&1&&vt(0)}function nj(i,t){if(i&1&&M(0,rj,1,0,"ng-container",14),i&2){let e=S(3);b("ngTemplateOutlet",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate)}}function oj(i,t){i&1&&M(0,nj,1,1,"ng-template",17)}function aj(i,t){i&1&&vt(0)}function sj(i,t){if(i&1&&M(0,aj,1,0,"ng-container",14),i&2){let e=S(3);b("ngTemplateOutlet",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate)}}function lj(i,t){i&1&&M(0,sj,1,1,"ng-template",18)}function cj(i,t){i&1&&vt(0)}function dj(i,t){if(i&1&&M(0,cj,1,0,"ng-container",14),i&2){let e=S(3);b("ngTemplateOutlet",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function pj(i,t){i&1&&M(0,dj,1,1,"ng-template",19)}function uj(i,t){if(i&1){let e=J();p(0,"p-paginator",15),R("onPageChange",function(n){L(e);let o=S();return O(o.onPageChange(n))}),M(1,ij,1,0,null,11)(2,oj,1,0,null,11)(3,lj,1,0,null,11)(4,pj,1,0,null,11),m()}if(i&2){let e=S();b("pt",e.ptm("pcPaginator"))("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("styleClass",e.cx("pcPaginator"))("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate??e._paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate??e._paginatorRightTemplate)("appendTo",e.paginatorDropdownAppendTo)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate??e._paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)("locale",e.paginatorLocale)("unstyled",e.unstyled()),v(),b("ngIf",e.paginatorFirstPageLinkIconTemplate||e._paginatorFirstPageLinkIconTemplate),v(),b("ngIf",e.paginatorPreviousPageLinkIconTemplate||e._paginatorPreviousPageLinkIconTemplate),v(),b("ngIf",e.paginatorLastPageLinkIconTemplate||e._paginatorLastPageLinkIconTemplate),v(),b("ngIf",e.paginatorNextPageLinkIconTemplate||e._paginatorNextPageLinkIconTemplate)}}function mj(i,t){i&1&&vt(0)}function fj(i,t){if(i&1&&(p(0,"div",9),M(1,mj,1,0,"ng-container",14),m()),i&2){let e=S();_e(e.cx("footer")),b("pBind",e.ptm("footer")),v(),b("ngTemplateOutlet",e.summaryTemplate||e._summaryTemplate)}}function hj(i,t){if(i&1&&T(0,"div",9,3),i&2){let e=S();_e(e.cx("columnResizerHelper")),Wn("display","none"),b("pBind",e.ptm("columnResizerHelper"))}}function gj(i,t){i&1&&(Ft(),T(0,"svg",28))}function vj(i,t){}function _j(i,t){i&1&&M(0,vj,0,0,"ng-template")}function bj(i,t){if(i&1&&(p(0,"span",9,4),M(2,gj,1,0,"svg",27)(3,_j,1,0,null,14),m()),i&2){let e=S();_e(e.cx("reorderIndicatorUp")),Wn("display","none"),b("pBind",e.ptm("reorderIndicatorUp")),v(2),b("ngIf",!e.reorderIndicatorUpIconTemplate&&!e._reorderIndicatorUpIconTemplate),v(),b("ngTemplateOutlet",e.reorderIndicatorUpIconTemplate||e._reorderIndicatorUpIconTemplate)}}function yj(i,t){i&1&&(Ft(),T(0,"svg",30))}function xj(i,t){}function Cj(i,t){i&1&&M(0,xj,0,0,"ng-template")}function Sj(i,t){if(i&1&&(p(0,"span",9,5),M(2,yj,1,0,"svg",29)(3,Cj,1,0,null,14),m()),i&2){let e=S();_e(e.cx("reorderIndicatorDown")),Wn("display","none"),b("pBind",e.ptm("reorderIndicatorDown")),v(2),b("ngIf",!e.reorderIndicatorDownIconTemplate&&!e._reorderIndicatorDownIconTemplate),v(),b("ngTemplateOutlet",e.reorderIndicatorDownIconTemplate||e._reorderIndicatorDownIconTemplate)}}var wj=["pTreeTableBody",""],Tj=(i,t,e,r)=>({$implicit:i,node:t,rowData:e,columns:r}),Ej=(i,t)=>({$implicit:i,frozen:t});function kj(i,t){i&1&&vt(0)}function Ij(i,t){if(i&1&&(Ut(0),M(1,kj,1,0,"ng-container",2),Ht()),i&2){let e=S().$implicit,r=S();v(),b("ngTemplateOutlet",r.template)("ngTemplateOutletContext",xw(2,Tj,e,e.node,e.node.data,r.columns))}}function Dj(i,t){if(i&1&&M(0,Ij,2,7,"ng-container",1),i&2){let e=t.$implicit;b("ngIf",e.visible)}}function Mj(i,t){i&1&&vt(0)}function Pj(i,t){if(i&1&&(Ut(0),M(1,Mj,1,0,"ng-container",2),Ht()),i&2){let e=S();v(),b("ngTemplateOutlet",e.tt.emptyMessageTemplate||e.tt._emptyMessageTemplate)("ngTemplateOutletContext",It(2,Ej,e.columns,e.frozen))}}var Fj=["scrollHeader"],Rj=["scrollHeaderBox"],Lj=["scrollBody"],Oj=["scrollTable"],Aj=["loadingTable"],Bj=["scrollFooter"],Nj=["scrollFooterBox"],Vj=["scrollableAligner"],zj=["scroller"],Uj=["ttScrollableView",""],Hj=i=>({height:i}),ck=(i,t)=>({$implicit:i,options:t}),Wj=i=>({options:i}),Gj=(i,t)=>({"max-height":i,"overflow-y":t}),qj=()=>({});function jj(i,t){i&1&&vt(0)}function Yj(i,t){i&1&&vt(0)}function Kj(i,t){i&1&&vt(0)}function $j(i,t){if(i&1&&M(0,Kj,1,0,"ng-container",13),i&2){let e=t.$implicit,r=t.options;S(2);let n=Ve(11);b("ngTemplateOutlet",n)("ngTemplateOutletContext",It(2,ck,e,r))}}function Zj(i,t){i&1&&vt(0)}function Qj(i,t){if(i&1&&M(0,Zj,1,0,"ng-container",13),i&2){let e=t.options,r=S(3);b("ngTemplateOutlet",r.tt.loaderTemplate||r.tt._loaderTemplate)("ngTemplateOutletContext",te(2,Wj,e))}}function Xj(i,t){i&1&&(Ut(0),M(1,Qj,1,4,"ng-template",null,5,de),Ht())}function Jj(i,t){if(i&1){let e=J();p(0,"p-scroller",18,3),R("onLazyLoad",function(n){L(e);let o=S();return O(o.tt.onLazyItemLoad(n))}),M(2,$j,1,5,"ng-template",null,4,de)(4,Xj,3,0,"ng-container",16),m()}if(i&2){let e=S();Lt(te(10,Hj,e.tt.scrollHeight!=="flex"?e.tt.scrollHeight:void 0)),b("items",e.tt.serializedValue)("styleClass",e.cx("scrollableBody"))("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.tt.virtualScrollItemSize||e.tt._virtualRowHeight)("lazy",e.tt.lazy)("options",e.tt.virtualScrollOptions)("pt",e.ptm("virtualScroller")),v(4),b("ngIf",e.tt.loaderTemplate||e.tt._loaderTemplate)}}function eY(i,t){i&1&&vt(0)}function tY(i,t){if(i&1&&(Ut(0),p(1,"div",12,6),M(3,eY,1,0,"ng-container",13),m(),Ht()),i&2){let e=S(),r=Ve(11);v(),_e(e.cx("scrollableBody")),b("pBind",e.ptm("scrollableBody"))("ngStyle",It(6,Gj,e.tt.scrollHeight!=="flex"?e.scrollHeight:void 0,!e.frozen&&e.tt.scrollHeight?"scroll":void 0)),v(2),b("ngTemplateOutlet",r)("ngTemplateOutletContext",It(10,ck,e.serializedValue,be(9,qj)))}}function iY(i,t){i&1&&vt(0)}function rY(i,t){i&1&&T(0,"div",null,8),i&2&&Wn("background-color","transparent")}function nY(i,t){if(i&1&&(p(0,"table",19,7),M(2,iY,1,0,"ng-container",13),T(3,"tbody",20),m(),M(4,rY,2,2,"div",21)),i&2){let e=t.$implicit,r=t.options,n=S();Lt(r.contentStyle),_e(n.tt.tableStyleClass),b("pBind",n.ptm("table"))("ngClass",r.contentStyleClass)("ngStyle",n.tt.tableStyle),v(2),b("ngTemplateOutlet",n.frozen?n.tt.frozenColGroupTemplate||n.tt._frozenColGroupTemplate||n.tt.colGroupTemplate||n.tt._colGroupTemplate:n.tt.colGroupTemplate||n.tt._colGroupTemplate)("ngTemplateOutletContext",te(19,Ho,n.columns)),v(),_e(n.cx("tbody")),b("pBind",n.ptm("tbody"))("pBind",n.ptm("tbody"))("pTreeTableBody",n.columns)("unstyled",n.unstyled())("pTreeTableBodyTemplate",n.frozen?n.tt.frozenBodyTemplate||n.tt._frozenBodyTemplate||n.tt.bodyTemplate||n.tt._bodyTemplate:n.tt.bodyTemplate||n.tt._bodyTemplate)("serializedNodes",e)("frozen",n.frozen),v(),b("ngIf",n.frozen)}}function oY(i,t){i&1&&vt(0)}function aY(i,t){i&1&&vt(0)}function sY(i,t){if(i&1&&(p(0,"div",11,9)(2,"div",11,10)(4,"table",22),M(5,oY,1,0,"ng-container",13),p(6,"tfoot",14),M(7,aY,1,0,"ng-container",13),m()()()()),i&2){let e=S();_e(e.cx("scrollableFooter")),b("pBind",e.ptm("scrollableFooter")),v(2),_e(e.cx("scrollableFooterBox")),b("pBind",e.ptm("scrollableFooterBox")),v(2),_e(e.cx("scrollableFooterTable")),b("ngClass",e.tt.tableStyleClass)("ngStyle",e.tt.tableStyle)("pBind",e.ptm("scrollableFooterTable")),v(),b("ngTemplateOutlet",e.frozen?e.tt.frozenColGroupTemplate||e.tt._frozenColGroupTemplate||e.tt.colGroupTemplate||e.tt._colGroupTemplate:e.tt.colGroupTemplate||e.tt._colGroupTemplate)("ngTemplateOutletContext",te(18,Ho,e.columns)),v(),_e(e.cx("tfoot")),b("pBind",e.ptm("tfoot")),v(),b("ngTemplateOutlet",e.frozen?e.tt.frozenFooterTemplate||e.tt._frozenFooterTemplate||e.tt.footerTemplate||e.tt._footerTemplate:e.tt.footerTemplate||e.tt._footerTemplate)("ngTemplateOutletContext",te(20,Ho,e.columns))}}function lY(i,t){if(i&1&&(Ft(),T(0,"svg",5)),i&2){let e=S(2);b("pBind",e.ptm("nodetoggleicon")),Ge("aria-hidden",!0)}}function cY(i,t){if(i&1&&(Ft(),T(0,"svg",6)),i&2){let e=S(2);b("pBind",e.ptm("nodetoggleicon")),Ge("aria-hidden",!0)}}function dY(i,t){if(i&1&&(Ut(0),M(1,lY,1,2,"svg",3)(2,cY,1,2,"svg",4),Ht()),i&2){let e=S();v(),b("ngIf",e.rowNode.node.expanded),v(),b("ngIf",!e.rowNode.node.expanded)}}function pY(i,t){}function uY(i,t){i&1&&M(0,pY,0,0,"ng-template")}var mY
vendor: 14,193 bytes, lines 1295-1799
1295=`
1296/* For PrimeNG */
1297.p-treetable {
1298    position: relative;
1299}
1300
1301.p-treetable table {
1302    border-collapse: collapse;
1303    width: 100%;
1304    table-layout: fixed;
1305}
1306
1307.p-treetable .p-sortable-column {
1308    cursor: pointer;
1309    user-select: none;
1310}
1311
1312.p-treetable .p-sortable-column .p-column-title,
1313.p-treetable .p-sortable-column .p-sortable-column-icon,
1314.p-treetable .p-sortable-column .p-sortable-column-badge {
1315    vertical-align: middle;
1316}
1317
1318.p-treetable-sort-icon {
1319    color: dt('treetable.sort.icon.color');
1320    font-size: dt('treetable.sort.icon.size');
1321    width: dt('treetable.sort.icon.size');
1322    height: dt('treetable.sort.icon.size');
1323    transition: color dt('treetable.transition.duration');
1324}
1325
1326.p-treetable .p-sortable-column .p-sortable-column-badge {
1327    display: inline-flex;
1328    align-items: center;
1329    justify-content: center;
1330}
1331
1332.p-treetable-auto-layout>.p-treetable-wrapper {
1333    overflow-x: auto;
1334}
1335
1336.p-treetable-auto-layout>.p-treetable-wrapper>table {
1337    table-layout: auto;
1338}
1339
1340.p-treetable-hoverable-rows .p-treetable-tbody>tr {
1341    cursor: pointer;
1342}
1343
1344.p-treetable-toggler {
1345    cursor: pointer;
1346    user-select: none;
1347    display: inline-flex;
1348    align-items: center;
1349    justify-content: center;
1350    vertical-align: middle;
1351    overflow: hidden;
1352    position: relative;
1353}
1354
1355
1356/* Scrollable */
1357.p-treetable-scrollable-wrapper {
1358    position: relative;
1359}
1360
1361.p-treetable-scrollable-header,
1362.p-treetable-scrollable-footer {
1363    overflow: hidden;
1364    flex-shrink: 0;
1365}
1366
1367.p-treetable-scrollable-body {
1368    overflow: auto;
1369    position: relative;
1370}
1371
1372.p-treetable-virtual-table {
1373    position: absolute;
1374}
1375
1376/* Frozen Columns */
1377.p-treetable-frozen-view .p-treetable-scrollable-body {
1378    overflow: hidden;
1379}
1380
1381.p-treetable-frozen-view>.p-treetable-scrollable-body>table>.p-treetable-tbody>tr>td:last-child {
1382    border-right: 0 none;
1383}
1384
1385.p-treetable-unfrozen-view {
1386    position: absolute;
1387    top: 0;
1388}
1389
1390/* Flex Scrollable */
1391.p-treetable-flex-scrollable {
1392    display: flex;
1393    flex-direction: column;
1394    flex: 1;
1395    height: 100%;
1396}
1397
1398.p-treetable-flex-scrollable .p-treetable-scrollable-wrapper,
1399.p-treetable-flex-scrollable .p-treetable-scrollable-view {
1400    display: flex;
1401    flex-direction: column;
1402    flex: 1;
1403    height: 100%;
1404}
1405
1406.p-treetable-flex-scrollable .p-treetable-virtual-scrollable-body {
1407    flex: 1;
1408}
1409
1410/* Resizable */
1411.p-treetable-resizable>.p-treetable-wrapper {
1412    overflow-x: auto;
1413}
1414
1415.p-treetable-resizable .p-treetable-thead>tr>th,
1416.p-treetable-resizable .p-treetable-tfoot>tr>td,
1417.p-treetable-resizable .p-treetable-tbody>tr>td {
1418    overflow: hidden;
1419}
1420
1421.p-treetable-resizable .p-resizable-column {
1422    background-clip: padding-box;
1423    position: relative;
1424}
1425
1426.p-treetable-resizable-fit .p-resizable-column:last-child .p-column-resizer {
1427    display: none;
1428}
1429
1430.p-treetable .p-column-resizer {
1431    display: block;
1432    position: absolute;
1433    top: 0;
1434    right: 0;
1435    margin: 0;
1436    width: dt('treetable.column.resizer.width');
1437    height: 100%;
1438    padding: 0px;
1439    cursor: col-resize;
1440    border: 1px solid transparent;
1441}
1442
1443.p-treetable .p-column-resizer-helper {
1444    width: dt('treetable.resize.indicator.width');
1445    position: absolute;
1446    z-index: 10;
1447    display: none;
1448    background: dt('treetable.resize.indicator.color');
1449}
1450
1451.p-treetable .p-row-editor-init,
1452.p-treetable .p-row-editor-save,
1453.p-treetable .p-row-editor-cancel {
1454    display: inline-flex;
1455    align-items: center;
1456    justify-content: center;
1457    overflow: hidden;
1458    position: relative;
1459}
1460
1461
1462/* Reorder */
1463.p-treetable-reorder-indicator-up,
1464.p-treetable-reorder-indicator-down {
1465    position: absolute;
1466    display: none;
1467}
1468
1469[ttReorderableColumn] {
1470    cursor: move;
1471}
1472
1473/* Loader */
1474.p-treetable-mask {
1475    position: absolute !important;
1476    display: flex;
1477    align-items: center;
1478    justify-content: center;
1479    z-index: 2;
1480}
1481
1482.p-treetable-loading-icon {
1483    font-size: dt('treetable.loading.icon.size');
1484    width: dt('treetable.loading.icon.size');
1485    height: dt('treetable.loading.icon.size');
1486}
1487
1488/* Virtual Scroll */
1489.p-treetable .p-scroller-loading {
1490    transform: none !important;
1491    min-height: 0;
1492    position: sticky;
1493    top: 0;
1494    left: 0;
1495}
1496
1497.p-treetable .p-paginator-top {
1498    border-color: dt('treetable.paginator.top.border.color');
1499    border-style: solid;
1500    border-width: dt('treetable.paginator.top.border.width');
1501}
1502
1503.p-treetable .p-paginator-bottom {
1504    border-color: dt('treetable.paginator.bottom.border.color');
1505    border-style: solid;
1506    border-width: dt('treetable.paginator.bottom.border.width');
1507}
1508
1509.p-treetable .p-treetable-header {
1510    background: dt('treetable.header.background');
1511    color: dt('treetable.header.color');
1512    border-color: dt('treetable.header.border.color');
1513    border-style: solid;
1514    border-width: dt('treetable.header.border.width');
1515    padding: dt('treetable.header.padding');
1516    font-weight: dt('treetable.column.title.font.weight');
1517}
1518
1519.p-treetable .p-treetable-footer {
1520    background: dt('treetable.footer.background');
1521    color: dt('treetable.footer.color');
1522    border-color: dt('treetable.footer.border.color');
1523    border-style: solid;
1524    border-width: dt('treetable.footer.border.width');
1525    padding: dt('treetable.footer.padding');
1526    font-weight: dt('treetable.column.footer.font.weight');
1527}
1528
1529.p-treetable .p-treetable-thead>tr>th {
1530    padding: dt('treetable.header.cell.padding');
1531    background: dt('treetable.header.cell.background');
1532    border-color: dt('treetable.header.cell.border.color');
1533    border-style: solid;
1534    border-width: 0 0 1px 0;
1535    color: dt('treetable.header.cell.color');
1536    font-weight: dt('treetable.column.title.font.weight');
1537    text-align: start;
1538    transition: background dt('treetable.transition.duration'), color dt('treetable.transition.duration'), border-color dt('treetable.transition.duration'),
1539            outline-color dt('treetable.transition.duration'), box-shadow dt('treetable.transition.duration');
1540}
1541
1542.p-treetable .p-treetable-tfoot>tr>td {
1543    text-align: start;
1544    padding: dt('treetable.footer.cell.padding');
1545    border-color: dt('treetable.footer.cell.border.color');
1546    border-style: solid;
1547    border-width: 0 0 1px 0;
1548    color: dt('treetable.footer.cell.color');
1549    background: dt('treetable.footer.cell.background');
1550    font-weight: dt('treetable.column.footer.font.weight');
1551}
1552
1553.p-treetable .p-sortable-column {
1554    cursor: pointer;
1555    user-select: none;
1556    outline-color: transparent;
1557    vertical-align: middle;
1558}
1559
1560.p-treetable .p-sortable-column .p-sortable-column-icon {
1561    color: dt('treetable.sort.icon.color');
1562    transition: color dt('treetable.transition.duration');
1563}
1564
1565
1566.p-treetable .p-sortable-column:not(.p-treetable-column-sorted):hover {
1567    background: dt('treetable.header.cell.hover.background');
1568    color: dt('treetable.header.cell.hover.color');
1569}
1570
1571.p-treetable .p-sortable-column:not(.p-treetable-column-sorted):hover .p-treetable-sort-icon {
1572    color: dt('treetable.sort.icon.hover.color');
1573}
1574
1575.p-treetable .p-sortable-column.p-treetable-column-sorted {
1576    background: dt('treetable.header.cell.selected.background');
1577    color: dt('treetable.header.cell.selected.color');
1578}
1579
1580.p-treetable .p-sortable-column.p-treetable-column-sorted .p-treetable-sort-icon {
1581    color: dt('treetable.header.cell.selected.color');
1582}
1583
1584.p-treetable .p-sortable-column:focus-visible {
1585    box-shadow: dt('treetable.header.cell.focus.ring.shadow');
1586    outline: dt('treetable.header.cell.focus.ring.width') dt('treetable.header.cell.focus.ring.style') dt('treetable.header.cell.focus.ring.color');
1587    outline-offset: dt('treetable.header.cell.focus.ring.offset');
1588}
1589
1590.p-treetable-hoverable .p-treetable-selectable-row {
1591    cursor: pointer;
1592}
1593
1594.p-treetable .p-treetable-tbody > tr {
1595    outline-color: transparent;
1596    background: dt('treetable.row.background');
1597    color: dt('treetable.row.color');
1598}
1599
1600.p-treetable .p-treetable-tbody>tr>td {
1601    text-align: start;
1602    border-color: dt('treetable.body.cell.border.color');
1603    border-style: solid;
1604    border-width: 0 0 1px 0;
1605    padding: dt('treetable.body.cell.padding');
1606}
1607
1608.p-treetable .p-treetable-tbody>tr>td .p-treetable-toggler {
1609    display: inline-flex;
1610    align-items: center;
1611    justify-content: center;
1612    overflow: hidden;
1613    position: relative;
1614    width: dt('treetable.node.toggle.button.size');
1615    height: dt('treetable.node.toggle.button.size');
1616    color: dt('treetable.node.toggle.button.color');
1617    border: 0 none;
1618    background: transparent;
1619    cursor: pointer;
1620    border-radius: dt('treetable.node.toggle.button.border.radius');
1621    transition: background dt('treetable.transition.duration'), color dt('treetable.transition.duration'), border-color dt('treetable.transition.duration'),
1622            outline-color dt('treetable.transition.duration'), box-shadow dt('treetable.transition.duration');
1623    outline-color: transparent;
1624    user-select: none;
1625}
1626
1627.p-treetable .p-treetable-tbody>tr>td .p-treetable-toggler:enabled:hover {
1628    color: dt('treetable.node.toggle.button.hover.color');
1629    background: dt('treetable.node.toggle.button.hover.background');
1630}
1631
1632.p-treetable .p-treetable-tbody>tr>tr.treetable-row-selected .p-treetable-toggler:hover {
1633    background: dt('treetable.node.toggle.button.selected.hover.background');
1634    color: dt('treetable.node.toggle.button.selected.hover.color');
1635}
1636
1637.p-treetable .p-treetable-tbody>tr>td .p-treetable-toggler:focus-visible {
1638    box-shadow: dt('treetable.node.toggle.button.focus.ring.shadow');
1639    outline: dt('treetable.node.toggle.button.focus.ring.width') dt('treetable.node.toggle.button.focus.ring.style') dt('treetable.node.toggle.button.focus.ring.color');
1640    outline-offset: dt('treetable.node.toggle.button.focus.ring.offset');
1641}
1642
1643
1644.p-treetable .p-treetable-tbody>tr.p-treetable-row-selected {
1645    background: dt('treetable.row.selected.background');
1646    color: dt('treetable.row.selected.color');
1647}
1648
1649.p-treetable-tbody > tr:focus-visible,
1650.p-treetable-tbody > tr.p-treetable-contextmenu-row-selected {
1651    box-shadow: dt('treetable.row.focus.ring.shadow');
1652    outline: dt('treetable.row.focus.ring.width') dt('treetable.row.focus.ring.style') dt('treetable.row.focus.ring.color');
1653    outline-offset: dt('treetable.row.focus.ring.offset');
1654}
1655
1656.p-treetable .p-treetable-tbody>tr.p-treetable-row-selected .p-treetable-toggler {
1657    color: inherit;
1658}
1659
1660.p-treetable .p-treetable-tbody>tr.p-treetable-row-selected .p-treetable-toggler:hover {
1661    background: dt('treetable.node.toggle.button.selected.hover.background');
1662    color: dt('treetable.node.toggle.button.selected.hover.color');
1663}
1664
1665.p-treetable.p-treetable-hoverable-rows .p-treetable-tbody>tr:not(.p-treetable-row-selected):hover {
1666    background: dt('treetable.row.hover.background');
1667    color: dt('treetable.row.hover.color');
1668}
1669
1670.p-treetable-gridlines .p-treetable-header {
1671    border-width: 1px 1px 0 1px;
1672}
1673
1674.p-treetable-gridlines .p-treetable-footer {
1675    border-width: 0 1px 1px 1px;
1676}
1677
1678.p-treetable-gridlines .p-treetable-paginator-top {
1679    border-width: 1px 1px 0 1px;
1680}
1681
1682.p-treetable-gridlines .p-treetable-paginator-bottom {
1683    border-width: 0 1px 1px 1px;
1684}
1685
1686.p-treetable-gridlines .p-treetable-thead > tr > th {
1687    border-width: 1px 0 1px 1px;
1688}
1689
1690.p-treetable-gridlines .p-treetable-thead > tr > th:last-child {
1691    border-width: 1px;
1692}
1693
1694.p-treetable-gridlines .p-treetable-tbody > tr > td {
1695    border-width: 1px 0 0 1px;
1696}
1697
1698.p-treetable-gridlines .p-treetable-tbody > tr > td:last-child {
1699    border-width: 1px 1px 0 1px;
1700}
1701
1702.p-treetable-gridlines .p-treetable-tbody > tr:last-child > td {
1703    border-width: 1px 0 1px 1px;
1704}
1705
1706.p-treetable-gridlines .p-treetable-tbody > tr:last-child > td:last-child {
1707    border-width: 1px;
1708}
1709
1710.p-treetable-gridlines .p-treetable-tfoot > tr > td {
1711    border-width: 1px 0 1px 1px;
1712}
1713
1714.p-treetable-gridlines .p-treetable-tfoot > tr > td:last-child {
1715    border-width: 1px 1px 1px 1px;
1716}
1717
1718.p-treetable.p-treetable-gridlines .p-treetable-thead + .p-treetable-tfoot > tr > td {
1719    border-width: 0 0 1px 1px;
1720}
1721
1722.p-treetable.p-treetable-gridlines .p-treetable-thead + .p-treetable-tfoot > tr > td:last-child {
1723    border-width: 0 1px 1px 1px;
1724}
1725
1726.p-treetable.p-treetable-gridlines:has(.p-treetable-thead):has(.p-treetable-tbody) .p-treetable-tbody > tr > td {
1727    border-width: 0 0 1px 1px;
1728}
1729
1730.p-treetable.p-treetable-gridlines:has(.p-treetable-thead):has(.p-treetable-tbody) .p-treetable-tbody > tr > td:last-child {
1731    border-width: 0 1px 1px 1px;
1732}
1733
1734.p-treetable.p-treetable-gridlines:has(.p-treetable-tbody):has(.p-treetable-tfoot) .p-treetable-tbody > tr:last-child > td {
1735    border-width: 0 0 0 1px;
1736}
1737
1738.p-treetable.p-treetable-gridlines:has(.p-treetable-tbody):has(.p-treetable-tfoot) .p-treetable-tbody > tr:last-child > td:last-child {
1739    border-width: 0 1px 0 1px;
1740}
1741
1742.p-treetable.p-treetable-sm .p-treetable-header {
1743    padding: 0.65625rem 0.875rem;
1744}
1745
1746.p-treetable.p-treetable-sm .p-treetable-thead>tr>th {
1747    padding: 0.375rem 0.5rem;
1748}
1749
1750.p-treetable.p-treetable-sm .p-treetable-tbody>tr>td {
1751    padding: 0.375rem 0.5rem;
1752}
1753
1754.p-treetable.p-treetable-sm .p-treetable-tfoot>tr>td {
1755    padding: 0.375rem 0.5rem;
1756}
1757
1758.p-treetable.p-treetable-sm .p-treetable-footer {
1759    padding: 0.375rem 0.5rem;
1760}
1761
1762.p-treetable.p-treetable-lg .p-treetable-header {
1763    padding: 0.9375rem 1.25rem;
1764}
1765
1766.p-treetable.p-treetable-lg .p-treetable-thead>tr>th {
1767    padding: 0.9375rem 1.25rem;
1768}
1769
1770.p-treetable.p-treetable-lg .p-treetable-tbody>tr>td {
1771    padding: 0.9375rem 1.25rem;
1772}
1773
1774.p-treetable.p-treetable-lg .p-treetable-tfoot>tr>td {
1775    padding: 0.9375rem 1.25rem;
1776}
1777
1778.p-treetable.p-treetable-lg .p-treetable-footer {
1779    padding: 0.9375rem 1.25rem;
1780}
1781
1782p-treetabletoggler + p-treetablecheckbox .p-checkbox,
1783p-treetable-toggler + p-treetable-checkbox .p-checkbox,
1784p-tree-table-toggler + p-tree-table-checkbox .p-checkbox {
1785    vertical-align: middle;
1786}
1787
1788p-treetabletoggler + p-treetablecheckbox + span,
1789p-treetable-toggler + p-treetable-checkbox + span,
1790p-tree-table-toggler + p-tree-table-checkbox + span {
1791    vertical-align: middle;
1792}
1793
1794p-treetable-sort-icon {
1795    display: inline-flex;
1796    align-items: center;
1797    gap: dt('treetable.header.cell.gap');
1798}
1799`,
vendor: 53,442 bytes, line 1799
1799fY={root:({instance:i})=>["p-treetable p-component",{"p-treetable-gridlines":i.showGridlines,"p-treetable-hoverable-rows":i.rowHover||i.selectionMode==="single"||i.selectionMode==="multiple","p-treetable-auto-layout":i.autoLayout,"p-treetable-resizable":i.resizableColumns,"p-treetable-resizable-fit":i.resizableColumns&&i.columnResizeMode==="fit","p-treetable-flex-scrollable":i.scrollable&&i.scrollHeight==="flex"}],loading:"p-treetable-loading",mask:"p-treetable-mask p-overlay-mask",loadingIcon:"p-treetable-loading-icon",header:"p-treetable-header",pcPaginator:({instance:i})=>["p-treetable-paginator-"+i.paginatorPosition,i.paginatorStyleClass],tableContainer:"p-treetable-table-container",table:({instance:i})=>({"p-treetable-table":!0,"p-treetable-scrollable-table":i.scrollable,"p-treetable-resizable-table":i.resizableColumns,"p-treetable-resizable-table-fit":i.resizableColumns&&i.columnResizeMode==="fit"}),thead:"p-treetable-thead",sortableColumn:({instance:i})=>({"p-sortable-column":i.isEnabled(),"p-treetable-column-sorted":i.sorted}),sortableColumnIcon:"p-treetable-sort-icon",sortableColumnBadge:"p-sortable-column-badge",columnResizer:"p-treetable-column-resizer",columnHeaderContent:"p-treetable-column-header-content",columnTitle:"p-treetable-column-title",sortIcon:"p-treetable-sort-icon",pcSortBadge:"p-treetable-sort-badge",tbody:"p-treetable-tbody",row:({instance:i})=>({"p-treetable-row-selected":i.selected}),contextMenuRow:({instance:i})=>({"p-treetable-contextmenu-row-selected":i.selected}),toggler:"p-treetable-toggler",nodeToggleButton:"p-treetable-node-toggle-button",nodeToggleIcon:"p-treetable-node-toggle-icon",pcNodeCheckbox:"p-treetable-node-checkbox",tfoot:"p-treetable-tfoot",footerCell:({instance:i})=>({"p-treetable-frozen-column":i.columnProp("frozen")}),footer:"p-treetable-footer",columnResizeIndicator:"p-treetable-column-resize-indicator",wrapper:"p-treetable-wrapper",scrollableWrapper:"p-treetable-scrollable-wrapper",scrollableView:"p-treetable-scrollable-view",frozenView:"p-treetable-frozen-view",columnResizerHelper:"p-column-resizer-helper",reorderIndicatorUp:"p-treetable-reorder-indicator-up",reorderIndicatorDown:"p-treetable-reorder-indicator-down",scrollableHeader:"p-treetable-scrollable-header",scrollableHeaderBox:"p-treetable-scrollable-header-box",scrollableHeaderTable:"p-treetable-scrollable-header-table",scrollableBody:"p-treetable-scrollable-body",scrollableFooter:"p-treetable-scrollable-footer",scrollableFooterBox:"p-treetable-scrollable-footer-box",scrollableFooterTable:"p-treetable-scrollable-footer-table"},wa=(()=>{class i extends ga{name="treetable";style=mY;classes=fY;static \u0275fac=(()=>{let e;return function(n){return(e||(e=si(i)))(n||i)}})();static \u0275prov=Ye({token:i,factory:i.\u0275fac})}return i})();var hY=new St("TREETABLE_INSTANCE"),fy=(()=>{class i{sortSource=new Ze;selectionSource=new Ze;contextMenuSource=new Ze;uiUpdateSource=new Ze;totalRecordsSource=new Ze;sortSource$=this.sortSource.asObservable();selectionSource$=this.selectionSource.asObservable();contextMenuSource$=this.contextMenuSource.asObservable();uiUpdateSource$=this.uiUpdateSource.asObservable();totalRecordsSource$=this.totalRecordsSource.asObservable();onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onUIUpdate(e){this.uiUpdateSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}static \u0275fac=function(r){return new(r||i)};static \u0275prov=Ye({token:i,factory:i.\u0275fac})}return i})(),Es=(()=>{class i extends Xr{componentName="TreeTable";_componentStyle=ie(wa);bindDirectiveInstance=ie(ri,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}columns;styleClass;tableStyle;tableStyleClass;autoLayout;lazy=!1;lazyLoadOnInit=!0;paginator;rows;first=0;pageLinks=5;rowsPerPageOptions;alwaysShowPaginator=!0;paginatorPosition="bottom";paginatorStyleClass;paginatorDropdownAppendTo;currentPageReportTemplate="{currentPage} of {totalPages}";showCurrentPageReport;showJumpToPageDropdown;showFirstLastIcon=!0;showPageLinks=!0;defaultSortOrder=1;sortMode="single";resetPageOnSort=!0;customSort;selectionMode;contextMenuSelection;contextMenuSelectionMode="separate";dataKey;metaKeySelection=!1;compareSelectionBy="deepEquals";rowHover;loading;loadingIcon;showLoader=!0;scrollable;scrollHeight;virtualScroll;virtualScrollItemSize;virtualScrollOptions;virtualScrollDelay=150;frozenWidth;frozenColumns;resizableColumns;columnResizeMode="fit";reorderableColumns;contextMenu;rowTrackBy=(e,r)=>r;filters={};globalFilterFields;filterDelay=300;filterMode="lenient";filterLocale;paginatorLocale;get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get value(){return this._value}set value(e){this._value=e}get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.log("The virtualRowHeight property is deprecated, use virtualScrollItemSize property instead.")}get selectionKeys(){return this._selectionKeys}set selectionKeys(e){this._selectionKeys=e,this.selectionKeysChange.emit(this._selectionKeys)}showGridlines=!1;selectionChange=new he;contextMenuSelectionChange=new he;onFilter=new he;onNodeExpand=new he;onNodeCollapse=new he;onPage=new he;onSort=new he;onLazyLoad=new he;sortFunction=new he;onColResize=new he;onColReorder=new he;onNodeSelect=new he;onNodeUnselect=new he;onContextMenuSelect=new he;onHeaderCheckboxToggle=new he;onEditInit=new he;onEditComplete=new he;onEditCancel=new he;selectionKeysChange=new he;resizeHelperViewChild;reorderIndicatorUpViewChild;reorderIndicatorDownViewChild;tableViewChild;scrollableViewChild;scrollableFrozenViewChild;_value=[];_virtualRowHeight=28;_selectionKeys;serializedValue;_totalRecords=0;_multiSortMeta;_sortField;_sortOrder=1;filteredNodes;filterTimeout;_colGroupTemplate;colGroupTemplate;_captionTemplate;captionTemplate;_headerTemplate;headerTemplate;_bodyTemplate;bodyTemplate;_footerTemplate;footerTemplate;_summaryTemplate;summaryTemplate;_emptyMessageTemplate;emptyMessageTemplate;_paginatorLeftTemplate;paginatorLeftTemplate;_paginatorRightTemplate;paginatorRightTemplate;_paginatorDropdownItemTemplate;paginatorDropdownItemTemplate;_frozenHeaderTemplate;frozenHeaderTemplate;_frozenBodyTemplate;frozenBodyTemplate;_frozenFooterTemplate;frozenFooterTemplate;_frozenColGroupTemplate;frozenColGroupTemplate;_loadingIconTemplate;loadingIconTemplate;_reorderIndicatorUpIconTemplate;reorderIndicatorUpIconTemplate;_reorderIndicatorDownIconTemplate;reorderIndicatorDownIconTemplate;_sortIconTemplate;sortIconTemplate;_checkboxIconTemplate;checkboxIconTemplate;_headerCheckboxIconTemplate;headerCheckboxIconTemplate;_togglerIconTemplate;togglerIconTemplate;_paginatorFirstPageLinkIconTemplate;paginatorFirstPageLinkIconTemplate;_paginatorLastPageLinkIconTemplate;paginatorLastPageLinkIconTemplate;_paginatorPreviousPageLinkIconTemplate;paginatorPreviousPageLinkIconTemplate;_paginatorNextPageLinkIconTemplate;paginatorNextPageLinkIconTemplate;_loaderTemplate;loaderTemplate;lastResizerHelperX;reorderIconWidth;reorderIconHeight;draggedColumn;dropPosition;preventSelectionSetterPropagation;_selection;selectedKeys={};rowTouched;editingCell;editingCellData;editingCellField;editingCellClick;documentEditListener;initialized;toggleRowIndex;onInit(){this.lazy&&this.lazyLoadOnInit&&!this.virtualScroll&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.initialized=!0}templates;onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"loadingicon":this.loadingIconTemplate=e.template;break;case"reorderindicatorupicon":this.reorderIndicatorUpIconTemplate=e.template;break;case"reorderindicatordownicon":this.reorderIndicatorDownIconTemplate=e.template;break;case"sorticon":this.sortIconTemplate=e.template;break;case"checkboxicon":this.checkboxIconTemplate=e.template;break;case"headercheckboxicon":this.headerCheckboxIconTemplate=e.template;break;case"togglericon":this.togglerIconTemplate=e.template;break;case"paginatorfirstpagelinkicon":this.paginatorFirstPageLinkIconTemplate=e.template;break;case"paginatorlastpagelinkicon":this.paginatorLastPageLinkIconTemplate=e.template;break;case"paginatorpreviouspagelinkicon":this.paginatorPreviousPageLinkIconTemplate=e.template;break;case"paginatornextpagelinkicon":this.paginatorNextPageLinkIconTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break}})}filterService=ie(xT);tableService=ie(fy);zone=ie(Si);onChanges(e){e.value&&(this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,this.sortMode=="single"&&this.sortField?this.sortSingle():this.sortMode=="multiple"&&this.multiSortMeta?this.sortMultiple():this.hasFilter()&&this._filter()),this.updateSerializedValue(),this.tableService.onUIUpdate(this.value)),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&this.sortMode==="single"&&this.sortSingle()),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,this.sortMode==="multiple"&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateselectedKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1)}updateSerializedValue(){this.serializedValue=[],this.paginator?this.serializePageNodes():this.serializeNodes(null,this.filteredNodes||this.value,0,!0)}serializeNodes(e,r,n,o){if(r&&r.length)for(let a of r){a.parent=e;let s={node:a,parent:e,level:n,visible:o&&(e?e.expanded:!0)};this.serializedValue.push(s),s.visible&&a.expanded&&this.serializeNodes(a,a.children,n+1,s.visible)}}serializePageNodes(){let e=this.filteredNodes||this.value;if(this.serializedValue=[],e&&e.length){let r=this.lazy?0:this.first;for(let n=r;n<r+this.rows;n++){let o=e[n];o&&(this.serializedValue.push({node:o,parent:null,level:0,visible:!0}),this.serializeNodes(o,o.children,1,!0))}}}updateselectedKeys(){if(this.dataKey&&this._selection)if(this.selectedKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectedKeys[String(Tr(e.data,this.dataKey))]=1;else this.selectedKeys[String(Tr(this._selection.data,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.serializePageNodes(),this.onPage.emit({first:this.first,rows:this.rows}),this.tableService.onUIUpdate(this.value),this.scrollable&&this.resetScrollTop()}sort(e){let r=e.originalEvent;if(this.sortMode==="single"&&(this._sortOrder=this.sortField===e.field?this.sortOrder*-1:this.defaultSortOrder,this._sortField=e.field,this.sortSingle(),this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.sortMode==="multiple"){let n=r.metaKey||r.ctrlKey,o=this.getSortMeta(e.field);o?n?o.order=o.order*-1:(this._multiSortMeta=[{field:e.field,order:o.order*-1}],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()):((!n||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&this.scrollable&&this.resetScrollTop()),this.multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}}sortSingle(){if(this.sortField&&this.sortOrder){this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.sortNodes(this.value),this.hasFilter()&&this._filter());let e={field:this.sortField,order:this.sortOrder};this.onSort.emit(e),this.tableService.onSort(e),this.updateSerializedValue()}}sortNodes(e){if(!(!e||e.length===0)){this.customSort?this.sortFunction.emit({data:e,mode:this.sortMode,field:this.sortField,order:this.sortOrder}):e.sort((r,n)=>{let o=Tr(r.data,this.sortField),a=Tr(n.data,this.sortField),s=0;return o==null&&a!=null?s=-1:o!=null&&a==null?s=1:o==null&&a==null?s=0:typeof o=="string"&&typeof a=="string"?s=o.localeCompare(a,void 0,{numeric:!0}):s=o<a?-1:o>a?1:0,this.sortOrder*s});for(let r of e)this.sortNodes(r.children)}}sortMultiple(){this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.sortMultipleNodes(this.value),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.updateSerializedValue(),this.tableService.onSort(this.multiSortMeta))}sortMultipleNodes(e){if(!(!e||e.length===0)){this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):e.sort((r,n)=>this.multisortField(r,n,this.multiSortMeta,0));for(let r of e)this.sortMultipleNodes(r.children)}}multisortField(e,r,n,o){if(Jl(this.multiSortMeta)||Jl(n[o]))return 0;let a=Tr(e.data,n[o].field),s=Tr(r.data,n[o].field),l=0;if(a==null&&s!=null?l=-1:a!=null&&s==null?l=1:a==null&&s==null&&(l=0),typeof a=="string"||a instanceof String){if(a.localeCompare&&a!=s)return n[o].order*a.localeCompare(s,void 0,{numeric:!0})}else l=a<s?-1:1;return a==s?n.length-1>o?this.multisortField(e,r,n,o+1):0:n[o].order*l}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length){for(let r=0;r<this.multiSortMeta.length;r++)if(this.multiSortMeta[r].field===e)return this.multiSortMeta[r]}return null}isSorted(e){if(this.sortMode==="single")return this.sortField&&this.sortField===e;if(this.sortMode==="multiple"){let r=!1;if(this.multiSortMeta){for(let n=0;n<this.multiSortMeta.length;n++)if(this.multiSortMeta[n].field==e){r=!0;break}}return r}}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}onLazyItemLoad(e){this.onLazyLoad.emit(pi(lt(lt({},this.createLazyLoadMetadata()),e),{rows:e.last-e.first}))}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.scrollableViewChild&&this.scrollableViewChild.scrollToVirtualIndex(e),this.scrollableFrozenViewChild&&this.scrollableViewChild.scrollToVirtualIndex(e)}scrollTo(e){this.scrollableViewChild&&this.scrollableViewChild.scrollTo(e),this.scrollableFrozenViewChild&&this.scrollableViewChild.scrollTo(e)}isEmpty(){let e=this.filteredNodes||this.value;return e==null||e.length==0}getBlockableElement(){return this.el.nativeElement.children[0]}onColumnResizeBegin(e){let r=uo(this.el?.nativeElement).left;this.lastResizerHelperX=e.pageX-r+this.el?.nativeElement.scrollLeft,e.preventDefault()}onColumnResize(e){let r=uo(this.el?.nativeElement).left;this.el?.nativeElement.setAttribute("data-p-unselectable-text","true"),!this.$unstyled()&&mT(this.el.nativeElement,{"user-select":"none"}),this.resizeHelperViewChild.nativeElement.style.height=this.el?.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-r+this.el?.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(e,r){let n=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,o=r.offsetWidth,a=o+n,s=r.style.minWidth||15;if(o+n>parseInt(s)){if(this.columnResizeMode==="fit"){let l=r.nextElementSibling;for(;!l.offsetParent;)l=l.nextElementSibling;if(l){let c=l.offsetWidth-n,d=l.style.minWidth||15;if(a>15&&c>parseInt(d))if(this.scrollable){let u=this.findParentScrollableView(r),h=Qt(u,'[data-pc-section="scrollablebody"] table')||Qt(u,'[data-pc-name="virtualscroller"] table'),g=Qt(u,'[data-pc-section="scrollableheadertable"]'),_=Qt(u,'[data-pc-section="scrollablefootertable"]'),y=Hd(r);this.resizeColGroup(g,y,a,c),this.resizeColGroup(h,y,a,c),this.resizeColGroup(_,y,a,c)}else r.style.width=a+"px",l&&(l.style.width=c+"px")}}else if(this.columnResizeMode==="expand")if(this.scrollable){let l=this.findParentScrollableView(r),c=Qt(l,'[data-pc-section="scrollablebody"]')||Qt(l,'[data-pc-name="virtualscroller"]'),d=Qt(l,'[data-pc-section="scrollableheader"]'),u=Qt(l,'[data-pc-section="scrollablefooter"]'),h=Qt(l,'[data-pc-section="scrollablebody"] table')||Qt(l,'[data-pc-name="virtualscroller"] table'),g=Qt(l,'[data-pc-section="scrollableheadertable"]'),_=Qt(l,'[data-pc-section="scrollablefootertable"]');h.style.width=h.offsetWidth+n+"px",g.style.width=g.offsetWidth+n+"px",_&&(_.style.width=_.offsetWidth+n+"px");let y=Hd(r),C=r?h.offsetWidth+n:a,x=r?g.offsetWidth+n:a,w=this.el?.nativeElement.offsetWidth>=C,E=(k,D,I,F)=>{k&&D&&(k.style.width=F?I+zd(c)+"px":"auto",D.style.width=I+"px")};E(c,h,C,w),E(d,g,x,w),E(u,_,x,w),this.resizeColGroup(g,y,a,null),this.resizeColGroup(h,y,a,null),this.resizeColGroup(_,y,a,null)}else{this.tableViewChild.nativeElement.style.width=this.tableViewChild?.nativeElement.offsetWidth+n+"px",r.style.width=a+"px";let l=this.tableViewChild?.nativeElement.style.width;this.el.nativeElement.style.width=l+"px"}this.onColResize.emit({element:r,delta:n})}this.resizeHelperViewChild.nativeElement.style.display="none",this.el.nativeElement.removeAttribute("data-p-unselectable-text"),!this.$unstyled()&&(this.el.nativeElement.style["user-select"]="")}findParentScrollableView(e){if(e){let r=e.parentElement;for(;r&&!Qt(r,'[data-pc-section="scrollableview"]');)r=r.parentElement;return r}else return null}resizeColGroup(e,r,n,o){if(e){let a=e.children[0].nodeName==="COLGROUP"?e.children[0]:null;if(a){let s=a.children[r],l=s.nextElementSibling;s.style.width=n+"px",l&&o&&(l.style.width=o+"px")}else throw"Scrollable tables require a colgroup to support resizable columns"}}onColumnDragStart(e,r){this.reorderIconWidth=Ud(this.reorderIndicatorUpViewChild?.nativeElement),this.reorderIconHeight=um(this.reorderIndicatorDownViewChild?.nativeElement),this.draggedColumn=r,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,r){if(this.reorderableColumns&&this.draggedColumn&&r){e.preventDefault();let n=uo(this.el?.nativeElement),o=uo(r);if(this.draggedColumn!=r){let a=o.left-n.left,s=n.top-o.top,l=o.left+r.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=o.top-n.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=o.top-n.top+r.offsetHeight+"px",e.pageX>l?(this.reorderIndicatorUpViewChild.nativeElement.style.left=a+r.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=a+r.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=a-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=a-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block"}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&(e.preventDefault(),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none")}onColumnDrop(e,r){if(e.preventDefault(),this.draggedColumn){let n=Xv.indexWithinGroup(this.draggedColumn,"ttreorderablecolumn"),o=Xv.indexWithinGroup(r,"ttreorderablecolumn"),a=n!=o;a&&(o-n==1&&this.dropPosition===-1||n-o==1&&this.dropPosition===1)&&(a=!1),a&&o<n&&this.dropPosition===1&&(o=o+1),a&&o>n&&this.dropPosition===-1&&(o=o-1),a&&(pT(this.columns,n,o),this.onColReorder.emit({dragIndex:n,dropIndex:o,columns:this.columns})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}handleRowClick(e){let r=e.originalEvent.target.nodeName;if(!(r=="INPUT"||r=="BUTTON"||r=="A"||vT(e.originalEvent.target))){if(this.selectionMode){this.preventSelectionSetterPropagation=!0;let n=e.rowNode,o=this.isSelected(n.node),a=this.rowTouched?!1:this.metaKeySelection,s=this.dataKey?String(Tr(n.node.data,this.dataKey)):null;if(a){let l=e.originalEvent,c=l.metaKey||l.ctrlKey;if(o&&c){if(this.isSingleSelectionMode())this._selection=null,this.selectedKeys={},this.selectionChange.emit(null);else{let d=this.findIndexInSelection(n.node);this._selection=this.selection.filter((u,h)=>h!=d),this.selectionChange.emit(this.selection),s&&delete this.selectedKeys[s]}this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:n.node,type:"row"})}else this.isSingleSelectionMode()?(this._selection=n.node,this.selectionChange.emit(n.node),s&&(this.selectedKeys={},this.selectedKeys[s]=1)):this.isMultipleSelectionMode()&&(c?this._selection=this.selection||[]:(this._selection=[],this.selectedKeys={}),this._selection=[...this.selection,n.node],this.selectionChange.emit(this.selection),s&&(this.selectedKeys[s]=1)),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:n.node,type:"row",index:e.rowIndex})}else if(this.selectionMode==="single")o?(this._selection=null,this.selectedKeys={},this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:n.node,type:"row"})):(this._selection=n.node,this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:n.node,type:"row",index:e.rowIndex}),s&&(this.selectedKeys={},this.selectedKeys[s]=1));else if(this.selectionMode==="multiple")if(o){let l=this.findIndexInSelection(n.node);this._selection=this.selection.filter((c,d)=>d!=l),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e.originalEvent,node:n.node,type:"row"}),s&&delete this.selectedKeys[s]}else this._selection=this.selection?[...this.selection,n.node]:[n.node],this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e.originalEvent,node:n.node,type:"row",index:e.rowIndex}),s&&(this.selectedKeys[s]=1);this.tableService.onSelectionChange()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){let r=e.rowNode.node,n=()=>{this.contextMenu.show(e.originalEvent),this.contextMenu.hideCallback=()=>{this.contextMenuSelection=null,this.contextMenuSelectionChange.emit(),this.tableService.onContextMenu(null)}};if(this.contextMenuSelectionMode==="separate")this.contextMenuSelection=r,this.contextMenuSelectionChange.emit(r),this.tableService.onContextMenu(r),n(),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:r});else if(this.contextMenuSelectionMode==="joint"){this.preventSelectionSetterPropagation=!0;let o=this.isSelected(r),a=this.dataKey?String(Tr(r.data,this.dataKey)):null;o||(this.isSingleSelectionMode()?(this.selection=r,this.selectionChange.emit(r)):this.isMultipleSelectionMode()&&(this.selection=[r],this.selectionChange.emit(this.selection)),a&&(this.selectedKeys[a]=1)),this.contextMenuSelection=r,this.contextMenuSelectionChange.emit(r),this.tableService.onContextMenu(r),n(),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,node:r})}}}toggleNodeWithCheckbox(e){this.selection=this.selection||[],this.preventSelectionSetterPropagation=!0;let r=e.rowNode.node;this.isSelected(r)?(this.propagateSelectionDown(r,!1),e.rowNode.parent&&this.propagateSelectionUp(r.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:r})):(this.propagateSelectionDown(r,!0),e.rowNode.parent&&this.propagateSelectionUp(r.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:r})),this.tableService.onSelectionChange()}toggleNodesWithCheckbox(e,r){let n=this.filteredNodes||this.value;this._selection=r&&n?n.slice():[],this.toggleAll(r),r||(this._selection=[],this.selectedKeys={}),this.preventSelectionSetterPropagation=!0,this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:r})}toggleAll(e){let r=this.filteredNodes||this.value;if(this.selectionKeys){if(r&&r.length){for(let n of r)this.propagateDown(n,e);this.selectionKeysChange.emit(this.selectionKeys)}}else if(r&&r.length)for(let n of r)this.propagateSelectionDown(n,e)}propagateSelectionUp(e,r){if(e.children&&e.children.length){let o=0,a=!1,s=this.dataKey?String(Tr(e.data,this.dataKey)):null;for(let l of e.children)this.isSelected(l)?o++:l.partialSelected&&(a=!0);if(r&&o==e.children.length)this._selection=[...this.selection||[],e],e.partialSelected=!1,s&&(this.selectedKeys[s]=1);else{if(!r){let l=this.findIndexInSelection(e);l>=0&&(this._selection=this.selection.filter((c,d)=>d!=l),s&&delete this.selectedKeys[s])}a||o>0&&o!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}}let n=e.parent;e.checked=r,n&&this.propagateSelectionUp(n,r)}propagateSelectionDown(e,r){let n=this.findIndexInSelection(e),o=this.dataKey?String(Tr(e.data,this.dataKey)):null;if(r&&n==-1?(this._selection=[...this.selection||[],e],o&&(this.selectedKeys[o]=1)):!r&&n>-1&&(this._selection=this.selection.filter((a,s)=>s!=n),o&&delete this.selectedKeys[o]),e.partialSelected=!1,e.checked=r,e.children&&e.children.length)for(let a of e.children)this.propagateSelectionDown(a,r)}isSelected(e){return e&&this.selection?this.dataKey?e.hasOwnProperty("checked")?e.checked:this.selectedKeys[Tr(e.data,this.dataKey)]!==void 0:Array.isArray(this.selection)?this.findIndexInSelection(e)>-1:this.equals(e,this.selection):!1}isNodeSelected(e){return this.selectionMode&&this.selectionKeys?this.selectionKeys[this.nodeKey(e)]?.checked===!0:!1}isNodePartialSelected(e){return this.selectionMode&&this.selectionKeys?this.selectionKeys[this.nodeKey(e)]?.partialChecked===!0:!1}nodeKey(e){return Tr(e,this.dataKey)||Tr(e?.data,this.dataKey)}toggleCheckbox(e){let{rowNode:r,check:n,originalEvent:o}=e,a=r.node;this.selectionKeys?(this.propagateDown(a,n),a.parent&&this.propagateUp(a.parent,n),this.selectionKeysChange.emit(this.selectionKeys)):this.toggleNodeWithCheckbox({originalEvent:o,rowNode:r}),this.tableService.onSelectionChange()}propagateDown(e,r){if(r?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:delete this.selectionKeys[this.nodeKey(e)],e.children&&e.children.length)for(let n of e.children)this.propagateDown(n,r)}propagateUp(e,r){let n=0,o=!1;for(let s of e.children)this.selectionKeys[this.nodeKey(s)]&&this.selectionKeys[this.nodeKey(s)].checked?n++:this.selectionKeys[this.nodeKey(s)]&&this.selectionKeys[this.nodeKey(s)].partialChecked&&(o=!0);r&&n===e.children.length?this.selectionKeys[this.nodeKey(e)]={checked:!0,partialChecked:!1}:(r||delete this.selectionKeys[this.nodeKey(e)],o||n>0&&n!==e.children.length?this.selectionKeys[this.nodeKey(e)]={checked:!1,partialChecked:!0}:this.selectionKeys[this.nodeKey(e)]={checked:!1,partialChecked:!1});let a=e.parent;a&&this.propagateUp(a,r)}findIndexInSelection(e){let r=-1;if(this.selection&&this.selection.length){for(let n=0;n<this.selection.length;n++)if(this.equals(e,this.selection[n])){r=n;break}}return r}isSingleSelectionMode(){return this.selectionMode==="single"}isMultipleSelectionMode(){return this.selectionMode==="multiple"}equals(e,r){return this.compareSelectionBy==="equals"?jv(e,r):jv(e.data,r.data,this.dataKey)}filter(e,r,n){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[r]&&delete this.filters[r]:this.filters[r]={value:e,matchMode:n},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay)}filterGlobal(e,r){this.filter(e,"global",r)}isFilterBlank(e){return e!=null?!!(typeof e=="string"&&e.trim().length==0||Array.isArray(e)&&e.length==0):!0}_filter(){if(this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(!this.hasFilter())this.filteredNodes=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0);else{let r;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");r=this.globalFilterFields||this.columns}this.filteredNodes=[];let n=this.filterMode==="strict",o=!1;for(let a of this.value){let s=lt({},a),l=!0,c=!1,d;for(let h in this.filters)if(this.filters.hasOwnProperty(h)&&h!=="global"){let g=this.filters[h],_=h,y=g.value,C=g.matchMode||"startsWith",x=this.filterService.filters[C];if(d={filterField:_,filterValue:y,filterConstraint:x,isStrictMode:n},(n&&!(this.findFilteredNodes(s,d)||this.isFilterMatched(s,d))||!n&&!(this.isFilterMatched(s,d)||this.findFilteredNodes(s,d)))&&(l=!1),!l)break}if(this.filters.global&&!c&&r){let h=lt({},s),g,_=this.filters.global.value,y=this.filterService.filters[this.filters.global.matchMode];d={filterField:g,filterValue:_,filterConstraint:y,isStrictMode:n,globalFilterFieldsArray:r},(n&&(this.findFilteredNodes(h,d)||this.isFilterMatched(h,d))||!n&&(this.isFilterMatched(h,d)||this.findFilteredNodes(h,d)))&&(c=!0,s=h)}let u=l;this.filters.global&&(u=l&&c),u&&this.filteredNodes.push(s),o=o||!l||c||l&&this.filteredNodes.length>0||!c&&this.filteredNodes.length===0}o||(this.filteredNodes=null),this.paginator&&(this.totalRecords=this.filteredNodes?this.filteredNodes.length:this.value?this.value.length:0)}this.cd.markForCheck()}this.first=0;let e=this.filteredNodes||this.value;this.onFilter.emit({filters:this.filters,filteredValue:e}),this.tableService.onUIUpdate(e),this.updateSerializedValue(),this.scrollable&&this.resetScrollTop()}findFilteredNodes(e,r){if(e){let n=!1;if(e.children){let o=[...e.children];e.children=[];for(let a of o){let s=lt({},a);this.isFilterMatched(s,r)&&(n=!0,e.children.push(s))}}if(n)return!0}}isFilterMatched(e,r){let{filterField:n,filterValue:o,filterConstraint:a,isStrictMode:s,globalFilterFieldsArray:l}=r,c=!1,d=u=>a(Tr(e.data,u),o,this.filterLocale);return c=l?.length?l.some(u=>d(u.field||u)):d(n),(!c||s&&!this.isNodeLeaf(e))&&(c=this.findFilteredNodes(e,{filterField:n,filterValue:o,filterConstraint:a,isStrictMode:s,globalFilterFieldsArray:l})||c),c}isNodeLeaf(e){return e.leaf===!1?!1:!(e.children&&e.children.length)}hasFilter(){let e=!0;for(let r in this.filters)if(this.filters.hasOwnProperty(r)){e=!1;break}return!e}reset(){this._sortField=null,this._sortOrder=1,this._multiSortMeta=null,this.tableService.onSort(null),this.filteredNodes=null,this.filters={},this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}updateEditingCell(e,r,n){this.editingCell=e,this.editingCellData=r,this.editingCellField=n,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&ec(this.editingCell,".ng-invalid.ng-dirty").length===0}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=this.renderer.listen(this.document,"click",e=>{this.editingCell&&!this.editingCellClick&&this.isEditingCellValid()&&(!this.$unstyled()&&pm(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData}),this.editingCellField=null,this.editingCellData=null,this.unbindDocumentEditListener()),this.editingCellClick=!1}))}unbindDocumentEditListener(){this.documentEditListener&&(this.documentEditListener(),this.documentEditListener=null)}onDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.editingCellField=null,this.editingCellData=null,this.initialized=null}get dataP(){return this.cn({scrollable:this.scrollable,"flex-scrollable":this.scrollable&&this.scrollHeight==="flex",loading:this.loading,empty:this.isEmpty()})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=si(i)))(n||i)}})();static \u0275cmp=K({type:i,selectors:[["p-treeTable"],["p-treetable"],["p-tree-table"]],contentQueries:function(r,n,o){if(r&1&&Qr(o,qG,4)(o,jG,4)(o,YG,4)(o,KG,4)(o,$G,4)(o,ZG,4)(o,QG,4)(o,XG,4)(o,JG,4)(o,eq,4)(o,tq,4)(o,iq,4)(o,rq,4)(o,nq,4)(o,oq,4)(o,aq,4)(o,sq,4)(o,lq,4)(o,cq,4)(o,dq,4)(o,pq,4)(o,uq,4)(o,mq,4)(o,fq,4)(o,hq,4)(o,gq,4)(o,Gi,4),r&2){let a;Ce(a=Se())&&(n._colGroupTemplate=a.first),Ce(a=Se())&&(n._captionTemplate=a.first),Ce(a=Se())&&(n._headerTemplate=a.first),Ce(a=Se())&&(n._bodyTemplate=a.first),Ce(a=Se())&&(n._footerTemplate=a.first),Ce(a=Se())&&(n._summaryTemplate=a.first),Ce(a=Se())&&(n._emptyMessageTemplate=a.first),Ce(a=Se())&&(n._paginatorLeftTemplate=a.first),Ce(a=Se())&&(n._paginatorRightTemplate=a.first),Ce(a=Se())&&(n._paginatorDropdownItemTemplate=a.first),Ce(a=Se())&&(n._frozenHeaderTemplate=a.first),Ce(a=Se())&&(n._frozenBodyTemplate=a.first),Ce(a=Se())&&(n._frozenFooterTemplate=a.first),Ce(a=Se())&&(n._frozenColGroupTemplate=a.first),Ce(a=Se())&&(n._loadingIconTemplate=a.first),Ce(a=Se())&&(n._reorderIndicatorUpIconTemplate=a.first),Ce(a=Se())&&(n._reorderIndicatorDownIconTemplate=a.first),Ce(a=Se())&&(n._sortIconTemplate=a.first),Ce(a=Se())&&(n._checkboxIconTemplate=a.first),Ce(a=Se())&&(n._headerCheckboxIconTemplate=a.first),Ce(a=Se())&&(n._togglerIconTemplate=a.first),Ce(a=Se())&&(n._paginatorFirstPageLinkIconTemplate=a.first),Ce(a=Se())&&(n._paginatorLastPageLinkIconTemplate=a.first),Ce(a=Se())&&(n._paginatorPreviousPageLinkIconTemplate=a.first),Ce(a=Se())&&(n._paginatorNextPageLinkIconTemplate=a.first),Ce(a=Se())&&(n._loaderTemplate=a.first),Ce(a=Se())&&(n.templates=a)}},viewQuery:function(r,n){if(r&1&&Ui(vq,5)(_q,5)(bq,5)(yq,5)(xq,5)(Cq,5),r&2){let o;Ce(o=Se())&&(n.resizeHelperViewChild=o.first),Ce(o=Se())&&(n.reorderIndicatorUpViewChild=o.first),Ce(o=Se())&&(n.reorderIndicatorDownViewChild=o.first),Ce(o=Se())&&(n.tableViewChild=o.first),Ce(o=Se())&&(n.scrollableViewChild=o.first),Ce(o=Se())&&(n.scrollableFrozenViewChild=o.first)}},hostVars:4,hostBindings:function(r,n){r&2&&(Ge("data-p",n.dataP)("data-scrollselectors",".p-treetable-scrollable-body"),_e(n.cn(n.cx("root"),n.styleClass)))},inputs:{columns:"columns",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",autoLayout:[2,"autoLayout","autoLayout",ot],lazy:[2,"lazy","lazy",ot],lazyLoadOnInit:[2,"lazyLoadOnInit","lazyLoadOnInit",ot],paginator:[2,"paginator","paginator",ot],rows:[2,"rows","rows",wi],first:[2,"first","first",wi],pageLinks:[2,"pageLinks","pageLinks",wi],rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:[2,"alwaysShowPaginator","alwaysShowPaginator",ot],paginatorPosition:"paginatorPosition",paginatorStyleClass:"paginatorStyleClass",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:[2,"showCurrentPageReport","showCurrentPageReport",ot],showJumpToPageDropdown:[2,"showJumpToPageDropdown","showJumpToPageDropdown",ot],showFirstLastIcon:[2,"showFirstLastIcon","showFirstLastIcon",ot],showPageLinks:[2,"showPageLinks","showPageLinks",ot],defaultSortOrder:[2,"defaultSortOrder","defaultSortOrder",wi],sortMode:"sortMode",resetPageOnSort:[2,"resetPageOnSort","resetPageOnSort",ot],customSort:[2,"customSort","customSort",ot],selectionMode:"selectionMode",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:[2,"metaKeySelection","metaKeySelection",ot],compareSelectionBy:"compareSelectionBy",rowHover:[2,"rowHover","rowHover",ot],loading:[2,"loading","loading",ot],loadingIcon:"loadingIcon",showLoader:[2,"showLoader","showLoader",ot],scrollable:[2,"scrollable","scrollable",ot],scrollHeight:"scrollHeight",virtualScroll:[2,"virtualScroll","virtualScroll",ot],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",wi],virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:[2,"virtualScrollDelay","virtualScrollDelay",wi],frozenWidth:"frozenWidth",frozenColumns:"frozenColumns",resizableColumns:[2,"resizableColumns","resizableColumns",ot],columnResizeMode:"columnResizeMode",reorderableColumns:[2,"reorderableColumns","reorderableColumns",ot],contextMenu:"contextMenu",rowTrackBy:"rowTrackBy",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:[2,"filterDelay","filterDelay",wi],filterMode:"filterMode",filterLocale:"filterLocale",paginatorLocale:"paginatorLocale",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",value:"value",virtualRowHeight:"virtualRowHeight",selectionKeys:"selectionKeys",showGridlines:[2,"showGridlines","showGridlines",ot]},outputs:{selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onFilter:"onFilter",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onPage:"onPage",onSort:"onSort",onLazyLoad:"onLazyLoad",sortFunction:"sortFunction",onColResize:"onColResize",onColReorder:"onColReorder",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onContextMenuSelect:"onContextMenuSelect",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",selectionKeysChange:"selectionKeysChange"},standalone:!1,features:[wr([fy,wa,{provide:hY,useExisting:i},{provide:va,useExisting:i}]),ua([ri]),Ke],decls:10,vars:10,consts:[["table",""],["scrollableView",""],["scrollableFrozenView",""],["resizeHelper",""],["reorderIndicatorUp",""],["reorderIndicatorDown",""],[3,"pBind","class",4,"ngIf"],[3,"pt","rows","first","totalRecords","pageLinkSize","styleClass","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","locale","unstyled","onPageChange",4,"ngIf"],[3,"pBind","class","display",4,"ngIf"],[3,"pBind"],[3,"class",4,"ngIf"],[4,"ngIf"],["data-p-icon","spinner",3,"spin","class",4,"ngIf"],["data-p-icon","spinner",3,"spin"],[4,"ngTemplateOutlet"],[3,"onPageChange","pt","rows","first","totalRecords","pageLinkSize","styleClass","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","appendTo","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","locale","unstyled"],["pTemplate","firstpagelinkicon"],["pTemplate","previouspagelinkicon"],["pTemplate","lastpagelinkicon"],["pTemplate","nextpagelinkicon"],["role","treegrid",3,"pBind","ngClass","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",3,"pBind"],["role","rowgroup",3,"pBind","unstyled","pTreeTableBody","pTreeTableBodyTemplate"],[3,"ngClass","ttScrollableView","unstyled","frozen","ngStyle","scrollHeight","pBind",4,"ngIf"],[3,"pBind","ttScrollableView","unstyled","frozen","scrollHeight","ngStyle"],[3,"ngClass","ttScrollableView","unstyled","frozen","ngStyle","scrollHeight","pBind"],["data-p-icon","arrow-down",4,"ngIf"],["data-p-icon","arrow-down"],["data-p-icon","arrow-up",4,"ngIf"],["data-p-icon","arrow-up"]],template:function(r,n){r&1&&M(0,Fq,3,5,"div",6)(1,Lq,2,4,"div",6)(2,Yq,5,23,"p-paginator",7)(3,Qq,9,30,"div",6)(4,Jq,4,15,"div",6)(5,uj,5,23,"p-paginator",7)(6,fj,2,4,"div",6)(7,hj,2,5,"div",8)(8,bj,4,7,"span",8)(9,Sj,4,7,"span",8),r&2&&(b("ngIf",n.loading&&n.showLoader),v(),b("ngIf",n.captionTemplate||n._captionTemplate),v(),b("ngIf",n.paginator&&(n.paginatorPosition==="top"||n.paginatorPosition=="both")),v(),b("ngIf",!n.scrollable),v(),b("ngIf",n.scrollable),v(),b("ngIf",n.paginator&&(n.paginatorPosition==="bottom"||n.paginatorPosition=="both")),v(),b("ngIf",n.summaryTemplate||n._summaryTemplate),v(),b("ngIf",n.resizableColumns),v(),b("ngIf",n.reorderableColumns),v(),b("ngIf",n.reorderableColumns))},dependencies:()=>[_t,ge,ci,fa,Vr,Gi,s_,r_,n_,ri,gY,dk],encapsulation:2})}return i})(),dk=(()=>{class i extends Xr{tt;treeTableService;columns;template;frozen;serializedNodes;scrollerOptions;subscription;constructor(e,r){super(),this.tt=e,this.treeTableService=r,this.subscription=this.tt.tableService.uiUpdateSource$.subscribe(()=>{this.tt.virtualScroll&&this.cd.detectChanges()})}getScrollerOption(e,r){return this.tt.virtualScroll?(r=r||this.scrollerOptions,r?r[e]:null):null}getRowIndex(e){let r=this.getScrollerOption("getItemOptions");return r?r(e).index:e}onDestroy(){this.subscription&&this.subscription.unsubscribe()}get dataP(){return this.cn({hoverable:this.tt.rowHover||this.tt.selectionMode,frozen:this.frozen})}static \u0275fac=function(r){return new(r||i)(N(Es),N(fy))};static \u0275cmp=K({type:i,selectors:[["","pTreeTableBody",""]],hostVars:1,hostBindings:function(r,n){r&2&&Ge("data-p",n.dataP)},inputs:{columns:[0,"pTreeTableBody","columns"],template:[0,"pTreeTableBodyTemplate","template"],frozen:[2,"frozen","frozen",ot],serializedNodes:"serializedNodes",scrollerOptions:"scrollerOptions"},standalone:!1,features:[Ke],attrs:wj,decls:2,vars:3,consts:[["ngFor","",3,"ngForOf","ngForTrackBy"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,n){r&1&&M(0,Dj,1,1,"ng-template",0)(1,Pj,2,5,"ng-container",1),r&2&&(b("ngForOf",n.serializedNodes||n.tt.serializedValue)("ngForTrackBy",n.tt.rowTrackBy),v(),b("ngIf",n.tt.isEmpty()))},dependencies:[jl,ge,ci],encapsulation:2})}return i})(),gY=(()=>{class i extends Xr{tt;zone;hostName="TreeTable";columns;frozen;scrollHeaderViewChild;scrollHeaderBoxViewChild;scrollBodyViewChild;scrollTableViewChild;scrollLoadingTableViewChild;scrollFooterViewChild;scrollFooterBoxViewChild;scrollableAlignerViewChild;scroller;headerScrollListener;bodyScrollListener;footerScrollListener;frozenSiblingBody;totalRecordsSubscription;_scrollHeight;preventBodyScrollPropagation;_componentStyle=ie(wa);get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e,e!=null&&(e.includes("%")||e.includes("calc"))&&console.log('Percentage scroll height calculation is removed in favor of the more performant CSS based flex mode, use scrollHeight="flex" instead.')}constructor(e,r){super(),this.tt=e,this.zone=r}onAfterViewInit(){if(Hi(this.platformId)){if(this.frozen)this.scrollableAlignerViewChild&&this.scrollableAlignerViewChild.nativeElement&&(this.scrollableAlignerViewChild.nativeElement.style.height=hT()+"px");else{(this.tt.frozenColumns||this.tt.frozenBodyTemplate||this.tt._frozenBodyTemplate)&&xs(this.el.nativeElement,"p-treetable-unfrozen-view");let e=this.el.nativeElement.previousElementSibling;if(e&&(this.tt.virtualScroll?this.frozenSiblingBody=Qt(e,'[data-pc-name="virtualscroller"]'):this.frozenSiblingBody=Qt(e,'[data-pc-section="scrollablebody"]')),this.scrollHeight){let r=zd();this.scrollHeaderBoxViewChild?.nativeElement&&(this.scrollHeaderBoxViewChild.nativeElement.style.paddingRight=r+"px"),this.scrollFooterBoxViewChild&&this.scrollFooterBoxViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.paddingRight=r+"px")}}this.bindEvents()}}bindEvents(){Hi(this.platformId)&&this.zone.runOutsideAngular(()=>{this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.headerScrollListener=this.renderer.listen(this.scrollHeaderBoxViewChild?.nativeElement,"scroll",this.onHeaderScroll.bind(this))),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.footerScrollListener=this.renderer.listen(this.scrollFooterViewChild.nativeElement,"scroll",this.onFooterScroll.bind(this))),this.frozen||(this.tt.virtualScroll?this.bodyScrollListener=this.renderer.listen((this.scroller?.getElementRef()).nativeElement,"scroll",this.onBodyScroll.bind(this)):this.bodyScrollListener=this.renderer.listen(this.scrollBodyViewChild?.nativeElement,"scroll",this.onBodyScroll.bind(this)))})}unbindEvents(){Hi(this.platformId)&&(this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&this.headerScrollListener&&(this.headerScrollListener(),this.headerScrollListener=null),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&this.footerScrollListener&&(this.footerScrollListener(),this.footerScrollListener=null),this.scrollBodyViewChild&&this.scrollBodyViewChild.nativeElement&&this.bodyScrollListener&&(this.bodyScrollListener(),this.bodyScrollListener=null),this.scroller&&this.scroller.getElementRef()&&this.bodyScrollListener&&(this.bodyScrollListener(),this.bodyScrollListener=null))}onHeaderScroll(){let e=this.scrollHeaderViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=e,this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterViewChild.nativeElement.scrollLeft=e),this.preventBodyScrollPropagation=!0}onFooterScroll(){let e=this.scrollFooterViewChild?.nativeElement.scrollLeft;this.scrollBodyViewChild.nativeElement.scrollLeft=e,this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.scrollHeaderViewChild.nativeElement.scrollLeft=e),this.preventBodyScrollPropagation=!0}onBodyScroll(e){if(this.preventBodyScrollPropagation){this.preventBodyScrollPropagation=!1;return}this.scrollHeaderViewChild&&this.scrollHeaderViewChild.nativeElement&&(this.scrollHeaderBoxViewChild.nativeElement.style.marginLeft=-1*e.target.scrollLeft+"px"),this.scrollFooterViewChild&&this.scrollFooterViewChild.nativeElement&&(this.scrollFooterBoxViewChild.nativeElement.style.marginLeft=-1*e.target.scrollLeft+"px"),this.frozenSiblingBody&&(this.frozenSiblingBody.scrollTop=e.target.scrollTop)}scrollToVirtualIndex(e){this.scroller&&this.scroller.scrollToIndex(e)}scrollTo(e){this.scroller?this.scroller.scrollTo(e):this.scrollBodyViewChild?.nativeElement.scrollTo?this.scrollBodyViewChild.nativeElement.scrollTo(e):(this.scrollBodyViewChild.nativeElement.scrollLeft=e.left,this.scrollBodyViewChild.nativeElement.scrollTop=e.top)}onDestroy(){this.unbindEvents(),this.frozenSiblingBody=null}static \u0275fac=function(r){return new(r||i)(N(Es),N(Si))};static \u0275cmp=K({type:i,selectors:[["","ttScrollableView",""]],viewQuery:function(r,n){if(r&1&&Ui(Fj,5)(Rj,5)(Lj,5)(Oj,5)(Aj,5)(Bj,5)(Nj,5)(Vj,5)(zj,5),r&2){let o;Ce(o=Se())&&(n.scrollHeaderViewChild=o.first),Ce(o=Se())&&(n.scrollHeaderBoxViewChild=o.first),Ce(o=Se())&&(n.scrollBodyViewChild=o.first),Ce(o=Se())&&(n.scrollTableViewChild=o.first),Ce(o=Se())&&(n.scrollLoadingTableViewChild=o.first),Ce(o=Se())&&(n.scrollFooterViewChild=o.first),Ce(o=Se())&&(n.scrollFooterBoxViewChild=o.first),Ce(o=Se())&&(n.scrollableAlignerViewChild=o.first),Ce(o=Se())&&(n.scroller=o.first)}},inputs:{columns:[0,"ttScrollableView","columns"],frozen:[2,"frozen","frozen",ot],scrollHeight:"scrollHeight"},standalone:!1,features:[wr([wa]),Ke],attrs:Uj,decls:13,vars:24,consts:[["scrollHeader",""],["scrollHeaderBox",""],["buildInItems",""],["scroller",""],["content",""],["loader",""],["scrollBody",""],["scrollTable",""],["scrollableAligner",""],["scrollFooter",""],["scrollFooterBox",""],[3,"pBind"],[3,"pBind","ngStyle"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","rowgroup",3,"pBind"],[3,"items","styleClass","style","scrollHeight","itemSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"onLazyLoad","items","styleClass","scrollHeight","itemSize","lazy","options","pt"],["role","treegrid",3,"pBind","ngClass","ngStyle"],["role","rowgroup",3,"pBind","pTreeTableBody","unstyled","pTreeTableBodyTemplate","serializedNodes","frozen"],[3,"background-color",4,"ngIf"],[3,"ngClass","ngStyle","pBind"]],template:function(r,n){r&1&&(p(0,"div",11,0)(2,"div",11,1)(4,"table",12),M(5,jj,1,0,"ng-container",13),p(6,"thead",14),M(7,Yj,1,0,"ng-container",13),m()()()(),M(8,Jj,5,12,"p-scroller",15)(9,tY,4,13,"ng-container",16)(10,nY,5,21,"ng-template",null,2,de)(12,sY,8,22,"div",17)),r&2&&(_e(n.cx("scrollableHeader")),b("pBind",n.ptm("scrollableHeader")),v(2),_e(n.cx("scrollableHeaderBox")),b("pBind",n.ptm("scrollableHeaderBox")),v(2),_e(n.cn(n.cx("scrollableHeaderTable"),n.tt.tableStyleClass)),b("pBind",n.ptm("scrollableHeaderTable"))("ngStyle",n.tt.tableStyle),v(),b("ngTemplateOutlet",n.frozen?n.tt.frozenColGroupTemplate||n.tt._frozenColGroupTemplate||n.tt.colGroupTemplate||n.tt._colGroupTemplate:n.tt.colGroupTemplate||n.tt._colGroupTemplate)("ngTemplateOutletContext",te(20,Ho,n.columns)),v(),_e(n.cx("thead")),b("pBind",n.ptm("thead")),v(),b("ngTemplateOutlet",n.frozen?n.tt.frozenHeaderTemplate||n.tt._frozenHeaderTemplate||n.tt.headerTemplate||n.tt._headerTemplate:n.tt.headerTemplate||n.tt._headerTemplate)("ngTemplateOutletContext",te(22,Ho,n.columns)),v(),b("ngIf",n.tt.virtualScroll),v(),b("ngIf",!n.tt.virtualScroll),v(3),b("ngIf",n.tt.footerTemplate||n.tt._footerTemplate))},dependencies:()=>[_t,ge,ci,fa,c_,ri,dk],encapsulation:2})}return i})();var pk=(()=>{class i extends Xr{tt;el;zone;hostName="TreeTable";bindDirectiveInstance=ie(ri,{self:!0});treeTable=ie(Es);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("row",this.ptmOptions()))}get level(){return this.rowNode?.level+1}get styleClass(){return this.rowNode?.node.styleClass||""}get expanded(){return this.rowNode?.node.expanded}rowNode;_componentStyle=ie(wa);constructor(e,r,n){super(),this.tt=e,this.el=r,this.zone=n}onKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"Tab":this.onTabKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;default:break}}onArrowDownKey(e){let r=this.el?.nativeElement?.nextElementSibling;r&&this.focusRowChange(e.currentTarget,r),e.preventDefault()}onArrowUpKey(e){let r=this.el?.nativeElement?.previousElementSibling;r&&this.focusRowChange(e.currentTarget,r),e.preventDefault()}onArrowRightKey(e){let r=e.currentTarget;!(Qt(r,"button").style.visibility==="hidden")&&!this.expanded&&this.rowNode.node.children&&(this.expand(e),r.tabIndex=-1),e.preventDefault()}onArrowLeftKey(e){let r=this.tt.el?.nativeElement,n=ec(r,'[aria-expanded="true"]'),o=n[n.length-1];this.expanded&&this.collapse(e),o&&(this.tt.toggleRowIndex=Hd(o)),this.restoreFocus(),e.preventDefault()}onHomeKey(e){let r=Qt(this.tt.el?.nativeElement,`tr[aria-level="${this.level}"]`);r&&zo(r),e.preventDefault()}onEndKey(e){let r=ec(this.tt.el?.nativeElement,`tr[aria-level="${this.level}"]`),n=r[r.length-1];zo(n),e.preventDefault()}onTabKey(e){let r=this.el.nativeElement?[...ec(this.el.nativeElement.parentNode,"tr")]:void 0;if(r&&co(r)){let n=r.some(o=>Zv(o,"data-p-highlight")||o.getAttribute("aria-selected")==="true");if(r.forEach(o=>{o.tabIndex=-1}),n){let o=r.filter(a=>Zv(a,"data-p-highlight")||a.getAttribute("aria-selected")==="true");o[0].tabIndex=0;return}r[0].tabIndex=0}}expand(e){this.tt.toggleRowIndex=Hd(this.el.nativeElement),this.rowNode.node.expanded=!0,this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),this.rowNode.node.children?this.restoreFocus(this.tt.toggleRowIndex+1):this.restoreFocus(),this.tt.onNodeExpand.emit({originalEvent:e,node:this.rowNode.node})}collapse(e){this.rowNode.node.expanded=!1,this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),this.tt.onNodeCollapse.emit({originalEvent:e,node:this.rowNode.node})}focusRowChange(e,r,n){e.tabIndex="-1",r.tabIndex="0",zo(r)}restoreFocus(e){this.zone.runOutsideAngular(()=>{setTimeout(()=>{let r=this.tt.el?.nativeElement,o=Qt(r,'[data-pc-section="tbody"]')?.children?.[e||this.tt.toggleRowIndex||0],a=[...ec(r,"tr")];a&&a.forEach(s=>{o&&!o.isSameNode(s)&&(s.tabIndex=-1)}),o&&(o.tabIndex=0,o.focus())},25)})}ptmOptions(){return{context:{selectable:this.treeTable?.rowHover||this.treeTable.selectionMode==="row",selected:this.treeTable.isSelected(this.rowNode?.node),scrollable:this.treeTable?.scrollable,rowNode:this.rowNode}}}static \u0275fac=function(r){return new(r||i)(N(Es),N(Cr),N(Si))};static \u0275dir=Sr({type:i,selectors:[["","ttRow",""]],hostAttrs:["role","row"],hostVars:5,hostBindings:function(r,n){r&1&&R("keydown",function(a){return n.onKeyDown(a)}),r&2&&(lo("tabIndex","0"),Ge("aria-expanded",n.expanded)("aria-level",n.level),_e("p-element "+n.styleClass))},inputs:{rowNode:[0,"ttRow","rowNode"]},standalone:!1,features:[wr([wa]),ua([ri]),Ke]})}return i})(),uk=(()=>{class i extends Xr{tt;hostName="TreeTable";bindDirectiveInstance=ie(ri,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptm("toggler"))}rowNode;_componentStyle=ie(wa);
1799constructor(e){super(),this.tt=e}get toggleButtonAriaLabel(){return this.config.translation?this.rowNode.expanded?this.config.translation?.aria?.collapseRow:this.config.translation?.aria?.expandRow:void 0}onClick(e){this.rowNode.node.expanded=!this.rowNode.node.expanded,this.rowNode.node.expanded?this.tt.onNodeExpand.emit({originalEvent:e,node:this.rowNode.node}):this.tt.onNodeCollapse.emit({originalEvent:e,node:this.rowNode.node}),this.tt.updateSerializedValue(),this.tt.tableService.onUIUpdate(this.tt.value),e.preventDefault()}static \u0275fac=function(r){return new(r||i)(N(Es))};static \u0275cmp=K({type:i,selectors:[["p-treeTableToggler"],["p-treetabletoggler"],["p-treetable-toggler"]],inputs:{rowNode:"rowNode"},standalone:!1,features:[wr([wa]),ua([ri]),Ke],decls:3,vars:14,consts:[["type","button","tabindex","-1","pRipple","",3,"click","pBind"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","chevron-down",3,"pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"pBind"],["data-p-icon","chevron-right",3,"pBind"]],template:function(r,n){r&1&&(p(0,"button",0),R("click",function(a){return n.onClick(a)}),M(1,dY,3,2,"ng-container",1)(2,uY,1,0,null,2),m()),r&2&&(_e(n.cx("toggler")),Wn("visibility",n.rowNode.node.leaf===!1||n.rowNode.node.children&&n.rowNode.node.children.length?"visible":"hidden")("margin-inline-start",n.rowNode.level*16+"px"),b("pBind",n.ptm("rowToggleButton")),Ge("data-pc-group-section","rowactionbutton")("aria-label",n.toggleButtonAriaLabel),v(),b("ngIf",!n.tt.togglerIconTemplate&&!n.tt._togglerIconTemplate),v(),b("ngTemplateOutlet",n.tt.togglerIconTemplate||n.tt._togglerIconTemplate)("ngTemplateOutletContext",te(12,Ho,n.rowNode.node.expanded)))},dependencies:()=>[ge,ci,xm,o_,a_,ri],encapsulation:2})}return i})(),mk=(()=>{class i{static \u0275fac=function(r){return new(r||i)};static \u0275mod=so({type:i});static \u0275inj=ao({imports:[Vt,tE,c_,s_,r_,n_,HT,GT,WT,qd,UT,o_,a_,eE,mo,yt,Wd,mo]})}return i})();var _Y=()=>[];function bY(i,t){i&1&&(p(0,"tr"),T(1,"th",18),p(2,"th",19),f(3,"Mineral "),T(4,"p-sortIcon",20),m(),p(5,"th",21),f(6,"Quantity "),T(7,"p-sortIcon",22),m(),p(8,"th",23),f(9,"Volume (m3) "),T(10,"p-sortIcon",24),m(),p(11,"th",25),f(12,"Buy (total) "),T(13,"p-sortIcon",26),m(),p(14,"th",27),f(15,"Sell (total) "),T(16,"p-sortIcon",28),m()())}function yY(i,t){if(i&1&&(p(0,"tr")(1,"td"),T(2,"img",29),m(),p(3,"td"),f(4),m(),p(5,"td"),f(6),G(7,"numericFormatter"),m(),T(8,"td",12),G(9,"numericFormatter"),p(10,"td"),T(11,"span",12),G(12,"shortPrice"),p(13,"span",13),f(14," ISK"),m()(),p(15,"td"),T(16,"span",12),G(17,"shortPrice"),p(18,"span",13),f(19," ISK"),m()()()),i&2){let e=t.$implicit;v(2),b("src",Q("https://images.evetech.net/types/",e.typeId,"/icon?size=32"),re)("alt",De(e.name)),v(2),$(e.name),v(2),$(ee(7,9,e.amount," ",0)),v(2),b("innerHTML",ee(9,13,e.volume," ",2),ke),v(3),b("innerHTML",Ne(12,17,e.buyPrice,""),ke),v(5),b("innerHTML",Ne(17,20,e.sellPrice,""),ke)}}function xY(i,t){i&1&&(p(0,"tr")(1,"th"),f(2,"Ore/Mineral"),m(),p(3,"th"),f(4,"Recovered"),m(),p(5,"th"),f(6,"Lost"),m(),p(7,"th"),f(8,"Total"),m()())}function CY(i,t){if(i&1&&(p(0,"span",32),f(1),G(2,"numericFormatter"),m()),i&2){let e=S().rowData;S();let r=Ve(56);b("ewbTooltip",r)("tooltipData",e),v(),V(" ",ee(2,3,e.yieldPercentage," ",1),"% ")}}function SY(i,t){if(i&1&&(p(0,"tr",30)(1,"td"),T(2,"p-treeTableToggler",31)(3,"img",29),f(4),H(5,CY,3,7,"span",32),m(),p(6,"td"),f(7),G(8,"numericFormatter"),m(),p(9,"td"),f(10),G(11,"numericFormatter"),m(),p(12,"td"),f(13),G(14,"numericFormatter"),m()()),i&2){let e=t.$implicit,r=t.rowData;b("ttRow",e),v(2),b("rowNode",e),v(),b("src",Q("https://images.evetech.net/types/",r.typeId,"/icon?size=32"),re)("alt",De(r.name)),v(),V(" ",r.name," "),v(),W(r.yieldPercentage!=null?5:-1),v(2),$(ee(8,11,r.recovered," ",0)),v(3),$(ee(11,15,r.lost," ",0)),v(3),$(ee(14,19,r.total," ",0))}}function wY(i,t){if(i&1&&(p(0,"div",36),f(1),G(2,"numericFormatter"),m()),i&2){let e=S(2).data;v(),V("\xD7",ee(2,1,e.implantBonus," ",2)," bonus from Implant")}}function TY(i,t){if(i&1&&(p(0,"div",36),f(1),G(2,"numericFormatter"),m(),p(3,"div",36),f(4),G(5,"numericFormatter"),m(),p(6,"div",36),f(7),G(8,"numericFormatter"),m(),H(9,wY,3,5,"div",36)),i&2){let e=S().data;
1799v(),V("\xD7",ee(2,4,e.oreProcessingBonus," ",2)," bonus from Ore Processing skills average"),v(3),V("\xD7",ee(5,8,e.reprocessingBonus," ",2)," bonus from Reprocessing"),v(3),V("\xD7",ee(8,12,e.reprocessingEfficiencyBonus," ",2)," bonus from Reprocessing Efficiency"),v(2),W(e.implantBonus>1?9:-1)}}function EY(i,t){if(i&1&&(p(0,"div",36),f(1),G(2,"numericFormatter"),m()),i&2){let e=S().data;v(),V("\xD7",ee(2,1,e.scrapMetalBonus," ",2)," bonus from Scrapmetal Processing")}}function kY(i,t){if(i&1&&(p(0,"div",33)(1,"div",34),f(2),G(3,"numericFormatter"),m(),p(4,"div",35),f(5),m(),p(6,"div",36),f(7),G(8,"numericFormatter"),m(),H(9,TY,10,16)(10,EY,3,5,"div",36),m()),i&2){let e=t.data;v(2),V(" reprocessing yield: ",ee(3,4,e.yieldPercentage," ",1),"% "),v(3),V(" ",e.isOre?"Reprocessing calculations":"Detailed yield"," "),v(2),V("",ee(8,8,e.baseYield," ",0),"% base yield"),v(2),W(e.isOre?9:10)}}var sf=class i{result=new lm;GetTreeTableData(){return this.result?.outcomeTree==null?[]:this.result.outcomeTree}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["refinery-results"]],inputs:{result:"result"},decls:57,vars:26,consts:[["header",""],["body",""],["yieldBreakdown",""],[1,"card"],[1,"card-body"],["stripedRows","",3,"value"],[1,"mt-4","mb-4"],[1,"row"],[1,"col","col-md-6"],[1,"p-datatable","p-component","p-datatable-striped"],[1,"p-datatable-table","ng-star-inserted"],["role","rowgroup",1,"p-datatable-tbody"],[3,"innerHTML"],[1,"small"],[1,"card","mt-3"],[3,"value"],["pTemplate","header"],["pTemplate","body"],[2,"width","32px"],["pSortableColumn","name"],["field","name",1,"float-right"],["pSortableColumn","amount"],["field","amount",1,"float-right"],["pSortableColumn","volume"],["field","volume",1,"float-right"],["pSortableColumn","buyPrice"],["field","buyPrice",1,"float-right"],["pSortableColumn","sellPrice"],["field","sellPrice",1,"float-right"],[1,"img-24",3,"src","alt"],[3,"ttRow"],[3,"rowNode"],[1,"yield-badge",3,"ewbTooltip","tooltipData"],[1,"yield-breakdown"],[1,"yield-breakdown__title"],[1,"yield-breakdown__heading"],[1,"yield-breakdown__row"]],template:function(e,r){e&1&&(p(0,"div",3)(1,"div",4)(2,"h5"),f(3,"Output"),m(),p(4,"p-table",5),M(5,bY,17,0,"ng-template",null,0,de)(7,yY,20,23,"ng-template",null,1,de),m(),p(9,"h5",6),f(10,"Summary"),m(),p(11,"div",7)(12,"div",8)(13,"div",9)(14,"table",10)(15,"tbody",11)(16,"tr")(17,"td"),f(18,"Minerals (Buy, Jita)"),m(),p(19,"td"),T(20,"span",12),G(21,"shortPrice"),m()(),p(22,"tr")(23,"td"),f(24,"Minerals (Sell, Jita)"),m(),p(25,"td"),T(26,"span",12),G(27,"shortPrice"),m()(),p(28,"tr")(29,"td"),f(30,"Volume (m3)"),m(),p(31,"td"),f(32),G(33,"numericFormatter"),m()(),p(34,"tr")(35,"td"),f(36,"Compression Ratio (Average)"),m(),p(37,"td"),f(38),G(39,"numericFormatter"),m()(),p(40,"tr")(41,"td"),f(42),m(),p(43,"td"),T(44,"span",12),G(45,"shortPrice"),p(46,"span",13),f(47," ISK"),m()()()()()()()()()(),p(48,"div",14)(49,"div",4)(50,"h5"),f(51,"Refining results"),m(),p(52,"p-treeTable",15),M(53,xY,9,0,"ng-template",16)(54,SY,15,23,"ng-template",17),m()()(),M(55,kY,11,12,"ng-template",null,2,de)),e&2&&(v(4),b("value",(r.result==null?null:r.result.minerals)??be(25,_Y)),v(16),b("innerHTML",Ne(21,8,r.result==null||r.result.summary==null?null:r.result.summary.buyPrice,""),ke),v(6),b("innerHTML",Ne(27,11,r.result==null||r.result.summary==null?null:r.result.summary.sellPrice,""),ke),v(6),$(ee(33,14,r.result==null||r.result.summary==null?null:r.result.summary.volume," ",0)),v(6),V("",ee(39,18,r.result==null||r.result.summary==null?null:r.result.summary.compressionRatio," ",2)," %"),v(4),V("Reprocessing tax (",(r.result==null||r.result.summary==null?null:r.result.summary.taxRate)??0,"%)"),v(2),b("innerHTML",Ne(45,22,r.result==null||r.result.summary==null?null:r.result.summary.taxAmount,""),ke),v(8),b("value",r.GetTreeTableData()))},dependencies:[xt,Dt,Gi,fo,ho,mk,Es,uk,pk,Pe,Wt,At],styles:[".yield-badge[_ngcontent-%COMP%]{display:inline-block;margin-left:.5rem;padding:.05rem .45rem;border-radius:10px;font-size:.8rem;font-weight:600;color:var(--primary-color, #4f9eff);background:color-mix(in srgb,var(--primary-color, #4f9eff) 15%,transparent);cursor:help;vertical-align:middle}.yield-breakdown[_ngcontent-%COMP%]{min-width:16rem}.yield-breakdown__title[_ngcontent-%COMP%]{font-weight:600;color:var(--primary-color, #4f9eff);margin-bottom:.4rem}.yield-breakdown__heading[_ngcontent-%COMP%]{color:var(--primary-color, #4f9eff);font-size:.8rem;text-transform:none;margin-bottom:.15rem}.yield-breakdown__row[_ngcontent-%COMP%]{font-size:.85rem;color:var(--text-color, #e6edf3);padding:.05rem 0;white-space:nowrap}"]})};function IY(i,t){i&1&&T(0,"refinery-how-to")}function DY(i,t){if(i&1&&T(0,"refinery-results",8),i&2){let e=S();b("result",e.result)}}var lf=class i{result=void 0;hasResults=!1;resultCallback(t){this.result=t,this.hasResults=!0}
1799RefineryResponseDto=lm;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["app-refinery"]],decls:10,vars:2,consts:[[1,"row","mb-3"],[1,"col-12","col-md-4","mb-4","mb-md-0"],[1,"card"],[1,"card-body"],[3,"onResult"],[1,"col"],[4,"ngIf"],[3,"result",4,"ngIf"],[3,"result"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5"),f(5,"Refinery"),m(),p(6,"refinery-input",4),R("onResult",function(o){return r.resultCallback(o)}),m()()()(),p(7,"div",5),M(8,IY,1,0,"refinery-how-to",6)(9,DY,1,1,"refinery-results",7),m()()),e&2&&(v(8),b("ngIf",!r.hasResults),v(),b("ngIf",r.hasResults))},dependencies:[Vt,ge,of,af,sf],encapsulation:2})};var MY=["nodeTemplate"],fk=i=>({$implicit:i}),PY=(i,t)=>({"fa-caret-down":i,"fa-caret-right":t}),FY=i=>({node:i});function RY(i,t){if(i&1){let e=J();p(0,"div")(1,"input",6),Je("ngModelChange",function(n){L(e);let o=S();return Xe(o.filterText,n)||(o.filterText=n),O(n)}),R("change",function(){L(e);let n=S();return O(n.onFilterChange())}),m()()}if(i&2){let e=S();v(),Qe("ngModel",e.filterText)}}function LY(i,t){i&1&&vt(0)}function OY(i,t){if(i&1&&(Ut(0),M(1,LY,1,0,"ng-container",7),Ht()),i&2){let e=t.$implicit;S();let r=Ve(5);v(),b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,fk,e))}}function AY(i,t){if(i&1){let e=J();p(0,"span",14),R("click",function(n){L(e);let o=S().$implicit,a=S();return O(a.onToggleClick(o,n))}),T(1,"i",15),m()}if(i&2){let e=S().$implicit;v(),b("ngClass",It(1,PY,e.expanded,!e.expanded))}}function BY(i,t){if(i&1&&T(0,"img",16),i&2){let e=S().$implicit;b("src",e.image,re)}}function NY(i,t){if(i&1&&vt(0,17),i&2){let e=S().$implicit,r=S();b("ngTemplateOutlet",r.nodeTemplate)("ngTemplateOutletContext",te(2,FY,e))}}function VY(i,t){if(i&1&&(p(0,"span",18),f(1),m()),i&2){let e=S().$implicit;v(),$(e.label)}}function zY(i,t){i&1&&vt(0)}function UY(i,t){if(i&1&&(Ut(0),M(1,zY,1,0,"ng-container",7),Ht()),i&2){let e=t.$implicit;S(3);let r=Ve(5);v(),b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,fk,e))}}function HY(i,t){if(i&1&&(p(0,"ul"),M(1,UY,2,4,"ng-container",5),m()),i&2){let e=S().$implicit;v(),b("ngForOf",e.children)}}function WY(i,t){if(i&1){let e=J();p(0,"li",8)(1,"div",9)(2,"div",10),R("click",function(){let n=L(e).$implicit,o=S();return O(o.onNodeClick(n))}),M(3,AY,2,4,"span",11)(4,BY,1,1,"img",12)(5,NY,1,4,"ng-container",13)(6,VY,2,1,"ng-template",null,1,de),m()(),M(8,HY,2,1,"ul",3),m()}if(i&2){let e=t.$implicit,r=Ve(7),n=S();v(3),b("ngIf",(e.children==null?null:e.children.length)||e.expandable),v(),b("ngIf",n.config.showImages&&e.image),v(),b("ngIf",n.nodeTemplate)("ngIfElse",r),v(3),b("ngIf",(e.children==null?null:e.children.length)&&e.expanded)}}var Ta=class i{nodes=[];config={};set filterText(t){this._filterText=t,this.filterSubject.next(t)}get filterText(){return this._filterText}_filterText="";filterSubject=new Ze;subscription;filteredNodes=[];ngOnInit(){this.subscription=this.filterSubject.pipe(pa(250),no()).subscribe(t=>{(t.length>2||t.length==0)&&(this.filteredNodes=this.applyFilter(t))}),this.filteredNodes=this.nodes}ngOnDestroy(){this.subscription?.unsubscribe()}nodeTemplate;ngOnChanges(t){t.nodes&&(this.filteredNodes=this._filterText?.length>2?this.applyFilter(this._filterText):this.nodes??[])}onFilterChange(){this.filteredNodes=this.applyFilter(this.filterText)}toggleNode(t){t.children?.length&&(t.expanded=!t.expanded)}onToggleClick(t,e){return Et(this,null,function*(){e.stopPropagation(),t.children?.length?this.toggleNode(t):yield this.onNodeClick(t)})}onNodeClick(t){return Et(this,null,function*(){if(t.children?.length){this.toggleNode(t);return}this.config.nodeClick&&(yield this.config.nodeClick(t))})}applyFilter(t){let e=t?.trim().toLowerCase();return e?this.filterNodes(this.nodes,e):this.nodes}filterNodes(t,e){let r=[];for(let n=0;n<t.length;n++){let o=t[n],a=o.children&&o.children.length>0,s=o.label.toLowerCase().includes(e),l=!1,c;a?s?(c=o.children,l=!0):(c=this.filterNodes(o.children,e),l=c.length>0):l=s,l&&(a&&c?r.push(pi(lt({},o),{expanded:!0,children:c})):r.push(o))}return r}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["ewb-treeview"]],contentQueries:function(e,r,n){if(e&1&&Qr(n,MY,5),e&2){let o;Ce(o=Se())&&(r.nodeTemplate=o.first)}},inputs:{nodes:"nodes",config:"config",filterText:"filterText"},features:[xr],decls:6,vars:2,consts:[["renderNode",""],["defaultTemplate",""],[1,"treeview"],[4,"ngIf"],[1,"treeview-list"],[4,"ngFor","ngForOf"],["type","text","placeholder","Filter...",1,"filter-input",3,"ngModelChange","change","ngModel"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"tree-node"],[1,"node-item"],[1,"node-content",3,"click"],["class","toggle",3,"click",4,"ngIf"],["alt","","class","node-img",3,"src",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf","ngIfElse"],[1,"toggle",3,"click"],[1,"fa-solid",3,"ngClass"],["alt","",1,"node-img",3,"src"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"label"]],template:function(e,r){e&1&&(p(0,"div",2),M(1,RY,2,1,"div",3),p(2,"ul",4),M(3,OY,2,4,"ng-container",5),m()(),M(4,WY,9,5,"ng-template",null,0,de)),e&2&&(v(),b("ngIf",r.config.filterEnabled),v(2),b("ngForOf",r.filteredNodes
1799))},dependencies:[yt,Ot,mt,Kt,ge,jl,ci,_t],styles:[".treeview[_ngcontent-%COMP%]   .filter-input[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem;padding:4px 8px}.treeview[_ngcontent-%COMP%]   .treeview-list[_ngcontent-%COMP%]{list-style:none;padding-left:0}.treeview[_ngcontent-%COMP%]   .treeview-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{padding-left:15px}.treeview[_ngcontent-%COMP%]   .tree-node[_ngcontent-%COMP%]{list-style:none;padding-left:0}.treeview[_ngcontent-%COMP%]   .tree-node[_ngcontent-%COMP%]   .node-item[_ngcontent-%COMP%]{padding-top:5px;padding-bottom:5px}.treeview[_ngcontent-%COMP%]   .tree-node[_ngcontent-%COMP%]   .node-item[_ngcontent-%COMP%]:hover{background-color:#285e4d66}.treeview[_ngcontent-%COMP%]   .tree-node[_ngcontent-%COMP%]   .node-content[_ngcontent-%COMP%]{display:flex;align-items:center}.treeview[_ngcontent-%COMP%]   .tree-node[_ngcontent-%COMP%]   .node-content[_ngcontent-%COMP%]   .toggle[_ngcontent-%COMP%]{margin-right:4px;font-weight:700}.treeview[_ngcontent-%COMP%]   .tree-node[_ngcontent-%COMP%]   .node-content[_ngcontent-%COMP%]   .node-img[_ngcontent-%COMP%]{width:20px;height:20px;margin-right:6px}.treeview[_ngcontent-%COMP%]   .tree-node[_ngcontent-%COMP%]   .node-content[_ngcontent-%COMP%]   .label[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}"]})};var hk=()=>[];function GY(i,t){i&1&&T(0,"overlay-loader")}function qY(i,t){if(i&1&&(p(0,"div",15)(1,"span"),f(2),m(),f(3),m()),i&2){let e=t.$implicit;v(),_e(Q("security-level security-level-",e.securityStatusClass)),v(),$(e.securityStatus),v(),V(" ",e.name," ")}}function jY(i,t){if(i&1&&(p(0,"strong"),f(1),m()),i&2){let e=S().node;v(),$(e.label)}}function YY(i,t){if(i&1&&(p(0,"a",16),T(1,"img",17),f(2),m()),i&2){let e=S().node,r=S();b("routerLink",r.getLink(e.id)),v(),b("src",r.EveImageHelper.getTypeImageUrl(e.id,64,e.label),re),v(),V(" ",e.label," ")}}function KY(i,t){if(i&1&&H(0,jY,2,1,"strong")(1,YY,3,3,"a",16),i&2){let e=t.node;W(e.children!=null&&e.children.length?0:1)}}var cf=class i{constructor(t,e,r,n,o){this.marketBrowserClient=t;this.grpcService=e;this.systemClient=r;this.router=n;this.route=o}orderType="sell";locationChanged=new he;marketGroupsRaw=[];marketGroupsView=[];regions=[];isLoading=!0;paramTypeId=null;paramRegionId=null;paramLocationId=null;selectedRegion=null;systemList;myCurrentLocation=null;searchInput="";treeData=[];treeConfig={showImages:!1,filterEnabled:!1};buildTree(t){let e=[];for(let r of t){let n={id:r.id??0,label:r.name??""};r.childrenList?.length&&(n.children=this.buildTree(r.childrenList)),e.push(n)}return e}ngOnInit(){this.route.params.subscribe(t=>{this.paramRegionId=t.regionId,this.paramTypeId=t.id??44992,this.paramLocationId=t.locationId}),this.grpcService.getMarketGroups().subscribe(t=>{let e=t.getGroupsList().map(r=>r.toObject());this.marketGroupsRaw=e,this.treeData=this.buildTree(e),this.openSelectedItem(this.treeData??[]),this.isLoading=!1}),this.marketBrowserClient.getRegions().subscribe(t=>{this.regions=t.result,this.paramRegionId!=null?this.selectedRegion=this.regions?.find(e=>e.id==this.paramRegionId)??void 0:localStorage.getItem("market-region")!=null&&(this.selectedRegion=this.regions?.find(e=>e.id==parseInt(localStorage.getItem("market-region")??""))??void 0,this.paramRegionId=parseInt(localStorage.getItem("market-region")??""),this.changeRegion())}),localStorage.getItem("market-my-location")!=null&&(this.myCurrentLocation=JSON.parse(localStorage.getItem("market-my-location")??""))}alert=alert;getLink(t){return this.selectedRegion==null?["/market",this.orderType,t]:this.paramLocationId!=null?["/market",this.orderType,this.selectedRegion.id,this.paramLocationId,t]:["/market",this.orderType,this.selectedRegion.id,t]}changeRegion(){this.selectedRegion==null?(localStorage.removeItem("market-region"),this.router.navigate(["/market",this.orderType,this.paramTypeId])):this.selectedRegion?(localStorage.setItem("market-region",this.selectedRegion.id.toString()),this.router.navigate(["/market",this.orderType,this.selectedRegion.id,this.paramTypeId])):this.paramLocationId!=null&&this.router.navigate(["/market",this.orderType,this.paramRegionId,this.paramLocationId,this.paramTypeId])}changeLocation(){this.myCurrentLocation==null?(localStorage.removeItem("market-my-location"),this.locationChanged.emit(null)):typeof this.myCurrentLocation=="object"&&(localStorage.setItem("market-my-location",JSON.stringify(this.myCurrentLocation)),this.locationChanged.emit(this.myCurrentLocation.systemId))}onLazyLoadSystems(t){let e=new cm;e.query=t?.query??"",this.systemClient.typeAhead(e).subscribe(r=>{r.success&&(this.systemList=r.result)})}openSelectedItem(t){if(this.paramTypeId==null)return!1;for(let e of t){if(e.id==this.paramTypeId)return!0;
1799if(this.openSelectedItem(e.children??[]))return e.expanded=!0,!0}return!1}timeout=null;search(){if(this.timeout!=null&&clearTimeout(this.timeout),this.searchInput.length<3){this.marketGroupsView=JSON.parse(JSON.stringify(this.marketGroupsRaw));return}this.timeout=setTimeout(()=>{this.isLoading=!0,this.executeSearch(),this.isLoading=!1},100)}executeSearch(){if(this.searchInput.length<3)return;this.marketGroupsView=JSON.parse(JSON.stringify(this.marketGroupsRaw)),this.marketGroupsView=this.marketGroupsView?.filter(e=>(this.searchChildren(e,this.searchInput),e.childrenList?.length??!1));let t=[];this.marketGroupsView?.forEach(e=>{this.flattenMarketGroupToTypeOnly(e,t)}),this.marketGroupsView=t}searchChildren(t,e){return t.childrenList&&(t.childrenList=t.childrenList?.filter(r=>r.type=="type"&&r.name?.toLowerCase().includes(e.toLowerCase())?!0:(this.searchChildren(r,e),r.childrenList?.length??!1))),!1}flattenMarketGroupToTypeOnly(t,e){t.type=="type"&&e.push(t),t.childrenList?.forEach(r=>{this.flattenMarketGroupToTypeOnly(r,e)})}EveImageHelper=vi;static \u0275fac=function(e){return new(e||i)(N(Zl),N(Nr),N(om),N(bt),N(Xt))};static \u0275cmp=K({type:i,selectors:[["app-market-group-tree"]],inputs:{orderType:"orderType"},outputs:{locationChanged:"locationChanged"},decls:23,vars:15,consts:[["item",""],["nodeTemplate",""],[1,"row"],[4,"ngIf"],[1,"col-12","mb-3"],["pInputText","","id","search","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","search"],[1,"col-6"],["inputId","myCurrentLocation","styleClass","w-100","optionLabel","name","placeholder","(optional)",3,"ngModelChange","completeMethod","ngModel","dropdown","showClear","suggestions"],["for","myCurrentLocation"],[1,"w-full","md:w-56"],["id","region","optionLabel","name","styleClass","w-100","filterBy","name","placeholder","All regions",3,"ngModelChange","ngModel","options","showClear","filter"],["for","region"],[1,"col-12","mt-3"],[3,"config","nodes","filterText"],[1,"flex","items-center","gap-2"],[1,"w-100",3,"routerLink"],[1,"img-24","me-1",3,"src"]],template:function(e,r){if(e&1){let n=J();p(0,"div",2),M(1,GY,1,0,"overlay-loader",3),p(2,"div",4)(3,"p-iftalabel")(4,"input",5),Je("ngModelChange",function(a){return L(n),Xe(r.searchInput,a)||(r.searchInput=a),O(a)}),R("ngModelChange",function(){return r.search()}),m(),p(5,"label",6),f(6,"Search"),m()()(),p(7,"div",7)(8,"p-iftalabel")(9,"p-autoComplete",8),Je("ngModelChange",function(a){return L(n),Xe(r.myCurrentLocation,a)||(r.myCurrentLocation=a),O(a)}),R("ngModelChange",function(){return r.changeLocation()})("completeMethod",function(a){return r.onLazyLoadSystems(a)}),M(10,qY,4,5,"ng-template",null,0,de),m(),p(12,"label",9),f(13,"My current location"),m()()(),p(14,"div",7)(15,"p-iftalabel",10)(16,"p-select",11),Je("ngModelChange",function(a){return L(n),Xe(r.selectedRegion,a)||(r.selectedRegion=a),O(a)}),R("ngModelChange",function(){return r.changeRegion()}),m(),p(17,"label",12),f(18,"Region"),m()()(),p(19,"div",13)(20,"ewb-treeview",14),M(21,KY,2,1,"ng-template",null,1,de),m()()()}e&2&&(v(),b("ngIf",r.isLoading),v(3),Qe("ngModel",r.searchInput),v(5),Qe("ngModel",r.myCurrentLocation),b("dropdown",!0)("showClear",!0)("suggestions",r.systemList??be(13,hk)),v(7),Qe("ngModel",r.selectedRegion),b("options",r.regions??be(14,hk))("showClear",!0)("filter",!0),v(4),b("config",r.treeConfig)("nodes",r.treeData)("filterText",r.searchInput))},dependencies:[ft,ge,km,ni,yt,Ot,mt,Kt,dr,ba,ui,Ta,$e],encapsulation:2})};var ks=Ri(dO());var gk=i=>({active:i}),$Y=()=>[];function ZY(i,t){i&1&&T(0,"overlay-loader")}function QY(i,t){i&1&&(p(0,"th",39),f(1,"Jumps "),T(2,"p-sortIcon",40),m())}function XY(i,t){if(i&1&&(p(0,"tr"),M(1,QY,3,0,"th",26),p(2,"th",27),f(3,"Region "),T(4,"p-sortIcon",28),m(),p(5,"th",29),f(6,"Station "),T(7,"p-sortIcon",30),m(),p(8,"th",31),f(9,"Price "),T(10,"p-sortIcon",32),m(),p(11,"th",33),f(12,"Quantity "),T(13,"p-sortIcon",34),m(),p(14,"th",35),f(15,"Volume "),T(16,"p-sortIcon",36),m(),p(17,"th",37),f(18,"Expires "),T(19,"p-sortIcon",38),m()()),i&2){let e=S();v(),b("ngIf",e.showNumberJumps)}}function JY(i,t){if(i&1&&T(0,"td",45),i&2){let e=S().$implicit;b("innerHTML",e.jumps==-1?"-":e.jumps,ke)}}function eK(i,t){if(i&1&&(p(0,"tr"),M(1,JY,1,1,"td",41),p(2,"td",42)(3,"div",43)(4,"a",44),f(5),m()()(),p(6,"td",42)(7,"div",43)(8,"a",44)(9,"span"),f(10),m(),f(11),m()()(),T(12,"td",45),G(13,"shortPrice"),p(14,"td"),f(15),G(16,"numericFormatter"),G(17,"numericFormatter"),m(),p(18,"td"),f(19),G(20,"numericFormatter"),m(),p(21,"td"),f(22),G(23,"date"),m()()),i&2){let e=t.$implicit,r=S();v(),b("ngIf",r.showNumberJumps),v(3),b("routerLink",r.getOrderLink(e.regionId,void 0,e.typeId)),v(),$(e.region),v(3),b("routerLink",r.getOrderLink(e.regionId,e.locationId,e.typeId)),v(),_e(Q("security-level security-level-",r.systemSecurityClass(e.systemSecurity))),v(),$(e.systemSecurity.toFixed(1)),v(),V(" ",e.station),v(),b("innerHTML",Ne(13,14,e.price,""),ke),v(3),kt("",ee(16,17,e.volumeRemain," ",0)," / ",ee(17,21,e.volumeTotal," ",0)),v(4),V("",ee(20,25,e.volume," ",0)," m3"),v(3),$(Ne(23,29,e.expiresAt,"MM/dd/yyyy HH:mm:ss"))}}function tK(i,t){if(i&1&&(p(0,"tr")(1,"td",46),f(2),m()()),i&2){let e=S();v(2),V(" No ",e.orderType," orders found ")}}var uc=class i{constructor(t,e,r,n){this.route=t;this.marketBrowserClient=e;this.grpcService=r;this.typeService=n}orderType="sell";typeId=void 0;typeName=void 0;regionId=void 0;regionName=void 0;locationId=void 0;locationName=void 0;orders=void 0;ordersLoading=!0;showNumberJumps=!1;totalSellOrderCount=0;totalBuyOrderCount=0;myLocationId=void 0;
1799skip=0;take=30;totalRecords=0;currentPage=1;totalPages=0;sortField="price";sortOrder=ks.MarketSortOrder.ASCENDING;loadOrders$=new Ze;ngOnInit(){this.startOrderLoader(),this.route.params.subscribe(t=>{if(this.orderType!==t.orderType&&(this.currentPage=1),console.log(t),this.typeId=t.id!==void 0?Number(t.id):44992,this.regionId=t.regionId!==void 0?Number(t.regionId):void 0,this.locationId=t.locationId!==void 0?Number(t.locationId):void 0,this.orderType=t.orderType,this.typeId!=null){if(localStorage.getItem("market-my-location")!=null){let e=JSON.parse(localStorage.getItem("market-my-location")??"");this.myLocationId=e?.systemId,this.showNumberJumps=!0}this.getMarketOrders()}this.regionId!=null&&this.marketBrowserClient.getRegionName(this.regionId).subscribe(e=>{this.regionName=e.result??void 0}),this.locationId!=null&&this.marketBrowserClient.getLocationName(this.locationId).subscribe(e=>{this.locationName=e.result??void 0})})}title(){let t=this.typeName??"";return this.locationName!=null?t+=" for "+this.locationName:this.regionName!=null&&(t+=" in "+this.regionName),t}getMarketOrders(){this.ordersLoading=!0,this.loadOrders$.next()}startOrderLoader(){this.loadOrders$.pipe(pa(100),oo(()=>this.requestMarketOrders().pipe(Gu(()=>hn(null))))).subscribe(t=>{if(t===null){this.ordersLoading=!1;return}let e=t.getResults();this.typeName=e?.getTypename()??void 0,this.totalSellOrderCount=t.getTotalsellordercount(),this.totalBuyOrderCount=t.getTotalbuyordercount(),this.totalRecords=t.getTotalresultcount(),this.totalPages=Math.ceil(this.totalRecords/this.take),this.orders=(e?.getOrdersList()??[]).map(r=>({typeId:r.getTypeid(),region:r.getRegion(),regionId:r.getRegionid(),station:r.getStation(),locationId:r.getLocationid(),price:r.getPrice(),volumeRemain:r.getVolumeremain(),volumeTotal:r.getVolumetotal(),volume:r.getVolume(),expiresAt:new Date(r.getExpiresat()*1e3),firstSeen:new Date(r.getFirstseen()*1e3),systemSecurity:r.getSystemsecurity()?.getValue()??0,jumps:r.getJumps()?.getValue()??-1})),this.ordersLoading=!1})}requestMarketOrders(){let t=this.orderType==="sell"?ks.MarketOrderType.SELL:ks.MarketOrderType.BUY;return this.grpcService.getMarketOrders(this.typeId??44992,t,this.regionId,this.locationId,this.myLocationId,this.skip,this.take,this.sortField??"price",this.sortOrder)}onLocationChanged(t){this.myLocationId=t??void 0,this.showNumberJumps=t!=null,this.getMarketOrders()}lazyLoadMarketOrders(t){this.sortField=t.sortField?.toString()??"price",this.sortOrder=t.sortOrder==1?ks.MarketSortOrder.DESCENDING:ks.MarketSortOrder.ASCENDING,this.getMarketOrders()}onPageChange(t){this.skip=t.first,this.take=t.rows,this.currentPage=t.page+1,this.getMarketOrders()}getOrderLink(t,e,r){let n=[];return t!=null&&n.push(t.toString()),e!=null&&n.push(e.toString()),r!=null&&n.push(r.toString()),`/market/${this.orderType}/${n.join("/")}`}getOrderTypeLink(t){let e=[];return this.regionId!=null&&e.push(this.regionId.toString()),this.locationId!=null&&e.push(this.locationId.toString()),this.typeId!=null&&e.push(this.typeId.toString()),`/market/${t}/${e.join("/")}`}systemSecurityClass(t){return t.toFixed(1).toString().replace(".","")}EveImageHelper=vi;static \u0275fac=function(e){return new(e||i)(N(Xt),N(Zl),N(Nr),N(xn))};static \u0275cmp=K({type:i,selectors:[["app-marketbrowser"]],decls:37,vars:27,consts:[["header",""],["body",""],["paginator",""],[1,"row"],[1,"col-lg-3","col-12"],[1,"card"],[1,"card-body"],[3,"locationChanged","orderType"],[1,"col-lg-9","col-12"],[1,"card-body","v-stack","col-12","h-100"],[1,"d-flex","justify-content-start","align-items-center","mb-3"],[1,"d-flex","justify-content-start","align-items-center","gap-2","m-0"],[1,"border","border-2","border-white","rounded-circle","img-32","bg-dark",3,"src","alt"],["ewbTooltip","Show item information",1,"ms-2","cursor-pointer",3,"click"],[1,"fa-duotone","fa-solid","fa-circle-info"],[1,"nav","nav-tabs"],[1,"nav-item"],[1,"nav-link",3,"routerLink","ngClass"],[1,"card-body","tab-content"],[4,"ngIf"],[1,"mb-3"],["sortField","price","stripedRows","",1,"w-100","small",3,"onLazyLoad","value","sortOrder","lazy"],["pTemplate","emptymessage"],[1,"row","mt-3"],[1,"col"],["currentPageReportTemplate","Displaying page {currentPage} of {totalPages}",3,"onPageChange","showCurrentPageReport","rows","totalRecords","pageLinkSize"],["pSortableColumn","jumps",4,"ngIf"],["pSortableColumn","region"],["field","region",1,"float-end"],["pSortableColumn","station"],["field","station",1,"float-end"],["pSortableColumn","price"],["field","price",1,"float-end"],["pSortableColumn","volumeRemain"],["field","volumeRemain",1,"float-end"],["pSortableColumn","volume"],["field","volume",1,"float-end"],["pSortableColumn","expiresAt"],["field","expiresAt",1,"float-end"],["pSortableColumn","jumps"],["field","jumps",1,"float-end"],[3,"innerHTML",4,"ngIf"],[1,"p-0"],[1,"position-relative","p-3"],[1,"stretched-link",3,"routerLink"],[3,"innerHTML"],["colspan","100%"]],template:function(e,r){e&1&&(p(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"app-market-group-tree",7),R("locationChanged",function(o){return r.onLocationChanged(o)}),m()()()(),p(5,"div",8)(6,"div",9)(7,"div",10)(8,"h2",11),T(9,"img",12),p(10,"span"),f(11),m()(),p(12,"span",13),R("click",function(){return r.typeService.showTypeModal(r.typeId)}),T(13,"i",14),m()(),p(14,"ul",15)(15,"li",16)(16,"a",17),f(17),m()(),p(18,"li",16)(19,"a",17),f(20),m()()(),p(21,"div",5)(22,"div",18),M(23,ZY,1,0,"overlay-loader",19),p(24,"h5",20),f(25),G(26,"titlecase"),m(),p(27,"p-table",21),R("onLazyLoad",function(o){return r.lazyLoadMarketOrders(o)}),M(28,XY,20,1,"ng-template",null,0,de)(30,eK,24,32,"ng-template",null,1,de)(32,tK,3,1,"ng-template",22),m(),p(33,"div",23)(34,"div",24)(35,"p-paginator",25,2),R("onPageChange",function(o){return r.onPageChange(o)}),m()()()()()()()()),e&2&&(v(4),b("orderType",r.orderType),v(5),b("alt",De(r.typeName))("src",r.EveImageHelper.getTypeImageUrl(r.typeId??0,64,r.typeName??""),re),v(2),$(r.t
1799itle()),v(5),b("routerLink",r.getOrderTypeLink("sell"))("ngClass",te(22,gk,r.orderType==="sell")),v(),V("Sell (",r.totalSellOrderCount," orders)"),v(2),b("routerLink",r.getOrderTypeLink("buy"))("ngClass",te(24,gk,r.orderType==="buy")),v(),V("Buy (",r.totalBuyOrderCount," orders)"),v(3),b("ngIf",r.ordersLoading),v(2),V("",Ar(26,20,r.orderType)," orders"),v(2),b("value",r.orders??be(26,$Y))("sortOrder",r.orderType==="sell"?-1:1)("lazy",!0),v(8),b("showCurrentPageReport",!0)("rows",r.take)("totalRecords",r.totalRecords)("pageLinkSize",6))},dependencies:[cf,xt,Dt,Gi,fo,ho,ge,$e,_t,Vr,ft,Pe,At,Wt,em,Yl],encapsulation:2})};var Ea=class i{constructor(t,e){this.metadataClient=t;this.grpcService=e}hulls=[];classes=[];tradingHubs=[];preloadMetaData(){return Et(this,null,function*(){let t=this.grpcService.getEveworkbenchMetadata(),e=yield gn(t);return this.hulls=e.getHullsList().map(r=>new iT({id:r.getId(),name:r.getName(),classId:r.getClassid()})),this.classes=e.getClassesList().map(r=>new rT({id:r.getId(),name:r.getName()}
1799)),this.tradingHubs=e.getTradinghubsList().map(r=>({stationId:r.getStationid(),name:r.getName(),region:r.getRegion()})),Wu(5)})}getHulls=()=>this.hulls;getHullClass=()=>this.classes;getTradingHubs=()=>this.tradingHubs;static \u0275fac=function(e){return new(e||i)(ti(zw),ti(Nr))};static \u0275prov=Ye({token:i,factory:i.\u0275fac,providedIn:"root"})};var _k=(i,t)=>({"btn-primary":i,"btn-secondary":t}),iK=()=>[];function rK(i,t){i&1&&(p(0,"p-floatlabel",8),T(1,"input",34),p(2,"label",35),f(3,"Tags"),m()())}function nK(i,t){if(i&1&&(p(0,"div",36),T(1,"img",37),f(2),m()),i&2){let e=t.$implicit;v(),b("src",Q("https://images.evetech.net/characters/",e.id,"/portrait?size=32"),re),v(),V(" ",e.name," ")}}function oK(i,t){if(i&1&&(p(0,"div",36),T(1,"img",38),f(2),m()),i&2){let e=t.$implicit;v(),b("src",Q("https://images.evetech.net/types/",e.id,"/icon?size=32"),re),v(),V(" ",e.name," ")}}function aK(i,t){if(i&1&&(T(0,"img",39),f(1)),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.id,"/render?size=64"),re)("alt",De(e.name)),v(),V(" ",e.name," ")}}function sK(i,t){if(i&1&&(T(0,"img",39),f(1)),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.id,"/render?size=64"),re)("alt",De(e.name)),v(),V(" ",e.name," ")}}var df=class i{constructor(t,e,r,n,o){this.formBuilder=t;this.profileClient=e;this.fitClient=r;this.loaderService=n;this.activatedRoute=o;this.filterHullOptions=n.getHulls()??[],this.filterClassOptions=n.getHullClass()??[],this.resetFilter(),this.priceRangesMax=[...this.priceRanges,{value:-1,label:"\u221E"}],this.activatedRoute.queryParams.subscribe(a=>{if(a.tags!==void 0&&this.filterForm.controls.tags.setValue(a.tags),a.ship!==void 0){let s=this.filterHullOptions?.filter(l=>l.id==a.ship);s?.length==1&&this.filterForm.controls.hull.setValue(s[0].id)}a.q!==void 0&&this.filterForm.controls.query.setValue(a.q)})}ShowAbyssalFilters=!1;ShowPeriod=!0;ShowTags=!0;OnFilterQuery=new he;charactersList=[];moduleList=[];filterForm;querySearchModeAnd=!0;priceRanges=[{value:0,label:"0 ISK"},{value:5e5,label:"500K ISK"},{value:1e6,label:"1M ISK"},{value:5e6,label:"5M ISK"},{value:1e7,label:"10M ISK"},{value:2e7,label:"20M ISK"},{value:5e7,label:"50M ISK"},{value:1e8,label:"100M ISK"},{value:25e7,label:"250M ISK"},{value:5e8,label:"500M ISK"},{value:1e9,label:"1B ISK"},{value:25e8,label:"2.5B ISK"},{value:5e9,label:"5B ISK"},{value:1e10,label:"10B ISK"},{value:25e9,label:"25B ISK"},{value:5e10,label:"50B ISK"},{value:1e11,label:"100B ISK"},{value:15e10,label:"150B ISK"}];priceRangesMax=[];cloneStates=[{value:"both",label:"Alpha and Omega"},{value:"alpha",label:"Alpha only"},{value:"omega",label:"Omega only"}];filterClassOptions=[];filterHullOptions=[];sortFields=[{value:"date_added",label:"Date added"},{value:"votes",label:"Votes"},{value:"price",label:"Estimated price"}];sortOrder=[{value:"desc",label:"Descending"},{value:"asc",label:"Ascending"}];resetFilter(){this.filterForm=this.formBuilder.group({query:this.formBuilder.control(null,[Yt.minLength(3)]),tags:this.formBuilder.control(null,[Yt.minLength(2)]),author:this.formBuilder.control(null,[]),minPrice:this.formBuilder.control(0,[Yt.min(0),Yt.max(15e10),Yt.required]),maxPrice:this.formBuilder.control(-1,[Yt.min(-1),Yt.max(15e10),Yt.required]),period:this.formBuilder.control("every",[]),cloneState:this.formBuilder.control("both",[Yt.required]),class:this.formBuilder.control(null,[]),hull:this.formBuilder.control(null,[]),abyssTier:this.formBuilder.control(null,[]),abyssWeather:this.formBuilder.control(null,[]),module:this.formBuilder.control(null,[]),sortField:this.formBuilder.control(this.sortFields[0].value,[Yt.required]),sortOrder:this.formBuilder.control("desc",[Yt.required])})}submitFilter(){let t=new ys;t.searchQuery=this.filterForm.value.query,t.tags=this.filterForm.value.tags,t.characterId=this.filterForm.value.author?.id,t.minPrice=this.filterForm.value.minPrice,t.maxPrice=this.filterForm.value.maxPrice,t.period=this.filterForm.value.period,t.cloneState=this.filterForm.value.cloneState,t.shipId=this.filterForm.value.hull,t.shipGroupId=this.filterForm.value.class,t.tier=this.filterForm.value.abyssTier,t.weather=this.filterForm.value.abyssWeather,t.sortField=this.filterForm.value.sortField,t.sortOrder=this.filterForm.value.sortOrder,t.isSearchModeAnd=this.querySearchModeAnd;let e=this.filterForm.value.module;t.moduleTypeIds=e?.length?e.map(r=>r.id):null,this.OnFilterQuery.emit(t),this.onLazyLoadCharacters(null)}onLazyLoadCharacters(t){let e=new sm;e.query=t?.query,e.take=69,e.skip=0,this.profileClient.search(e).subscribe(r=>{r.success&&(this.charactersList=r.results)})}onLazyLoadModules(t){if(!t.query||t.query.length<2){this.moduleList=[];return}this.fitClient.searchModuleTypes(t.query).subscribe(e=>{e.success&&(this.moduleList=e.result??[])})}filteredHullOptions(){let t=this.filterHullOptions?.filter(e=>e.classId==this.filterForm.value.class);return t?.length==0&&(t=this.filterHullOptions),t??[]}static \u0275fac=function(e){return new(e||i)(N(cr),N(Br),N(it),N(Ea),N(Xt))};static \u0275cmp=K({type:i,selectors:[["fit-search-filter"]],inputs:{ShowAbyssalFilters:"ShowAbyssalFilters",ShowPeriod:"ShowPeriod",ShowTags:"ShowTags"},outputs:{OnFilterQuery:"OnFilterQuery"},decls:74,vars:27,consts:[["item",""],["selectedItem",""],[3,"ngSubmit","formGroup"],[1,"card","mb-4"],[1,"card-body"],[1,"text-end","mt-1","mb-2"],["type","button","ewbTooltip","Can include either or all words",1,"btn","btn-sm",3,"click","ngClass"],["type","button","ewbTooltip","Must include all words",1,"btn","btn-sm","ms-2",3,"click","ngClass"],["variant","in",1,"mb-3"],["pInputText","","formControlName","query","id","query",1,"w-100"],["for","query"],["variant","in","class","mb-3",4,"ngIf"],["formControlName","author","inputId","author","styleClass","w-100","optionLabel","name","dropdown","",3,"completeMethod","suggestions"],["for","author"],["formControlName","module","inputId","module","styleClass","w-100","optionLabel","name",1,"w-100",3,"completeMethod","multiple","suggestions"],["for","module","ewbTooltip","Filter fits that contain specific modules. Add multiple modules and use OR to find f
1799its with any of them, or AND to find fits that contain all of them."],[1,"row","row-cols-1","row-cols-2"],[1,"col","mb-3"],["variant","in"],["inputId","minPrice","formControlName","minPrice","optionLabel","label","optionValue","value","styleClass","w-100",3,"options"],["for","minPrice"],["inputId","maxPrice","formControlName","maxPrice","optionLabel","label","optionValue","value","styleClass","w-100",3,"options"],["for","maxPrice"],["inputId","cloneState","formControlName","cloneState","optionLabel","label","optionValue","value","styleClass","w-100",3,"options"],["for","cloneState"],["inputId","class","formControlName","class","optionValue","id","optionLabel","name",1,"w-100",3,"options","showClear","filter","autofocusFilter"],["for","class"],["inputId","hull","formControlName","hull","optionValue","id","optionLabel","name",1,"w-100",3,"options","showClear","filter","autofocusFilter"],["for","hull"],["inputId","sortField","formControlName","sortField","optionValue","value","optionLabel","label",1,"w-100",3,"options"],["for","sortField"],["inputId","sortOrder","formControlName","sortOrder","optionValue","value","optionLabel","label",1,"w-100",3,"options"],["type","submit",1,"btn","btn-primary","btn-lg","w-100","mb-3"],[1,"btn","btn-dark","w-100",3,"click"],["pInputText","","formControlName","tags","id","tags",1,"w-100"],["for","tags"],[1,"flex","items-center","gap-2"],[1,"img-24","rounded-circle","border-1","border-1-white","me-1",3,"src"],[1,"img-24","me-1",3,"src"],[1,"img-24","rounded-circle","border","border-1","border-white","me-2",3,"src","alt"]],template:function(e,r){if(e&1){let n=J();p(0,"form",2),R("ngSubmit",function(){return r.submitFilter()}),p(1,"div",3)(2,"div",4)(3,"h5"),f(4,"Basic filter"),m(),p(5,"div",5)(6,"span"),f(7,"Query search mode: "),m(),p(8,"button",6),R("click",function(){return r.querySearchModeAnd=!1}),f(9,"OR"),m(),p(10,"button",7),R("click",function(){return r.querySearchModeAnd=!0}),f(11,"AND"),m()(),p(12,"p-floatlabel",8),T(13,"input",9),p(14,"label",10),f(15,"Query"),m()(),M(16,rK,4,0,"p-floatlabel",11),p(17,"p-floatlabel",8)(18,"p-autocomplete",12),R("c
1799ompleteMethod",function(a){return r.onLazyLoadCharacters(a)}),M(19,nK,3,3,"ng-template",null,0,de),m(),p(21,"label",13),f(22,"Author"),m()(),p(23,"p-floatlabel",8)(24,"p-autocomplete",14),R("completeMethod",function(a){return r.onLazyLoadModules(a)}),M(25,oK,3,3,"ng-template",null,0,de),m(),p(27,"label",15),f(28,"Modules"),m()(),p(29,"div",16)(30,"div",17)(31,"p-floatlabel",18),T(32,"p-select",19),p(33,"label",20),f(34,"Min. price"),m()()(),p(35,"div",17)(36,"p-floatlabel",18),T(37,"p-select",21),p(38,"label",22),f(39,"Max. price"),m()()()(),p(40,"p-floatlabel",18),T(41,"p-select",23),p(42,"label",24),f(43,"Clonestate"),m()()()(),p(44,"div",3)(45,"div",4)(46,"h5"),f(47,"Hull & Class"),m(),p(48,"p-floatlabel",8),T(49,"p-select",25),p(50,"label",26),f(51,"Class"),m()(),p(52,"p-floatlabel",8)(53,"p-select",27),M(54,aK,2,5,"ng-template",null,1,de)(56,sK,2,5,"ng-template",null,0,de),m(),p(58,"label",28),f(59,"Hull"),m()()()(),p(60,"div",3)(61,"div",4)(62,"p-floatlabel",8),T(63,"p-select",29),p(64,"label",30),f(65,"Sort field"),m()(),p(66,"p-floatlabel",8),T(67,"p-select",31),p(68,"label",30),f(69,"Sort order"),m()()()(),p(70,"button",32),f(71,"Filter results"),m(),p(72,"button",33),R("click",function(){return L(n),r.resetFilter(),O(r.submitFilter())}),f(73,"Reset filter"),m()()}e&2&&(b("formGroup",r.filterForm),v(8),b("ngClass",It(20,_k,!r.querySearchModeAnd,r.querySearchModeAnd)),v(2),b("ngClass",It(23,_k,r.querySearchModeAnd,!r.querySearchModeAnd)),v(6),b("ngIf",r.ShowTags),v(2),b("suggestions",r.charactersList??be(26,iK)),v(6),b("multiple",!0)("suggestions",r.moduleList),v(8),b("options",r.priceRanges),v(5),b("options",r.priceRangesMax),v(4),b("options",r.cloneStates),v(8),b("options",r.filterClassOptions)("showClear",!0)("filter",!0)("autofocusFilter",!0),v(4),b("options",r.filteredHullOptions())("showClear",!0)("filter",!0)("autofocusFilter",!0),v(10),b("options",r.sortFields),v(4),b("options",r.sortOrder))},dependencies:[ui,lr,Ot,mt,qi,Yi,ji,$t,ba,ni,ge,dr,_t,Pe],encapsulation:2})};var mc=class i{results=[];GetLink;onFitClicked=new he;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["app-fit-results-base"]],inputs:{results:"results",GetLink:"GetLink"},outputs:{onFitClicked:"onFitClicked"},decls:0,vars:0,template:function(e,r){},encapsulation:2})};function lK(i,t){i&1&&T(0,"i",20)}function cK(i,t){i&1&&T(0,"img",21)}function dK(i,t){i&1&&T(0,"img",22)}function pK(i,t){i&1&&T(0,"img",23)}function uK(i,t){if(i&1&&T(0,"img",13),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.id,"/icon?size=64"),re)("alt",De(e.name))("ewbTooltip",e.name??"")}}function mK(i,t){if(i&1&&T(0,"img",13),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.id,"/icon?size=64"),re)("alt",De(e.name))("ewbTooltip",e.name??"")}}function fK(i,t){if(i&1&&T(0,"img",13),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.id,"/icon?size=64"),re)("alt",De(e.name))("ewbTooltip",e.name??"")}}function hK(i,t){if(i&1&&(p(0,"div",2)(1,"a",3)(2,"div",4),f(3),m(),p(4,"div",5)(5,"div",6),M(6,lK,1,0,"i",7)(7,cK,1,0,"img",8)(8,dK,1,0,"img",9)(9,pK,1,0,"img",10),m(),p(10,"div",11)(11,"div",12)(12,"span"),f(13,"High slots"),m(),T(14,"br"),oe(15,uK,1,5,"img",13,Te),m(),p(17,"div",14)(18,"span"),f(19,"Mid slots"),m(),T(20,"br"),oe(21,mK,1,5,"img",13,Te),m(),p(23,"div",14)(24,"span"),f(25,"Low slots"),m(),T(26,"br"),oe(27,fK,1,5,"img",13,Te),m()(),T(29,"img",15),m(),p(30,"div",16),T(31,"i",17),f(32),T(33,"br")(34,"i",18),f(35),T(36,"br"),f(37," est. price "),T(38,"span",19),G(39,"shortPrice"),f(40," ISK"),T(41,"br"),m()()()),i&2){let e=t.$implicit,r=S(2);v(),b("routerLink",r.GetLink(e.id)),v(2),kt(" ",e.shipName,", ",e.name," "),v(3),b("ngIf",e.hasVideo),v(),b("ngIf",e.isAbyssTracker),v(),b("ngIf",!e.isAlphaUsable),v(),b("ngIf",e.isAlphaUsable),v(6),ae(e.highSlots),v(6),ae(e.mediumSlots),v(6),ae(e.lowSlots),v(2),b("src",Q("https://images.evetech.net/types/",e.shipId,"/render?size=512"),re),v(3),V(" ",e.characterName),v(3),V(" ",e.dateView),v(3),b("innerHTML",Ne(39,12,e.totalCost,""),ke)}}function gK(i,t){if(i&1&&(p(0,"div",1),oe(1,hK,42,15,"div",2,Te),m()),i&2){let e=S();v(),ae(e.results)}}
1799var pf=class i extends mc{static \u0275fac=(()=>{let t;return function(r){return(t||(t=si(i)))(r||i)}})();static \u0275cmp=K({type:i,selectors:[["fit-results-grid"]],features:[Ke],decls:1,vars:1,consts:[["class","row row-cols-1 row-cols-sm-2 row-cols-md-4 row-cols-xl-6 row-cols-xxl-8",4,"ngIf"],[1,"row","row-cols-1","row-cols-sm-2","row-cols-md-4","row-cols-xl-6","row-cols-xxl-8"],[1,"col","mb-3"],["target","_blank",1,"card","card-filter",3,"routerLink"],[1,"card-header","small"],[1,"card-body","m-0","p-0","position-relative"],[1,"icon-bar"],["class","fa-duotone fa-solid fa-camera-movie","ewbTooltip","Has instructional video",4,"ngIf"],["src","/shared/assets/public/images/abysstracker-logo.png","ewbTooltip","Abyss Tracker fit","class","img-16",4,"ngIf"],["src","/shared/assets/public/images/omega-circle.png","ewbTooltip","Omega only","class","img-16",4,"ngIf"],["src","/shared/assets/public/images/alpha-circle.png","ewbTooltip","Alpha suitable","class","img-16",4,"ngIf"],[1,"modules","small"],[1,"slots","mb-1"],[1,"img-20","rounded-circle","border","border-1","border-white","me-1",3,"src","ewbTooltip","alt"],[1,"slots"],[1,"w-100",3,"src"],[1,"card-footer","small","text-center"],[1,"fa-solid","fa-user"],[1,"fa-solid","fa-calendar"],[3,"innerHTML"],["ewbTooltip","Has instructional video",1,"fa-duotone","fa-solid","fa-camera-movie"],["src","/shared/assets/public/images/abysstracker-logo.png","ewbTooltip","Abyss Tracker fit",1,"img-16"],["src","/shared/assets/public/images/omega-circle.png","ewbTooltip","Omega only",1,"img-16"],["src","/shared/assets/public/images/alpha-circle.png","ewbTooltip","Alpha suitable",1,"img-16"]],template:function(e,r){e&1&&M(0,gK,3,0,"div",0),e&2&&b("ngIf",r.results.length>0)},dependencies:[ge,$e,Pe,At],styles:[".card-filter[_ngcontent-%COMP%]{--bs-card-bg: #191d21}.card-filter[_ngcontent-%COMP%]:hover{text-decoration:none;--bs-card-bg: #0d6efd}.icon-bar[_ngcontent-%COMP%]{position:absolute;top:0;right:0;margin-top:-1px;padding:4px 10px;background-color:#0009}.icon-bar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .icon-bar[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px}.icon-bar[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:12px}.card[_ngcontent-%COMP%]:hover   .modules[_ngcontent-%COMP%]{display:block}.card[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]{display:none;background-color:#0009;position:absolute;bottom:0;left:0;width:100%;padding:4px 10px}.card[_ngcontent-%COMP%]   .modules[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:11px}"]})};var Is=i=>["/fit",i];function vK(i,t){i&1&&(p(0,"tr",3)(1,"th"),f(2,"Hull"),m(),p(3,"th"),f(4,"Fit name"),m(),p(5,"th"),f(6,"High"),m(),p(7,"th"),f(8,"Medium"),m(),p(9,"th"),f(10,"Low"),m(),p(11,"th"),f(12,"Price avg."),m(),p(13,"th"),f(14,"Uploader"),m()())}function _K(i,t){i&1&&T(0,"i",18)}function bK(i,t){i&1&&T(0,"img",19)}function yK(i,t){i&1&&T(0,"img",20)}function xK(i,t){i&1&&T(0,"img",21)}function CK(i,t){if(i&1&&T(0,"img",15),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.id,"/icon?size=64"),re)("alt",De(e.name))("ewbTooltip",e.name)}}function SK(i,t){if(i&1&&T(0,"img",15),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.id,"/icon?size=64"),re)("alt",De(e.name))("ewbTooltip",e.name)}}function wK(i,t){if(i&1&&T(0,"img",15),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.id,"/icon?size=64"),re)("alt",De(e.name))("ewbTooltip",e.name)}}function TK(i,t){if(i&1&&(p(0,"tr",4)(1,"td",5)(2,"div",6)(3,"a",7),T(4,"img",8),f(5),p(6,"span",9),f(7),m()()()(),p(8,"td",5)(9,"div",6)(10,"a",7),f(11),p(12,"div",10),M(13,_K,1,0,"i",11)(14,bK,1,0,"img",12)(15,yK,1,0,"img",13)(16,xK,1,0,"img",14),m()()()(),p(17,"td",5)(18,"div",6)(19,"a",7),oe(20,CK,1,5,"img",15,Te),m()()(),p(22,"td",5)(23,"div",6)(24,"a",7),oe(25,SK,1,5,"img",15,Te),m()()(),p(27,"td",5)(28,"div",6)(29,"a",7),oe(30,wK,1,5,"img",15,Te),m()()(),p(32,"td",5)(33,"div",6)(34,"a",7),T(35,"span",16),G(36,"shortPrice"),f(37," ISK "),m()()(),p(38,"td",5)(39,"div",6)(40,"a",7),T(41,"img",17),f(42),m()()()()),i&2){let e=t.$implicit;v(3),b("routerLink",te(27,Is,e.id)),v(),b("src",Q("https://images.evetech.net/types/",e.shipId,"/render?size=64"),re)("alt",De(e.shipName)),v(),V(" ",e.shipName," "),v(2),$(e.shipClass),v(3),b("routerLink",te(29,Is,e.id)),v(),V(" ",e.name," "),v(2),b("ngIf",e.hasVideo),v(),b("ngIf",e.isAbyssTracker),v(),b("ngIf",!e.isAlphaUsable),v(),b("ngIf",e.isAlphaUsable),v(3),b("routerLink",te(31,Is,e.id)),v(),ae(e.highSlots),v(4),b("routerLink",te(33,Is,e.id)),v(),ae(e.mediumSlots),v(4),b("routerLink",te(35,Is,e.id)),v(),ae(e.lowSlots),v(4),b("routerLink",te(37,Is,e.id)),v(),b("innerHTML",Ne(36,24,e.totalCost,""),ke),v(5),b("routerLink",te(39,Is,e.id)),v(),b("src",Q("https://images.evetech.net/characters/",e.characterId,"/portrait/?size=32"),re)("alt",Q("",e.characterName," avatar")),v(),V("",e.characterName," ")}}
1799var uf=class i extends mc{static \u0275fac=(()=>{let t;return function(r){return(t||(t=si(i)))(r||i)}})();static \u0275cmp=K({type:i,selectors:[["fit-results-classic-list"]],features:[Ke],decls:5,vars:1,consts:[["header",""],["body",""],["stripedRows","","rowHover","",3,"value"],[1,"small"],[1,"small","cursor-pointer"],[1,"p-0"],[1,"p-3","position-relative"],[3,"routerLink"],[1,"img-24","rounded-circle","border","border-1","border-white","me-2",3,"src","alt"],[1,"text-muted"],[1,"icon-bar","d-inline-block"],["class","fa-duotone fa-solid fa-camera-movie","ewbTooltip","Has instructional video",4,"ngIf"],["src","/shared/assets/public/images/abysstracker-logo.png","ewbTooltip","Abyss Tracker fit","class","img-16",4,"ngIf"],["src","/shared/assets/public/images/omega-circle.png","ewbTooltip","Omega only","class","img-16",4,"ngIf"],["src","/shared/assets/public/images/alpha-circle.png","ewbTooltip","Alpha suitable","class","img-16",4,"ngIf"],[1,"img-24","rounded-circle","border","border-1","border-white","me-2",3,"src","ewbTooltip","alt"],[3,"innerHTML"],[1,"rounded-circle","border","border-1-white","img-24","me-2",3,"src","alt"],["ewbTooltip","Has instructional video",1,"fa-duotone","fa-solid","fa-camera-movie"],["src","/shared/assets/public/images/abysstracker-logo.png","ewbTooltip","Abyss Tracker fit",1,"img-16"],["src","/shared/assets/public/images/omega-circle.png","ewbTooltip","Omega only",1,"img-16"],["src","/shared/assets/public/images/alpha-circle.png","ewbTooltip","Alpha suitable",1,"img-16"]],template:function(e,r){e&1&&(p(0,"p-table",2),M(1,vK,15,0,"ng-template",null,0,de)(3,TK,43,41,"ng-template",null,1,de),m()),e&2&&b("value",r.results)},dependencies:[xt,Dt,$e,ge,Pe,At],styles:[".icon-bar[_ngcontent-%COMP%]{margin-left:5px}.icon-bar[_ngcontent-%COMP%]   img[_ngcontent-%COMP%], .icon-bar[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px}"]})};var bk=(i,t)=>({"btn-primary":i,"btn-secondary":t});function EK(i,t){i&1&&(p(0,"div",12)(1,"p"),f(2,"No results found based on your filter."),m(),p(3,"p"),f(4,"Change some parameters or click on "),p(5,"strong"),f(6,"Reset filter"),m(),f(7," and try again."),m()())}function kK(i,t){if(i&1&&T(0,"fit-results-grid",13),i&2){let e=S();b("results",e.results)("GetLink",e.GetLink)}}function IK(i,t){if(i&1&&T(0,"fit-results-classic-list",13),i&2){let e=S();b("results",e.results)("GetLink",e.GetLink)}}var mf=class i{constructor(t,e){this.fitClient=t;this.activatedRoute=e;let r=new ys;switch(localStorage.getItem("fit-result-type")??"0"){case"0":this.searchViewType=0;break;case"1":this.searchViewType=1;break;case"2":this.searchViewType=2;break}e.queryParams.subscribe(o=>{o.tags!==void 0&&(r.tags=o.tags),o.ship!==void 0&&(r.shipId=o.ship),o.q!==void 0&&(r.searchQuery=o.q),this.OnFilterQueryCallback(r)})}hasResults=!1;isLoading=!1;results=[];searchViewType=0;skip=0;take=30;totalRecords=0;currentPage=1;totalPages=0;query;OnFilterQueryCallback(t){this.query=t,this.loadFits(0,this.take)}onPageChange(t){this.skip=t.first,this.take=t.rows,this.currentPage=t.page+1,this.loadFits(this.skip,this.take)}loadFits(t,e){this.query!==void 0&&(this.isLoading=!0,t==0&&(this.currentPage=1),this.query.skip=t,this.query.take=e,this.fitClient.postSearchFits(this.query).subscribe(r=>{r.success&&(window.scrollTo(0,0),this.hasResults=!0,this.results=r.results??[],this.isLoading=!1,this.totalRecords=r.totalResultCount??0,this.totalPages=Math.ceil(this.totalRecords/this.take))}))}GetLink(t){return`/fit/${t}`}switchViewType(t){this.searchViewType=t,localStorage.setItem("fit-result-type",t.toString())}FitSearchView=yk;static \u0275fac=function(e){return new(e||i)(N(it),N(Xt))};static \u0275cmp=K({type:i,selectors:[["app-fit-search"]],decls:20,vars:15,consts:[["paginator",""],[1,"row"],[1,"col","col-xxl-2","col-xl-2","col-lg-3","col-md-4"],[3,"OnFilterQuery"],[1,"col"],[1,"card"],[1,"card-body"],[1,"mb-3","mt-3"],[1,"btn","btn-primary","btn-sm","me-2",3,"click","ngClass"],["class","alert alert-warning",4,"ngIf"],[3,"results","GetLink",4,"ngIf"],["currentPageReportTemplate","Displaying page {currentPage} of {totalPages}",3,"onPageChange","showCurrentPageReport","rows","totalRecords","pageLinkSize"],[1,"alert","alert-warning"],[3,"results","GetLink"]],template:function(e,r){e&1&&(p(0,"div",1)(1,"div",2)(2,"fit-search-filter",3),R("OnFilterQuery",function(o){return r.OnFilterQueryCallback(o)}),m()(),p(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5"),f(7,"Fit Browser - Results"),m(),p(8,"div",7)(9,"button",8),R("click",function(){return r.switchViewType(r.FitSearchView.Grid)}),f(10,"Grid"),m(),p(11,"button",8),R("click",function(){return r.switchViewType(r.FitSearchView.ClassicList)}),f(12,"Classic List"),m()(),M(13,EK,8,0,"div",9)(14,kK,1,2,"fit-results-grid",10)(15,IK,1,2,"fit-results-classic-list",10),p(16,"div",1)(17,"div",4)(18,"p-paginator",11,0),R("onPageChange",function(o){return r.onPageChange(o)}),m()()()()()()()),e&2&&(v(9),b("ngClass",It(9,bk,r.searchViewType==r.FitSearchView.Grid,r.searchViewType!==r.FitSearchView.Grid)),v(2),b("ngClass",It(12,bk,r.searchViewType==r.FitSearchView.ClassicList,r.searchViewType!==r.FitSearchView.ClassicList)),v(2),b("ngIf",r.results.length==0),v(),b("ngIf",r.searchViewType==r.FitSearchView.Grid&&r.results.length>0),v(),b("ngIf",r.searchViewType==r.FitSearchView.ClassicList&&r.results.length>0),v(3),b("showCurrentPageReport",!0)("rows",r.take)("totalRecords",r.totalRecords)("pageLinkSize",6))},dependencies:[df,ge,Vr,pf,_t,uf],encapsulation:2})},yk=(r=>(r[r.Grid=0]="Grid",r[r.ClassicList=1]="ClassicList",r[r.List=2]="List",r))(yk||{});var xk=new St("NGX_ECHARTS_CONFIG"),hy=class{constructor(){this.subject=ne
1799w Lv(1),this.subscriptions=new da}doFilter(t){this.subject.next(t)}dispose(){this.subscriptions.unsubscribe()}notEmpty(t,e){this.subscriptions.add(this.subject.subscribe(r=>{if(r[t]){let n=r[t].currentValue;n!=null&&e(n)}}))}has(t,e){this.subscriptions.add(this.subject.subscribe(r=>{if(r[t]){let n=r[t].currentValue;e(n)}}))}notFirst(t,e){this.subscriptions.add(this.subject.subscribe(r=>{if(r[t]&&!r[t].isFirstChange()){let n=r[t].currentValue;e(n)}}))}notFirstAndEmpty(t,e){this.subscriptions.add(this.subject.subscribe(r=>{if(r[t]&&!r[t].isFirstChange()){let n=r[t].currentValue;n!=null&&e(n)}}))}},Ck=(()=>{class i{constructor(){this.el=ie(Cr),this.ngZone=ie(Si),this.config=ie(xk),this.options=jt(null),this.theme=jt(this.config.theme??null),this.initOpts=jt(null),this.merge=jt(null),this.autoResize=jt(!0),this.loading=jt(!1),this.loadingType=jt("default"),this.loadingOpts=jt(null),this.chartInit=Wv(),this.optionsError=Wv(),this.chartClick=gt(this.createLazyEvent("click")),this.chartDblClick=gt(this.createLazyEvent("dblclick")),this.chartMouseDown=gt(this.createLazyEvent("mousedown")),this.chartMouseMove=gt(this.createLazyEvent("mousemove")),this.chartMouseUp=gt(this.createLazyEvent("mouseup")),this.chartMouseOver=gt(this.createLazyEvent("mouseover")),this.chartMouseOut=gt(this.createLazyEvent("mouseout")),this.chartGlobalOut=gt(this.createLazyEvent("globalout")),this.chartContextMenu=gt(this.createLazyEvent("contextmenu")),this.chartHighlight=gt(this.createLazyEvent("highlight")),this.chartDownplay=gt(this.createLazyEvent("downplay")),this.chartSelectChanged=gt(this.createLazyEvent("selectchanged")),this.chartLegendSelectChanged=gt(this.createLazyEvent("legendselectchanged")),this.chartLegendSelected=gt(this.createLazyEvent("legendselected")),this.chartLegendUnselected=gt(this.createLazyEvent("legendunselected")),this.chartLegendLegendSelectAll=gt(this.createLazyEvent("legendselectall")),this.chartLegendLegendInverseSelect=gt(this.createLazyEvent("legendinverseselect")),this.chartLegendScroll=gt(this.createLazyEvent("legendscroll")),this.chartDataZoom=gt(this.createLazyEvent("datazoom")),this.chartDataRangeSelected=gt(this.createLazyEvent("datarangeselected")),this.chartGraphRoam=gt(this.createLazyEvent("graphroam")),this.chartGeoRoam=gt(this.createLazyEvent("georoam")),this.chartTreeRoam=gt(this.createLazyEvent("treeroam")),this.chartTimelineChanged=gt(this.createLazyEvent("timelinechanged")),this.chartTimelinePlayChanged=gt(this.createLazyEvent("timelineplaychanged")),this.chartRestore=gt(this.createLazyEvent("restore")),this.chartDataViewChanged=gt(this.createLazyEvent("dataviewchanged")),this.chartMagicTypeChanged=gt(this.createLazyEvent("magictypechanged")),this.chartGeoSelectChanged=gt(this.createLazyEvent("geoselectchanged")),this.chartGeoSelected=gt(this.createLazyEvent("geoselected")),this.chartGeoUnselected=gt(this.createLazyEvent("geounselected")),this.chartAxisAreaSelected=gt(this.createLazyEvent("axisareaselected")),this.chartBrush=gt(this.createLazyEvent("brush")),this.chartBrushEnd=gt(this.createLazyEvent("brushend")),this.chartBrushSelected=gt(this.createLazyEvent("brushselected")),this.chartGlobalCursorTaken=gt(this.createLazyEvent("globalcursortaken")),this.chartRendered=gt(this.createLazyEvent("rendered")),this.chartFinished=gt(this.createLazyEvent("finished")),this.animationFrameID=null,this.chart$=new Lv(1),this.resize$=new Ze,this.changeFilter=new hy,this.resizeObFired=!1,this.echarts=this.config.echarts}ngOnChanges(e){this.changeFilter.doFilter(e)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(ow(100,$2,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize()&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(e=>{for(let r of e)r.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",e=>this.onOptionsChange(e)),this.changeFilter.notFirstAndEmpty("merge",e=>this.setOption(e)),this.changeFilter.has("loading",e=>this.toggleLoading(!!e)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}
1799dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(e){this.chart?e?this.chart.showLoading(this.loadingType(),this.loadingOpts()):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe(r=>e?r.showLoading(this.loadingType(),this.loadingOpts()):r.hideLoading())}setOption(e,r){if(this.chart)try{this.chart.setOption(e,r)}catch(n){console.error(n),this.optionsError.emit(n)}}refreshChart(){return Et(this,null,function*(){this.dispose(),yield this.initChart()})}createChart(){let e=this.el.nativeElement;if(window&&window.getComputedStyle){let r=window.getComputedStyle(e,null).getPropertyValue("height");(!r||r==="0px")&&(!e.style.height||e.style.height==="0px")&&(e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>(typeof this.echarts=="function"?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:n})=>n(e,this.theme()??this.config?.theme,this.initOpts())))}initChart(){return Et(this,null,function*(){yield this.onOptionsChange(this.options());let e=this.merge();e&&this.chart&&this.setOption(e)})}onOptionsChange(e){return Et(this,null,function*(){e&&(this.chart?this.setOption(this.options(),!0):(this.chart=yield this.createChart(),this.chart$.next(this.chart),this.chartInit.emit(this.chart),this.setOption(this.options(),!0)))})}createLazyEvent(e){return Rw(this.chartInit).pipe(oo(r=>new fs(n=>(r.on(e,o=>this.ngZone.run(()=>n.next(o))),()=>{this.chart&&(this.chart.isDisposed()||r.off(e))}))))}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275dir=Sr({type:i,selectors:[["echarts"],["","echarts",""]],inputs:{options:[1,"options"],theme:[1,"theme"],initOpts:[1,"initOpts"],merge:[1,"merge"],autoResize:[1,"autoResize"],loading:[1,"loading"],loadingType:[1,"loadingType"],loadingOpts:[1,"loadingOpts"]},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[xr]})}}return i})();function Sk(i){return{provide:xk,useValue:i}}var DK=["*"];function MK(i,t){if(i&1&&(p(0,"div",8)(1,"span"),f(2),m()()),i&2){let e=t.$implicit;v(2),$(e.label)}}function PK(i,t){if(i&1){let e=J();p(0,"div",4)(1,"p-floatlabel",5)(2,"p-select",6),Je("ngModelChange",function(n){L(e);let o=S();return Xe(o.displayStatsFor,n)||(o.displayStatsFor=n),O(n)}),R("ngModelChange",function(){L(e);let n=S();return O(n.onLevelChange())}),M(3,MK,3,1,"ng-template",null,0,de),m(),p(5,"label",7),f(6,"Display statistics for"),m()()()}if(i&2){let e=S();v(2),Qe("ngModel",e.displayStatsFor),b("options",e.levelSelectorOptions)("group",!0)}}function FK(i,t){i&1&&(p(0,"div",4)(1,"div",9)(2,"div",10)(3,"div",11),f(4," Loading statistics... "),m()()()())}function RK(i,t){i&1&&(p(0,"div",4)(1,"div",9)(2,"div",10)(3,"div",12),f(4," An error occurred while loading the statistics. If this error persists please contact our team. "),m()()()())}function LK(i,t){if(i&1){let e=J();p(0,"div",79)(1,"p-floatlabel",5)(2,"p-select",80),Je("ngModelChange",function(n){L(e);let o=S(2);return Xe(o.weatherType,n)||(o.weatherType=n),O(n)}),R("ngModelChange",function(){L(e);let n=S(2);return O(n.onWeatherTypeChange())}),m(),p(3,"label",81),f(4,"Weather type"),m()()()}if(i&2){let e=S(2);v(2),Qe("ngModel",e.weatherType),b("options",e.weatherTypeOptions)("group",!1)("showClear",!0)}}function OK(i,t){if(i&1&&f(0),i&2){let e=S().$implicit,r=S(3);V(" ",r.ValidationMessageType[e.messageType]," ")}}function AK(i,t){if(i&1&&(p(0,"li"),H(1,OK,1,1),f(2),m()),i&2){let e=t.$implicit,r=S(3);v(),W(e.messageType!=null?1:-1),v(),kt(" - ",e.message," ",e.slotType?" - "+r.SlotType[e.slotType]:""," ")}}function BK(i,t){if(i&1){let e=J();p(0,"div",16)(1,"div",10)(2,"h6"),f(3,"Validation has errors"),m(),p(4,"button",82),R("click",function(n){L(e);let o=Ve(7);return O(o.toggle(n))}),f(5,"Show validation messages"),m(),p(6,"p-popover",null,1)(8,"div",12)(9,"ul"),oe(10,AK,3,3,"li",null,Te),m()()()()()}if(i&2){let e=S(2);v(10),ae(e.statistics.validationMessages)}}function NK(i,t){i&1&&T(0,"overlay-loader")}function VK(i,t){if(i&1&&(p(0,"tr")(1,"td"),T(2,"img",83),m(),p(3,"td"),f(4,"Drones"),m(),p(5,"td",24),f(6),G(7,"numericFormatter"),m(),p(8,"td")(9,"span",25),f(10,"dps"),m()()()),i&2){let e=S(2);v(6),$(ee(7,1,e.statistics.droneDPS," ",1))}}function zK(i,t){if(i&1&&(p(0,"tr")(1,"td"),T(2,"img",83),m(),p(3,"td"),f(4,"Fighters"),m(),p(5,"td",24),f(6),G(7,"numericFormatter"),m(),p(8,"td")(9,"span",25),f(10,"dps"),m()()()),i&2){let e=S(2);v(6),$(ee(7,1,e.statistics.fighterDPS," ",1))}}function UK(i,t){i&1&&T(0,"overlay-loader")}function HK(i,t){if(i&1&&(p(0,"tr")(1,"td"),T(2,"img",83),m(),p(3,"td"),f(4,"Drones"),m(),p(5,"td",24),f(6),G(7,"numericFormatter"),m(),p(8,"td")(9,"span",25),f(10,"m"),p(11,"sup"),f(12,"3"),m(),f(13,"/s"),m()()()),i&2){let e=S(3);v(6),$(ee(7,1,e.statistics.miningYieldDrones," ",1))}}function WK(i,t){if(i&1&&(p(0,"div",16),M(1,UK,1,0,"overlay-loader",17),p(2,"div",10)(3,"div",18)(4,"h6"),f(5,"Mining"),m()(),p(6,"div",19)(7,"div")(8,"p",20),f(9),G(10,"numericFormatter"),p(11,"sup"),f(12,"3"),m(),f(13,"/s"),m()(),p(14,"div")(15,"table",22)(16,"tbody")(17,"tr")(18,"td"),T(19,"img",84),m(),p(20,"td"),f(21,"Weapons"),m(),p(22,"td",24),f(23),G(24,"numericFormatter"),m(),p(25,"td")(26,"span",25),f(27,"m"),p(28,"sup"),f(29,"3"),m(),f(30,"/s"),m()()(),M(31,HK,14,5,"tr",17),m()()()()()()),i&2){let e=S(2);v(),b("ngIf",e.isLoading),v(8),V("",ee(10,4,e.statistics.miningYield," ",1)," m"),v(14),$(ee(24,8,e.statistics.miningYieldModules??0," ",1)),v(8),b("ngIf",(e.statistics.miningYieldDrones??0)>0)}}function GK(i,t){i&1&&T(0,"overlay-loader")}function qK(i,t){if(i&1&&T(0,"div",89),i&2){let e=S(3);b("initOpts",e.precursorInitOpts)("options",e.precursorChart)}}function jK(i,t){if(i&1&&(p(0,"div",16),M(1,GK,1,0,"overlay-loader",17),p(2,"div",10)(3,"div",18)(4,"h6"),f(5,"Precursor"),m()(),p(6,"table",27)(7,"tr")(8,"td"),T(9,"img",85),f(10,"\xA0Max DPS"),m(),p(11,"td",24),f(12),G(13,"numericFormatter"),m(),p(14,"td")(15,"span",25),f(16,"dps"),m()()(),p(17,"tr")(18,"td",86),T(19,"img",87),f(20,"\xA0Ramp up DPS"),m()()(),M(21,qK,1,2,"div",88),m()()),i&2){let e=S(2);v(),b("ngIf",e.isLoading),v(11),V(" ",ee(13,3,e.statistics.precursorMaxDps," ",1)),v(9),b("ngIf",e.precursorChart!==void 0)}}function YK(i,t){i&1&&T(0,"overlay-loader")}function KK(i,t){if(i&1&&(p(0,"tr")(1,"td",30),T(2,"img",90),m(),p(3,"td"),f(4,"Drone Bay"),m(),T(5,"td"),p(6,"td",32),f(7),G(8,"numericFormatter"),m(),p(9,"td",24),f(10),G(11,"numericFormatter"),m()()),i&2){let e=S(2);v(6),b("className","text-end "+((e.statistics.droneCapacityUsed??0)>(e.statistics.droneCapacity??0)?"text-danger":"")),v(),V("",ee(8,3,e.statistics.droneCapacityUsed," ",0)," m3"),v(3),V("",ee(11,7,e.statistics.droneCapacity," ",0)," m3")}}function $K(i,t){if(i&1&&(p(0,"tr")(1,"td",30),T(2,"img",91),m(),p(3,"td"),f(4,"Drone Bandwidth"),m(),T(5,"td"),p(6,"td",32),f(7),G(8,"numericFormatter"),m(),p(9,"td",24),f(10),G(11,"numericFormatter"),m()()),i&2){let e=S(2);v(6),b("className","text-end "+((e.statistics.droneBandwidthUsed??0)>(e.statistics.droneBandwidth??0)?"text-danger":"")),v(),V("",ee(8,3,e.statistics.droneBandwidthUsed," ",0)," mbit/s"),v(3),V("",ee(11,7,e.statistics.droneBandwidth," ",0)," mbit/s")}}function ZK(i,t){if(i&1&&(p(0,"tr")(1,"td",30),T(2,"img",92),m(),p(3,"td"),f(4,"Fighterbay"),m(),T(5,"td"),p(6,"td",32),f(7),G(8,"numericFormatter"),m(),p(9,"td",24),f(10),G(11,"numericFormatter"),m()()),i&2){let e=S(2);v(6),b("className","text-end "+((e.statistics.fighterCapacityUsed??0)>(e.statistics.fighterCapacity??0)?"text-danger":"")),v(),V("",ee(8,3,e.statistics.fighterCapacityUsed," ",0)," m3"),v(3),V("",ee(11,7,e.statistics.fighterCapacity," ",0)," m3")}}function QK(i,t){i&1&&T(0,"overlay-loader")}function XK(i,t){i&1&&T(0,"overlay-loader")}function JK(i,t){i&1&&(p(0,"td",93)(1,"span",94),f(2,"Stable"),m()())}function e$(i,t){if(i&1&&(p(0,"td",93)(1,"span",94),f(2),m()()),i&2){let e=S(2);v(2),V("Lasts for ",e.statistics.capacitorDepletiontimeFormatted)}}function t$(i,t){i&1&&T(0,"overlay-loader")}function i$(i,t){i&1&&T(0,"overlay-loader")}function r$(i,t){if(i&1&&(p(0,"tr")(1,"td"),T(2,"img",78),f(3,"\xA0Ore Hold"),m(),p(4,"td",72),f(5),G(6,"numericFormatter"),m(),p(7,"td")(8,"span",25),f(9,"m3"),m()()()),i&2){let e=S(2);v(5),$(ee(6,1,e.statistics.oreHoldCapacity,"",0))}}function n$(i,t){if(i&1&&(p(0,"tr")(1,"td"),T(2,"img",78),f(3,"\xA0Fleet Hangar"),m(),p(4,"td",72),f(5),G(6,"numericFormatter"),m(),p(7,"td")(8,"span",25),f(9,"m3"),m()()()),i&2){let e=S(2);v(5),$(ee(6,1,e.statistics.fleetHangarCapacity,"",0))}}function o$(i,t){if(i&1&&(p(0,"tr")(1,"td"),T(2,"img",78),f(3,"\xA0Ship Maintenance Bay"),m(),p(4,"td",72),f(5),G(6,"numericFormatter"),m(),p(7,"td")(8,"span",25),f(9,"m3"),m()()()),i&2){let e=S(2);v(5),$(ee(6,1,e.statistics.shipMaintenanceBayCapacity,"",0))}}function a$(i,t){if(i&1&&(p(0,"tr")(1,"td"),T(2,"img",78),f(3,"\xA0Fuel Bay"),m(),p(4,"td",72),f(5),G(6,"numericFormatter"),m(),p(7,"td")(8,"span",25),f(9,"m3"),m()()()),i&2){let e=S(2);v(5),$(ee(6,1,e.statistics.fuelBayCapacity,"",0))}}function s$(i,t){i&1&&T(0,"overlay-loader")}function l$(i,t){if(i&1&&(p(0,"div",16),M(1,s$,1,0,"overlay-loader",17),p(2,"div",10)(3,"div",18)(4,"h6"),f(5,"Remote repairs "),p(6,"span",95),f(7,"Experimental"),m()()(),p(8,"table",34)(9,"tr")(10,"td"),f(11,"\xA0"),m(),p(12,"td",96),T(13,"img",97),m(
1799),p(14,"td",98),T(15,"img",99),m(),p(16,"td",100),T(17,"img",101),m(),p(18,"td",102),T(19,"img",103),m()(),p(20,"tr")(21,"td",68),T(22,"img",69),m(),p(23,"td"),f(24),G(25,"numericFormatter"),m(),p(26,"td"),f(27),G(28,"numericFormatter"),m(),p(29,"td"),f(30),G(31,"numericFormatter"),m(),p(32,"td"),f(33),G(34,"numericFormatter"),m()()()()()),i&2){let e=S(2);v(),b("ngIf",e.isLoading),v(23),V("",ee(25,5,e.statistics.capacitorRemoteTransfer," ",0)," GJ/s"),v(3),V("",ee(28,9,e.statistics.shieldRemoteBoost," ",0)," HP/s"),v(3),V("",ee(31,13,e.statistics.armorRemoteRepairRate," ",0)," HP/s"),v(3),V("",ee(34,17,e.statistics.hullRemoteRepairRate," ",0)," HP/s")}}function c$(i,t){if(i&1&&(p(0,"div",13),M(1,LK,5,4,"div",14)(2,BK,12,0,"div",15),p(3,"div",16),M(4,NK,1,0,"overlay-loader",17),p(5,"div",10)(6,"div",18)(7,"h6"),f(8,"Firepower"),m()(),p(9,"div",19)(10,"div")(11,"p",20),f(12),G(13,"numericFormatter"),m(),p(14,"small",21),f(15,"total dps"),m()(),p(16,"div")(17,"table",22)(18,"tbody")(19,"tr")(20,"td"),T(21,"img",23),m(),p(22,"td"),f(23,"Weapons"),m(),p(24,"td",24),f(25),G(26,"numericFormatter"),m(),p(27,"td")(28,"span",25),f(29,"dps"),m()()(),M(30,VK,11,5,"tr",17)(31,zK,11,5,"tr",17),p(32,"tr")(33,"td"),T(34,"img",26),m(),p(35,"td"),f(36,"Volley"),m(),p(37,"td",24),f(38),G(39,"numericFormatter"),m(),p(40,"td")(41,"span",25),f(42,"dmg"),m()()()()()()()()(),M(43,WK,32,12,"div",15)(44,jK,22,7,"div",15),p(45,"div",16),M(46,YK,1,0,"overlay-loader",17),p(47,"div",10)(48,"h6"),f(49,"Resource usage"),m(),p(50,"table",27)(51,"tbody")(52,"tr")(53,"td",28),f(54,"\xA0"),m(),p(55,"td",29),f(56,"used"),m(),p(57,"td",29),f(58,"available"),m()(),p(59,"tr")(60,"td",30),T(61,"img",31),m(),p(62,"td"),f(63,"CPU"),m(),T(64,"td"),p(65,"td",32),f(66),G(67,"numericFormatter"),m(),p(68,"td",24),f(69),G(70,"numericFormatter"),m()(),p(71,"tr")(72,"td",30),T(73,"img",33),m(),p(74,"td"),f(75,"Power Grid"),m(),T(76,"td"),p(77,"td",32),f(78),G(79,"numericFormatter"),m(),p(80,"td",24),f(81),G(82,"numericFormatter"),m()(),M(83,KK,12,11,"tr",17)(84,$K,12,11,"tr",17)(85,ZK,12,11,"tr",17),m()()()(),p(86,"div",16),M(87,QK,1,0,"overlay-loader",17),p(88,"div",10)(89,"div",18)(90,"h6"),f(91,"Resistance"),m()(),p(92,"table",34)(93,"tr"),T(94,"td"),p(95,"td",35),T(96,"img",36),m(),p(97,"td",37),T(98,"img",38),m(),p(99,"td",39),T(100,"img",40),m(),p(101,"td",41),T(102,"img",42),m(),p(103,"td",43),T(104,"img",44),m()(),p(105,"tr")(106,"td",45),T(107,"img",46),m(),p(108,"td")(109,"div",47)(110,"div",48),G(111,"numericFormatter"),f(112,"\xA0"),m(),p(113,"span",49),f(114),G(115,"numericFormatter"),m()()(),p(116,"td")(117,"div",50)(118,"div",48),G(119,"numericFormatter"),f(120,"\xA0"),m(),p(121,"span",49),f(122),G(123,"numericFormatter"),m()()(),p(124,"td")(125,"div",51)(126,"div",48),G(127,"numericFormatter"),f(128,"\xA0"),m(),p(129,"span",49),f(130),G(131,"numericFormatter"),m()()(),p(132,"td")(133,"div",52)(134,"div",48),G(135,"numericFormatter"),f(136,"\xA0"),m(),p(137,"span",49),f(138),G(139,"numericFormatter"),m()()(),p(140,"td",24),f(141),G(142,"numericFormatter"),p(143,"span",25),f(144,"k ehp"),m()()(),p(145,"tr")(146,"td",53),T(147,"img",54),m(),p(148,"td")(149,"div",47)(150,"div",48),G(151,"numericFormatter"),f(152,"\xA0"),m(),p(153,"span",49),f(154),G(155,"numericFormatter"),m()()(),p(156,"td")(157,"div",50)(158,"div",48),G(159,"numericFormatter"),f(160,"\xA0"),m(),p(161,"span",49),f(162),G(163,"numericFormatter"),m()()(),p(164,"td")(165,"div",51)(166,"div",48),G(167,"numericFormatter"),f(168,"\xA0"),m(),p(169,"span",49),f(170),G(171,"numericFormatter"),m()()(),p(172,"td")(173,"div",52)(174,"div",48),G(175,"numericFormatter"),f(176,"\xA0"),m(),p(177,"span",49),f(178),G(179,"numericFormatter"),m()()(),p(180,"td",24),f(181),G(182,"numericFormatter"),p(183,"span",25),f(184,"k ehp"),m()()(),p(185,"tr")(186,"td",55),T(187,"img",56),m(),p(188,"td")(189,"div",47)(190,"div",48),G(191,"numericFormatter"),f(192,"\xA0"),m(),p(193,"span",49),f(194),G(195,"numericFormatter"),m()()(),p(196,"td")(197,"div",50)(198,"div",48),G(199,"numericFormatter"),f(200,"\xA0"),m(),p(201,"span",49),f(202),G(203,"numericFormatter"),m()()(),p(204,"td")(205,"div",51)(206,"div",48),G(207,"numericFormatter"),f(208,"\xA0"),m(),p(209,"span",49),f(210),G(211,"numericFormatter"),m()()(),p(212,"td")(213,"div",52)(214,"div",48),G(215,"numericFormatter"),f(216,"\xA0"),m(),p(217,"span",49),f(218),G(219,"numericFormatter"),m()()(),p(220,"td",24),f(221),G(222,"numericFormatter"),p(223,"span",25),f(224,"k ehp"),m()()(),p(225,"tr")(226,"td",57),f(227),G(228,"numericFormatter"),p(229,"span",25),f(230,"ehp"),m()()()()()(),p(231,"div",16),M(232,XK,1,0,"overlay-loader",17),p(233,"div",10)(234,"div",18)(235,"h6"),f(236,"Capacitor"),m()(),p(237,"table",27)(238,"tr"),M(239,JK,3,0,"td",58)(240,e$,3,1,"td",58),m(),p(241,"tr")(242,"td"),T(243,"img",59),f(244,"\xA0Capacity"),m(),p(245,"td",24),f(246),G(247,"numericFormatter"),m(),p(248,"td")(249,"span",25),f(250,"GJ"),m()()(),p(251,"tr")(252,"td"),T(253,"img",59),f(254,"\xA0Delta Percentage"),m(),p(255,"td",24),f(256),G(257,"numericFormatter"),m(),p(258,"td")(259,"span",25),f(260,"%"),m()()(),p(261,"tr")(262,"td"),T(263,"img",59),f(264,"\xA0Delta"),m(),p(265,"td",24),f(266),G(267,"numericFormatter"),m(),p(268,"td")(269,"span",25),f(270,"GJ/s"),m()()(),p(271,"tr")(272,"td"),T(273,"img",59),f(274,"\xA0Recharge Rate"),m(),p(275,"td",24),f(276),G(277,"numericFormatter"),m(),p(278,"td")(279,"span",25),f(280,"S"),m()()()()()(),p(281,"div",16),M(282,t$,1,0,"overlay-loader",17),p(283,"div",10)(284,"div",18)(285,"h6"),f(286,"Repairs"),m()(),p(287,"table",34)(288,"tr")(289,"td"),f(290,"\xA0"),m(),p(291,"td",60),T(292,"img",61),m(),p(293,"td",62),T(294,"img",63),m(),p(295,"td",64),T(296,"img",65),m(),p(297,"td",66),T(298,"img",67),m()(),p(299,"tr")(300,"td",68),T(301,"img",69),m(),p(302,"td"),f(303),G(304,"numericFormatter"),m(),p(305,"td"),f(306),G(307,"numericFormatter"),m(),p(308,"td"),f(309),G(310,"numericFormatter"),m(),p(311,"td"),f(312),G(313,"numericFormatter"),m()()()()(),p(314,"div",16),M(315,i$,1,0,"overlay-loader",17),p(316,"div",10)(317,"div",18)(318,"h6"),f(319,"Targeting & miscellaneous"),m()(),p(320,"table",27)(321,"tr")(322,"td"),T(323,"img",70),f(324,"\xA0Targets"),m(),p(325,"td",24),f(326),G(327,"numericFormatter"),m(),T(328,"td"),m(),p(329,"tr")(330,"td"),T(331,"img",71),f(332,"\xA0Targeting range"),m(),p(333,"td",72),f(334),G(335,"numericFormatter"),m(),p(336,"td")(337,"span",25),f(338,"km"),m()()(),p(339,"tr")(340,"td"),T(341,"img",71),f(342,"\xA0Drone range"),m(),p(343,"td",72),f(344),G(345,"numericFormatter"),m(),p(346,"td")(347,"span",25),f(348,"km"),m()()(),p(349,"tr")(350,"td"),T(351,"img",73),f(352,"\xA0Scan resolution"),m(),p(353,"td",72),f(354),G(355,"numericFormatter"),m(),p(356,"td")(357,"span",25),f(358,"mm"),m()()(),p(359,"tr")(360,"td"),T(361,"img",74),f(362,"\xA0Sensor strength"),m(),p(363,"td",72),f(364),G(365,"numericFormatter"),m(),p(366,"td")(367,"span",25),f(368,"str"),m()()(),p(369,"tr")(370,"td"),T(371,"img",75),f(372,"\xA0Signature radius"),m(),p(373,"td",72),f(374),G(375,"numericFormatter"),m(),p(376,"td")(377,"span",25),f(378,"m"),m()()(),p(379,"tr")(380,"td"),T(381,"img",76),f(382,"\xA0Speed"),m(),p(383,"td",72),f(384),G(385,"numericFormatter"),m(),p(386,"td")(387,"span",25),f(388,"m/s"),m()()(),p(389,"tr")(390,"td"),T(391,"img",77),f(392,"\xA0Warp Speed"),m(),p(393,"td",72),f(394),G(395,"numericFormatter"),m(),p(396,"td")(397,"span",25),f(398,"AU/s"),m()()(),p(399,"tr")(400,"td"),T(401,"img",76),f(402,"Align time"),m(),p(403,"td",72),f(404),G(405,"numericFormatter"),m(),p(406,"td")(407,"span",25),f(408,"s"),m()()(),p(409,"tr")(410,"td"),T(411,"img",78),f(412,"\xA0Cargo"),m(),p(413,"td",72),f(414),G(415,"numericFormatter"),m(),p(416,"td")(417,"span",25),f(418,"m3"),m()()(),M(419,r$,10,5,"tr",17)(420,n$,10,5,"tr",17)(421,o$,10,5,"tr",17)(422,a$,10,5,"tr",17),m()()(),M(423,l$,35,21,"div",15),m()),i&2){let e=S();v(),b("ngIf",e.fit==null?null:e.fit.isAbyssTracker),v(),b("ngIf",((e.statistics.validationMessages==null?null:e.statistics.validationMessages.length)??0)>0),v(2),b("ngIf",e.isLoading),v(8),V("",ee(13,102,(e.statistics.weaponDPS??0)+(e.statistics.droneDPS??0)+(e.statistics.fighterDPS??0)," ",1)," dps"),v(13),$(ee(26,106,e.statistics.weaponDPS??0," ",1)),v(5),b("ngIf",(e.statistics.droneBandwidth??0)>0),v(),b("ngIf",(e.statistics.fighterCapacity??0)>0),v(7),$(ee(39,110,e.statistics.weaponVolley??0," ",0)),v(5),b("ngIf",(e.statistics.miningYield??0)>0),v(),b("ngIf",e.statistics.precursorRampUp==null?null:e.statistics.precursorRampUp.length),v(2),b("ngIf",e.isLoading),v(19),b("className","text-end "+((e.statistics.cpuLoad??0)>(e.statistics.cpuOutput??0)?"text-danger":"")),v(),V("",ee(67,114,e.statistics.cpuLoad," ",1)," tf"),v(3),V("",ee(70,118,e.statistics.cpuOutput,"",1)," tf"),v(8),b("className","text-end "+((e.statistics.powerLoad??0)>(e.statistics.powerOutput??0)?"text-danger":"")),v(),V("",ee(79,122,e.statistics.powerLoad," ",1)," MW"),v(3),V("",ee(82,126,e.statistics.powerOutput," ",1)," MW"),v(2),b("ngIf",(e.statistics.droneBandwidth??0)>0),v(),b("ngIf",(e.statistics.droneBandwidth??0)>0),v(),b("ngIf",(e.statistics.fighterCapacity??0)>0),v(2),b("ngIf",e.isLoading),v(23),Lt(Q("width: ",ee(111,130,e.statistics.shieldEM==0?1:e.statistics.shieldEM,"",0),"%; background: #2685c6;")),v(4),V("",ee(115,134,e.statistics.shieldEM,"",0),"%"),v(4),Lt(Q("width: ",ee(119,138,e.statistics.shieldTH==0?1:e.statistics.shieldTH,"",0),"%;")),v(4),V("",ee(123,142,e.statistics.shieldTH,"",0),"%"),v(4),Lt(Q("width: ",ee(127,146,e.statistics.shieldKI==0?1:e.statistics.shieldKI,"",0),"%;")),v(4),V("",ee(131,150,e.statistics.shieldKI,"",0),"%"),v(4),Lt(Q("width: ",ee(135,
1799154,e.statistics.shieldEX==0?1:e.statistics.shieldEX,"",0),"%;")),v(4),V("",ee(139,158,e.statistics.shieldEX,"",0),"%"),v(3),V("",ee(142,162,e.statistics.shieldEHP,"",2)," "),v(9),Lt(Q("width: ",ee(151,166,e.statistics.armorEM==0?1:e.statistics.armorEM,"",0),"%; background: #2685c6;")),v(4),V("",ee(155,170,e.statistics.armorEM,"",0),"%"),v(4),Lt(Q("width: ",ee(159,174,e.statistics.armorTH==0?1:e.statistics.armorTH,"",0),"%;")),v(4),V("",ee(163,178,e.statistics.armorTH,"",0),"%"),v(4),Lt(Q("width: ",ee(167,182,e.statistics.armorKI==0?1:e.statistics.armorKI,"",0),"%;")),v(4),V("",ee(171,186,e.statistics.armorKI,"",0),"%"),v(4),Lt(Q("width: ",ee(175,190,e.statistics.armorEX==0?1:e.statistics.armorEX,"",0),"%;")),v(4),V("",ee(179,194,e.statistics.armorEX,"",0),"%"),v(3),V("",ee(182,198,e.statistics.armorEHP,"",2)," "),v(9),Lt(Q("width: ",ee(191,202,e.statistics.hullEM==0?1:e.statistics.hullEM,"",0),"%; background: #2685c6;")),v(4),V("",ee(195,206,e.statistics.hullEM,"",0),"%"),v(4),Lt(Q("width: ",ee(199,210,e.statistics.hullTH==0?1:e.statistics.hullTH,"",0),"%;")),v(4),V("",ee(203,214,e.statistics.hullTH,"",0),"%"),v(4),Lt(Q("width: ",ee(207,218,e.statistics.hullKI==0?1:e.statistics.hullKI,"",0),"%;")),v(4),V("",ee(211,222,e.statistics.hullKI,"",0),"%"),v(4),Lt(Q("width: ",ee(215,226,e.statistics.hullEX==0?1:e.statistics.hullEX,"",0),"%;")),v(4),V("",ee(219,230,e.statistics.hullEX,"",0),"%"),v(3),V("",ee(222,234,e.statistics.hullEHP,"",2)," "),v(6),V(" Total: ",ee(228,238,(e.statistics.shieldEHP??0)+(e.statistics.armorEHP??0)+(e.statistics.hullEHP??0),"",2),"k "),v(5),b("ngIf",e.isLoading),v(7),b("ngIf",e.statistics.capacitorStable),v(),b("ngIf",!e.statistics.capacitorStable),v(6),kt(" ",ee(247,242,e.statistics.capacitorCapacity," ",2),"",e.statistics.capacitorCapacityUnit," "),v(10),$(ee(257,246,e.statistics.capacitorDeltaPercentage," ",1)),v(10),$(ee(267,250,e.statistics.capacitorDelta," ",1)),v(10),$(ee(277,254,e.statistics.capacitorRechargeRate," ",0)),v(6),b("ngIf",e.isLoading),v(21),V("",ee(304,258,e.statistics.shieldPassiveRechargeRateEHP," ",0)," EHP/s"),v(3),V("",ee(307,262,e.statistics.shieldActiveRechargeRateEHP," ",0)," EHP/s"),v(3),V("",ee(310,266,e.statistics.armorRepairRateEHP," ",0)," EHP/s"),v(3),V("",ee(313,270,e.statistics.hullRepairRateEHP," ",0)," EHP/s"),v(3),b("ngIf",e.isLoading),v(11),$(ee(327,274,e.statistics.maxLockedTargets,"",0)),v(8),$(ee(335,278,e.statistics.maxTargetRange,"",2)),v(10),$(ee(345,282,e.statistics.droneRange,"",1)),v(10),$(ee(355,286,e.statistics.scanResolution,"",1)),v(10),$(ee(365,290,e.statistics.sensorStrength,"",1)),v(10),$(ee(375,294,e.statistics.signatureRadius,"",1)),v(10),$(ee(385,298,e.statistics.maxVelocity,"",1)),v(10),$(ee(395,302,e.statistics.warpSpeed,"",1)),v(10),$(ee(405,306,e.statistics.alignTime,"",2)),v(10),$(ee(415,310,e.statistics.cargoCapacity,"",0)),v(5),b("ngIf",(e.statistics.oreHoldCapacity??0)>0),v(),b("ngIf",(e.statistics.fleetHangarCapacity??0)>0),v(),b("ngIf",(e.statistics.shipMaintenanceBayCapacity??0)>0),v(),b("ngIf",(e.statistics.fuelBayCapacity??0)>0),v(),b("ngIf",(e.statistics.capacitorRemoteTransfer??0)>0||(e.statistics.shieldRemoteBoost??0)>0||(e.statistics.armorRemoteRepairRate??0)>0||(e.statistics.hullRemoteRepairRate??0)>0)}}var en=class i{constructor(t,e,r){this.fitClient=t;this.authService=e;this.fitService=r}fit=void 0;showLevelSelector=!1;onStatisticsUpdate=new he;sub;displayStatsFor=5;weatherType=0;isInitialLoad=!0;isLoading=!0;hasError=!1;statistics=new Xw;levelSelectorOptions=[];weatherTypeOptions=[{label:"Abyssal Dark - Level 1",value:47378},{label:"Abyssal Dark - Level 2",value:47379},{label:"Abyssal Dark - Level 3",value:47380},{label:"Abyssal Electrical - Level 1",value:47381},{label:"Abyssal Electrical - Level 2",value:47382},{label:"Abyssal Electrical - Level 3",value:47383},{label:"Abyssal Exotic - Level 1",value:47384},{label:"Abyssal Exotic - Level 2",value:47385},{label:"Abyssal Exotic - Level 3",value:47386},{label:"Abyssal Firestorm - Level 1",value:47390},{label:"Abyssal Firestorm - Level 2",value:47391},{label:"Abyssal Firestorm - Level 3",value:47392},{label:"Abyssal Gamma - Level 1",value:47387},{label:"Abyssal Gamma - Level 2",value:47388},{label:"Abyssal Gamma - Level 3",value:47389}];precursorChart;precursorInitOpts={renderer:"svg",height:250};ngOnInit(){return Et(this,null,function*(){yield this.populateLevelSelector()})}
1799loadStatistics(){this.getStatisticsFor(this.displayStatsFor,this.weatherType)}populateLevelSelector(){return Et(this,null,function*(){let t={label:"Your characters",value:"characters",items:[]};if(this.authService.isAuthenticated()){let n=yield this.authService.getUserInformation();this.displayStatsFor=n?.selectedCharacter?.characterId??5,n?.allCharacters?.forEach(o=>{t.items?.push({label:o.characterName?.toString()??" - unknown -",value:o.characterId})})}this.loadStatistics();let e={items:[{value:0,label:"All skills - Level 0"},{value:1,label:"All skills - Level 1"},{value:2,label:"All skills - Level 2"},{value:3,label:"All skills - Level 3"},{value:4,label:"All skills - Level 4"},{value:5,label:"All skills - Level 5"},{value:6,label:"Max Alpha skills"}],label:"All skills (default)",value:"defaults"};this.levelSelectorOptions=[],t.items.length>0&&this.levelSelectorOptions.push(t);let r=[];this.fit?.pilotConfigurationId&&r.push({items:[{value:this.fit?.pilotConfigurationId,label:`Included in fit - ${this.fit?.pilotConfigurationName}`}],label:"Pilot configuration",value:this.fit?.pilotConfigurationId}),this.levelSelectorOptions.push(...r),this.levelSelectorOptions.push(e)})}getStatisticsFor(t,e){this.isLoading=!0;let r=t,n=typeof r=="number"&&r<=6?r:void 0,o=typeof r=="number"&&r>6?r:void 0,a=typeof r=="string"?r:void 0;if(this.fit==null){this.isLoading=!1;return}this.fit!==void 0&&this.fitClient.getStatisticsByFit(n,o,e??0,a,this.fit).subscribe({next:s=>{if(this.hasError=!s.success,s.success&&s.result){if(this.statistics=s.result,this.precursorChart=void 0,this.statistics.precursorRampUp?.length){let l=[];this.statistics.precursorRampUp.forEach((c,d)=>{l.push(`Cycle ${d+1}`)}),this.precursorChart={legend:{data:["line"]},tooltip:{},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:l,boundaryGap:!1,silent:!1,splitLine:{show:!1}},yAxis:{type:"value"},series:[{type:"line",areaStyle:{},data:this.statistics.precursorRampUp}]}}this.onStatisticsUpdate?.emit(this.statistics),this.fitService.updateFitStatistics(this.statistics)}this.isLoading=!1,this.isInitialLoad=!1},error:()=>{this.hasError=!0,this.isLoading=!1,this.isInitialLoad=!1}})}onLevelChange(){this.getStatisticsFor(this.displayStatsFor,this.weatherType)}onWeatherTypeChange(){this.getStatisticsFor(this.displayStatsFor,this.weatherType)}ValidationMessageType=cT;SlotType=sT;static \u0275fac=function(e){return new(e||i)(N(it),N(mi),N(vo))};static \u0275cmp=K({type:i,selectors:[["fit-statistics"]],inputs:{fit:"fit",showLevelSelector:"showLevelSelector"},outputs:{onStatisticsUpdate:"onStatisticsUpdate"},ngContentSelectors:DK,decls:5,vars:4,consts:[["group",""],["validationMessages",""],["class","col",4,"ngIf"],["class","col fit-statistics-v2",4,"ngIf"],[1,"col"],["variant","in"],["inputId","levelSelectorOptions","optionLabel","label","optionValue","value","scrollHeight","350px","styleClass","w-100",3,"ngModelChange","ngModel","options","group"],["for","levelSelectorOptions"],[1,"flex","items-center"],[1,"card","mt-3"],[1,"card-body"],[1,"alert","alert-info"],[1,"alert","alert-danger"],[1,"col","fit-statistics-v2"],["class","col mt-3",4,"ngIf"],["class","card border-0 shadow-sm mt-3",4,"ngIf"],[1,"card","border-0","shadow-sm","mt-3"],[4,"ngIf"],[1,"d-flex","justify-content-between"],[1,"d-flex","justify-content-between","align-items-center"],[1,"h4","font-weight-bold","mb-0",2,"line-height","1rem","margin-top","15px"],[1,"text-muted","my-0",2,"line-height","1rem"],[1,"table-sm"],["loading","lazy","src","/shared/assets/public/images/fit/turret_missile.png","alt","",1,"img-24"],[1,"text-end"],[1,"text-small","bringupper"],["loading","lazy","src","/shared/assets/public/images/fit/volley.png","alt","",1,"img-24"],[1,"table-sm","w-100"],["colspan","3",1,"tinyhead"],[1,"text-end","text-small","p-0","tinyhead"],[1,"w-20p"],["loading","lazy","src","/shared/assets/public/images/fit/cpu.png","alt","CPU icon",1,"img-24"],[3,"className"],["loading","lazy","src","/shared/assets/public/images/fit/powergrid.png","alt","Power Grid icon",1,"img-24"],[1,"table","table-sm","w-100"],["data-toggle","tooltip","title","EM resistance",1,"text-center"],["loading","lazy","src","/shared/assets/public/images/fit/electromagnetic-resistance-32x32.png",1,"img-24"],["data-toggle","tooltip","title","Thermal resistance",1,"text-center"],["loading","lazy","src","/shared/assets/public/images/fit/thermal-resistance-32x32.png",1,"img-24"],["data-toggle","tooltip","title","Kinetic resistance",1,"text-center"],["loading","lazy","src","/shared/assets/public/images/fit/kinetic-resistance-32x32.png",1,"img-24"],["data-toggle","tooltip","title","Explosive resistance",1,"text-center"],["loading","lazy","src","/shared/assets/public/images/fit/explosive-resistance-32x32.png",1,"img-24"],["data-toggle","tooltip","title","Effective Hitpoints (EHP) - with resistance calculated in",1,"text-end"],["loading","lazy","src","/shared/assets/public/images/fit/hp.png",1,"img-24"],["data-toggle","tooltip","title","Shield"],["loading","lazy","src","/shared/assets/public/images/fit/shield-resistance-32x32.png",1,"img-24"],["data-toggle","tooltip","title","","data-original-title","61.25%",1,"resist-outer","resist-em","shadow-sm"],[1,"resist-inner"],[1,"resist-label"],["data-toggle","tooltip","title","","data-original-title","61.25%",1,"resist-outer","resist-therm","shadow-sm"],["data-toggle","tooltip","title","","data-original-title","61.25%",1,"resist-outer","resist-kin","shadow-sm"],["data-toggle","tooltip","title","","data-original-title","61.25%",1,"resist-outer","resist-exp","shadow-sm"],["data-toggle","tooltip","title","Armor"],["loading","lazy","src","/shared/assets/public/images/fit/armor-resistance-32x32.png",1,"img-24"],["data-toggle","tooltip","title","Hull"],["loading","lazy","src","/shared/assets/public/images/fit/hull-resistance-32x32.png",1,"img-24"],["colspan","6",1,"text-end","font-weight-bold"],["colspan","3","class","text-center",4,"ngIf"],["loading","lazy","src","/shared/assets/public/images/fit/capacitor.png","alt","Icon",1,"img-24"],["data-toggle","tooltip","title","Passive shield recharge",1,"text-right"],["loading","lazy","src","/shared/assets/public/images/fit/shield_recharge.png",1,"img-24"],["data-toggle","tooltip","title","Shield boost",1,"text-right"],["loading","lazy","src","/shared/assets/public/images/fit/shield_boost.png",1,"img-24"],["data-toggle","tooltip","title","Armor repair",1,"text-right"],["loading","lazy","src","/shared/assets/public/images/fit/armor_repair.png",1,"img-24"],["data-toggle","tooltip","title","Hull repair",1,"text-right"],["loading","lazy","src","/shared/assets/public/images/fit/hull_repair.png",1,"img-24"],["data-toggle","tooltip","title","Sustained repairs",1,"text-center"],["loading","lazy","src","/shared/assets/public/images/fit/sustained.png",1,"img-24"],["src","/shared/assets/public/images/fit/targeting_resolution.png",1,"img-24"],["loading","lazy","src","/shared/assets/public/images/fit/targeting_range.png","alt","Icon",1,"img-24"],[1,"text-right"],["loading","lazy","src","/shared/assets/public/images/fit/targeting_resolution.png","alt","Icon",1,"img-24"],["loading","lazy","src","/shared/assets/public/images/fit/targeting_strength.png","alt","Icon",1,"img-24"],["loading","lazy","src","/shared/assets/public/images/fit/tp.png","alt","Icon",1,"img-24"],["loading","lazy","src","/shared/assets/public/images/fit/propulsion.png","alt","Icon",1,"img-24"],["loading","lazy","src","/shared/assets/public/images/fit/microwarpdrive.png","alt","Icon",1,"img-24"],["src","/shared/assets/public/images/fit/cargo.png",1,"img-24"],[1,"col","mt-3"],["inputId","weatherTypeOptions","optionLabel","label","optionValue","value","scrollHeight","350px","styleClass","w-100",3,"ngModelChange","ngModel","options","group","showClear"],["for","weatherTypeOptions"],[1,"btn","btn-danger",3,"click"],["loading","lazy","src","/shared/assets/public/images/fit/drone.png","alt","",1,"img-24"],["loading","lazy","src","/shared/assets/public/images/fit/mining_laser.png","alt","",1,"img-24"],["loading","lazy","src","/shared/assets/public/images/fit/turret_missile.png","alt","Icon",1,"img-24"],["colspan","3"],["loading","lazy","src","/shared/assets/public/images/fit/volley.png","alt","Icon",1,"img-24"],["echarts","","class","precursor-dps-chart","style","height: 250px",3,"initOpts","options",4,"ngIf"],["echarts","",1,"precursor-dps-chart",2,"height","250px",3,"initOpts","options"],["loading","lazy","src","/shared/assets/public/images/fit/dronebay.png","alt","Drone Bay icon",1,"img-24"],["loading","lazy","src","/shared/assets/public/images/fit/dronebandwith.png","alt","Drone Bandwidth icon",1,"img-24"],["loading","lazy","src","/shared/assets/public/images/fit/dronebay.png","alt","Fighterbay icon",1,"img-24"],["colspan","3",1,"text-center"],[1,"text-uppercase","font-weight-bold"],[1,"badge","bg-dark","text-white"],["data-toggle","tooltip","title","Remote capacitor transfer rate",1,"text-right"],["loading","lazy","src","/shared/assets/public/images/fit/remote_c
1799apacitor.png",1,"img-24"],["data-toggle","tooltip","title","Remote shield boost",1,"text-right"],["loading","lazy","src","/shared/assets/public/images/fit/remote_shield.png",1,"img-24"],["data-toggle","tooltip","title","Remote armor repair",1,"text-right"],["loading","lazy","src","/shared/assets/public/images/fit/remote_armor_repair.png",1,"img-24"],["data-toggle","tooltip","title","Remote hull repair",1,"text-right"],["loading","lazy","src","/shared/assets/public/images/fit/remote_hull_repair.png",1,"img-24"]],template:function(e,r){e&1&&(Gl(),ql(0),M(1,PK,7,3,"div",2)(2,FK,5,0,"div",2)(3,RK,5,0,"div",2)(4,c$,424,314,"div",3)),e&2&&(v(),b("ngIf",r.showLevelSelector),v(),b("ngIf",r.isInitialLoad&&!r.hasError),v(),b("ngIf",r.hasError),v(),b("ngIf",!r.hasError&&!r.isInitialLoad))},dependencies:[Vt,ge,$t,yt,mt,Kt,ui,dr,ft,go,Ck,Wt],encapsulation:2})};var Lk=Ri(pr());var tp=()=>[],gy=i=>({active:i}),_o=i=>({slot:i}),wk=(i,t)=>t.typeId;function d$(i,t){i&1&&(p(0,"div",25),f(1,` Tactical Mode
1800`),m())}function p$(i,t){if(i&1){let e=J();p(0,"div",26)(1,"span",27),R("click",function(){L(e);let n=S();return O(n.switchTacticalMode(n.TacticalMode.Defense))}),T(2,"img",28),m(),p(3,"span",29),R("click",function(){L(e);let n=S();return O(n.switchTacticalMode(n.TacticalMode.Sharpshooter))}),T(4,"img",30),m(),p(5,"span",31),R("click",function(){L(e);let n=S();return O(n.switchTacticalMode(n.TacticalMode.Propulsion))}),T(6,"img",32),m()()}if(i&2){let e=S();v(),b("ngClass",te(9,gy,e.fit.tacticalMode===e.TacticalMode.Defense)),v(),b("ewbTooltip",Q("",e.fit.shipName," Defense Mode")),v(),b("ngClass",te(11,gy,e.fit.tacticalMode===e.TacticalMode.Sharpshooter)),v(),b("ewbTooltip",Q("",e.fit.shipName," Sharpshooter Mode")),v(),b("ngClass",te(13,gy,e.fit.tacticalMode===e.TacticalMode.Propulsion)),v(),b("ewbTooltip",Q("",e.fit.shipName," Propulsion Mode"))}}function u$(i,t){}function m$(i,t){i&1&&M(0,u$,0,0,"ng-template")}function f$(i,t){if(i&1&&M(0,m$,1,0,null,33),i&2){let e=S().$implicit;S(2);let r=Ve(39);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function h$(i,t){if(i&1&&H(0,f$,1,4),i&2){let e=t.$implicit;W(e.Data!==void 0?0:-1)}}function g$(i,t){if(i&1&&oe(0,h$,1,1,null,null,Te),i&2){let e=S();ae(e.slots.HighSlots)}}function v$(i,t){i&1&&(p(0,"div",11),f(1,"No modules set"),m())}function _$(i,t){}function b$(i,t){i&1&&M(0,_$,0,0,"ng-template")}function y$(i,t){if(i&1&&M(0,b$,1,0,null,33),i&2){let e=S().$implicit;S(2);let r=Ve(39);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function x$(i,t){if(i&1&&H(0,y$,1,4),i&2){let e=t.$implicit;W(e.Data!==void 0?0:-1)}}function C$(i,t){if(i&1&&oe(0,x$,1,1,null,null,Te),i&2){let e=S();ae(e.slots.MediumSlots)}}function S$(i,t){i&1&&(p(0,"div",11),f(1,"No modules set"),m())}function w$(i,t){}function T$(i,t){i&1&&M(0,w$,0,0,"ng-template")}function E$(i,t){if(i&1&&M(0,T$,1,0,null,33),i&2){let e=S().$implicit;S(2);let r=Ve(39);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function k$(i,t){if(i&1&&H(0,E$,1,4),i&2){let e=t.$implicit;W(e.Data!==void 0?0:-1)}}function I$(i,t){if(i&1&&oe(0,k$,1,1,null,null,Te),i&2){let e=S();ae(e.slots.LowSlots)}}function D$(i,t){i&1&&(p(0,"div",11),f(1,"No modules set"),m())}function M$(i,t){}function P$(i,t){i&1&&M(0,M$,0,0,"ng-template")}function F$(i,t){if(i&1&&M(0,P$,1,0,null,33),i&2){let e=S().$implicit;S(2);let r=Ve(39);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function R$(i,t){if(i&1&&H(0,F$,1,4),i&2){let e=t.$implicit;W(e.Data!==void 0?0:-1)}}function L$(i,t){if(i&1&&oe(0,R$,1,1,null,null,Te),i&2){let e=S();ae(e.slots.RigSlots)}}function O$(i,t){i&1&&(p(0,"div",11),f(1,"No modules set"),m())}function A$(i,t){}function B$(i,t){i&1&&M(0,A$,0,0,"ng-template")}function N$(i,t){if(i&1&&M(0,B$,1,0,null,33),i&2){let e=S().$implicit;S(3);let r=Ve(39);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function V$(i,t){if(i&1&&H(0,N$,1,4),i&2){let e=t.$implicit;W(e.Data!==void 0?0:-1)}}function z$(i,t){if(i&1&&oe(0,V$,1,1,null,null,Te),i&2){let e=S(2);ae(e.slots.SubSystemSlots)}}function U$(i,t){i&1&&(p(0,"div",11),f(1,"No modules set"),m())}function H$(i,t){if(i&1&&(p(0,"div",12),f(1," Sub systems "),m(),H(2,z$,2,0)(3,U$,2,0,"div",11)),i&2){let e=S();v(2),W(e.slots.SubSystemSlots.length>0?2:3)}}function W$(i,t){}function G$(i,t){i&1&&M(0,W$,0,0,"ng-template")}function q$(i,t){if(i&1&&M(0,G$,1,0,null,33),i&2){let e=t.$implicit;S(2);let r=Ve(43);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function j$(i,t){if(i&1){let e=J();p(0,"div",12),f(1," Drones "),p(2,"span",34),R("click",function(n){L(e),S();let o=Ve(61);return O(o.toggle(n))}),f(3," - set active drones"),m()(),oe(4,q$,1,4,null,null,Te)}if(i&2){let e=S();v(4),ae(e.fit.droneBay)}}function Y$(i,t){}function K$(i,t){i&1&&M(0,Y$,0,0,"ng-template")}function $$(i,t){if(i&1&&M(0,K$,1,0,null,33),i&2){let e=t.$implicit;S(2);let r=Ve(43);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function Z$(i,t){if(i&1){let e=J();p(0,"div",12),f(1," Fighters "),p(2,"span",34),R("click",function(n){L(e),S();let o=Ve(55);return O(o.toggle(n))}),f(3," - set active fighters"),m()(),oe(4,$$,1,4,null,null,Te)}if(i&2){let e=S();v(4),ae(e.fit.fighterBay)}}function Q$(i,t){}
1800function X$(i,t){i&1&&M(0,Q$,0,0,"ng-template")}function J$(i,t){if(i&1&&M(0,X$,1,0,null,33),i&2){let e=t.$implicit;S(2);let r=Ve(45);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function eZ(i,t){if(i&1&&(p(0,"div",12),f(1," Cargo "),m(),oe(2,J$,1,4,null,null,Te)),i&2){let e=S();v(2),ae(e.fit.cargoBay)}}function tZ(i,t){}function iZ(i,t){i&1&&M(0,tZ,0,0,"ng-template")}function rZ(i,t){if(i&1&&M(0,iZ,1,0,null,33),i&2){let e=t.$implicit;S(2);let r=Ve(41);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function nZ(i,t){if(i&1&&(p(0,"div",12),f(1," Implants "),m(),oe(2,rZ,1,4,null,null,Te)),i&2){let e=S();v(2),ae(e.fit.implants)}}function oZ(i,t){}function aZ(i,t){i&1&&M(0,oZ,0,0,"ng-template")}function sZ(i,t){if(i&1&&M(0,aZ,1,0,null,33),i&2){let e=t.$implicit;S(2);let r=Ve(41);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,_o,e))}}function lZ(i,t){if(i&1&&(p(0,"div",12),f(1," Boosters "),m(),oe(2,sZ,1,4,null,null,Te)),i&2){let e=S();v(2),ae(e.fit.boosters)}}function cZ(i,t){if(i&1&&(p(0,"div",15)(1,"span",35),f(2,"Total without hull:"),m(),f(3),G(4,"numericFormatter"),m()),i&2){let e=S();v(3),V(" ",ee(4,1,e.fit.priceWithoutHull," ",0)," ISK ")}}function dZ(i,t){if(i&1&&(p(0,"div",36),f(1),G(2,"numericFormatter"),m()),i&2){let e=S();v(),V(" ",ee(2,1,e.fit.priceHull," ",0)," ISK ")}}function pZ(i,t){if(i&1&&(p(0,"div",15)(1,"span",35),f(2,"Total:"),m(),f(3),G(4,"numericFormatter"),m()),i&2){let e=S();v(3),V(" ",ee(4,1,e.fit.priceWithHull," ",0)," ISK ")}}function uZ(i,t){if(i&1&&(T(0,"img",43),f(1)),i&2){let e=S(2).slot,r=S();b("alt",Q("",e.Data.chargeTypeName," icon"))("src",r.EveImageHelper.getTypeImageUrl(e.Data.chargeTypeId,32,e.Data.chargeTypeName??null),re),v(),V(" ",e.Data.chargeTypeName," ")}}function mZ(i,t){i&1&&(p(0,"strong"),f(1,"no charges loaded"),m())}function fZ(i,t){if(i&1){let e=J();p(0,"i",44),R("click",function(){L(e);let n=S(2).slot,o=S();return O(o.typeService.showTypeModal(n.Data.chargeTypeId))}),m()}}function hZ(i,t){if(i&1){let e=J();p(0,"div",40),f(1,"with "),p(2,"div",41),R("click",function(n){L(e);let o=S().slot,a=S(),s=Ve(47);return O(a.showPopover(n,n.target,s,o))}),H(3,uZ,2,4)(4,mZ,2,0,"strong"),m(),H(5,fZ,1,0,"i",42),m()}if(i&2){let e=S().slot;v(3),W(e.Data.chargeTypeId?3:4),v(2),W(e.Data.chargeTypeId?5:-1)}}function gZ(i,t){if(i&1&&(p(0,"div",36),f(1),G(2,"numericFormatter"),m()),i&2){let e=S().slot;v(),V(" ",ee(2,1,e.Data.price," ",0)," ISK ")}}function vZ(i,t){if(i&1){let e=J();p(0,"div",16)(1,"div",37),R("click",function(){let n=L(e).slot,o=S();return O(o.toggleModuleState(n))}),T(2,"img",19),m(),p(3,"span"),f(4),p(5,"i",38),R("click",function(){let n=L(e).slot,o=S();return O(o.typeService.showTypeModal(n.Data.typeId))}),m()(),M(6,hZ,6,2,"div",39)(7,gZ,3,5,"div",20),m()}if(i&2){let e=t.slot,r=S();v(),Ge("data-state",r.SlotState[e.State]),v(),b("alt",De(e.Data.typeName))("src",r.EveImageHelper.getTypeImageUrl(e.Data.typeId,64,e.Data.typeName??null),re),v(2),V(" ",e.Data.typeName," "),v(2),b("ngIf",e.Data.canFitCharges),v(),b("ngIf",r.showPrices)}}function _Z(i,t){if(i&1&&(p(0,"div",36),f(1),G(2,"numericFormatter"),m()),i&2){let e=S().slot;v(),V(" ",ee(2,1,e.price," ",0)," ISK ")}}function bZ(i,t){if(i&1){let e=J();p(0,"div",16)(1,"div",18),T(2,"img",19),m(),p(3,"span"),f(4),p(5,"p-toggleswitch",45),Je("ngModelChange",function(n){let o=L(e).slot;return Xe(o.state,n)||(o.state=n),O(n)}),R("change",function(){L(e);let n=S();return O(n.informModuleStateChange())}),m()(),M(6,_Z,3,5,"div",20),m()}if(i&2){let e=t.slot,r=S();v(2),b("alt",De(e.typeName))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,64,e.typeName??null),re),v(2),V(" ",e.typeName," "),v(),b("trueValue",r.SlotState.Offline)("falseValue",r.SlotState.Unplugged),Qe("ngModel",e.state),v(),b("ngIf",r.showPrices)}}function yZ(i,t){if(i&1&&(p(0,"div",36),f(1),G(2,"numericFormatter"),m()),i&2){let e=S().slot;v(),V(" ",ee(2,1,e.price," ",0)," ISK ")}}function xZ(i,t){if(i&1&&(p(0,"div",16)(1,"div",18),T(2,"img",19),m(),p(3,"span"),f(4),m(),M(5,yZ,3,5,"div",20),m()),i&2){let e=t.slot,r=S();v(2),b("alt",De(e.typeName))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,64,e.typeName??null),re),v(2),V(" ",e.typeName),v(),b("ngIf",r.showPrices)}}function CZ(i,t){if(i&1&&(p(0,"div",36),f(1),G(2,"numericFormatter"),m()),i&2){let e=S().slot;v(),V(" ",ee(2,1,e.price," ",0)," ISK ")}}function SZ(i,t){if(i&1&&(p(0,"div",16)(1,"div",18),T(2,"img",19),m(),p(3,"span"),f(4),m(),p(5,"div",46),f(6),m(),M(7,CZ,3,5,"div",20),m()),i&2){let e=t.slot,r=S();v(2),b("alt",De(e.typeName))("src",r.EveImageHelper.getTypeImageUrl(e.typeId,64,e.typeName??null),re),v(2),$(e.typeName),v(2),V(" x ",e.amount),v(),b("ngIf",r.showPrices)}}function wZ(i,t){if(i&1){let e=J();p(0,"div",48),R("click",function(){let n=L(e).$implicit,o=S(2);return O(o.populateCharges(n.typeId,n.typeName))}),T(1,"img",49),p(2,"div",50),f(3),m()()}if(i&2){let e=t.$implicit;v(),b("src",Q("https://images.evetech.net/types/",e.typeId,"/icon?size=32"),re),v(2),$(e.typeName)}}function TZ(i,t){if(i&1&&oe(0,wZ,4,3,"div",47,wk),i&2){let e=t.$implicit;ae(e.charges)}}var ff=class i extends nc{constructor(e,r,n){super(e,r);this.typeService=n}showPrices=!1;selectedSlot;openedPopover;showPopover(e,r,n,o){this.filterPossibleCharges(o.Data?.typeId,!0),this.selectedSlot=o,this.openedPopover=n,n.show(e,r)}populateCharges(e,r){this.selectedSlot===void 0||this.selectedSlot.Data===void 0||(this.selectedSlot.Data.chargeTypeId=e,this.selectedSlot.Data.chargeTypeName=r,this.openedPopover?.hide(),this.informModuleStateChange())}TacticalMode=dm;EveImageHelper=vi;static \u0275fac=function(r){return new(r||i)(N(it),N(vo),N(xn))};static \u0275cmp=K({type:i,selectors:[["fit-modules-list"]],inputs:{showPrices:"showPrices"},features:[Ke],decls:64,vars:33,consts:[["slotTemplate",""],["boosterImplantSlotTemplate",""],["oldSlotTemplate",""],["cargoBayTemplate",""],["charges",""],["fighterBay",""],["droneBay",""],["class","text-uppercase mb-2",4,"ngIf"],["class","tactical-modes mb-3",4,"ngIf"],[1,"text-uppercase","mb-3"],["rackName","High","iconClass","img-16",1,"rack","rack-high",3,"onInformChange","slots"],[1,"text-muted","mb-2"],[1,"text-uppercase","mb-3","mt-2"],["rackName","Mid","iconSuffix","med","iconClass","img-16",1,"rack","rack-high",3,"onInformChange","slots"],["rackName","Low","iconSuffix","low","iconClass","img-16",1,"rack","rack-high",3,"onInformChange","slots"],[1,"text-end","mt-3"],[1,"mb-2"],[1,"justify-content-between"],[1,"me-2","d-inline-block"],[1,"img-32",3,"src","alt"],["class","d-inline-flex float-end",4,"ngIf"],[1,"p-0"],[1,"row","row-cols-1","charges","p-0","scroll"],[3,"onInformChange","onResetFighterTubes","fit","fighterTubes","fighterBay"],[3,"onInformChange","droneBay","metadata","fit"],[1,"text-uppercase","mb-2"],[1,"tactical-modes","mb
1800-3"],[1,"tactical-mode","tactical-mode-defense","me-2",2,"z-index","100",3,"click","ngClass"],["src","/shared/assets/public/images/fit/radial/ui_texture_icons_defence.png","alt","Defense",3,"ewbTooltip"],[1,"tactical-mode","tactical-mode-sharpshooter","me-2",2,"z-index","100",3,"click","ngClass"],["src","/shared/assets/public/images/fit/radial/ui_texture_icons_target.png","alt","Sharpshooter",3,"ewbTooltip"],[1,"tactical-mode","tactical-mode-propulsion",2,"z-index","100",3,"click","ngClass"],["src","/shared/assets/public/images/fit/radial/ui_texture_icons_speed.png","alt","Propulsion",3,"ewbTooltip"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"text-muted","cursor-pointer",3,"click"],[1,"text-muted"],[1,"d-inline-flex","float-end"],[1,"module-state-indicator","me-2",3,"click"],["ewbTooltip","Show type information",1,"fa-duotone","fa-solid","fa-circle-info","cursor-pointer","ms-1",3,"click"],["class","small d-inline-block ms-2 text-muted",4,"ngIf"],[1,"small","d-inline-block","ms-2","text-muted"],[1,"d-inline-block","cursor-pointer",3,"click"],["ewbTooltip","Show charge type information",1,"fa-duotone","fa-solid","fa-circle-info","cursor-pointer","ms-1"],[1,"img-16",3,"src","alt"],["ewbTooltip","Show charge type information",1,"fa-duotone","fa-solid","fa-circle-info","cursor-pointer","ms-1",3,"click"],[1,"ms-2",3,"ngModelChange","change","trueValue","falseValue","ngModel"],[1,"d-inline-block","text-muted","ms-1"],[1,"col","justify-content-center","mt-2","fit-charge"],[1,"col","justify-content-center","mt-2","fit-charge",3,"click"],[1,"show-tooltip",3,"src"],[1,"d-inline-block",2,"font-size","12px"]],template:function(r,n){r&1&&(M(0,d$,2,0,"div",7)(1,p$,7,15,"div",8),p(2,"div",9),f(3," High slot modules "),p(4,"fit-rack-state",10),R("onInformChange",function(){return n.informModuleStateChange()}),m()(),H(5,g$,2,0)(6,v$,2,0,"div",11),p(7,"div",12),f(8," Medium slot modules "),p(9,"fit-rack-state",13),R("onInformChange",function(){return n.informModuleStateChange()}),m()(),H(10,C$,2,0)(11,S$,2,0,"div",11),p(12,"div",12),f(13," Low slot modules "),p(14,"fit-rack-state",14),R("onInformChange",function(){return n.informModuleStateChange()}),m()(),H(15,I$,2,0)(16,D$,2,0,"div",11),p(17,"div",12),f(18,` Rig slot modules
1801`),m(),H(19,L$,2,0)(20,O$,2,0,"div",11),H(21,H$,4,1),H(22,j$,6,0),H(23,Z$,6,0),H(24,eZ,4,0),H(25,nZ,4,0),H(26,lZ,4,0),H(27,cZ,5,5,"div",15),p(28,"div",12),f(29,` Hull
1802`),m(),p(30,"div",16)(31,"div",17)(32,"div",18),T(33,"img",19),m(),p(34,"span"),f(35),m(),M(36,dZ,3,5,"div",20),m()(),H(37,pZ,5,5,"div",15),M(38,vZ,8,7,"ng-template",null,0,de)(40,bZ,7,8,"ng-template",null,1,de)(42,xZ,6,5,"ng-template",null,2,de)(44,SZ,8,6,"ng-template",null,3,de),p(46,"p-popover",null,4)(48,"div",21)(49,"h6"),f(50,"Select your charge"),m(),p(51,"div",22),oe(52,TZ,2,0,null,null,wk),m()()(),p(54,"p-popover",null,5)(56,"div",21)(57,"h5"),f(58,"Fighter Bay"),m(),p(59,"fit-fighter-bay",23),R("onInformChange",function(){return n.informModuleStateChange()})("onResetFighterTubes",function(){return n.resetFighterTubes(!0)}),m()()(),p(60,"p-popover",null,6)(62,"div",21)(63,"fit-drone-bay",24),R("onInformChange",function(){return n.informModuleStateChange()}),m()()()),r&2&&(b("ngIf",n.fit.isT3Destroyer),v(),b("ngIf",n.fit.isT3Destroyer),v(3),b("slots",n.slots.HighSlots),v(),W(n.slots.HighSlots.length>0?5:6),v(4),b("slots",n.slots.MediumSlots),v(),W(n.slots.MediumSlots.length>0?10:11),v(4),b("slots",n.slots.LowSlots),v(),W(n.slots.LowSlots.length>0?15:16),v(4),W(n.slots.RigSlots.length>0?19:20),v(2),W(n.slots.SubSystemSlots.length>0?21:-1),v(),W((n.fit.droneBay??be(28,tp)).length>0?22:-1),v(),W((n.fit.fighterBay??be(29,tp)).length>0?23:-1),v(),W((n.fit.cargoBay??be(30,tp)).length>0?24:-1),v(),W((n.fit.implants??be(31,tp)).length>0?25:-1),v(),W((n.fit.boosters??be(32,tp)).length>0?26:-1),v(),W(n.showPrices?27:-1),v(6),b("alt",De(n.fit.shipName))("src",n.EveImageHelper.getTypeImageUrl(n.fit.shipId,64,n.fit.shipName??null),re),v(2),V(" ",n.fit.shipName),v(),b("ngIf",n.showPrices),v(),W(n.showPrices?37:-1),v(15),ae(n.filteredCharges),v(7),b("fit",n.fit)("fighterTubes",n.slots.FighterTubes)("fighterBay",n.slots.FighterBay),v(4),b("droneBay",n.slots.DroneBay)("metadata",n.droneBayMetadata)("fit",n.fit))},dependencies:[Vt,_t,ge,ci,go,oc,ac,sc,Pe,tc,yt,mt,Kt,Wt],styles:[".module-state-indicator[_ngcontent-%COMP%]{border-radius:50%;background-color:transparent;border:1px solid #999999;display:inline-block}.module-state-indicator[data-state=Active][_ngcontent-%COMP%]{background-color:#0f03;border-color:#0f0}.module-state-indicator[data-state=Overloaded][_ngcontent-%COMP%]{background-color:#f003;border-color:red}.module-state-indicator[data-state=Offline][_ngcontent-%COMP%]{background-color:#fff3;opacity:.3}.charges-popover[_ngcontent-%COMP%]{width:250px}.charges.scroll[_ngcontent-%COMP%]{max-height:350px;width:350px;overflow-y:auto;overflow-x:hidden}.charges[_ngcontent-%COMP%]   .fit-charge[_ngcontent-%COMP%]{cursor:pointer}.charges[_ngcontent-%COMP%]   .fit-charge[_ngcontent-%COMP%]:hover{background-color:#285e4d66}.tactical-modes[_ngcontent-%COMP%]{position:relative;z-index:400}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode[_ngcontent-%COMP%]{width:32px;height:32px;padding:0;display:inline-block;background-color:#bfbfbf4d;border-radius:50%;box-shadow:inset .1em .1em .1em #ffffff80,inset -.1em -.1em .1em #00000080}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode.active[_ngcontent-%COMP%]{background-color:#5dc19c99}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode.active[_ngcontent-%COMP%]:hover{background-color:#5dc19ccc}.tactical-modes[_ngcontent-%COMP%]   .tactical-mode[_ngcontent-%COMP%]:hover{background-color:#bfbfbf99}"]})};var Tk=(()=>{class i{constructor(){this.animation=!0}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function ip(i){return i!=null}function Ek(i){return(i||document.body).getBoundingClientRect()}function EZ(i){return t=>new fs(e=>{let r=a=>i.run(()=>e.next(a)),n=a=>i.run(()=>e.error(a)),o=()=>i.run(()=>e.complete());return t.subscribe({next:r,error:n,complete:o})})}function kZ(i){let{transitionDelay:t,transitionDuration:e}=window.getComputedStyle(i),r=parseFloat(t),n=parseFloat(e);return(r+n)*1e3}var IZ=()=>{},DZ={getTransitionTimerDelayMs:()=>5},hf=new Map,vy=(i,t,e,r)=>{let n=r.context||{},o=hf.get(t);if(o)switch(r.runningTransition){case"continue":return Q2;case"stop":i.run(()=>o.transition$.complete()),n=Object.assign(o.context,n),hf.delete(t)}let a=e(t,r.animation,n)||IZ;if(!r.animation||window.getComputedStyle(t).transitionProperty==="none")return i.run(()=>a()),hn(void 0).pipe(EZ(i));
1802let s=new Ze,l=new Ze,c=s.pipe(rw(!0));hf.set(t,{transition$:s,complete:()=>{l.next(),l.complete()},context:n});let d=kZ(t);return i.runOutsideAngular(()=>{let u=Av(t,"transitionend").pipe(Zr(c),hs(({target:g})=>g===t)),h=Wu(d+DZ.getTransitionTimerDelayMs()).pipe(Zr(c));ew(h,u,l).pipe(Zr(c)).subscribe(()=>{hf.delete(t),i.run(()=>{a(),s.next(),s.complete()})})}),s.asObservable()};var X3e=(()=>{let i=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2,t=()=>/Android/.test(navigator.userAgent);return typeof navigator<"u"?!!navigator.userAgent&&(i()||t()):!1})();var J3e=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");var MZ=["ngbNavOutlet",""],PZ=i=>({$implicit:i});function FZ(i,t){}function RZ(i,t){if(i&1&&(p(0,"div",0),M(1,FZ,0,0,"ng-template",1),m()),i&2){let e=S().$implicit,r=S();b("item",e)("nav",r.nav)("role",r.paneRole),v(),b("ngTemplateOutlet",(e.contentTpl==null?null:e.contentTpl.templateRef)||null)("ngTemplateOutletContext",te(5,PZ,e.active||r.isPanelTransitioning(e)))}}function LZ(i,t){if(i&1&&H(0,RZ,2,7,"div",0),i&2){let e=t.$implicit,r=S();W(e.isPanelInDom()||r.isPanelTransitioning(e)?0:-1)}}var OZ=(()=>{class i{constructor(){this._ngbConfig=ie(Tk),this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!0}get animation(){return this._animation??this._ngbConfig.animation}set animation(e){this._animation=e}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Ik=i=>ip(i)&&i!=="",AZ=0,rp=(()=>{class i{constructor(){this.templateRef=ie(zv)}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275dir=Sr({type:i,selectors:[["ng-template","ngbNavContent",""]]})}}return i})();var fc=(()=>{class i{constructor(){this._nav=ie(hc),this._nativeElement=ie(Cr).nativeElement,this.disabled=!1,this.shown=new he,this.hidden=new he}ngOnInit(){ip(this.domId)||(this.domId=`ngb-nav-${AZ++}`)}get active(){return this._nav.activeId===this.id}get id(){return Ik(this._id)?this._id:this.domId}get panelDomId(){return`${this.domId}-panel`}isPanelInDom(){return(ip(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}isNgContainer(){return this._nativeElement.nodeType===Node.COMMENT_NODE}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275dir=Sr({type:i,selectors:[["","ngbNavItem",""]],contentQueries:function(r,n,o){if(r&1&&Qr(o,rp,4),r&2){let a;Ce(a=Se())&&(n.contentTpl=a.first)}},hostAttrs:[1,"nav-item"],inputs:{destroyOnHide:"destroyOnHide",disabled:"disabled",domId:"domId",_id:[0,"ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]})}}return i})(),hc=(()=>{class i{constructor(e){this.role=e,this._config=ie(OZ),this._cd=ie(No),this._document=ie(vn),this._nativeElement=ie(Cr).nativeElement,this.destroyRef=ie(Zu),this._navigatingWithKeyboard=!1,this.activeIdChange=new he,this.animation=this._config.animation,this.destroyOnHide=this._config.destroyOnHide,this.orientation=this._config.orientation,this.roles=this._config.roles,this.keyboard=this._config.keyboard,this.shown=new he,this.hidden=new he,this.navItemChange$=new Ze,this.navChange=new he}click(e){e.disabled||this._updateActiveId(e.id)}onFocusout({relatedTarget:e}){this._nativeElement.contains(e)||(this._navigatingWithKeyboard=!1)}onKeyDown(e){if(this.roles!=="tablist"||!this.keyboard)return;let r=this.links.filter(a=>!a.navItem.disabled),{length:n}=r,o=-1;if(r.forEach((a,s)=>{a.nativeElement===this._document.activeElement&&(o=s)}),n){switch(e.key){case"ArrowUp":case"ArrowLeft":o=(o-1+n)%n;break;case"ArrowRight":case"ArrowDown":o=(o+1)%n;break;case"Home":o=0;break;case"End":o=n-1;break}this.keyboard==="changeWithArrows"&&this.select(r[o].navItem.id),r[o].nativeElement.focus(),this._navigatingWithKeyboard=!0,e.preventDefault()}}select(e){this._updateActiveId(e,!1)}ngAfterContentInit(){if(!ip(this.activeId)){let e=this.items.first?this.items.first.id:null;Ik(e)&&(this._updateActiveId(e,!1),this._cd.detectChanges())}this.items.changes.pipe(Gv(this.destroyRef)).subscribe(()=>this._notifyItemChanged(this.activeId))}ngOnChanges({activeId:e}){e&&!e.firstChange&&this._notifyItemChanged(e.currentValue)}_updateActiveId(e,r=!0){if(this.activeId!==e){let n=!1;r&&this.navChange.emit({activeId:this.activeId,nextId:e,preventDefault:()=>{n=!0}}),n||(this.activeId=e,this.activeIdChange.emit(e),this._notifyItemChanged(e))}}_notifyItemChanged(e){this.navItemChange$.next(this._getItemById(e))}_getItemById(e){return this.items&&this.items.find(r=>r.id===e)||null}static{this.\u0275fac=function(r){return new(r||i)(Vv("role"))}}static{this.\u0275dir=Sr({type:i,selectors:[["","ngbNav",""]],contentQueries:function(r,n,o){if(r&1&&Qr(o,fc,4)(o,gf,5),r&2){let a;Ce(a=Se())&&(n.items=a),Ce(a=Se())&&(n.links=a)}},hostAttrs:[1,"nav"],hostVars:4,hostBindings:function(r,n){r&1&&R("keydown.arrowLeft",function(a){return n.onKeyDown(a)})("keydown.arrowRight",function(a){return n.onKeyDown(a)})("keydown.arrowDown",function(a){return n.onKeyDown(a)})("keydown.arrowUp",function(a){return n.onKeyDown(a)})("keydown.Home",function(a){return n.onKeyDown(a)})("keydown.End",function(a){return n.onKeyDown(a)})("focusout",function(a){return n.onFocusout(a)}),r&2&&(Ge("aria-orientation",n.orientation==="vertical"&&n.roles==="tablist"?"vertical":void 0)("role",n.role?n.role:n.roles?"tablist":void 0),Rt("flex-column",n.orientation==="vertical"))},inputs:{activeId:"activeId",animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[xr]})}}return i})(),gf=(()=>{class i{constructor(e){this.role=e,this.navItem=ie(fc),this.nav=ie(hc),this.nativeElement=ie(Cr).nativeElement}get tabindex(){return this.nav.keyboard===!1?this.navItem.disabled?-1:void 0:this.nav._navigatingWithKeyboard||this.navItem.disabled||!this.navItem.active?-1:void 0}static{this.\u0275fac=function(r){return new(r||i)(Vv("role"))}}static{this.\u0275dir=Sr({type:i,selectors:[["","ngbNavLink",""]],hostAttrs:[1,"nav-link"],hostVars:12,hostBindings:function(r,n){r&2&&(lo("id",n.navItem.domId),Ge("role",n.role?n.role:n.nav.roles?"tab":void 0)("tabindex",n.tabindex)("aria-controls",n.navItem.isPanelInDom()?n.navItem.panelDomId:null)("aria-selected",n.navItem.active)("aria-disabled",n.navItem.disabled),Rt("nav-item",n.navItem.isNgContainer())("active",n.navItem.active)("disabled",n.navItem.disabled))}})}}return i})(),vf=(()=>{class i extends gf{static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=si(i)))(n||i)}})()}static{this.\u0275dir=Sr({type:i,selectors:[["button","ngbNavLink",""]],hostAttrs:["type","button"],hostVars:1,hostBindings:function(r,n){r&1&&R("click",function(){return n.nav.click(n.navItem)}),r&2&&lo("disabled",n.navItem.disabled)},features:[Ke]})}}return i})();var BZ=({classList:i})=>(i.remove("show"),()=>i.remove("active")),NZ=(i,t)=>{t&&Ek(i),i.classList.add("show")},kk=(()=>{class i{constructor(){this.nativeElement=ie(Cr).nativeElement}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275dir=Sr({type:i,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(r,n){r&2&&(lo("id",n.item.panelDomId),Ge("role",n.role?n.role:n.nav.roles?"tabpanel":void 0)("aria-labelledby",n.item.domId),Rt("fade",n.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}})}}return i})(),_f=(()=>{class i{constructor(){this._cd=ie(No),this._ngZone=ie(Si),this._activePane=null}isPanelTransitioning(e){return this._activePane?.item===e}ngAfterViewInit(){this._updateActivePane(),this.nav.navItemChange$.pipe(Gv(this.nav.destroyRef),gs(this._activePane?.item||null),no(),nw(1)).subscribe(e=>{let r={animation:this.nav.animation,runningTransition:"stop"};this._cd.detectChanges(),this._activePane?vy(this._ngZone,this._activePane.nativeElement,BZ,r).subscribe(()=>{let n=this._activePane?.item;this._activePane=this._getPaneForItem(e),this._cd.markForCheck(),this._activePane&&(this._activePane.nativeElement.classList.add("active"),vy(this._ngZone,this._activePane.nativeElement,NZ,r).subscribe(()=>{e&&(e.shown.emit(),this.nav.shown.emit(e.id))})),n&&(n.hidden.emit(),this.nav.hidden.emit(n.id))}):this._updateActivePane()})}_updateActivePane(){this._activePane=this._getActivePane(),this._activePane?.nativeElement.classList.add("show","active")}_getPaneForItem(e){return this._panes&&this._panes.find(r=>r.item===e)||null}_getActivePane(){return this._panes&&this._panes.find(e=>e.item.active)||null}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=K({type:i,selectors:[["","ngbNavOutlet",""]],viewQuery:function(r,n){if(r&1&&Ui(kk,5),r&2){let o;Ce(o=Se())&&(n._panes=o)}},hostAttrs:[1,"tab-content"],inputs:{paneRole:"paneRole",nav:[0,"ngbNavOutlet","nav"]},attrs:MZ,decls:2,vars:0,consts:[["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,n){r&1&&oe(0,LZ,1,1,null,null,Te),r&2&&ae(n.nav.items)},dependencies:[kk,ci],encapsulation:2,changeDetection:0})}}return i})();function VZ(i,t){i&1&&(T(0,"i",15),f(1," Push to EVE "))}function zZ(i,t){i&1&&(T(0,"i",16),f(1," Pushing fit to EVE "))}var bf=class i{constructor(t,e){this.fitClient=t;this.clipboard=e}fit=null;pushToEveDisabled=!0;pushToEveLoading=!1;pushToEveTooltip="";onCopyEftToClipboard=new he;onCopyFormatToClipboard=new he;onPushToEve=new he;copyEftToClipboard(){this.onCopyEftToClipboard?.emit()}copyFormatToClipboard(t="efth"){this.onCopyFormatToClipboard?.emit(t)}pushToEve(){this.onPushToEve?.emit(this.fit)}static \u0275fac=function(e){return new(e||i)(N(it),N(Ki))};static \u0275cmp=K({type:i,selectors:[["fit-export"]],inputs:{fit:"fit",pushToEveDisabled:"pushToEveDisabled",pushToEveLoading:"pushToEveLoading",pushToEveTooltip:"pushToEveTooltip"},outputs:{onCopyEftToClipboard:"onCopyEftToClipboard",onCopyFormatToClipboard:"onCopyFormatToClipboard",onPushToEve:"onPushToEve"},decls:30,vars:4,consts:[[1,"alert","alert-info","small"],[1,"d-flex","w-100","justify-content-start","align-items-center"],[1,"text-small","text-justify"],[1,"fa-solid","fa-info-circle","me-1"],["variant","in"],["pTextarea","","id","eft","readonly","","rows","20",1,"w-100",2,"resize","none"],["for","eft"],["ewbTooltip","Copy to clipboard, click the dropdown icon for more export options",1,"btn-group","mt-2"],[1,"btn","btn-primary","btn-sm","no-clip-path",3,"click"],[1,"fa-duotone","fa-solid","fa-clipboard","me-1"],["type","button","data-bs-toggle","dropdown","aria-expanded","fal
1802se",1,"btn","btn-sm","btn-primary","btn-sm","me-1","dropdown-toggle","dropdown-toggle-split"],[1,"visually-hidden"],[1,"dropdown-menu"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"btn","btn-secondary","btn-sm","mt-2",3,"click","ewbTooltip","disabled"],[1,"fa-duotone","fa-solid","fa-upload","me-1"],[1,"fa-duotone","fa-solid","fa-spinner-scale","me-1","fa-spin"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1)(2,"span",2),T(3,"i",3),f(4," On the left side of the in-game fitting window, click the wrench icon. Then at the bottom left of the page click 'Import & Export' then 'Import from clipboard' to import this fit to EVE Online. "),m()()(),p(5,"p-floatlabel",4)(6,"textarea",5),f(7),m(),p(8,"label",6),f(9,"EFT"),m()(),p(10,"div",7)(11,"button",8),R("click",function(){return r.copyEftToClipboard()}),T(12,"i",9),f(13," Copy to clipboard"),m(),p(14,"button",10)(15,"span",11),f(16,"Toggle Dropdown"),m()(),p(17,"ul",12)(18,"li")(19,"a",13),R("click",function(){return r.copyEftToClipboard()}),f(20,"EFT"),m()(),p(21,"li")(22,"a",13),R("click",function(){return r.copyFormatToClipboard("efth")}),f(23,"EFTH (experimental feature)"),m()(),p(24,"li")(25,"a",13),R("click",function(){return r.copyFormatToClipboard("dna")}),f(26,"DNA"),m()()()(),p(27,"button",14),R("click",function(){return r.pushToEve()}),H(28,VZ,2,0)(29,zZ,2,0),m()),e&2&&(v(7),$(r.fit==null?null:r.fit.eft),v(20),b("ewbTooltip",r.pushToEveTooltip)("disabled",r.pushToEveDisabled||r.pushToEveLoading),v(),W(r.pushToEveLoading?29:28))},dependencies:[$t,rc,Pe],encapsulation:2})};var Da=Ri(pr());var Ia=class i{transform(t){let e=new URL(t);return e.hostname.includes("youtube.com")?e.searchParams.get("v")??null:e.hostname.includes("youtu.be")?e.pathname.replace("/",""):null}static \u0275fac=function(e){return new(e||i)};static \u0275pipe=Xu({name:"youTubeId",type:i,pure:!0})};var yf=class i{constructor(t,e,r,n,o){this.sanitizer=t;this.youtubePipe=e;this.fitClient=r;this.authService=n;this.clipboard=o;this.isAuthenticated=n.isAuthenticated();let a=localStorage.getItem("fit-detail-view");a!==null?this.detailView=a:(this.showDetailViewSelection=!0,this.initialChoice=!0)}statisticsComponent;detailView=0;showDetailViewSelection=!1;initialChoice=!1;fit;youtubeVideoLink=null;slots;isAuthenticated=!1;votesLoading=!0;votes=new Jw;hasUpVoted=!1;hasDownVoted=!1;isOwnFit=!1;isFavorite=!1;statistics;droneBayMetadata={AvailableBandwidth:void 0};hasSkills;missingSkills;isAlphaUsable=!1;pushToEveDisabled=!0;pushToEveLoading=!1;requiredSkills;getVotes(){this.votesLoading=!0,this.fitClient.getVotes(this.fit?.id).subscribe(t=>{t.success&&(this.votes=t.result,this.hasUpVoted=this.votes?.myVote==1,this.hasDownVoted=this.votes?.myVote==-1),this.votesLoading=!1})}setVote(t){this.fitClient.setVote(this.fit.id,t).subscribe(e=>{e.success?(this.votes=e.result,this.hasUpVoted=this.votes?.myVote==1,this.hasDownVoted=this.votes?.myVote==-1):Da.default.fire("Error",e.message?.toString(),"error")})}setFavorite(){this.isAuthenticated&&this.fitClient.updateFavorite(this.fit?.id).subscribe(t=>{t.success&&(this.isFavorite=t.result)})}fitHasLoaded(){this.getVotes(),this.fitClient.getEftById(this.fit?.id,"eft").subscribe(t=>{if(t.success&&t.result){let e=t.result;this.fit!=null&&(this.fit.eft=e.eft??"")}}),this.fitClient.getRequiredSkills(this.fit?.id).subscribe(t=>{t.success&&(this.requiredSkills=t.result)}),this.authService.isAuthenticated()&&(this.isFavorite=this.fit?.isFavorited??!1,this.authService.getUserInformation().then(t=>{if(t===void 0)return;let e=t?.allCharacters?.filter(r=>r.characterId==this.fit?.characterId);this.isOwnFit=e!==void 0&&e.length>0}))}filterSuitableForWeather(t){let e=null;return this.fit?.metadata?.abyssFilter?.forEach(r=>{r.weather===t&&(e={tier:r.tier,weather:r.weather})}),e}onUpdateSlots(t){this.slots=t}onUpdateFit(){this.statisticsComponent?.loadStatistics()}onDetailViewChanged(t){this.detailView=t,localStorage.setItem("fit-detail-view",t)}onStatisticsUpdate(t){this.statistics=t,this.droneBayMetadata.AvailableBandwidth=t.droneBandwidth,this.droneBayMetadata.MaxActiveDrones=t.droneMaxActive,this.hasSkills=!t.isMissingSkills,this.missingSkills=t.missingSkills}copyEftToClipboard(){this.fit?.eft&&(this.clipboard.copy(this.fit.eft),Da.default.fire({title:"EFT String copied to clipboard",icon:"success",showConfirmButton:!1,timer:1500}))}copyFormatToClipboard(t="efth"){this.fitClient.getEftById(this.fit?.id,t).subscribe(e=>{e.success&&e.result?.eft!==void 0?(this.clipboard.copy(e.result.eft??""),Da.default.fire({title:"Requested export string copied to clipboard",icon:"success",showConfirmButton:!1,timer:1500})):Da.default.fire("Error occurred",e.message?.toString(),"error")})}copySkillsToClipboard(){let t="";
1802this.missingSkills?.forEach(e=>{t+=`${e.name} ${e.requiredLevel}
1803`}),this.clipboard.copy(t),Da.default.fire({title:"Missing Skills copied to clipboard",icon:"success",showConfirmButton:!1,timer:1500})}getPushToEveTooltip(){return"Push this fit to EVE Online"}pushToEve(t){this.pushToEveDisabled||(this.pushToEveLoading=!0,this.fitClient.postPushFitToEve(t.id).subscribe(e=>{e.success?Da.default.fire({title:"Fit has been pushed to EVE Online",icon:"success",showConfirmButton:!1,timer:1500}):Da.default.fire("Error occured",e.message?.toString(),"error"),this.pushToEveLoading=!1}))}static \u0275fac=function(e){return new(e||i)(N($l),N(Ia),N(it),N(mi),N(Ki))};static \u0275cmp=K({type:i,selectors:[["app-fit-detail-base"]],viewQuery:function(e,r){if(e&1&&Ui(en,5),e&2){let n;Ce(n=Se())&&(r.statisticsComponent=n.first)}},decls:0,vars:0,template:function(e,r){},encapsulation:2})},np=(e=>(e[e.Radial=0]="Radial",e[e.List=1]="List",e))(np||{});var Mk=Ri(pr());function UZ(i,t){if(i&1){let e=J();p(0,"div",4)(1,"div",5)(2,"div"),f(3,"Type your comment (or reply) below"),m(),p(4,"div",6),f(5,"You can use MarkDown for formatting."),m()(),p(6,"div",7)(7,"p-floatlabel",8)(8,"textarea",9),Je("ngModelChange",function(n){L(e);let o=S(2);return Xe(o.commentText,n)||(o.commentText=n),O(n)}),m(),p(9,"label",10),f(10,"Your comment"),m()(),p(11,"div",11),f(12),m()(),p(13,"div",12)(14,"button",13),R("click",function(){L(e);let n=S(2);return O(n.clear())}),f(15,"Clear"),m(),p(16,"button",14),R("click",function(){L(e);let n=S(2);return O(n.submitComment())}),f(17,"Place comment"),m()()()}if(i&2){let e=S(2);v(8),b("id",Q("comment_reply_",e.fit.id+(e.comment!==void 0?"_"+e.comment.id:""))),Qe("ngModel",e.commentText),b("maxLength",e.maxCharacters),v(),b("for",Q("comment_reply_",e.fit.id+(e.comment!==void 0?"_"+e.comment.id:""))),v(3),kt("",e.commentText.length," / ",e.maxCharacters)}}function HZ(i,t){if(i&1){let e=J();p(0,"div",15)(1,"button",16),R("click",function(){L(e);let n=S(2);return O(n.showReply())}),f(2,"Add reply"),m()()}}function WZ(i,t){i&1&&(p(0,"div",4)(1,"em",17),f(2,"To leave a comment you have to login."),m()())}function GZ(i,t){if(i&1&&(p(0,"div",1),M(1,UZ,18,8,"div",2)(2,HZ,3,0,"div",3)(3,WZ,3,0,"div",2),m()),i&2){let e=S();v(),b("ngIf",(!e.isReply||e.isReply&&e.showAddComment)&&e.isAuthenticated),v(),b("ngIf",e.isReply&&!e.showAddComment),v(),b("ngIf",!e.isAuthenticated&&!e.isReply)}}var xf=class i{constructor(t,e){this.authService=t;this.fitClient=e;this.isAuthenticated=t.isAuthenticated()}fit;comment;isReply=!1;onAddComment=new he;maxCharacters=1e3;commentText="";isAuthenticated=!1;showAddComment=!1;showReply(){this.showAddComment=!0}clear(){this.commentText=""}submitComment(){if(!this.isAuthenticated||this.commentText.length==0)return;let t=new Zw;t.comment=this.commentText,t.commentId=this.comment?.id,t.fitId=this.fit.id,this.fitClient.addComment(t).subscribe(e=>{e.success?this.onAddComment?.emit(!0):Mk.default.fire("Error occurred while saving comment",e.message?.toString(),"error")})}static \u0275fac=function(e){return new(e||i)(N(mi),N(it))};static \u0275cmp=K({type:i,selectors:[["add-comment"]],inputs:{fit:"fit",comment:"comment",isReply:"isReply"},outputs:{onAddComment:"onAddComment"},decls:1,vars:1,consts:[["class","card bg-black bg-opacity-50",4,"ngIf"],[1,"card","bg-black","bg-opacity-50"],["class","card-body",4,"ngIf"],["class","card-body text-end",4,"ngIf"],[1,"card-body"],[1,"d-flex","w-100","justify-content-between","mb-2"],[1,"text-small"],[1,"w-100","d-block"],["variant","in"],["pTextarea","","rows","5","cols","30",1,"w-100",2,"resize","none",3,"ngModelChange","id","ngModel","maxLength"],[3,"for"],[1,"text-end","mb-2"],[1,"text-end","w-100","d-block"],[1,"btn","btn-dark","btn-sm","me-2",3,"click"],[1,"btn","btn-primary","btn-sm","me-2",3,"click"],[1,"card-body","text-end"],[1,"btn","btn-dark","btn-sm",3,"click"],[1,"d-block","w-100","py-5","text-center","text-muted"]],template:function(e,r){e&1&&M(0,GZ,4,3,"div",0),e&2&&b("ngIf",r.isAuthenticated||!r.isAuthenticated&&!r.isReply)},dependencies:[ge,$t,rc,yt,Ot,mt,Kt],encapsulation:2})};var qZ=i=>({comment:i,isReply:!1}),jZ=(i,t)=>
1803({"img-64":i,"img-48":t}),YZ=i=>({comment:i,isReply:!0});function KZ(i,t){}function $Z(i,t){i&1&&M(0,KZ,0,0,"ng-template")}function ZZ(i,t){if(i&1&&M(0,$Z,1,0,null,4),i&2){let e=t.$implicit;S();let r=Ve(7);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,qZ,e))}}function QZ(i,t){i&1&&(p(0,"em",2),f(1,"No comments yet - be the first to leave a comment."),m())}function XZ(i,t){i&1&&(p(0,"em",18),f(1,"No answers or comments yet."),m())}function JZ(i,t){}function eQ(i,t){i&1&&M(0,JZ,0,0,"ng-template")}function tQ(i,t){if(i&1&&M(0,eQ,1,0,null,4),i&2){let e=t.$implicit;S(3);let r=Ve(7);b("ngTemplateOutlet",r)("ngTemplateOutletContext",te(2,YZ,e))}}function iQ(i,t){if(i&1&&(p(0,"div",1),oe(1,tQ,1,4,null,null,Te),m()),i&2){let e=S().comment;v(),ae(e.replies)}}function rQ(i,t){if(i&1){let e=J();p(0,"div",1)(1,"add-comment",19),R("onAddComment",function(){L(e);let n=S(2);return O(n.getComments())}),m()()}if(i&2){let e=S().comment,r=S();v(),b("fit",r.fit)("comment",e)("isReply",!0)}}function nQ(i,t){if(i&1&&(p(0,"div",5)(1,"span",6),T(2,"img",7),m(),p(3,"div",8)(4,"div",9)(5,"span",10)(6,"a",11),f(7),T(8,"span",12),m()(),p(9,"span",13),f(10),G(11,"daysAgo"),m()(),p(12,"p",14),T(13,"markdown",15),m(),M(14,XZ,2,0,"em",16)(15,iQ,3,0,"div",17)(16,rQ,2,3,"div",17),m()()),i&2){let e=t.comment,r=t.isReply,n=S();b("id",Q("comment_",e.id)),v(2),b("src",Q("https://images.evetech.net/characters/",e.characterId,"/portrait?size=128"),re)("alt",Q("",e.characterName," Avatar"))("ngClass",It(18,jZ,!r,r)),v(4),b("routerLink",Q("/u/",e.characterSlug)),v(),V("",e.characterName," "),v(),b("innerHTML",e.characterId==n.fit.characterId?n.crown:"",ke),v(2),V(" ",Ar(11,16,e.dateAdded)," "),v(3),b("data",e.comment),v(),b("ngIf",!r&&e.replies.length==0),v(),b("ngIf",!r),v(),b("ngIf",!r)}}var Cf=class i{constructor(t){this.fitClient=t}fit;comments;crown='<i class="fa-duotone fa-solid fa-crown"></i>';ngOnInit(){this.getComments()}getComments(){this.fitClient.getCommentsById(this.fit?.id).subscribe(t=>{t.success&&t.result&&(this.comments=t.result)})}marked=cE;static \u0275fac=function(e){return new(e||i)(N(it))};static \u0275cmp=K({type:i,selectors:[["fit-comments"]],inputs:{fit:"fit"},decls:8,vars:3,consts:[["commentTemplate",""],[1,"mb-3"],[1,"d-block","w-100","py-5","text-center","text-muted"],[3,"onAddComment","fit","isReply"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"d-flex","w-100","justify-content-start","align-items-top","question-container","mb-3",3,"id"],[1,"comment-avatar"],[1,"shadow","rounded-circle","border-1","border-white",3,"src","alt","ngClass"],[1,"comment-content","ps-3","w-100"],[1,"w-100","d-inline-flex","justify-content-between","align-items-center"],[1,"font-weight-bold","text-uppercase"],[3,"routerLink"],[3,"innerHTML"],[1,"text-uppercase","text-muted"],[1,"text-justify","mb-3"],[3,"data"],["class","d-block w-100 pt-2 pb-3 text-center text-muted",4,"ngIf"],["class","mb-3",4,"ngIf"],[1,"d-block","w-100","pt-2","pb-3","text-center","text-muted"],[3,"onAddComment","fit","comment","isReply"]],template:function(e,r){e&1&&(p(0,"h5",1),f(1,"Comments / Questions and replies"),m(),oe(2,ZZ,1,4,null,null,Te),H(4,QZ,2,0,"em",2),p(5,"add-comment",3),R("onAddComment",function(){return r.getComments()}),m(),M(6,nQ,17,21,"ng-template",null,0,de)),e&2&&(v(2),ae(r.comments),v(2),W((r.comments==null?null:r.comments.length)===0?4:-1),v(),b("fit",r.fit)("isReply",!1))},dependencies:[Vt,_t,ge,ci,$e,Cn,xf,_a],encapsulation:2})};var oQ=i=>({data:i,title:"High Slots"}),aQ=i=>({data:i,title:"Medium Slots"}),sQ=i=>({data:i,title:"Low Slots"}),lQ=i=>({data:i,title:"Rig Slots"}),cQ=i=>({data:i,title:"Sub Systems"}),dQ=i=>({data:i,title:"Drone Bay"}),pQ=i=>({data:i,title:"Fighter Bay"}),uQ=i=>({data:i,title:"Cargo Bay"}),mQ=i=>({data:i,title:"Implants"}),fQ=i=>({data:i,title:"Boosters"}),hQ=(i,t)=>t.typeId;function gQ(i,t){}function vQ(i,t){i&1&&M(0,gQ,0,0,"ng-template")}function _Q(i,t){}function bQ(i,t){i&1&&M(0,_Q,0,0,"ng-template")}function yQ(i,t){}function xQ(i,t){i&1&&M(0,yQ,0,0,"ng-template")}function CQ(i,t){}function SQ(i,t){i&1&&M(0,CQ,0,0,"ng-template")}function wQ(i,t){}function TQ(i,t){i&1&&M(0,wQ,0,0,"ng-template")}function EQ(i,t){}function kQ(i,t){i&1&&M(0,EQ,0,0,"ng-template")}function IQ(i,t){}function DQ(i,t){i&1&&M(0,IQ,0,0,"ng-template")}function MQ(i,t){}function PQ(i,t){i&1&&M(0,MQ,0,0,"ng-template")}function FQ(i,t){}function RQ(i,t){i&1&&M(0,FQ,0,0,"ng-template")}function LQ(i,t){}function OQ(i,t){i&1&&M(0,LQ,0,0,"ng-template")}function AQ(i,t){if(i&1){let e=J();p(0,"div",12)(1,"div"),T(2,"img",6),f(3),p(4,"span",10),f(5),m(),p(6,"i",7),R("click",function(){let n=L(e).$implicit,o=S(3);
1803return O(o.typeService.showTypeModal(n.typeId))}),m()(),p(7,"div"),f(8),G(9,"numericFormatter"),m()()}if(i&2){let e=t.$implicit;v(2),b("src",Q("https://images.evetech.net/types/",e.typeId,"/icon?size=32"),re)("alt",De(e.typeName)),v(),V(" ",e.typeName," "),v(2),V(" x ",e.amount),v(3),V(" ",ee(9,7,e.price*e.amount," ",0)," ISK ")}}function BQ(i,t){if(i&1&&(p(0,"div",3)(1,"div",4)(2,"h5"),f(3),m(),oe(4,AQ,10,11,"div",12,hQ),m()()),i&2){let e=S(),r=e.data,n=e.title;v(3),$(n),v(),ae(r)}}function NQ(i,t){if(i&1&&M(0,BQ,6,1,"div",11),i&2){let e=t.data;b("ngIf",e.length>0)}}var Sf=class i{constructor(t){this.typeService=t}fit;getSlotBreakdown(t){if(!t)return[];let e=[];return t.forEach(r=>{let n=e.filter(o=>o.typeId===r.typeId);n.length>0?n[0].amount++:e.push({amount:r.amount??0,price:r.price??0,typeId:r.typeId??0,typeName:r.typeName??""})}),e}static \u0275fac=function(e){return new(e||i)(N(xn))};static \u0275cmp=K({type:i,selectors:[["fit-market-breakdown"]],inputs:{fit:"fit"},decls:39,vars:61,consts:[["marketBreakdownGroup",""],[1,"alert","alert-info","mb-3"],[1,"fa-solid","fa-circle-info"],[1,"card","bg-black","bg-opacity-50","mt-3"],[1,"card-body"],[1,"d-flex","justify-content-between","w-100"],[1,"img-24","me-2",3,"src","alt"],["ewbTooltip","Show type information",1,"fa-duotone","fa-solid","fa-circle-info","cursor-pointer","ms-2",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"text-end","w-100"],[1,"text-muted"],["class","card bg-black bg-opacity-50 mt-3",4,"ngIf"],[1,"d-flex","justify-content-between","w-100","mb-1"]],template:function(e,r){if(e&1&&(p(0,"div",1),T(1,"i",2),f(2),m(),p(3,"div",3)(4,"div",4)(5,"h5"),f(6,"Hull"),m(),p(7,"div",5)(8,"div"),T(9,"img",6),f(10),p(11,"i",7),R("click",function(){return r.typeService.showTypeModal(r.fit.shipId)}),m()(),p(12,"div"),f(13),G(14,"numericFormatter"),m()()()(),M(15,vQ,1,0,null,8)(16,bQ,1,0,null,8)(17,xQ,1,0,null,8)(18,SQ,1,0,null,8)(19,TQ,1,0,null,8)(20,kQ,1,0,null,8)(21,DQ,1,0,null,8)(22,PQ,1,0,null,8)(23,RQ,1,0,null,8)(24,OQ,1,0,null,8),p(25,"div",3)(26,"div",4)(27,"div",9)(28,"span",10),f(29,"Total without hull: "),m(),f(30),G(31,"numericFormatter"),m(),p(32,"div",9)(33,"span",10),f(34,"Total with hull: "),m(),f(35),G(36,"numericFormatter"),m()()(),M(37,NQ,1,1,"ng-template",null,0,de)),e&2){let n=Ve(38);v(2),V(" These prices below are based on Jita prices which we captured at ",r.fit.uploadedAt,`
1804`),v(7),b("src",Q("https://images.evetech.net/types/",r.fit.shipId,"/icon?size=32"),re)("alt",De(r.fit.shipName)),v(),V(" ",r.fit.shipName," "),v(3),V(" ",ee(14,29,r.fit.priceHull," ",0)," ISK "),v(2),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(41,oQ,r.getSlotBreakdown(r.fit.highSlot))),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(43,aQ,r.getSlotBreakdown(r.fit.mediumSlot))),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(45,sQ,r.getSlotBreakdown(r.fit.lowSlot))),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(47,lQ,r.getSlotBreakdown(r.fit.rigSlot))),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(49,cQ,r.getSlotBreakdown(r.fit.subSlot))),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(51,dQ,r.getSlotBreakdown(r.fit.droneBay))),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(53,pQ,r.getSlotBreakdown(r.fit.fighterBay))),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(55,uQ,r.getSlotBreakdown(r.fit.cargoBay))),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(57,mQ,r.getSlotBreakdown(r.fit.implants))),v(),b("ngTemplateOutlet",n)("ngTemplateOutletContext",te(59,fQ,r.getSlotBreakdown(r.fit.boosters))),v(6),V(" ",ee(31,33,r.fit.priceWithoutHull," ",0)," ISK "),v(5),V(" ",ee(36,37,r.fit.priceWithHull," ",0)," ISK ")}},dependencies:[Vt,ge,ci,Pe,Wt],encapsulation:2})};var Ma=Ri(pr());var VQ=i=>["/fit",i,"edit"],wf=class i{constructor(t,e){this.fitClient=t;this.router=e}fit;isAnonymous=!1;state=5;ngOnInit(){this.isAnonymous=this.fit.isAnonymous??!1,this.state=this.fit.state??5}changeState(){this.fitClient.updateState(this.fit.id,this.state).subscribe(t=>{t.success?(this.fit.state=this.state,Ma.default.fire({showConfirmButton:!1,timer:1500,title:"Successfully updated",html:"Fit state has been updated successfully!",icon:"success"})):Ma.default.fire("Error occurred",t.message?.toString(),"error")})}changeAnonymousState(){this.fitClient.updateAnonymousState(this.fit.id,this.isAnonymous).subscribe(t=>{t.success?(this.fit.isAnonymous=this.isAnonymous,Ma.default.fire({showConfirmButton:!1,timer:1500,title:"Successfully updated",html:"Fit state has been updated successfully!",icon:"success"})):Ma.default.fire("Error occurred",t.message?.toString(),"error")})}deleteFit(){Ma.default.fire({showCancelButton:!0,title:"Are you sure?",html:"Do you want to delete this fit?<br />You won't be able to revert this!"}).then(t=>{t.isConfirmed&&this.fitClient.updateState(this.fit.id,0).subscribe(e=>{e.success?Ma.default.fire({showConfirmButton:!1,timer:1500,title:"Successfully deleted",html:"Fit has been deleted successfully!<br />You will be redirected to the homepage.",icon:"success"}).then(r=>{this.router.navigate(["/"])}):Ma.default.fire("Error occurred",e.message?.toString(),"error")})})}FittingState=Vo;static \u0275fac=function(e){return new(e||i)(N(it),N(bt))};static \u0275cmp=K({type:i,selectors:[["fit-settings"]],inputs:{fit:"fit"},decls:62,vars:13,consts:[[1,"card","bg-black","bg-opacity-50"],[1,"card-body"],[1,"row","row-cols-2","row-cols-lg-3"],[1,"col"],[1,"pickerInputGroup"],["id","public","type","radio","name","anonymous",3,"ngModelChange","change","ngModel","value"],["for","public"],[1,"mb-1","font-weight-bold","text-uppercase"],[1,"mb-1","text-small"],["id","anonymous","type","radio","name","anonymous",3,"ngModelChange","change","ngModel","value"],["for","anonymous"],[1,"card","bg-black","bg-opacity-50","mt-3"],["id","state_published","name","state","type","radio",3,"ngModelChange","change","ngModel","value"],["for","state_published"],["id","state_hidden","name","state","type","radio",3,"ngModelChange","change","ngModel","value"],["for","state_hidden"],["id","state_unpublished","name","state","type","radio",3,"ngModelChange","change","ngModel","value"],["for","state_unpublished"],[1,"row"],[1,"btn","btn-primary","me-1",3,"routerLink"],[1,"fa-duotone","fa-solid","fa-pen-to-square"],[1,"btn","btn-danger",3,"click"],[1,"fa-duotone","fa-solid","fa-tras
1804h"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1)(2,"h5"),f(3,"Fit Privacy"),m(),p(4,"div",2)(5,"div",3)(6,"div",4)(7,"input",5),Je("ngModelChange",function(o){return Xe(r.isAnonymous,o)||(r.isAnonymous=o),o}),R("change",function(){return r.changeAnonymousState()}),m(),p(8,"label",6)(9,"p",7),f(10,"Public"),m(),p(11,"p",8),f(12,"Your username will be shown on the fit and the fit will be on your profile."),m()()()(),p(13,"div",3)(14,"div",4)(15,"input",9),Je("ngModelChange",function(o){return Xe(r.isAnonymous,o)||(r.isAnonymous=o),o}),R("change",function(){return r.changeAnonymousState()}),m(),p(16,"label",10)(17,"p",7),f(18,"Anonymous"),m(),p(19,"p",8),f(20,"Your name will not be shown on the fit and it will not be listed on your profile."),m()()()()()()(),p(21,"div",11)(22,"div",1)(23,"h5"),f(24,"Fit State"),m(),p(25,"div",2)(26,"div",3)(27,"div",4)(28,"input",12),Je("ngModelChange",function(o){return Xe(r.state,o)||(r.state=o),o}),R("change",function(){return r.changeState()}),m(),p(29,"label",13)(30,"p",7),f(31,"Published"),m(),p(32,"p",8),f(33,"The fit will be published publicly on this site, users can search and view them."),m()()()(),p(34,"div",3)(35,"div",4)(36,"input",14),Je("ngModelChange",function(o){return Xe(r.state,o)||(r.state=o),o}),R("change",function(){return r.changeState()}),m(),p(37,"label",15)(38,"p",7),f(39,"Hidden"),m(),p(40,"p",8),f(41,"The fit is publicly available if you have the link, fit will not be searchable."),m()()()(),p(42,"div",3)(43,"div",4)(44,"input",16),Je("ngModelChange",function(o){return Xe(r.state,o)||(r.state=o),o}),R("change",function(){return r.changeState()}),m(),p(45,"label",17)(46,"p",7),f(47,"Unpublished"),m(),p(48,"p",8),f(49,"Your fit will be unpublished and only visible for you, also known as private."),m()()()()()()(),p(50,"div",11)(51,"div",1)(52,"h5"),f(53,"Update Fit"),m(),p(54,"div",18)(55,"div",3)(56,"button",19),T(57,"i",20),f(58," Advanced Fit Edit"),m(),p(59,"button",21),R("click",function(){return r.deleteFit()}),T(60,"i",22),f(61," Delete fit"),m()()()()()),e&2&&(v(7),Qe("ngModel",r.isAnonymous),b("value",!1),v(8),Qe("ngModel",r.isAnonymous),b("value",!0),v(13),Qe("ngModel",r.state),b("value",r.FittingState.Published),v(8),Qe("ngModel",r.state),b("value",r.FittingState.Hidden),v(8),Qe("ngModel",r.state),b("value",r.FittingState.Unpublished),v(12),b("routerLink",te(11,VQ,r.fit.id)))},dependencies:[yt,Ot,vm,mt,Kt,$e],encapsulation:2})};var Pk=(i,t)=>({"btn-success":i,"btn-light":t}),zQ=(i,t)=>({"fa-solid":i,"fa-regular":t}),UQ=i=>({ship:i}),HQ=i=>({tags:i}),WQ=(i,t)=>({"btn-danger":i,"btn-light":t});function GQ(i,t){if(i&1&&(p(0,"a",33),f(1),m()),i&2){let e=S();b("routerLink",Q("/u/",e.fit.characterSlug)),v(),$(e.fit.characterName)}}function qQ(i,t){if(i&1&&(p(0,"span",34),f(1),m()),i&2){let e=S();v(),$(e.fit.characterName)}}function jQ(i,t){if(i&1&&(p(0,"div",35)(1,"a",32),f(2,"zKillboard"),m()()),i&2){let e=S();v(),b("href",Q("https://zkillboard.com/character/",e.fit.characterId,"/"),re)}}function YQ(i,t){i&1&&(p(0,"div",8),T(1,"i",36),f(2," This information is only visible for you, as its your own fit"),m())}function KQ(i,t){if(i&1&&(p(0,"div",11)(1,"div",37),T(2,"i",38),f(3),m()()),i&2){let e=S();v(3),V(" ",e.fit.favoritedCount," x favored ")}}function $Q(i,t){if(i&1&&(p(0,"div",11)(1,"div",12),f(2," Last modified "),m(),p(3,"div",13),f(4),m()()),i&2){let e=S();v(4),V(" ",e.fit.modifiedAtString," ")}}function ZQ(i,t){if(i&1&&(p(0,"a",39)(1,"span",40),f(2),m()()),i&2){let e=t.$implicit;b("queryParams",te(2,HQ,e)),v(2),$(e)}}function QQ(i,t){if(i&1&&(p(0,"div",11)(1,"div",12),f(2," Tags "),m(),p(3,"div",13),oe(4,ZQ,3,4,"a",39,Te),m()()),i&2){let e=S();v(4),ae(e.fit.tags)}}function XQ(i,t){if(i&1&&(f(0),G(1,"numericFormatter")),i&2){let e=S();V(" ",ee(1,1,e.fit.priceWithHull," ",0)," ISK ")}}function JQ(i,t){i&1&&(p(0,"div",41),T(1,"i",42),m())}function eX(i,t){if(i&1){let e=J();p(0,"button",43),R("click",function(){L(e);let n=S();return O(n.parent.setVote(1))}),T(1,"i",44),f(2),m()}if(i&2){let e=S();b("ngClass",It(3,Pk,e.parent.isAuthenticated&&!e.parent.isOwnFit&&e.parent.hasUpVoted,e.parent.isOwnFit||!e.parent.isAuthenticated||!e.parent.hasUpVoted))("disabled",!e.parent.isAuthenticated||e.parent.isOwnFit),v(2),V(" ",e.parent.votes==null?null:e.parent.votes.upVotes)}}function tX(i,t){if(i&1){let e=J();p(0,"button",22),R("click",function(){L(e);let n=S();return O(n.parent.setVote(-1))}),T(1,"i",45),f(2),m()}if(i&2){let e=S();b("ngClass",It(3,WQ,e.parent.isAuthenticated&&!e.parent.isOwnFit&&e.parent.hasDownVoted,e.parent.isOwnFit||!e.parent.isAuthenticated||!e.parent.hasDownVoted))("disabled",!e.parent.isAuthenticated||e.parent.isOwnFit),v(2),V(" ",e.parent.votes==null?null:e.parent.votes.downVotes)}}function iX(i,t){if(i&1&&(p(0,"div",1)(1,"div",46)(2,"h5"),f(3,"YouTube Video"),m()(),p(4,"div",47),T(5,"iframe",48),m()()),i&2){let e=S();v(5),b("src",e.youtubeVideoLink,Ad)}}var Tf=class i{constructor(t,e){this.fitClient=t;this.parent=e}fit;isOwnFit;youtubeVideoLink;ngOnInit(){}static \u0275fac=function(e){return new(e||i)(N(it),N(gc))};static \u0275cmp=K({type:i,selectors:[["fit-info-bar"]],inputs:{fit:"fit",isOwnFit:"isOwnFit",youtubeVideoLink:"youtubeVideoLink"},decls:63,vars:40,consts:[["priceTooltip",""],[1,"card","mb-3"],[1,"card-body","character-profile","text-center"],[1,"border","border-2","border-white","rounded-circle",3,"src","alt"],[1,"mb-0"],["class","text-dark mb-1 d-inline-block",3,"routerLink",4,"ngIf"],["class","text-dark mb-1 d-inline-block",4,"ngIf"],["class","mt-1",4,"ngIf"],[1,"alert","alert-info","text-start","text-small","mt-2"],[1,"card-body"],["class","row",4,"ngIf"],[1,"row"],[1,"col","col-sm-3"],[1,"col","text-end"],[1,"d-inline-block",3,"ewbTooltip"],[3,"innerHTML"],[1,"row","mt-3"],[1,"col"],[1,"d-flex","w-100","justify-content-between"],["class","btn btn-light btn-sm",4,"ngIf"],["class","btn btn-sm me-1",3,"ngClass","disabled","click",4,"ngIf"],["class","btn btn-sm",3,"ngClass","disabled","click",4,"ngIf"],[1,"btn","btn-sm",3,"click","ngClass","disabled"],[1,"fa-star",3,"ngClass"],[1,"d-flex","justify-content-between","align-items-center"],[2,"width","191px","text-align","center"],[1,"border","rounded-circle","border-2","border-white",3,"src"],[1,"mb-0","mt-3"],["routerLink","/fits",1,"text-dark",3,"queryParams"],[1,"text-muted","font-weight-bold"],[1,"small","list-group","list-group-flush"],[1,"list-group-item"],["target","_blank","rel","nofollow",1,"text-muted",3,"href"],[1,"text-dark","mb-1","d-inline-block",3,"routerLink"],[1,"text-dark","mb-1","d-inline-block"],[1,"mt-1"],[1,"fa-solid","fa-info-circle"],[1,"text-center"],[1,"fa-duotone","fa-solid","fa-star"],["routerLink","/fits",3,"queryParams"],[1,"badge","bg-primary","me-1","font-weight-normal"],[1,"btn","btn-light","btn-sm"],[1,"fa-solid","fa-spinner","fa-spin"],[1,"btn","btn-sm","me-1",3,"click","ngClass","disabled"],[1,"fa-duotone","fa-solid","fa-thumbs-up"],[1,"fa-duotone","fa-solid","fa-thumbs-down"],[1,"card-body","pb-0"],[1,"card-body","ratio","ratio-16x9"],["allowfullscreen","",1,"embed-responsive-item",3,"src"]],template:function(e,r){if(e&1&&(p(0,"div",1)(1,"div",2),T(2,"img",3),p(3,"h5",4),M(4,GQ,2,3,"a",5)(5,qQ,2,1,"span",6),m(),M(6,jQ,3,2,"div",7),H(7,YQ,3,0,"div",8),m()(),p(8,"div",1)(9,"div",9),M(10,KQ,4,1,"div",10),p(11,"div",11)(12,"div",12),f(13," Uploaded "),m(),p(14,"div",13),f(15),m()(),M(16,$Q,5,1,"div",10),p(17,"div",11)(18,"div",12),f(19," EVE Version "),m(),p(20,"div",13),f(21),m()(),M(22,QQ,6,0,"div",10),p(23,"div",11)(24,"div",12),f(25," Est. price "),m(),p(26,"div",13)(27,"div",14),T(28,"span",15),G(29,"shortPrice"),f(30," ISK "),m(),M(31,XQ,2,5,"ng-template",null,0,de),m()(),p(33,"div",16)(34,"div",17)(35,"div",18)(36,"div"),M(37,JQ,2,0,"div",19)(38,eX,3,6,"button",20)(39,tX,3,6,"button",21),m(),p(40,"div")(41,"button",22),R("click",function(){return r.parent.setFavorite()}),T(42,"i",23),f(43," Favorite"),m()()()()()()(),p(44,"div",1)(45,"div",9)(46,"div",24)(47,"div")(48,"div",25),T(49,"img",26)(50,"br"),p(51,"div")(52,"h2",27)(53,"a",28),f(54),m()(),p(55,"small",29),f(56),m()()()(),p(57,"div")(58,"ul",30)(59,"li",31)(60,"a",32),f(61,"zKillboard"),m()()()()()()(),H(62,iX,
18046,1,"div",1)),e&2){let n=Ve(32);v(2),b("src",Q("https://images.evetech.net/characters/",r.fit.characterId,"/portrait?size=256"),re)("alt",De(r.fit.characterName)),v(2),b("ngIf",!r.fit.isAnonymous),v(),b("ngIf",r.fit.isAnonymous),v(),b("ngIf",!r.fit.isAnonymous||r.isOwnFit),v(),W(r.isOwnFit&&r.fit.isAnonymous?7:-1),v(3),b("ngIf",r.fit.favoritedCount??!1),v(5),V(" ",r.fit.uploadedAtString," "),v(),b("ngIf",r.fit.modifiedAt&&r.fit.modifiedAt!=r.fit.uploadedAt),v(5),V(" ",r.fit.eveGameVersion," "),v(),b("ngIf",r.fit.tags!==void 0&&r.fit.tags.length>0),v(5),b("ewbTooltip",n),v(),b("innerHTML",Ne(29,29,r.fit.priceWithHull,""),ke),v(9),b("ngIf",r.parent.votesLoading),v(),b("ngIf",!r.parent.votesLoading),v(),b("ngIf",!r.parent.votesLoading),v(2),b("ngClass",It(32,Pk,r.parent.isFavorite,!r.parent.isFavorite))("disabled",!r.parent.isAuthenticated||r.isOwnFit),v(),b("ngClass",It(35,zQ,r.parent.isFavorite,!r.parent.isFavorite)),v(7),b("src",Q("https://images.evetech.net/types/",r.fit.shipId,"/render?size=64"),re),v(4),b("queryParams",te(38,UQ,r.fit.shipId)),v(),V(" ",r.fit.shipName," "),v(2),$(r.fit.shipClass),v(4),b("href",Q("https://zkillboard.com/ship/",r.fit.shipId,"/"),re),v(2),W(r.fit.youtubeUrl&&r.youtubeVideoLink!==null?62:-1)}},dependencies:[$e,ge,_t,Pe,At,Wt],encapsulation:2})};var nX=()=>({width:"75rem"}),oX=()=>({"1199px":"75vw","575px":"90vw"});function aX(i,t){i&1&&(p(0,"div",16)(1,"div",17),f(2," This is the first time you visit EVE Workbench in this browser. Please make a selection which fit view you want to use."),T(3,"br"),p(4,"strong"),f(5,"Note:"),m(),f(6," for smartphone users we suggest to use the "),p(7,"strong"),f(8,"List"),m(),f(9,"-view "),m()())}var Ef=class i{onSelectionChange=new he;initialChoice=!1;isVisible=!1;selectedView=0;isVisibleChange=new he;closeAndSave(){this.onSelectionChange?.emit(this.selectedView),this.isVisible=!1,this.isVisibleChange?.emit()}FitDetailView=np;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["fit-view-selection"]],inputs:{initialChoice:"initialChoice",isVisible:"isVisible",selectedView:"selectedView"},outputs:{onSelectionChange:"onSelectionChange",isVisibleChange:"isVisibleChange"},decls:33,vars:14,consts:[["header","Select fit view",3,"modal","visible","draggable","breakpoints","closable"],[1,"row","row-cols-2"],["class","col-12 md-3",4,"ngIf"],[1,"col"],[1,"pickerInputGroup"],["id","public","type","radio","name","radial",3,"ngModelChange","ngModel","value"],["for","public"],[1,"mb-1","font-weight-bold","text-uppercase"],[1,"mb-1","text-small"],["src","/shared/assets/public/images/fit/fit-radial.jpg","alt","Fit Radial",1,"mt-3"],["id","anonymous","type","radio","name","List",3,"ngModelChange","ngModel","value"],["for","anonymous"],["src","/shared/assets/public/images/fit/fit-list.jpg","alt","Fit Radial",1,"mt-3"],[1,"row"],[1,"col","text-end"],[1,"btn","btn-primary",3,"click"],[1,"col-12","md-3"],[1,"alert","alert-info"]],template:function(e,r){e&1&&(p(0,"p-dialog",0)(1,"div",1),M(2,aX,10,0,"div",2),p(3,"div",3)(4,"div",4)(5,"input",5),Je("ngModelChange",function(o){return Xe(r.selectedView,o)||(r.selectedView=o),o}),m(),p(6,"label",6)(7,"p",7),f(8,"Radial"),m(),p(9,"p",8)(10,"strong"),f(11,"Best for Desktop and Tablet users"),m(),T(12,"br"),f(13," Show the fit with a interactive radial"),T(14,"br")(15,"img",9),m()()()(),p(16,"div",3)(17,"div",4)(18,"input",10),Je("ngModelChange",function(o){return Xe(r.selectedView,o)||(r.selectedView=o),o}),m(),p(19,"label",11)(20,"p",7),f(21,"List"),m(),p(22,"p",8)(23,"strong"),f(24,"Best for Smartphone users"),m(),T(25,"br"),f(26," Show the fit with a interactive list."),T(27,"br")(28,"img",12),m()()()()(),p(29,"div",13)(30,"div",14)(31,"button",15),R("click",function(){return r.closeAndSave()}),f(32,"Save & Close"),m()()()()),e&2&&(Lt(be(12,nX)),b("modal",!0)("visible",r.isVisible)("draggable",!1)("breakpoints",be(13,oX))("closable",!1),v(2),b("ngIf",r.initialChoice),v(3),Qe("ngModel",r.selectedView),b("value",r.FitDetailView.Radial),v(13),Qe("ngModel",r.selectedView),b("value",r.FitDetailView.List))},dependencies:[ic,yt,Ot,vm,mt,Kt,ge],encapsulation:2})};var Fk=Ri(pr());var sX=()=>[],lX=()=>[1,2,3,4,5],cX=(i,t,e)=>({trained:i,untrained:t,omega:e});function dX(i,t){if(i&1&&T(0,"div",14),i&2){let e=t.$implicit,r=S().$implicit,n=S(2);b("ngClass",Gn(1,cX,(r.requiredLevel??0)>=e,(r.requiredLevel??0)<e,n.omegaLevels(r,e)))}}function pX(i,t){if(i&1&&(p(0,"div",12)(1,"span"),f(2),m(),p(3,"div",13),oe(4,dX,1,5,"div",14,rr),m()()),i&2){let e=t.$implicit;v(2),$(e.name),v(),b("ewbTooltip",Q("Required level: ",e.requiredLevel??0)),v(),ae(be(3,lX))}}function uX(i,t){if(i&1&&(p(0,"div",6)(1,"span",11),f(2),m(),oe(3,pX,6,4,"div",12,Te),m()),i&2){let e=t.$implicit;v(2),$(e.name),v(),ae(e.skills)}}var kf=class i{constructor(t){this.clipboard=t}requiredSkills;omegaLevels(t,e){return(t.requiredLevel??0)>=e&&e>(t.maxAlphaLevel??0)}copySkillsToClipboard(){let t="";
1804this.requiredSkills?.groups?.forEach(e=>{e.skills?.forEach(r=>t+=`${r.name} ${r.requiredLevel}
1805`)}),this.clipboard.copy(t),Fk.default.fire({title:"Fit Skills copied to clipboard",icon:"success",showConfirmButton:!1,timer:1500})}static \u0275fac=function(e){return new(e||i)(N(Ki))};static \u0275cmp=K({type:i,selectors:[["fit-required-skills"]],inputs:{requiredSkills:"requiredSkills"},decls:23,vars:1,consts:[[1,"alert","alert-info","mb-3","small"],[1,"fa-solid","fa-info-circle"],[1,"text-end","mb-3"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa-duotone","fa-solid","fa-clipboard","me-1"],[1,"row","row-cols-1","row-cols-md-2"],[1,"col","mb-4"],[1,"skill-level-selector-container"],[1,"level-selector","untrained"],[1,"level-selector","trained","ms-3"],[1,"level-selector","omega","ms-3"],[1,"h6","text-uppercase"],[1,"d-flex","justify-content-between","align-items-center"],[1,"d-inline-flex","skill-level-selector-container",3,"ewbTooltip"],[1,"level-selector",3,"ngClass"]],template:function(e,r){e&1&&(p(0,"div",0),T(1,"i",1),f(2," The required skills are the "),p(3,"strong"),f(4,"bare minimum"),m(),f(5,` needed to fly the fit. Additional levels can be advised for better performance.
1806`),m(),p(6,"div",2)(7,"button",3),R("click",function(){return r.copySkillsToClipboard()}),T(8,"i",4),f(9,"Copy as Skill Plan"),m()(),p(10,"div",5),oe(11,uX,5,1,"div",6,Te),m(),p(13,"strong"),f(14,"Legend"),m(),T(15,"br"),p(16,"span",7),T(17,"span",8),f(18," Not required "),T(19,"span",9),f(20," Required "),T(21,"span",10),f(22,` Requires Omega
1807`),m()),e&2&&(v(11),ae((r.requiredSkills==null?null:r.requiredSkills.groups)??be(0,sX)))},dependencies:[_t,Pe],encapsulation:2})};var Rk=Ri(pr());var mX=i=>["/pilot-configuration",i],fX=()=>[1,2,3,4,5],hX=(i,t)=>({trained:i,untrained:t}),gX=(i,t)=>t.name,vX=(i,t)=>t.typeId??t.name;function _X(i,t){i&1&&(p(0,"div",8),f(1,"No skills configured."),m())}function bX(i,t){if(i&1&&T(0,"button",15),i&2){let e=t.$implicit,r=S().$implicit;b("ngClass",It(1,hX,r.level>=e,r.level!=e))}}function yX(i,t){if(i&1&&(p(0,"div",2)(1,"span"),f(2),m(),p(3,"div",14),oe(4,bX,1,4,"button",15,Te),m()()),i&2){let e=t.$implicit;v(2),$(e.name),v(),b("ewbTooltip",Q("Required level: ",e.level)),v(),ae(be(3,fX))}}function xX(i,t){if(i&1&&(p(0,"div",12)(1,"span",13),f(2),m(),oe(3,yX,6,4,"div",2,vX),m()),i&2){let e=t.$implicit;v(2),$(e.name),v(),ae(e.skills)}}function CX(i,t){if(i&1&&(p(0,"div",9),oe(1,xX,5,1,"div",12,gX),m()),i&2){let e=S();v(),ae(e.pilotConfiguration==null?null:e.pilotConfiguration.skillTree)}}function SX(i,t){i&1&&(p(0,"div",8),f(1,"No implants configured."),m())}function wX(i,t){if(i&1&&(p(0,"div",16)(1,"div",17),T(2,"img",18),m(),p(3,"div")(4,"div"),f(5),m(),p(6,"div"),f(7),m()()()),i&2){let e=t.$implicit;v(2),b("src",Q("https://images.evetech.net/types/",e.implantId,"/icon?size=64"),re)("alt",De(e.implantName)),v(3),$(e.implantName),v(2),V("Slot: ",e.slot)}}function TX(i,t){if(i&1&&oe(0,wX,8,6,"div",16,Te),i&2){let e=S();ae(e.getImplantsSortedBySlot())}}var If=class i{constructor(t,e){this.pilotConfigurationClient=t;this.clipboard=e}pilotConfigurationId;isLoading=!0;pilotConfiguration;skillTree=[];ngOnInit(){this.pilotConfigurationClient.getById(this.pilotConfigurationId).subscribe(t=>{t.success&&(this.pilotConfiguration=t.result,this.isLoading=!1)})}copySkillsToClipboard(){if(this.pilotConfiguration==null||this.pilotConfiguration.skillTree==null)return;let t="";this.pilotConfiguration.skillTree.forEach(e=>{e.skills?.forEach(r=>t+=`${r.name} ${r.level}
1808`)}),this.clipboard.copy(t),Rk.default.fire({title:"Skills copied to clipboard",icon:"success",showConfirmButton:!1,timer:1500})}getImplantsSortedBySlot(){return this.pilotConfiguration==null||this.pilotConfiguration.implants==null?[]:this.pilotConfiguration.implants.sort((t,e)=>t.slot-e.slot)}static \u0275fac=function(e){return new(e||i)(N(ha),N(Ki))};static \u0275cmp=K({type:i,selectors:[["fit-pilot-configuration"]],inputs:{pilotConfigurationId:"pilotConfigurationId"},decls:22,vars:5,consts:[[1,"card","bg-black","bg-opacity-50"],[1,"card-body"],[1,"d-flex","justify-content-between","align-items-center"],[1,"btn","btn-primary","btn-sm","me-2",3,"routerLink"],[1,"fa-duotone","fa-solid","fa-arrow-up-right-from-square","me-1"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa-duotone","fa-solid","fa-clipboard","me-1"],["id","collapseSkills"],[1,"text-muted"],[1,"skill-tree-masonry"],[1,"col-12"],[1,"card","bg-black","bg-opacity-50","mt-3"],[1,"skill-tree-category"],[1,"h6","text-uppercase","font-weight-bold"],[1,"d-inline-flex","
1808skill-level-selector-container",3,"ewbTooltip"],["type","button",1,"level-selector",3,"ngClass"],[1,"d-flex","justify-content-start","align-items-center"],[1,"me-3"],[1,"border","rounded-circle","border-1","border-white","img-32",3,"src","alt"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Skills"),m(),p(5,"div")(6,"a",3),T(7,"i",4),f(8,"Open"),m(),p(9,"button",5),R("click",function(){return r.copySkillsToClipboard()}),T(10,"i",6),f(11,"Copy as Skill Plan"),m()()(),p(12,"div",7),H(13,_X,2,0,"div",8)(14,CX,3,0,"div",9),m()()(),p(15,"div",10)(16,"div",11)(17,"div",1)(18,"h5"),f(19,"Implants"),m(),H(20,SX,2,0,"div",8)(21,TX,2,0),m()()()),e&2&&(v(6),b("routerLink",te(3,mX,r.pilotConfigurationId)),v(7),W((r.pilotConfiguration==null?null:r.pilotConfiguration.skillTree)==null||(r.pilotConfiguration==null||r.pilotConfiguration.skillTree==null?null:r.pilotConfiguration.skillTree.length)==0?13:14),v(7),W((r.pilotConfiguration==null?null:r.pilotConfiguration.implants)==null||(r.pilotConfiguration==null||r.pilotConfiguration.implants==null?null:r.pilotConfiguration.implants.length)==0?20:21))},dependencies:[Pe,_t,$e],encapsulation:2})};var EX=()=>[];function kX(i,t){i&1&&(p(0,"div",11)(1,"div",12),f(2," Loading Fit "),m()())}function IX(i,t){i&1&&(T(0,"i",45),f(1," Push to EVE "))}function DX(i,t){i&1&&(T(0,"i",46),f(1," Pushing fit to EVE "))}function MX(i,t){i&1&&(p(0,"div",28),T(1,"i",47),p(2,"strong"),f(3,"Note:"),m(),f(4," This fit has been marked as "),p(5,"em"),f(6,"hidden"),m(),f(7," by the uploader. This means that the fit could be obsolete or that it has been replaced by another one! "),m())}function PX(i,t){i&1&&(p(0,"div",28),T(1,"i",47),p(2,"strong"),f(3,"Note:"),m(),f(4," This fit is unpublished, but you can see it as its your own. If you want to publish click on the "),p(5,"strong"),T(6,"i",48),f(7," Settings"),m(),f(8,"-tab. "),m())}function FX(i,t){i&1&&(p(0,"span",59),f(1,"Abyssal"),m())}function RX(i,t){i&1&&(p(0,"span",60),f(1,"Omega Only"),m())}function LX(i,t){i&1&&(p(0,"span",61),f(1,"Alpha Suitable"),m())}function OX(i,t){if(i&1&&(p(0,"span",62),T(1,"i",63),m()),i&2){S(3);let e=Ve(4);b("ewbTooltip",e)}}function AX(i,t){i&1&&(p(0,"span",68),T(1,"img",69),m())}function BX(i,t){i&1&&(p(0,"span",70),T(1,"img",71),m())}function NX(i,t){if(i&1){let e=J();p(0,"span",72),R("click",function(n){L(e),S(4);let o=Ve(6);return O(o.toggle(n))}),T(1,"img",73),m()}}function VX(i,t){if(i&1&&(p(0,"span",64),M(1,AX,2,0,"span",65)(2,BX,2,0,"span",66)(3,NX,2,0,"span",67),m()),i&2){let e=S(3);v(),b("ngIf",e.hasSkills===void 0),v(),b("ngIf",e.hasSkills===!0),v(),b("ngIf",e.hasSkills===!1)}}function zX(i,t){if(i&1){let e=J();p(0,"fit-modules-list",74),R("onUpdateFit",function(){L(e);let n=S(3);return O(n.onUpdateFit())})("onUpdateSlots",function(n){L(e);let o=S(3);return O(o.onUpdateSlots(n))}),m()}if(i&2){let e=S(3);b("fit",e.fit)("inputSlots",e.slots)("statistics",e.statistics)("droneBayMetadata",e.droneBayMetadata)("showPrices",!0)}}function UX(i,t){if(i&1){let e=J();p(0,"fit-radial",75),R("onUpdateFit",function(){L(e);let n=S(3);return O(n.onUpdateFit())})("onUpdateSlots",function(n){L(e);let o=S(3);return O(o.onUpdateSlots(n))}),m()}if(i&2){let e=S(3);b("fit",e.fit)("inputSlots",e.slots)("statistics",e.statistics)("droneBayMetadata",e.droneBayMetadata)}}function HX(i,t){if(i&1){let e=J();p(0,"div",49)(1,"div",50),M(2,FX,2,0,"span",51)(3,RX,2,0,"span",52)(4,LX,2,0,"span",53),m(),M(5,OX,2,1,"span",54)(6,VX,4,3,"span",55),p(7,"i",56),R("click",function(){L(e);let n=S(2);return O(n.typeService.showTypeModal(n.fit.shipId))}),m()(),M(8,zX,1,5,"fit-modules-list",57)(9,UX,1,4,"fit-radial",58)}if(i&2){let e=S(2);v(2),b("ngIf",e.fit.isAbyssTracker),v(),b("ngIf",!e.isAlphaUsable),v(),b("ngIf",e.isAlphaUsable),v(),b("ngIf",e.fit.isMissingScope),v(),b("ngIf",!e.fit.isMissingScope),v(2),b("ngIf",e.detailView==e.FitDetailView.List),v(),b("ngIf",e.detailView==e.FitDetailView.Radial)}}function WX(i,t){if(i&1&&T(0,"fit-market-breakdown",76),i&2){let e=S(2);b("fit",e.fit)}}function GX(i,t){if(i&1){let e=J();
1808p(0,"fit-export",77),R("onPushToEve",function(n){L(e);let o=S(2);return O(o.pushToEve(n))})("onCopyEftToClipboard",function(){L(e);let n=S(2);return O(n.copyEftToClipboard())})("onCopyFormatToClipboard",function(n){L(e);let o=S(2);return O(o.copyFormatToClipboard(n))}),m()}if(i&2){let e=S(2);b("fit",e.fit)("pushToEveTooltip",e.getPushToEveTooltip())("pushToEveDisabled",e.pushToEveDisabled)("pushToEveLoading",e.pushToEveLoading)}}function qX(i,t){if(i&1&&T(0,"fit-comments",76),i&2){let e=S(2);b("fit",e.fit)}}function jX(i,t){if(i&1&&T(0,"fit-required-skills",78),i&2){let e=S(2);b("requiredSkills",e.requiredSkills)}}function YX(i,t){if(i&1&&T(0,"fit-pilot-configuration",79),i&2){let e=S(3);b("pilotConfigurationId",e.fit.pilotConfigurationId)}}function KX(i,t){i&1&&(Ut(0,31),p(1,"button",32),f(2,"Pilot Configuration"),m(),M(3,YX,1,1,"ng-template",35),Ht())}function $X(i,t){if(i&1&&T(0,"fit-settings",76),i&2){let e=S(3);b("fit",e.fit)}}function ZX(i,t){i&1&&(Ut(0,31),p(1,"button",80),T(2,"i",81),f(3," Settings"),m(),M(4,$X,1,1,"ng-template",35),Ht())}function QX(i,t){if(i&1&&f(0),i&2){let e=S(3);V(" ",e.filterSuitableForWeather(e.AbyssWeathers.Dark).tier," ")}}function XX(i,t){i&1&&f(0," \u{1F6AB} ")}function JX(i,t){if(i&1&&f(0),i&2){let e=S(3);V(" ",e.filterSuitableForWeather(e.AbyssWeathers.Electrical).tier," ")}}function eJ(i,t){i&1&&f(0," \u{1F6AB} ")}function tJ(i,t){if(i&1&&f(0),i&2){let e=S(3);V(" ",e.filterSuitableForWeather(e.AbyssWeathers.Exotic).tier," ")}}function iJ(i,t){i&1&&f(0," \u{1F6AB} ")}function rJ(i,t){if(i&1&&f(0),i&2){let e=S(3);V(" ",e.filterSuitableForWeather(e.AbyssWeathers.Firestorm).tier," ")}}function nJ(i,t){i&1&&f(0," \u{1F6AB} ")}function oJ(i,t){if(i&1&&f(0),i&2){let e=S(3);V(" ",e.filterSuitableForWeather(e.AbyssWeathers.Gamma).tier," ")}}function aJ(i,t){i&1&&f(0," \u{1F6AB} ")}function sJ(i,t){if(i&1&&(p(0,"div",82)(1,"h5"),f(2,"Maximum suggested Abyssal difficulty"),m(),p(3,"table",83)(4,"tbody")(5,"tr")(6,"td",84)(7,"p",85),H(8,QX,1,1)(9,XX,1,0),m(),T(10,"img",86),f(11," Dark "),m(),p(12,"td",84)(13,"p",85),H(14,JX,1,1)(15,eJ,1,0),m(),T(16,"img",87),f(17," Electrical "),m(),p(18,"td",84)(19,"p",85),H(20,tJ,1,1)(21,iJ,1,0),m(),T(22,"img",88),f(23," Exotic "),m(),p(24,"td",84)(25,"p",85),H(26,rJ,1,1)(27,nJ,1,0),m(),T(28,"img",89),f(29," Firestorm "),m(),p(30,"td",84)(31,"p",85),H(32,oJ,1,1)(33,aJ,1,0),m(),T(34,"img",90),f(35," Gamma "),m()()()()()),i&2){let e=S(2);v(8),W(e.filterSuitableForWeather(e.AbyssWeathers.Dark)?8:9),v(6),W(e.filterSuitableForWeather(e.AbyssWeathers.Electrical)?14:15),v(6),W(e.filterSuitableForWeather(e.AbyssWeathers.Exotic)?20:21),v(6),W(e.filterSuitableForWeather(e.AbyssWeathers.Firestorm)?26:27),v(6),W(e.filterSuitableForWeather(e.AbyssWeathers.Gamma)?32:33)}}function lJ(i,t){if(i&1&&(p(0,"span")(1,"markdown"),f(2),m()()),i&2){let e=S(2);v(2),$(e.fit.description)}}function cJ(i,t){i&1&&(p(0,"span")(1,"div",28),f(2," The uploader chose not to include a description about this fit. If you want more information we suggest you to ask the uploader for information or ask the uploader to add an description. "),m()())}function dJ(i,t){if(i&1&&(p(0,"div",95)(1,"div",98)(2,"div",99)(3,"h5"),f(4),m(),p(5,"span",100),f(6),m()()()()),i&2){let e=t.$implicit,r=t.$index,n=S(3);v(4),V("",e," days"),v(2),V(" ",n.getKillStats[r]," ")}}function pJ(i,t){if(i&1&&(p(0,"div",40)(1,"div",15)(2,"h5"),f(3,"Kill statistics "),p(4,"span",91),f(5,"Experimental"),m()(),p(6,"div",92),T(7,"i",93),f(8," This is a experimental addition to EVE Workbench. See how the fit really performs, how often did it get wrecked?"),m(),p(9,"div",94),oe(10,dJ,7,2,"div",95,Te),m()(),p(12,"div",96),f(13," Datasource: "),p(14,"a",97)(15,"strong"),f(16,"EVE Wreckbench"),m()(),f(17," - "),p(18,"a",97),f(19,"Click here to view the kills"),m()()()),i&2){let e=S(2);v(10),ae(e.getKillStatsDays),v(4),b("href",De(e.environment.eveWreckbenchBaseUrl),re),v(4),b("href",ma("",e.environment.eveWreckbenchBaseUrl,"/fit/",e.fitHash),re)}}function uJ(i,t){if(i&1){let e=J();p(0,"div",11)(1,"div",13)(2,"div",14)(3,"div",15)(4,"div",16)(5,"span",17),f(6),m(),p(7,"div")(8,"div",18)(9,"button",19),R("click",function(){L(e);let n=S();return O(n.copyEftToClipboard())}),T(10,"i",10),f(11," Copy to clipboard"),m(),p(12,"button",20)(13,"span",21),f(14,"Toggle Dropdown"),m()(),p(15,"ul",22)(16,"li")(17,"a",23),R("click",function(){L(e);let n=S();return O(n.copyEftToClipboard())}),f(18,"EFT"),m()(),p(19,"li")(20,"a",23),R("click",function(){L(e);let n=S();return O(n.copyFormatToClipboard("efth"))}),f(21,"EFTH (experimental feature)"),m()(),p(22,"li")(23,"a",23),R("click",function(){L(e);let n=S();return O(n.copyFormatToClipboard("dna"))}),f(24,"DNA"),m()()()(),p(25,"button",24),R("click",function(){L(e);let n=S();return O(n.pushToEve(n.fit))}),H(26,IX,2,0)(27,DX,2,0),m()()()()()(),p(28,"div",25),T(29,"fit-info-bar",26),m(),p(30,"div",27),H(31,MX,8,0,"div",28),H(32,PX,9,0,"div",28),p(33,"div")(34,"div",29)(35,"nav",30,4),Ut
1808(37,31),p(38,"button",32),f(39,"Modules "),p(40,"span",33)(41,"i",34),R("click",function(){L(e);let n=S();return O(n.showDetailViewSelection=!0)}),m()()(),M(42,HX,10,7,"ng-template",35),Ht(),Ut(43,31),p(44,"button",32),f(45,"Market breakdown"),m(),M(46,WX,1,1,"ng-template",35),Ht(),Ut(47,31),p(48,"button",32),f(49,"Export"),m(),M(50,GX,1,4,"ng-template",35),Ht(),Ut(51,31),p(52,"button",32),f(53),m(),M(54,qX,1,1,"ng-template",35),Ht(),Ut(55,31),p(56,"button",32),f(57,"Required Skills"),m(),M(58,jX,1,1,"ng-template",35),Ht(),H(59,KX,4,0,"ng-container",31),M(60,ZX,5,0,"ng-container",36),m(),p(61,"div",37),T(62,"div",38),m()()(),M(63,sJ,36,5,"div",39),p(64,"div",40)(65,"div",15)(66,"h5"),f(67,"Description"),m(),M(68,lJ,3,1,"span",41)(69,cJ,3,0,"span",41),m()(),H(70,pJ,20,5,"div",40),m(),p(71,"div",42)(72,"div",43),T(73,"fit-info-bar",26),m(),p(74,"fit-statistics",44),R("onStatisticsUpdate",function(n){L(e);let o=S();return O(o.onStatisticsUpdate(n))}),m()()()}if(i&2){let e=Ve(36),r=S();v(6),$(r.fit.name),v(19),b("ewbTooltip",r.getPushToEveTooltip())("disabled",r.pushToEveDisabled||r.pushToEveLoading),v(),W(r.pushToEveLoading?27:26),v(3),b("fit",r.fit)("isOwnFit",r.isOwnFit)("youtubeVideoLink",r.youtubeVideoLink),v(2),W(r.fit.state==r.FittingState.Hidden?31:-1),v(),W(r.fit.state==r.FittingState.Unpublished&&r.isOwnFit?32:-1),v(21),V("Comments (",r.fit.commentCount,")"),v(6),W(r.fit.pilotConfigurationId!=null?59:-1),v(),b("ngIf",r.isOwnFit),v(2),b("ngbNavOutlet",e),v(),b("ngIf",r.fit.isAbyssTracker),v(5),b("ngIf",r.fit.description),v(),b("ngIf",!r.fit.description),v(),W(r.showKillStatus?70:-1),v(3),b("fit",r.fit)("isOwnFit",r.isOwnFit)("youtubeVideoLink",r.youtubeVideoLink),v(),b("showLevelSelector",!0)("fit",r.fit)}}function mJ(i,t){i&1&&(f(0," You are missing the scope "),p(1,"strong"),f(2,"esi-skills.read_skills.v1"),m(),f(3,` or need to login to see missing skills
1809`))}function fJ(i,t){i&1&&(p(0,"tr")(1,"th"),f(2,"Skill"),m(),p(3,"th",101),f(4,"Level"),m()()),i&2&&(v(3),b("width",75))}function hJ(i,t){if(i&1&&(p(0,"tr")(1,"td"),f(2),m(),p(3,"td"),f(4),m()()),i&2){let e=t.$implicit;v(2),$(e.name),v(2),$(e.requiredLevel)}}var gc=class i extends yf{constructor(e,r,n,o,a,s,l,c,d){super(l,c,e,s,d);this.route=r;this.router=n;this.title=o;this.typeService=a}id=void 0;isLoading=!0;showKillStatus=!1;getKillStatsDays=[7,30,90];getKillStats=[0,0,0];fitHash=null;ngOnInit(){this.route.params.subscribe(e=>{this.id=e.id,this.fitClient.getById(this.id).subscribe(r=>{if(r.success){this.fit=r.result,this.isAlphaUsable=this.fit?.isAlphaUsable??!1,this.fit?.youtubeUrl&&(this.youtubeVideoLink=this.sanitizer.bypassSecurityTrustResourceUrl("https://www.youtube.com/embed/"+this.youtubePipe.transform(this.fit.youtubeUrl))),this.title.setTitle(`${this.fit?.shipName}, ${this.fit?.name} fit by ${this.fit?.characterName} | ${yn.title}`),this.isLoading=!1;for(let n of this.getKillStatsDays)this.fitClient.getNumberOfKillsByFitLastDays(this.id,n).subscribe(o=>{if(o.success){let a=this.getKillStatsDays.indexOf(n);this.getKillStats[a]=o.result?.numberOfKills??0,(o.result?.numberOfKills??!1)&&(this.showKillStatus=!0,this.fitHash=o.result?.fitHash)}});super.fitHasLoaded()}else Lk.default.fire({title:"Error",text:"Can't find a fit with the given id, redirecting to homepage",icon:"error"}).then(n=>{this.router.navigate(["/"])})})}),this.pushToEveDisabled=!this.authService.isAuthenticated()}FitDetailView=np;AbyssWeathers=am;FittingState=Vo;environment=yn;static \u0275fac=function(r){return new(r||i)(N(it),N(Xt),N(bt),N(tm),N(xn),N(mi),N($l),N(Ia),N(Ki))};static \u0275cmp=K({type:i,selectors:[["app-fit-detail"]],features:[Ke],decls:20,vars:7,consts:[["tooltipMissingScope",""],["missingSkillsPopover",""],["header",""],["body",""],["fitsTab","ngbNav"],["class","row",4,"ngIf"],[3,"onSelectionChange","isVisibleChange","selectedView","initialChoice","isVisible"],[1,"width:","600px"],[1,"mt-3","mb-3",3,"value"],["ewbTooltip","Copy the skills to add them to your Skill Plan in EVE Online",1,"btn","btn-primary","w-100","btn-sm",3,"click"],[1,"fa-duotone","fa-solid","fa-clipboard","me-1"],[1,"row"],[1,"alert","alert-info"],[1,"col-12","mb-4"],[1,"card"],[1,"card-body"],[1,"d-md-flex","justify-content-between","align-items-center"],[1,"fit-title"],["ewbTooltip","Copy to clipboard, click the dropdown icon for more export options",1,"btn-group"],[1,"btn","btn-primary","btn-sm","no-clip-path",3,"click"],["type","button","data-bs-toggle","dropdown","aria-expanded","fal
1809se",1,"btn","btn-sm","btn-primary","btn-sm","me-1","dropdown-toggle","dropdown-toggle-split"],[1,"visually-hidden"],[1,"dropdown-menu"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"btn","btn-secondary","btn-sm","me-1",3,"click","ewbTooltip","disabled"],[1,"d-none","d-xl-block","col-12","col-xl-3"],[3,"fit","isOwnFit","youtubeVideoLink"],[1,"col-12","col-md-8","col-xl-6"],[1,"alert","alert-warning"],[1,"card-panel"],["ngbNav","",1,"nav-tabs"],["ngbNavItem",""],["ngbNavLink",""],["ewbTooltip","Change the view of this tab"],[1,"fa-solid","fa-cog","cursor-pointer","ms-2",3,"click"],["ngbNavContent",""],["ngbNavItem","",4,"ngIf"],[1,"card","border-0"],[1,"card-body",3,"ngbNavOutlet"],["class","card card-body border-0 shadow-sm mt-3",4,"ngIf"],[1,"card","mt-3"],[4,"ngIf"],[1,"col-12","col-md-4","col-xl-3","mt-3","mt-lg-0"],[1,"d-xl-none","d-md-block","mt-4"],[3,"onStatisticsUpdate","showLevelSelector","fit"],[1,"fa-duotone","fa-solid","fa-upload","me-1"],[1,"fa-duotone","fa-solid","fa-spinner-scale","me-1","fa-spin"],[1,"fa-solid","fa-info-circle","me-1"],[1,"fa-solid","fa-cog"],[1,"position-absolute","fit-detail-view","d-flex","justify-content-center","align-items-center"],[1,"d-inline-block"],["class","badge bg-danger me-2 cursor-help","ewbTooltip","This is a Abyssal fit, can be used on Abyss Tracker for tracking runs.",4,"ngIf"],["class","badge bg-primary me-2 cursor-help","ewbTooltip","You need a EVE Online account with active Omega status",4,"ngIf"],["class","badge bg-success me-2 cursor-help","ewbTooltip","You can use this with an free Alpha account",4,"ngIf"],["class","me-2",3,"ewbTooltip",4,"ngIf"],["class","me-2",4,"ngIf"],["ewbTooltip","Show hull information",1,"fa-duotone","fa-solid","fa-circle-info","cursor-pointer",3,"click"],[3,"fit","inputSlots","statistics","droneBayMetadata","showPrices","onUpdateFit","onUpdateSlots",4,"ngIf"],[3,"fit","inputSlots","statistics","droneBayMetadata","onUpdateFit","onUpdateSlots",4,"ngIf"],["ewbTooltip","This is a Abyssal fit, can be used on Abyss Tracker for tracking runs.",1,"badge","bg-danger","me-2","cursor-help"],["ewbTooltip","You need a EVE Online account with active Omega status",1,"badge","bg-primary","me-2","cursor-help"],["ewbTooltip","You can use this with an free Alpha account",1,"badge","bg-success","me-2","cursor-help"],[1,"me-2",3,"ewbTooltip"],[1,"fa-duotone","fa-regular","fa-triangle-exclamation","cursor-help",2,"--fa-primary-color","#ff6600","--fa-secondary-opacity","0","font-size","20px"],[1,"me-2"],["ewbTooltip","Skill check only works when you select one of your own characters in the Statistics Panel","class","cursor-help",4,"ngIf"],["ewbTooltip","You have all the skills needed to fly this fit","class","cursor-help",4,"ngIf"],["ewbTooltip","You are missing one or more skills, click to see which","class","cursor-pointer",3,"click",4,"ngIf"],["ewbTooltip","Skill check only works when you select one of your own characters in the Statistics Panel",1,"cursor-help"],["src","/shared/assets/public/images/fit/skillbook.png"],["ewbTooltip","You have all the skills needed to fly this fit",1,"cursor-help"],["src","/shared/assets/public/images/fit/skillbook_green.png"],["ewbTooltip","You are missing one or more skills, click to see which",1,"cursor-pointer",3,"click"],["src","/shared/assets/public/images/fit/skillbook_red.png"],[3,"onUpdateFit","onUpdateSlots","fit","inputSlots","statistics","droneBayMetadata","showPrices"],[3,"onUpdateFit","onUpdateSlots","fit","inputSlots","statistics","droneBayMetadata"],[3,"fit"],[3,"onPushToEve","onCopyEftToClipboard","onCopyFormatToClipboard","fit","pushToEveTooltip","pushToEveDisabled","pushToEveLoading"],[3,"requiredSkills"],[3,"pilotConfigurationId"],["ngbNavLink","",1,"text-red"],[1,"fa-solid","fa-gear","me-1"],[1,"card","card-body","border-0","shadow-sm","mt-3"],[1,"w-100","table-sm"],[1,"text-center",2,"width","20%"],[1,"h3","mb-1"],["src","/shared/assets/public/images/abyss/types/dark.png","alt","",1,"img-16"],["src","/shared/assets/public/images/abyss/types/electrical.png","alt","",1,"img-16"],["src","/shared/assets/public/images/abyss/types/exotic.png","alt","",1,"img-16"],["src","/shared/assets/public/images/abyss/types/firestorm.png","alt","",1,"img-16"],["src","/shared/assets/public/images/abyss/types/gamma.png","alt","",1,"img-16"],[1,"badge","bg-danger","small"],[1,"alert","alert-info","small"],[1,"fa-duotone","fa-solid","fa-circle-info","me-1"],[1,"row","row-cols-1","row-cols-md-3"],[1,"col"],[1,"card-footer"],["target","_blank","rel","nofollow",3,"href"],[1,"card","bg-black","bg-opacity-50"],[1,"card-body","text-center"],[1,"kill-stat"],[3,"width"]],template:function(r,n){if(r&1){let o=J();M(0,kX,3,0,"div",5)(1,uJ,75,22,"div",5),p(2,"fit-view-selection",6),R("onSelectionChange",function(s){return n.onDetailVie
1809wChanged(s)}),Je("isVisibleChange",function(s){return L(o),Xe(n.showDetailViewSelection,s)||(n.showDetailViewSelection=s),O(s)}),m(),M(3,mJ,4,0,"ng-template",null,0,de),p(5,"p-popover",null,1)(7,"div",7)(8,"h5"),f(9,"Missing skills"),m(),p(10,"div"),f(11,"You are missing the following skill, train them to fly this fit."),m(),p(12,"p-table",8),M(13,fJ,5,1,"ng-template",null,2,de)(15,hJ,5,2,"ng-template",null,3,de),m(),p(17,"button",9),R("click",function(){return n.copySkillsToClipboard()}),T(18,"i",10),f(19," Copy Missing Skills"),m()()()}r&2&&(b("ngIf",n.fit===void 0),v(),b("ngIf",n.fit!=null),v(),b("selectedView",n.detailView)("initialChoice",n.initialChoice),Qe("isVisible",n.showDetailViewSelection),v(10),b("value",n.missingSkills??be(6,EX)))},dependencies:[en,ge,ff,hc,fc,gf,vf,rp,_f,zr,bf,Cn,Cf,Sf,wf,Tf,Ef,go,xt,Dt,Pe,kf,If],styles:[".character-profile[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:relative;width:128px;height:128px;margin-top:-52px;margin-bottom:20px}.fit-title[_ngcontent-%COMP%]{font-size:1.75rem}.fit-detail-view[_ngcontent-%COMP%]{right:0;margin-right:12px}.kill-stat[_ngcontent-%COMP%]{font-size:2.75rem}"]})};var Df=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["trade-tool-how-to"]],decls:17,vars:0,template:function(e,r){e&1&&(Y(0,"h5"),f(1,"How to use the EVE Workbench Trade Tool"),B(),f(2,`
1810Select the type on the left side, its either `),Y(3,"strong"),f(4,"Sell-Sell"),B(),f(5," or "),Y(6,"strong"),f(7,"Sell-Buy"),B(),f(8,"."),zi(9,"br"),f(10,`
1811Then select the from and to stations and optionally also set the max volume you want to haul.`),zi(11,"br")(12,"br"),f(13,`
1812Click on `),Y(14,"strong"),f(15,"Show result"),B(),f(16,` and let us calculate and find the best trade routes available at this moment!
1813`))},encapsulation:2})};var Ok=Ri(pr());var _y=()=>[];function gJ(i,t){if(i&1&&(p(0,"h5"),f(1),m()),i&2){let e=S();v(),V("Route (",((e.response==null||e.response.route==null?null:e.response.route.length)??0)-1," jumps)")}}function vJ(i,t){i&1&&(p(0,"h5"),f(1,"In System Trade"),m())}function _J(i,t){if(i&1&&(p(0,"li")(1,"span"),f(2),m(),f(3),m()),i&2){let e=t.$implicit,r=S();v(),_e(Q("security-level security-level-",r.getSecurityStatusClassString(e.security))),v(),$(r.getSecurityStatusString(e.security)),v(),V(" ",e.name)}}function bJ(i,t){i&1&&(p(0,"tr")(1,"th",7),f(2,"Item "),T(3,"p-sortIcon",8),m(),p(4,"th",9),f(5,"From "),T(6,"p-sortIcon",10),m(),p(7,"th",11),f(8,"Quantity "),T(9,"p-sortIcon",12),m(),p(10,"th",13),f(11,"Buy Price "),T(12,"p-sortIcon",14),m(),p(13,"th",15),f(14,"Take To "),T(15,"p-sortIcon",16),m(),p(16,"th",17),f(17,"Sell Price "),T(18,"p-sortIcon",18),m(),p(19,"th",19),f(20,"Total Volume "),T(21,"p-sortIcon",20),m(),p(22,"th",21),f(23,"ISK p/J "),T(24,"p-sortIcon",22),m(),T(25,"th"),m())}function yJ(i,t){if(i&1){let e=J();p(0,"i",28),R("click",function(){L(e);let n=S().$implicit,o=S();return O(o.addToCart(n))}),m()}}function xJ(i,t){if(i&1){let e=J();p(0,"i",29),R("click",function(){L(e);let n=S().$implicit,o=S();return O(o.removeFromCart(n))}),m()}}function CJ(i,t){if(i&1&&(p(0,"tr")(1,"td",23),f(2),m(),p(3,"td",23),f(4),m(),p(5,"td",23),f(6),G(7,"numericFormatter"),m(),p(8,"td",24),G(9,"numericFormatter"),T(10,"span",25),G(11,"shortPrice"),f(12," ISK"),m(),p(13,"td",23),f(14),m(),p(15,"td",24),G(16,"numericFormatter"),T(17,"span",25),G(18,"shortPrice"),f(19," ISK"),m(),p(20,"td",23),f(21),G(22,"numericFormatter"),m(),p(23,"td",24),G(24,"numericFormatter"),T(25,"span",25),G(26,"shortPrice"),f(27," ISK"),m(),p(28,"td",23),H(29,yJ,1,0,"i",26)(30,xJ,1,0,"i",27),m()()),i&2){let e=t.$implicit,r=S();v(2),$(e.typeName),v(2),$(e.fromOrder.locationName),v(2),$(ee(7,15,e.maxQuantity," ",0)),v(2),b("ewbTooltip",Q("",ee(9,19,e.fromOrder.price," ",0)," ISK")),v(2),b("innerHTML",Ne(11,23,e.fromOrder.price,""),ke),v(4),$(e.toOrder.locationName),v(),b("ewbTooltip",Q("",ee(16,26,e.toOrder.price," ",0)," ISK")),v(2),b("innerHTML",Ne(18,30,e.toOrder.price,""),ke),v(4),V("",ee(22,33,e.maxTotalVolume," ",1)," m3"),v(2),b("ewbTooltip",Q("",ee(24,37,e.iskPerJump," ",0)," ISK")),v(2),b("innerHTML",Ne(26,41,e.iskPerJump,""),ke),v(4),W(r.isInCart(e)?30:29)}}function SJ(i,t){i&1&&(p(0,"tr")(1,"td",30),f(2," No sell orders found "),m()())}var Mf=class i{constructor(t){this.parent=t}response;
1813getSecurityStatusClassString(t){return this.getSecurityStatusString(t).replace(".","")}getSecurityStatusString(t){return t===void 0?"":t===1?"1.0":t?.toString()}addToCart(t){this.parent.tradesToHaul.push(t)}removeFromCart(t){let e=this.parent.tradesToHaul.indexOf(t);if(e!==-1){let r=this.parent.tradesToHaul.splice(e,1)}}isInCart(t){return this.parent.tradesToHaul.indexOf(t)!==-1}static \u0275fac=function(e){return new(e||i)(N(vc))};static \u0275cmp=K({type:i,selectors:[["trade-tool-results"]],inputs:{response:"response"},decls:13,vars:6,consts:[["header",""],["body",""],[1,"card","bg-black","bg-opacity-50","mb-4"],[1,"card-body"],[1,"eve-route","small"],["sortField","price","stripedRows","",1,"w-100",3,"value","sortOrder"],["pTemplate","emptymessage"],["pSortableColumn","typeId",1,"small"],["field","typeId",1,"float-end"],["pSortableColumn","fromOrder.locationName",1,"small"],["field","fromOrder.locationName",1,"float-end"],["pSortableColumn","maxQuantity",1,"small"],["field","maxQuantity",1,"float-end"],["pSortableColumn","fromOrder.price",1,"small"],["field","fromOrder.price",1,"float-end"],["pSortableColumn","toOrder.locationName",1,"small"],["field","toOrder.locationName",1,"float-end"],["pSortableColumn","toOrder.price",1,"small"],["field","toOrder.price",1,"float-end"],["pSortableColumn","maxTotalVolume",1,"small"],["field","maxTotalVolume",1,"float-end"],["pSortableColumn","iskPerJump",1,"small"],["field","iskPerJump",1,"float-end"],[1,"small"],[1,"small","cursor-help",3,"ewbTooltip"],[3,"innerHTML"],["ewbTooltip","Add to items to haul",1,"fa-duotone","fa-solid","fa-cart-plus","cursor-pointer",2,"--fa-secondary-color","#00ff00","--fa-secondary-opacity","0.6"],["ewbTooltip","Remove from items to haul",1,"fa-duotone","fa-solid","fa-cart-minus","cursor-pointer",2,"--fa-secondary-color","#ff0000","--fa-secondary-opacity","0.6"],["ewbTooltip","Add to items to haul",1,"fa-duotone","fa-solid","fa-cart-plus","cursor-pointer",2,"--fa-secondary-color","#00ff00","--fa-secondary-opacity","0.6",3,"click"],["ewbTooltip","Remove from items to haul",1,"fa-duotone","fa-solid","fa-cart-minus","cursor-pointer",2,"--fa-secondary-color","#ff0000","--fa-secondary-opacity","0.6",3,"click"],["colspan","100%"]],template:function(e,r){e&1&&(p(0,"div",2)(1,"div",3),H(2,gJ,2,1,"h5")(3,vJ,2,0,"h5"),p(4,"ul",4),oe(5,_J,4,5,"li",null,Te),m()()(),p(7,"p-table",5),M(8,bJ,26,0,"ng-template",null,0,de)(10,CJ,31,44,"ng-template",null,1,de)(12,SJ,3,0,"ng-template",6),m()),e&2&&(v(2),W(((r.response==null?null:r.response.route)??be(3,_y)).length>1?2:3),v(3),ae((r.response==null?null:r.response.route)??be(4,_y)),v(2),b("value",(r.response==null?null:r.response.trades)??be(5,_y))("sortOrder",1))},dependencies:[Gi,xt,Dt,fo,ho,Pe,Wt,At],styles:['ul.eve-route[_ngcontent-%COMP%]{list-style:none;display:inline-block;padding-left:0}ul.eve-route[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{display:inline!important}ul.eve-route[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:not(:first-child):before{content:"\\f054";font:var(--fa-font-regular);display:inline-block;font-weight:900;margin-right:5px;margin-left:5px;font-size:10px}']})};var Pf=()=>[],TJ=()=>({width:"35rem"}),EJ=()=>({"1199px":"75vw","575px":"90vw"});function kJ(i,t){i&1&&T(0,"overlay-loader")}function IJ(i,t){if(i&1&&(p(0,"div",36)(1,"span"),f(2),m(),f(3),m()),i&2){let e=t.$implicit;v(),_e(Q("security-level security-level-",e.securityStatusClass)),v(),$(e.securityStatus),v(),V(" ",e.name," ")}}function DJ(i,t){if(i&1&&(p(0,"div",36)(1,"span"),f(2),m(),f(3),m()),i&2){let e=t.$implicit;v(),_e(Q("security-level security-level-",e.securityStatusClass)),v(),$(e.securityStatus),v(),V(" ",e.name," ")}}function MJ(i,t){if(i&1){let e=J();p(0,"div",37),R("click",function(){L(e);let n=S();return O(n.showShoppingCart=!n.showShoppingCart)}),p(1,"div",38),f(2," Total orders to haul "),p(3,"strong"),f(4),m(),T(5,"br"),f(6," Est. value "),T(7,"span",33),G(8,"numericFormatter"),G(9,"shortPrice"),f(10),m()()}if(i&2){let e=S();v(4),$(e.tradesToHaul.length),v(3),b("ewbTooltip",Q("",ee(8,5,e.getEstimatedValueFromItemsToHaul(0)," ",0)," ISK"))("innerHTML",Ne(9,9,e.getEstimatedValueFromItemsToHaul(0),""),ke),v(3),V(" ISK | Est. volume ",e.getEstimatedVolumeFromItemsToHaul()," m3 ")}}function PJ(i,t){i&1&&T(0,"overlay-loader")}function FJ(i,t){i&1&&T(0,"trade-tool-how-to")}function RJ(i,t){if(i&1&&T(0,"trade-tool-results",39),i&2){let e=S();b("response",e.response)}}function LJ(i,t){if(i&1&&(p(0,"tr")(1,"td",40)(2,"strong"),f(3),m(),T(4,"br"),f(5),T(6,"br"),f(7),m(),p(8,"td",40),f(9),T(10,"br"),f(11),T(12,"br"),f(13," Buy "),p(14,"span",41),T(15,"span",42),G(16,"shortPrice"),f(17," ISK"),m(),T(18,"br"),f(19," Sell "),p(20,"span",41),T(21,"span",42),G(22,"shortPrice"),f(23," ISK"),m(),T(24,"br"),m()()),i&2){let e=t.$implicit;v(3),$(e.typeName),v(2),V(" Pickup: ",e.fromOrder.locationName),v(2),V(" Sell at: ",e.toOrder.locationName," "),v(2),V(" ",e.maxVolume," m3 "),v(2),V(" ",e.fromOrder.volumeRemain," items"),v(3),b("ewbTooltip",Q("",e.fromOrder.price," ISK")),v(),b("innerHTML",Ne(16,11,e.fromOrder.price,""),ke),v(5),b("ewbTooltip",Q("",e.toOrder.price," ISK")),v(),b("innerHTML",Ne(22,14,e.toOrder.price,""),ke)}}var vc=class i{constructor(t,e,r,n){this.fb=t;this.router=e;this.tradeToolClient=r;this.systemClient=n;this.resetForm()}tradeToolForm;response;systemList;isLoading=!1;showShoppingCart=!1;tradesToHaul=[];options=[{label:"Sell - Sell",value:"sell-sell"},{label:"Sell - Buy",value:"sell-buy"}];resetForm(){this.tradeToolForm=this.fb.group({type:this.fb.control("sell-sell",[Yt.required]),fromSystem:this.fb.control(void 0,[Yt.required]),toSystem:this.fb.control(void 0,[Yt.required]),volume:this.fb.control(void 0,[])})}patchForm(){let t=new lT;return t.runType=this.tradeToolForm.get("type")?.value,t.fromSystemId=this.tradeToolForm.get("fromSystem")?.value?.systemId,t.toSystemId=this.tradeToolForm.get("toSystem")?.value?.systemId,t.volume=this.tradeToolForm.get("volume")?.value??999999999999999,t}
1813showResults(){this.tradeToolForm.invalid||(this.isLoading=!0,this.tradeToolClient.runTradeTool(this.patchForm()).subscribe(t=>{t.success?this.response=t.result:Ok.default.fire("Error occurred",t.message?.toString(),"error"),this.isLoading=!1}))}onLazyLoadSystems(t){let e=new cm;e.query=t?.query??"",this.systemClient.typeAhead(e).subscribe(r=>{r.success&&(this.systemList=r.result)})}getEstimatedValueFromItemsToHaul(t){let e=0;return this.tradesToHaul.forEach(r=>{switch(t){case 0:e+=r.priceDiff;break;case 1:e+=r.fromOrder.price;break;case 2:e+=r.toOrder.price;break}}),e}getEstimatedVolumeFromItemsToHaul(){let t=0;return this.tradesToHaul.forEach(e=>{t+=e.maxTotalVolume??0}),t}static \u0275fac=function(e){return new(e||i)(N(cr),N(bt),N(Bw),N(om))};static \u0275cmp=K({type:i,selectors:[["app-trade-tool"]],decls:93,vars:50,consts:[["item",""],["dialog",""],["body",""],[1,"row"],[1,"col-12","col-md-4","col-lg-3","mb-4","mb-md-0"],[1,"card"],[1,"card-body"],[4,"ngIf"],[3,"ngSubmit","formGroup"],[1,"row","row-cols-1"],[1,"col","mb-3"],["formControlName","type","optionLabel","label","optionValue","value",1,"w-100",3,"options"],["variant","in"],["formControlName","fromSystem","inputId","fromSystem","styleClass","w-100","optionLabel","name","dropdown","",3,"completeMethod","suggestions"],["for","fromSystem"],["formControlName","toSystem","inputId","toSystem","styleClass","w-100","optionLabel","name","dropdown","",3,"completeMethod","suggestions"],["for","toSystem"],["pInputText","","formControlName","volume",1,"w-100"],["for","volume"],[1,"col"],[1,"d-flex","justify-content-between"],[1,"btn","btn-sm","btn-secondary",3,"click"],[1,"float-end"],["type","submit",1,"btn","btn-sm","btn-primary"],["class","card mt-4 bg-primary",3,"click",4,"ngIf"],[1,"alert","alert-info","mb-3"],[3,"response",4,"ngIf"],["header","Shopping cart",3,"visibleChange","visible","breakpoints"],[1,"mb-3"],["stripedRows","",1,"small",3,"value"],[1,"row","mb-2"],[1,"col-12","col-md-6","font-weight-bold"],[1,"col-12","col-md-6","text-end"],[3,"innerHTML","ewbTooltip"],[1,"alert","alert-info"],[1,"fa-solid","fa-circle-info"],[1,"flex","items-center","gap-2"],[1,"card","mt-4","bg-primary",3,"click"],["ewbTooltip","Click to open the list",1,"card-body"],[3,"response"],[1,"small"],[1,"cursor-help",3,"ewbTooltip"],[3,"innerHTML"]],template:function(e,r){if(e&1){let n=J();p(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),M(4,kJ,1,0,"overlay-loader",7),p(5,"h5"),f(6,"Trade Tool"),m(),p(7,"form",8),R("ngSubmit",function(){return r.showResults()}),p(8,"div",9)(9,"div",10),T(10,"p-selectbutton",11),m(),p(11,"div",10)(12,"p-floatlabel",12)(13,"p-autoComplete",13),R("completeMethod",function(a){return r.onLazyLoadSystems(a)}),M(14,IJ,4,5,"ng-template",null,0,de),m(),p(16,"label",14),f(17,"From System"),m()()(),p(18,"div",10)(19,"p-floatlabel",12)(20,"p-autoComplete",15),R("completeMethod",function(a){return r.onLazyLoadSystems(a)}),M(21,DJ,4,5,"ng-template",null,0,de),m(),p(23,"label",16),f(24,"To System"),m()()(),p(25,"div",10)(26,"p-floatlabel",12),T(27,"input",17),p(28,"label",18),f(29,"Volume (m3)"),m()()(),p(30,"div",19)(31,"div",20)(32,"div")(33,"button",21),R("click",function(){return r.resetForm()}),f(34,"Clear"),m()(),p(35,"div",22)(36,"button",23),f(37,"Show results"),m()()()()()()()(),M(38,MJ,11,12,"div",24),m(),p(39,"div",19)(40,"div",5)(41,"div",6),M(42,PJ,1,0,"overlay-loader",7),p(43,"div",25),f(44," The "),p(45,"strong"),f(46,"ISK Per Jump"),m(),f(47," column is a calculated price over the jumps between location A and B. After that calculation we also take a average of 7.5% FEE, so the price might be a bit higher or lower! "),m(),M(48,FJ,1,0,"trade-tool-how-to",7)(49,RJ,1,1,"trade-tool-results",26),m()()()(),p(50,"p-dialog",27,1),Je("visibleChange",function(a){return L(n),Xe(r.showShoppingCart,a)||(r.showShoppingCart=a),O(a)}),p(52,"h6",28),f(53,"Items in shopping list"),m(),p(54,"p-table",29),M(55,LJ,25,17,"ng-template",null,2,de),m(),p(57,"h6",28),f(58,"Volume and price information"),m(),p(59,"div",30)(60,"div",31),f(61," Max volume "),m(),p(62,"div",32),f(63),G(64,"numericFormatter"),m()(),p(65,"div",30)(66,"div",31),f(67," Volume "),m(),p(68,"div",32),f(69),G(70,"numericFormatter"),m()(),p(71,"div",30)(72,"div",31),f(73," Est. buy price "),m(),p(74,"div",32),T(75,"span",33),G(76,"numericFormatter"),G(77,"shortPrice"),f(78," ISK "),m()(),p(79,"div",30)(80,"div",31),f(81," Est. sell price "),m(),p(82,"div",32),T(83,"span",33),G(84,"numericFormatter"),G(85,"shortPrice"),f(86," ISK "),m()(),p(87,"div",34),T(88,"i",35),f(89," Please keep in mind that this calculation does "),p(90,"strong"),f(91,"not"),m(),f(92," include the fees you might have to pay at the various stations! "),m()()}if(e&2){let n;v(4),b("ngIf",r.isLoading),v(3),b("formGroup",r.tradeToolForm),v(3),b("options",r.options),v(3),b("suggestions",r.systemList??be(44,Pf)),v(7),b("suggestions",r.systemList??be(45,Pf)),v(18),b("ngIf",r.tradesToHaul.length>0),v(4),b("ngIf",r.isLoading),v(6),b("ngIf",((r.response==null?null:r.response.trades)??be(46,Pf)).length==0),v(),b("ngIf",((r.response==null?null:r.response.trades)??be(47,Pf)).length>0),v(),Lt(be(48,TJ)),Qe("visible",r.showShoppingCart),b("breakpoints",be(49,EJ)),v(4),b("value",r.tradesToHaul),v(9),V(" ",ee(64,22,((n=r.tradeToolForm.get("volume"))==null?null:n.value)??0," ",0)," m3 "),v(6),V(" ",ee(70,26,r.getEstimatedVolumeFromItemsToHaul()," ",0)," m3 "),v(6),b("ewbTooltip",Q("",ee(76,30,r.getEstimatedValueFromItemsToHaul(1)," ",0)," ISK"))("innerHTML",Ne(77,34,r.getEstimatedValueFromItemsToHaul(1),""),ke),v(8),b("ewbTooltip",Q("",ee(84,37,r.getEstimatedValueFromItemsToHaul(2)," ",0)," ISK"))("innerHTML",Ne(85,41,r.getEstimatedValueFromItemsToHaul(2),""),ke)}},dependencies:[ge,Sm,Df,yt,lr,Ot,mt,qi,ui,Yi,ji,$t,ni,ba,ft,Mf,ic,xt,Dt,Pe,Wt,At],encapsulation:2})};function OJ(i,t){i&1&&T(0,"overlay-loader")}function AJ(i,t){if(i&1&&T(0,"div",3),i&2){let e=S();b("innerHTML",e.errorMessage,ke)}}function BJ(i,t){i&1&&(p(0,"div",4),f(1,"Please wait, importing killmail..."),m())}var Ff=class i{constructor(t,e,r){this.route=t;this.router=e;this.killmailClient=r}isLoading=!0;errorMessage=void 0;killmailId=void 0;killmailHash=void 0;ngOnInit(){this.route.params.subscribe(t=>
1813{if(this.killmailId=t.id,this.killmailHash=t.hash,this.killmailId==null||this.killmailHash==null){this.isLoading=!1,this.errorMessage="Invalid killmail id or hash.";return}console.log(this.killmailId);let e=new oT;e.id=this.killmailId,e.hash=this.killmailHash,console.log(e),this.killmailClient.import(e).subscribe(r=>{if(r.success){if(this.isLoading=!1,r.result==null||r.result.fitId==null){this.errorMessage="No fit found in killmail.";return}this.router.navigate(["/fit",r.result.fitId])}else this.isLoading=!1,this.errorMessage=r.message})})}static \u0275fac=function(e){return new(e||i)(N(Xt),N(bt),N(Ow))};static \u0275cmp=K({type:i,selectors:[["app-killmail"]],decls:4,vars:3,consts:[[4,"ngIf"],["class","alert alert-danger",3,"innerHTML",4,"ngIf"],["class","alert alert-info",4,"ngIf"],[1,"alert","alert-danger",3,"innerHTML"],[1,"alert","alert-info"]],template:function(e,r){e&1&&(p(0,"div"),M(1,OJ,1,0,"overlay-loader",0)(2,AJ,1,1,"div",1)(3,BJ,2,0,"div",2),m()),e&2&&(v(),b("ngIf",r.isLoading),v(),b("ngIf",r.errorMessage!=null),v(),b("ngIf",r.errorMessage==null))},dependencies:[ge,ft],encapsulation:2})};var Ak=Ri(pr());var NJ=()=>[],VJ=i=>["/u",i];function zJ(i,t){i&1&&T(0,"overlay-loader")}function UJ(i,t){i&1&&(p(0,"tr")(1,"th"),f(2,"Capsuleer"),m()())}function HJ(i,t){if(i&1&&(p(0,"tr",16)(1,"td",17)(2,"div",18)(3,"a",19),T(4,"img",20),f(5),m()()()()),i&2){let e=t.$implicit;v(3),b("routerLink",te(6,VJ,e.slug)),v(),b("src",Q("https://images.evetech.net/characters/",e.id,"/portrait/?size=32"),re)("alt",Q("",e.name," avatar")),v(),V(" ",e.name," ")}}var Rf=class i{constructor(t,e,r){this.profileClient=t;this.fb=e;this.router=r;this.searchForm=this.fb.group({query:["",[]]})}results=[];isLoading=!1;skip=0;take=35;totalRecords=0;currentPage=1;totalPages=0;searchForm;ngOnInit(){this.loadCharacters(0,this.take)}onPageChange(t){this.skip=t.first,this.take=t.rows,this.currentPage=t.page+1,this.loadCharacters(this.skip,this.take)}loadCharacters(t,e){this.isLoading=!0;let r=new sm;r.query=this.searchForm.value.query,r.take=e,r.skip=t,this.profileClient.search(r).subscribe(n=>{n.success?(window.scrollTo(0,0),this.results=n.results,this.isLoading=!1,this.totalRecords=n.totalResultCount??0,this.totalPages=Math.ceil(this.totalRecords/this.take)):Ak.default.fire("Error loading profile search data.",n.message?.toString(),"error")})}openProfile(t){window.open(`/u/${t.slug}`,"_blank")}static \u0275fac=function(e){return new(e||i)(N(Br),N(cr),N(bt))};static \u0275cmp=K({type:i,selectors:[["app-profile-search"]],decls:24,vars:9,consts:[["header",""],["body",""],["paginator",""],[1,"justify-content-center","row","mt-4"],[1,"col-12","col-md-10","col-lg-8"],[1,"card"],[1,"card-body"],[4,"ngIf"],[3,"ngSubmit","formGroup"],["variant","in",1,"mb-4"],["pInputText","","id","in_label","formControlName","query",1,"w-100"],["for","in_label"],["stripedRows","","rowHover","",1,"mt-3",3,"value"],[1,"row","mt-3"],[1,"col"],["currentPageReportTemplate","Displaying page {currentPage} of {totalPages}",3,"onPageChange","showCurrentPageReport","rows","totalRecords","pageLinkSize"],[1,"cursor-pointer"],[1,"p-0"],[1,"p-3","position-relative"],["target","_blank",1,"stretched-link",3,"routerLink"],[1,"rounded-circle","border","border-1-white","img-24","me-2",3,"src","alt"]],template:function(e,r){e&1&&(p(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6),M(4,zJ,1,0,"overlay-loader",7),p(5,"h5"),f(6,"Public profiles"),m(),p(7,"p"),f(8,"Only profiles with publicly published fittings will be shown here!"),m(),f(9),p(10,"form",8),R("ngSubmit",function(){return r.loadCharacters(0,r.take)}),p(11,"p-floatlabel",9),T(12,"input",10),p(13,"label",11),f(14,"Character name"),m()()(),p(15,"p-table",12),M(16,UJ,3,0,"ng-template",null,0,de)(18,HJ,6,8,"ng-template",null,1,de),m(),p(20,"div",13)(21,"div",14)(22,"p-paginator",15,2),R("onPageChange",function(o){return r.onPageChange(o)}),m()()()()()()()),e&2&&(v(4),b("ngIf",r.isLoading),v(5),V(" ",r.searchForm.controls.search," "),v(),b("formGroup",r.searchForm),v(5),b("value",r.results??be(8,NJ)),v(7),b("showCurrentPageReport",!0)("rows",r.take)("totalRecords",r.totalRecords)("pageLinkSize",6))},dependencies:[xt,Dt,Vr,ft,ge,$e,$t,yt,lr,Ot,mt,qi,ni,ui,Yi,ji],encapsulation:2})};var Pa=class i{constructor(t,e,r,n){this.profileClient=t;this.fitClient=e;this.fleetClient=r;this.route=n}characterNotFound=!1;slug;profile;isLoading=!0;isCharacterLoaded=!0;ngOnInit(){this.route.params.subscribe(t=>{this.isCharacterLoaded=!0,this.slug=t.slug,this.slug===void 0?this.characterNotFound=!0:(this.isLoading=!0,this.profileClient.getBySlug(this.slug).subscribe(e=>{e.success?(this.characterNotFound=!1,this.profile=e.result,this.characterLoaded()):this.characterNotFound=!0,this.isCharacterLoaded=!1}))})}characterLoaded(){console.log("Character Loaded - Override this function!")}static \u0275fac=function(e){return new(e||i)(N(Br),N(it),N(Wi),N(Xt))};static \u0275cmp=K({type:i,selectors:[["app-profile-base"]],decls:0,vars:0,template:function(e,r){},encapsulation:2})};var wn=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["page-not-found"]],decls:12,vars:0,consts:[[1,"error-page","p-5","align-middle"],[1,"row"],[1,"col","text-center"],[1,"title-error"],["src","/assets/images/stargates/amarr-stargate.png"],[1,"subtitle-error"]],template:function(e,r){e&1&&(Y(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),f(4,"404"),B(),zi(5,"img",4),Y(6,"h2",5),f(7,"Page Not Found"),B(),Y(8,"p"),f(9,"The stargate denies you permission to jump for the moment."),B(),Y(10,"p"),f(11,"Please try again later or go back or to your home station."),B()()()())},styles:[`body{background-image:url(/assets/images/amarr-system.jpg);background-repeat:no-repeat;background-position:center center;background-size:cover}.navbar{background-color:transparent!important}.navbar.shadow-sm{box-shadow:0 0 #00000013!important}.error-page{min-height:650px}.title-error{font-weight:100;font-size:11rem}.subtitle-error{font-size:3.5rem;text-transform:uppercase}
1814`],encapsulation:2})};var Bk=i=>["/u",i],by=()=>({exact:!0}),WJ=i=>["/u",i,"promoted-fit"],GJ=i=>["/u",i,"promoted-fleet"];function qJ(i,t){if(i&1&&(p(0,"div",15),f(1),m()),i&2){let e=S();v(),$(e.profile==null?null:e.profile.corporationName)}}function jJ(i,t){if(i&1&&(p(0,"div",16),f(1),m()),i&2){let e=S();
1814v(),$(e.profile==null?null:e.profile.allianceName)}}function YJ(i,t){i&1&&(p(0,"span",17),f(1,"Verified"),m())}function KJ(i,t){i&1&&(p(0,"span",18),f(1,"Streamer"),m())}function $J(i,t){i&1&&(p(0,"span",17),f(1,"Live"),m())}function ZJ(i,t){if(i&1&&(p(0,"a",12),f(1,"Promoted Fit"),m()),i&2){let e=S();b("routerLink",te(2,WJ,e.profile==null?null:e.profile.slug))("routerLinkActiveOptions",be(4,by))}}function QJ(i,t){if(i&1&&(p(0,"a",12),f(1,"Promoted Fleet"),m()),i&2){let e=S();b("routerLink",te(2,GJ,e.profile==null?null:e.profile.slug))("routerLinkActiveOptions",be(4,by))}}var bo=class i{profile;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["profile-menu"]],inputs:{profile:"profile"},decls:24,vars:26,consts:[[1,"card","mb-5","mt-5"],[1,"card-body","character-profile","text-center"],[1,"border","border-2","border-white","rounded-circle",3,"src","alt"],[1,"mb-0"],[1,"text-dark","mb-1","d-inline-block",3,"routerLink"],["class","small mt-1",4,"ngIf"],["class","small mt-1 text-muted fst-italic",4,"ngIf"],[1,"small","text-center"],["class","badge bg-success me-2",4,"ngIf"],["class","badge bg-primary me-2",4,"ngIf"],[1,"card","mt-3"],[1,"list-group","dark-group"],["routerLinkActive","active",1,"list-group-item",3,"routerLink","routerLinkActiveOptions"],["routerLinkActive","active","class","list-group-item",3,"routerLink","routerLinkActiveOptions",4,"ngIf"],["target","_blank","rel","nofollow",1,"list-group-item",3,"href"],[1,"small","mt-1"],[1,"small","mt-1","text-muted","fst-italic"],[1,"badge","bg-success","me-2"],[1,"badge","bg-primary","me-2"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1),T(2,"img",2),p(3,"h5",3)(4,"a",4),f(5),m(),M(6,qJ,2,1,"div",5)(7,jJ,2,1,"div",6),p(8,"div",7),M(9,YJ,2,0,"span",8)(10,KJ,2,0,"span",9)(11,$J,2,0,"span",8),m()()()(),p(12,"div",10)(13,"div",11)(14,"a",12),f(15,"Profile"),m(),M(16,ZJ,2,5,"a",13)(17,QJ,2,5,"a",13),p(18,"a",14),f(19,"Abyss Tracker"),m(),p(20,"a",14),f(21,"EVE Wreckbench killboard"),m(),p(22,"a",14),f(23,"zKillboard"),m()()()),e&2&&(v(2),b("src",Q("https://images.evetech.net/characters/",r.profile==null?null:r.profile.id,"/portrait?size=256"),re)("alt",De(r.profile==null?null:r.profile.name)),v(2),b("routerLink",te(21,Bk,r.profile==null?null:r.profile.slug)),v(),$(r.profile==null?null:r.profile.name),v(),b("ngIf",r.profile==null?null:r.profile.corporationId),v(),b("ngIf",r.profile==null?null:r.profile.allianceId),v(2),b("ngIf",r.profile==null?null:r.profile.isVerified),v(),b("ngIf",r.profile==null?null:r.profile.isStreamer),v(),b("ngIf",r.profile==null?null:r.profile.isLive),v(3),b("routerLink",te(23,Bk,r.profile==null?null:r.profile.slug))("routerLinkActiveOptions",be(25,by)),v(2),b("ngIf",r.profile==null?null:r.profile.hasPromotedFit),v(),b("ngIf",r.profile==null?null:r.profile.hasPromotedFleet),v(),b("href",Q("https://abysstracker.com/u/",r.profile==null?null:r.profile.slug),re),v(2),b("href",Q("https://www.evewreckbench.com/character/",r.profile==null?null:r.profile.id),re),v(2),b("href",Q("https://zkillboard.com/character/",r.profile==null?null:r.profile.id,"/"),re))},dependencies:[ge,$e,AT],encapsulation:2})};function XJ(i,t){i&1&&(p(0,"div",0),f(1," Loading user... "),m())}function JJ(i,t){if(i&1){let e=J();p(0,"fit-radial",11),R("onUpdateFit",function(){L(e);let n=S(2);return O(n.onUpdateFit())}),m()}if(i&2){let e=S(2);b("fit",e.fit)("droneBayMetadata",e.droneBayMetadata)}}function eee(i,t){if(i&1){let e=J();p(0,"fit-statistics",12),R("onStatisticsUpdate",function(n){L(e);let o=S(2);return O(o.onStatisticsUpdate(n))}),m()}if(i&2){let e=S(2);b("fit",e.fit)("showLevelSelector",!0)}}function tee(i,t){if(i&1&&(p(0,"div",1)(1,"div",2),T(2,"profile-menu",3),m(),p(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5",7),f(7,"Active fit"),m(),M(8,JJ,1,2,"fit-radial",8),m()()(),p(9,"div",9),M(10,eee,1,2,"fit-statistics",10),m()()),i&2){let e=S();v(2),b("profile",e.profile),v(6),b("ngIf",e.fit!=null),v(2),b("ngIf",e.fit!=null)}}function iee(i,t){i&1&&T(0,"page-not-found")}var _c=class i extends Pa{statisticsComponent;fit;droneBayMetadata={AvailableBandwidth:void 0};constructor(t,e,r,n){super(t,e,r,n)}characterLoaded(){this.slug!==void 0&&(this.isLoading=!0,this.fitClient.getActiveFit(this.slug).subscribe(t=>{t.success?this.fit=t.result:this.characterNotFound=!0,this.isLoading=!1}))}onStatisticsUpdate(t){this.droneBayMetadata.AvailableBandwidth=t.droneBandwidth,this.droneBayMetadata.MaxActiveDrones=t.droneMaxActive}onUpdateFit(){this.statisticsComponent?.loadStatistics()}static \u0275fac=function(e){return new(e||i)(N(Br),N(it),N(Wi),N(Xt))};static \u0275cmp=K({type:i,selectors:[["app-profile-active-fit"]],viewQuery:function(e,r){if(e&1&&Ui(en,5),e&2){let n;Ce(n=Se())&&(r.statisticsComponent=n.first)}},features:[Ke],decls:3,vars:1,consts:[[1,"alert","alert-info"],[1,"row"],[1,"d-none","d-lg-block","col-12","col-lg-3"],[3,"profile"],[1,"col"],[1,"card"],[1,"card-body"],[1,"mb-3"],[3,"fit","droneBayMetadata","onUpdateFit",4,"ngIf"],[1,"col-12","col-lg-3","mt-3","mt-lg-0"],[3,"fit","showLevelSelector","onStatisticsUpdate",4,"ngIf"],[3,"onUpdateFit","fit","droneBayMetadata"],[3,"onStatisticsUpdate","fit","showLevelSelector"]],template:function(e,r){e&1&&H(0,XJ,2,0,"div",0)(1,tee,11,3,"div",1)(2,iee,1,0,"page-not-found"),e&2&&W(r.isLoading?0:!r.isLoading&&!r.characterNotFound?1:!r.isLoading&&r.characterNotFound?2:-1)},dependencies:[wn,zr,ge,en,bo],encapsulation:2})};var Nk=Ri(pr());var ree=()=>[];function nee(i,t){i&1&&T(0,"overlay-loader")}function oee(i,t){i&1&&(p(0,"tr")(1,"th"),f(2,"Hull"),m(),p(3,"th"),f(4,"Name"),m(),p(5,"th"),f(6,"Price avg."),m(),p(7,"th"),f(8,"Rating"),m()())}function aee(i,t){if(i&1){let e=J();p(0,"tr",17),R("click",function(){let n=L(e).$implicit,o=S(2);return O(o.openFit(n))}),p(1,"td"),f(2),m(),p(3,"td"),f(4),m(),p(5,"td")(6,"span",18),G(7,"numericFormatter"),T(8,"span",19),G(9,"shortPrice"),f(10," ISK"),m()(),p(11,"td"),f(12),m()()}if(i&2){let e=t.$implicit;v(2),$(e.shipName),v(2),$(e.name),v(2),b("ewbTooltip",Q("",ee(7,6,e.totalCost," ",0)," ISK")),v(2),b("innerHTML",Ne(9,10,e.totalCost,""),ke),v(4),$(e.rating)}}function see(i,t){if(i&1){let e=J();p(0,"div",3)(1,"div",4),T(2,"profile-menu",5),m(),p(3,"div",6)(4,"div",7)(5,"div",8),M(6,nee,1,0,"overlay-loader",9),p(7,"h5"),f(8,"Published fits"),m(),p(9,"form",10),R("ngSubmit",function(){L(e);let n=S();return O(n.submitSearch())}),p(10,"p-floatlabel",11),T(11,"input",12),p(12,"label",13),f(13,"Search through user fits (press Enter to search)"),m()()(),p(14,"p-table",14),M(15,oee,9,0,"ng-template",null,0,de)(17,aee,13,13,"ng-template",null,1,de),m(),p(19,"div",15)(20,"div",6)(21,"p-paginator",16,2),R("onPageChange",function(n){L(e);let o=S();return O(o.onPageChange(n))}),m()()()()()()()}if(i&2){let e=S();v(2),b("profile",e.profile),v(4),b("ngIf",e.isLoading),v(3),b("formGroup",e.searchForm),v(5),b("value",e.results??be(8,ree)),v(7),b("showCurrentPageReport",!0)("rows",e.take)("totalRecords",e.totalRecords)("pageLinkSize",6)}}function lee(i,t){i&1&&T(0,"page-not-found")}var Lf=class i extends Pa{constructor(e,r,n,o,a,s){super(n,o,a,s);this.router=e;this.fb=r;this.searchForm=this.fb.group({query:["",[]]})}results=[];skip=0;take=25;totalRecords=0;currentPage=1;totalPages=0;searchForm;submitSearch(){this.loadFits(0,this.take)}characterLoaded(){this.slug!==void 0&&(this.isLoading=!0,this.loadFits(0,this.take))}loadFits(e,r){this.isLoading=!0;let n=new tT;n.slug=this.slug,n.take=r,n.skip=e,n.query=this.searchForm.value.query,this.fitClient.getCharacterFits(n).subscribe(o=>{o.success?(window.scrollTo(0,0),this.results=o.results,this.isLoading=!1,this.totalRecords=o.totalResultCount??0,this.totalPages=Math.ceil(this.totalRecords/this.take)):Nk.default.fire("Error occurred",o.message?.toString(),"warning")})}openFit(e){window.open(`/fit/${e.id}`,"_blank")}onPageChange(e){this.skip=e.first,this.take=e.rows,this.currentPage=e.page+1,this.loadFits(this.skip,this.take)}static \u0275fac=function(r){return new(r||i)(N(bt),N(cr),N(Br),N(it),N(Wi),N(Xt))};static \u0275cmp=K({type:i,selectors:[["app-profile-detail"]],features:[Ke],decls:2,vars:1,consts:[["header",""],["body",""],["paginator",""],[1,"row"],[1,"d-none","d-lg-block","col-12","col-lg-3"],[3,"profile"],[1,"col"],[1,"card"],[1,"card-body"],[4,"ngIf"],[1,"mt-3","mb-3",3,"ngSubmit","formGroup"],["variant","in"],["pInputText","","id","query","formControlName","query",1,"w-100"],["for","query"],["stripedRows","","rowHover","",3,"value"],[1,"row","mt-3"],["currentPageReportTemplate","Displaying page {currentPage} of {totalPages}",3,"onPageChange","showCurrentPageReport","rows","totalRecords","pageLinkSize"],[1,"curs
1814or-pointer",3,"click"],[3,"ewbTooltip"],[3,"innerHTML"]],template:function(r,n){r&1&&H(0,see,23,9,"div",3)(1,lee,1,0,"page-not-found"),r&2&&W(!n.isCharacterLoaded&&!n.characterNotFound?0:!n.isLoading&&n.characterNotFound?1:-1)},dependencies:[ge,wn,bo,xt,Dt,Vr,Pe,ft,$t,ni,yt,lr,Ot,mt,qi,ui,Yi,ji,At,Wt],encapsulation:2})};var Of=Ri(pr());var cee=()=>[],Vk=i=>["/fit",i];function dee(i,t){i&1&&(p(0,"div",0),f(1," Loading user... "),m())}function pee(i,t){if(i&1&&(p(0,"a",26),f(1),m()),i&2){let e=t.$implicit;b("routerLink",te(3,Vk,e.id)),v(),kt("",e.shipName,", ",e.name)}}function uee(i,t){if(i&1&&(p(0,"div",23)(1,"div",7)(2,"span",24),f(3,"Previously promoted fits"),m()(),p(4,"div",25),oe(5,pee,2,5,"a",26,Te),m()()),i&2){let e=S(2);v(5),ae(e.previouslyPromotedFits)}}function mee(i,t){i&1&&(T(0,"i",27),f(1," Push to EVE "))}function fee(i,t){i&1&&(T(0,"i",28),f(1," Pushing fit to EVE "))}function hee(i,t){if(i&1){let e=J();p(0,"fit-radial",29),R("onUpdateFit",function(){L(e);let n=S(2);return O(n.onUpdateFit())}),m()}if(i&2){let e=S(2);b("fit",e.fit)("droneBayMetadata",e.droneBayMetadata)}}function gee(i,t){if(i&1&&(p(0,"span")(1,"markdown"),f(2),m()()),i&2){let e=S(2);v(2),$(e.fit==null?null:e.fit.description)}}function vee(i,t){i&1&&(p(0,"span")(1,"div",30),f(2," The uploader chose not to include a description about this fit. If you want more information we suggest you to ask the uploader for information or ask the uploader to add an description. "),m()())}function _ee(i,t){if(i&1){let e=J();p(0,"fit-statistics",31),R("onStatisticsUpdate",function(n){L(e);let o=S(2);return O(o.onStatisticsUpdate(n))}),m()}if(i&2){let e=S(2);b("fit",e.fit)("showLevelSelector",!0)}}function bee(i,t){if(i&1){let e=J();p(0,"div",1)(1,"div",2),T(2,"profile-menu",3),M(3,uee,7,0,"div",4),m(),p(4,"div",5)(5,"div",6)(6,"div",7)(7,"div",8)(8,"h5",9),f(9),m(),p(10,"div")(11,"button",10),R("click",function(){L(e);let n=S();return O(n.copyEftToClipboard(n.fit))}),T(12,"i",11),f(13," Copy to clipboard"),m(),p(14,"button",12),R("click",function(){L(e);let n=S();return O(n.pushToEve(n.fit))}),H(15,mee,2,0)(16,fee,2,0),m(),p(17,"a",13),T(18,"i",14),f(19," Open fit"),m()()(),p(20,"div",15)(21,"strong"),f(22,"Est. Jita price"),m(),p(23,"span",16),G(24,"numericFormatter"),T(25,"span",17),G(26,"shortPrice"),f(27," ISK"),m()(),M(28,hee,1,2,"fit-radial",18),m()(),p(29,"div",19)(30,"div",7)(31,"h5"),f(32,"Description"),m(),M(33,gee,3,1,"span",20)(34,vee,3,0,"span",20),m()()(),p(35,"div",21),M(36,_ee,1,2,"fit-statistics",22),m()()}if(i&2){let e=S();v(2),b("profile",e.profile),v(),b("ngIf",(e.previouslyPromotedFits??be(22,cee)).length>0),v(6),Nd("Promoted fit: ",e.fit==null?null:e.fit.shipName,", ",e.fit==null?null:e.fit.name," by ",e.fit==null?null:e.fit.characterName),v(5),b("disabled",e.pushToEveDisabled||e.pushToEveLoading),v(),W(e.pushToEveLoading?16:15),v(2),b("routerLink",te(23,Vk,e.fit==null?null:e.fit.id)),v(6),b("ewbTooltip",Q("",ee(24,15,e.fit==null?null:e.fit.priceWithHull," ",0)," ISK")),v(2),b("innerHtml",Ne(26,19,e.fit==null?null:e.fit.priceWithHull,""),ke),v(3),b("ngIf",e.fit!=null),v(5),b("ngIf",e.fit==null?null:e.fit.description),v(),b("ngIf",!(e.fit!=null&&e.fit.description)),v(2),b("ngIf",e.fit!=null)}}function yee(i,t){i&1&&T(0,"page-not-found")}var Af=class i extends _c{constructor(e,r,n,o,a,s){super(n,o,a,s);this.clipboard=e;this.authService=r}previouslyPromotedFits=[];pushToEveDisabled=!0;pushToEveLoading=!1;ngOnInit(){super.ngOnInit(),this.pushToEveDisabled=!this.authService.isAuthenticated()}characterLoaded(){this.slug!==void 0&&(this.isLoading=!0,this.fitClient.getPromotedFit(this.slug).subscribe(e=>{e.success?this.fit=e.result:this.characterNotFound=!0,this.isLoading=!1}),this.fitClient.getPreviouslyPromotedFits(this.slug).subscribe(e=>{e.success&&(this.previouslyPromotedFits=e.result)}))}copyEftToClipboard(e){this.clipboard.copy(e.eft??""),Of.default.fire({title:"EFT String copied to clipboard",icon:"success",showConfirmButton:!1,timer:1500})}pushToEve(e){this.pushToEveDisabled||(this.pushToEveLoading=!0,this.fitClient.postPushFitToEve(e.id).subscribe(r=>{r.success?Of.default.fire({title:"Fit has been pushed to EVE Online",icon:"success",showConfirmButton:!1,timer:1500}):Of.default.fire("Error occured",r.message?.toString(),"error"),this.pushToEveLoading=!1}))}getPushToEveTooltip(){return"Push this fit to EVE Online"}static \u0275fac=function(r){return new(r||i)(N(Ki),N(mi),N(Br),N(it),N(Wi),N(Xt))};static \u0275cmp=K({type:i,selectors:[["app-profile-promoted-fit"]],features:[Ke],decls:3,vars:1,consts:[[1,"alert","alert-info"],[1,"row"],[1,"d-none","d-lg-block","col-12","col-lg-3"],[3,"profile"],["class","card border-0 shadow-sm mt-3",4,"ngIf"],[1,"col"],[1,"card"],[1,"card-body"],[1,"d-flex","justify-content-between"],[1,"mb-3"],[1,"btn","btn-secondary","btn-sm","me-1",3,"click"],[1,"fa-duotone","fa-solid","fa-clipboard","me-1"],[1,"btn","btn-secondary","btn-sm","me-1",3,"click","disabled"],["target","_blank",1,"btn","btn-primary","btn-sm",3,"routerLink"],[1,"fa-duotone","fa-solid","fa-arrow-up-right-from-square","me-1"],[1,"float-end"],[1,"ms-1","cursor-help",3,"ewbTooltip"],[3,"innerHtml"],[3,"fit","droneBayMetadata","onUpdateFit",4,"ngIf"],[1,"card","mt-3"],[4,"ngIf"],[1,"col-12","col-lg-3","mt-3","mt-lg-0"],[3,"fit","showLevelSelector","onStatisticsUpdate",4,"ngIf"],[1,"card","border-0","shadow-sm","mt-3"],[1,"h6"],[1,"list-group","dark-group"],[1,"list-group-item",3,"routerLink"],[1,"fa-duotone","fa-solid","fa-upload","me-1"],[1,"fa-duotone","fa-solid","fa-spinner-scale","me-1","fa-spin"],[3,"onUpdateFit","fit","droneBayMetadata"],[1,"alert","alert-warning"],[3,"onStatisticsUpdate","fit","showLevelSelector"]],template:function(r,n){r&1&&H(0,dee,2,0,"div",0)(1,bee,37,25,"div",1)(2,yee,1,0,"page-not-found"),r&2&&W(n.isCharacterLoaded?0:!n.isCharacterLoaded&&!n.characterNotFound?1:!n.isLoading&&n.characterNotFound?2:-1)},dependencies:[zr,en,ge,wn,bo,$e,Pe,Cn,At,Wt],encapsulation:2})};var Bf=Ri(pr());var xee=i=>["/fit",i];function Cee(i,t){i&1&&(T(0,"i",12),f(1," Push to EVE "))}function See(i,t){i&1&&(T(0,"i",13),f(1," Pushing fit to EVE "))}var bc=class i{constructor(t,e,r){this.clipboard=t;this.authService=e;this.fitClient=r}member;index;pushToEveDisabled=!0;pushToEveLoading=!1;ngOnInit(){this.pushToEveDisabled=!this.authService.isAuthenticated()}copyEftToClipboard(t){this.clipboard.copy(t.eft??""),Bf.default.fire({title:"EFT String copied to clipboard",icon:"success",showConfirmButton:!1,timer:1500})}pushToEve(t){this.pushToEveDisabled||(this.pushToEveLoading=!0,this.fitClient.postPushFitToEve(t.id).subscribe(e=>{e.success?Bf.default.fire({title:"Fit has been pushed to EVE Online",icon:"success",showConfirmButton:!1,timer:1500}):Bf.default.fire("Error occured",e.message?.toString(),"error"),this.pushToEveLoading=!1}))}getPushToEveTooltip(){return"Push this fit to EVE Online"}static \u0275fac=function(e){return new(e||i)(N(Ki),N(mi),N(it))};static \u0275cmp=K({type:i,selectors:[["fleet-fit"]],inputs:{member:"member",index:"index"},decls:30,vars:36,consts:[[1,"card","mb-3"],[1,"card-body"],[1,"d-flex","justify-content-between"],[1,"btn","btn-secondary","btn-sm","me-1",3,"click"],[1,"fa-duotone","fa-solid","fa-clipboard","me-1"],[1,"btn","btn-secondary","btn-sm","me-1",3,"click","ewbTooltip","disabled"],["target","_blank",1,"btn","btn-primary","btn-sm",3,"routerLink"],[1,"fa-duotone","fa-solid","fa-arrow-up-right-from-square","me-1"],[1,"fa-duotone","fa-solid","fa-user","me-1"],[1,"fa-duotone","fa-solid","fa-calendar","me-1"],[1,"curs
1814or-help",3,"ewbTooltip","innerHtml"],[3,"fit"],[1,"fa-duotone","fa-solid","fa-upload","me-1"],[1,"fa-duotone","fa-solid","fa-spinner-scale","me-1","fa-spin"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"h5"),f(4),m(),p(5,"div")(6,"button",3),R("click",function(){return r.copyEftToClipboard(r.member.fit)}),T(7,"i",4),f(8," Copy to clipboard"),m(),p(9,"button",5),R("click",function(){return r.pushToEve(r.member.fit)}),H(10,Cee,2,0)(11,See,2,0),m(),p(12,"a",6),T(13,"i",7),f(14," View fit"),m()()(),T(15,"hr")(16,"i",8),f(17),T(18,"i",9),f(19),G(20,"daysAgo"),T(21,"span",10),G(22,"numericFormatter"),G(23,"shortPrice"),f(24," | Total: "),T(25,"span",10),G(26,"numericFormatter"),G(27,"shortPrice"),T(28,"hr")(29,"fit-radial",11),m()()),e&2&&(v(4),Nd("Fit ",r.index+1,": ",r.member.fit==null?null:r.member.fit.shipName,", ",r.member.fit==null?null:r.member.fit.name),v(5),b("ewbTooltip",r.getPushToEveTooltip())("disabled",r.pushToEveDisabled||r.pushToEveLoading),v(),W(r.pushToEveLoading?11:10),v(2),b("routerLink",te(34,xee,r.member.fit==null?null:r.member.fit.id)),v(5),V(" ",r.member.fit==null?null:r.member.fit.characterName," \u2022 "),v(2),Nd(" ",Ar(20,18,r.member.fit==null?null:r.member.fit.uploadedAt)," \u2022 Needed amount: ",r.member.amount," \u2022 Role: ",r.member.role," \u2022 Fit price: "),v(2),b("ewbTooltip",Q("",ee(22,20,r.member.fit.priceWithHull," ",0)," ISK"))("innerHtml",Ne(23,24,r.member.fit.priceWithHull,""),ke),v(4),b("ewbTooltip",Q("",ee(26,27,(r.member.fit.priceWithHull??1)*r.member.amount," ",0)," ISK"))("innerHtml",Ne(27,31,(r.member.fit.priceWithHull??1)*r.member.amount,""),ke),v(4),b("fit",r.member.fit))},dependencies:[zr,$e,Pe,_a,Wt,At],encapsulation:2})};var yc=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["fleet-statistics"]],decls:4,vars:0,consts:[[1,"card"],[1,"card-body"],[1,"py-5","text-center","text-muted"]],template:function(e,r){e&1&&(Y(0,"div",0)(1,"div",1)(2,"div",2),f(3,"Fleet statistics will be shown here.."),B()()())},encapsulation:2})};function wee(i,t){i&1&&T(0,"overlay-loader")}function Tee(i,t){i&1&&T(0,"overlay-loader")}function Eee(i,t){i&1&&T(0,"overlay-loader")}function kee(i,t){if(i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span",5),f(6,"Loading fleet..."),m()()()()(),p(7,"div",6)(8,"div",2)(9,"div",3),M(10,wee,1,0,"overlay-loader",7),p(11,"div",8),f(12,"Loading fleet.."),m()()()(),p(13,"div",9)(14,"div",2)(15,"div",3),M(16,Tee,1,0,"overlay-loader",7),p(17,"div",8),f(18,"Loading fleet.."),m()()()(),p(19,"div",6)(20,"div",2)(21,"div",3),M(22,Eee,1,0,"overlay-loader",7),p(23,"div",8),f(24,"Loading fleet.."),m()()()()()),i&2){let e=S();v(10),b("ngIf",e.isLoading),v(6),b("ngIf",e.isLoading),v(6),b("ngIf",e.isLoading)}}function Iee(i,t){if(i&1&&T(0,"fleet-fit",17),i&2){let e=t.$implicit,r=t.$index;b("member",e)("index",r)}}function Dee(i,t){i&1&&T(0,"overlay-loader")}function Mee(i,t){if(i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span",5),f(6),m()()()()(),p(7,"div",6)(8,"div",10)(9,"div",11),T(10,"img",12),p(11,"h5",13)(12,"a",14),f(13),m()(),p(14,"div",15)(15,"a",16),f(16,"zKillboard"),m()()()(),p(17,"div",10)(18,"div",2)(19,"div",3)(20,"h5"),f(21,"Fleet description"),m(),p(22,"markdown"),f(23),m()()()()(),p(24,"div",9),oe(25,Iee,1,2,"fleet-fit",17,Te),m(),p(27,"div",6),M(28,Dee,1,0,"overlay-loader",7),T(29,"fleet-statistics"),m()()),i&2){let e=S();v(6),$(e.fleet==null?null:e.fleet.name),v(4),b("src",Q("https://images.evetech.net/characters/",e.fleet==null?null:e.fleet.characterId,"/portrait?size=256"),re)("alt",De(e.fleet==null?null:e.fleet.characterName)),v(2),b("routerLink",Q("/u/",e.fleet==null?null:e.fleet.characterSlug)),v(),$(e.fleet==null?null:e.fleet.characterName),v(2),b("href",Q("https://zkillboard.com/character/",e.fleet==null?null:e.fleet.characterId,"/"),re),v(8),$(e.fleet==null?null:e.fleet.description),v(2),ae(e.fleet==null?null:e.fleet.members),v(3),b("ngIf",e.isLoading)}}var Nf=class i{constructor(t,e){this.fleetClient=t;this.clipboard=e}fleetId;isLoading=!0;fleetNotFound=!1;fleet;ngOnInit(){this.fleetClient.getFleetById(this.fleetId).subscribe(t=>{console.log(t),t.success?this.fleet=t.result:this.fleetNotFound=!1,this.isLoading=!1})}static \u0275fac=function(e){return new(e||i)(N(Wi),N(Ki))};static \u0275cmp=K({type:i,selectors:[["app-fleet-detail"]],inputs:{fleetId:"fleetId"},decls:2,vars:1,consts:[[1,"row"],[1,"col-12","mb-4"],[1,"card"],[1,"card-body"],[1,"d-flex","justify-content-between","align-items-center"],[1,"fit-title"],[1,"col-12","col-md-4","col-lg-3"],[4,"ngIf"],[1,"py-5","text-center","text-muted"],[1,"col"],[1,"card","mb-3"],[1,"card-body","character-profile","text-center"],[1,"border","border-2","border-white","rounded-circle",3,"src","alt"],[1,"mb-0"],[1,"text-dark","mb-1","d-inline-block",3,"routerLink"],[1,"mt-1"],["target","_blank","rel","nofollow",1,"text-muted",3,"href"],[3,"member","index"]],template:function(e,r){e&1&&H(0,kee,25,3,"div",0)(1,Mee,30,12,"div",0),e&2&&W(r.isLoading?0:1)},dependencies:[ft,ge,$e,Cn,bc,yc],encapsulation:2})};var Pee=()=>[],Fee=i=>["/fleet",i];function Ree(i,t){i&1&&(p(0,"div",0),f(1," Loading user... "),m())}function Lee(i,t){if(i&1&&(p(0,"a",12),f(1),m()),i&2){let e=t.$implicit;b("routerLink",te(2,Fee,e.id)),v(),$(e.name)}
1814}function Oee(i,t){if(i&1&&(p(0,"div",8)(1,"div",9)(2,"span",10),f(3,"Previously promoted fleets"),m()(),p(4,"div",11),oe(5,Lee,2,4,"a",12,Te),m()()),i&2){let e=S(2);v(5),ae(e.previouslyPromotedFleets)}}function Aee(i,t){i&1&&T(0,"overlay-loader")}function Bee(i,t){if(i&1&&(p(0,"div",6)(1,"div",9),M(2,Aee,1,0,"overlay-loader",13),p(3,"div",14),f(4,"Loading fleet..."),m()()()),i&2){let e=S(2);v(2),b("ngIf",e.isLoading)}}function Nee(i,t){if(i&1&&T(0,"fleet-fit",15),i&2){let e=t.$implicit,r=t.$index;b("member",e)("index",r)}}function Vee(i,t){if(i&1&&oe(0,Nee,1,2,"fleet-fit",15,Te),i&2){let e=S(2);ae(e.fleet==null?null:e.fleet.members)}}function zee(i,t){i&1&&T(0,"overlay-loader")}function Uee(i,t){if(i&1&&(p(0,"div",6)(1,"div",9),M(2,zee,1,0,"overlay-loader",13),p(3,"div",14),f(4,"Loading fleet..."),m()()()),i&2){let e=S(2);v(2),b("ngIf",e.isLoading)}}function Hee(i,t){i&1&&T(0,"fleet-statistics")}function Wee(i,t){if(i&1&&(p(0,"div",1)(1,"div",2),T(2,"profile-menu",3),M(3,Oee,7,0,"div",4),m(),p(4,"div",5),H(5,Bee,5,1,"div",6)(6,Vee,2,0),m(),p(7,"div",7),H(8,Uee,5,1,"div",6)(9,Hee,1,0,"fleet-statistics"),m()()),i&2){let e=S();v(2),b("profile",e.profile),v(),b("ngIf",(e.previouslyPromotedFleets??be(4,Pee)).length>0),v(2),W(e.isLoading?5:6),v(3),W(e.isLoading?8:9)}}function Gee(i,t){i&1&&T(0,"page-not-found")}var Vf=class i extends Pa{fleet;previouslyPromotedFleets=[];constructor(t,e,r,n){super(t,e,r,n)}characterLoaded(){this.slug!==void 0&&(this.isLoading=!0,this.fleetClient.getPromotedFleet(this.slug).subscribe(t=>{t.success?this.fleet=t.result:this.characterNotFound=!0,this.isLoading=!1}),this.fleetClient.getPreviouslyPromotedFits(this.slug).subscribe(t=>{t.success&&(this.previouslyPromotedFleets=t.result)}))}static \u0275fac=function(e){return new(e||i)(N(Br),N(it),N(Wi),N(Xt))};static \u0275cmp=K({type:i,selectors:[["app-profile-promoted-fleet"]],features:[Ke],decls:3,vars:1,consts:[[1,"alert","alert-info"],[1,"row"],[1,"d-none","d-lg-block","col-12","col-lg-3"],[3,"profile"],["class","card border-0 shadow-sm mt-3",4,"ngIf"],[1,"col"],[1,"card"],[1,"col-12","col-lg-3","mt-3","mt-lg-0"],[1,"card","border-0","shadow-sm","mt-3"],[1,"card-body"],[1,"h6"],[1,"list-group","dark-group"],[1,"list-group-item",3,"routerLink"],[4,"ngIf"],[1,"p-5","text-center","text-muted"],[3,"member","index"]],template:function(e,r){e&1&&H(0,Ree,2,0,"div",0)(1,Wee,10,5,"div",1)(2,Gee,1,0,"page-not-found"),e&2&&W(r.isCharacterLoaded?0:!r.isCharacterLoaded&&!r.characterNotFound?1:!r.isLoading&&r.characterNotFound?2:-1)},dependencies:[ge,wn,bo,bc,ft,yc,$e],encapsulation:2})};var zf=class i{constructor(t){this.fb=t;this.filterForm=this.fb.group({query:["",[]]})}OnFilterQuery=new he;filterForm;submitFilter(){let t=new Ql;t.searchQuery=this.filterForm.value.query,this.OnFilterQuery.emit(t)}static \u0275fac=function(e){return new(e||i)(N(cr))};static \u0275cmp=K({type:i,selectors:[["fleet-search-filter"]],outputs:{OnFilterQuery:"OnFilterQuery"},decls:11,vars:1,consts:[[3,"ngSubmit","formGroup"],[1,"card"],[1,"card-body"],["variant","in"],["pInputText","","formControlName","query","id","query",1,"w-100"],["for","query"],["type","submit",1,"mt-3","btn","btn-primary","btn-lg","w-100"]],template:function(e,r){e&1&&(p(0,"form",0),R("ngSubmit",function(){return r.submitFilter()}),p(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Basic filter"),m(),p(5,"p-floatlabel",3),T(6,"input",4),p(7,"label",5),f(8,"Query"),m()()()(),p(9,"button",6),f(10,"Filter results"),m()()),e&2&&b("formGroup",r.filterForm)},dependencies:[ui,lr,Ot,mt,qi,Yi,ji,$t,ni],encapsulation:2})};var op=i=>["/fleet",i];function qee(i,t){i&1&&(p(0,"tr")(1,"th"),f(2,"Name"),m(),p(3,"th"),f(4,"No. fits"),m(),p(5,"th"),f(6,"Used fits"),m(),p(7,"th"),f(8,"Uploader"),m(),p(9,"th"),f(10,"Posted on"),m()())}function jee(i,t){if(i&1&&T(0,"img",15),i&2){let e=t.$implicit;b("src",Q("https://images.evetech.net/types/",e.shipId,"/render?size=32"),re)("ewbTooltip",Ju("Fit: ",e.shipName,", ",e.name," | Amount: ",e.amount," | Role: ",e.role))}}function Yee(i,t){if(i&1&&(p(0,"tr",11)(1,"td",12)(2,"div",13)(3,"a",14),f(4),m()()(),p(5,"td",12)(6,"div",13)(7,"a",14),f(8),m()()(),p(9,"td",12)(10,"div",13)(11,"a",14),oe(12,jee,1,7,"img",15,Te),m()()(),p(14,"td",12)(15,"div",13)(16,"a",14),f(17),m()()(),p(18,"td",12)(19,"div",13)(20,"a",14),f(21),G(22,"daysAgo"),m()()()()),i&2){let e=t.$implicit;v(3),b("routerLink",te(11,op,e.id)),v(),V(" ",e.name," "),v(3),b("routerLink",te(13,op,e.id)),v(),V(" ",e.memberCount," "),v(3),b("routerLink",te(15,op,e.id)),v(),ae(e.fits),v(4),b("routerLink",te(17,op,e.id)),v(),V(" ",e.uploader.name," "),v(3),b("routerLink",te(19,op,e.id)),v(),V(" ",Ar(22,9,e.dateAdded)," ")}}var Uf=class i{constructor(t){this.fleetClient=t;let e=new Ql;this.OnFilterQueryCallback(e)}hasResults=!1;isLoading=!1;results=[];skip=0;take=30;totalRecords=0;currentPage=1;totalPages=1;query;OnFilterQueryCallback(t){this.query=t,this.loadFleets(0,this.take)}onPageChange(t){this.skip=t.first,this.take=t.rows,this.currentPage=t.page+1,this.loadFleets(this.skip,this.take)}loadFleets(t,e){this.query!==void 0&&(this.isLoading=!0,t==0&&(this.currentPage=1),this.query.skip=t,this.query.take=e,this.fleetClient.postSearchFleets(this.query).subscribe(r=>{r.success&&(window.scrollTo(0,0),this.hasResults=!0,this.results=r.results??[],this.totalRecords=r.totalResultCount??0,this.totalPages=Math.ceil(this.totalRecords/this.take)==0?1:Math.ceil(this.totalRecords/this.take)),this.isLoading=!1}))}static \u0275fac=function(e){return new(e||i)(N(Wi))};static \u0275cmp=K({type:i,selectors:[["app-fleet-search"]],decls:17,vars:5,consts:[["header",""],["body",""],["paginator",""],[1,"row"],[1,"col","col-xxl-2","col-xl-2","col-lg-3","col-md-4"],[3,"OnFilterQuery"],[1,"col"],[1,"card"],[1,"card-body"],["stripedRows","","rowHover","",3,"value"],["currentPageReportTemplate","Displaying page {currentPage} of {totalPages}",3,"onPageChange","showCurrentPageReport","rows","totalRecords","pageLinkSize"],[1,"curs
1814or-pointer"],[1,"p-0"],[1,"p-3","position-relative"],["target","_blank",1,"stretched-link",3,"routerLink"],[1,"img-24","rounded-circle","border","border-1","border-white","me-2",3,"src","ewbTooltip"]],template:function(e,r){e&1&&(p(0,"div",3)(1,"div",4)(2,"fleet-search-filter",5),R("OnFilterQuery",function(o){return r.OnFilterQueryCallback(o)}),m()(),p(3,"div",6)(4,"div",7)(5,"div",8)(6,"h5"),f(7,"Fleet Browser - Results"),m(),p(8,"p-table",9),M(9,qee,11,0,"ng-template",null,0,de)(11,Yee,23,21,"ng-template",null,1,de),m(),p(13,"div",3)(14,"div",6)(15,"p-paginator",10,2),R("onPageChange",function(o){return r.onPageChange(o)}),m()()()()()()()),e&2&&(v(8),b("value",r.results),v(7),b("showCurrentPageReport",!0)("rows",r.take)("totalRecords",r.totalRecords)("pageLinkSize",6))},dependencies:[zf,Vr,xt,Dt,$e,Pe,_a],encapsulation:2})};var Hf=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["app-partners"]],decls:34,vars:0,consts:[[1,"container"],[1,"row"],[1,"col"],[1,"card","shadow-sm"],[1,"card-body"],["routerLink","/team"],[1,"mt-3","row","row-cols-1","row-cols-md-3"],[1,"text-center","mb-2"],["href","https://e.eveworkbench.com/mdstore","target","_blank","rel","noreferrer external"],["src","https://store.markeedragon.com/themes/thegame/images/logo.png","height","75"],["href","https://e.eveworkbench.com/mdstore","target","_blank"],[1,"text-center","mt-4"],["href","https://e.eveworkbench.com/mdstore","target","_blank","rel","noreferrer external",1,"btn","btn-secondary"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h5"),f(6,"EVE Workbench Partners"),m(),p(7,"p"),f(8,"EVE Workbench is a tool created for and by EVE Online players. It is actively maintained by a "),p(9,"a",5),f(10,"team"),m(),f(11," of three developers and as most community sites we have some partners we work with."),m()()()()(),p(12,"div",6)(13,"div",2)(14,"div",3)(15,"div",4)(16,"h5"),f(17,"Markee Dragon Game Codes"),m(),p(18,"div",7)(19,"a",8),T(20,"img",9),m()(),p(21,"p"),f(22,"MarkeeDragon is one of our first partners. He is a long time streamer for EVE Online and a business partner of CCP for more than 15 years providing game codes to players with his "),p(23,"a",10),f(24,"webshop"),m(),f(25,"."),m(),p(26,"p"),f(27,"As part of our partnership you will get a discount of 3% when you use the following discount code "),p(28,"strong"),f(29,"ewb"),m(),f(30," at the checkout and at the same time you also support this website!"),m(),p(31,"div",11)(32,"a",12),f(33," Go to MarkeeDragon Store "),m()()()()()()())},dependencies:[$e],encapsulation:2})};var Wf=()=>[],Kee=(i,t)=>t.title;function $ee(i,t){if(i&1&&(p(0,"span",14),f(1),m()),i&2){let e=t.$implicit;Rt("reached",e.isReached),v(),kt(" ",e.percentage,"% - ",e.title," ")}}function Zee(i,t){if(i&1){let e=J();p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div")(4,"h6",3),f(5),m(),p(6,"div",4),f(7),m()(),p(8,"button",5),R("click",function(){L(e);let n=S(2);return O(n.openDetails())}),f(9,"Details"),m()(),T(10,"p-progressbar",6),p(11,"div",7)(12,"span"),f(13),G(14,"currency"),m(),p(15,"span",8),f(16),G(17,"currency"),m()(),p(18,"div",9),oe(19,$ee,2,4,"span",10,Kee),m(),p(21,"div",11),f(22),G(23,"date"),G(24,"date"),m(),p(25,"div",12),f(26),m()()(),p(27,"ewb-donation-tracker-details-dialog",13),Je("visibleChange",function(n){L(e);let o=S(2);return Xe(o.showDetailsDialog,n)||(o.showDetailsDialog=n),O(n)}),m()}if(i&2){let e=S(),r=S();v(5),$(e.header),v(2),$(e.description),v(3),b("value",e.progressPercentage)("showValue",!1),v(3),V(" ",Hv(14,18,e.currentAmount,e.currencyCode,"symbol","1.2-2")," "),v(3),V(" Goal: ",Hv(17,23,e.monthlyGoalAmount,e.currencyCode,"symbol","1.2-2")," "),v(3),ae(e.communityGoals??be(34,Wf)),v(3),kt(" Period: ",Ne(23,28,r.toDate(e.periodStartUtc),"yyyy-MM-dd")," to ",Ne(24,31,r.toDate(e.periodEndUtc),"yyyy-MM-dd")," (UTC) "),v(4),kt(" Goals reached this month: ",r.reachedGoalsCount()," / ",(e.communityGoals??be(35,Wf)).length," "),v(),Qe("visible",r.showDetailsDialog),b("title",e.detailsTitle??"Donation goals")("detailsText",e.detailsText??"")("currencyCode",e.currencyCode??"EUR")("periodStartUtc",r.toDate(e.periodStartUtc))("periodEndUtc",r.toDate(e.periodEndUtc))("goals",e.communityGoals??be(36,Wf))("sourceTotals",e.sourceTotals??be(37,Wf))}}function Qee(i,t){i&1&&H(0,Zee,28,38),i&2&&W(t.enabled?0:-1)}var Gf=class i{donationTrackerService=ie(Cm);
1814showDetailsDialog=!1;tracker=this.donationTrackerService.tracker;reachedGoalsCount=li(()=>this.tracker()?.communityGoals?.filter(t=>t.isReached).length??0);openDetails(){this.showDetailsDialog=!0}toDate(t){return t?t.toJSDate():null}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["ewb-donation-tracker"]],decls:1,vars:1,consts:[[1,"card"],[1,"card-body","py-3","px-3"],[1,"d-flex","justify-content-between","align-items-start","gap-2","mb-2"],[1,"mb-1"],[1,"small","text-muted"],["type","button",1,"btn","btn-sm","btn-primary",3,"click"],[3,"value","showValue"],[1,"d-flex","justify-content-between","align-items-center","mt-2","mb-2","small"],[1,"text-muted"],[1,"goal-chips"],[1,"goal-chip",3,"reached"],[1,"small","text-muted","mt-2"],[1,"small","mt-1"],[3,"visibleChange","visible","title","detailsText","currencyCode","periodStartUtc","periodEndUtc","goals","sourceTotals"],[1,"goal-chip"]],template:function(e,r){if(e&1&&H(0,Qee,1,1),e&2){let n;W((n=r.tracker())?0:-1,n)}},dependencies:[oE,nE,kw,em],styles:[".donation-tracker-card[_ngcontent-%COMP%]{border:1px solid rgba(255,255,255,.15)}.goal-chips[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.goal-chip[_ngcontent-%COMP%]{font-size:.75rem;border-radius:999px;padding:.25rem .5rem;border:1px solid rgba(255,255,255,.2);background:#ffffff0a}.goal-chip.reached[_ngcontent-%COMP%]{border-color:#198754cc;background:#19875426}"]})};var qf=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["app-support-us"]],decls:128,vars:0,consts:[[1,"container"],[1,"row"],[1,"col"],[1,"card"],[1,"card-body"],[1,"mb-3"],[1,"row","mt-4"],[1,"row","row-cols-1","row-cols-md-3"],[1,"col","mt-4"],[1,"card","h-100"],[1,"text-center","mb-2"],["fill","#fff","height","75","viewBox","0 0 130 51","preserveAspectRatio","xMidYMid meet","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink",1,""],["clip-path","url(#clip0)"],["d","M0 18.1038H37.2437V11.7624H0V18.1038ZM0 8.53815H6.73212C6.73212 8.53815 6.73212 6.95208 6.73212 6.36165C7.68145 6.36165 37.2437 6.36165 37.2437 6.36165V0.0144653H0V8.53815ZM6.73212 21.2991H0V29.8459H37.2437V23.5016C37.2437 23.5016 7.68145 23.5016 6.73212 23.5016C6.73212 22.9083 6.73212 21.2991 6.73212 21.2991ZM91.257 21.2991H84.5278V29.8459H121.769V23.5016C121.769 23.5016 92.2035 23.5016 91.2541 23.5016C91.257 22.9083 91.257 21.2991 91.257 21.2991ZM60.893 22.8215C60.0942 21.4409 47.7211 0.0144653 47.7211 0.0144653H40.3985L60.893 35.6779L81.373 0.0144653H74.0447C74.0447 0.0144653 61.6889 21.4409 60.893 22.8215ZM84.5307 0.0144653V8.53815H91.2599C91.2599 8.53815 91.2599 6.95208 91.2599 6.36165C92.2092 6.36165 121.774 6.36165 121.774 6.36165V0.0144653H84.5307ZM84.5307 18.1038H121.772V11.7624H84.5307V18.1038Z","fill","#fff"],["d","M24.5233 45.8484C24.5233 45.3535 24.6159 45.0149 24.8041 44.8296C24.9893 44.6473 25.3482 44.5547 25.8807 44.5547H29.9009C30.4364 44.5547 30.7981 44.6444 30.9863 44.8296C31.1715 45.012 31.267 45.3506 31.267 45.8484V48.7427C31.267 49.2463 31.1715 49.5879 30.9863 49.7673C30.7981 49.9496 30.4364 50.0423 29.9009 50.0423H25.8836C25.3482 50.0423 24.9922 49.9525 24.807 49.7673C24.6188 49.5879 24.5262 49.2463 24.5262 48.7427V45.8484H24.5233ZM25.7997 49.009H29.9935V45.533H25.7997V49.009Z","fill","#fff"],["d","M39.5099 50.0394V44.5547H40.3811L44.245 47.7876C44.3753 47.8976 44.4939 47.996 44.5923 48.0886C44.6936 48.187 44.7862 48.2825 44.8702 48.3809C44.8499 48.077 44.8354 47.8571 44.8297 47.7297C44.8239 47.5995 44.8181 47.5011 44.8181 47.4316V44.5547H45.9613V50.0394H45.0901L41.0613 46.6502C40.9629 46.5633 40.879 46.4852 40.8066 46.4157C40.7342 46.3463 40.6677 46.2768 40.604 46.2015C40.6214 46.3723 40.6329 46.5315 40.6445 46.682C40.6503 46.8325 40.6532 46.9627 40.6532 47.0727V50.0365H39.5099V50.0394Z","fill","#fff"],["d","M54.3229 50.0394V44.5547H55.5993V49.0061H59.7121V50.0365H54.3229V50.0394Z","fill","#fff"],["d","M67.1447 50.0394V44.5547H68.421V50.0394H67.1447Z","fill","#fff"],["d","M76.7769 50.0394V44.5547H77.6509L81.5148 47.7876C81.648 47.8976 81.7637 47.996 81.865 48.0886C81.9663 48.187 82.0589 48.2825 82.14 48.3809C82.1197 48.077 82.1052 47.8571 82.0995 47.7297C82.0908 47.5995 82.0879 47.5011 82.0879 47.4316V44.5547H83.2282V50.0394H82.357L78.3282 46.6502C78.2298 46.5633 78.1459 46.4852 78.0706 46.4157C78.0011 46.3463 77.9317 46.2768 77.8709 46.2015C77.8883 46.3723 77.9027 46.5315 77.9085 46.682C77.9201 46.8325 77.923 46.9627 77.923 47.0727V50.0365H76.7769V50.0394Z","fill","#fff"],["d","M91.5869 50.0394V44.5547H97.1961V45.4895H92.8
1814662V46.7109H95.3871V47.6458H92.8662V49.0032H97.2481V50.0336H91.5869V50.0394Z","fill","#fff"],["d","M130 2.28649C130 3.57156 129.004 4.57298 127.713 4.57298C126.423 4.57298 125.427 3.57156 125.427 2.28649C125.427 1.00142 126.423 0 127.713 0C129.004 0 130 1.00142 130 2.28649ZM125.783 2.28649C125.783 3.38053 126.605 4.24882 127.713 4.24882C128.819 4.24882 129.644 3.38343 129.644 2.28649C129.644 1.19245 128.819 0.327055 127.713 0.327055C126.608 0.324161 125.783 1.19245 125.783 2.28649Z","fill","#fff"],["d","M128.055 2.39645C128.402 2.33567 128.7 2.13307 128.7 1.67867C128.7 1.21848 128.443 0.966675 127.864 0.966675H126.877V3.5368H127.195V2.39645H127.728L128.452 3.5397H128.822L128.055 2.39645ZM127.612 2.12729H127.195V1.23584H127.774C128.087 1.23584 128.385 1.31978 128.385 1.67867C128.385 2.11571 128 2.12729 127.612 2.12729Z","fill","#fff"],["id","clip0"],["width","130","height","50.0394","fill","white"],[1,"buttons","text-center","mt-4"],["href","https://store.eveonline.com/","target","_blank","rel","noreferrer external",1,"btn","btn-primary"],["src","https://store.markeedragon.com/themes/thegame/images/logo.png","height","75"],["href","https://e.eveworkbench.com/mdstore","target","_blank","rel","noreferrer external",1,"btn","btn-primary"],["xmlns","http://www.w3.org/2000/svg","width","292","height","80","viewBox","0 0 292 104",2,"height","75px","color","white"],["data-fill","1","fill-rule","evenodd","fill","#ffffff","d","M284.367244,104 L284.367244,1.42108547e-14 L291.998128,1.42108547e-14 L291.998128,104 L284.367244,104 Z M241.879569,34.6685484 L249.462761,34.6685484 L249.462761,67.6406851 L241.502892,67.6406851 L229.631221,46.443665 L229.631221,67.6406851 L222.000337,67.6406851 L222.000337,34.6685484 L229.960206,34.6685484 L241.879569,56.1472494 L241.879569,34.6685484 Z M191.902143,33.8203912 C202.828713,33.8203912 209.329565,42.1108994 209.329565,51.1546654 C209.329565,60.1983341 202.828713,68.4889396 191.902143,68.4889396 C180.925934,68.4889396 174.425082,60.1983341 174.425082,51.1546654 C174.425082,42.1108994 180.925934,33.8203912 191.902143,33.8203912 Z M201.558521,51.1546654 C201.558521,45.7379055 197.883238,40.6977258 191.902143,40.6977258 C185.872382,40.6977258 182.245765,45.7379055 182.245765,51.1546654 C182.245765,56.5714254 185.872382,61.6115077 191.902143,61.6115077 C197.883238,61.6115077 201.558521,56.5714254 201.558521,51.1546654 Z M68.6789331,41.2626448 L68.6789331,34.6685484 L91.2399738,34.6685484 L91.2399738,41.2626448 L83.7501245,41.2626448 L83.7501245,67.6406851 L76.1195321,67.6406851 L76.1195321,41.2626448 L68.6789331,41.2626448 Z M149.555601,48.2809172 L162.037548,48.2809172 L162.037548,54.2642508 L149.555601,54.2642508 L149.555601,61.516511 L162.037548,61.516511 L162.037548,67.6406851 L141.924717,67.6406851 L141.924717,34.6685484 L162.037548,34.6685484 L162.037548,40.7927225 L149.555601,40.7927225 L149.555601,48.2809172 Z M116.95985,34.6685484 C124.259803,34.6685484 128.970707,40.1803051 128.970707,46.5860627 C128.970707,51.2021638 126.520842,55.2990922 122.422162,57.2313411 L129.0184,67.6406851 L120.16307,67.6406851 L114.320187,58.5019223 L110.74029,58.5019223 L110.74029,67.6406851 L103.110379,67.6406851 L103.110379,34.6685484 L116.95985,34.6685484 Z M121.245409,46.5860627 C121.245409,43.5239757 119.172223,40.8860646 115.969003,40.8860646 L110.74029,40.8860646 L110.74029,52.2845035 L115.969003,52.2845035 C119.172223,52.2845035 121.245409,49.6481497 121.245409,46.5860627 Z M53.7468301,63.6370987 L42.0175573,63.6370987 L40.7452241,67.6406851 L32.5954591,67.6406851 L44.3722302,34.6685484 L51.3904052,34.6685484 L63.3079195,67.6406851 L55.0174113,67.6406851 L53.7468301,63.6370987 Z M47.9042396,44.088992 L43.8531549,57.6554197 L51.8603276,57.6554197 L47.9042396,44.088992 Z M13.8006102,34.6685484 C21.1021207,34.6685484 25.8131212,40.1803051 25.8131212,46.5860627 C25.8131212,52.9918203 21.1021207,58.5019223 13.8006102,58.5019223 L7.63059242,58.5019223 L7.63059242,67.6406851 L0,67.6406851 L0,34.6685484 L13.8006102,34.6685484 Z M18.1350304,46.5860627 C18.1350304,43.5239757 16.061941,40.8860646 12.8590136,40.8860646 L7.63059242,40.8860646 L7.63059242,52.2845035 L12.8590136,52.2845035 C16.061941,52.2845035 18.1350304,49.6481497 18.1350304,46.5860627 Z"],[1,"small"],["href","https://www.patreon.com/eveworkbench","target","_blank","rel","noreferrer external",1,"btn","btn-primary"],["href","https://paypal.me/eveworkbench","target","_blank","rel","noreferrer external",1,"btn","btn-primary"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"h5"),f(7,"Support us"),m()(),p(8,"p"),f(9,`EVE Workbench is a free tool brought you by EVE Online players for EVE Online players. We offer our tooling for free to you (and all the other visitors) to use, but as all other websites in the cloud its not free for us. But when we started we made it very clear to each other that we don't want a "paywall" to use our services and if someone wants to support us it should be because they like it!`),m(),p(10,"p"),f(11,"So, if you really like EVE Workbench please consider to supp
1814ort us. This will motivate us even more to continue the development of this nice project."),m()()()()(),p(12,"div",6)(13,"div",2),T(14,"ewb-donation-tracker"),m()(),p(15,"div",7)(16,"div",8)(17,"div",9)(18,"div",4)(19,"div",5)(20,"h5"),f(21,"EVE Online Store"),m()(),p(22,"div",10),Ft(),p(23,"svg",11)(24,"g",12),T(25,"path",13)(26,"path",14)(27,"path",15)(28,"path",16)(29,"path",17)(30,"path",18)(31,"path",19)(32,"path",20)(33,"path",21),m(),p(34,"defs")(35,"clipPath",22),T(36,"rect",23),m()()()(),f(37," Want to support EVE Workbench through the official EVE Online store? Make sure to enter the creator code "),_s(),p(38,"u")(39,"strong"),f(40,"ewb"),m()(),f(41," during checkout! "),p(42,"div",24)(43,"a",25),f(44," Warp to the EVE Online store "),m()()()()(),p(45,"div",8)(46,"div",9)(47,"div",4)(48,"div",5)(49,"h5"),f(50,"Markee Dragon Game Codes"),m()(),p(51,"div",10),T(52,"img",26),m(),f(53," As part of our partnership you will get a discount of 3% when you use the following discount code "),p(54,"b"),f(55,"ewb\xA0"),m(),f(56,"at the checkout and at the same time you also support this website! "),p(57,"div",24)(58,"a",27),f(59," Go to MarkeeDragon Store "),m()()()()(),p(60,"div",8)(61,"div",9)(62,"div",4)(63,"div",5)(64,"h5"),f(65,"Patreon"),m()(),p(66,"div",10),Ft(),p(67,"svg",28)(68,"title"),f(69,"Patreon wordmark"),m(),p(70,"g"),T(71,"path",29),m()()(),f(72," If you want to support us directly you can become a Patreon backer. This gives you the opportunity to donate a small amount of money to keep our services alive. "),_s(),T(73,"br"),p(74,"i",30),f(75,"Currently we don't have any perks. Might be added in the future"),m(),p(76,"div",24)(77,"a",31),f(78," Go to Patreon "),m()()()()(),p(79,"div",8)(80,"div",9)(81,"div",4)(82,"div",5)(83,"h5"),f(84,"PayPal"),m()(),f(85," Rather support us directly without a subscription? This is also possible through PayPal!"),T(86,"br"),f(87," You can send your donation to "),p(88,"strong"),f(89,"[email protected]"),m(),f(90," or by clicking the button below."),T(91,"br"),p(92,"small"),f(93,"If you pay directly through PayPal please select its for Friends or Family"),m(),p(94,"div",24)(95,"a",32),f(96," Go to PayPal.me "),m()()()()(),p(97,"div",8)(98,"div",9)(99,"div",4)(100,"div",5)(101,"h5"),f(102,"In-game"),m()(),p(103,"div",10),Ft(),p(104,"svg",11)(105,"g",12),T(106,"path",13)(107,"path",14)(108,"path",15)(109,"path",16)(110,"path",17)(111,"path",18)(112,"path",19)(113,"path",20)(114,"path",21),m(),p(115,"defs")(116,"clipPath",22),T(117,"rect",23),m()()()(),f(118," You can also support us in EVE Online by sending ISK to our corporation "),_s(),p(119,"strong"),f(120,"EVE Workbench [EWB-C]"),m(),f(121," or by sending it to "),p(122,"strong"),f(123,"Lionear Maricadie"),m(),f(124,". "),T(125,"br")(126,"br"),f(127," Please give the description that its a donation to keep EVE Workbench running so we know why we got the donation. "),m()()()()())},dependencies:[Gf],encapsulation:2})};var jf=class i{constructor(t,e){this.bannerService=t;this.bannerClient=e;this.bannerService.OnBannersLoaded.subscribe(r=>{this.ngOnInit()})}id="";ngOnInit(){let t=this.bannerService.getBannerById(this.id);t!=null&&t.url&&(this.bannerClient.getBannerRedirectUri(this.id).subscribe(e=>{}),window.open(t.url,"_self"))}static \u0275fac=function(e){return new(e||i)(N(aE),N(Uw))};static \u0275cmp=K({type:i,selectors:[["app-banner-redirect"]],inputs:{id:"id"},decls:9,vars:0,consts:[[1,"container","mb-5","mt-5"],[1,"row","justify-content-center"],[1,"col-8"],[1,"card"],[1,"card-body"]],template:function(e,r){e&1&&(Y(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"h5"),f(6,"Please wait for redirect"),B(),Y(7,"p"),f(8,"You will be redirected to the URL behind the clicked banner shortly..."),B()()()()()())},encapsulation:2})};var Yf=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["app-team"]],decls:78,vars:0,consts:[[1,"container"],[1,"row"],[1,"col","mb-4","mt-3"],[1,"card","border-0","shadow"],[1,"card-body"],[2,"font-size","1rem"],[2,"font-family",'Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',"font-size","1rem"],[1,"col-12","mt-2","mb-2"],[1,"col-xl-3","col-md-6","mb-4"],["src","https://images.evetech.net/characters/96474782/portrait?size=256","alt","...",1,"card-img-top"],[1,"card-body","text-center"],[1,"card-title","mb-0"],[1,"card-text","text-white-50"],["src","https://images.evetech.net/characters/883434905/portrait?size=256","alt","...",1,"card-img-top"],["src","https://images.evetech.net/characters/90250177/portrait?size=256","alt","...",1,"card-img-top"],["src","https://images.evetech.net/characters/97244414/portrait?size=256","alt","...",1,"card-img-top"],["src","https://images.evetech.net/characters/92970319/portrait?size=256","alt","...",1,"card-img-top"]],template:function(e,r){e&1&&(Y(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),f(5," The team behind EVE Workbench consists of three developers who build this tool you are currently using."),zi(6,"br"),Y(7,"span",5),f(8,"This team is responsible for the websites "),B(),Y(9,"b",5),f(10,"EVE Workbench"),B(),Y(11,"span",5),f(12,", "),B(),Y(13,"b",5),f(14,"EVE Wreckbench"),B(),Y(15,"span",5),f(16,", "),B(),Y(17,"b",5),f(18,"Abyss Tracker"),B(),Y(19,"span",5),f(20," and "),B(),Y(21,"b",5),f(22,"EVE Journal"),B(),Y(23,"span",5),f(24,"\xA0."),B()(),Y(25,"div",4)(26,"span",6),f(27,"Meet the team below!"),B()()()()(),Y(28,"div",1)(29,"div",7)(30,"h2"),f(31,"Development Team"),B()()(),Y(32,"div",1)(33,"div",8)(34,"div",3),zi(35,"img",9),Y(36,"div",10)(37,"h5",11),f(38,"Lionear Maricadie"),B(),Y(39,"div",12),f(40,"Founder / Developer"),B()()()(),Y(41,"div",8)(42,"div",3),zi(43,"img",13),Y(44,"div",10)(45,"h5",11),f(46,"RaymondKrah"),B(),Y(47,"div",12),f(48,"Founder / Developer"),B()()()(),Y(49,"div",8)(50,"div",3),zi(51,"img",14),Y(52,"div",10)(53,"h5",11),f(54,"Jithran"),B(),Y(55,"div",12),f(56,"Developer"),B()()()()(),Y(57,"div",1)(58,"div",7)(59,"h2"),f(60,"Moderation Team"),B()()(),Y(61,"div",1)(62,"div",8)(63,"div",3),zi(64,"img",15),Y(65,"div",10)(66,"h5",11),f(67,"Trina Kata"),B(),Y(68,"div",12),f(69,"Moderator"),B()()()(),Y(70,"div",8)(71,"div",3),zi(72,"img",16),Y(73,"div",10)(74,"h5",11),f(75,"Gardeline Keikira"),B(),Y(76,"div",12),f(77,"Moderator"),B()()()()()())},encapsulation:2})};var Kf=class i{static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["app-privacy"]],decls:318,vars:0,consts:[[1,"row","justify-content-center"],[1,"col-12","col-md-7"],[1,"card","shadow-sm"],[1,"card-body"],["href","https://www.privacypolicies.com/privacy-policy-generator/","target","_blank"],["href","https://preview.eveworkbench.com","rel","external nofollow noopener","target","_blank"],["href","https://www.privacypolicies.com/blog/privacy-policy-template/#Use_Of_Cookies_Log_Files_And_Tracking","target","_blank"]],template:function(e,r){e&1&&(Y(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h5"),f(5,"Privacy Policy"),B(),Y(6,"p"),f(7,"Last updated: April 11, 2025"),B(),Y(8,"p"),f(9,"This Privacy Policy describes Our policies and procedures on the collection, use and disclosure of Your information when You use the Service and tells You about Your privacy rights and how the law protects You."),B(),Y(10,"p"),f(11,"We use Your Personal data to provide and improve the Service. By using the Service, You agree to the collection and use of information in accordance with this Privacy Policy. This Privacy Policy has been created with the help of the "),Y(12,"a",4),f(13,"Privacy Policy Generator"),B(),f(14,"."),B(),Y(15,"h2"),f(16,"Interpretation and Definitions"),B(),Y(17,"h3"),f(18,"Interpretation"),B(),Y(19,"p"),f(20,"The words of which the initial letter is capitalized have meanings defined under the following conditions. The following definitions shall have the same meaning regardless of whether they appear in singular or in plural."),B(),Y(21,"h3"),f(22,"Definitions"),B(),Y(23,"p"),f(24,"For the purposes of this Privacy Policy:"),B(),Y(25,"ul")(26,"li")(27,"p")(28,"strong"),f(29,"Account"),B(),f(30," means a unique account created for You to access our Service or parts of our Service."),B()(),Y(31,"li")(32,"p")(33,"strong"),f(34,"Affiliate"),B(),f(35,' means an entity that controls, is controlled by or is under common control with a party, where "control" means ownership of 50% or more of the shares, equity interest or other securities entitled to vote for election of directors or other managing authority.'),B()(),Y(36,"li")(37,"p")(38,"strong"),f(39,"Company"),B(),f(40,' (referred to as either "the C
1814ompany", "We", "Us" or "Our" in this Agreement) refers to EVE Workbench.'),B()(),Y(41,"li")(42,"p")(43,"strong"),f(44,"Cookies"),B(),f(45," are small files that are placed on Your computer, mobile device or any other device by a website, containing the details of Your browsing history on that website among its many uses."),B()(),Y(46,"li")(47,"p")(48,"strong"),f(49,"Country"),B(),f(50," refers to: Netherlands"),B()(),Y(51,"li")(52,"p")(53,"strong"),f(54,"Device"),B(),f(55," means any device that can access the Service such as a computer, a cellphone or a digital tablet."),B()(),Y(56,"li")(57,"p")(58,"strong"),f(59,"Personal Data"),B(),f(60," is any information that relates to an identified or identifiable individual."),B()(),Y(61,"li")(62,"p")(63,"strong"),f(64,"Service"),B(),f(65," refers to the Website."),B()(),Y(66,"li")(67,"p")(68,"strong"),f(69,"Service Provider"),B(),f(70," means any natural or legal person who processes the data on behalf of the Company. It refers to third-party companies or individuals employed by the Company to facilitate the Service, to provide the Service on behalf of the Company, to perform services related to the Service or to assist the Company in analyzing how the Service is used."),B()(),Y(71,"li")(72,"p")(73,"strong"),f(74,"Usage Data"),B(),f(75," refers to data collected automatically, either generated by the use of the Service or from the Service infrastructure itself (for example, the duration of a page visit)."),B()(),Y(76,"li")(77,"p")(78,"strong"),f(79,"Website"),B(),f(80," refers to EVE Workbench, accessible from "),Y(81,"a",5),f(82,"https://preview.eveworkbench.com"),B()()(),Y(83,"li")(84,"p")(85,"strong"),f(86,"You"),B(),f(87," means the individual accessing or using the Service, or the company, or other legal entity on behalf of which such individual is accessing or using the Service, as applicable."),B()()(),Y(88,"h2"),f(89,"Collecting and Using Your Personal Data"),B(),Y(90,"h3"),f(91,"Types of Data Collected"),B(),Y(92,"h4"),f(93,"Personal Data"),B(),Y(94,"p"),f(95,"While using Our Service, We may ask You to provide Us with certain personally identifiable information that can be used to contact or identify You. Personally identifiable information may include, but is not limited to:"),B(),Y(96,"ul")(97,"li")(98,"p"),f(99,"Email address"),B()(),Y(100,"li")(101,"p"),f(102,"Usage Data"),B()()(),Y(103,"h4"),f(104,"Usage Data"),B(),Y(105,"p"),f(106,"Usage Data is collected automatically when using the Service."),B(),Y(107,"p"),f(108,"Usage Data may include information such as Your Device's Internet Protocol address (e.g. IP address), browser type, browser version, the pages of our Service that You visit, the time and date of Your visit, the time spent on those pages, unique device identifiers and other diagnostic data."),B(),Y(109,"p"),f(110,"When You access the Service by or through a mobile device, We may collect certain information automatically, including, but not limited to, the type of mobile device You use, Your mobile device unique ID, the IP address of Your mobile device, Your mobile operating system, the type of mobile Internet browser You use, unique device identifiers and other diagnostic data."),B(),Y(111,"p"),f(112,"We may also collect information that Your browser sends whenever You visit our Service or when You access the Service by or through a mobile device."),B(),Y(113,"h4"),f(114,"Tracking Technologies and Cookies"),B(),Y(115,"p"),f(116,"We use Cookies and similar tracking technologies to track the activity on Our Service and store certain information. Tracking technologies used are beacons, tags, and scripts to collect and track information and to improve and analyze Our Service. The technologies We use may include:"),B(),Y(117,"ul")(118,"li")(119,"strong"),f(120,"Cookies or Browser Cookies."),B(),f(121," A cookie is a small file placed on Your Device. You can instruct Your browser to refuse all Cookies or to indicate when a Cookie is being sent. However, if You do not accept Cookies, You may not be able to use some parts of our Service. Unless you have adjusted Your browser setting so that it will refuse Cookies, our Service may use Cookies."),B(),Y(122,"li")(123,"strong"),f(124,"Web Beacons."),B(),f(125," Certain sections of our Service and our emails may contain small electronic files known as web beacons (also referred to as clear gifs, pixel tags, and single-pixel gifs) that permit the Company, for example, to count users who have visited those pages or opened an email and for other related website statistics (for example, recording the popularity of a certain section and verifying system and server integrity)."),B()(),Y(126,"p"),f(127,'Cookies can be "Persistent" or "Session" Cookies. Persistent Cookies remain on Your personal computer or mobile device when You go offline, while Session Cookies are deleted as soon as You close Your web browser. Learn more about cookies on the '),Y(128,"a",6),f(129,"Privacy Policies website"),B(),f(130," article."),B(),Y(131,"p"),f(132,"We use both Session and Persistent Cookies for the purposes set out below:"),B(),Y(133,"ul")(134,"li")(135,"p")(136,"strong"),f(137,"Necessary / Essential Cookies"),B()(),Y(138,"p"),f(139,"Type: Session Cookies"),B(),Y(140,"p"),f(141,"Administered by: Us"),B(),Y(142,"p"),f(143,"Purpose: These Cookies are essential to provide You with services available through the Website and to enable You to use some of its features. They help to authenticate users and prevent fraudulent use of user accounts. Without these Cookies, the services that You have asked for cannot be provided, and We only use these Cookies to provide You with those services."),B()(),Y(144,"li")(145,"p")(146,"strong"),f(147,"Cookies Policy / Notice Acceptance Cookies"),B()(),Y(148,"p"),f(149,"Type: Persistent Cookies"),B(),Y(150,"p"),f(151,"Administered by: Us"),B(),Y(152,"p"),f(153,"Purpose: These Cookies identify if users have accepted the use of cookies on the Website."),B()(),Y(154,"li")(155,"p")(156,"strong"),f(157,"Functionality Cookies"),B()(),Y(158,"p"),f(159,"Type: Persistent Cookies"),B(),Y(160,"p"),f(161,"Administered by: Us"),B(),Y(162,"p"),f(163,"Purpose: These Cookies allow us to remember choices You make when You use the Website, such as remembering your login details or language preference. The purpose of these Cookies is to provide You with a more personal experience and to avoid You having to re-enter your preferences every time You use the Website."),B()()(),Y(164,"p"),f(165,"For more information about the cookies we use and your choices regarding cookies, please visit our Cookies Policy or the Cookies section of our Privacy Policy."),B(),Y(166,"h3"),f(167,"Use of Your Personal Data"),B(),Y(168,"p"),f(169,"The Company may use Personal Data for the following purposes:"),B(),Y(170,"ul")(171,"li")(172,"p")(173,"strong"),f(174,"To provide and maintain our Service"),B(),f(175,", including to monitor the usage of our Service."),B()(),Y(176,"li")(177,"p")(178,"strong"),f(179,"To manage Your Account:"),B(),f(180," to manage Your registration as a user of the Service. The Personal Data You provide can give You access to different functionalities of the Service that are available to You as a registered user."),B()(),Y(181,"li")(182,"p")(183,"strong"),f(184,"For the performance of a contract:"),B(),f(185," the development, compliance and undertaking of the purchase contract for the products, items or services You have purchased or of any other contract with Us through the Service."),B()(),Y(186,"li")(187,"p")(188,"strong"),f(189,"To contact You:"),B(),f(190," To contact You by email, telephone calls, SMS, or other equivalent forms of electronic communication, such as a mobile application's push notifications regarding updates or informative communications related to the functionalities, products or contracted services, including the security updates, when necessary or reasonable for their implementation."),B()(),Y(191,"li")(192,"p")(193,"strong"),f(194,"To provide You"),B(),f(195," with news, special offers and general information about other goods, services and events which we offer that are similar to those that you have already purchased or enquired about unless You have opted not to receive such information."),B()(),Y(196,"li")(197,"p")(198,"strong"),f(199,"To manage Your requests:"),B(),f(200," To attend and manage Your requests to Us."),B()(),Y(201,"li")(202,"p")(203,"strong"),f(204,"For business transfers:"),B(),f(205," We may use Your information to evaluate or conduct a merger, divestiture, restructuring, reorganization, dissolution, or other sale or transfer of some or all of Our assets, whether as a going concern or as part of bankruptcy, liquidation, or similar proceeding, in which Personal Data held by Us about our Service users is among the assets transferred."),B()(),Y(206,"li")(207,"p")(208,"strong"),f(209,"For other purposes"),B(),f(210,": We may use Your information for other purposes, such as data analysis, identifying usage trends, determining the effectiveness of our promotional campaigns and to evaluate and improve our Service, products, services, marketing and your experience."),B()()(),Y(211,"p"),f(212,"We may share Your personal information in the following situations:"),B(),Y(213,"ul")(214,"li")(215,"strong"),f(216,"With Service Providers:"),B(),f(217," We may share Your personal information with Service Providers to monitor and analyze the use of our Service, to contact You."),B(),Y(218,"li")(219,"strong"),f(220,"For business transfers:"),B(),f(221," We may share or transfer Your personal information in connection with, or during negotiations of, any merger, sale of Company assets, financing, or acquisition of all or a portion of Our business to another company."),B(),Y(222,"li")(223,"strong"),f(224,"With Affiliates:"),B(),f(225," We may share Your information with Our affiliates, in which case we will require those affiliates to honor this Privacy Policy. Affiliates include Our parent company and any other subsidiaries, joint venture partners or other companies that We control or that are under common control with Us."),B(),Y(226,"li")(227,"strong"),f(228,"With business partners:"),B(),f(229," We may share Your information with Our business partners to offer You certain products, services or promotions."),B(),Y(230,"li")(231,"strong"),f(232,"With other users:"),B(),f(233," when You share personal information or otherwise interact in the public areas with other users, such information may be viewed by all users and may be publicly distributed outside."),B(),Y(234,"li")(235,"strong"),f(236,"W
1814ith Your consent"),B(),f(237,": We may disclose Your personal information for any other purpose with Your consent."),B()(),Y(238,"h3"),f(239,"Retention of Your Personal Data"),B(),Y(240,"p"),f(241,"The Company will retain Your Personal Data only for as long as is necessary for the purposes set out in this Privacy Policy. We will retain and use Your Personal Data to the extent necessary to comply with our legal obligations (for example, if we are required to retain your data to comply with applicable laws), resolve disputes, and enforce our legal agreements and policies."),B(),Y(242,"p"),f(243,"The Company will also retain Usage Data for internal analysis purposes. Usage Data is generally retained for a shorter period of time, except when this data is used to strengthen the security or to improve the functionality of Our Service, or We are legally obligated to retain this data for longer time periods."),B(),Y(244,"h3"),f(245,"Transfer of Your Personal Data"),B(),Y(246,"p"),f(247,"Your information, including Personal Data, is processed at the Company's operating offices and in any other places where the parties involved in the processing are located. It means that this information may be transferred to \u2014 and maintained on \u2014 computers located outside of Your state, province, country or other governmental jurisdiction where the data protection laws may differ than those from Your jurisdiction."),B(),Y(248,"p"),f(249,"Your consent to this Privacy Policy followed by Your submission of such information represents Your agreement to that transfer."),B(),Y(250,"p"),f(251,"The Company will take all steps reasonably necessary to ensure that Your data is treated securely and in accordance with this Privacy Policy and no transfer of Your Personal Data will take place to an organization or a country unless there are adequate controls in place including the security of Your data and other personal information."),B(),Y(252,"h3"),f(253,"Delete Your Personal Data"),B(),Y(254,"p"),f(255,"You have the right to delete or request that We assist in deleting the Personal Data that We have collected about You."),B(),Y(256,"p"),f(257,"Our Service may give You the ability to delete certain information about You from within the Service."),B(),Y(258,"p"),f(259,"You may update, amend, or delete Your information at any time by signing in to Your Account, if you have one, and visiting the account settings section that allows you to manage Your personal information. You may also contact Us to request access to, correct, or delete any personal information that You have provided to Us."),B(),Y(260,"p"),f(261,"Please note, however, that We may need to retain certain information when we have a legal obligation or lawful basis to do so."),B(),Y(262,"h3"),f(263,"Disclosure of Your Personal Data"),B(),Y(264,"h4"),f(265,"Business Transactions"),B(),Y(266,"p"),f(267,"If the Company is involved in a merger, acquisition or asset sale, Your Personal Data may be transferred. We will provide notice before Your Personal Data is transferred and becomes subject to a different Privacy Policy."),B(),Y(268,"h4"),f(269,"Law enforcement"),B(),Y(270,"p"),f(271,"Under certain circumstances, the Company may be required to disclose Your Personal Data if required to do so by law or in response to valid requests by public authorities (e.g. a court or a government agency)."),B(),Y(272,"h4"),f(273,"Other legal requirements"),B(),Y(274,"p"),f(275,"The Company may disclose Your Personal Data in the good faith belief that such action is necessary to:"),B(),Y(276,"ul")(277,"li"),f(278,"Comply with a legal obligation"),B(),Y(279,"li"),f(280,"Protect and defend the rights or property of the Company"),B(),Y(281,"li"),f(282,"Prevent or investigate possible wrongdoing in connection with the Service"),B(),Y(283,"li"),f(284,"Protect the personal safety of Users of the Service or the public"),B(),Y(285,"li"),f(286,"Protect against legal liability"),B()(),Y(287,"h3"),f(288,"Security of Your Personal Data"),B(),Y(289,"p"),f(290,"The security of Your Personal Data is important to Us, but remember that no method of transmission over the Internet, or method of electronic storage is 100% secure. While We strive to use commercially acceptable means to protect Your Personal Data, We cannot guarantee its absolute security."),B(),Y(291,"h2"),f(292,"Children's Privacy"),B(),Y(293,"p"),f(294,"Our Service does not address anyone under the age of 13. We do not knowingly collect personally identifiable information from anyone under the age of 13. If You are a parent or guardian and You are aware that Your child has provided Us with Personal Data, please contact Us. If We become aware that We have collected Personal Data from anyone under the age of 13 without verification of parental consent, We take steps to remove that information from Our servers."),B(),Y(295,"p"),f(296,"If We need to rely on consent as a legal basis for processing Your information and Your country requires consent from a parent, We may require Your parent's consent before We collect and use that information."),B(),Y(297,"h2"),f(298,"Links to Other Websites"),B(),Y(299,"p"),f(300,"Our Service may contain links to other websites that are not operated by Us. If You click on a third party link, You will be directed to that third party's site. We strongly advise You to review the Privacy Policy of every site You visit."),B(),Y(301,"p"),f(302,"We have no control over and assume no responsibility for the content, privacy policies or practices of any third party sites or services."),B(),Y(303,"h2"),f(304,"Changes to this Privacy Policy"),B(),Y(305,"p"),f(306,"We may update Our Privacy Policy from time to time. We will notify You of any changes by posting the new Privacy Policy on this page."),B(),Y(307,"p"),f(308,'We will let You know via email and/or a prominent notice on Our Service, prior to the change becoming effective and update the "Last updated" date at the top of this Privacy Policy.'),B(),Y(309,"p"),f(310,"You are advised to review this Privacy Policy periodically for any changes. Changes to this Privacy Policy are effective when they are posted on this page."),B(),Y(311,"h2"),f(312,"Contact Us"),B(),Y(313,"p"),f(314,"If you have any questions about this Privacy Policy, You can contact us:"),B(),Y(315,"ul")(316,"li"),f(317,"By email: info[at]eveworkbench.com"),B()()()()()())},encapsulation:2})};var $f=class i{http=ie(Kl);feedUrl="/updates.json";getFeed(){return this.http.get(this.feedUrl)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Ye({token:i,factory:i.\u0275fac,providedIn:"root"})};var Xee=(i,t)=>t.key,Jee=(i,t)=>t.version,ete=(i,t)=>t.label,tte=(i,t)=>t.name;function ite(i,t){if(i&1&&(p(0,"p",5),f(1),m()),i&2){let e=S();v(),V("The full change log for ",e.product()," \u2014 release by release.")}}function rte(i,t){i&1&&(p(0,"p",6),f(1,"Loading updates\u2026"),m())}function nte(i,t){i&1&&(p(0,"p",6),f(1,"Updates could not be loaded right now. Please try again later."),m())}function ote(i,t){i&1&&(p(0,"div",7),T(1,"div",8),p(2,"h2"),f(3,"No releases logged yet"),m(),p(4,"p"),f(5,"The first patch notes will appear here."),m()())}function ate(i,t){if(i&1){let e=J();p(0,"button",14),R("click",function(){let n=L(e).$implicit,o=S(2);return O(o.selectCategory(n.key))}),T(1,"span",15),f(2),p(3,"span",16),f(4),m()()}if(i&2){let e=t.$implicit,r=S(2);Ge("data-cat",e.key)("aria-pressed",r.activeCategory()===e.key),v(2),$(e.label),v(2),$(e.count)}}function ste(i,t){if(i&1&&(p(0,"span",21),f(1,"prev "),p(2,"b"),f(3),m()()),i&2){let e=S().$implicit;v(3),$(e.previous)}}function lte(i,t){if(i&1&&(p(0,"span",27),f(1),m()),i&2){let e=S().$implicit;v(),$(e.title)}}function cte(i,t){if(i&1&&(p(0,"div",34),f(1),m()),i&2){let e=S().$implicit;v(),$(e.detail)}}function dte(i,t){if(i&1&&(p(0,"div",31)(1,"div",32),f(2),m(),p(3,"div",33),f(4),m(),H(5,cte,2,1,"div",34),m()),i&2){let e=t.$implicit;v(2),$(e.label),v(2),$(e.value),v(),W(e.detail?5:-1)}}function pte(i,t){if(i&1&&(p(0,"div",29),oe(1,dte,6,3,"div",31,ete),m()),i&2){let e=S().$implicit;v(),ae(e.metric)}}function ute(i,t){if(i&1&&(p(0,"li"),T(1,"markdown",37),m()),i&2){let e=t.$implicit;v(),b("data",e)("inline",!0)}}function mte(i,t){if(i&1&&(p(0,"div",35)(1,"div",36),f(2),m(),p(3,"ul",30),oe(4,ute,2,2,"li",null,rr),m()()),i&2){let e=t.$implicit;v(2),$(e.name),v(2),ae(e.items)}}function fte(i,t){if(i&1&&oe(0,mte,6,1,"div",35,tte),i&2){let e=S().$implicit;ae(e.groups)}}function hte(i,t){if(i&1&&(p(0,"li"),T(1,"markdown",37),m()),i&2){let e=t.$implicit;v(),b("data",e)("inline",!0)}}function gte(i,t){if(i&1&&(p(0,"ul",30),oe(1,hte,2,2,"li",null,rr),m()),i&2){let e=S().$implicit;v(),ae(e.items)}}function vte(i,t){if(i&1&&(p(0,"section",24)(1,"div",25)(2,"span",26),f(3),m(),H(4,lte,2,1,"span",27),p(5,"span",28),f(6),m()(),H(7,pte,3,0,"div",29),H(8,fte,2,0)(9,gte,3,0,"ul",30),m()),i&2){let e=t.$implicit,r=S(3);Ge("data-cat",e.category),v(2),_e(r.badgeClass(e.category)),v(),$(r.categoryLabel(e.category)),v(),W(e.title?4:-1),v(2),$(r.sectionCount(e)),v(),W(e.category==="performance"&&(e.metric!=null&&e.metric.length)?7:-1),v(),W(e.groups!=null&&e.groups.length?8:e.items!=null&&e.items.length?9:-1)}}function _te(i,t){if(i&1&&(p(0,"article",13),T(1,"span",17),p(2,"div",18)(3,"span",19),f(4),m(),p(5,"span",20),f(6),m(),H(7,ste,4,1,"span",21),m(),p(8,"div",22)(9,"div",23),oe(10,vte,10,8,"section",24,rr),m()()()),i&2){let e=t.$implicit;v(4),$(e.version),v(2),$(e.date),v(),W(e.previous?7:-1),v(3),ae(e.sections)}}function bte(i,t){if(i&1&&(p(0,"div",9)(1,"span",10),f(2,"Filter"),m(),oe(3,ate,5,4,"button",11,Xee),m(),p(5,"div",12),oe(6,_te,12,3,"article",13,Jee),m()),i&2){let e=S();v(3),ae(e.chips()),v(3),ae(e.visibleReleases())}}var zk={added:"Added",performance:"Performance",fixed:"Fixed",changed:"Changed",removed:"Removed"},yte={added:"text-bg-success",performance:"text-bg-info",fixed:"text-bg-warning",changed:"text-bg-primary",removed:"text-bg-danger"},xte=["added","performance","fixed","changed","removed"],Zf=class i{updatesService=ie($f);product=ir("");releases=ir([]);isLoading=ir(!0);hasError=ir(!1);activeCategory=ir("all");chips=li(()=>{let t=new Map;for(let n of this.releases())for(let o of n.sections)t.set(o.category,(t.get(o.category)??0)+this.sectionCount(o));let r=[{key:"all",label:"All",count:[...t.values()].reduce((n,o)=>n+o,0)}];for(let n of xte){let o=t.get(n);o&&r.push({key:n,label:zk[n],count:o})}return r});visibleReleases=li(()=>{let t=this.activeCategory();return t==="all"?this.releases():this.releases().map(e=>pi(lt({},e),{sections:e.sections.filter(r=>r.category===t)})).filter(e=>e.sections.length>0)});constructor(){this.updatesService.getFeed().subscribe({next:t=>{this.product.set(t.product??""),this.releases.set(t.releases??[]),this.isLoading.set(!1)},error:()=>
1814{this.hasError.set(!0),this.isLoading.set(!1)}})}selectCategory(t){this.activeCategory.set(t)}categoryLabel(t){return zk[t]}badgeClass(t){return yte[t]}sectionCount(t){return t.groups?t.groups.reduce((e,r)=>e+r.items.length,0):t.items?.length??0}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=K({type:i,selectors:[["app-updates-page"]],decls:15,vars:2,consts:[[1,"updates"],[1,"updates__head"],[1,"updates__crumbs"],["aria-hidden","true"],[1,"updates__title"],[1,"updates__sub"],[1,"updates__state"],[1,"updates__empty"],["aria-hidden","true",1,"updates__empty-mark"],["role","group","aria-label","Filter by change type",1,"updates__filters"],[1,"updates__filter-label"],["type","button",1,"chip"],[1,"timeline"],[1,"release"],["type","button",1,"chip",3,"click"],[1,"chip__dot"],[1,"chip__n"],["aria-hidden","true",1,"release__node"],[1,"release__head"],[1,"release__ver"],[1,"release__date"],[1,"release__prev"],[1,"card","border-0","shadow-sm"],[1,"card-body"],[1,"section"],[1,"section__head"],[1,"badge"],[1,"section__title"],[1,"section__n"],[1,"stats"],[1,"items"],[1,"stat"],[1,"stat__k"],[1,"stat__v"],[1,"stat__d"],[1,"group"],[1,"group__name"],[3,"data","inline"]],template:function(e,r){e&1&&(p(0,"div",0)(1,"header",1)(2,"p",2),f(3,"Home "),p(4,"span",3),f(5,"\u203A"),m(),p(6,"b"),f(7,"Updates"),m()(),p(8,"h1",4),f(9,"Updates"),m(),H(10,ite,2,1,"p",5),m(),H(11,rte,2,0,"p",6)(12,nte,2,0,"p",6)(13,ote,6,0,"div",7)(14,bte,8,0),m()),e&2&&(v(10),W(r.product()?10:-1),v(),W(r.isLoading()?11:r.hasError()?12:r.releases().length===0?13:14))},dependencies:[Cn],styles:['@charset "UTF-8";[_nghost-%COMP%]{--u-accent: var(--primary-accent-color, #0078a0);--u-page-bg: var(--background-color, #191d21);--u-border: #3c4044;--u-border-soft: #343a40;--u-text: var(--default-text-color, #ffffff);--u-dim: #8a98a1;--u-faint: #6c757d;display:block;color:var(--u-text)}.section[data-cat=added][_ngcontent-%COMP%], .chip[data-cat=added][_ngcontent-%COMP%]{--cc: rgb(var(--bs-success-rgb, 25, 135, 84))}.section[data-cat=performance][_ngcontent-%COMP%], .chip[data-cat=performance][_ngcontent-%COMP%]{--cc: rgb(var(--bs-info-rgb, 13, 202, 240))}.section[data-cat=fixed][_ngcontent-%COMP%], .chip[data-cat=fixed][_ngcontent-%COMP%]{--cc: rgb(var(--bs-warning-rgb, 255, 193, 7))}.section[data-cat=changed][_ngcontent-%COMP%], .chip[data-cat=changed][_ngcontent-%COMP%]{--cc: rgb(var(--bs-primary-rgb, 13, 110, 253))}.section[data-cat=removed][_ngcontent-%COMP%], .chip[data-cat=removed][_ngcontent-%COMP%]{--cc: rgb(var(--bs-danger-rgb, 220, 53, 69))}.chip[data-cat=all][_ngcontent-%COMP%]{--cc: var(--u-accent)}.updates[_ngcontent-%COMP%]{max-width:1040px;margin:0 auto;padding:30px 20px 90px}.updates__crumbs[_ngcontent-%COMP%]{font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:var(--u-faint);margin:0 0 12px}.updates__crumbs[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:var(--u-accent);font-weight:400}.updates__title[_ngcontent-%COMP%]{font-weight:400;font-size:2.4rem;line-height:1.05;margin:0;text-wrap:balance;padding-bottom:6px;border-bottom:1px solid var(--u-border-soft)}.updates__sub[_ngcontent-%COMP%]{color:var(--u-dim);max-width:62ch;margin:12px 0 0;font-size:1rem}.updates__state[_ngcontent-%COMP%]{color:var(--u-dim);padding:40px 0}.updates__filters[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:24px 0 4px}.updates__filter-label[_ngcontent-%COMP%]{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--u-faint);margin-right:4px}.updates__empty[_ngcontent-%COMP%]{margin-top:24px;text-align:center}.updates__empty[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-weight:400;margin:0 0 6px;font-size:1.25rem}.updates__empty[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;color:var(--u-dim)}.updates__empty-mark[_ngcontent-%COMP%]{width:46px;height:46px;margin:30px auto 16px;position:relative}.updates__empty-mark[_ngcontent-%COMP%]:before, .updates__empty-mark[_ngcontent-%COMP%]:after{content:"";position:absolute;inset:0;border:2px solid var(--u-accent);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);opacity:.4}.updates__empty-mark[_ngcontent-%COMP%]:after{inset:10px;opacity:.75}.chip[_ngcontent-%COMP%]{cursor:pointer;font-size:.82rem;background:transparent;border:1px solid var(--u-border);color:var(--u-dim);padding:5px 12px;border-radius:.25rem;display:inline-flex;align-items:center;gap:7px;transition:border-color .15s,color .15s,background-color .15s}.chip__dot[_ngcontent-%COMP%]{width:8px;height:8px;border-radius:50%;background:var(--cc, var(--u-faint))}.chip__n[_ngcontent-%COMP%]{font-size:.76rem;color:var(--u-faint);font-variant-numeric:tabular-nums}.chip[_ngcontent-%COMP%]:hover{color:var(--u-text);border-color:var(--u-faint)}.chip[aria-pressed=true][_ngcontent-%COMP%]{color:var(--u-text);border-color:color-mix(in srgb,var(--cc, var(--u-accent)) 70%,transparent);background:color-mix(in srgb,var(--cc, var(--u-accent)) 18%,transparent)}.timeline[_ngcontent-%COMP%]{position:relative;padding:24px 0 0}.timeline[_ngcontent-%COMP%]:before{content:"";position:absolute;
1814left:9px;top:2px;bottom:10px;width:2px;background:linear-gradient(180deg,var(--u-accent),var(--u-border) 16%,var(--u-border) 90%,transparent)}.release[_ngcontent-%COMP%]{position:relative;padding:0 0 30px 44px;animation:_ngcontent-%COMP%_release-in .45s ease both}.release__node[_ngcontent-%COMP%]{position:absolute;left:0;top:4px;width:20px;height:20px;display:grid;place-items:center}.release__node[_ngcontent-%COMP%]:before{content:"";width:20px;height:20px;position:absolute;border:2px solid var(--u-accent);border-radius:50%;background:var(--u-page-bg)}.release__node[_ngcontent-%COMP%]:after{content:"";width:7px;height:7px;border-radius:50%;background:var(--u-accent);position:relative}.release__head[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 14px;margin-bottom:10px}.release__ver[_ngcontent-%COMP%]{font-size:.9rem;color:#fff;background:color-mix(in srgb,var(--u-accent) 26%,transparent);border:1px solid color-mix(in srgb,var(--u-accent) 60%,var(--u-border));padding:2px 10px;border-radius:.25rem;font-variant-numeric:tabular-nums}.release__date[_ngcontent-%COMP%]{font-size:.85rem;color:var(--u-dim);font-variant-numeric:tabular-nums}.release__prev[_ngcontent-%COMP%]{font-size:.8rem;color:var(--u-faint)}.release__prev[_ngcontent-%COMP%]   b[_ngcontent-%COMP%]{color:var(--u-dim);font-weight:400}@keyframes _ngcontent-%COMP%_release-in{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}.section[_ngcontent-%COMP%]{padding:16px 0;border-top:1px solid var(--u-border-soft)}.section[_ngcontent-%COMP%]:first-child{border-top:0;padding-top:2px}.section__head[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin:0 0 12px}.section__title[_ngcontent-%COMP%]{color:var(--u-dim);font-size:.95rem}.section__n[_ngcontent-%COMP%]{font-size:.78rem;color:var(--u-faint);margin-left:auto;font-variant-numeric:tabular-nums}.group[_ngcontent-%COMP%]{margin:0 0 12px}.group[_ngcontent-%COMP%]:last-child{margin-bottom:2px}.group__name[_ngcontent-%COMP%]{font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:var(--u-dim);margin:0 0 6px;display:flex;align-items:center;gap:8px}.group__name[_ngcontent-%COMP%]:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,var(--u-border),transparent)}.items[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}.items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;padding-left:19px;color:var(--u-dim);font-size:.95rem;line-height:1.5}.items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:2px;top:.55em;width:6px;height:6px;border:1.5px solid var(--cc, var(--u-accent));border-radius:1px;transform:rotate(45deg)}.items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:.82em;background:#ffffff0f;border:1px solid var(--u-border);border-radius:3px;padding:.5px 5px;color:var(--u-text)}.items[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   strong[_ngcontent-%COMP%]{color:var(--u-text);font-weight:400}.stats[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 15px}.stat[_ngcontent-%COMP%]{flex:1 1 130px;background:#ffffff08;border:1px solid var(--u-border-soft);border-radius:.25rem;padding:11px 13px}.stat__k[_ngcontent-%COMP%]{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--u-faint);margin-bottom:6px}.stat__v[_ngcontent-%COMP%]{font-size:1.3rem;color:var(--u-text);line-height:1;font-variant-numeric:tabular-nums}.stat__d[_ngcontent-%COMP%]{font-size:.78rem;margin-top:6px;color:var(--u-dim)}@media(max-width:640px){.updates__title[_ngcontent-%COMP%]{font-size:2rem}}@media(prefers-reduced-motion:reduce){.release[_ngcontent-%COMP%]{animation:none}}'],changeDetection:0})};var yy=(r=>(r[r.ShipSelector=0]="ShipSelector",r[r.EftImporter=1]="EftImporter",r[r.Modules=99999]="Modules",r))(yy||{});var Cte=["fitStatisticsComponent"],Ste=["fitRadialComponent"],wte=(i,t,e)=>({"bg-success":i,"bg-secondary":t,"bg-warning text-dark":e}),ap=i=>({selected:i}),xy=(i,t)=>t.typeId;function Tte(i,t){i&1&&T(0,"overlay-loader")}function Ete(i,t){if(i&1&&(p(0,"span",28),f(1),m()),i&2){let e=S().node;v(),$(e.label)}}function kte(i,t){if(i&1){let e=J();p(0,"div",30),R("click",function(){L(e);let n=S().node,o=S(2);return O(o.onFitClick(n))}),p(1,"span",31),f(2),m(),p(3,"span",32),f(4),m()()}if(i&2){let e=S().node;
1814v(2),$(e.label),v(),b("ngClass",Gn(3,wte,e.data.state==="Published",e.data.state==="Unpublished",e.data.state==="Hidden")),v(),$(e.data.state)}}function Ite(i,t){if(i&1&&T(0,"img",34),i&2){let e=S(2).node;b("src",e.image,re)}}function Dte(i,t){if(i&1){let e=J();p(0,"div",29)(1,"div",33),H(2,Ite,1,1,"img",34),p(3,"span",35),f(4),m()(),p(5,"button",36),R("click",function(n){L(e);let o=S().node,a=S(2);return O(a.onNewFit(o,n))}),f(6,"New"),m()()}if(i&2){let e=S().node;v(2),W(e.image?2:-1),v(2),$(e.label)}}function Mte(i,t){if(i&1&&T(0,"img",37),i&2){let e=S(2).node;b("src",e.image,re)}}function Pte(i,t){if(i&1&&(p(0,"span",38),f(1),m()),i&2){let e=S(2).node,r=S(2);v(),$(r.countLeaves(e))}}function Fte(i,t){if(i&1&&(H(0,Mte,1,1,"img",37),p(1,"span"),f(2),m(),H(3,Pte,2,1,"span",38)),i&2){let e=S().node;W(e.image?0:-1),v(2),$(e.label),v(),W(e.children!=null&&e.children.length?3:-1)}}function Rte(i,t){if(i&1&&H(0,Ete,2,1,"span",28)(1,kte,5,7,"div",29)(2,Dte,7,2,"div",29)(3,Fte,4,3),i&2){let e=t.node;W((e.data==null?null:e.data.type)==="empty"?0:e.data!=null&&e.data.fitId?1:e.id>0?2:3)}}function Lte(i,t){if(i&1){let e=J();p(0,"div",20)(1,"span"),f(2,"Hulls"),m(),p(3,"button",21),R("click",function(){L(e);let n=S();return O(n.shownSelector=n.TheoryCrafterSelector.Modules)}),f(4,"Modules"),m()(),p(5,"div",22)(6,"p-float-label",23)(7,"input",24),Je("ngModelChange",function(n){L(e);let o=S();return Xe(o.filterText,n)||(o.filterText=n),O(n)}),m(),p(8,"label",25),f(9,"Filter"),m()(),p(10,"div",26)(11,"ewb-treeview",27),M(12,Rte,4,1,"ng-template",null,2,de),m()()()}if(i&2){let e=S();v(7),Qe("ngModel",e.filterText),v(4),b("nodes",e.hullTreeData)("config",e.hullTreeConfig)("filterText",e.filterText)}}function Ote(i,t){if(i&1){let e=J();p(0,"form",39),R("ngSubmit",function(){L(e);let n=S();return O(n.importEFT())}),p(1,"div",40),T(2,"i",9),p(3,"span"),f(4,"Paste the EFT, EFTH or DNA of the fit below."),m()(),p(5,"p-ifta-label"),T(6,"textarea",41),p(7,"label",42),f(8,"EFT"),m()(),p(9,"button",43),f(10,"Load fit"),m()()}if(i&2){let e=S();b("formGroup",e.eftImportForm)}}function Ate(i,t){if(i&1&&T(0,"img",37),i&2){let e=S(2).node;b("src",e.image,re)}}function Bte(i,t){if(i&1&&(p(0,"span",38),f(1),m()),i&2){let e=S(2).node,r=S(2);v(),$(r.countLeaves(e))}}function Nte(i,t){if(i&1&&(H(0,Ate,1,1,"img",37),p(1,"span"),f(2),m(),H(3,Bte,2,1,"span",38)),i&2){let e=S().node;
1814W(e.image?0:-1),v(2),$(e.label),v(),W(e.children!=null&&e.children.length?3:-1)}}function Vte(i,t){if(i&1&&T(0,"img",37),i&2){let e=S(2).node;b("src",e.image,re)}}function zte(i,t){if(i&1){let e=J();p(0,"div",58),R("dragstart",function(n){L(e);let o=S().node,a=S(2);return O(a.fitRadialComponent==null?null:a.fitRadialComponent.dragModuleStart(n,o.id,o.label,a.getSlotType(o.data),o.attributes))})("dragend",function(n){L(e);let o=S(3);return O(o.fitRadialComponent==null?null:o.fitRadialComponent.dragModuleEnd(n))}),H(1,Vte,1,1,"img",37),p(2,"span"),f(3),m()()}if(i&2){let e=S().node;v(),W(e.image?1:-1),v(2),$(e.label)}}function Ute(i,t){if(i&1&&H(0,Nte,4,3)(1,zte,4,2,"div",57),i&2){let e=t.node;W(e.children!=null&&e.children.length?0:1)}}function Hte(i,t){if(i&1&&(p(0,"div",56),f(1),m()),i&2){let e=S(2);v(),V(" No modules for ",e.filteredSlotType?e.filteredSlotLabel:"this hull",". ")}}function Wte(i,t){if(i&1){let e=J();p(0,"div",20)(1,"span"),f(2,"Modules"),m(),p(3,"div")(4,"button",21),R("click",function(){L(e);let n=S();return O(n.shownSelector=n.TheoryCrafterSelector.ShipSelector)}),f(5,"Hulls"),m()()(),p(6,"div",44)(7,"div",45),R("click",function(){L(e);let n=S();return O(n.filterSlotType([n.SlotType.LowSlot]))}),T(8,"img",46),m(),p(9,"div",47),R("click",function(){L(e);let n=S();return O(n.filterSlotType([n.SlotType.MediumSlot]))}),T(10,"img",48),m(),p(11,"div",49),R("click",function(){L(e);let n=S();return O(n.filterSlotType([n.SlotType.HighSlot]))}),T(12,"img",50),m(),p(13,"div",51),R("click",function(){L(e);let n=S();return O(n.filterSlotType([n.SlotType.RigSlot,n.SlotType.SubSystemSlot]))}),T(14,"img",52),m(),p(15,"div",53),R("click",function(){L(e);let n=S();return O(n.filterSlotType([n.SlotType.DroneBay,n.SlotType.FighterBay]))}),T(16,"img",54),m()(),p(17,"div",22)(18,"div",26)(19,"ewb-treeview",55),M(20,Ute,2,1,"ng-template",null,2,de),m(),H(22,Hte,2,1,"div",56),m()()}if(i&2){let e=S();v(7),b("ngClass",te(8,ap,e.filteredSlotType==null?null:e.filteredSlotType.includes(e.SlotType.LowSlot))),v(2),b("ngClass",te(10,ap,e.filteredSlotType==null?null:e.filteredSlotType.includes(e.SlotType.MediumSlot))),v(2),b("ngClass",te(12,ap,e.filteredSlotType==null?null:e.filteredSlotType.includes(e.SlotType.HighSlot))),v(2),b("ngClass",te(14,ap,e.filteredSlotType==null?null:e.filteredSlotType.includes(e.SlotType.RigSlot))),v(2),b("ngClass",te(16,ap,(e.filteredSlotType==null?null:e.filteredSlotType.includes(e.SlotType.DroneBay))||(e.filteredSlotType==null?null:e.filteredSlotType.includes(e.SlotType.FighterBay)))),v(4),b("nodes",e.hardwareTreeData)("config",e.treeConfig),v(3),W(e.hardwareTreeData.length===0&&e.originalHardwareTree.length>0?22:-1)}}function Gte(i,t){if(i&1){let e=J();p(0,"div")(1,"img",64),R("click",function(){let n=L(e).$implicit,o=S(3);return O(o.filterPossibleCharges(n.typeId))}),m()()}if(i&2){let e=t.$implicit,r=S(3);_e(Q("filter-module ",e.typeId===r.filteredModule?"selected":"")),v(),b("src",Q("https://images.evetech.net/types/",e.typeId,"/icon?size=32"),re)("title",Q("Show charges for ",e.typeName))}}function qte(i,t){if(i&1&&(p(0,"div",5)(1,"div",62),oe(2,Gte,2,7,"div",63,xy),m()()),i&2){let e=S(2);v(2),ae(e.possibleCharges)}}function jte(i,t){if(i&1){let e=J();p(0,"div",68),R("drag",function(n){let o=L(e).$implicit,a=S().$implicit,s=S(2);return O(s.fitRadialComponent==null?null:s.fitRadialComponent.dragChargeStart(n,o.typeId,o.typeName,[a.typeId]))})("dragend",function(n){L(e);let o=S(3);return O(o.fitRadialComponent==null?null:o.fitRadialComponent.dragChargeEnd(n))}),T(1,"img",69),p(2,"div",70),f(3),m()()}if(i&2){let e=t.$implicit;v(),b("src",Q("https://images.evetech.net/types/",e.typeId,"/icon?size=32"),re),v(2),$(e.typeName)}}function Yte(i,t){if(i&1&&(p(0,"div",65)(1,"span",66),f(2),m()(),oe(3,jte,4,3,"div",67,xy)),i&2){let e=t.$implicit;v(2),$(e.typeName),v(),ae(e.charges)}}function Kte(i,t){if(i&1){let e=J();p(0,"div",20)(1,"span"),f(2,"Charges"),m(),p(3,"div")(4,"button",59),R("click",function(){L(e);let n=S();return O(n.refreshCharges())}),f(5,"Refresh"),m(),p(6,"button",21),R("click",function(){L(e);let n=S();return O(n.shownSelector=n.TheoryCrafterSelector.ShipSelector)}),f(7,"Hulls"),m()()(),M(8,qte,4,0,"div",60),p(9,"div",61),oe(10,Yte,5,1,null,null,xy),m()}if(i&2){let e=S();v(8),b("ngIf",e.possibleCharges.length>1),v(2),ae(e.filteredCharges)}}function $te(i,t){if(i&1){let e=J();p(0,"div",6)(1,"div",71)(2,"div",72)(3,"fit-radial",73,3),R("onUp
1814dateFit",function(){L(e);let n=S();return O(n.onUpdateFit())})("onUpdateSlots",function(n){L(e);let o=S();return O(o.onUpdateSlots(n))}),m()()()(),p(5,"div",74)(6,"div",71)(7,"div",72)(8,"fit-statistics",75,4),R("onStatisticsUpdate",function(n){L(e);let o=S();return O(o.onStatisticsUpdate(n))}),m()()()()}if(i&2){let e=Ve(9),r=S();v(3),b("showCharges",!1)("fit",r.fit)("theoryCraftMode",!0)("statistics",e.statistics),v(5),b("showLevelSelector",!0)("fit",r.fit)}}function Zte(i,t){i&1&&(p(0,"div",6)(1,"div",71)(2,"div",72)(3,"h5"),f(4,"EVE Workbench - Theory Crafter"),m(),p(5,"p"),f(6,"Welcome to the EVE Workbench - Theory Crafter for EVE Online."),m(),p(7,"p"),f(8,"To begin, select the HULL on the left hand side or import an EFT."),m()()()())}var Qf=class i{constructor(t,e){this.theoryCrafterService=t;this.fitClient=e;this.hullTreeConfig={showImages:!1,filterEnabled:!1,nodeClick:r=>Et(this,null,function*(){r.id>0&&(yield this._expandHull(r))})}}fitStatisticsComponent;fitRadialComponent;hullTreeData=[];hardwareTreeData=[];hullTreeConfig;isLoadingHulls=!1;isLoadingHardware=!1;treeConfig={showImages:!1,filterEnabled:!0};_filterText="";_filterSubject=new Ze;_filterSub;get filterText(){return this._filterText}set filterText(t){this._filterText=t,this._filterSubject.next(t)}shownSelector=0;fit;_loadedHullIds=new Set;_fitSearchInjectedIds=new Set;onUpdateSlots(t){this.refreshCharges()}onUpdateFit(){this.fitStatisticsComponent?.loadStatistics()}ngOnInit(){this._filterSub=this._filterSubject.pipe(pa(400),no()).subscribe(t=>this._searchFits(t)),this.isLoadingHulls=!0,this.theoryCrafterService.getHulls().subscribe({next:t=>{t.success&&(this.hullTreeData=t.result,this._markHullNodesExpandable(this.hullTreeData))},complete:()=>this.isLoadingHulls=!1,error:()=>this.isLoadingHulls=!1})}ngOnDestroy(){this._filterSub?.unsubscribe()}_searchFits(t){return Et(this,null,function*(){if(this._clearFitSearchInjections(),!(t.length<=2))try{let r=(yield gn(this.fitClient.postSearchFits(new ys({searchQuery:t,onlyOwnFits:!0,showUnpublishedFits:!0,take:50,skip:0})))).results??[];if(!r.length)return;let n=new Map;for(let a of r){let s=a.shipId??0;n.has(s)||n.set(s,[]),n.get(s).push(a)}let o=!1;for(let[a,s]of n){if(this._loadedHullIds.has(a))continue;let l=this._findNodeById(a,this.hullTreeData);l&&(l.children=s.map(c=>({id:0,label:c.name??"Unnamed fit",data:{fitId:c.id,state:Vo[c.state]}})),l.expanded=!0,this._fitSearchInjectedIds.add(a),o=!0)}o&&(this.hullTreeData=[...this.hullTreeData])}catch(e){}})}_clearFitSearchInjections(){if(this._fitSearchInjectedIds.size!==0){for(let t of this._fitSearchInjectedIds){if(this._loadedHullIds.has(t))continue;let e=this._findNodeById(t,this.hullTreeData);e&&(e.children=void 0,e.expanded=!1)}this._fitSearchInjectedIds.clear(),this.hullTreeData=[...this.hullTreeData]}}_findNodeById(t,e){for(let r of e){if(r.id===t)return r;if(r.children?.length){let n=this._findNodeById(t,r.children);if(n)return n}}return null}_markHullNodesExpandable(t){for(let e of t)e.id>0?e.expandable=!0:e.children?.length&&this._markHullNodesExpandable(e.children)}onNewFit(t,e){return Et(this,null,function*(){e.stopPropagation(),yield this._loadNewFit(t.id)})}onFitClick(t){return Et(this,null,function*(){if(t.data?.fitId){this.isLoadingHardware=!0;try{let e=yield gn(this.fitClient.getById(t.data.fitId));if(!e.result||e.result.shipId==0)return;this.fit=e.result,yield this._applyCompatibleHardware(e.result.shipId)}finally{this.isLoadingHardware=!1}}})}_expandHull(t){return Et(this,null,function*(){if(this._loadedHullIds.has(t.id)){t.expanded=!t.expanded;return}try{let r=(yield gn(this.fitClient.postSearchFits(new ys({shipId:t.id,onlyOwnFits:!0,showUnpublishedFits:!0,take:20,skip:0})))).results??[];t.children=r.length?r.map(n=>({id:0,label:n.name??"Unnamed fit",data:{fitId:n.id,state:Vo[n.state]}})):[{id:-1,label:`You don't have fits for ${t.label}`,data:{type:"empty"}}]}catch(e){t.children=[{id:-1,label:`You don't have fits for ${t.label}`,data:{type:"empty"}}]}this._loadedHullIds.add(t.id),t.expanded=!0,this.hullTreeData=[...this.hullTreeData]})}_loadNewFit(t){return Et(this,null,function*(){this.hardwareTreeData=[],this.isLoadingHardware=!0;try{let e=yield this.theoryCrafterService.createEmptyFit(t);if(!e||e?.shipId==0)return;this.fit=e,yield this._applyCompatibleHardware(t)}finally{this.isLoadingHardware=!1}})}getSlotType(t){switch(t){case"High":return 0;case"Mid":return 1;case"Low":return 2;case"Rig":return 3;case"Subsystem":return 4;case"Service":return 7;case"Drone":return 5;case"Fighter":return 6;default:return 9999}}getSlotTypeString(t){switch(t){case 0:return"High";case 1:return"Mid";case 2:return"Low";case 3:return"Rig";case 4:return"Subsystem";case 7:return"Service";case 5:return"Drone";case 6:return"Fighter";default:return""}}possibleCharges=[];filteredCharges=[];filteredModule;refreshCharges(){this.possibleCharges=[],this.filteredCharges=[];let t=this.fitRadialComponent?.slots;if(!t)return;let e=[];for(let[r,n]of Object.entries(t))for(let o of n)o.Data!=null&&e[o.Data.typeId]==null&&e.push({typeId:o.Data.typeId,typeName:o.Data.typeName});for(let r in e){if(this.possibleCharges.find(a=>a.typeId==e[r].typeId)!=null)continue;let n=this.theoryCrafterService.getModuleCharges(e[r].typeId);if(!n?.length)continue;let o={charges:[],typeId:e[r].typeId,typeName:e[r].typeName};
1814n.forEach(a=>{o.charges.push({typeId:a.id,typeName:a.name})}),this.possibleCharges.push(o),this.filteredCharges.push(o)}}filterPossibleCharges(t,e=!1){t===void 0||t===this.filteredModule&&!e?(this.filteredCharges=this.possibleCharges,this.filteredModule=void 0):(this.filteredModule=t,this.filteredCharges=this.possibleCharges.filter(r=>r.typeId==t))}filteredSlotType;originalHardwareTree=[];currentStats;onStatisticsUpdate(t){let e=(this.currentStats?.droneBandwidth??0)>0,r=(t.droneBandwidth??0)>0;this.currentStats=t,this.originalHardwareTree.length>0&&e!==r&&this._refreshTree()}filterSlotType(t=void 0,e=!1){this.originalHardwareTree.length==0&&(this.originalHardwareTree=this.hardwareTreeData);let r=t!==void 0&&this.filteredSlotType!==void 0&&t.length===this.filteredSlotType.length&&t.every(n=>this.filteredSlotType.includes(n));t===void 0||r&&!e?this.filteredSlotType=void 0:this.filteredSlotType=t,this._refreshTree()}_refreshTree(){let t=this.filteredSlotType?this.filterNodes(this.originalHardwareTree,this.filteredSlotType):this.originalHardwareTree;this.currentStats!==void 0&&!((this.currentStats.droneBandwidth??0)>0)&&(t=this._excludeSlotNodes(t,"Drone")),this.hardwareTreeData=t}_excludeSlotNodes(t,e){return t.reduce((r,n)=>{if(n.children?.length){let o=this._excludeSlotNodes(n.children,e);o.length&&r.push(pi(lt({},n),{children:o}))}else n.data?.includes(e)||r.push(n);return r},[])}filterNodes(t,e){let r=[];for(let n=0;n<t.length;n++){let o=t[n],a=o.children&&o.children.length>0,s=!1,l;if(a)l=this.filterNodes(o.children,e),s=l.length>0;else{let c=e.map(d=>this.getSlotTypeString(d));s=o.data&&c.some(d=>o.data.includes(d))}s&&r.push(a&&l?pi(lt({},o),{children:l}):o)}return r}countLeaves(t){return t.children?.length?t.children.reduce((e,r)=>e+this.countLeaves(r),0):1}get filteredSlotLabel(){return this.filteredSlotType?this.filteredSlotType.includes(5)||this.filteredSlotType.includes(6)?"Drones & Fighters":this.filteredSlotType.includes(3)?"Rig & Subsystem":this.filteredSlotType.includes(0)?"High Slot":this.filteredSlotType.includes(1)?"Mid Slot":this.filteredSlotType.includes(2)?"Low Slot":"":""}eftImportForm=new PT({eft:new FT("",[Yt.required])});importEFT(){return Et(this,null,function*(){if(!this.eftImportForm.invali
1814d){this.isLoadingHardware=!0;try{let t=yield this.theoryCrafterService.importFromEft(this.eftImportForm.value.eft);if(!t||t?.shipId==0)return;this.fit=t,yield this._applyCompatibleHardware(t.shipId)}finally{this.isLoadingHardware=!1}}})}_mapHardwareTreeNodes(t){return t.map(e=>pi(lt({},e),{image:e.id>0?vi.getTypeImageUrl(e.id,32,e.label):void 0,children:e.children?.length?this._mapHardwareTreeNodes(e.children):e.children}))}_applyCompatibleHardware(t){return Et(this,null,function*(){let e=yield this.theoryCrafterService.getCompatibleHardware(t);e&&(this.originalHardwareTree=this._mapHardwareTreeNodes(e),this.currentStats=void 0,this.filteredSlotType=void 0,this._refreshTree(),this.shownSelector=99999,this.fitStatisticsComponent?.loadStatistics(),setTimeout(()=>this.refreshCharges()))})}SlotType=ws;TheoryCrafterSelector=yy;static \u0275fac=function(e){return new(e||i)(N(lc),N(it))};static \u0275cmp=K({type:i,selectors:[["app-theory-crafter"]],viewQuery:function(e,r){if(e&1&&Ui(Cte,5)(Ste,5),e&2){let n;Ce(n=Se())&&(r.fitStatisticsComponent=n.first),Ce(n=Se())&&(r.fitRadialComponent=n.first)}},decls:44,vars:10,consts:[["shipSelectorTabs","ngbNav"],["hardwareTabs","ngbNav"],["nodeTemplate",""],["fitRadialComponent",""],["fitStatisticsComponent",""],[1,"row"],[1,"col"],[1,"alert","alert-info"],[1,"d-flex","align-items-center","justify-content-start"],[1,"fa-solid","fa-info-circle","me-2"],["href","https://discord.gg/dA3kHUv","target","_blank"],[1,"col-3","position-relative",2,"min-height","400px"],[3,"hidden"],["ngbNav","",1,"nav-tabs"],["ngbNavItem",""],["ngbNavLink",""],["ngbNavContent",""],[1,"card","border-0"],[1,"card-body",3,"ngbNavOutlet"],["ngbNavItem","",3,"shown"],[1,"d-flex","justify-content-between","align-items-center"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"mt-3"],["variant","in",1,"mb-3"],["pInputText","",1,"w-100",3,"ngModelChange","ngModel"],["for","filterText"],[2,"max-height","625px","overflow-y","auto"],[3,"nodes","config","filterText"],[1,"text-muted","small","fst-italic"],[1,"d-flex","align-items-center","w-100","justify-content-between"],[1,"d-flex","align-items-center","w-100","justify-content-between",3,"click"],[1,"small"],[1,"badge","ms-2",3,"ngClass"],[1,"d-flex","align-items-center","overflow-hidden"],[1,"img-24","me-1","flex-shrink-0",3,"src"],[1,"text-truncate"],[1,"btn","btn-primary","btn-sm","ms-2","flex-shrink-0",3,"click"],[1,"img-24","me-1",3,"src"],[1,"badge","bg-primary","ms-2"],[3,"ngSubmit","formGroup"],[1,"alert","alert-info","d-flex","justify-content-start","small","align-items-center"],["pTextarea","","rows","20","formControlName","eft",1,"w-100"],["for","eftImportTextarea"],["type","submit",1,"btn","btn-small","btn-primary","mt-2"],[1,"mt-3","filter-modules"],["ewbTooltip","Filter: Low Slot",1,"filter-module",3,"click","ngClass"],["src","/shared/assets/public/images/theory-crafter/filtericonlowslot.png",1,"img-32"],["ewbTooltip","Filter: Mid Slot",1,"filter-module",3,"click","ngClass"],["src","/shared/assets/public/images/theory-crafter/filtericonmediumslot.png",1,"img-32"],["ewbTooltip","Filter: High Slot",1,"filter-module",3,"click","ngClass"],["src","/shared/assets/public/images/theory-crafter/filtericonhighslot.png",1,"img-32"],["ewbTooltip","Filter: Rig & Subsystem Slots",1,"filter-module",3,"click","ngClass"],["src","/shared/assets/public/images/theory-crafter/filtericonrigslot.png",1,"img-32"],["ewbTooltip","Filter: Drones & Fighters",1,"filter-module",3,"click","ngClass"],["src","/shared/assets/public/images/theory-crafter/filtericondrones.png",1,"img-32"],[3,"nodes","config"],[1,"text-muted","small","mt-2"],["draggable","true",1,"cursor-move","draggable","w-100"],["draggable","true",1,"cursor-move","draggable","w-100",3,"dragstart","dragend"],[1,"btn","btn-primary","btn-sm","me-1",3,"click"],["class","row",4,"ngIf"],[1,"row","row-cols-1","charges","p-0","scroll"],[1,"col","filter-modules","mt-3"],[3,"class"],[3,"click","src","title"],[1,"col-12","mt-2"],[1,"small","text-muted"],["draggable","true",1,"col","justify-content-center","mt-2","fit-charge","cursor-move"],["draggable","true",1,"col","justify-content-center","mt-2","fit-charge","cursor-move",3,"drag","dragend"],[1,"show-tooltip",3,"src"],[1,"d-inline-block"],[1,"card"],[1,"card-body"],[3,"onUpdateFit","onUpdateSlots","showCharges","fit","theoryCraftMode","statistics"],[1,"col-3"],[3,"onStatisticsUpdate","showLevelSelector","fit"]],template:function(e,r){if(e&1&&(p(0,"div",5)(1,"div",6)(2,"div",7)(3,"div",8),T(4,"i",9),p(5,"div"),f(6,"This tool is still in "),p(7,"strong"),f(8,"very early stage of"),m(),f(9," development, only available for testing. Please report any bugs you find to us on "),p(10,"a",10),f(11,"Discord"),m(),f(12,"."),m()()()()(),p(13,"div",5)(14,"div",11),H(15,Tte,1,0,"overlay-loader"),p(16,"div",12)(17,"nav",13,0),Ut(19,14),p(20,"button",15),f(21,"Select Hull"),m(),M(22,Lte,14,4,"ng-template",16),Ht(),Ut(23,14),p(24,"button",15),f(25,"Load fit"),m(),M(26,Ote,11,1,"ng-template",16),Ht(),m(),p(27,"div",17),T(28,"div",18),m()(),p(29,"div",12)(30,"nav",13,1),Ut(32,14),p(33,"button",15),f(34,"Modules"),m(),M(35,Wte,23,18,"ng-template",16),Ht(),Ut(36,19),R("shown",function(){return r.refreshCharges()}),p(37,"button",15),f(38,"Charges"),m(),M(39,Kte,12,1,"ng-template",16),Ht(),m(),p(40,"div",17),T(41,"div",18),m()()(),H(42,$te,10,6)(43,Zte,9,0,"div",6),m()),e&2){let n=Ve(18),o=Ve(31);v(15),W(r.isLoadingHulls||r.isLoadingHardware?15:-1),v(),b("hidden",r.shownSelector!==r.TheoryCrafterSelector.ShipSelector),v(12),b("ngbNavOutlet",n),v(),b("hidden",r.shownSelector!==r.TheoryCrafterSelector.Modules),v(8),Wn("pointer-events",r.possibleCharges.length===0?"none":null),Rt("disabled",r.possibleCharges.length===0),v(4),b("ngbNavOutlet",o),v(),W(r.fit!==void 0?42:43)}},dependencies:[zr,hc,vf,fc,rp,_f,en,Ta,ft,$t,yt,lr,Ot,mt,qi,Kt,ni,Pe,ge,_t,rc,km,ui,Yi,ji],styles:['@charset "UTF-8";.scroll[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto;overflow-x:hidden}.filter-modules[_ngcontent-%COMP%]   .filter-module[_ngcontent-%COMP%]{display:inline-block;padding:4px;border:1px solid transparent;position:relative;margin-left:3px}.filter-modules[_ngcontent-%COMP%]   .filter-module[_ngcontent-%COMP%]:hover, .filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]{border-color:#5dc19c}.filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]:before, .filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]:after{position:absolute;width:15px;height:15px;right:0;bottom:0}.filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]:before{content:"\\2714";z-index:2;font-size:12px;text-align:center}.filter-modules[_ngcontent-%COMP%]   .filter-module.selected[_ngcontent-%COMP%]:after{content:" ";background-color:#5dc19c;display:inline-block}']})};var Qte=(i,t)=>t.typeId;function Xte(i,t){if(i&1&&(p(0,"span",6),f(1),m()),i&2){let e=S();v(),V("\u203A ",e.selectedCorporation.name)}}function Jte(i,t){i&1&&T(0,"overlay-loader")}function eie(i,t){if(i&1&&(p(0,"strong",19),f(1),m()),i&2){let e=S().node;v(),$(e.label)}}function tie(i,t){if(i&1&&(p(0,"span",20),f(1),m()),i&2){let e=S().node;v(),$(e.label)}}function iie(i,t){if(i&1&&H(0,eie,2,1,"strong",19)(1,tie,2,1,"span",20),i&2){let e=t.node;W(e.children!=null&&e.children.length?0:1)}}function rie(i,t){if(i&1&&(p(0,"ewb-treeview",16),M(1,iie,2,1,"ng-template",null,0,de),m()),i&2){let e=S();b("config",e.treeConfig)("nodes",e.treeData)}}function nie(i,t){i&1&&(p(0,"div",18),f(1,"Select a corporation to view its loyalty store offers."),m())}function oie(i,t){i&1&&(p(0,"tr")(1,"th",24),f(2,"Item "),T(3,"p-sortIcon",25),m(),p(4,"th",26),f(5,"LP "),T(6,"p-sortIcon",27),m(),p(7,"th",28),f(8,"ISK cost "),T(9,"p-sortIcon",29),m(),p(10,"th"),f(11,"Required"),m(),p(12,"th",30),f(13,"Jita value "),T(14,"p-sortIcon",31),m(),p(15,"th",32),f(16,"Profit "),T(17,"p-sortIcon",33),m(),p(18,"th",34),f(19,"ISK/LP "),T(20,"p-sortIcon",35),m()())}function aie(i,t){if(i&1&&(p(0,"span",40),f(1),m()),i&2){let e=S().$implicit;v(),V("\xD7",e.quantity)}}function sie(i,t){if(i&1&&(p(0,"span",46),T(1,"img",47),p(2,"span",48),f(3),m()()),i&2){let e=t.$implicit,r=S(4);b("title",e.typeName+" \xD7"+e.quantity),v(),b("src",r.EveImageHelper.getTypeImageUrl(e.typeId,32,e.typeName),re),v(2),$(e.quantity)}}function lie(i,t){if(i&1&&(p(0,"span",42),oe(1,sie,4,3,"span",46,Qte),m()),i&2){let e=S().$implicit;v(),ae(e.requiredItems)}}function cie(i,t){i&1&&(p(0,"span",43),f(1,"\u2014 none \u2014"),m())}function die(i,t){if(i&1&&(T(0,"span",41),G(1,"shortPrice")),i&2){let e=S().$implicit;b("innerHTML",Ne(1,1,e.marketValue,""),ke)}}function pie(i,t){i&1&&(p(0,"span",43),f(1,"\u2014"),m())}function uie(i,t){if(i&1&&(T(0,"span",41),G(1,"shortPrice")),i&2){let e=S().$implicit;Rt("lp-store__profit",e.profit>0)("lp-store__loss",e.profit<0),b("innerHTML",Ne(1,5,e.profit,""),ke)}}function mie(i,t){i&1&&(p(0,"span",43),f(1,"\u2014"),m())}function fie(i,t){if(i&1&&(p(0,"span",45),f(1),G(2,"numericFormatter"),m()),i&2){let e=S().$implicit;v(),$(ee(2,1,e.iskPerLp," ",0))}}function hie(i,t){i&1&&(p(0,"span",43),f(1,"\u2014"),m())}function gie(i,t){if(i&1&&(p(0,"tr")(1,"td",36)(2,"a",37),T(3,"img",38),p(4,"span",39),f(5),m(),H(6,aie,2,1,"span",40),m()(),p(7,"td"),f(8),G(9,"numericFormatter"),m(),T(10,"td",41),G(11,"shortPrice"),p(12,"td"),H(13,lie,3,0,"span",42)(14,cie,2,0,"span",43),m(),p(15,"td"),H(16,die,2,4,"span",41)(17,pie,2,0,"span",43),m(),p(18,"td"),H(19,uie,2,8,"span",44)(20,mie,2,0,"span",43),m(),p(21,"td"),H(22,fie,3,5,"span",45)(23,hie,2,0,"span",43),m()()),i&2){let e=t.$implicit,r=S(2);v(2),b("routerLink",r.marketLink(e.typeId)),v(),b("src",r.EveImageHelper.getTypeImageUrl(e.typeId,32,e.typeName),re),v(2),$(e.typeName),v(),W(e.quantity>1?6:-1),v(2),$(ee(9,10,e.lpCost," ",0)),v(2),b("innerHTML",Ne(11,14,e.iskCost,""),ke),v(3),W(e.requiredItems.length?13:14),v(3),W(e.hasPrice?16:17),v(3),W(e.hasPrice?19:20),v(3),W(e.hasPrice&&e.lpCost>0?22:23)}}function vie(i,t){i&1&&(p(0,"tr")(1,"td",49),f(2,"No offers found"),m()())}function _ie(i,t){if(i&1&&(p(0,"div",21),f(1),m(),p(2,"p-table",22),M(3,oie,21,0,"ng-template",null,1,de)(5,gie,24,17,"ng-template",null,2,de)(7,vie,3,0,"ng-template",23),m()),i&2){let e=S();v(),V("OFFERS (",e.filteredOffers.length,") \xB7 BEST ISK/LP"),v(),b("value",e.filteredOffers)("loading",e.offersLoading)("sortOrder",-1)("paginator",e.filteredOffers.length>50)("rows",50)}}var Xf=class i{constructor(t,e,r){this.fb=t;this.grpcService=e;this.loaderService=r;this.filterForm=this.fb.group({itemSearch:[""],selectedHub:[60003760],selectedShow:["all"]})}hubs=[];showOptions=[{label:"All items",value:"all"},{label:"Hide blueprints",value:"noBp"},{label:"Profitable only",value:"profit"}];filterForm;treeData=[];treeConfig={showImages:!0,filterEnabled:!1,nodeClick:t=>this.onCorporationSelected(t)};corporationsLoading=!0;offersLoading=!1;selectedCorporation=null;offers=[];EveImageHelper=vi;destroy$=new Ze;ngOnInit(){this.hubs=this.loaderService.getTradingHubs().map(t=>({label:`${t.name} (${t.region})`,value:t.stationId})),this.hubs.length&&this.filterForm.get("selectedHub").setValue(this.hubs[0].value,{emitEvent:!1}),this.filterForm.get("selectedHub").valueChanges.pipe(Zr(this.destroy$)).subscribe(()=>
1814this.loadOffers()),this.grpcService.getLoyaltyStoreCorporations().subscribe({next:t=>{this.treeData=this.buildFactionTree(t.getCorporationsList().map(e=>e.toObject())),this.corporationsLoading=!1},error:()=>this.corporationsLoading=!1})}buildFactionTree(t){let e=new Map;for(let r of t){let n=r.factionName||"Other";e.has(n)||e.set(n,{factionId:r.factionId,corporations:[]}),e.get(n).corporations.push(r)}return[...e.entries()].sort((r,n)=>r[0].localeCompare(n[0])).map(([r,n])=>({id:n.factionId,label:r,children:n.corporations.sort((o,a)=>o.corporationName.localeCompare(a.corporationName)).map(o=>({id:o.corporationId,label:`${o.corporationName} (${o.offerCount})`,image:vi.getCorporationUrl(o.corporationId,32),data:{corporationId:o.corporationId,corporationName:o.corporationName}}))}))}onCorporationSelected(t){t.data&&(this.selectedCorporation={id:t.data.corporationId,name:t.data.corporationName},this.loadOffers())}loadOffers(){this.selectedCorporation&&(this.offersLoading=!0,this.grpcService.getLoyaltyStoreOffers(this.selectedCorporation.id,this.filterForm.value.selectedHub).subscribe({next:t=>{this.offers=t.getOffersList().map(e=>{let r=e.toObject();return{offerId:r.offerId,typeId:r.typeId,typeName:r.typeName,quantity:r.quantity,lpCost:r.lpCost,iskCost:r.iskCost,akCost:r.akCost,marketValue:r.marketValue,profit:r.profit,iskPerLp:r.iskPerLp,hasPrice:r.hasPrice,requiredItems:r.requiredItemsList.map(n=>({typeId:n.typeId,typeName:n.typeName,quantity:n.quantity}))}}),this.offersLoading=!1},error:()=>this.offersLoading=!1}))}get filteredOffers(){let{itemSearch:t,selectedShow:e}=this.filterForm.value,r=(t??"").trim().toLowerCase();return this.offers.filter(n=>!(r&&!n.typeName.toLowerCase().includes(r)||e==="noBp"&&n.typeName.endsWith(" Blueprint")||e==="profit"&&!(n.hasPrice&&n.profit>0)))}marketLink(t){return["/market","sell",t]}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static \u0275fac=function(e){return new(e||i)(N(cr),N(Nr),N(Ea))};static \u0275cmp=K({type:i,selectors:[["app-lp-store"]],decls:25,vars:6,consts:[["nodeTemplate",""],["header",""],["body",""],[1,"lp-store"],[1,"lp-store__header","d-flex","justify-content-between","align-items-center","gap-4","pb-3","mb-3",3,"formGroup"],[1,"lp-store__title","m-0","fw-semibold"],[1,"lp-store__crumb","fw-normal"],[1,"d-flex","gap-3"],[1,"lp-store__filter--search","d-flex","flex-column","gap-1"],[1,"lp-store__filter-label"],["pInputText","","type","text","formControlName","itemSearch","placeholder","Search items","autocomplete","off",1,"w-100"],[1,"d-flex","flex-column","gap-1"],["formControlName","selectedHub","optionLabel","label","optionValue","value","appendTo","body","styleClass","lp-store__select",3,"options"],["formControlName","selectedShow","optionLabel","label","optionValue","value","appendTo","body","styleClass","lp-store__select",3,"options"],[1,"d-flex","gap-4"],[1,"lp-store__sidebar","flex-shrink-0"],[3,"config","nodes"],[1,"lp-store__main","flex-grow-1"],[1,"lp-store__empty","text-center","py-5"],[1,"lp-store__faction"],[1,"lp-store__corp"],[1,"lp-store__offers-head","text-uppercase","mb-2"],["sortField","iskPerLp","stripedRows","",1,"lp-store__table","w-100","small",3,"value","loading","sortOrder","paginator","rows"],["pTemplate","emptymessage"],["pSortableColumn","typeName"],["field","typeName",1,"float-end"],["pSortableColumn","lpCost"],["field","lpCost",1,"float-end"],["pSortableColumn","iskCost"],["field","iskCost",1,"float-end"],["pSortableColumn","marketValue"],["field","marketValue",1,"float-end"],["pSortableColumn","profit"],["field","profit",1,"float-end"],["pSortableColumn","iskPerLp"],["field","iskPerLp",1,"float-end"],[1,"lp-store__item"],[1,"lp-store__item-link","d-inline-flex","align-items-center","gap-2",3,"routerLink"],["alt","",1,"lp-store__item-icon",3,"src"],[1,"lp-store__item-name"],[1,"lp-store__qty"],[3,"innerHTML"],[1,"d-inline-flex","flex-wrap","gap-1"],[1,"lp-store__muted"],[3,"lp-store__profit","lp-store__loss","innerHTML"],[1,"lp-store__iskperlp"],[1,"lp-store__required-item",3,"title"],["alt","",1,"lp-store__required-icon",3,"src"],[1,"lp-store__required-qty"],["colspan","100%",1,"lp-store__muted"]],template:function(e,r){e&1&&(p(0,"div",3)(1,"div",4)(2,"h1",5),f(3," Loyalty Point Store "),H(4,Xte,2,1,"span",6),m(),p(5,"div",7)(6,"label",8)(7,"span",9),f(8,"Search"),m(),T(9,"input",10),m(),p(10,"label",11)(11,"span",9),f(12,"Market region"),m(),T(13,"p-select",12),m(),p(14,"label",11)(15,"span",9),f(16,"Show"),m(),T(17,"p-select",13),m()()(),p(18,"div",14)(19,"aside",15),H(20,Jte,1,0,"overlay-loader")(21,rie,3,2,"ewb-treeview",16),m(),p(22,"main",17),H(23,nie,2,0,"div",18)(24,_ie,8,6),m()()()),e&2&&(v(),b("formGroup",r.filterForm),v(3),W(r.selectedCorporation?4:-1),v(9),b("options",r.hubs),v(4),b("options",r.showOptions),v(3),W(r.corporationsLoading?20:21),v(3),W(r.selectedCorporation?24:23))},dependencies:[$e,ui,Ot,mt,qi,Yi,ji,xt,Dt,Gi,fo,ho,dr,ni,Ta,ft,At,Wt],styles:["[_nghost-%COMP%]{display:block}.lp-store[_ngcontent-%COMP%]{max-width:1320px;margin:0 auto;padding:20px 18px;color:#fff}.lp-store__header[_ngcontent-%COMP%]{border-bottom:1px solid rgba(255,255,255,.08)}.lp-store__title[_ngcontent-%COMP%]{font-size:22px;transform:translateY(8px)}.lp-store__crumb[_ngcontent-%COMP%]{color:#8a98a1}.lp-store__filter-label[_ngcontent-%COMP%]{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#8a98a1}.lp-store__filter--search[_ngcontent-%COMP%]{width:220px}.lp-store__sidebar[_ngcontent-%COMP%]{width:234px}.lp-store__main[_ngcontent-%COMP%]{min-width:0}.lp-store__faction[_ngcontent-%COMP%]{color:#ffffffde;font-weight:600}.lp-store__corp[_ngcontent-%COMP%]{color:#fff}.lp-store__empty[_ngcontent-%COMP%]{color:#8a98a1}.lp-store__offers-head[_ngcontent-%COMP%]{color:#8a98a1;font-size:12px;letter-spacing:.04em}.lp-store__item-link[_ngcontent-%COMP%]{color:#fff;text-decoration:none}.lp-store__item-link[_ngcontent-%COMP%]:hover{color:#58c9af}.lp-store__item-icon[_ngcontent-%COMP%]{width:36px;height:36px}.lp-store__qty[_ngcontent-%COMP%]{color:#8a98a1}.lp-store__required-item[_ngcontent-%COMP%]{position:relative;display:inline-block}.lp-store__required-icon[_ngcontent-%COMP%]{width:22px;height:22px}.lp-store__required-qty[_ngcontent-%COMP%]{position:absolute;right:-4px;bottom:-4px;font-size:10px;color:#ffffffde;background:#0009;border-radius:3px;padding:0 2px}.lp-store__profit[_ngcontent-%COMP%]{color:#5dd67a}.lp-store__loss[_ngcontent-%COMP%]{color:#d9655f}.lp-store__iskperlp[_ngcontent-%COMP%]{color:#58c9af;font-weight:600}.lp-store__muted[_ngcontent-%COMP%]{color:#6c7780}[_nghost-%COMP%]     .lp-store__table .p-datatable-table{background:transparent}[_nghost-%COMP%]     .lp-store__table .p-datatable-thead>tr>th{background:transparent;color:#ffffffde;font-weight:600;border-bottom:1px solid rgba(255,255,255,.08);text-align:start}[_nghost-%COMP%]     .lp-store__table .p-datatable-tbody>tr{background:transparent;color:#fff}[_nghost-%COMP%]     .lp-store__table .p-datatable-tbody>tr:nth-child(2n){background:#0000001a}[_nghost-%COMP%]     .lp-store__table .p-datatable-tbody>tr:hover{background:#ffffff09}[_nghost-%COMP%]     .lp-store__table .p-datatable-tbody>tr>td{border-bottom:1px solid rgba(255,255,255,.05);text-align:start}[_nghost-%COMP%]     .lp-store__table .p-datatable-thead>tr>th.p-datatable-column-sorted, [_nghost-%COMP%]     .lp-store__table .p-datatable-tbody>tr>td.p-datatable-column-sorted{background:#58c9af29}[_nghost-%COMP%]     .lp-store__table .p-sorticon.p-datatable-sort-icon.p-icon{color:#8a98a1}[_nghost-%COMP%]     .lp-store__table .p-datatable-column-sorted .p-sorticon{color:#58c9af}[_nghost-%COMP%]     .lp-store__table .p-paginator{background:transparent;justify-content:flex-end}[_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-page, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-first, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-prev, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-next, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-last{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;min-width:2rem;height:2rem;color:#cfd6db}[_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-page:not(.p-disabled):hover, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-first:not(.p-disabled):hover, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-prev:not(.p-disabled):hover, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-next:not(.p-disabled):hover, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-last:not(.p-disabled):hover{background:transparent;color:#58c9af}[_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-page.p-disabled, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-first.p-disabled, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-prev.p-disabled, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-next.p-disabled, [_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-last.p-disabled{opacity:.3}[_nghost-%COMP%]     .lp-store__table .p-paginator .p-paginator-page.p-paginator-page-selected{background:transparent;color:#58c9af;font-weight:700;border-bottom-color:#58c9af}"]})};var Jf=class i{constructor(t){this.fb=t;this.filterForm=this.fb.group({query:["",[]]})}OnFilterQuery=new he;filterForm;submitFilter(){let t=new Xl;t.search=this.filterForm.value.query,this.OnFilterQuery.emit(t)}static \u0275fac=function(e){return new(e||i)(N(cr))};static \u0275cmp=K({type:i,selectors:[["pcb-filter"]],outputs:{OnFilterQuery:"OnFilterQuery"},decls:11,vars:1,consts:[[3,"ngSubmit","formGroup"],[1,"card"],[1,"card-body"],["variant","in"],["pInputText","","formControlName","query","id","query",1,"w-100"],["for","query"],["type","submit",1,"mt-3","btn","btn-primary","btn-lg","w-100"]],template:function(e,r){e&1&&(p(0,"form",0),R("ngSubmit",function(){return r.submitFilter()}),p(1,"div",1)(2,"div",2)(3,"h5"),f(4,"Basic filter"),m(),p(5,"p-floatlabel",3),T(6,"input",4),p(7,"label",5),f(8,"Query"),m()()()(),p(9,"button",6),f(10,"Filter results"),m()()),e&2&&b("formGroup",r.filterForm)},dependencies:[$t,ui,lr,Ot,mt,qi,Yi,ji,ni],encapsulation:2})};var eh=class i{constructor(t){this.pilotConfigurationClient=t;let e=new Xl;this.OnFilterQueryCallback(e)}hasResults=!1;isLoading=!1;results=[];skip=0;take=30;totalRecords=0;currentPage=1;totalPages=1;query;OnFilterQueryCallback(t){this.query=t,this.loadPilotConfigurations(0,this.take)}onPageChange(t){this.skip=t.first,this.take=t.rows,this.currentPage=t.page+1,this.loadPilotConfigurations(this.skip,this.take)}loadPilotConfigurations(t,e){this.query!==void 0&&(this.isLoading=!0,t==0&&(this.currentPage=1),this.query.skip=t,this.query.take=e,this.query.onlyOwned=!1,this.pilotConfigurationClient.getAll(this.query).subscribe(r=>{r.success&&(window.scrollTo(0,0),this.hasResults=!0,this.results=r.results??[],this.totalRecords=r.totalResultCount??0,this.totalPages=Math.ceil(this.totalRecords/this.take)==0?1:Math.ceil(this.totalRecords/this.take)),this.isLoading=!1}))}static \u0275fac=function(e){return new(e||i)(N(ha))};static \u0275cmp=K({type:i,selectors:[["app-pilot-configuration-browser"]],decls:13,vars:6,consts:[["paginator",""],[1,"row"],[1,"col","col-xxl-2","col-xl-2","col-lg-3","col-md-4"],[3,"OnFilterQuery"],[1,"col"],[1,"card"],[1,"card-body"],[3,"pilotConfigurations","enableRouterLink"],["currentPageReportTemplate","Displaying page {currentPage} of {totalPages}",3,"onPageChange","showCurrentPageReport","rows","totalRecords","pageLinkSize"]],template:function(e,r){e&1&&(p(0,"div",1)(1,"div",2)(2,"pcb-filter",3),R("OnFilterQuery",function(o){return r.OnFilterQueryCallback(o)}),m()(),p(3,"div",4)(4,"div",5)(5,"div",6)(6,"h5"),f(7,"Pilot Configuration Browser - Results"),m(),T(8,"pilot-configuration-table",7),p(9,"div",1)(10,"div",4)(11,"p-paginator",8,0),R("onPageChange",function(o){return r.onPageChange(o)}),m()()()()()()()),e&2&&(v(8),b("pilotConfigurations",r.results)("enableRouterLink",!0),v(3),b("showCurrentPageReport",!0)("rows",r.take)("totalRecords",r.totalRecords)("pageLinkSize",6))},dependencies:[Jf,xt,Vr,pE],encapsulation:2})};var th=Ri(pr());var bie=i=>["/pilot-configuration",i,"edit"],yie=()=>[1,2,3,4,5],xie=(i,t)=>({trained:i,untrained:t}),Cie=(i,t)=>t.name,Sie=(i,t)=>t.typeId??t.name;function wie(i,t){i&1&&(p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span",5),f(6,"Loading pilot configuration..."),m()()()()(),p(7,"div",6)(8,"div",2)(9,"div",3),T(10,"overlay-loader"),p(11,"div",7),f(12,"Loa
1814ding pilot configuration.."),m()()()(),p(13,"div",8)(14,"div",2)(15,"div",3),T(16,"overlay-loader"),p(17,"div",7),f(18,"Loading pilot configuration.."),m()()()()())}function Tie(i,t){if(i&1&&(p(0,"button",10),T(1,"i",24),f(2,"Edit"),m()),i&2){let e=S(2);b("routerLink",te(1,bie,e.pilotConfigurationId))}}function Eie(i,t){if(i&1&&(p(0,"markdown"),f(1),m()),i&2){let e=S(2);v(),$(e.pilotConfiguration==null?null:e.pilotConfiguration.description)}}function kie(i,t){i&1&&(p(0,"div",18),f(1,"The uploader chose not to include a description. If you want more information we suggest you to ask the uploader for information or ask the uploader to add an description."),m())}function Iie(i,t){i&1&&(p(0,"div",19)(1,"span"),T(2,"i",25),m(),p(3,"div")(4,"strong"),f(5,"Note:"),m(),f(6," This pilot configuration has been marked as "),p(7,"em"),f(8,"hidden"),m(),f(9," by the uploader. This means that the pilot configuration could be obsolete or that it has been replaced by another one! "),m()())}function Die(i,t){i&1&&(p(0,"div",22),f(1,"No skills configured."),m())}function Mie(i,t){if(i&1&&T(0,"button",32),i&2){let e=t.$implicit,r=S().$implicit;b("ngClass",It(1,xie,r.level>=e,r.level!=e))}}function Pie(i,t){if(i&1&&(p(0,"div",4)(1,"span"),f(2),m(),p(3,"div",31),oe(4,Mie,1,4,"button",32,Te),m()()),i&2){let e=t.$implicit;v(2),$(e.name),v(),b("ewbTooltip",Q("Required level: ",e.level)),v(),ae(be(3,yie))}}function Fie(i,t){if(i&1&&(p(0,"div",30),oe(1,Pie,6,4,"div",4,Sie),m()),i&2){let e=S().$implicit;v(),ae(e.skills)}}function Rie(i,t){if(i&1){let e=J();p(0,"div",26)(1,"div",27)(2,"span",28),R("click",function(){let n=L(e).$implicit,o=S(3);return O(o.toggleCategory(n.name??""))}),T(3,"i",29),f(4),m(),H(5,Fie,3,0,"div",30),m()()}if(i&2){let e=t.$implicit,r=S(3);v(3),b("ngClass",r.isCategoryExpanded(e.name??"")?"fa-chevron-down":"fa-chevron-right"),v(),V(" ",e.name," "),v(),W(r.isCategoryExpanded(e.name??"")?5:-1)}}function Lie(i,t){if(i&1&&(p(0,"div",23),oe(1,Rie,6,3,"div",26,Cie),m()),i&2){let e=S(2);v(),ae(e.pilotConfiguration==null?null:e.pilotConfiguration.skillTree)}}function Oie(i,t){i&1&&(p(0,"div",22),f(1,"No implants configured."),m())}function Aie(i,t){if(i&1&&(p(0,"div",33)(1,"div",34),T(2,"img",35),m(),p(3,"div")(4,"div"),f(5),m(),p(6,"div"),f(7),m()()()),i&2){let e=t.$implicit;v(2),b("src",Q("https://images.evetech.net/types/",e.implantId,"/icon?size=64"),re)("alt",De(e.implantName)),v(3),$(e.implantName),v(2),V("Slot: ",e.slot)}}function Bie(i,t){if(i&1&&oe(0,Aie,8,6,"div",33,Te),i&2){let e=S(2);ae(e.getImplantsSortedByName())}}function Nie(i,t){if(i&1){let e=J();p(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),f(5),p(6,"div",9),H(7,Tie,3,3,"button",10),m()()()()(),p(8,"div",6)(9,"div",11)(10,"div",12),T(11,"img",13),p(12,"h5",14)(13,"a",15),f(14),m()(),p(15,"div",16)(16,"a",17),f(17,"zKillboard"),m(),f(18," \u2022 "),p(19,"a",17),f(20,"EVE Wreckbench"),m(),f(21," \u2022 "),p(22,"a",17),f(23,"Abyss Tracker"),m(),f(24," \u2022 "),p(25,"a",17),f(26,"EVE Journal"),m()()()(),p(27,"div",11)(28,"div",2)(29,"div",3)(30,"h5"),f(31,"Description"),m(),H(32,Eie,2,1,"markdown")(33,kie,2,0,"div",18),m()()()(),p(34,"div",8),H(35,Iie,10,0,"div",19),p(36,"div",2)(37,"div",3)(38,"div",4)(39,"h5"),f(40,"Skills"),m(),p(41,"div")(42,"button",20),R("click",function(){L(e);let n=S();return O(n.copySkillsToClipboard())}),T(43,"i",21),f(44,"Copy as Skill Plan"),m()()(),H(45,Die,2,0,"div",22)(46,Lie,3,0,"div",23),m()()(),p(47,"div",6)(48,"div",2)(49,"div",3)(50,"h5"),f(51,"Implants"),m(),H(52,Oie,2,0,"div",22)(53,Bie,2,0),m()()()()}if(i&2){let e=S();v(5),V(" ",e.pilotConfiguration==null?null:e.pilotConfiguration.name," "),v(2),W(e.pilotConfiguration!=null&&e.pilotConfiguration.isOwner?7:-1),v(4),b("src",Q("https://images.evetech.net/characters/",e.pilotConfiguration==null?null:e.pilotConfiguration.uploaderId,"/portrait?size=256"),re)("alt",De(e.pilotConfiguration==null?null:e.pilotConfiguration.uploaderName)),v(2),b("routerLink",Q("/u/",e.pilotConfiguration==null?null:e.pilotConfiguration.uploaderSlug)),v(),$(e.pilotConfiguration==null?null:e.pilotConfiguration.uploaderName),v(2),b("href",Q("https://zkillboard.com/character/",e.pilotConfiguration==null?null:e.pilotConfiguration.uploaderId,"/"),re),v(3),b("href",Q("https://evewreckbench.com/character/",e.pilotConfiguration==null?null:e.pilotConfiguration.uploaderId,"/"),re),v(3),b("href",Q("https://abysstracker.com/u/",e.pilotConfiguration==null?null:e.pilotConfiguration.uploaderSlug,"/"),re),v(3),b("href",Q("https://evejournal.com/u/",e.pilotConfiguration==null?null:e.pilotConfiguration.uploaderSlug,"/"),re),v(7),W((e.pilotConfiguration==null?null:e.pilotConfiguration.description)!==null&&(e.pilotConfiguration==null?null:e.pilotConfiguration.description)!==""?32:33),v(3),W((e.pilotConfiguration==null?null:e.pilotConfiguration.state)==e.GenericState.Hidden?35:-1),v(10),W((e.pilotConfiguration==null?null:e.pilotConfiguration.skillTree)==null||(e.pilotConfiguration==null||e.pilotConfiguration.skillTree==null?null:e.pilotConfiguration.skillTree.length)==0?45:46),v(7),W((e.pilotConfiguration==null?null:e.pilotConfiguration.implants)==null||(e.pilotConfiguration==null||e.pilotConfiguration.implants==null?null:e.pilotConfiguration.implants.length)==0?52:53)}}var ih=class i{constructor(t,e,r){this.pilotConfigurationClient=t;this.router=e;this.clipboard=r}pilotConfigurationId;isLoading=!0;pilotConfiguration;skillTree=[];expandedCategories=new Set;ngOnInit(){this.pilotConfigurationId?this.pilotConfigurationClient.getById(this.pilotConfigurationId).subscribe(t=>{t.success?(this.pilotConfiguration=t.result,this.initializeExpandedCategories(),this.isLoading=!1):th.default.fire({title:"Error",text:t.message??"",icon:"error",showConfirmButton:!1,timerProgressBar:!0,timer:2e4}).then(()=>{this.router.navigate(["/pilot-configuration/browse"])})}):th.default.fire({title:"Error",text:"Pilot configuration ID is required",icon:"error",showConfirmButton:!1,timerProgressBar:!0,timer:2e3}).then(()=>{this.router.navigate(["/pilot-configuration/browse"])})}copySkillsToClipboard(){if(this.pilotConfiguration==null||this.pilotConfiguration.skillTree==null)return;let t="";
1814this.pilotConfiguration.skillTree.forEach(e=>{e.skills?.forEach(r=>t+=`${r.name} ${r.level}
1815`)}),this.clipboard.copy(t),th.default.fire({title:"Skills copied to clipboard",icon:"success",showConfirmButton:!1,timer:1500})}getImplantsSortedByName(){return this.pilotConfiguration==null||this.pilotConfiguration.implants==null?[]:this.pilotConfiguration.implants.slice().sort((t,e)=>(t.implantName??"").localeCompare(e.implantName??""))}toggleCategory(t){this.expandedCategories.has(t)?this.expandedCategories.delete(t):this.expandedCategories.add(t)}isCategoryExpanded(t){return this.expandedCategories.has(t)}initializeExpandedCategories(){this.expandedCategories.clear(),(this.pilotConfiguration?.skillTree??[]).slice(0,1).forEach(t=>{t.name&&this.expandedCategories.add(t.name)})}FittingState=Vo;GenericState=eT;static \u0275fac=function(e){return new(e||i)(N(ha),N(bt),N(Ki))};static \u0275cmp=K({type:i,selectors:[["app-pilot-configuration-detail"]],inputs:{pilotConfigurationId:[0,"pcId","pilotConfigurationId"]},decls:2,vars:1,consts:[[1,"row"],[1,"col-12","mb-4"],[1,"card"],[1,"card-body"],[1,"d-flex","justify-content-between","align-items-center"],[1,"fit-title"],[1,"col-12","col-md-4","col-lg-3"],[1,"py-5","text-center","text-muted"],[1,"col"],[1,"actions"],[1,"btn","btn-primary","btn-sm","ms-2",3,"routerLink"],[1,"card","mb-3"],[1,"card-body","character-profile","text-center"],[1,"border","border-2","border-white","rounded-circle",3,"src","alt"],[1,"mb-0"],[1,"text-dark","mb-1","d-inline-block",3,"routerLink"],[1,"mt-1"],["target","_blank","rel","nofollow",1,"text-muted",3,"href"],[1,"alert","alert-warning","small"],[1,"alert","alert-warning","d-flex","align-items-center"],[1,"btn","btn-primary","btn-sm",3,"click"],[1,"fa-duotone","fa-solid","fa-clipboard","me-1"],[1,"text-muted"],[1,"skill-tree-masonry"],[1,"fa-solid","fa-pen-to-square","me-1"],[1,"fa-solid","fa-info-circle","me-3"],[1,"skill-tree-category","card","bg-black","bg-opacity-50"],[1,"card-body","p-2"],[1,"skill-category-header","h6","text-uppercase","font-weight-bold","mb-0",3,"click"],[1,"fa-solid","fa-fw","me-1",3,"ngClass"],[1,"mt-2"],[1,"d-inline-flex","skill-level-selector-container",3,"ewbTooltip"],["type","button",1,"level-selector",3,"ngClass"],[1,"d-flex","justify-content-start","align-items-center"],[1,"me-3"],[1,"border","rounded-circle","border-1","border-white","img-32",3,"src","alt"]],template:function(e,r){e&1&&H(0,wie,19,0,"div",0)(1,Nie,54,21,"div",0),e&2&&W(r.isLoading?0:1)},dependencies:[ft,Cn,$e,_t,Pe],styles:[".skill-category-header[_ngcontent-%COMP%]{display:block;cursor:pointer;-webkit-user-select:none;user-select:none}.skill-category-header[_ngcontent-%COMP%]:hover{opacity:.75}"]})};var Uk=[{path:"",component:ki,data:{title:"Home"}},{path:"",component:tf,canActivate:[sk],loadChildren:()=>import("./chunk-WBI5DJRS.js"),data:{title:"EVE Workbench"}},{path:"oauth-verify",component:ef,data:{title:"OAuth Verify"}}
1815,{path:"tools/appraisal",component:ep,data:{title:"Appraisal"}},{path:"tools/appraisal/:id",component:ep,data:{title:"Appraisal"}},{path:"tools/refinery",component:lf,data:{title:"Refinery"}},{path:"tools/theory-crafter",component:Qf,data:{title:"Theory Crafter"}},{path:"tools/lp-store",component:Xf,data:{title:"Loyalty Point Store"}},{path:"market/:orderType/:id",component:uc,data:{title:"Market Browser"}},{path:"market/:orderType/:regionId/:id",component:uc,data:{title:"Market Browser"}},{path:"market/:orderType/:regionId/:locationId/:id",component:uc,data:{title:"Market Browser"}},{path:"pilot-configurations",redirectTo:"/pilot-configuration/browse"},{path:"pilot-configuration/browse",component:eh,data:{title:"Pilot Configuration Browser"}},{path:"pilot-configuration/:pcId",component:ih,data:{title:"Pilot Configuration Detail"}},{path:"pilot-configuration",redirectTo:"/pilot-configuration/browse"},{path:"market/:id",redirectTo:"/market/sell/:id"},{path:"market/:regionId/:id",redirectTo:"/market/sell/:regionId/:id"},{path:"market/:regionId/:locationId/:id",redirectTo:"/market/sell/:regionId/:locationId/:id"},{path:"market",redirectTo:"/market/sell/44992"},{path:"fits",component:mf,data:{title:"Fit Browser"}},{path:"fit/:id",component:gc,data:{title:"Fit Detail"}},{path:"fitting/:shipName/:id",redirectTo:"/fit/:id"},{path:"fitting/:hullId",redirectTo:({params:i})=>{let t=ie(bt),e=i.hullId;return e?t.createUrlTree(["/fits"],{queryParams:{ship:e}}):"fits"}},{path:"fleets",component:Uf,data:{title:"Fleet Browser"}},{path:"fleet/:fleetId",component:Nf,data:{title:"Fleet Detail"}},{path:"fleets/:fleetId",redirectTo:"/fleet/:fleetId"},{path:"import/killmail/:id/:hash",component:Ff,data:{title:"Import Killmail"}},{path:"tools/trade-tool",component:vc,data:{title:"Trade Tool"}},{path:"tradetool",redirectTo:"/tools/trade-tool"},{path:"u",component:Rf,data:{title:"Profiles"}},{path:"u/:slug/active-fit",component:_c,data:{title:"Active Fit"}},{path:"u/:slug/promoted-fit",component:Af,data:{title:"Promoted Fit"}},{path:"u/:slug/promoted-fleet",component:Vf,data:{title:"Promoted Fleet"}},{path:"u/:slug",component:Lf,data:{title:"Profiles"}},{path:"updates",component:Zf,data:{title:"Updates"}},{path:"partners",component:Hf,data:{title:"EVE Workbench Partners"}},{path:"support-us",component:qf,data:{title:"Support us"}},{path:"team",component:Yf,data:{title:"Team"}},{path:"about/team",redirectTo:"/team"},{path:"about",redirectTo:"/team"},{path:"privacy",component:Kf,data:{title:"Privacy Policy"}},{path:"home/privacy",redirectTo:"/privacy"},{path:"banner/:id",component:jf,data:{title:"Redirect to Website"}},{path:"**",component:wn,data:{title:"Page Not Found"}}];var Hk=(i,t)=>{if(i.url.includes("/Auth/KeepAlive"))return t(i);let e=ie(mi);return t(i).pipe(Gu(r=>r.status!==401?Ov(()=>r):Fd(e.keepAlive()).pipe(oo(n=>{if(n!=="authenticated")return Ov(()=>r);let o=localStorage.getItem("access_token"),a=o?i.clone({setHeaders:{Authorization:`Bearer ${o}`}}):i;return t(a)}))))};var BS={};$r(BS,{Axis:()=>tv,ChartView:()=>sr,ComponentModel:()=>wt,ComponentView:()=>Ni,List:()=>zg,Model:()=>Nt,PRIORITY:()=>KC,SeriesModel:()=>Rr,color:()=>Fh,connect:()=>uce,dataTool:()=>yce,dependencies:()=>Kle,disConnect:()=>mce,disconnect:()=>DF,dispose:()=>fce,env:()=>Ue,extendChartView:()=>Nde,extendComponentModel:()=>Ode,extendComponentView:()=>Ade,extendSeriesModel:()=>Bde,format:()=>FS,getCoordinateSystemDimensions:()=>gce,getInstanceByDom:()=>QC,getInstanceById:()=>hce,getMap:()=>bce,graphic:()=>PS,helper:()=>SS,init:()=>pce,innerDrawElementOnCanvas:()=>_d,matrix:()=>Ko,number:()=>DS,parseGeoJSON:()=>ev,parseGeoJson:()=>ev,registerAction:()=>ts,registerCoordinateSystem:()=>tS,registerCustomSeries:()=>vce,registerLayout:()=>iS,registerLoading:()=>Bg,registerLocale:()=>O0,registerMap:()=>nS,registerPostInit:()=>JC,registerPostUpdate:()=>eS,registerPreprocessor:()=>Og,registerProcessor:()=>Ag,registerTheme:()=>XC,registerTransform:()=>oS,registerUpdateLifecycle:()=>hu,registerVisual:()=>aa,setCanvasCreator:()=>_ce,setPlatformAPI:()=>sh,throttle:()=>Fl,time:()=>MS,use:()=>Lr,util:()=>RS,vector:()=>yo,version:()=>Yle,zrUtil:()=>et,zrender:()=>jh});var dI=Ri(cI(),1),{__extends:xe,__assign:gLe,__rest:vLe,__decorate:_Le,__param:bLe,__metadata:yLe,__awaiter:xLe,__generator:CLe,__exportStar:SLe,__createBinding:wLe,__values:TLe,__read:ELe,__spread:kLe,__spreadArrays:ILe,__spreadArray:DLe,__await:MLe,__asyncGenerator:PLe,__asyncDelegator:FLe,__asyncValues:RLe,__makeTemplateOb
1815ject:LLe,__importStar:OLe,__importDefault:ALe,__classPrivateFieldGet:BLe,__classPrivateFieldSet:NLe}=dI.default;var jh={};$r(jh,{dispose:()=>Cne,disposeAll:()=>Sne,getElementSSRData:()=>Tne,getInstance:()=>wne,init:()=>qh,registerPainter:()=>T1,registerSSRDataGetter:()=>E1,version:()=>Ene});var Vie=(function(){function i(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return i})(),zie=(function(){function i(){this.browser=new Vie,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return i})(),Fa=new zie;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fa.wxa=!0,Fa.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Fa.worker=!0:!Fa.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Fa.node=!0,Fa.svgSupported=!0):Uie(navigator.userAgent,Fa);function Uie(i,t){var e=t.browser,r=i.match(/Firefox\/([\d.]+)/),n=i.match(/MSIE\s([\d.]+)/)||i.match(/Trident\/.+?rv:(([\d.]+))/),o=i.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(i);r&&(e.firefox=!0,e.version=r[1]),n&&(e.ie=!0,e.version=n[1]),o&&(e.edge=!0,e.version=o[1],e.newEdge=+o[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in l||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var Ue=Fa;var et={};$r(et,{EPSILON:()=>nre,HashMap:()=>gI,RADIAN_TO_DEGREE:()=>dh,assert:()=>Ii,bind:()=>rt,clone:()=>He,concatArray:()=>Iy,createCanvas:()=>Jie,createHashMap:()=>Me,createObject:()=>qo,curry:()=>Bt,defaults:()=>qe,disableUserSelect:()=>dp,each:()=>P,eqNaN:()=>Go,extend:()=>se,filter:()=>Gt,find:()=>Ey,guid:()=>sp,hasOwn:()=>Li,indexOf:()=>je,inherits:()=>lp,isArray:()=>ne,isArrayLike:()=>_i,isBuiltInObject:()=>Sy,isDom:()=>Ds,isFunction:()=>we,isGradientObject:()=>Wo,isImagePatternObject:()=>ky,isNumber:()=>st,isObject:()=>ve,isPrimitive:()=>Cc,isRegExp:()=>tre,isString:()=>pe,isStringSafe:()=>wc,isTypedArray:()=>di,keys:()=>dt,logError:()=>Ms,map:()=>ue,merge:()=>ct,mergeAll:()=>Xie,mixin:()=>Zi,noop:()=>Di,normalizeCssArray:()=>Fs,reduce:()=>mr,retrieve:()=>Ps,retrieve2:()=>Fe,retrieve3:()=>En,setAsPrimitive:()=>Rs,slice:()=>cp,trim:()=>Qi});var ah=12,Hie="sans-serif",Tn=ah+"px "+Hie,Wie=20,Gie=100,qie="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function jie(i){var t={};if(typeof JSON>"u")return t;for(var e=0;e<i.length;e++){var r=String.fromCharCode(e+32),n=(i.charCodeAt(e)-Wie)/Gie;t[r]=n}return t}var Yie=jie(qie),$i={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var i,t;return function(e,r){if(!i){var n=$i.createCanvas();i=n&&n.getContext("2d")}if(i)return t!==r&&(t=i.font=r||Tn),i.measureText(e);e=e||"",r=r||Tn;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||ah,s=0;if(r.indexOf("mono")>=0)s=a*e.length;else for(var l=0;l<e.length;l++){var c=Yie[e[l]];s+=c==null?a:c*a}return{width:s}}})(),loadImage:function(i,t,e){var r=new Image;return r.onload=t,r.onerror=e,r.src=i,r}};function sh(i){for(var t in $i)i[t]&&($i[t]=i[t])}var uI=mr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(i,t){return i["[object "+t+"]"]=!0,i},{}),mI=mr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(i,t){return i["[object "+t+"Array]"]=!0,i},{}),Sc=Object.prototype.toString,ch=Array.prototype,Kie=ch.forEach,$ie=ch.filter,wy=ch.slice,Zie=ch.map,pI=function(){}.constructor,lh=pI?pI.prototype:null,Ty="__proto__",Qie=2311;function sp(){return Qie++}function Ms(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];typeof console<"u"&&console.error.apply(console,i)}function He(i){if(i==null||typeof i!="object")return i;var t=i,e=Sc.call(i);if(e==="[object Array]"){if(!Cc(i)){t=[];for(var r=0,n=i.length;r<n;r++)t[r]=He(i[r])}}else if(mI[e]){if(!Cc(i)){var o=i.constructor;if(o.from)t=o.from(i);else{t=new o(i.length);for(var r=0,n=i.length;r<n;r++)t[r]=i[r]}}}else if(!uI[e]&&!Cc(i)&&!Ds(i)){t={};for(var a in i)i.hasOwnProperty(a)&&a!==Ty&&(t[a]=He(i[a]))}return t}function ct(i,t,e){if(!ve(t)||!ve(i))return e?He(t):i;for(var r in t)if(t.hasOwnProperty(r)&&r!==Ty){var n=i[r],o=t[r];ve(o)&&ve(n)&&!ne(o)&&!ne(n)&&!Ds(o)&&!Ds(n)&&!Sy(o)&&!Sy(n)&&!Cc(o)&&!Cc(n)?ct(n,o,e):(e||!(r in i))&&(i[r]=He(t[r]))}return i}function Xie(i,t){for(var e=i[0],r=1,n=i.length;r<n;r++)e=ct(e,i[r],t);return e}function se(i,t){if(Object.assign)Object.assign(i,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Ty&&(i[e]=t[e]);return i}function qe(i,t,e){for(var r=dt(t),n=0,o=r.length;n<o;n++){var a=r[n];(e?t[a]!=null:i[a]==null)&&(i[a]=t[a])}return i}var Jie=$i.createCanvas;function je(i,t){if(i){if(i.indexOf)return i.indexOf(t);for(var e=0,r=i.length;e<r;e++)if(i[e]===t)return e}return-1}function lp(i,t){var e=i.prototype;function r(){}r.prototype=t.prototype,i.prototype=new r;for(var n in e)e.hasOwnProperty(n)&&(i.prototype[n]=e[n]);i.prototype.constructor=i,i.superClass=t}function Zi(i,t,e){if(i="prototype"in i?i.prototype:i,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),n=0;n<r.length;n++){var o=r[n];
1815o!=="constructor"&&(e?t[o]!=null:i[o]==null)&&(i[o]=t[o])}else qe(i,t,e)}function _i(i){return!i||typeof i=="string"?!1:typeof i.length=="number"}function P(i,t,e){if(i&&t)if(i.forEach&&i.forEach===Kie)i.forEach(t,e);else if(i.length===+i.length)for(var r=0,n=i.length;r<n;r++)t.call(e,i[r],r,i);else for(var o in i)i.hasOwnProperty(o)&&t.call(e,i[o],o,i)}function ue(i,t,e){if(!i)return[];if(!t)return cp(i);if(i.map&&i.map===Zie)return i.map(t,e);for(var r=[],n=0,o=i.length;n<o;n++)r.push(t.call(e,i[n],n,i));return r}function mr(i,t,e,r){if(i&&t){for(var n=0,o=i.length;n<o;n++)e=t.call(r,e,i[n],n,i);return e}}function Gt(i,t,e){if(!i)return[];if(!t)return cp(i);if(i.filter&&i.filter===$ie)return i.filter(t,e);for(var r=[],n=0,o=i.length;n<o;n++)t.call(e,i[n],n,i)&&r.push(i[n]);return r}function Ey(i,t,e){if(i&&t){for(var r=0,n=i.length;r<n;r++)if(t.call(e,i[r],r,i))return i[r]}}function dt(i){if(!i)return[];if(Object.keys)return Object.keys(i);var t=[];for(var e in i)i.hasOwnProperty(e)&&t.push(e);return t}function ere(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return function(){return i.apply(t,e.concat(wy.call(arguments)))}}var rt=lh&&we(lh.bind)?lh.call.bind(lh.bind):ere;function Bt(i){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return i.apply(this,t.concat(wy.call(arguments)))}}function ne(i){return Array.isArray?Array.isArray(i):Sc.call(i)==="[object Array]"}function we(i){return typeof i=="function"}function pe(i){return typeof i=="string"}function wc(i){return Sc.call(i)==="[object String]"}function st(i){return typeof i=="number"}function ve(i){var t=typeof i;return t==="function"||!!i&&t==="object"}function Sy(i){return!!uI[Sc.call(i)]}function di(i){return!!mI[Sc.call(i)]}function Ds(i){return typeof i=="object"&&typeof i.nodeType=="number"&&typeof i.ownerDocument=="object"}function Wo(i){return i.colorStops!=null}function ky(i){return i.image!=null}function tre(i){return Sc.call(i)==="[object RegExp]"}function Go(i){return i!==i}function Ps(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];for(var e=0,r=i.length;e<r;e++)if(i[e]!=null)return i[e]}function Fe(i,t){return i??t}function En(i,t,e){return i??t??e}function cp(i){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return wy.apply(i,t)}function Fs(i){if(typeof i=="number")return[i,i,i,i];var t=i.length;return t===2?[i[0],i[1],i[0],i[1]]:t===3?[i[0],i[1],i[2],i[1]]:i}function Ii(i,t){if(!i)throw new Error(t)}function Qi(i){return i==null?null:typeof i.trim=="function"?i.trim():i.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var fI="__ec_primitive__";function Rs(i){i[fI]=!0}function Cc(i){return i[fI]}var ire=(function(){function i(){this.data={}}return i.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},i.prototype.has=function(t){return this.data.hasOwnProperty(t)},i.prototype.get=function(t){return this.data[t]},i.prototype.set=function(t,e){return this.data[t]=e,this},i.prototype.keys=function(){return dt(this.data)},i.prototype.forEach=function(t){var e=this.data;for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)},i})(),hI=typeof Map=="function";function rre(){return hI?new Map:new ire}var gI=(function(){function i(t){var e=ne(t);this.data=rre();var r=this;t instanceof i?t.each(n):t&&P(t,n);function n(o,a){e?r.set(o,a):r.set(a,o)}}return i.prototype.hasKey=function(t){return this.data.has(t)},i.prototype.get=function(t){return this.data.get(t)},i.prototype.set=function(t,e){return this.data.set(t,e),e},i.prototype.each=function(t,e){this.data.forEach(function(r,n){t.call(e,r,n)})},i.prototype.keys=function(){var t=this.data.keys();return hI?Array.from(t):t},i.prototype.removeKey=function(t){this.data.delete(t)},i})();function Me(i){return new gI(i)}function Iy(i,t){for(var e=new i.constructor(i.length+t.length),r=0;r<i.length;r++)e[r]=i[r];for(var n=i.length,r=0;r<t.length;r++)e[r+n]=t[r];return e}function qo(i,t){var e;if(Object.create)e=Object.create(i);else{var r=function(){};r.prototype=i,e=new r}return t&&se(e,t),e}function dp(i){var t=i.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Li(i,t){return i.hasOwnProperty(t)}function Di(){}var dh=180/Math.PI,nre=Number.EPSILON||Math.pow(2,-52);var NI=Ri(BI(),1),{__extends:We,__assign:GLe,__rest:qLe,__decorate:jLe,__param:YLe,__metadata:KLe,__awaiter:$Le,__generator:ZLe,__exportStar:QLe,__createBinding:XLe,__values:JLe,__read:eOe,__spread:tOe,__spreadArrays:iOe,__spreadArray:rOe,__await:nOe,__asyncGenerator:oOe,__asyncDelegator:aOe,__asyncValues:sOe,__makeTemplateOb
1815ject:lOe,__importStar:cOe,__importDefault:dOe,__classPrivateFieldGet:pOe,__classPrivateFieldSet:uOe}=NI.default;var yo={};$r(yo,{add:()=>fh,applyTransform:()=>bi,clone:()=>My,copy:()=>ore,create:()=>jo,dist:()=>Oy,distSquare:()=>Ra,distance:()=>up,distanceSquare:()=>VI,div:()=>pre,dot:()=>ure,len:()=>Fy,lenSquare:()=>Ry,length:()=>lre,lengthSquare:()=>cre,lerp:()=>fre,max:()=>In,min:()=>kn,mul:()=>dre,negate:()=>mre,normalize:()=>Ly,scale:()=>pp,scaleAndAdd:()=>sre,set:()=>are,sub:()=>Py});function jo(i,t){return i==null&&(i=0),t==null&&(t=0),[i,t]}function ore(i,t){return i[0]=t[0],i[1]=t[1],i}function My(i){return[i[0],i[1]]}function are(i,t,e){return i[0]=t,i[1]=e,i}function fh(i,t,e){return i[0]=t[0]+e[0],i[1]=t[1]+e[1],i}function sre(i,t,e,r){return i[0]=t[0]+e[0]*r,i[1]=t[1]+e[1]*r,i}function Py(i,t,e){return i[0]=t[0]-e[0],i[1]=t[1]-e[1],i}function Fy(i){return Math.sqrt(Ry(i))}var lre=Fy;function Ry(i){return i[0]*i[0]+i[1]*i[1]}var cre=Ry;function dre(i,t,e){return i[0]=t[0]*e[0],i[1]=t[1]*e[1],i}function pre(i,t,e){return i[0]=t[0]/e[0],i[1]=t[1]/e[1],i}function ure(i,t){return i[0]*t[0]+i[1]*t[1]}function pp(i,t,e){return i[0]=t[0]*e,i[1]=t[1]*e,i}function Ly(i,t){var e=Fy(t);return e===0?(i[0]=0,i[1]=0):(i[0]=t[0]/e,i[1]=t[1]/e),i}function up(i,t){return Math.sqrt((i[0]-t[0])*(i[0]-t[0])+(i[1]-t[1])*(i[1]-t[1]))}var Oy=up;function VI(i,t){return(i[0]-t[0])*(i[0]-t[0])+(i[1]-t[1])*(i[1]-t[1])}var Ra=VI;function mre(i,t){return i[0]=-t[0],i[1]=-t[1],i}function fre(i,t,e,r){return i[0]=t[0]+r*(e[0]-t[0]),i[1]=t[1]+r*(e[1]-t[1]),i}function bi(i,t,e){var r=t[0],n=t[1];return i[0]=e[0]*r+e[2]*n+e[4],i[1]=e[1]*r+e[3]*n+e[5],i}function kn(i,t,e){return i[0]=Math.min(t[0],e[0]),i[1]=Math.min(t[1],e[1]),i}function In(i,t,e){return i[0]=Math.max(t[0],e[0]),i[1]=Math.max(t[1],e[1]),i}var Ec=(function(){function i(t,e){this.target=t,this.topTarget=e&&e.topTarget}return i})(),hre=(function(){function i(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return i.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Ec(e,t),"dragstart",t.event))},i.prototype._drag=function(t){var e=this._draggingTarget;if(e){var r=t.offsetX,n=t.offsetY,o=r-this._x,a=n-this._y;this._x=r,this._y=n,e.drift(o,a,t),this.handler.dispatchToElement(new Ec(e,t),"drag",t.event);var s=this.handler.findHover(r,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ec(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ec(s,t),"dragenter",t.event))}},i.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Ec(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ec(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},i})(),zI=hre;var gre=(function(){function i(t){t&&(this._$eventProcessor=t)}return i.prototype.on=function(t,e,r,n){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof e=="function"&&(n=r,r=e,e=null),!r||!t)return this;var a=this._$eventProcessor;e!=null&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===r)return this;var l={h:r,query:e,ctx:n||this,callAtLast:r.zrEventfulCallAtLast},c=o[t].length-1,d=o[t][c];return d&&d.callAtLast?o[t].splice(c,0,l):o[t].push(l),this},i.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},i.prototype.off=function(t,e){var r=this._$handlers;if(!r)return this;if(!t)return this._$handlers={},this;if(e){if(r[t]){for(var n=[],o=0,a=r[t].length;o<a;o++)r[t][o].h!==e&&n.push(r[t][o]);r[t]=n}r[t]&&r[t].length===0&&delete r[t]}else delete r[t];return this},i.prototype.trigger=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var a=e.length,s=n.length,l=0;l<s;l++){var c=n[l];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,e[0]);break;case 2:c.h.call(c.ctx,e[0],e[1]);break;default:c.h.apply(c.ctx,e);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},i.prototype.triggerWithContext=function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(!this._$handlers)return this;var n=this._$handlers[t],o=this._$eventProcessor;if(n)for(var a=e.length,s=e[a-1],l=n.length,c=0;c<l;c++){var d=n[c];if(!(o&&o.filter&&d.query!=null&&!o.filter(t,d.query)))switch(a){case 0:d.h.call(s);break;case 1:d.h.call(s,e[0]);break;case 2:d.h.call(s,e[0],e[1]);break;default:d.h.apply(s,e.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},i})(),nr=gre;var vre=Math.log(2);function Ay(i,t,e,r,n,o){var a=r+"-"+n,s=i.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/vre);return i[e][l]}for(var c=r|1<<e,d=e+1;r&1<<d;)d++;for(var u=0,h=0,g=0;h<s;h++){var _=1<<h;_&n||(u+=(g%2?-1:1)*i[e][h]*Ay(i,t-1,d,c,n|_,o),g++)}return o[a]=u,u}function By(i,t){var e=[[i[0],i[1],1,0,0,0,-t[0]*i[0],-t[0]*i[1]],[0,0,0,i[0],i[1],1,-t[1]*i[0],-t[1]*i[1]],[i[2],i[3],1,0,0,0,-t[2]*i[2],-t[2]*i[3]],[0,0,0,i[2],i[3],1,-t[3]*i[2],-t[3]*i[3]],[i[4],i[5],1,0,0,0,-t[4]*i[4],-t[4]*i[5]],[0,0,0,i[4],i[5],1,-t[5]*i[4],-t[5]*i[5]],[i[6],i[7],1,0,0,0,-t[6]*i[6],-t[6]*i[7]],[0,0,0,i[6],i[7],1,-t[7]*i[6],-t[7]*i[7]]],r={},n=Ay(e,8,0,0,0,r);if(n!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Ay(e,7,a===0?1:0,1<<a,1<<s,r)/n*t[a];return function(l,c,d){var u=c*o[6]+d*o[7]+1;l[0]=(c*o[0]+d*o[1]+o[2])/u,l[1]=(c*o[3]+d*o[4]+o[5])/u}}}var hh="___zrEVENTSAVED",Ny=[];function UI(i,t,e,r,n){return gh(Ny,t,r,n,!0)&&gh(i,e,Ny[0],Ny[1])}function HI(i,t){i&&e(i),t&&e(t);function e(r){var n=r[hh];n&&(n.clearMarkers&&n.clearMarkers(),delete r[hh])}}function gh(i,t,e,r,n){if(t.getBoundingClientRect&&Ue.domSupported&&!Vy(t)){var o=t[hh]||(t[hh]={}),a=_re(t,o),s=bre(a,o,n);if(s)return s(i,e,r),!0}return!1}function _re(i,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var r=["left","right"],n=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,c=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",n[c]+":0",r[1-l]+":auto",n[1-c]+":auto",""].join("!important;"),i.appendChild(a),e.push(a)}return t.clearMarkers=function(){P(e,function(d){d.parentNode&&d.parentNode.removeChild(d)})},e}function bre(i,t,e){for(var r=e?"invTrans":"trans",n=t[r],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var d=i[c].getBoundingClientRect(),u=2*c,h=d.left,g=d.top;a.push(h,g),l=l&&o&&h===o[u]&&g===o[u+1],s.push(i[c].offsetLeft,i[c].offsetTop)}return l&&n?n:(t.srcCoords=a,t[r]=e?By(s,a):By(a,s))}function Vy(i){return i.nodeName.toUpperCase()==="CANVAS"}var yre=/([&<>"'])/g,xre={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Oi(i){return i==null?"":(i+"").replace(yre,function(t,e){return xre[e]})}var Cre=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,zy=[],Sre=Ue.browser.firefox&&+Ue.browser.version.split(".")[0]<39;function vh(i,t,e,r){return e=e||{},r?WI(i,t,e):Sre&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):WI(i,t,e),e}function WI(i,t,e){if(Ue.domSupported&&i.getBoundingClientRect){var r=t.clientX,n=t.clientY;if(Vy(i)){var o=i.getBoundingClientRect();e.zrX=r-o.left,e.zrY=n-o.top;return}else if(gh(zy,i,r,n)){e.zrX=zy[0],e.zrY=zy[1];return}}e.zrX=e.zrY=0}function _h(i){return i||window.event}function Ur(i,t,e){if(t=_h(t),t.zrX!=null)return t;var r=t.type,n=r&&r.indexOf("touch")>=0;if(n){var a=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&vh(i,a,t,e)}else{vh(i,t,t,e);var o=wre(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Cre.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function wre(i){var t=i.wheelDelta;if(t)return t;var e=i.deltaX,r=i.deltaY;if(e==null||r==null)return t;var n=Math.abs(r!==0?r:e),o=r>0?-1:r<0?1:e>0?-1:1;return 3*n*o}function GI(i,t,e,r){i.addEventListener(t,e,r)}function qI(i,t,e,r){i.removeEventListener(t,e,r)}var bh=function(i){i.preventDefault(),i.stopPropagation(),i.cancelBubble=!0};var YI=(function(){function i(){this._track=[]}return i.prototype.recognize=function(t,e,r){return this._doTrack(t,e,r),this._recognize(t)},i.prototype.clear=function(){return this._track.length=0,this},i.prototype._doTrack=function(t,e,r){var n=t.touches;if(n){for(var o={points:[],touches:[],target:e,event:t},a=0,s=n.length;a<s;a++){var l=n[a],c=vh(r,l,{});o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},i.prototype._recognize=function(t){for(var e in Hy)if(Hy.hasOwnProperty(e)){var r=Hy[e](this._track,t);if(r)return r}},i})();function jI(i){var t=i[1][0]-i[0][0],e=i[1][1]-i[0][1];return Math.sqrt(t*t+e*e)}function Tre(i){return[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]}var Hy={pinch:function(i,t){var e=i.length;if(e){var r=(i[e-1]||{}).points,n=(i[e-2]||{}).points||r;if(n&&n.length>1&&r&&r.length>1){var o=jI(r)/jI(n);
1815!isFinite(o)&&(o=1),t.pinchScale=o;var a=Tre(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:i[0].target,event:t}}}}};var Ko={};$r(Ko,{clone:()=>Ere,copy:()=>kc,create:()=>fr,identity:()=>Yo,invert:()=>tn,mul:()=>qn,rotate:()=>Ls,scale:()=>Wy,translate:()=>Ic});function fr(){return[1,0,0,1,0,0]}function Yo(i){return i[0]=1,i[1]=0,i[2]=0,i[3]=1,i[4]=0,i[5]=0,i}function kc(i,t){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4],i[5]=t[5],i}function qn(i,t,e){var r=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],o=t[0]*e[2]+t[2]*e[3],a=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return i[0]=r,i[1]=n,i[2]=o,i[3]=a,i[4]=s,i[5]=l,i}function Ic(i,t,e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i[4]=t[4]+e[0],i[5]=t[5]+e[1],i}function Ls(i,t,e,r){r===void 0&&(r=[0,0]);var n=t[0],o=t[2],a=t[4],s=t[1],l=t[3],c=t[5],d=Math.sin(e),u=Math.cos(e);return i[0]=n*u+s*d,i[1]=-n*d+s*u,i[2]=o*u+l*d,i[3]=-o*d+u*l,i[4]=u*(a-r[0])+d*(c-r[1])+r[0],i[5]=u*(c-r[1])-d*(a-r[0])+r[1],i}function Wy(i,t,e){var r=e[0],n=e[1];return i[0]=t[0]*r,i[1]=t[1]*n,i[2]=t[2]*r,i[3]=t[3]*n,i[4]=t[4]*r,i[5]=t[5]*n,i}function tn(i,t){var e=t[0],r=t[2],n=t[4],o=t[1],a=t[3],s=t[5],l=e*a-o*r;return l?(l=1/l,i[0]=a*l,i[1]=-o*l,i[2]=-r*l,i[3]=e*l,i[4]=(r*s-a*n)*l,i[5]=(o*n-e*s)*l,i):null}function Ere(i){var t=fr();return kc(t,i),t}var kre=(function(){function i(t,e){this.x=t||0,this.y=e||0}return i.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},i.prototype.clone=function(){return new i(this.x,this.y)},i.prototype.set=function(t,e){return this.x=t,this.y=e,this},i.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},i.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},i.prototype.scale=function(t){this.x*=t,this.y*=t},i.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},i.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},i.prototype.dot=function(t){return this.x*t.x+this.y*t.y},i.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},i.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},i.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},i.prototype.distance=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},i.prototype.distanceSquare=function(t){var e=this.x-t.x,r=this.y-t.y;return e*e+r*r},i.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},i.prototype.transform=function(t){if(t){var e=this.x,r=this.y;return this.x=t[0]*e+t[2]*r+t[4],this.y=t[1]*e+t[3]*r+t[5],this}},i.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},i.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},i.set=function(t,e,r){t.x=e,t.y=r},i.copy=function(t,e){t.x=e.x,t.y=e.y},i.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},i.lenSquare=function(t){return t.x*t.x+t.y*t.y},i.dot=function(t,e){return t.x*e.x+t.y*e.y},i.add=function(t,e,r){t.x=e.x+r.x,t.y=e.y+r.y},i.sub=function(t,e,r){t.x=e.x-r.x,t.y=e.y-r.y},i.scale=function(t,e,r){t.x=e.x*r,t.y=e.y*r},i.scaleAndAdd=function(t,e,r,n){t.x=e.x+r.x*n,t.y=e.y+r.y*n},i.lerp=function(t,e,r,n){var o=1-n;t.x=o*e.x+n*r.x,t.y=o*e.y+n*r.y},i})(),zt=kre;var Vs=Math.min,Dc=Math.max,Gy=Math.abs,KI=["x","y"],Ire=["width","height"],Os=new zt,As=new zt,Bs=new zt,Ns=new zt,rn=Yy(),mp=rn.minTv,qy=rn.maxTv,fp=[0,0],jy=(function(){function i(t,e,r,n){i.set(this,t,e,r,n)}return i.set=function(t,e,r,n,o){return n<0&&(e=e+n,n=-n),o<0&&(r=r+o,o=-o),t.x=e,t.y=r,t.width=n,t.height=o,t},i.prototype.union=function(t){var e=Vs(t.x,this.x),r=Vs(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Dc(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Dc(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=e,this.y=r},i.prototype.applyTransform=function(t){i.applyTransform(this,this,t)},i.prototype.calculateTransform=function(t){var e=this,r=t.width/e.width,n=t.height/e.height,o=fr();return Ic(o,o,[-e.x,-e.y]),Wy(o,o,[r,n]),Ic(o,o,[t.x,t.y]),o},i.prototype.intersect=function(t,e,r){return i.intersect(this,t,e,r)},i.intersect=function(t,e,r,n){r&&zt.set(r,0,0);var o=n&&n.outIntersectRect||null,a=n&&n.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!t||!e)return!1;t instanceof i||(t=i.set(Dre,t.x,t.y,t.width,t.height)),e instanceof i||(e=i.set(Mre,e.x,e.y,e.width,e.height));var s=!!r;rn.reset(n,s);var l=rn.touchThreshold,c=t.x+l,d=t.x+t.width-l,u=t.y+l,h=t.y+t.height-l,g=e.x+l,_=e.x+e.width-l,y=e.y+l,C=e.y+e.height-l;if(c>d||u>h||g>_||y>C)return!1;var x=!(d<g||_<c||h<y||C<u);return(s||o)&&(fp[0]=1/0,fp[1]=0,$I(c,d,g,_,0,s,o,a),$I(u,h,y,C,1,s,o,a),s&&zt.copy(r,x?rn.useDir?rn.dirMinTv:mp:qy)),x},i.contain=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},i.prototype.contain=function(t,e){return i.contain(this,t,e)},i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height)},i.prototype.copy=function(t){i.copy(this,t)},i.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},i.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},i.prototype.isZero=function(){return this.width===0||this.height===0},i.create=function(t){return new i(t.x,t.y,t.width,t.height)},i.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},i.applyTransform=function(t,e,r){if(!r){t!==e&&i.copy(t,e);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var n=r[0],o=r[3],a=r[4],s=r[5];t.x=e.x*n+a,t.y=e.y*o+s,t.width=e.width*n,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Os.x=Bs.x=e.x,Os.y=Ns.y=e.y,As.x=Ns.x=e.x+e.width,As.y=Bs.y=e.y+e.height,Os.transform(r),Ns.transform(r),As.transform(r),Bs.transform(r),t.x=Vs(Os.x,As.x,Bs.x,Ns.x),t.y=Vs(Os.y,As.y,Bs.y,Ns.y);var l=Dc(Os.x,As.x,Bs.x,Ns.x),c=Dc(Os.y,As.y,Bs.y,Ns.y);t.width=l-t.x,t.height=c-t.y},i}
1815)(),Dre=new jy(0,0,0,0),Mre=new jy(0,0,0,0);function $I(i,t,e,r,n,o,a,s){var l=Gy(t-e),c=Gy(r-i),d=Vs(l,c),u=KI[n],h=KI[1-n],g=Ire[n];t<e||r<i?l<c?(o&&(qy[u]=-l),s&&(a[u]=t,a[g]=0)):(o&&(qy[u]=c),s&&(a[u]=i,a[g]=0)):(a&&(a[u]=Dc(i,e),a[g]=Vs(t,r)-a[u]),o&&(d<fp[0]||rn.useDir)&&(fp[0]=Vs(d,fp[0]),(l<c||!rn.bidirectional)&&(mp[u]=l,mp[h]=0,rn.useDir&&rn.calcDirMTV()),(l>=c||!rn.bidirectional)&&(mp[u]=-c,mp[h]=0,rn.useDir&&rn.calcDirMTV())))}function Yy(){var i=0,t=new zt,e=new zt,r={minTv:new zt,maxTv:new zt,useDir:!1,dirMinTv:new zt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(o,a){r.touchThreshold=0,o&&o.touchThreshold!=null&&(r.touchThreshold=Dc(0,o.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,o&&o.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),e.copy(r.minTv),i=o.direction,r.bidirectional=o.bidirectional==null||!!o.bidirectional,r.bidirectional||t.set(Math.cos(i),Math.sin(i))))},calcDirMTV:function(){var o=r.minTv,a=r.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(i),c=Math.cos(i),d=l*o.y+c*o.x;if(n(d)){n(o.x)&&n(o.y)&&a.set(0,0);return}if(e.x=s*c/d,e.y=s*l/d,n(e.x)&&n(e.y)){a.set(0,0);return}(r.bidirectional||t.dot(e)>0)&&e.len()<a.len()&&a.copy(e)}};function n(o){return Gy(o)<1e-10}return r}var Be=jy;var QI="silent";function Pre(i,t,e){return{type:i,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:Fre}}function Fre(){bh(this.event)}var Rre=(function(i){We(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(nr),hp=(function(){function i(t,e){this.x=t,this.y=e}return i})(),Lre=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ky=new Be(0,0,0,0),XI=(function(i){We(t,i);function t(e,r,n,o,a){var s=i.call(this)||this;return s._hovered=new hp(0,0),s.storage=e,s.painter=r,s.painterRoot=o,s._pointerSize=a,n=n||new Rre,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new zI(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(P(Lre,function(r){e.on&&e.on(r,this[r],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var r=e.zrX,n=e.zrY,o=JI(this,r,n),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new hp(r,n):this.findHover(r,n),c=l.target,d=this.proxy;d.setCursor&&d.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(a,"mouseout",e),this.dispatchToElement(l,"mousemove",e),c&&c!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var r=e.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new hp(0,0)},t.prototype.dispatch=function(e,r){var n=this[e];n&&n.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var r=this.proxy;r.setCursor&&r.setCursor(e)},t.prototype.dispatchToElement=function(e,r,n){e=e||{};var o=e.target;if(!(o&&o.silent)){for(var a="on"+r,s=Pre(r,e,n);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(r,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(r,s)}))}},t.prototype.findHover=function(e,r,n){var o=this.storage.getDisplayList(),a=new hp(e,r);if(ZI(o,a,e,r,n),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,d=new Be(e-c,r-c,l,l),u=o.length-1;u>=0;u--){var h=o[u];h!==n&&!h.ignore&&!h.ignoreCoarsePointer&&(!h.parent||!h.parent.ignoreCoarsePointer)&&(Ky.copy(h.getBoundingRect()),h.transform&&Ky.applyTransform(h.transform),Ky.intersect(d)&&s.push(h))}if(s.length)for(var g=4,_=Math.PI/12,y=Math.PI*2,C=0;C<c;C+=g)for(var x=0;x<y;x+=_){var w=e+C*Math.cos(x),E=r+C*Math.sin(x);if(ZI(s,a,w,E,n),a.target)return a}}return a},t.prototype.processGesture=function(e,r){this._gestureMgr||(this._gestureMgr=new YI);var n=this._gestureMgr;r==="start"&&n.clear();var o=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);
1815if(r==="end"&&n.clear(),o){var a=o.type;e.gestureEvent=a;var s=new hp;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t})(nr);P(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(i){XI.prototype[i]=function(t){var e=t.zrX,r=t.zrY,n=JI(this,e,r),o,a;if((i!=="mouseup"||!n)&&(o=this.findHover(e,r),a=o.target),i==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(i==="mouseup")this._upEl=a;else if(i==="click"){if(this._downEl!==this._upEl||!this._downPoint||Oy(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,i,t)}});function Ore(i,t,e){if(i[i.rectHover?"rectContain":"contain"](t,e)){for(var r=i,n=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(t,e))return!1}r.silent&&(n=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return n?QI:!0}return!1}function ZI(i,t,e,r,n){for(var o=i.length-1;o>=0;o--){var a=i[o],s=void 0;if(a!==n&&!a.ignore&&(s=Ore(a,e,r))&&(!t.topTarget&&(t.topTarget=a),s!==QI)){t.target=a;break}}}function JI(i,t,e){var r=i.painter;return t<0||t>r.getWidth()||e<0||e>r.getHeight()}var e3=XI;var r3=32,gp=7;function Are(i){for(var t=0;i>=r3;)t|=i&1,i>>=1;return i+t}function t3(i,t,e,r){var n=t+1;if(n===e)return 1;if(r(i[n++],i[t])<0){for(;n<e&&r(i[n],i[n-1])<0;)n++;Bre(i,t,n)}else for(;n<e&&r(i[n],i[n-1])>=0;)n++;return n-t}function Bre(i,t,e){for(e--;t<e;){var r=i[t];i[t++]=i[e],i[e--]=r}}function i3(i,t,e,r,n){for(r===t&&r++;r<e;r++){for(var o=i[r],a=t,s=r,l;a<s;)l=a+s>>>1,n(o,i[l])<0?s=l:a=l+1;var c=r-a;switch(c){case 3:i[a+3]=i[a+2];case 2:i[a+2]=i[a+1];case 1:i[a+1]=i[a];break;default:for(;c>0;)i[a+c]=i[a+c-1],c--}i[a]=o}}function $y(i,t,e,r,n,o){var a=0,s=0,l=1;if(o(i,t[e+n])>0){for(s=r-n;l<s&&o(i,t[e+n+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=n,l+=n}else{for(s=n+1;l<s&&o(i,t[e+n-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=n-l,l=n-c}for(a++;a<l;){var d=a+(l-a>>>1);o(i,t[e+d])>0?a=d+1:l=d}return l}function Zy(i,t,e,r,n,o){var a=0,s=0,l=1;if(o(i,t[e+n])<0){for(s=n+1;l<s&&o(i,t[e+n-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=n-l,l=n-c}else{for(s=r-n;l<s&&o(i,t[e+n+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=n,l+=n}for(a++;a<l;){var d=a+(l-a>>>1);o(i,t[e+d])<0?l=d:a=d+1}return l}function Nre(i,t){var e=gp,r,n,o=0,a=[];r=[],n=[];function s(g,_){r[o]=g,n[o]=_,o+=1}function l(){for(;o>1;){var g=o-2;if(g>=1&&n[g-1]<=n[g]+n[g+1]||g>=2&&n[g-2]<=n[g]+n[g-1])n[g-1]<n[g+1]&&g--;else if(n[g]>n[g+1])break;d(g)}}function c(){for(;o>1;){var g=o-2;g>0&&n[g-1]<n[g+1]&&g--,d(g)}}function d(g){var _=r[g],y=n[g],C=r[g+1],x=n[g+1];n[g]=y+x,g===o-3&&(r[g+1]=r[g+2],n[g+1]=n[g+2]),o--;var w=Zy(i[C],i,_,y,0,t);_+=w,y-=w,y!==0&&(x=$y(i[_+y-1],i,C,x,x-1,t),x!==0&&(y<=x?u(_,y,C,x):h(_,y,C,x)))}function u(g,_,y,C){var x=0;for(x=0;x<_;x++)a[x]=i[g+x];var w=0,E=y,k=g;if(i[k++]=i[E++],--C===0){for(x=0;x<_;x++)i[k+x]=a[w+x];return}if(_===1){for(x=0;x<C;x++)i[k+x]=i[E+x];i[k+C]=a[w];return}for(var D=e,I,F,A;;){I=0,F=0,A=!1;do if(t(i[E],a[w])<0){if(i[k++]=i[E++],F++,I=0,--C===0){A=!0;break}}else if(i[k++]=a[w++],I++,F=0,--_===1){A=!0;break}while((I|F)<D);if(A)break;
1815do{if(I=Zy(i[E],a,w,_,0,t),I!==0){for(x=0;x<I;x++)i[k+x]=a[w+x];if(k+=I,w+=I,_-=I,_<=1){A=!0;break}}if(i[k++]=i[E++],--C===0){A=!0;break}if(F=$y(a[w],i,E,C,0,t),F!==0){for(x=0;x<F;x++)i[k+x]=i[E+x];if(k+=F,E+=F,C-=F,C===0){A=!0;break}}if(i[k++]=a[w++],--_===1){A=!0;break}D--}while(I>=gp||F>=gp);if(A)break;D<0&&(D=0),D+=2}if(e=D,e<1&&(e=1),_===1){for(x=0;x<C;x++)i[k+x]=i[E+x];i[k+C]=a[w]}else{if(_===0)throw new Error;for(x=0;x<_;x++)i[k+x]=a[w+x]}}function h(g,_,y,C){var x=0;for(x=0;x<C;x++)a[x]=i[y+x];var w=g+_-1,E=C-1,k=y+C-1,D=0,I=0;if(i[k--]=i[w--],--_===0){for(D=k-(C-1),x=0;x<C;x++)i[D+x]=a[x];return}if(C===1){for(k-=_,w-=_,I=k+1,D=w+1,x=_-1;x>=0;x--)i[I+x]=i[D+x];i[k]=a[E];return}for(var F=e;;){var A=0,U=0,q=!1;do if(t(a[E],i[w])<0){if(i[k--]=i[w--],A++,U=0,--_===0){q=!0;break}}else if(i[k--]=a[E--],U++,A=0,--C===1){q=!0;break}while((A|U)<F);if(q)break;do{if(A=_-Zy(a[E],i,g,_,_-1,t),A!==0){for(k-=A,w-=A,_-=A,I=k+1,D=w+1,x=A-1;x>=0;x--)i[I+x]=i[D+x];if(_===0){q=!0;break}}if(i[k--]=a[E--],--C===1){q=!0;break}if(U=C-$y(i[w],a,0,C,C-1,t),U!==0){for(k-=U,E-=U,C-=U,I=k+1,D=E+1,x=0;x<U;x++)i[I+x]=a[D+x];if(C<=1){q=!0;break}}if(i[k--]=i[w--],--_===0){q=!0;break}F--}while(A>=gp||U>=gp);if(q)break;F<0&&(F=0),F+=2}if(e=F,e<1&&(e=1),C===1){for(k-=_,w-=_,I=k+1,D=w+1,x=_-1;x>=0;x--)i[I+x]=i[D+x];i[k]=a[E]}else{if(C===0)throw new Error;for(D=k-(C-1),x=0;x<C;x++)i[D+x]=a[x]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function zs(i,t,e,r){e||(e=0),r||(r=i.length);var n=r-e;if(!(n<2)){var o=0;if(n<r3){o=t3(i,e,r,t),i3(i,e,r,e+o,t);return}var a=Nre(i,t),s=Are(n);do{if(o=t3(i,e,r,t),o<s){var l=n;l>s&&(l=s),i3(i,e,e+l,e+o,t),o=l}a.pushRun(e,o),a.mergeRuns(),n-=o,e+=o}while(n!==0);a.forceMergeRuns()}}var Mi=1,Us=2,La=4;var n3=!1;function Qy(){n3||(n3=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function o3(i,t){return i.zlevel===t.zlevel?i.z===t.z?i.z2-t.z2:i.z-t.z:i.zlevel-t.zlevel}var Vre=(function(){function i(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=o3}return i.prototype.traverse=function(t,e){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(t,e)},i.prototype.getDisplayList=function(t,e){e=e||!1;var r=this._displayList;return(t||!r.length)&&this.updateDisplayList(e),r},i.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,r=this._displayList,n=0,o=e.length;n<o;n++)this._updateAndAddDisplayable(e[n],null,t);r.length=this._displayListLen,zs(r,o3)},i.prototype._updateAndAddDisplayable=function(t,e,r){if(!(t.ignore&&!r)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),o=e&&e.length,a=0,s=t.__clipPaths;if(!t.ignoreClip&&(o||n)){if(s||(s=t.__clipPaths=[]),o)for(var l=0;l<e.length;l++)s[a++]=e[l];for(var c=n,d=t;c;)c.parent=d,c.updateTransform(),s[a++]=c,d=c,c=c.getClipPath()}if(s&&(s.length=a),t.childrenRef){for(var u=t.childrenRef(),h=0;h<u.length;h++){var g=u[h];t.__dirty&&(g.__dirty|=Mi),this._updateAndAddDisplayable(g,s,r)}t.__dirty=0}else{var _=t;isNaN(_.z)&&(Qy(),_.z=0),isNaN(_.z2)&&(Qy(),_.z2=0),isNaN(_.zlevel)&&(Qy(),_.zlevel=0),this._displayList[this._displayListLen++]=_}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,s,r);var C=t.getTextGuideLine();C&&this._updateAndAddDisplayable(C,s,r);var x=t.getTextContent();x&&this._updateAndAddDisplayable(x,s,r)}},i.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},i.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,r=t.length;e<r;e++)this.delRoot(t[e]);return}var n=je(this._roots,t);n>=0&&this._roots.splice(n,1)},i.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},i.prototype.getRoots=function(){return this._roots},i.prototype.dispose=function(){this._displayList=null,this._roots=null},i})(),a3=Vre;var s3;s3=Ue.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(i){return setTimeout(i,16)};var vp=s3;var yh={linear:function(i){return i},quadraticIn:function(i){return i*i},quadraticOut:function(i){return i*(2-i)},quadraticInOut:function(i){return(i*=2)<1?.5*i*i:-.5*(--i*(i-2)-1)},cubicIn:function(i){return i*i*i},cubicOut:function(i){return--i*i*i+1},cubicInOut:function(i){return(i*=2)<1?.5*i*i*i:.5*((i-=2)*i*i+2)},quarticIn:function(i){return i*i*i*i},quarticOut:function(i){return 1- --i*i*i*i},quarticInOut:function(i){return(i*=2)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2)},quinticIn:function(i){return i*i*i*i*i},quinticOut:function(i){return--i*i*i*i*i+1},quinticInOut:function(i){return(i*=2)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2)},sinusoidalIn:function(i){return 1-Math.cos(i*Math.PI/2)},sinusoidalOut:function(i){return Math.sin(i*Math.PI/2)},sinusoidalInOut:function(i){return .5*(1-Math.cos(Math.PI*i))},exponentialIn:function(i){return i===0?0:Math.pow(1024,i-1)},exponentialOut:function(i){return i===1?1:1-Math.pow(2,-10*i)},exponentialInOut:function(i){return i===0?0:i===1?1:(i*=2)<1?.5*Math.pow(1024,i-1):.5*(-Math.pow(2,-10*(i-1))+2)},circularIn:function(i){return 1-Math.sqrt(1-i*i)},circularOut:function(i){return Math.sqrt(1- --i*i)},circularInOut:function(i){return(i*=2)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1)},elasticIn:function(i){var t,e=.1,r=.4;return i===0?0:i===1?1:(!e||e<1?(e=1,t=r/4):t=r*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(i-=1))*Math.sin((i-t)*(2*Math.PI)/r)))},elasticOut:function(i){var t,e=.1,r=.4;return i===0?0:i===1?1:(!e||e<1?(e=1,t=r/4):t=r*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*i)*Math.sin((i-t)*(2*Math.PI)/r)+1)},elasticInOut:function(i){var t,e=.1,r=.4;return i===0?0:i===1?1:(!e||e<1?(e=1,t=r/4):t=r*Math.asin(1/e)/(2*Math.PI),(i*=2)<1?-.5*(e*Math.pow(2,10*(i-=1))*Math.sin((i-t)*(2*Math.PI)/r)):e*Math.pow(2,-10*(i-=1))*Math.sin((i-t)*(2*Math.PI)/r)*.5+1)},backIn:function(i){var t=1.70158;
1815return i*i*((t+1)*i-t)},backOut:function(i){var t=1.70158;return--i*i*((t+1)*i+t)+1},backInOut:function(i){var t=2.5949095;return(i*=2)<1?.5*(i*i*((t+1)*i-t)):.5*((i-=2)*i*((t+1)*i+t)+2)},bounceIn:function(i){return 1-yh.bounceOut(1-i)},bounceOut:function(i){return i<.36363636363636365?7.5625*i*i:i<.7272727272727273?7.5625*(i-=.5454545454545454)*i+.75:i<.9090909090909091?7.5625*(i-=.8181818181818182)*i+.9375:7.5625*(i-=.9545454545454546)*i+.984375},bounceInOut:function(i){return i<.5?yh.bounceIn(i*2)*.5:yh.bounceOut(i*2-1)*.5+.5}},xh=yh;var Ch=Math.pow,Aa=Math.sqrt,wh=1e-8,c3=1e-4,l3=Aa(3),Sh=1/3,xo=jo(),Dn=jo(),Mc=jo();function Oa(i){return i>-wh&&i<wh}function d3(i){return i>wh||i<-wh}function oi(i,t,e,r,n){var o=1-n;return o*o*(o*i+3*n*t)+n*n*(n*r+3*o*e)}function Xy(i,t,e,r,n){var o=1-n;return 3*(((t-i)*o+2*(e-t)*n)*o+(r-e)*n*n)}function Hs(i,t,e,r,n,o){var a=r+3*(t-e)-i,s=3*(e-t*2+i),l=3*(t-i),c=i-n,d=s*s-3*a*l,u=s*l-9*a*c,h=l*l-3*s*c,g=0;if(Oa(d)&&Oa(u))if(Oa(s))o[0]=0;else{var _=-l/s;_>=0&&_<=1&&(o[g++]=_)}else{var y=u*u-4*d*h;if(Oa(y)){var C=u/d,_=-s/a+C,x=-C/2;_>=0&&_<=1&&(o[g++]=_),x>=0&&x<=1&&(o[g++]=x)}else if(y>0){var w=Aa(y),E=d*s+1.5*a*(-u+w),k=d*s+1.5*a*(-u-w);E<0?E=-Ch(-E,Sh):E=Ch(E,Sh),k<0?k=-Ch(-k,Sh):k=Ch(k,Sh);var _=(-s-(E+k))/(3*a);_>=0&&_<=1&&(o[g++]=_)}else{var D=(2*d*s-3*a*u)/(2*Aa(d*d*d)),I=Math.acos(D)/3,F=Aa(d),A=Math.cos(I),_=(-s-2*F*A)/(3*a),x=(-s+F*(A+l3*Math.sin(I)))/(3*a),U=(-s+F*(A-l3*Math.sin(I)))/(3*a);_>=0&&_<=1&&(o[g++]=_),x>=0&&x<=1&&(o[g++]=x),U>=0&&U<=1&&(o[g++]=U)}}return g}function Th(i,t,e,r,n){var o=6*e-12*t+6*i,a=9*t+3*r-3*i-9*e,s=3*t-3*i,l=0;if(Oa(a)){if(d3(o)){var c=-s/o;c>=0&&c<=1&&(n[l++]=c)}}else{var d=o*o-4*a*s;if(Oa(d))n[0]=-o/(2*a);else if(d>0){var u=Aa(d),c=(-o+u)/(2*a),h=(-o-u)/(2*a);c>=0&&c<=1&&(n[l++]=c),h>=0&&h<=1&&(n[l++]=h)}}return l}function Pc(i,t,e,r,n,o){var a=(t-i)*n+i,s=(e-t)*n+t,l=(r-e)*n+e,c=(s-a)*n+a,d=(l-s)*n+s,u=(d-c)*n+c;o[0]=i,o[1]=a,o[2]=c,o[3]=u,o[4]=u,o[5]=d,o[6]=l,o[7]=r}function p3(i,t,e,r,n,o,a,s,l,c,d){var u,h=.005,g=1/0,_,y,C,x;xo[0]=l,xo[1]=c;for(var w=0;w<1;w+=.05)Dn[0]=oi(i,e,n,a,w),Dn[1]=oi(t,r,o,s,w),C=Ra(xo,Dn),C<g&&(u=w,g=C);g=1/0;for(var E=0;E<32&&!(h<c3);E++)_=u-h,y=u+h,Dn[0]=oi(i,e,n,a,_),Dn[1]=oi(t,r,o,s,_),C=Ra(Dn,xo),_>=0&&C<g?(u=_,g=C):(Mc[0]=oi(i,e,n,a,y),Mc[1]=oi(t,r,o,s,y),x=Ra(Mc,xo),y<=1&&x<g?(u=y,g=x):h*=.5);return d&&(d[0]=oi(i,e,n,a,u),d[1]=oi(t,r,o,s,u)),Aa(g)}function u3(i,t,e,r,n,o,a,s,l){for(var c=i,d=t,u=0,h=1/l,g=1;g<=l;g++){var _=g*h,y=oi(i,e,n,a,_),C=oi(t,r,o,s,_),x=y-c,w=C-d;u+=Math.sqrt(x*x+w*w),c=y,d=C}return u}function Ai(i,t,e,r){var n=1-r;return n*(n*i+2*r*t)+r*r*e}function Jy(i,t,e,r){return 2*((1-r)*(t-i)+r*(e-t))}function m3(i,t,e,r,n){var o=i-2*t+e,a=2*(t-i),s=i-r,l=0;if(Oa(o)){if(d3(a)){var c=-s/a;c>=0&&c<=1&&(n[l++]=c)}}else{var d=a*a-4*o*s;if(Oa(d)){var c=-a/(2*o);c>=0&&c<=1&&(n[l++]=c)}else if(d>0){var u=Aa(d),c=(-a+u)/(2*o),h=(-a-u)/(2*o);c>=0&&c<=1&&(n[l++]=c),h>=0&&h<=1&&(n[l++]=h)}}return l}function Eh(i,t,e){var r=i+e-2*t;return r===0?.5:(i-t)/r}function Fc(i,t,e,r,n){var o=(t-i)*r+i,a=(e-t)*r+t,s=(a-o)*r+o;n[0]=i,n[1]=o,n[2]=s,n[3]=s,n[4]=a,n[5]=e}function f3(i,t,e,r,n,o,a,s,l){var c,d=.005,u=1/0;xo[0]=a,xo[1]=s;for(var h=0;h<1;h+=.05){Dn[0]=Ai(i,e,n,h),Dn[1]=Ai(t,r,o,h);var g=Ra(xo,Dn);g<u&&(c=h,u=g)}u=1/0;for(var _=0;_<32&&!(d<c3);_++){var y=c-d,C=c+d;Dn[0]=Ai(i,e,n,y),Dn[1]=Ai(t,r,o,y);var g=Ra(Dn,xo);if(y>=0&&g<u)c=y,u=g;else{Mc[0]=Ai(i,e,n,C),Mc[1]=Ai(t,r,o,C);var x=Ra(Mc,xo);C<=1&&x<u?(c=C,u=x):d*=.5}}return l&&(l[0]=Ai(i,e,n,c),l[1]=Ai(t,r,o,c)),Aa(u)}function h3(i,t,e,r,n,o,a){for(var s=i,l=t,c=0,d=1/a,u=1;u<=a;u++){var h=u*d,g=Ai(i,e,n,h),_=Ai(t,r,o,h),y=g-s,C=_-l;c+=Math.sqrt(y*y+C*C),s=g,l=_}return c}var zre=/cubic-bezier\(([0-9,\.e ]+)\)/;function kh(i){var t=i&&zre.exec(i);if(t){var e=t[1].split(","),r=+Qi(e[0]),n=+Qi(e[1]),o=+Qi(e[2]),a=+Qi(e[3]);if(isNaN(r+n+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Hs(0,r,o,1,l,s)&&oi(0,n,a,1,s[0])}}}var Ure=(function(){function i(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Di,this.ondestroy=t.ondestroy||Di,this.onrestart=t.onrestart||Di,t.easing&&this.setEasing(t.easing)}return i.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var r=this._life,n=t-this._startTime-this._pausedTime,o=n/r;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=n%r;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},i.prototype.pause=function(){this._paused=!0},i.prototype.resume=function(){this._paused=!1},i.prototype.setEasing=function(t){this.easing=t,this.easingFunc=we(t)?t:xh[t]||kh(t)},i})(),g3=Ure;var Fh={};$r(Fh,{fastLerp:()=>x3,fastMapToColor:()=>Yre,lerp:()=>Mh,lift:()=>n1,liftColor:()=>Ph,lum:()=>Ws,mapToColor:()=>Kre,modifyAlpha:()=>$re,modifyHSL:()=>Lc,parse:()=>hr,parseCssFloat:()=>Na,parseCssInt:()=>Dh,random:()=>Zre,stringify:()=>So,toHex:()=>jre});var v3=(function(){function i(t){this.value=t}return i})();var Hre=(function(){function i(){this._len=0}return i.prototype.insert=function(t){var e=new v3(t);return this.insertEntry(e),e},i.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},i.prototype.remove=function(t){var e=t.prev,r=t.next;e?e.next=r:this.head=r,r?r.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.prototype.len=function(){return this._len},i.prototype.clear=function(){this.head=this.tail=null,this._len=0},i})();var Wre=(function(){function i(t){this._list=new Hre,this._maxSize=10,this._map={},this._maxSize=t}return i.prototype.put=function(t,e){var r=this._list,n=this._map,o=null;if(n[t]==null){var a=r.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=r.head;r.remove(l),delete n[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new v3(e),s.key=t,r.insertEntry(s),n[t]=s}return o},i.prototype.get=function(t){var e=this._map[t],r=this._list;if(e!=null)return e!==r.tail&&(r.remove(e),r.insertEntry(e)),e.value},i.prototype.clear=function(){this._list.clear(),this._map={}},i.prototype.len=function(){return this._list.len()},i})(),Co=Wre;var _3={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function jn(i){return i=Math.round(i),i<0?0:i>255?255:i}function Gre(i){return i=Math.round(i),i<0?0:i>360?360:i}function _p(i){return i<0?0:i>1?1:i}function Dh(i){var t=i;return t.length&&t.charAt(t.length-1)==="%"?jn(parseFloat(t)/100*255):jn(parseInt(t,10))}function Na(i){var t=i;return t.length&&t.charAt(t.length-1)==="%"?_p(parseFloat(t)/100):_p(parseFloat(t))}function t1(i,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?i+(t-i)*e*6:e*2<1?t:e*3<2?i+(t-i)*(2/3-e)*6:i}function Ba(i,t,e){return i+(t-i)*e}function Mn(i,t,e,r,n){return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}function i1(i,t){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3],i}var y3=new Co(20),Ih=null;function Rc(i,t){Ih&&i1(Ih,t),Ih=y3.put(i,Ih||t.slice())}function hr(i,t){if(i){t=t||[];var e=y3.get(i);if(e)return i1(t,e);i=i+"";var r=i.replace(/ /g,"").toLowerCase();if(r in _3)return i1(t,_3[r]),Rc(i,t),t;var n=r.length;if(r.charAt(0)==="#"){if(n===4||n===5){var o=parseInt(r.slice(1,4),16);if(!(o>=0&&o<=4095)){Mn(t,0,0,0,1);return}return Mn(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,n===5?parseInt(r.slice(4),16)/15:1),Rc(i,t),t}else if(n===7||n===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){Mn(t,0,0,0,1);return}return Mn(t,(o&16711680)>>16,(o&65280)>>8,o&255,n===9?parseInt(r.slice(7),16)/255:1),Rc(i,t),t}return}var a=r.indexOf("("),s=r.indexOf(")");if(a!==-1&&s+1===n){var l=r.substr(0,a),c=r.substr(a+1,s-(a+1)).split(","),d=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?Mn(t,+c[0],+c[1],+c[2],1):Mn(t,0,0,0,1);d=Na(c.pop());case"rgb":if(c.length>=3)return Mn(t,Dh(c[0]),Dh(c[1]),Dh(c[2]),c.length===3?d:Na(c[3])),Rc(i,t),t;Mn(t,0,0,0,1);return;case"hsla":if(c.length!==4){Mn(t,0,0,0,1);return}return c[3]=Na(c[3]),r1(c,t),Rc(i,t),t;case"hsl":if(c.length!==3){Mn(t,0,0,0,1);return}return r1(c,t),Rc(i,t),t;default:return}}Mn(t,0,0,0,1)}}function r1(i,t){var e=(parseFloat(i[0])%360+360)%360/360,r=Na(i[1]),n=Na(i[2]),o=n<=.5?n*(r+1):n+r-n*r,a=n*2-o;
1815return t=t||[],Mn(t,jn(t1(a,o,e+1/3)*255),jn(t1(a,o,e)*255),jn(t1(a,o,e-1/3)*255),1),i.length===4&&(t[3]=i[3]),t}function qre(i){if(i){var t=i[0]/255,e=i[1]/255,r=i[2]/255,n=Math.min(t,e,r),o=Math.max(t,e,r),a=o-n,s=(o+n)/2,l,c;if(a===0)l=0,c=0;else{s<.5?c=a/(o+n):c=a/(2-o-n);var d=((o-t)/6+a/2)/a,u=((o-e)/6+a/2)/a,h=((o-r)/6+a/2)/a;t===o?l=h-u:e===o?l=1/3+d-h:r===o&&(l=2/3+u-d),l<0&&(l+=1),l>1&&(l-=1)}var g=[l*360,c,s];return i[3]!=null&&g.push(i[3]),g}}function n1(i,t){var e=hr(i);if(e){for(var r=0;r<3;r++)t<0?e[r]=e[r]*(1-t)|0:e[r]=(255-e[r])*t+e[r]|0,e[r]>255?e[r]=255:e[r]<0&&(e[r]=0);return So(e,e.length===4?"rgba":"rgb")}}function jre(i){var t=hr(i);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function x3(i,t,e){if(!(!(t&&t.length)||!(i>=0&&i<=1))){e=e||[];var r=i*(t.length-1),n=Math.floor(r),o=Math.ceil(r),a=t[n],s=t[o],l=r-n;return e[0]=jn(Ba(a[0],s[0],l)),e[1]=jn(Ba(a[1],s[1],l)),e[2]=jn(Ba(a[2],s[2],l)),e[3]=_p(Ba(a[3],s[3],l)),e}}var Yre=x3;function Mh(i,t,e){if(!(!(t&&t.length)||!(i>=0&&i<=1))){var r=i*(t.length-1),n=Math.floor(r),o=Math.ceil(r),a=hr(t[n]),s=hr(t[o]),l=r-n,c=So([jn(Ba(a[0],s[0],l)),jn(Ba(a[1],s[1],l)),jn(Ba(a[2],s[2],l)),_p(Ba(a[3],s[3],l))],"rgba");return e?{color:c,leftIndex:n,rightIndex:o,value:r}:c}}var Kre=Mh;function Lc(i,t,e,r){var n=hr(i);if(i)return n=qre(n),t!=null&&(n[0]=Gre(we(t)?t(n[0]):t)),e!=null&&(n[1]=Na(we(e)?e(n[1]):e)),r!=null&&(n[2]=Na(we(r)?r(n[2]):r)),So(r1(n),"rgba")}function $re(i,t){var e=hr(i);if(e&&t!=null)return e[3]=_p(t),So(e,"rgba")}function So(i,t){if(!(!i||!i.length)){var e=i[0]+","+i[1]+","+i[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+i[3]),t+"("+e+")"}}function Ws(i,t){var e=hr(i);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function Zre(){return So([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var b3=new Co(100);function Ph(i){if(pe(i)){var t=b3.get(i);return t||(t=n1(i,-.1),b3.put(i,t)),t}else if(Wo(i)){var e=se({},i);return e.colorStops=ue(i.colorStops,function(r){return{offset:r.offset,color:n1(r.color,-.1)}}),e}return i}function C3(i){return i.type==="linear"}function S3(i){return i.type==="radial"}var tAe=(function(){return Ue.hasGlobalWindow&&we(window.btoa)?function(i){return window.btoa(unescape(encodeURIComponent(i)))}:typeof Buffer<"u"?function(i){return Buffer.from(i).toString("base64")}:function(i){return null}})();var a1=Array.prototype.slice;function $o(i,t,e){return(t-i)*e+i}function o1(i,t,e,r){for(var n=t.length,o=0;o<n;o++)i[o]=$o(t[o],e[o],r);return i}function Qre(i,t,e,r){for(var n=t.length,o=n&&t[0].length,a=0;a<n;a++){i[a]||(i[a]=[]);for(var s=0;s<o;s++)i[a][s]=$o(t[a][s],e[a][s],r)}return i}function Rh(i,t,e,r){for(var n=t.length,o=0;o<n;o++)i[o]=t[o]+e[o]*r;return i}function w3(i,t,e,r){for(var n=t.length,o=n&&t[0].length,a=0;a<n;a++){i[a]||(i[a]=[]);for(var s=0;s<o;s++)i[a][s]=t[a][s]+e[a][s]*r}return i}function Xre(i,t){for(var e=i.length,r=t.length,n=e>r?t:i,o=Math.min(e,r),a=n[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(e,r);s++)n.push({offset:a.offset,color:a.color.slice()})}function Jre(i,t,e){var r=i,n=t;if(!(!r.push||!n.push)){var o=r.length,a=n.length;if(o!==a){var s=o>a;if(s)r.length=a;else for(var l=o;l<a;l++)r.push(e===1?n[l]:a1.call(n[l]))}for(var c=r[0]&&r[0].length,l=0;l<r.length;l++)if(e===1)isNaN(r[l])&&(r[l]=n[l]);else for(var d=0;d<c;d++)isNaN(r[l][d])&&(r[l][d]=n[l][d])}}function xp(i){if(_i(i)){var t=i.length;if(_i(i[0])){for(var e=[],r=0;r<t;r++)e.push(a1.call(i[r]));return e}return a1.call(i)}return i}function Ah(i){return i[0]=Math.floor(i[0])||0,i[1]=Math.floor(i[1])||0,i[2]=Math.floor(i[2])||0,i[3]=i[3]==null?1:i[3],"rgba("+i.join(",")+")"}function ene(i){return _i(i&&i[0])?2:1}var Lh=0,Bh=1,k3=2,yp=3,s1=4,l1=5,T3=6;function E3(i){return i===s1||i===l1}function Oh(i){return i===Bh||i===k3}var bp=[0,0,0,0],tne=(function(){function i(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return i.prototype.isFinished=function(){return this._finished},i.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},i.prototype.needsAnimate=function(){return this.keyframes.length>=1},i.prototype.getAdditiveTrack=function(){return this._additiveTrack},i.prototype.addKeyframe=function(t,e,r){this._needsSort=!0;var n=this.keyframes,o=n.length,a=!1,s=T3,l=e;if(_i(e)){var c=ene(e);s=c,(c===1&&!st(e[0])||c===2&&!st(e[0][0]))&&(a=!0)}else if(st(e)&&!Go(e))s=Lh;else if(pe(e))if(!isNaN(+e))s=Lh;else{var d=hr(e);d&&(l=d,s=yp)}else if(Wo(e)){var u=se({},l);u.colorStops=ue(e.colorStops,function(g){return{offset:g.offset,color:hr(g.color)}}),C3(e)?s=s1:S3(e)&&(s=l1),l=u}o===0?this.valType=s:(s!==this.valType||s===T3)&&(a=!0),this.discrete=this.discrete||a;var h={time:t,value:l,rawValue:e,percent:0};return r&&(h.easing=r,h.easingFunc=we(r)?r:xh[r]||kh(r)),n.push(h),h},i.prototype.prepare=function(t,e){var r=this.keyframes;this._needsSort&&r.sort(function(y,C){return y.time-C.time});for(var n=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=Oh(n),c=E3(n),d=0;d<o;d++){var u=r[d],h=u.value,g=a.value;u.percent=u.time/t,s||(l&&d!==o-1?Jre(h,g,n):c&&Xre(h.colorStops,g.colorStops))}if(!s&&n!==l1&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var _=r[0].value,d=0;d<o;d++)n===Lh?r[d].additiveValue=r[d].value-_:n===yp?r[d].additiveValue=Rh([],r[d].value,_,-1):Oh(n)&&(r[d].additiveValue=n===Bh?Rh([],r[d].value,_,-1):w3([],r[d].value,_,-1))}},i.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var r=this._additiveTrack!=null,n=r?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,c=o===yp,d,u=this._lastFr,h=Math.min,g,_;if(s===1)g=_=a[0];else{if(e<0)d=0;else if(e<this._lastFrP){var y=h(u+1,s-1);for(d=y;d>=0&&!(a[d].percent<=e);d--);d=h(d,s-2)}else{for(d=u;d<s&&!(a[d].percent>e);d++);d=h(d-1,s-2)}_=a[d+1],g=a[d]}if(g&&_){this._lastFr=d,this._lastFrP=e;var C=_.percent-g.percent,x=C===0?1:h((e-g.percent)/C,1);_.easingFunc&&(x=_.easingFunc(x));var w=r?this._additiveValue:c?bp:t[l];if((Oh(o)||c)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=x<1?g.rawValue:_.rawValue;else if(Oh(o))o===Bh?o1(w,g[n],_[n],x):Qre(w,g[n],_[n],x);else if(E3(o)){var E=g[n],k=_[n],D=o===s1;t[l]={type:D?"linear":"radial",x:$o(E.x,k.x,x),y:$o(E.y,k.y,x),colorStops:ue(E.colorStops,function(F,A){var U=k.colorStops[A];return{offset:$o(F.offset,U.offset,x),color:Ah(o1([],F.color,U.color,x))}}),global:k.global},D?(t[l].x2=$o(E.x2,k.x2,x),t[l].y2=$o(E.y2,k.y2,x)):t[l].r=$o(E.r,k.r,x)}else if(c)o1(w,g[n],_[n],x),r||(t[l]=Ah(w));else{var I=$o(g[n],_[n],x);r?this._additiveValue=I:t[l]=I}r&&this._addToTarget(t)}}},i.prototype._addToTarget=function(t){var e=this.valType,r=this.propName,n=this._additiveValue;e===Lh?t[r]=t[r]+n:e===yp?(hr(t[r],bp),Rh(bp,bp,n,1),t[r]=Ah(bp)):e===Bh?Rh(t[r],t[r],n,1):e===k3&&w3(t[r],t[r],n,1)},i})(),ine=(function(){function i(t,e,r,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){Ms("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=r}return i.prototype.getMaxTime=function(){return this._maxTime},i.prototype.getDelay=function(){return this._delay},i.prototype.getLoop=function(){return this._loop},i.prototype.getTarget=function(){return this._target},i.prototype.changeTarget=function(t){this._target=t},i.prototype.when=function(t,e,r){return this.whenWithKeys(t,e,dt(e),r)},i.prototype.whenWithKeys=function(t,e,r,n){for(var o=this._tracks,a=0;a<r.length;a++){var s=r[a],l=o[s];if(!l){l=o[s]=new tne(s);var c=void 0,d=this._getAdditiveTrack(s);if(d){var u=d.keyframes,h=u[u.length-1];
1815c=h&&h.value,d.valType===yp&&c&&(c=Ah(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,xp(c),n),this._trackKeys.push(s)}l.addKeyframe(t,xp(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},i.prototype.pause=function(){this._clip.pause(),this._paused=!0},i.prototype.resume=function(){this._clip.resume(),this._paused=!1},i.prototype.isPaused=function(){return!!this._paused},i.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},i.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,r=0;r<e;r++)t[r].call(this)},i.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var r=0;r<e.length;r++)e[r].call(this)},i.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,r=0;r<e.length;r++)t[e[r]].setFinished()},i.prototype._getAdditiveTrack=function(t){var e,r=this._additiveAnimators;if(r)for(var n=0;n<r.length;n++){var o=r[n].getTrack(t);o&&(e=o)}return e},i.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,r=[],n=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),c=s.keyframes,d=c.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var u=c[d-1];u&&(e._target[s.propName]=u.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var h=new g3({life:n,loop:this._loop,delay:this._delay||0,onframe:function(g){e._started=2;var _=e._additiveAnimators;if(_){for(var y=!1,C=0;C<_.length;C++)if(_[C]._clip){y=!0;break}y||(e._additiveAnimators=null)}for(var C=0;C<r.length;C++)r[C].step(e._target,g);var x=e._onframeCbs;if(x)for(var C=0;C<x.length;C++)x[C](e._target,g)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(t)}else this._doneCallback();return this}},i.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},i.prototype.delay=function(t){return this._delay=t,this},i.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},i.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},i.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},i.prototype.getClip=function(){return this._clip},i.prototype.getTrack=function(t){return this._tracks[t]},i.prototype.getTracks=function(){var t=this;return ue(this._trackKeys,function(e){return t._tracks[e]})},i.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var r=this._tracks,n=this._trackKeys,o=0;o<t.length;o++){var a=r[t[o]];a&&!a.isFinished()&&(e?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<n.length;o++)if(!r[n[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},i.prototype.saveTo=function(t,e,r){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var o=e[n],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[r?0:s.length-1];l&&(t[o]=xp(l.rawValue))}}}},i.prototype.__changeFinalValue=function(t,e){e=e||dt(t);for(var r=0;r<e.length;r++){var n=e[r],o=this._tracks[n];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[n]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},i})(),Cp=ine;function Gs(){return new Date().getTime()}var rne=(function(i){We(t,i);function t(e){var r=i.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,e=e||{},r.stage=e.stage||{},r}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var r=e.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(e){if(e.animation){var r=e.prev,n=e.next;r?r.next=n:this._head=n,n?n.prev=r:this._tail=r,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var r=e.getClip();r&&this.removeClip(r),e.animation=null},t.prototype.update=function(e){for(var r=Gs()-this._pausedTime,n=r-this._time,o=this._head;o;){var a=o.next,s=o.step(r,n);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=r,e||(this.trigger("frame",n),this.stage.update&&this.stage.update(
1815))},t.prototype._startLoop=function(){var e=this;this._running=!0;function r(){e._running&&(vp(r),!e._paused&&e.update())}vp(r)},t.prototype.start=function(){this._running||(this._time=Gs(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Gs(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Gs()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var r=e.next;e.prev=e.next=e.animation=null,e=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,r){r=r||{},this.start();var n=new Cp(e,r.loop);return this.addAnimator(n),n},t})(nr),I3=rne;var nne=300,c1=Ue.domSupported,d1=(function(){var i=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ue(i,function(n){var o=n.replace("mouse","pointer");return e.hasOwnProperty(o)?o:n});return{mouse:i,touch:t,pointer:r}})(),D3={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},M3=!1;function m1(i){var t=i.pointerType;return t==="pen"||t==="touch"}function one(i){i.touching=!0,i.touchTimer!=null&&(clearTimeout(i.touchTimer),i.touchTimer=null),i.touchTimer=setTimeout(function(){i.touching=!1,i.touchTimer=null},700)}function p1(i){i&&(i.zrByTouch=!0)}function ane(i,t){return Ur(i.dom,new sne(i,t),!0)}function F3(i,t){for(var e=t,r=!1;e&&e.nodeType!==9&&!(r=e.domBelongToZr||e!==t&&e===i.painterRoot);)e=e.parentNode;return r}var sne=(function(){function i(t,e){this.stopPropagation=Di,this.stopImmediatePropagation=Di,this.preventDefault=Di,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return i})(),Yn={mousedown:function(i){i=Ur(this.dom,i),this.__mayPointerCapture=[i.zrX,i.zrY],this.trigger("mousedown",i)},mousemove:function(i){i=Ur(this.dom,i);var t=this.__mayPointerCapture;t&&(i.zrX!==t[0]||i.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",i)},mouseup:function(i){i=Ur(this.dom,i),this.__togglePointerCapture(!1),this.trigger("mouseup",i)},mouseout:function(i){i=Ur(this.dom,i);var t=i.toElement||i.relatedTarget;F3(this,t)||(this.__pointerCapturing&&(i.zrEventControl="no_globalout"),this.trigger("mouseout",i))},wheel:function(i){M3=!0,i=Ur(this.dom,i),this.trigger("mousewheel",i)},mousewheel:function(i){M3||(i=Ur(this.dom,i),this.trigger("mousewheel",i))},touchstart:function(i){i=Ur(this.dom,i),p1(i),this.__lastTouchMoment=ne
1815w Date,this.handler.processGesture(i,"start"),Yn.mousemove.call(this,i),Yn.mousedown.call(this,i)},touchmove:function(i){i=Ur(this.dom,i),p1(i),this.handler.processGesture(i,"change"),Yn.mousemove.call(this,i)},touchend:function(i){i=Ur(this.dom,i),p1(i),this.handler.processGesture(i,"end"),Yn.mouseup.call(this,i),+new Date-+this.__lastTouchMoment<nne&&Yn.click.call(this,i)},pointerdown:function(i){Yn.mousedown.call(this,i)},pointermove:function(i){m1(i)||Yn.mousemove.call(this,i)},pointerup:function(i){Yn.mouseup.call(this,i)},pointerout:function(i){m1(i)||Yn.mouseout.call(this,i)}};P(["click","dblclick","contextmenu"],function(i){Yn[i]=function(t){t=Ur(this.dom,t),this.trigger(i,t)}});var f1={pointermove:function(i){m1(i)||f1.mousemove.call(this,i)},pointerup:function(i){f1.mouseup.call(this,i)},mousemove:function(i){this.trigger("mousemove",i)},mouseup:function(i){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",i),t&&(i.zrEventControl="only_globalout",this.trigger("mouseout",i))}};function lne(i,t){var e=t.domHandlers;Ue.pointerEventsSupported?P(d1.pointer,function(r){Nh(t,r,function(n){e[r].call(i,n)})}):(Ue.touchEventsSupported&&P(d1.touch,function(r){Nh(t,r,function(n){e[r].call(i,n),one(t)})}),P(d1.mouse,function(r){Nh(t,r,function(n){n=_h(n),t.touching||e[r].call(i,n)})}))}function cne(i,t){Ue.pointerEventsSupported?P(D3.pointer,e):Ue.touchEventsSupported||P(D3.mouse,e);function e(r){function n(o){o=_h(o),F3(i,o.target)||(o=ane(i,o),t.domHandlers[r].call(i,o))}Nh(t,r,n,{capture:!0})}}function Nh(i,t,e,r){i.mounted[t]=e,i.listenerOpts[t]=r,GI(i.domTarget,t,e,r)}function u1(i){var t=i.mounted;for(var e in t)t.hasOwnProperty(e)&&qI(i.domTarget,e,t[e],i.listenerOpts[e]);i.mounted={}}var P3=(function(){function i(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return i})(),dne=(function(i){We(t,i);function t(e,r){var n=i.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=r,n._localHandlerScope=new P3(e,Yn),c1&&(n._globalHandlerScope=new P3(document,f1)),lne(n,n._localHandlerScope),n}return t.prototype.dispose=function(){u1(this._localHandlerScope),c1&&u1(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,c1&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var r=this._globalHandlerScope;e?cne(this,r):u1(r)}},t})(nr),R3=dne;var L3=1;Ue.hasGlobalWindow&&(L3=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var qs=L3,Sp=.4,wp="#333",Tp="#ccc",O3="#eee";var A3=Yo,B3=5e-5;function js(i){return i>B3||i<-B3}var Ys=[],Oc=[],h1=fr(),g1=Math.abs,pne=(function(){function i(){}return i.prototype.getLocalTransform=function(t){return i.getLocalTransform(this,t)},i.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},i.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},i.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},i.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},i.prototype.needLocalTransform=function(){return js(this.rotation)||js(this.x)||js(this.y)||js(this.scaleX-1)||js(this.scaleY-1)||js(this.skewX)||js(this.skewY)},i.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),r=this.transform;if(!(e||t)){r&&(A3(r),this.invTransform=null);return}r=r||fr(),e?this.getLocalTransform(r):A3(r),t&&(e?qn(r,t,r):kc(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},i.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ys);var r=Ys[0]<0?-1:1,n=Ys[1]<0?-1:1,o=((Ys[0]-r)*e+r)/Ys[0]||0,a=((Ys[1]-n)*e+n)/Ys[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||fr(),tn(this.invTransform,t)},i.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},i.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),o=Math.PI/2+n-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(o),e=Math.sqrt(e),this.skewX=o,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=r,this.originX=0,this.originY=0}},i.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||fr(),qn(Oc,t.invTransform,e),e=Oc
1815);var r=this.originX,n=this.originY;(r||n)&&(h1[4]=r,h1[5]=n,qn(Oc,e,h1),Oc[4]-=r,Oc[5]-=n,e=Oc),this.setLocalTransform(e)}},i.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},i.prototype.transformCoordToLocal=function(t,e){var r=[t,e],n=this.invTransform;return n&&bi(r,r,n),r},i.prototype.transformCoordToGlobal=function(t,e){var r=[t,e],n=this.transform;return n&&bi(r,r,n),r},i.prototype.getLineScale=function(){var t=this.transform;return t&&g1(t[0]-1)>1e-10&&g1(t[3]-1)>1e-10?Math.sqrt(g1(t[0]*t[3]-t[2]*t[1])):1},i.prototype.copyTransform=function(t){Vh(this,t)},i.getLocalTransform=function(t,e){e=e||[];var r=t.originX||0,n=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,d=t.x,u=t.y,h=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(r||n||s||l){var _=r+s,y=n+l;e[4]=-_*o-h*y*a,e[5]=-y*a-g*_*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=g*o,e[2]=h*a,c&&Ls(e,e,c),e[4]+=r+d,e[5]+=n+u,e},i.initDefaultProps=(function(){var t=i.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),i})(),Ks=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Vh(i,t){for(var e=0;e<Ks.length;e++){var r=Ks[e];i[r]=t[r]}}var Ep=pne;function Kn(i){zh||(zh=new Co(100)),i=i||Tn;var t=zh.get(i);return t||(t={font:i,strWidthCache:new Co(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:$i.measureText("\u56FD",i).width,asciiCharWidth:$i.measureText("a",i).width},zh.put(i,t)),t}var zh;function une(i){if(!(v1>=N3)){i=i||Tn;for(var t=[],e=+new Date,r=0;r<=127;r++)t[r]=$i.measureText(String.fromCharCode(r),i).width;var n=+new Date-e;return n>16?v1=N3:n>2&&v1++,t}}var v1=0,N3=5;function _1(i,t){return i.asciiWidthMapTried||(i.asciiWidthMap=une(i.font),i.asciiWidthMapTried=!0),0<=t&&t<=127?i.asciiWidthMap!=null?i.asciiWidthMap[t]:i.asciiCharWidth:i.stWideCharWidth}function $n(i,t){var e=i.strWidthCache,r=e.get(t);return r==null&&(r=$i.measureText(t,i.font).width,e.put(t,r)),r}function V3(i,t,e,r){var n=$n(Kn(t),i),o=kp(t),a=Va(0,n,e),s=Zo(0,o,r),l=new Be(a,s,n,o);return l}function Uh(i,t,e,r){var n=((i||"")+"").split(`
1816`),o=n.length;if(o===1)return V3(n[0],t,e,r);for(var a=new Be(0,0,0,0),s=0;s<n.length;s++){var l=V3(n[s],t,e,r);s===0?a.copy(l):a.union(l)}return a}function Va(i,t,e,r){return e==="right"?r?i+=t:i-=t:e==="center"&&(r?i+=t/2:i-=t/2),i}function Zo(i,t,e,r){return e==="middle"?r?i+=t/2:i-=t/2:e==="bottom"&&(r?i+=t:i-=t),i}function kp(i){return Kn(i).stWideCharWidth}function Pn(i,t){return typeof i=="string"?i.lastIndexOf("%")>=0?parseFloat(i)/100*t:parseFloat(i):i}function $s(i,t,e){var r=t.position||"inside",n=t.distance!=null?t.distance:5,o=e.height,a=e.width,s=o/2,l=e.x,c=e.y,d="left",u="top";if(r instanceof Array)l+=Pn(r[0],e.width),c+=Pn(r[1],e.height),d=null,u=null;else switch(r){case"left":l-=n,c+=s,d="right",u="middle";break;case"right":l+=n+a,c+=s,u="middle";break;case"top":l+=a/2,c-=n,d="center",u="bottom";break;case"bottom":l+=a/2,c+=o+n,d="center";break;case"inside":l+=a/2,c+=s,d="center",u="middle";break;case"insideLeft":l+=n,c+=s,u="middle";break;case"insideRight":l+=a-n,c+=s,d="right",u="middle";break;case"insideTop":l+=a/2,c+=n,d="center";break;case"insideBottom":l+=a/2,c+=o-n,d="center",u="bottom";break;case"insideTopLeft":l+=n,c+=n;break;case"insideTopRight":l+=a-n,c+=n,d="right";break;case"insideBottomLeft":l+=n,c+=o-n,u="bottom";break;case"insideBottomRight":l+=a-n,c+=o-n,d="right",u="bottom";break}return i=i||{},i.x=l,i.y=c,i.align=d,i.verticalAlign=u,i}var b1="__zr_normal__",y1=Ks.concat(["ignore"]),mne=mr(Ks,function(i,t){return i[t]=!0,i},{ignore:!1}),Ac={},fne=new Be(0,0,0,0),Hh=[],S1=(function(){function i(t){this.id=sp(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return i.prototype._init=function(t){this.attr(t)},i.prototype.drift=function(t,e,r){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;
1816n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},i.prototype.beforeUpdate=function(){},i.prototype.afterUpdate=function(){},i.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},i.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,n=r.local,o=e.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=n?this:null;var c=!1;o.copyTransform(e);var d=r.position!=null,u=r.autoOverflowArea,h=void 0;if((u||d)&&(h=fne,r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),n||h.applyTransform(this.transform)),d){this.calculateTextPosition?this.calculateTextPosition(Ac,r,h):$s(Ac,r,h),o.x=Ac.x,o.y=Ac.y,a=Ac.align,s=Ac.verticalAlign;var g=r.origin;if(g&&r.rotation!=null){var _=void 0,y=void 0;g==="center"?(_=h.width*.5,y=h.height*.5):(_=Pn(g[0],h.width),y=Pn(g[1],h.height)),c=!0,o.originX=-o.x+_+(n?0:h.x),o.originY=-o.y+y+(n?0:h.y)}}r.rotation!=null&&(o.rotation=r.rotation);var C=r.offset;C&&(o.x+=C[0],o.y+=C[1],c||(o.originX=-C[0],o.originY=-C[1]));var x=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(u){var w=x.overflowRect=x.overflowRect||new Be(0,0,0,0);o.getLocalTransform(Hh),tn(Hh,Hh),Be.copy(w,h),w.applyTransform(Hh)}else x.overflowRect=null;
1816var E=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,k=void 0,D=void 0,I=void 0;E&&this.canBeInsideText()?(k=r.insideFill,D=r.insideStroke,(k==null||k==="auto")&&(k=this.getInsideTextFill()),(D==null||D==="auto")&&(D=this.getInsideTextStroke(k),I=!0)):(k=r.outsideFill,D=r.outsideStroke,(k==null||k==="auto")&&(k=this.getOutsideFill()),(D==null||D==="auto")&&(D=this.getOutsideStroke(k),I=!0)),k=k||"#000",(k!==x.fill||D!==x.stroke||I!==x.autoStroke||a!==x.align||s!==x.verticalAlign)&&(l=!0,x.fill=k,x.stroke=D,x.autoStroke=I,x.align=a,x.verticalAlign=s,e.setDefaultTextStyle(x)),e.__dirty|=Mi,l&&e.dirtyStyle(!0)}},i.prototype.canBeInsideText=function(){return!0},i.prototype.getInsideTextFill=function(){return"#fff"},i.prototype.getInsideTextStroke=function(t){return"#000"},i.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Tp:wp},i.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),r=typeof e=="string"&&hr(e);r||(r=[255,255,255,1]);for(var n=r[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)r[a]=r[a]*n+(o?0:255)*(1-n);return r[3]=1,So(r,"rgba")},i.prototype.traverse=function(t,e){},i.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},se(this.extra,e)):this[t]=e},i.prototype.hide=function(){this.ignore=!0,this.markRedraw()},i.prototype.show=function(){this.ignore=!1,this.markRedraw()},i.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(ve(t))for(var r=t,n=dt(r),o=0;o<n.length;o++){var a=n[o];this.attrKV(a,t[a])}return this.markRedraw(),this},i.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,r=0;r<this.animators.length;r++){var n=this.animators[r],o=n.__fromStateTransition;if(!(n.getLoop()||o&&o!==b1)){var a=n.targetName,s=a?e[a]:e;n.saveTo(s)}}},i.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,y1)},i.prototype._savePrimaryToNormal=function(t,e,r){for(var n=0;n<r.length;n++){var o=r[n];t[o]!=null&&!(o in e)&&(e[o]=this[o])}},i.prototype.hasState=function(){return this.currentStates.length>0},i.prototype.getState=function(t){return this.states[t]},i.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},i.prototype.clearStates=function(t){this.useState(b1,!1,t)},i.prototype.useState=function(t,e,r,n){var o=t===b1,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(je(s,t)>=0&&(e||s.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!o){Ms("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(c);var d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,e,!r&&!this.__inHover&&l&&l.duration>0,l);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,r,d),h&&h.useState(t,e,r,d),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mi),c}}},i.prototype.useStates=function(t,e,r){if(!t.length)this.clearStates();else{var n=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var c=t[l],d=void 0;this.stateProxy&&(d=this.stateProxy(c,t)),d||(d=this.states[c]),d&&n.push(d)}var u=n[a-1],h=!!(u&&u.hoverLayer||r);h&&this._toggleHoverLayerFlag(!0);var g=this._mergeStates(n),_=this.stateTransition;this.saveCurrentToNormalState(g),this._applyStateObj(t.join(","),g,this._normalState,!1,!e&&!this.__inHover&&_&&_.duration>0,_);var y=this._textContent,C=this._textGuide;y&&y.useStates(t,e,h),C&&C.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mi)}},i.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},i.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},i.prototype.removeState=function(t){var e=je(this.currentStates,t);
1816if(e>=0){var r=this.currentStates.slice();r.splice(e,1),this.useStates(r)}},i.prototype.replaceState=function(t,e,r){var n=this.currentStates.slice(),o=je(n,t),a=je(n,e)>=0;o>=0?a?n.splice(o,1):n[o]=e:r&&!a&&n.push(e),this.useStates(n)},i.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},i.prototype._mergeStates=function(t){for(var e={},r,n=0;n<t.length;n++){var o=t[n];se(e,o),o.textConfig&&(r=r||{},se(r,o.textConfig))}return r&&(e.textConfig=r),e},i.prototype._applyStateObj=function(t,e,r,n,o,a){var s=!(e&&n);e&&e.textConfig?(this.textConfig=se({},n?this.textConfig:r.textConfig),se(this.textConfig,e.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},c=!1,d=0;d<y1.length;d++){var u=y1[d],h=o&&mne[u];e&&e[u]!=null?h?(c=!0,l[u]=e[u]):this[u]=e[u]:s&&r[u]!=null&&(h?(c=!0,l[u]=r[u]):this[u]=r[u])}if(!o)for(var d=0;d<this.animators.length;d++){var g=this.animators[d],_=g.targetName;g.getLoop()||g.__changeFinalValue(_?(e||r)[_]:e||r)}c&&this._transitionState(t,l,a)},i.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},i.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},i.prototype.getClipPath=function(){return this._clipPath},i.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},i.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},i.prototype.getTextContent=function(){return this._textContent},i.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Ep,this._attachComponent(t),this._textContent=t,this.markRedraw())},i.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),se(this.textConfig,t),this.markRedraw()},i.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},i.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},i.prototype.getTextGuideLine=function(){return this._textGuide},i.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},i.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},i.prototype.markRedraw=function(){this.__dirty|=Mi;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},i.prototype.dirty=function(){this.markRedraw()},i.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,r=this._textGuide;e&&(e.__inHover=t),r&&(r.__inHover=t)},i.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.addAnimator(e[r]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},i.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var r=0;r<e.length;r++)t.animation.removeAnimator(e[r]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},i.prototype.animate=function(t,e,r){var n=t?this[t]:this,o=new Cp(n,e,r);return t&&(o.targetName=t),this.addAnimator(o,t),o},i.prototype.addAnimator=function(t,e){var r=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var o=n.animators,a=je(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},i.prototype.updateDuringAnimation=function(t){this.markRedraw()},i.prototype.stopAnimation=function(t,e){for(var r=this.animators,n=r.length,o=[],a=0;a<n;a++){var s=r[a];!t||t===s.scope?s.stop(e):o.push(s)}return this.animators=o,this},i.prototype.animateTo=function(t,e,r){x1(this,t,e,r)},i.prototype.animateFrom=function(t,e,r){x1(this,t,e,r,!0)},i.prototype._transitionState=function(t,e,r,n){for(var o=x1(this,e,r,n),a=0;a<o.length;a++)o[a].__fromStateTransition=t},i.prototype.getBoundingRect=function(){return null},i.prototype.getPaintRect=function(){return null},i.initDefaultProps=(function(){var t=i.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Mi;var e={};function r(o,a,s){e[o+a+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+a+"', '"+s+"' instead"),e[o+a+s]=!0)}function n(o,a,s,l){Object.defineProperty(t,o,{get:function(){if(!this[a]){var d=this[a]=[];c(this,d)}return this[a]},set:function(d){this[s]=d[0],this[l]=d[1],this[a]=d,c(this,d)}});function c(d,u){Object.defineProperty(u,0,{get:function(){return d[s]},set:function(h){d[s]=h}}),Object.defineProperty(u,1,{get:function(){return d[l]},set:function(h){d[l]=h}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),i})();Zi(S1,nr);Zi(S1,Ep);function x1(i,t,e,r,n){e=e||{};var o=[];U3(i,"",i,t,e,r,o,n);var a=o.length,s=!1,l=e.done,c=e.aborted,d=function(){s=!0,a--,a<=0&&(s?l&&l():c&&c())},u=function(){a--,a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&e.during&&o[0].during(function(_,y){e.during(y)});for(var h=0;h<o.length;h++){var g=o[h];d&&g.done(d),u&&g.aborted(u),e.force&&g.duration(e.duration),g.start(e.easing)}return o}function C1(i,t,e){for(var r=0;r<e;r++)i[r]=t[r]}function hne(i){return _i(i[0])}function gne(i,t,e){if(_i(t[e]))if(_i(i[e])||(i[e]=[]),di(t[e])){var r=t[e].length;i[e].length!==r&&(i[e]=new t[e].constructor(r),C1(i[e],t[e],r))}else{var n=t[e],o=i[e],a=n.length;if(hne(n))for(var s=n[0].length,l=0;l<a;l++)o[l]?C1(o[l],n[l],s):o[l]=Array.prototype.slice.call(n[l]);else C1(o,n,a);o.length=n.length}else i[e]=t[e]}function vne(i,t){return i===t||_i(i)&&_i(t)&&_ne(i,t)}function _ne(i,t){var e=i.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(i[r]!==t[r])return!1;return!0}function U3(i,t,e,r,n,o,a,s){for(var l=dt(r),c=n.duration,d=n.delay,u=n.additive,h=n.setToFinal,g=!ve(o),_=i.animators,y=[],C=0;C<l.length;C++){var x=l[C],w=r[x];if(w!=null&&e[x]!=null&&(g||o[x]))if(ve(w)&&!_i(w)&&!Wo(w)){if(t){s||(e[x]=w,i.updateDuringAnimation(t));continue}U3(i,x,e[x],w,n,o&&o[x],a,s)}else y.push(x);else s||(e[x]=w,i.updateDuringAnimation(t),y.push(x))}var E=y.length;if(!u&&E)for(var k=0;k<_.length;k++){var D=_[k];if(D.targetName===t){var I=D.stopTracks(y);if(I){var F=je(_,D);_.splice(F,1)}}}if(n.force||(y=Gt(y,function(z){return!vne(r[z],e[z])}),E=y.length),E>0||n.force&&!a.length){var A=void 0,U=void 0,q=void 0;if(s){U={},h&&(A={});for(var k=0;k<E;k++){var x=y[k];U[x]=e[x],h?A[x]=r[x]:e[x]=r[x]}}else if(h){q={};for(var k=0;k<E;k++){var x=y[k];q[x]=xp(e[x]),gne(e,r,x)}}var D=new Cp(e,!1,!1,u?Gt(_,function(Z){return Z.targetName===t}):null);D.targetName=t,n.scope&&(D.scope=n.scope),h&&A&&D.whenWithKeys(0,A,y
1816),q&&D.whenWithKeys(0,q,y),D.whenWithKeys(c??500,s?U:r,y).delay(d||0),i.addAnimator(D,t),a.push(D)}}var Wh=S1;var H3=(function(i){We(t,i);function t(e){var r=i.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(e),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var r=this._children,n=0;n<r.length;n++)if(r[n].name===e)return r[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,r){if(e&&e!==this&&e.parent!==this&&r&&r.parent===this){var n=this._children,o=n.indexOf(r);o>=0&&(n.splice(o,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,r){var n=je(this._children,e);return n>=0&&this.replaceAt(r,n),this},t.prototype.replaceAt=function(e,r){var n=this._children,o=n[r];if(e&&e!==this&&e.parent!==this&&e!==o){n[r]=e,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var r=this.__zr;r&&r!==e.__zr&&e.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(e){var r=this.__zr,n=this._children,o=je(n,e);return o<0?this:(n.splice(o,1),e.parent=null,r&&e.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,r=this.__zr,n=0;n<e.length;n++){var o=e[n];r&&o.removeSelfFromZr(r),o.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,r){for(var n=this._children,o=0;o<n.length;o++){var a=n[o];e.call(r,a,o)}return this},t.prototype.traverse=function(e,r){for(var n=0;n<this._children.length;n++){var o=this._children[n],a=e.call(r,o);o.isGroup&&!a&&o.traverse(e,r)}return this},t.prototype.addSelfToZr=function(e){i.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++){var n=this._children[r];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){i.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++){var n=this._children[r];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var r=new Be(0,0,0,0),n=e||this._children,o=[],a=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),d=l.getLocalTransform(o);d?(Be.applyTransform(r,c,d),a=a||r.clone(),a.union(r)):(a=a||c.clone(),a.union(c))}}return a||r},t})(Wh);H3.prototype.type="group";var Mt=H3;var Gh={},Zs={};function bne(i){delete Zs[i]}function yne(i){if(!i)return!1;if(typeof i=="string")return Ws(i,1)<Sp;if(i.colorStops){for(var t=i.colorStops,e=0,r=t.length,n=0;n<r;n++)e+=Ws(t[n].color,1);return e/=r,e<Sp}return!1}var xne=(function(){function i(t,e,r){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,r=r||{},this.dom=e,this.id=t;var o=new a3,a=r.renderer||"canvas";Gh[a]||(a=dt(Gh)[0]),r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new Gh[a](e,o,r,t),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var c=!Ue.node&&!Ue.worker&&!l?new R3(s.getViewportRoot(),s.root):null,d=r.useCoarsePointer,u=d==null||d==="auto"?Ue.touchEventsSupported:!!d,h=44,g;u&&(g=Fe(r.pointerSize,h)),this.handler=new e3(o,s,c,s.root,g),this.animation=new I3({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return i.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},i.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},i.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},i.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=yne(t))},i.prototype.getBackgroundColor=function(){return this._backgroundColor},i.prototype.setDarkMode=function(t){this._darkMode=t},i.prototype.isDarkMode=function(){return this._darkMode},i.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},i.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},i.prototype.flush=function(){this._disposed||this._flush(!1)},i.prototype._flush=function(t){var e,r=Gs();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Gs();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},i.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},i.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},i.prototype.refreshHover=function(){this._needsRefreshHover=!0},i.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},i.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},i.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},i.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},i.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},i.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},i.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},i.prototype.on=function(t,e,r){return this._disposed||this.handler.on(t,e,r),this},i.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},i.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},i.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Mt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},i.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,bne(this.id
1816))},i})();function qh(i,t){var e=new xne(sp(),i,t);return Zs[e.id]=e,e}function Cne(i){i.dispose()}function Sne(){for(var i in Zs)Zs.hasOwnProperty(i)&&Zs[i].dispose();Zs={}}function wne(i){return Zs[i]}function T1(i,t){Gh[i]=t}var w1;function Tne(i){if(typeof w1=="function")return w1(i)}function E1(i){w1=i}var Ene="6.0.0";var W3=1e-4,G3=20;function kne(i){return i.replace(/^\s+|\s+$/g,"")}var Bc=Math.min,Ir=Math.max,Zn=Math.abs;function Ip(i,t,e,r){var n=t[0],o=t[1],a=e[0],s=e[1],l=o-n,c=s-a;if(l===0)return c===0?a:(a+s)/2;if(r)if(l>0){if(i<=n)return a;if(i>=o)return s}else{if(i>=n)return a;if(i<=o)return s}else{if(i===n)return a;if(i===o)return s}return(i-n)/l*c+a}var yi=Ine;function Ine(i,t,e){switch(i){case"center":case"middle":i="50%";break;case"left":case"top":i="0%";break;case"right":case"bottom":i="100%";break}return Yh(i,t,e)}function Yh(i,t,e){return pe(i)?kne(i).match(/%$/)?parseFloat(i)/100*t+(e||0):parseFloat(i):i==null?NaN:+i}function Jt(i,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),G3),i=(+i).toFixed(t),e?i:+i}function q3(i){return i.sort(function(t,e){return t-e}),i}function kr(i){if(i=+i,isNaN(i))return 0;if(i>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(i*t)/t===i)return e}return k1(i)}function k1(i){var t=i.toString().toLowerCase(),e=t.indexOf("e"),r=e>0?+t.slice(e+1):0,n=e>0?e:t.length,o=t.indexOf("."),a=o<0?0:n-1-o;return Math.max(0,a-r)}function Kh(i,t){var e=Math.log,r=Math.LN10,n=Math.floor(e(i[1]-i[0])/r),o=Math.round(e(Zn(t[1]-t[0]))/r),a=Math.min(Math.max(-n+o,0),20);return isFinite(a)?a:20}function j3(i,t,e){if(!i[t])return 0;var r=Dne(i,e);return r[t]||0}function Dne(i,t){var e=mr(i,function(g,_){return g+(isNaN(_)?0:_)},0);if(e===0)return[];for(var r=Math.pow(10,t),n=ue(i,function(g){return(isNaN(g)?0:g)/e*r*100}),o=r*100,a=ue(n,function(g){return Math.floor(g)}),s=mr(a,function(g,_){return g+_},0),l=ue(n,function(g,_){return g-a[_]});s<o;){for(var c=Number.NEGATIVE_INFINITY,d=null,u=0,h=l.length;u<h;++u)l[u]>c&&(c=l[u],d=u);++a[d],l[d]=0,++s}return ue(a,function(g){return g/r})}function Y3(i,t){var e=Math.max(kr(i),kr(t)),r=i+t;return e>G3?r:Jt(r,e)}var K3=9007199254740991;function Dp(i){var t=Math.PI*2;return(i%t+t)%t}function Qs(i){return i>-W3&&i<W3}var Mne=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Dr(i){if(i instanceof Date)return i;if(pe(i)){var t=Mne.exec(i);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(i==null)return new Date(NaN);return new Date(Math.round(i))}function $h(i){return Math.pow(10,Nc(i))}function Nc(i){if(i===0)return 0;var t=Math.floor(Math.log(i)/Math.LN10);return i/Math.pow(10,t)>=10&&t++,t}function Vc(i,t){var e=Nc(i),r=Math.pow(10,e),n=i/r,o;return t?n<1.5?o=1:n<2.5?o=2:n<4?o=3:n<7?o=5:o=10:n<1?o=1:n<2?o=2:n<3?o=3:n<5?o=5:o=10,i=o*r,e>=-20?+i.toFixed(e<0?-e:0):i}function $3(i,t){var e=(i.length-1)*t+1,r=Math.floor(e),n=+i[r-1],o=e-r;return o?n+o*(i[r]-n):n}function Z3(i){i.sort(function(l,c){return s(l,c,0)?-1:1});for(var t=-1/0,e=1,r=0;r<i.length;){for(var n=i[r].interval,o=i[r].close,a=0;a<2;a++)n[a]<=t&&(n[a]=t,o[a]=a?1:1-e),t=n[a],e=o[a];n[0]===n[1]&&o[0]*o[1]!==1?i.splice(r,1):r++}return i;function s(l,c,d){return l.interval[d]<c.interval[d]||l.interval[d]===c.interval[d]&&(l.close[d]-c.close[d]===(d?-1:1)||!d&&s(l,c,1))}}function Fn(i){var t=parseFloat(i);return t==i&&(t!==0||!pe(i)||i.indexOf("x")<=0)?t:NaN}function Mp(i){return!isNaN(Fn(i))}function Zh(){return Math.round(Math.random()*9)}function Q3(i,t){return t===0?i:Q3(t,i%t)}function I1(i,t){return i==null?t:t==null?i:i*t/Q3(i,t)}var Pne="[ECharts] ",X3={},Fne=typeof console<"u"&&console.warn&&console.log;function Rne(i,t,e){if(Fne){if(e){if(X3[t])return;X3[t]=!0}console[i](Pne+t)}}function D1(i,t){Rne("error",i,t)}function Xi(i){throw new Error(i)}function J3(i,t,e){return(t-i)*e+i}var eD="series\0",Lne="\0_ec_\0";function ai(i){return i instanceof Array?i:i==null?[]:[i]}function M1(i,t,e){if(i){i[t]=i[t]||{},i.emphasis=i.emphasis||{},i.emphasis[t]=i.emphasis[t]||{};for(var r=0,n=e.length;r<n;r++){var o=e[r];!i.emphasis[t].hasOwnProperty(o)&&i[t].hasOwnProperty(o)&&(i.emphasis[t][o]=i[t][o])}}}var P1=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];
1816function Qo(i){return ve(i)&&!ne(i)&&!(i instanceof Date)?i.value:i}function tD(i){return ve(i)&&!(i instanceof Array)}function iD(i,t,e){var r=e==="normalMerge",n=e==="replaceMerge",o=e==="replaceAll";i=i||[],t=(t||[]).slice();var a=Me();P(t,function(l,c){if(!ve(l)){t[c]=null;return}});var s=One(i,a,e);return(r||n)&&Ane(s,i,a,t),r&&Bne(s,t),r||n?Nne(s,t,n):o&&Vne(s,t),zne(s),s}function One(i,t,e){var r=[];if(e==="replaceAll")return r;for(var n=0;n<i.length;n++){var o=i[n];o&&o.id!=null&&t.set(o.id,n),r.push({existing:e==="replaceMerge"||zc(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function Ane(i,t,e,r){P(r,function(n,o){if(!(!n||n.id==null)){var a=Pp(n.id),s=e.get(a);if(s!=null){var l=i[s];Ii(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=n,l.existing=t[s],r[o]=null}}})}function Bne(i,t){P(t,function(e,r){if(!(!e||e.name==null))for(var n=0;n<i.length;n++){var o=i[n].existing;if(!i[n].newOption&&o&&(o.id==null||e.id==null)&&!zc(e)&&!zc(o)&&rD("name",o,e)){i[n].newOption=e,t[r]=null;return}}})}function Nne(i,t,e){P(t,function(r){if(r){for(var n,o=0;(n=i[o])&&(n.newOption||zc(n.existing)||n.existing&&r.id!=null&&!rD("id",r,n.existing));)o++;n?(n.newOption=r,n.brandNew=e):i.push({newOption:r,brandNew:e,existing:null,keyInfo:null}),o++}})}function Vne(i,t){P(t,function(e){i.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function zne(i){var t=Me();P(i,function(e){var r=e.existing;r&&t.set(r.id,e)}),P(i,function(e){var r=e.newOption;Ii(!r||r.id==null||!t.get(r.id)||t.get(r.id)===e,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&t.set(r.id,e),!e.keyInfo&&(e.keyInfo={})}),P(i,function(e,r){var n=e.existing,o=e.newOption,a=e.keyInfo;if(ve(o)){if(a.name=o.name!=null?Pp(o.name):n?n.name:eD+r,n)a.id=Pp(n.id);else if(o.id!=null)a.id=Pp(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,e)}})}function rD(i,t,e){var r=nn(t[i],null),n=nn(e[i],null);return r!=null&&n!=null&&r===n}function Pp(i){return nn(i,"")}function nn(i,t){return i==null?t:pe(i)?i:st(i)||wc(i)?i+"":t}function Uc(i){var t=i.name;return!!(t&&t.indexOf(eD))}function zc(i){return i&&i.id!=null&&Pp(i.id).indexOf(Lne)===0}function nD(i,t,e){P(i,function(r){var n=r.newOption;ve(n)&&(r.keyInfo.mainType=t,r.keyInfo.subType=Une(t,n,r.existing,e))})}function Une(i,t,e,r){var n=t.type?t.type:e?e.subType:r.determineSubType(i,t);return n}function Rn(i,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ne(t.dataIndex)?ue(t.dataIndex,function(e){return i.indexOfRawIndex(e)}):i.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ne(t.name)?ue(t.name,function(e){return i.indexOfName(e)}):i.indexOfName(t.name)}function ht(){var i="__ec_inner_"+Hne++;return function(t){return t[i]||(t[i]={})}}var Hne=Zh();function Xh(i,t,e){var r=Fp(t,e),n=r.mainTypeSpecified,o=r.queryOptionMap,a=r.others,s=a,l=e?e.defaultMainType:null;return!n&&l&&o.set(l,{}),o.each(function(c,d){var u=za(i,d,c,{useDefault:l===d,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[d+"Models"]=u.models,s[d+"Model"]=u.models[0]}),s}function Fp(i,t){var e;if(pe(i)){var r={};r[i+"Index"]=0,e=r}else e=i;var n=Me(),o={},a=!1;return P(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],d=c[1],u=(c[2]||"").toLowerCase();if(!(!d||!u||t&&t.includeMainTypes&&je(t.includeMainTypes,d)<0)){a=a||!!d;var h=n.get(d)||n.set(d,{});h[u]=s}}),{mainTypeSpecified:a,queryOptionMap:n,others:o}}var or={useDefault:!0,enableAll:!1,enableNone:!1};function za(i,t,e,r){r=r||or;var n=e.index,o=e.id,a=e.name,s={models:null,specified:n!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=i.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(r.enableNone)return s.models=[],s;n=-1}return n==="all"&&(r.enableAll?n=o=a=null:n=-1),s.models=i.queryComponents({mainType:t,index:n,id:o,name:a}),s}function F1(i,t,e){i.setAttribute?i.setAttribute(t,e):i[t]=e}function oD(i,t){return i.getAttribute?i.getAttribute(t):i[t]}function aD(i){return i==="auto"?Ue.domSupported?"html":"richText":i||"html"}function R1(i,t,e,r,n){var o=t==null||t==="auto";if(r==null)return r;if(st(r)){var a=J3(e||0,r,n);return Jt(a,o?Math.max(kr(e||0),kr(r)):t)}else{if(pe(r))return n<1?e:r;for(var s=[],l=e,c=r,d=Math.max(l?l.length:0,c.length),u=0;u<d;++u){var h=i.getDimensionInfo(u);if(h&&h.type==="ordinal")s[u]=(n<1&&l?l:c)[u];else{var g=l&&l[u]?l[u]:0,_=c[u],a=J3(g,_,n);s[u]=Jt(a,o?Math.max(kr(g),kr(_)):t)}}return s}}var XAe=(function(){function i(){}return i.prototype.reset=function(t,e,r,n){return this._list=t,this._step=n=n||1,this._idx=e,this._end=r??(n>0?t.length:0),this.item=null,this.key=NaN,this},i.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},i})();var Wne=".",Js="___EC__COMPONENT__CONTAINER___",sD="___EC__EXTENDED_CLASS___";function Hr(i){var t={main:"",sub:""};if(i){var e=i.split(Wne);t.main=e[0]||"",t.sub=e[1]||""}return t}function Gne(i){Ii(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i),'componentType "'+i+'" illegal')}function lD(i){return!!(i&&i[sD])}function Hc(i,t){i.$constructor=i,i.extend=function(e){var r=this,n;return qne(r)?n=(function(o){xe(a,o);function a(){return o.apply(this,arguments)||this}return a})(r):(n=function(){(e.$constructor||r).apply(this,arguments)},lp(n,this)),se(n.prototype,e),n[sD]=!0,n.extend=this.extend,n.superCall=Y
1816ne,n.superApply=Kne,n.superClass=r,n}}function qne(i){return we(i)&&/^class\s/.test(Function.prototype.toString.call(i))}function Jh(i,t){i.extend=t.extend}var jne=Math.round(Math.random()*10);function cD(i){var t=["__\0is_clz",jne++].join("_");i.prototype[t]=!0,i.isInstance=function(e){return!!(e&&e[t])}}function Yne(i,t){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return this.superClass.prototype[t].apply(i,e)}function Kne(i,t,e){return this.superClass.prototype[t].apply(i,e)}function Ua(i){var t={};i.registerClass=function(r){var n=r.type||r.prototype.type;if(n){Gne(n),r.prototype.type=n;var o=Hr(n);if(!o.sub)t[o.main]=r;else if(o.sub!==Js){var a=e(o);a[o.sub]=r}}return r},i.getClass=function(r,n,o){var a=t[r];if(a&&a[Js]&&(a=n?a[n]:null),o&&!a)throw new Error(n?"Component "+r+"."+(n||"")+" is used but not imported.":r+".type should be specified.");return a},i.getClassesByMainType=function(r){var n=Hr(r),o=[],a=t[n.main];return a&&a[Js]?P(a,function(s,l){l!==Js&&o.push(s)}):o.push(a),o},i.hasClass=function(r){var n=Hr(r);return!!t[n.main]},i.getAllClassMainTypes=function(){var r=[];return P(t,function(n,o){r.push(o)}),r},i.hasSubTypes=function(r){var n=Hr(r),o=t[n.main];return o&&o[Js]};function e(r){var n=t[r.main];return(!n||!n[Js])&&(n=t[r.main]={},n[Js]=!0),n}}function wo(i,t){for(var e=0;e<i.length;e++)i[e][1]||(i[e][1]=i[e][0]);return t=t||!1,function(r,n,o){for(var a={},s=0;s<i.length;s++){var l=i[s][1];if(!(n&&je(n,l)>=0||o&&je(o,l)<0)){var c=r.getShallow(l,t);c!=null&&(a[i[s][0]]=c)}}return a}}var $ne=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Zne=wo($ne),dD=(function(){function i(){}return i.prototype.getAreaStyle=function(t,e){return Zne(this,t,e)},i})();var O1=new Co(50);function uD(i){if(typeof i=="string"){var t=O1.get(i);return t&&t.image}else return i}function A1(i,t,e,r,n){if(i)if(typeof i=="string"){if(t&&t.__zrImageSrc===i||!e)return t;var o=O1.get(i),a={hostEl:e,cb:r,cbPayload:n};return o?(t=o.image,!Wc(t)&&o.pending.push(a)):(t=$i.loadImage(i,pD,pD),t.__zrImageSrc=i,O1.put(i,t.__cachedImgObj={image:t,pending:[a]})),t}else return i;else return t}function pD(){var i=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<i.pending.length;t++){var e=i.pending[t],r=e.cb;r&&r(this,e.cbPayload),e.hostEl.dirty()}i.pending.length=0}function Wc(i){return i&&i.width&&i.height}var B1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function V1(i,t,e,r,n){var o={};return gD(o,i,t,e,r,n),o.text}function gD(i,t,e,r,n,o){if(!e){i.text="",i.isTruncated=!1;return}var a=(t+"").split(`
1817`);o=vD(e,r,n,o);for(var s=!1,l={},c=0,d=a.length;c<d;c++)_D(l,a[c],o),a[c]=l.textLine,s=s||l.isTruncated;i.text=a.join(`
1818`),i.isTruncated=s}function vD(i,t,e,r){r=r||{};var n=se({},r);e=Fe(e,"..."),n.maxIterations=Fe(r.maxIterations,2);var o=n.minChar=Fe(r.minChar,0),a=n.fontMeasureInfo=Kn(t),s=a.asciiCharWidth;n.placeholder=Fe(r.placeholder,"");for(var l=i=Math.max(0,i-1),c=0;c<o&&l>=s;c++)l-=s;var d=$n(a,e);return d>l&&(e="",d=0),l=i-d,n.ellipsis=e,n.ellipsisWidth=d,n.contentWidth=l,n.containerWidth=i,n}function _D(i,t,e){var r=e.containerWidth,n=e.contentWidth,o=e.fontMeasureInfo;if(!r){i.textLine="",i.isTruncated=!1;return}var a=$n(o,t);if(a<=r){i.textLine=t,i.isTruncated=!1;return}for(var s=0;;s++){if(a<=n||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?Xne(t,n,o):a>0?Math.floor(t.length*n/a):0;t=t.substr(0,l),a=$n(o,t)}t===""&&(t=e.placeholder),i.textLine=t,i.isTruncated=!0}function Xne(i,t,e){for(var r=0,n=0,o=i.length;n<o&&r<t;n++)r+=_1(e,i.charCodeAt(n));return n}function bD(i,t,e,r){var n=U1(i),o=t.overflow,a=t.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,c=t.font,d=o==="truncate",u=kp(c),h=Fe(t.lineHeight,u),g=t.lineOverflow==="truncate",_=!1,y=t.width;y==null&&e!=null&&(y=e-s);var C=t.height;C==null&&r!=null&&(C=r-l);var x;y!=null&&(o==="break"||o==="breakAll")?x=n?xD(n,t.font,y,o==="breakAll",0).lines:[]:x=n?n.split(`
1819`):[];var w=x.length*h;if(C==null&&(C=w),w>C&&g){var E=Math.floor(C/h);_=_||x.length>E,x=x.slice(0,E),w=x.length*h}if(n&&d&&y!=null)for(var k=vD(y,c,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),D={},I=0;I<x.length;I++)_D(D,x[I],k),x[I]=D.textLine,_=_||D.isTruncated;for(var F=C,A=0,U=Kn(c),I=0;I<x.length;I++)A=Math.max($n(U,x[I]),A);y==null&&(y=A);var q=y;return F+=l,q+=s,{lines:x,height:C,outerWidth:q,outerHeight:F,lineHeight:h,calculatedLineHeight:u,contentWidth:A,contentHeight:w,width:y,isTruncated:_}}var Jne=(function(){function i(){}return i})(),mD=(function(){function i(t){this.tokens=[],t&&(this.tokens=t)}return i})(),eoe=(function(){function i(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return i})();function yD(i,t,e,r,n){var o=new eoe,a=U1(i);if(!a)return o;var s=t.padding,l=s?s[1]+s[3]:0,c=s?s[0]+s[2]:0,d=t.width;d==null&&e!=null&&(d=e-l);var u=t.height;u==null&&r!=null&&(u=r-c);for(var h=t.overflow,g=(h==="break"||h==="breakAll")&&d!=null?{width:d,accumWidth:0,breakAll:h==="breakAll"}:null,_=B1.lastIndex=0,y;(y=B1.exec(a))!=null;){var C=y.index;C>_&&N1(o,a.substring(_,C),t,g),N1(o,y[2],t,g,y[1]),_=B1.lastIndex}_<a.length&&N1(o,a.substring(_,a.length),t,g);var x=[],w=0,E=0,k=h==="truncate",D=t.lineOverflow==="truncate",I={};function F(Or,ro,Bo){Or.width=ro,Or.lineHeight=Bo,w+=Bo,E=Math.max(E,ro)}e:for(var A=0;A<o.lines.length;A++){for(var U=o.lines[A],q=0,z=0,Z=0;Z<U.tokens.length;Z++){var j=U.tokens[Z],X=j.styleName&&t.rich[j.styleName]||{},le=j.textPadding=X.padding,me=le?le[1]+le[3]:0,ze=j.font=X.font||t.font;
1819j.contentHeight=kp(ze);var fe=Fe(X.height,j.contentHeight);if(j.innerHeight=fe,le&&(fe+=le[0]+le[2]),j.height=fe,j.lineHeight=En(X.lineHeight,t.lineHeight,fe),j.align=X&&X.align||n,j.verticalAlign=X&&X.verticalAlign||"middle",D&&u!=null&&w+j.lineHeight>u){var Ie=o.lines.length;Z>0?(U.tokens=U.tokens.slice(0,Z),F(U,z,q),o.lines=o.lines.slice(0,A+1)):o.lines=o.lines.slice(0,A),o.isTruncated=o.isTruncated||o.lines.length<Ie;break e}var Le=X.width,Oe=Le==null||Le==="auto";if(typeof Le=="string"&&Le.charAt(Le.length-1)==="%")j.percentWidth=Le,x.push(j),j.contentWidth=$n(Kn(ze),j.text);else{if(Oe){var Re=X.backgroundColor,nt=Re&&Re.image;nt&&(nt=uD(nt),Wc(nt)&&(j.width=Math.max(j.width,nt.width*fe/nt.height)))}var Pt=k&&d!=null?d-z:null;Pt!=null&&Pt<j.width?!Oe||Pt<me?(j.text="",j.width=j.contentWidth=0):(gD(I,j.text,Pt-me,ze,t.ellipsis,{minChar:t.truncateMinChar}),j.text=I.text,o.isTruncated=o.isTruncated||I.isTruncated,j.width=j.contentWidth=$n(Kn(ze),j.text)):j.contentWidth=$n(Kn(ze),j.text)}j.width+=me,z+=j.width,X&&(q=Math.max(q,j.lineHeight))}F(U,z,q)}o.outerWidth=o.width=Fe(d,E),o.outerHeight=o.height=Fe(u,w),o.contentHeight=w,o.contentWidth=E,o.outerWidth+=l,o.outerHeight+=c;for(var A=0;A<x.length;A++){var j=x[A],ii=j.percentWidth;j.width=parseInt(ii,10)/100*o.width}return o}function N1(i,t,e,r,n){var o=t==="",a=n&&e.rich[n]||{},s=i.lines,l=a.font||e.font,c=!1,d,u;if(r){var h=a.padding,g=h?h[1]+h[3]:0;if(a.width!=null&&a.width!=="auto"){var _=Pn(a.width,r.width)+g;s.length>0&&_+r.accumWidth>r.width&&(d=t.split(`
1820`),c=!0),r.accumWidth=_}else{var y=xD(t,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+g,u=y.linesWidths,d=y.lines}}d||(d=t.split(`
1821`));for(var C=Kn(l),x=0;x<d.length;x++){var w=d[x],E=new Jne;if(E.styleName=n,E.text=w,E.isLineHolder=!w&&!o,typeof a.width=="number"?E.width=a.width:E.width=u?u[x]:$n(C,w),!x&&!c){var k=(s[s.length-1]||(s[0]=new mD)).tokens,D=k.length;D===1&&k[0].isLineHolder?k[0]=E:(w||!D||o)&&k.push(E)}else s.push(new mD([E]))}}function toe(i){var t=i.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ioe=mr(",&?/;] ".split(""),function(i,t){return i[t]=!0,i},{});function roe(i){return toe(i)?!!ioe[i]:!0}function xD(i,t,e,r,n){for(var o=[],a=[],s="",l="",c=0,d=0,u=Kn(t),h=0;h<i.length;h++){var g=i.charAt(h);if(g===`
1822`){l&&(s+=l,d+=c),o.push(s),a.push(d),s="",l="",c=0,d=0;continue}var _=_1(u,g.charCodeAt(0)),y=r?!1:!roe(g);if(o.length?d+_>e:n+d+_>e){d?(s||l)&&(y?(s||(s=l,l="",c=0,d=c),o.push(s),a.push(d-c),l+=g,c+=_,s="",d=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(d),s=g,d=_)):y?(o.push(l),a.push(c),l=g,c=_):(o.push(g),a.push(_));continue}d+=_,y?(l+=g,c+=_):(l&&(s+=l,l="",c=0),s+=g)}return l&&(s+=l),s&&(o.push(s),a.push(d)),o.length===1&&(d+=n),{accumWidth:d,lines:o,linesWidths:a}}function z1(i,t,e,r,n,o){if(i.baseX=e,i.baseY=r,i.outerWidth=i.outerHeight=null,!!t){var a=t.width*2,s=t.height*2;Be.set(fD,Va(e,a,n),Zo(r,s,o),a,s),Be.intersect(t,fD,null,hD);var l=hD.outIntersectRect;i.outerWidth=l.width,i.outerHeight=l.height,i.baseX=Va(l.x,l.width,n,!0),i.baseY=Zo(l.y,l.height,o,!0)}}var fD=new Be(0,0,0,0),hD={outIntersectRect:{},clamp:!0};function U1(i){return i!=null?i+="":i=""}function CD(i){var t=U1(i.text),e=i.font,r=$n(Kn(e),t),n=kp(e);return e0(i,r,n,null)}function e0(i,t,e,r){var n=new Be(Va(i.x||0,t,i.textAlign),Zo(i.y||0,e,i.textBaseline),t,e),o=r??(H1(i)?i.lineWidth:0);return o>0&&(n.x-=o/2,n.y-=o/2,n.width+=o,n.height+=o),n}function H1(i){var t=i.stroke;return t!=null&&t!=="none"&&i.lineWidth>0}var q1="__zr_style_"+Math.round(Math.random()*10),To={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},el={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};To[q1]=!0;var SD=["z","z2","invisible"],noe=["invisible"],ooe=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype._init=function(e){for(var r=dt(e),n=0;n<r.length;n++){var o=r[n];o==="style"?this.useStyle(e[o]):i.prototype.attrKV.call(this,o,e[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,r,n,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&aoe(this,e,r)||a&&!a[
18220]&&!a[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,r){return this.rectContain(e,r)},t.prototype.traverse=function(e,r){e.call(r,this)},t.prototype.rectContain=function(e,r){var n=this.transformCoordToLocal(e,r),o=this.getBoundingRect();return o.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,n=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new Be(0,0,0,0)),r?Be.applyTransform(e,n,r):e.copy(n),(a||s||l)&&(e.width+=a*2+Math.abs(s),e.height+=a*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-a),e.y=Math.min(e.y,e.y+l-a));var c=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-c),e.y=Math.floor(e.y-c),e.width=Math.ceil(e.width+1+c*2),e.height=Math.ceil(e.height+1+c*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Be(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,r){e!=="style"?i.prototype.attrKV.call(this,e,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(e,r){return typeof e=="string"?this.style[e]=r:se(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Us,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Us)},t.prototype.styleUpdated=function(){this.__dirty&=~Us},t.prototype.createStyle=function(e){return qo(To,e)},t.prototype.useStyle=function(e){e[q1]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[q1]},t.prototype._innerSaveToNormal=function(e){i.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,r,SD)},t.prototype._applyStateObj=function(e,r,n,o,a,s){i.prototype._applyStateObj.call(this,e,r,n,o,a,s);var l=!(r&&o),c;if(r&&r.style?a?o?c=r.style:(c=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(c,r.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:n.style),this._mergeStyle(c,r.style)):l&&(c=n.style),c)if(a){var d=this.style;if(this.style=this.createStyle(l?{}:d),l)for(var u=dt(d),h=0;h<u.length;h++){var g=u[h];g in c&&(c[g]=c[g],this.style[g]=d[g])}for(var _=dt(c),h=0;h<_.length;h++){var g=_[h];this.style[g]=this.style[g]}this._transitionState(e,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var y=this.__inHover?noe:SD,h=0;h<y.length;h++){var g=y[h];r&&r[g]!=null?this[g]=r[g]:l&&n[g]!=null&&(this[g]=n[g])}},t.prototype._mergeStates=function(e){for(var r=i.prototype._mergeStates.call(this,e),n,o=0;o<e.length;o++){var a=e[o];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,r){return se(e,r),e},t.prototype.getAnimationStyleProps=function(){return el},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=Mi|Us})(),t})(Wh),W1=new Be(0,0,0,0),G1=new Be(0,0,0,0);function aoe(i,t,e){return W1.copy(i.getBoundingRect()),i.transform&&W1.applyTransform(i.transform),G1.width=t,G1.height=e,!W1.intersect(G1)}var Eo=ooe;var Ln=Math.min,On=Math.max,j1=Math.sin,Y1=Math.cos,tl=Math.PI*2,t0=jo(),i0=jo(),r0=jo();function K1(i,t,e,r,n,o){n[0]=Ln(i,e),n[1]=Ln(t,r),o[0]=On(i,e),o[1]=On(t,r)}var wD=[],TD=[];function ED(i,t,e,r,n,o,a,s,l,c){var d=Th,u=oi,h=d(i,e,n,a,wD);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var g=0;g<h;g++){var _=u(i,e,n,a,wD[g]);l[0]=Ln(_,l[0]),c[0]=On(_,c[0])}h=d(t,r,o,s,TD);for(var g=0;g<h;g++){var y=u(t,r,o,s,TD[g]);l[1]=Ln(y,l[1]),c[1]=On(y,c[1])}l[0]=Ln(i,l[0]),c[0]=On(i,c[0]),l[0]=Ln(a,l[0]),c[0]=On(a,c[0]),l[1]=Ln(t,l[1]),c[1]=On(t,c[1]),l[1]=Ln(s,l[1]),c[1]=On(s,c[1])}function kD(i,t,e,r,n,o,a,s){var l=Eh,c=Ai,d=On(Ln(l(i,e,n),1),0),u=On(Ln(l(t,r,o),1),0),h=c(i,e,n,d),g=c(t,r,o,u);a[0]=Ln(i,n,h),a[1]=Ln(t,o,g),s[0]=On(i,n,h),s[1]=On(t,o,g)}function ID(i,t,e,r,n,o,a,s,l){var c=kn,d=In,u=Math.abs(n-o);if(u%tl<1e-4&&u>1e-4){s[0]=i-e,s[1]=t-r,l[0]=i+e,l[1]=t+r;return}
1822if(t0[0]=Y1(n)*e+i,t0[1]=j1(n)*r+t,i0[0]=Y1(o)*e+i,i0[1]=j1(o)*r+t,c(s,t0,i0),d(l,t0,i0),n=n%tl,n<0&&(n=n+tl),o=o%tl,o<0&&(o=o+tl),n>o&&!a?o+=tl:n<o&&a&&(n+=tl),a){var h=o;o=n,n=h}for(var g=0;g<o;g+=Math.PI/2)g>n&&(r0[0]=Y1(g)*e+i,r0[1]=j1(g)*r+t,c(s,r0,s),d(l,r0,l))}var qt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},il=[],rl=[],ko=[],Ha=[],Io=[],Do=[],$1=Math.min,Z1=Math.max,nl=Math.cos,ol=Math.sin,Xo=Math.abs,J1=Math.PI,Wa=J1*2,Q1=typeof Float32Array<"u",Rp=[];function X1(i){var t=Math.round(i/J1*1e8)/1e8;return t%2*J1}function soe(i,t){var e=X1(i[0]);e<0&&(e+=Wa);var r=e-i[0],n=i[1];n+=r,!t&&n-e>=Wa?n=e+Wa:t&&e-n>=Wa?n=e-Wa:!t&&e>n?n=e+(Wa-X1(e-n)):t&&e<n&&(n=e-(Wa-X1(n-e))),i[0]=e,i[1]=n}var loe=(function(){function i(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return i.prototype.increaseVersion=function(){this._version++},i.prototype.getVersion=function(){return this._version},i.prototype.setScale=function(t,e,r){r=r||0,r>0&&(this._ux=Xo(r/qs/t)||0,this._uy=Xo(r/qs/e)||0)},i.prototype.setDPR=function(t){this.dpr=t},i.prototype.setContext=function(t){this._ctx=t},i.prototype.getContext=function(){return this._ctx},i.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},i.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},i.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(qt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},i.prototype.lineTo=function(t,e){var r=Xo(t-this._xi),n=Xo(e-this._yi),o=r>this._ux||n>this._uy;if(this.addData(qt.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=r*r+n*n;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},i.prototype.bezierCurveTo=function(t,e,r,n,o,a){return this._drawPendingPt(),this.addData(qt.C,t,e,r,n,o,a),this._ctx&&this._ctx.bezierCurveTo(t,e,r,n,o,a),this._xi=o,this._yi=a,this},i.prototype.quadraticCurveTo=function(t,e,r,n){return this._drawPendingPt(),this.addData(qt.Q,t,e,r,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,r,n),this._xi=r,this._yi=n,this},i.prototype.arc=function(t,e,r,n,o,a){this._drawPendingPt(),Rp[0]=n,Rp[1]=o,soe(Rp,a),n=Rp[0],o=Rp[1];var s=o-n;return this.addData(qt.A,t,e,r,r,n,s,0,a?0:1),this._ctx&&this._ctx.arc(t,e,r,n,o,a),this._xi=nl(o)*r+t,this._yi=ol(o)*r+e,this},i.prototype.arcTo=function(t,e,r,n,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,r,n,o),this},i.prototype.rect=function(t,e,r,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,r,n),this.addData(qt.R,t,e,r,n),this},i.prototype.closePath=function(){this._drawPendingPt(),this.addData(qt.Z);var t=this._ctx,e=this._x0,r=this._y0;return t&&t.closePath(),this._xi=e,this._yi=r,this},i.prototype.fill=function(t){t&&t.fill(),this.toStatic()},i.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},i.prototype.len=function(){return this._len},i.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&Q1&&(this.data=new Float32Array(e));for(var r=0;r<e;r++)this.data[r]=t[r];this._len=e}},i.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,r=0,n=this._len,o=0;o<e;o++)r+=t[o].len();var a=this.data;if(Q1&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(n+r),n>0&&a))for(var s=0;s<n;s++)this.data[s]=a[s];for(var o=0;o<e;o++)for(var l=t[o].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},i.prototype.addData=function(t,e,r,n,o,a,s,l,c){if(this._saveData){var d=this.data;this._len+arguments.length>d.length&&(this._expandData(),d=this.data);for(var u=0;u<arguments.length;u++)d[this._len++]=arguments[u]}},i.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},i.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},i.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Q1&&this._len>11&&(this.data=new Float32Array(t)))}},i.prototype.getBoundingRect=function(){ko[0]=ko[1]=Io[0]=Io[1]=Number.MAX_VALUE,Ha[0]=Ha[1]=Do[0]=Do[
18221]=-Number.MAX_VALUE;var t=this.data,e=0,r=0,n=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(e=t[a],r=t[a+1],n=e,o=r),s){case qt.M:e=n=t[a++],r=o=t[a++],Io[0]=n,Io[1]=o,Do[0]=n,Do[1]=o;break;case qt.L:K1(e,r,t[a],t[a+1],Io,Do),e=t[a++],r=t[a++];break;case qt.C:ED(e,r,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],Io,Do),e=t[a++],r=t[a++];break;case qt.Q:kD(e,r,t[a++],t[a++],t[a],t[a+1],Io,Do),e=t[a++],r=t[a++];break;case qt.A:var c=t[a++],d=t[a++],u=t[a++],h=t[a++],g=t[a++],_=t[a++]+g;a+=1;var y=!t[a++];l&&(n=nl(g)*u+c,o=ol(g)*h+d),ID(c,d,u,h,g,_,y,Io,Do),e=nl(_)*u+c,r=ol(_)*h+d;break;case qt.R:n=e=t[a++],o=r=t[a++];var C=t[a++],x=t[a++];K1(n,o,n+C,o+x,Io,Do);break;case qt.Z:e=n,r=o;break}kn(ko,ko,Io),In(Ha,Ha,Do)}return a===0&&(ko[0]=ko[1]=Ha[0]=Ha[1]=0),new Be(ko[0],ko[1],Ha[0]-ko[0],Ha[1]-ko[1])},i.prototype._calculateLength=function(){var t=this.data,e=this._len,r=this._ux,n=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,d=0,u=0,h=0;h<e;){var g=t[h++],_=h===1;_&&(o=t[h],a=t[h+1],s=o,l=a);var y=-1;switch(g){case qt.M:o=s=t[h++],a=l=t[h++];break;case qt.L:{var C=t[h++],x=t[h++],w=C-o,E=x-a;(Xo(w)>r||Xo(E)>n||h===e-1)&&(y=Math.sqrt(w*w+E*E),o=C,a=x);break}case qt.C:{var k=t[h++],D=t[h++],C=t[h++],x=t[h++],I=t[h++],F=t[h++];y=u3(o,a,k,D,C,x,I,F,10),o=I,a=F;break}case qt.Q:{var k=t[h++],D=t[h++],C=t[h++],x=t[h++];y=h3(o,a,k,D,C,x,10),o=C,a=x;break}case qt.A:var A=t[h++],U=t[h++],q=t[h++],z=t[h++],Z=t[h++],j=t[h++],X=j+Z;h+=1,_&&(s=nl(Z)*q+A,l=ol(Z)*z+U),y=Z1(q,z)*$1(Wa,Math.abs(j)),o=nl(X)*q+A,a=ol(X)*z+U;break;case qt.R:{s=o=t[h++],l=a=t[h++];var le=t[h++],me=t[h++];y=le*2+me*2;break}case qt.Z:{var w=s-o,E=l-a;y=Math.sqrt(w*w+E*E),o=s,a=l;break}}y>=0&&(c[u++]=y,d+=y)}return this._pathLen=d,d},i.prototype.rebuildPath=function(t,e){var r=this.data,n=this._ux,o=this._uy,a=this._len,s,l,c,d,u,h,g=e<1,_,y,C=0,x=0,w,E=0,k,D;if(!(g&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,y=this._pathLen,w=e*y,!w)))e:for(var I=0;I<a;){var F=r[I++],A=I===1;switch(A&&(c=r[I],d=r[I+1],s=c,l=d),F!==qt.L&&E>0&&(t.lineTo(k,D),E=0),F){case qt.M:s=c=r[I++],l=d=r[I++],t.moveTo(c,d);break;case qt.L:{u=r[I++],h=r[I++];var U=Xo(u-c),q=Xo(h-d);if(U>n||q>o){if(g){var z=_[x++];if(C+z>w){var Z=(w-C)/z;t.lineTo(c*(1-Z)+u*Z,d*(1-Z)+h*Z);break e}C+=z}t.lineTo(u,h),c=u,d=h,E=0}else{var j=U*U+q*q;j>E&&(k=u,D=h,E=j)}break}case qt.C:{var X=r[I++],le=r[I++],me=r[I++],ze=r[I++],fe=r[I++],Ie=r[I++];if(g){var z=_[x++];if(C+z>w){var Z=(w-C)/z;Pc(c,X,me,fe,Z,il),Pc(d,le,ze,Ie,Z,rl),t.bezierCurveTo(il[1],rl[1],il[2],rl[2],il[3],rl[3]);break e}C+=z}t.bezierCurveTo(X,le,me,ze,fe,Ie),c=fe,d=Ie;break}case qt.Q:{var X=r[I++],le=r[I++],me=r[I++],ze=r[I++];if(g){var z=_[x++];if(C+z>w){var Z=(w-C)/z;Fc(c,X,me,Z,il),Fc(d,le,ze,Z,rl),t.quadraticCurveTo(il[1],rl[1],il[2],rl[2]);break e}C+=z}t.quadraticCurveTo(X,le,me,ze),c=me,d=ze;break}case qt.A:var Le=r[I++],Oe=r[I++],Re=r[I++],nt=r[I++],Pt=r[I++],ii=r[I++],Or=r[I++],ro=!r[I++],Bo=Re>nt?Re:nt,Kr=Xo(Re-nt)>.001,tr=Pt+ii,ut=!1;if(g){var z=_[x++];C+z>w&&(tr=Pt+ii*(w-C)/z,ut=!0),C+=z}if(Kr&&t.ellipse?t.ellipse(Le,Oe,Re,nt,Or,Pt,tr,ro):t.arc(Le,Oe,Bo,Pt,tr,ro),ut)break e;A&&(s=nl(Pt)*Re+Le,l=ol(Pt)*nt+Oe),c=nl(tr)*Re+Le,d=ol(tr)*nt+Oe;break;case qt.R:s=c=r[I],l=d=r[I+1],u=r[I++],h=r[I++];var Tt=r[I++],ms=r[I++];if(g){var z=_[x++];if(C+z>w){var yr=w-C;t.moveTo(u,h),t.lineTo(u+$1(yr,Tt),h),yr-=Tt,yr>0&&t.lineTo(u+Tt,h+$1(yr,ms)),yr-=ms,yr>0&&t.lineTo(u+Z1(Tt-yr,0),h+ms),yr-=Tt,yr>0&&t.lineTo(u,h+Z1(ms-yr,0));break e}C+=z}t.rect(u,h,Tt,ms);break;case qt.Z:if(g){var z=_[x++];if(C+z>w){var Z=(w-C)/z;t.lineTo(c*(1-Z)+s*Z,d*(1-Z)+l*Z);break e}C+=z}t.closePath(),c=s,d=l}}},i.prototype.clone=function(){var t=new i,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},i.prototype.canSave=function(){return!!this._saveData},i.CMD=qt,i.initDefaultProps=(function(){var t=i.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),i})(),on=loe;function al(i,t,e,r,n,o,a){if(n===0)return!1;var s=n,l=0,c=i;if(a>t+s&&a>r+s||a<t-s&&a<r-s||o>i+s&&o>e+s||o<i-s&&o<e-s)return!1;
1822if(i!==e)l=(t-r)/(i-e),c=(i*r-e*t)/(i-e);else return Math.abs(o-i)<=s/2;var d=l*o-a+c,u=d*d/(l*l+1);return u<=s/2*s/2}function DD(i,t,e,r,n,o,a,s,l,c,d){if(l===0)return!1;var u=l;if(d>t+u&&d>r+u&&d>o+u&&d>s+u||d<t-u&&d<r-u&&d<o-u&&d<s-u||c>i+u&&c>e+u&&c>n+u&&c>a+u||c<i-u&&c<e-u&&c<n-u&&c<a-u)return!1;var h=p3(i,t,e,r,n,o,a,s,c,d,null);return h<=u/2}function MD(i,t,e,r,n,o,a,s,l){if(a===0)return!1;var c=a;if(l>t+c&&l>r+c&&l>o+c||l<t-c&&l<r-c&&l<o-c||s>i+c&&s>e+c&&s>n+c||s<i-c&&s<e-c&&s<n-c)return!1;var d=f3(i,t,e,r,n,o,s,l,null);return d<=c/2}var PD=Math.PI*2;function Lp(i){return i%=PD,i<0&&(i+=PD),i}var Op=Math.PI*2;function FD(i,t,e,r,n,o,a,s,l){if(a===0)return!1;var c=a;s-=i,l-=t;var d=Math.sqrt(s*s+l*l);if(d-c>e||d+c<e)return!1;if(Math.abs(r-n)%Op<1e-4)return!0;if(o){var u=r;r=Lp(n),n=Lp(u)}else r=Lp(r),n=Lp(n);r>n&&(n+=Op);var h=Math.atan2(l,s);return h<0&&(h+=Op),h>=r&&h<=n||h+Op>=r&&h+Op<=n}function An(i,t,e,r,n,o){if(o>t&&o>r||o<t&&o<r||r===t)return 0;var a=(o-t)/(r-t),s=r<t?1:-1;(a===1||a===0)&&(s=r<t?.5:-.5);var l=a*(e-i)+i;return l===n?1/0:l>n?s:0}var Ga=on.CMD,sl=Math.PI*2,moe=1e-4;function foe(i,t){return Math.abs(i-t)<moe}var Mr=[-1,-1,-1],Bn=[-1,-1];function hoe(){var i=Bn[0];Bn[0]=Bn[1],Bn[1]=i}function goe(i,t,e,r,n,o,a,s,l,c){if(c>t&&c>r&&c>o&&c>s||c<t&&c<r&&c<o&&c<s)return 0;var d=Hs(t,r,o,s,c,Mr);if(d===0)return 0;for(var u=0,h=-1,g=void 0,_=void 0,y=0;y<d;y++){var C=Mr[y],x=C===0||C===1?.5:1,w=oi(i,e,n,a,C);w<l||(h<0&&(h=Th(t,r,o,s,Bn),Bn[1]<Bn[0]&&h>1&&hoe(),g=oi(t,r,o,s,Bn[0]),h>1&&(_=oi(t,r,o,s,Bn[1]))),h===2?C<Bn[0]?u+=g<t?x:-x:C<Bn[1]?u+=_<g?x:-x:u+=s<_?x:-x:C<Bn[0]?u+=g<t?x:-x:u+=s<g?x:-x)}return u}
1822function voe(i,t,e,r,n,o,a,s){if(s>t&&s>r&&s>o||s<t&&s<r&&s<o)return 0;var l=m3(t,r,o,s,Mr);if(l===0)return 0;var c=Eh(t,r,o);if(c>=0&&c<=1){for(var d=0,u=Ai(t,r,o,c),h=0;h<l;h++){var g=Mr[h]===0||Mr[h]===1?.5:1,_=Ai(i,e,n,Mr[h]);_<a||(Mr[h]<c?d+=u<t?g:-g:d+=o<u?g:-g)}return d}else{var g=Mr[0]===0||Mr[0]===1?.5:1,_=Ai(i,e,n,Mr[0]);return _<a?0:o<t?g:-g}}function _oe(i,t,e,r,n,o,a,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Mr[0]=-l,Mr[1]=l;var c=Math.abs(r-n);if(c<1e-4)return 0;if(c>=sl-1e-4){r=0,n=sl;var d=o?1:-1;return a>=Mr[0]+i&&a<=Mr[1]+i?d:0}if(r>n){var u=r;r=n,n=u}r<0&&(r+=sl,n+=sl);for(var h=0,g=0;g<2;g++){var _=Mr[g];if(_+i>a){var y=Math.atan2(s,_),d=o?1:-1;y<0&&(y=sl+y),(y>=r&&y<=n||y+sl>=r&&y+sl<=n)&&(y>Math.PI/2&&y<Math.PI*1.5&&(d=-d),h+=d)}}return h}function RD(i,t,e,r,n){for(var o=i.data,a=i.len(),s=0,l=0,c=0,d=0,u=0,h,g,_=0;_<a;){var y=o[_++],C=_===1;switch(y===Ga.M&&_>1&&(e||(s+=An(l,c,d,u,r,n))),C&&(l=o[_],c=o[_+1],d=l,u=c),y){case Ga.M:d=o[_++],u=o[_++],l=d,c=u;break;case Ga.L:if(e){if(al(l,c,o[_],o[_+1],t,r,n))return!0}else s+=An(l,c,o[_],o[_+1],r,n)||0;l=o[_++],c=o[_++];break;case Ga.C:if(e){if(DD(l,c,o[_++],o[_++],o[_++],o[_++],o[_],o[_+1],t,r,n))return!0}else s+=goe(l,c,o[_++],o[_++],o[_++],o[_++],o[_],o[_+1],r,n)||0;l=o[_++],c=o[_++];break;case Ga.Q:if(e){if(MD(l,c,o[_++],o[_++],o[_],o[_+1],t,r,n))return!0}else s+=voe(l,c,o[_++],o[_++],o[_],o[_+1],r,n)||0;l=o[_++],c=o[_++];break;case Ga.A:var x=o[_++],w=o[_++],E=o[_++],k=o[_++],D=o[_++],I=o[_++];_+=1;var F=!!(1-o[_++]);h=Math.cos(D)*E+x,g=Math.sin(D)*k+w,C?(d=h,u=g):s+=An(l,c,h,g,r,n);var A=(r-x)*k/E+x;if(e){if(FD(x,w,k,D,D+I,F,t,A,n))return!0}else s+=_oe(x,w,k,D,D+I,F,A,n);l=Math.cos(D+I)*E+x,c=Math.sin(D+I)*k+w;break;case Ga.R:d=l=o[_++],u=c=o[_++];var U=o[_++],q=o[_++];if(h=d+U,g=u+q,e){if(al(d,u,h,u,t,r,n)||al(h,u,h,g,t,r,n)||al(h,g,d,g,t,r,n)||al(d,g,d,u,t,r,n))return!0}else s+=An(h,u,h,g,r,n),s+=An(d,g,d,u,r,n);break;case Ga.Z:if(e){if(al(l,c,d,u,t,r,n))return!0}else s+=An(l,c,d,u,r,n);l=d,c=u;break}}return!e&&!foe(c,u)&&(s+=An(l,c,d,u,r,n)||0),s!==0}function LD(i,t,e){return RD(i,0,!1,t,e)}function OD(i,t,e,r){return RD(i,t,!0,e,r)}var tx=qe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},To),yoe={style:qe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},el.style)},ex=Ks.concat(["invisible","culling","z","z2","zlevel","parent"]),xoe=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.update=function(){var e=this;i.prototype.update.call(this);var r=this.style;if(r.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var o=n.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s<ex.length;++s)n[ex[s]]=this[ex[s]];n.__dirty|=Mi}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var r=dt(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var o=0;o<r.length;o++){var a=r[o],s=e[a];a==="style"?this.style?se(this.style,s):this.useStyle(s):a==="shape"?se(this.shape,s):i.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(pe(e)){var r=Ws(e,0);return r>.5?wp:r>.2?O3:Tp}else if(e)return Tp}return wp},t.prototype.getInsideTextStroke=function(e){var r=this.style.fill;if(pe(r)){var n=this.__zr,o=!!(n&&n.isDarkMode()),a=Ws(e,0)<Sp;if(o===a)return r}},t.prototype.buildPath=function(e,r,n){},t.prototype.pathUpdated=function(){this.__dirty&=~La},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new on(!1)},t.prototype.hasStroke=function(){var e=this.style,r=e.stroke;return!(r==null||r==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,r=e.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,r=this.style,n=!e;if(n){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&La)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),e=a.getBoundingRect
1822()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=r.strokeNoScale?this.getLineScale():1,c=r.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;c=Math.max(c,d??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return e},t.prototype.contain=function(e,r){var n=this.transformCoordToLocal(e,r),o=this.getBoundingRect(),a=this.style;if(e=n[0],r=n[1],o.contain(e,r)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,c=a.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),OD(s,l/c,e,r)))return!0}if(this.hasFill())return LD(s,e,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=La,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,r){e==="shape"?this.setShape(r):i.prototype.attrKV.call(this,e,r)},t.prototype.setShape=function(e,r){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=r:se(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&La)},t.prototype.createStyle=function(e){return qo(tx,e)},t.prototype._innerSaveToNormal=function(e){i.prototype._innerSaveToNormal.call(this,e);var r=this._normalState;e.shape&&!r.shape&&(r.shape=se({},this.shape))},t.prototype._applyStateObj=function(e,r,n,o,a,s){i.prototype._applyStateObj.call(this,e,r,n,o,a,s);var l=!(r&&o),c;if(r&&r.shape?a?o?c=r.shape:(c=se({},n.shape),se(c,r.shape)):(c=se({},o?this.shape:n.shape),se(c,r.shape)):l&&(c=n.shape),c)if(a){this.shape=se({},this.shape);for(var d={},u=dt(c),h=0;h<u.length;h++){var g=u[h];typeof c[g]=="object"?this.shape[g]=c[g]:d[g]=c[g]}this._transitionState(e,{shape:d},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var r=i.prototype._mergeStates.call(this,e),n,o=0;o<e.length;o++){var a=e[o];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return yoe},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var r=(function(o){We(a,o);function a(s){var l=o.call(this,s)||this;return e.init&&e.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return He(e.style)},a.prototype.getDefaultShape=function(){return He(e.shape)},a})(t);for(var n in e)typeof e[n]=="function"&&(r.prototype[n]=e[n]);return r},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=Mi|Us|La})(),t})(Eo),tt=xoe;var Coe=qe({strokeFirst:!0,font:Tn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},tx),AD=(function(i){We(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return H1(this.style)},t.prototype.hasFill=function(){var e=this.style,r=e.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(e){return qo(Coe,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=CD(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Eo);AD.prototype.type="tspan";var Ap=AD;var Soe=qe({x:0,y:0},To),woe={style:qe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},el.style)};function Toe(i){return!!(i&&typeof i!="string"&&i.width&&i.height)}var BD=(function(i){We(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return qo(Soe,e)},t.prototype._getSize=function(e){var r=this.style,n=r[e];if(n!=null)return n;var o=Toe(r.image)?r.image:this.__image;if(!o)return 0;var a=e==="width"?"height":"width",s=r[a];return s==null?o[e]:o[e]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return woe},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Be(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Eo);BD.prototype.type="image";var Wr=BD;function ND(i,t){var e=t.x,r=t.y,n=t.width,o=t.height,a=t.r,s,l,c,d;n<0&&(e=e+n,n=-n),o<0&&(r=r+o,o=-o),typeof a=="number"?s=l=c=d=a:a instanceof Array?a.length===1?s=l=c=d=a[0]:a.length===2?(s=c=a[0],l=d=a[1]):a.length===3?(s=a[0],l=d=a[1],c=a[2]):(s=a[0],l=a[1],c=a[2],d=a[3]):s=l
1822=c=d=0;var u;s+l>n&&(u=s+l,s*=n/u,l*=n/u),c+d>n&&(u=c+d,c*=n/u,d*=n/u),l+c>o&&(u=l+c,l*=o/u,c*=o/u),s+d>o&&(u=s+d,s*=o/u,d*=o/u),i.moveTo(e+s,r),i.lineTo(e+n-l,r),l!==0&&i.arc(e+n-l,r+l,l,-Math.PI/2,0),i.lineTo(e+n,r+o-c),c!==0&&i.arc(e+n-c,r+o-c,c,0,Math.PI/2),i.lineTo(e+d,r+o),d!==0&&i.arc(e+d,r+o-d,d,Math.PI/2,Math.PI),i.lineTo(e,r+s),s!==0&&i.arc(e+s,r+s,s,Math.PI,Math.PI*1.5)}var Gc=Math.round;function n0(i,t,e){if(t){var r=t.x1,n=t.x2,o=t.y1,a=t.y2;i.x1=r,i.x2=n,i.y1=o,i.y2=a;var s=e&&e.lineWidth;return s&&(Gc(r*2)===Gc(n*2)&&(i.x1=i.x2=qa(r,s,!0)),Gc(o*2)===Gc(a*2)&&(i.y1=i.y2=qa(o,s,!0))),i}}function o0(i,t,e){if(t){var r=t.x,n=t.y,o=t.width,a=t.height;i.x=r,i.y=n,i.width=o,i.height=a;var s=e&&e.lineWidth;return s&&(i.x=qa(r,s,!0),i.y=qa(n,s,!0),i.width=Math.max(qa(r+o,s,!1)-i.x,o===0?0:1),i.height=Math.max(qa(n+a,s,!1)-i.y,a===0?0:1)),i}}function qa(i,t,e){if(!t)return i;var r=Gc(i*2);return(r+Gc(t))%2===0?r/2:(r+(e?1:-1))/2}var Ioe=(function(){function i(){this.x=0,this.y=0,this.width=0,this.height=0}return i})();var Doe={},VD=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ioe},t.prototype.buildPath=function(e,r){var n,o,a,s;if(this.subPixelOptimize){var l=o0(Doe,r,this.style);n=l.x,o=l.y,a=l.width,s=l.height,l.r=r.r,r=l}else n=r.x,o=r.y,a=r.width,s=r.height;r.r?ND(e,r):e.rect(n,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(tt);VD.prototype.type="rect";var Ct=VD;var zD={fill:"#000"},UD=2,Mo={},Moe={style:qe({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},el.style)},$D=(function(i){We(t,i);function t(e){var r=i.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=zD,r.attr(e),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){i.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var r=this._children[e];r.zlevel=this.zlevel,r.z=this.z,r.z2=this.z2,r.culling=this.culling,r.cursor=this.cursor,r.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):i.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var r=this.innerTransformable;return r?r.getLocalTransform(e):i.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),i.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Ooe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){i.prototype.addSelfToZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=e},t.prototype.removeSelfFromZr=function(e){i.prototype.removeSelfFromZr.call(this,e);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Be(0,0,0,0),r=this._children,n=[],o=null,a=0;a<r.length;a++){var s=r[a],l=s.getBoundingRect(),c=s.getLocalTransform(n);c?(e.copy(l),e.applyTransform(c),o=o||e.clone(),o.union(e)):(o=o||l.clone(),o.union(l))}this._rect=o||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||zD},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,r){if(!r)return e;var n=r.rich,o=e.rich||n&&{};return se(e,r),n&&o?(this._mergeRich(o,n),e.rich=o):o&&(e.rich=o),e},t.prototype._mergeRich=function(e,r){for(var n=dt(r),o=0;o<n.length;o++){var a=n[o];e[a]=e[a]||{},se(e[a],r[a])}},t.prototype.getAnimationStyleProps=function(){return Moe},t.prototype._getOrCreateChild=function(e){var r=this._children[this._childCursor];return(!r||!(r instanceof e))&&(r=new e),this._children[this._childCursor++]=r,r.__zr=this.__zr,r.parent=this,r},t.prototype._updatePlainTexts=function(){var e=this.style,r=e.font||Tn,n=e.padding,o=this._defaultStyle,a=e.x||0,s=e.y||0,l=e.align||o.align||"left",c=e.verticalAlign||o.verticalAlign||"top";z1(Mo,o.overflowRect,a,s,l,c),a=Mo.baseX,s=Mo.baseY;var d=KD(e),u=bD(d,e,Mo.outerWidth,Mo.outerHeight),h=ix(e),g=!!e.backgroundColor,_=u.outerHeight,y=u.outerWidth,C=u.lines,x=u.lineHeight;this.isTruncated=!!u.isTruncated;var w=a,E=Zo(s,u.contentHeight,c);if(h||n){var k=Va(a,y,l),D=Zo(s,_,c);
1822h&&this._renderBackground(e,e,k,D,y,_)}E+=x/2,n&&(w=YD(a,l,n),c==="top"?E+=n[0]:c==="bottom"&&(E-=n[2]));for(var I=0,F=!1,A=!1,U=jD("fill"in e?e.fill:(A=!0,o.fill)),q=qD("stroke"in e?e.stroke:!g&&(!o.autoStroke||A)?(I=UD,F=!0,o.stroke):null),z=e.textShadowBlur>0,Z=0;Z<C.length;Z++){var j=this._getOrCreateChild(Ap),X=j.createStyle();j.useStyle(X),X.text=C[Z],X.x=w,X.y=E,l&&(X.textAlign=l),X.textBaseline="middle",X.opacity=e.opacity,X.strokeFirst=!0,z&&(X.shadowBlur=e.textShadowBlur||0,X.shadowColor=e.textShadowColor||"transparent",X.shadowOffsetX=e.textShadowOffsetX||0,X.shadowOffsetY=e.textShadowOffsetY||0),X.stroke=q,X.fill=U,q&&(X.lineWidth=e.lineWidth||I,X.lineDash=e.lineDash,X.lineDashOffset=e.lineDashOffset||0),X.font=r,WD(X,e),E+=x,j.setBoundingRect(e0(X,u.contentWidth,u.calculatedLineHeight,F?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,r=this._defaultStyle,n=e.align||r.align,o=e.verticalAlign||r.verticalAlign,a=e.x||0,s=e.y||0;z1(Mo,r.overflowRect,a,s,n,o),a=Mo.baseX,s=Mo.baseY;var l=KD(e),c=yD(l,e,Mo.outerWidth,Mo.outerHeight,n),d=c.width,u=c.outerWidth,h=c.outerHeight,g=e.padding;this.isTruncated=!!c.isTruncated;var _=Va(a,u,n),y=Zo(s,h,o),C=_,x=y;g&&(C+=g[3],x+=g[0]);var w=C+d;ix(e)&&this._renderBackground(e,e,_,y,u,h);for(var E=!!e.backgroundColor,k=0;k<c.lines.length;k++){for(var D=c.lines[k],I=D.tokens,F=I.length,A=D.lineHeight,U=D.width,q=0,z=C,Z=w,j=F-1,X=void 0;q<F&&(X=I[q],!X.align||X.align==="left");)this._placeToken(X,e,A,x,z,"left",E),U-=X.width,z+=X.width,q++;for(;j>=0&&(X=I[j],X.align==="right");)this._placeToken(X,e,A,x,Z,"right",E),U-=X.width,Z-=X.width,j--;for(z+=(d-(z-C)-(w-Z)-U)/2;q<=j;)X=I[q],this._placeToken(X,e,A,x,z+X.width/2,"center",E),z+=X.width,q++;x+=A}},t.prototype._placeToken=function(e,r,n,o,a,s,l){var c=r.rich[e.styleName]||{};c.text=e.text;var d=e.verticalAlign,u=o+n/2;d==="top"?u=o+e.height/2:d==="bottom"&&(u=o+n-e.height/2);var h=!e.isLineHolder&&ix(c);h&&this._renderBackground(c,r,s==="right"?a-e.width:s==="center"?a-e.width/2:a,u-e.height/2,e.width,e.height);var g=!!c.backgroundColor,_=e.textPadding;_&&(a=YD(a,s,_),u-=e.height/2-_[0]-e.innerHeight/2);var y=this._getOrCreateChild(Ap),C=y.createStyle();y.useStyle(C);var x=this._defaultStyle,w=!1,E=0,k=!1,D=jD("fill"in c?c.fill:"fill"in r?r.fill:(w=!0,x.fill)),I=qD("stroke"in c?c.stroke:"stroke"in r?r.stroke:!g&&!l&&(!x.autoStroke||w)?(E=UD,k=!0,x.stroke):null),F=c.textShadowBlur>0||r.textShadowBlur>0;C.text=e.text,C.x=a,C.y=u,F&&(C.shadowBlur=c.textShadowBlur||r.textShadowBlur||0,C.shadowColor=c.textShadowColor||r.textShadowColor||"transparent",C.shadowOffsetX=c.textShadowOffsetX||r.textShadowOffsetX||0,C.shadowOffsetY=c.textShadowOffsetY||r.textShadowOffsetY||0),C.textAlign=s,C.textBaseline="middle",C.font=e.font||Tn,C.opacity=En(c.opacity,r.opacity,1),WD(C,c),I&&(C.lineWidth=En(c.lineWidth,r.lineWidth,E),C.lineDash=Fe(c.lineDash,r.lineDash),C.lineDashOffset=r.lineDashOffset||0,C.stroke=I),D&&(C.fill=D),y.setBoundingRect(e0(C,e.contentWidth,e.contentHeight,k?0:null))},t.prototype._renderBackground=function(e,r,n,o,a,s){var l=e.backgroundColor,c=e.borderWidth,d=e.borderColor,u=l&&l.image,h=l&&!u,g=e.borderRadius,_=this,y,C;if(h||e.lineHeight||c&&d){y=this._getOrCreateChild(Ct),y.useStyle(y.createStyle()),y.style.fill=null;var x=y.shape;x.x=n,x.y=o,x.width=a,x.height=s,x.r=g,y.dirtyShape()}if(h){var w=y.style;w.fill=l||null,w.fillOpacity=Fe(e.fillOpacity,1)}else if(u){C=this._getOrCreateChild(Wr),C.onload=function(){_.dirtyStyle()};var E=C.style;E.image=l.image,E.x=n,E.y=o,E.width=a,E.height=s}if(c&&d){var w=y.style;w.lineWidth=c,w.stroke=d,w.strokeOpacity=Fe(e.strokeOpacity,1),w.lineDash=e.borderDash,w.lineDashOffset=e.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var k=(y||C).style;k.shadowBlur=e.shadowBlur||0,k.shadowColor=e.shadowColor||"transparent",k.shadowOffsetX=e.shadowOffsetX||0,k.shadowOffsetY=e.shadowOffsetY||0,k.opacity=En(e.opacity,r.opacity,1)},t.makeFont=function(e){var r="";return Loe(e)&&(r=[e.fontStyle,e.fontWeight,Roe(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),r&&Qi(r)||e.textFont||e.font},t})(Eo),Poe={left:!0,right:1,center:1},Foe={top:1,bottom:1,middle:1},HD=["fontStyle","fontWeight","fontSize","fontFamily"];function Roe(i){return typeof i=="string"&&(i.indexOf("px")!==-1||i.indexOf("rem")!==-1||i.indexOf("em")!==-1)?i:isNaN(+i)?ah+"px":i+"px"}function WD(i,t){for(var e=0;e<HD.length;e++){var r=HD[e],n=t[r];n!=null&&(i[r]=n)}}function Loe(i){return i.fontSize!=null||i.fontFamily||i.fontWeight}function Ooe(i){return GD(i),P(i.rich,GD),i}function GD(i){if(i){i.font=$D.makeFont(i);var t=i.align;t==="middle"&&(t="center"),i.align=t==null||Poe[t]?t:"left";var e=i.verticalAlign;e==="center"&&(e="middle"),i.verticalAlign=e==null||Foe[e]?e:"top";var r=i.padding;r&&(i.padding=Fs(i.padding))}}function qD(i,t){return i==null||t<=0||i==="transparent"||i==="none"?null:i.image||i.colorStops?"#000":i}function jD(i){return i==null||i==="none"?null:i.image||i.colorStops?"#000":i}function YD(i,t,e){return t==="right"?i-e[1]:t==="center"?i+e[3]/2-e[1]/2:i+e[3]}function KD(i){var t=i.text;return t!=null&&(t+=""),t}function ix(i){return!!(i.backgroundColor||i.lineHeight||i.borderWidth&&i.borderColor)}var Zt=$D;var pt=ht(),ZD=function(i,t,e,r){if(r){var n=pt(r);n.dataIndex=e,n.dataType=t,n.seriesIndex=i,n.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=pt(o);a.seriesIndex=i,a.dataIndex=e,a.dataType=t,a.ssrType="chart"})}};var QD=1,XD={},rM=ht(),ox=ht(),ax=0,Bp=1,Np=2,Nn=["emphasis","blur","select"],sx=["normal","emphasis","blur","select"],Aoe=10,Boe=9,ja="highlight",Vp="downplay",zp="select",s0="unselect",Up="toggleSelect",l
18220="selectchanged";function qc(i){return i!=null&&i!=="none"}function c0(i,t,e){i.onHoverStateChange&&(i.hoverState||0)!==e&&i.onHoverStateChange(t),i.hoverState=e}function nM(i){c0(i,"emphasis",Np)}function oM(i){i.hoverState===Np&&c0(i,"normal",ax)}function lx(i){c0(i,"blur",Bp)}function aM(i){i.hoverState===Bp&&c0(i,"normal",ax)}function Noe(i){i.selected=!0}function Voe(i){i.selected=!1}function JD(i,t,e){t(i,e)}function Jo(i,t,e){JD(i,t,e),i.isGroup&&i.traverse(function(r){JD(r,t,e)})}function cx(i,t){switch(t){case"emphasis":i.hoverState=Np;break;case"normal":i.hoverState=ax;break;case"blur":i.hoverState=Bp;break;case"select":i.selected=!0}}function zoe(i,t,e,r){for(var n=i.style,o={},a=0;a<t.length;a++){var s=t[a],l=n[s];o[s]=l??(r&&r[s])}for(var a=0;a<i.animators.length;a++){var c=i.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(e)<0&&c.targetName==="style"&&c.saveTo(o,t)}return o}function Uoe(i,t,e,r){var n=e&&je(e,"select")>=0,o=!1;if(i instanceof tt){var a=rM(i),s=n&&a.selectFill||a.normalFill,l=n&&a.selectStroke||a.normalStroke;if(qc(s)||qc(l)){r=r||{};var c=r.style||{};c.fill==="inherit"?(o=!0,r=se({},r),c=se({},c),c.fill=s):!qc(c.fill)&&qc(s)?(o=!0,r=se({},r),c=se({},c),c.fill=Ph(s)):!qc(c.stroke)&&qc(l)&&(o||(r=se({},r),c=se({},c)),c.stroke=Ph(l)),r.style=c}}if(r&&r.z2==null){o||(r=se({},r));var d=i.z2EmphasisLift;r.z2=i.z2+(d??Aoe)}return r}function Hoe(i,t,e){if(e&&e.z2==null){e=se({},e);var r=i.z2SelectLift;e.z2=i.z2+(r??Boe)}return e}function Woe(i,t,e){var r=je(i.currentStates,t)>
1822=0,n=i.style.opacity,o=r?null:zoe(i,["opacity"],t,{opacity:1});e=e||{};var a=e.style||{};return a.opacity==null&&(e=se({},e),a=se({opacity:r?n:o.opacity*.1},a),e.style=a),e}function rx(i,t){var e=this.states[i];if(this.style){if(i==="emphasis")return Uoe(this,i,t,e);if(i==="blur")return Woe(this,i,e);if(i==="select")return Hoe(this,i,e)}return e}function Goe(i){i.stateProxy=rx;var t=i.getTextContent(),e=i.getTextGuideLine();t&&(t.stateProxy=rx),e&&(e.stateProxy=rx)}function eM(i,t){!lM(i,t)&&!i.__highByOuter&&Jo(i,nM)}function tM(i,t){!lM(i,t)&&!i.__highByOuter&&Jo(i,oM)}function ll(i,t){i.__highByOuter|=1<<(t||0),Jo(i,nM)}function cl(i,t){!(i.__highByOuter&=~(1<<(t||0)))&&Jo(i,oM)}function sM(i){Jo(i,lx)}function dx(i){Jo(i,aM)}function px(i){Jo(i,Noe)}function ux(i){Jo(i,Voe)}function lM(i,t){return i.__highDownSilentOnTouch&&t.zrByTouch}function mx(i){var t=i.getModel(),e=[],r=[];t.eachComponent(function(n,o){var a=ox(o),s=n==="series",l=s?i.getViewOfSeriesModel(o):i.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(c){aM(c)}),s&&e.push(o)),a.isBlured=!1}),P(r,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function nx(i,t,e,r){var n=r.getModel();e=e||"coordinateSystem";function o(c,d){for(var u=0;u<d.length;u++){var h=c.getItemGraphicEl(d[u]);h&&dx(h)}}if(i!=null&&!(!t||t==="none")){var a=n.getSeriesByIndex(i),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(c){var d=a===c,u=c.coordinateSystem;u&&u.master&&(u=u.master);var h=u&&s?u===s:d;if(!(e==="series"&&!d||e==="coordinateSystem"&&!h||t==="series"&&d)){var g=r.getViewOfSeriesModel(c);if(g.group.traverse(function(C){C.__highByOuter&&d&&t==="self"||lx(C)}),_i(t))o(c.getData(),t);else if(ve(t))for(var _=dt(t),y=0;y<_.length;y++)o(c.getData(_[y]),t[_[y]]);l.push(c),ox(c).isBlured=!0}}),n.eachComponent(function(c,d){if(c!=="series"){var u=r.getViewOfComponentModel(d);u&&u.toggleBlurSeries&&u.toggleBlurSeries(l,!0,n)}})}}function a0(i,t,e){if(!(i==null||t==null)){var r=e.getModel().getComponent(i,t);if(r){ox(r).isBlured=!0;var n=e.getViewOfComponentModel(r);!n||!n.focusBlurEnabled||n.group.traverse(function(o){lx(o)})}}}function cM(i,t,e){var r=i.seriesIndex,n=i.getData(t.dataType);if(n){var o=Rn(n,t);o=(ne(o)?o[0]:o)||0;var a=n.getItemGraphicEl(o);if(!a)for(var s=n.count(),l=0;!a&&l<s;)a=n.getItemGraphicEl(l++);if(a){var c=pt(a);nx(r,c.focus,c.blurScope,e)}else{var d=i.get(["emphasis","focus"]),u=i.get(["emphasis","blurScope"]);d!=null&&nx(r,d,u,e)}}}
1822function d0(i,t,e,r){var n={focusSelf:!1,dispatchers:null};if(i==null||i==="series"||t==null||e==null)return n;var o=r.getModel().getComponent(i,t);if(!o)return n;var a=r.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return n;for(var s=a.findHighDownDispatchers(e),l,c=0;c<s.length;c++)if(pt(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function dM(i,t,e){var r=pt(i),n=d0(r.componentMainType,r.componentIndex,r.componentHighDownName,e),o=n.dispatchers,a=n.focusSelf;o?(a&&a0(r.componentMainType,r.componentIndex,e),P(o,function(s){return eM(s,t)})):(nx(r.seriesIndex,r.focus,r.blurScope,e),r.focus==="self"&&a0(r.componentMainType,r.componentIndex,e),eM(i,t))}function pM(i,t,e){mx(e);var r=pt(i),n=d0(r.componentMainType,r.componentIndex,r.componentHighDownName,e).dispatchers;n?P(n,function(o){return tM(o,t)}):tM(i,t)}function uM(i,t,e){if(p0(t)){var r=t.dataType,n=i.getData(r),o=Rn(n,t);ne(o)||(o=[o]),i[t.type===Up?"toggleSelect":t.type===zp?"select":"unselect"](o,r)}}function fx(i){var t=i.getAllData();P(t,function(e){var r=e.data,n=e.type;r.eachItemGraphicEl(function(o,a){i.isSelected(a,n)?px(o):ux(o)})})}function mM(i){var t=[];return i.eachSeries(function(e){var r=e.getAllData();P(r,function(n){var o=n.data,a=n.type,s=e.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:e.seriesIndex};a!=null&&(l.dataType=a),t.push(l)}})}),t}function jc(i,t,e){fM(i,!0),Jo(i,Goe),joe(i,t,e)}function qoe(i){fM(i,!1)}function dl(i,t,e,r){r?qoe(i):jc(i,t,e)}function joe(i,t,e){var r=pt(i);t!=null?(r.focus=t,r.blurScope=e):r.focus&&(r.focus=null)}var iM=["emphasis","blur","select"],Yoe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Hp(i,t,e,r){e=e||"itemStyle";for(var n=0;n<iM.length;n++){var o=iM[n],a=t.getModel([o,e]),s=i.ensureState(o);s.style=r?r(a):a[Yoe[e]]()}}function fM(i,t){var e=t===!1,r=i;i.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=i.highDownSilentOnTouch),(!e||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!e)}function Wp(i){return!!(i&&i.__highDownDispatcher)}function hM(i){var t=XD[i];return t==null&&QD<=32&&(t=XD[i]=QD++),t}function p0(i){var t=i.type;return t===zp||t===s0||t===Up}function hx(i){var t=i.type;return t===ja||t===Vp}function gM(i){var t=rM(i);t.normalFill=i.style.fill,t.normalStroke=i.style.stroke;var e=i.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var ar={};$r(ar,{Arc:()=>ml,BezierCurve:()=>Qp,BoundingRect:()=>Be,Circle:()=>pl,CompoundPath:()=>g0,Ellipse:()=>qp,Group:()=>Mt,Image:()=>Wr,IncrementalDisplayable:()=>S0,Line:()=>an,LinearGradient:()=>$c,OrientedBoundingRect:()=>C0,Path:()=>tt,Point:()=>zt,Polygon:()=>$p,Polyline:()=>Zp,RadialGradient:()=>_0,Rect:()=>Ct,Ring:()=>Kp,Sector:()=>Fo,Text:()=>Zt,WH:()=>vl,XY:()=>ea,applyTransform:()=>k0,calcZ2Range:()=>Pae,clipPointsByRect:()=>Rx,clipRectByRect:()=>Lx,createIcon:()=>bl,ensureCopyRect:()=>td,ensureCopyTransform:()=>D0,expandOrShrinkRect:()=>Jc,extendPath:()=>Ix,extendShape:()=>kx,getShapeClass:()=>Dx,getTransform:()=>Px,groupTransition:()=>Fx,initProps:()=>vr,isBoundingRectAxisAligned:()=>I0,isElementRemoved:()=>gl,lineLineIntersect:()=>qM,linePolygonIntersect:()=>Dae,makeImage:()=>Xp,makePath:()=>Xc,mergePath:()=>Mx,registerShape:()=>sn,removeElement:()=>Zc,removeElementWithFadeOut:()=>Qc,resizePath:()=>E0,retrieveZInfo:()=>Ox,setTooltipConfig:()=>ed,subPixelOptimize:()=>Eae,subPixelOptimizeLine:()=>_l,subPixelOptimizeRect:()=>Tae,transformDirection:()=>kae,traverseElements:()=>yl,traverseUpdateZ:()=>Ax,updateProps:()=>hi});var Yc=on.CMD,Koe=[[],[],[]],vM=Math.sqrt,$oe=Math.atan2;function gx(i,t){if(t){var e=i.data,r=i.len(),n,o,a,s,l,c,d=Yc.M,u=Yc.C,h=Yc.L,g=Yc.R,_=Yc.A,y=Yc.Q;for(a=0,s=0;a<r;){switch(n=e[a++],s=a,o=0,n){case d:o=1;break;case h:o=1;break;case u:o=3;break;case y:o=2;break;case _:var C=t[4],x=t[5],w=vM(t[0]*t[0]+t[1]*t[1]),E=vM(t[2]*t[2]+t[3]*t[3]),k=$oe(-t[1]/E,t[0]/w);e[a]*=w,e[a++]+=C,e[a]*=E,e[a++]+=x,e[a++]*=w,e[a++]*=E,e[a++]+=k,e[a++]+=k,a+=2,s=a;break;case g:c[0]=e[a++],c[1]=e[a++],bi(c,c,t),e[s++]=c[0],e[s++]=c[1],c[0]+=e[a++],c[1]+=e[a++],bi(c,c,t),e[s++]=c[0],e[s++]=c[1]}for(l=0;l<o;l++){var D=Koe[l];D[0]=e[a++],D[1]=e[a++],bi(D,D,t),e[s++]=D[0],e[s++]=D[1]}}i.increaseVersion()}}var vx=Math.sqrt,u0=Math.sin,m0=Math.cos,Gp=Math.PI;function _M(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function _x(i,t){return(i[0]*t[0]+i[1]*t[1])/(_M(i)*_M(t))}function bM(i,t){return(i[0]*t[1]<i[1]*t[0]?-1:1)*Math.acos(_x(i,t))}function yM(i,t,e,r,n,o,a,s,l,c,d){var u=l*(Gp/180),h=m0(u)*(i-e)/2+u0(u)*(t-r)/2,g=-1*u0(u)*(i-e)/2+m0(u)*(t-r)/2,_=h*h/(a*a)+g*g/(s*s);_>1&&(a*=vx(_),s*=vx(_));var y=(n===o?-1:1)*vx((a*a*(s*s)-a*a*(g*g)-s*s*(h*h))/(a*a*(g*g)+s*s*(h*h)))||0,C=y*a*g/s,x=y*-s*h/a,w=(i+e)/2+m0(u)*C-u0(u)*x,E=(t+r)/2+u0(u)*C+m0(u)*x,k=bM([1,0],[(h-C)/a,(g-x)/s]),D=[(h-C)/a,(g-x)/s],I=[(-1*h-C)/a,(-1*g-x)/s],F=bM(D,I);if(_x(D,I)<=-1&&(F=Gp),_x(D,I)>=1&&(F=0),F<0){var A=Math.round(F/Gp*1e6)/1e6;F=Gp*2+A%2*Gp}d.addData(c,w,E,a,s,k,F,u,o)}var Zoe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Qoe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Xoe(i){var t=new on;if(!i)return t;var e=0,r=0,n=e,o=r,a,s=on.CMD,l=i.match(Zoe);
1822if(!l)return t;for(var c=0;c<l.length;c++){for(var d=l[c],u=d.charAt(0),h=void 0,g=d.match(Qoe)||[],_=g.length,y=0;y<_;y++)g[y]=parseFloat(g[y]);for(var C=0;C<_;){var x=void 0,w=void 0,E=void 0,k=void 0,D=void 0,I=void 0,F=void 0,A=e,U=r,q=void 0,z=void 0;switch(u){case"l":e+=g[C++],r+=g[C++],h=s.L,t.addData(h,e,r);break;case"L":e=g[C++],r=g[C++],h=s.L,t.addData(h,e,r);break;case"m":e+=g[C++],r+=g[C++],h=s.M,t.addData(h,e,r),n=e,o=r,u="l";break;case"M":e=g[C++],r=g[C++],h=s.M,t.addData(h,e,r),n=e,o=r,u="L";break;case"h":e+=g[C++],h=s.L,t.addData(h,e,r);break;case"H":e=g[C++],h=s.L,t.addData(h,e,r);break;case"v":r+=g[C++],h=s.L,t.addData(h,e,r);break;case"V":r=g[C++],h=s.L,t.addData(h,e,r);break;case"C":h=s.C,t.addData(h,g[C++],g[C++],g[C++],g[C++],g[C++],g[C++]),e=g[C-2],r=g[C-1];break;case"c":h=s.C,t.addData(h,g[C++]+e,g[C++]+r,g[C++]+e,g[C++]+r,g[C++]+e,g[C++]+r),e+=g[C-2],r+=g[C-1];break;case"S":x=e,w=r,q=t.len(),z=t.data,a===s.C&&(x+=e-z[q-4],w+=r-z[q-3]),h=s.C,A=g[C++],U=g[C++],e=g[C++],r=g[C++],t.addData(h,x,w,A,U,e,r);break;case"s":x=e,w=r,q=t.len(),z=t.data,a===s.C&&(x+=e-z[q-4],w+=r-z[q-3]),h=s.C,A=e+g[C++],U=r+g[C++],e+=g[C++],r+=g[C++],t.addData(h,x,w,A,U,e,r);break;case"Q":A=g[C++],U=g[C++],e=g[C++],r=g[C++],h=s.Q,t.addData(h,A,U,e,r);break;case"q":A=g[C++]+e,U=g[C++]+r,e+=g[C++],r+=g[C++],h=s.Q,t.addData(h,A,U,e,r);break;case"T":x=e,w=r,q=t.len(),z=t.data,a===s.Q&&(x+=e-z[q-4],w+=r-z[q-3]),e=g[C++],r=g[C++],h=s.Q,t.addData(h,x,w,e,r);break;case"t":x=e,w=r,q=t.len(),z=t.data,a===s.Q&&(x+=e-z[q-4],w+=r-z[q-3]),e+=g[C++],r+=g[C++],h=s.Q,t.addData(h,x,w,e,r);break;case"A":E=g[C++],k=g[C++],D=g[C++],I=g[C++],F=g[C++],A=e,U=r,e=g[C++],r=g[C++],h=s.A,yM(A,U,e,r,I,F,E,k,D,h,t);break;case"a":E=g[C++],k=g[C++],D=g[C++],I=g[C++],F=g[C++],A=e,U=r,e+=g[C++],r+=g[C++],h=s.A,yM(A,U,e,r,I,F,E,k,D,h,t);break}}(u==="z"||u==="Z")&&(h=s.Z,t.addData(h),e=n,r=o),a=h}return t.toStatic(),t}var xM=(function(i){We(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(tt);function CM(i){return i.setData!=null}function SM(i,t){var e=Xoe(i),r=se({},t);return r.buildPath=function(n){var o=CM(n);if(o&&n.canSave()){n.appendPath(e);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=o?n.getContext():n;a&&e.rebuildPath(a,1)}},r.applyTransform=function(n){gx(e,n),this.dirtyShape()},r}function wM(i,t){return new xM(SM(i,t))}function TM(i,t){var e=SM(i,t),r=(function(n){We(o,n);function o(a){var s=n.call(this,a)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return o})(xM);return r}function EM(i,t){for(var e=[],r=i.length,n=0;n<r;n++){var o=i[n];e.push(o.getUpdatedPathProxy(!0))}var a=new tt(t);return a.createPathProxy(),a.buildPath=function(s){if(CM(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var eae=(function(){function i(){this.cx=0,this.cy=0,this.r=0}return i})();var kM=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new eae},t.prototype.buildPath=function(e,r){e.moveTo(r.cx+r.r,r.cy),e.arc(r.cx,r.cy,r.r,0,Math.PI*2)},t})(tt);kM.prototype.type="circle";var pl=kM;var tae=(function(){function i(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return i})();var IM=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new tae},t.prototype.buildPath=function(e,r){var n=.5522848,o=r.cx,a=r.cy,s=r.rx,l=r.ry,c=s*n,d=l*n;e.moveTo(o-s,a),e.bezierCurveTo(o-s,a-d,o-c,a-l,o,a-l),e.bezierCurveTo(o+c,a-l,o+s,a-d,o+s,a),e.bezierCurveTo(o+s,a+d,o+c,a+l,o,a+l),e.bezierCurveTo(o-c,a+l,o-s,a+d,o-s,a),e.closePath()},t})(tt);IM.prototype.type="ellipse";var qp=IM;var MM=Math.PI,bx=MM*2,ul=Math.sin,Kc=Math.cos,iae=Math.acos,gr=Math.atan2,DM=Math.abs,Yp=Math.sqrt,jp=Math.max,Po=Math.min,Qn=1e-4;function rae(i,t,e,r,n,o,a,s){var l=e-i,c=r-t,d=a-n,u=s-o,h=u*l-d*c;if(!(h*h<Qn))return h=(d*(t-o)-u*(i-n))/h,[i+h*l,t+h*c]}function f0(i,t,e,r,n,o,a){var s=i-e,l=t-r,c=(a?o:-o)/Yp(s*s+l*l),d=c*l,u=-c*s,h=i+d,g=t+u,_=e+d,y=r+u,C=(h+_)/2,x=(g+y)/2,w=_-h,E=y-g,k=w*w+E*E,D=n-o,I=h*y-_*g,F=(E<0?-1:1)*Yp(jp(0,D*D*k-I*I)),A=(I*E-w*F)/k,U=(-I*w-E*F)/k,q=(I*E+w*F)/k,z=(-I*w+E*F)/k,Z=A-C,j=U-x,X=q-C,le=z-x;return Z*Z+j*j>X*X+le*le&&(A=q,U=z),{cx:A,cy:U,x0:-d,y0:-u,x1:A*(n/D-1),y1:U*(n/D-1)}}function nae(i){var t;if(ne(i)){var e=i.length;if(!e)return i;e===1?t=[i[0],i[0],0,0]:e===2?t=[i[0],i[0],i[1],i[1]]:e===3?t=i.concat(i[2]):t=i}else t=[i,i,i,i];return t}function PM(i,t){var e,r=jp(t.r,0),n=jp(t.r0||0,0),o=r>0,a=n>0;if(!(!o&&!a)){if(o||(r=n,n=0),n>r){var s=r;r=n,n=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var d=t.cx,u=t.cy,h=!!t.clockwise,g=DM(c-l),_=g>bx&&g%bx;if(_>Qn&&(g=_),!(r>Qn))i.moveTo(d,u);else if(g>bx-Qn)i.moveTo(d+r*Kc(l),u+r*ul(l)),i.arc(d,u,r,l,c,!h),n>Qn&&(i.moveTo(d+n*Kc(c),u+n*ul(c)),i.arc(d,u,n,c,l,h));else{var y=void 0,C=void 0,x=void 0,w=void 0,E=void 0,k=void 0,D=void 0,I=void 0,F=void 0,A=void 0,U=void 0,q=void 0,z=void 0,Z=void 0,j=void 0,X=void 0,le=r*Kc(l),me=r*ul(l),ze=n*Kc(c),fe=n*ul(c),Ie=g>Qn;if(Ie){var Le=t.cornerRadius;Le&&(e=nae(Le),y=e[0],C=e[1],x=e[2],w=e[3]);var Oe=DM(r-n)/2;if(E=Po(Oe,x),k=Po(Oe,w),D=Po(Oe,y),I=Po(Oe,C),U=F=jp(E,k),q=A=jp(D,I),(F>Qn||A>Qn)&&(z=r*Kc(c),Z=r*ul(c),j=n*Kc(l),X=n*ul(l),g<MM)){var Re=rae(le,me,j,X,z,Z,ze,fe);if(Re){var nt=le-Re[0],Pt=me-Re[1],ii=z-Re[0],Or=Z-Re[1],ro=1/ul(iae((nt*ii+Pt*Or)/(Yp(nt*nt+Pt*Pt)*Yp(ii*ii+Or*Or)))/2),Bo=Yp(Re[0]*Re[0]+Re[1]*Re[1]);U=Po(F,(r-Bo)/(ro+1)),q=Po(A,(n-Bo)/(ro-1))}}}if(!Ie)i.moveTo(d+le,u+me);else if(U>Qn){var Kr=Po(x,U),tr=Po(w,U),ut=f0(j,X,le,me,r,Kr,h),Tt=f0(z,Z,ze,fe,r,tr,h);i.moveTo(d+ut.cx+ut.x0,u+ut.cy+ut.y0),U<F&&Kr===tr?i.arc(d+ut.cx,u+ut.cy,U,gr(ut.y0,ut.x0),gr(Tt.y0,Tt.x0),!h):(Kr>0&&i.arc(d+ut.cx,u+ut.cy,Kr,gr(ut.y0,ut.x0),gr(ut.y1,ut.x1),!h),i.arc(d,u,r,gr(ut.cy+ut.y1,ut.cx+ut.x1),gr(Tt.cy+Tt.y1,Tt.cx+Tt.x1),!h),tr>0&&i.arc(d+Tt.cx,u+Tt.cy,tr,gr(Tt.y1,Tt.x1),gr(Tt.y0,Tt.x0),!h))}
1822else i.moveTo(d+le,u+me),i.arc(d,u,r,l,c,!h);if(!(n>Qn)||!Ie)i.lineTo(d+ze,u+fe);else if(q>Qn){var Kr=Po(y,q),tr=Po(C,q),ut=f0(ze,fe,z,Z,n,-tr,h),Tt=f0(le,me,j,X,n,-Kr,h);i.lineTo(d+ut.cx+ut.x0,u+ut.cy+ut.y0),q<A&&Kr===tr?i.arc(d+ut.cx,u+ut.cy,q,gr(ut.y0,ut.x0),gr(Tt.y0,Tt.x0),!h):(tr>0&&i.arc(d+ut.cx,u+ut.cy,tr,gr(ut.y0,ut.x0),gr(ut.y1,ut.x1),!h),i.arc(d,u,n,gr(ut.cy+ut.y1,ut.cx+ut.x1),gr(Tt.cy+Tt.y1,Tt.cx+Tt.x1),h),Kr>0&&i.arc(d+Tt.cx,u+Tt.cy,Kr,gr(Tt.y1,Tt.x1),gr(Tt.y0,Tt.x0),!h))}else i.lineTo(d+ze,u+fe),i.arc(d,u,n,c,l,h)}i.closePath()}}}var aae=(function(){function i(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return i})();var FM=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new aae},t.prototype.buildPath=function(e,r){PM(e,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(tt);FM.prototype.type="sector";var Fo=FM;var sae=(function(){function i(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return i})();var RM=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new sae},t.prototype.buildPath=function(e,r){var n=r.cx,o=r.cy,a=Math.PI*2;e.moveTo(n+r.r,o),e.arc(n,o,r.r,0,a,!1),e.moveTo(n+r.r0,o),e.arc(n,o,r.r0,0,a,!0)},t})(tt);RM.prototype.type="ring";var Kp=RM;function yx(i,t,e,r){var n=[],o=[],a=[],s=[],l,c,d,u;if(r){d=[1/0,1/0],u=[-1/0,-1/0];for(var h=0,g=i.length;h<g;h++)kn(d,d,i[h]),In(u,u,i[h]);kn(d,d,r[0]),In(u,u,r[1])}for(var h=0,g=i.length;h<g;h++){var _=i[h];if(e)l=i[h?h-1:g-1],c=i[(h+1)%g];else if(h===0||h===g-1){n.push(My(i[h]));continue}else l=i[h-1],c=i[h+1];Py(o,c,l),pp(o,o,t);var y=up(_,l),C=up(_,c),x=y+C;x!==0&&(y/=x,C/=x),pp(a,o,-y),pp(s,o,C);var w=fh([],_,a),E=fh([],_,s);r&&(In(w,w,d),kn(w,w,u),In(E,E,d),kn(E,E,u)),n.push(w),n.push(E)}return e&&n.push(n.shift()),n}function h0(i,t,e){var r=t.smooth,n=t.points;if(n&&n.length>=2){if(r){var o=yx(n,r,e,t.smoothConstraint);i.moveTo(n[0][0],n[0][1]);for(var a=n.length,s=0;s<(e?a:a-1);s++){var l=o[s*2],c=o[s*2+1],d=n[(s+1)%a];i.bezierCurveTo(l[0],l[1],c[0],c[1],d[0],d[1])}}else{i.moveTo(n[0][0],n[0][1]);for(var s=1,u=n.length;s<u;s++)i.lineTo(n[s][0],n[s][1])}e&&i.closePath()}}var lae=(function(){function i(){this.points=null,this.smooth=0,this.smoothConstraint=null}return i})();var OM=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new lae},t.prototype.buildPath=function(e,r){h0(e,r,!0)},t})(tt);OM.prototype.type="polygon";var $p=OM;var cae=(function(){function i(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return i})();var AM=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cae},t.prototype.buildPath=function(e,r){h0(e,r,!1)},t})(tt);AM.prototype.type="polyline";var Zp=AM;var dae={},pae=(function(){function i(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return i})();var BM=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new pae},t.prototype.buildPath=function(e,r){var n,o,a,s;if(this.subPixelOptimize){var l=n0(dae,r,this.style);n=l.x1,o=l.y1,a=l.x2,s=l.y2}else n=r.x1,o=r.y1,a=r.x2,s=r.y2;var c=r.percent;c!==0&&(e.moveTo(n,o),c<1&&(a=n*(1-c)+a*c,s=o*(1-c)+s*c),e.lineTo(a,s))},t.prototype.pointAt=function(e){var r=this.shape;return[r.x1*(1-e)+r.x2*e,r.y1*(1-e)+r.y2*e]},t})(tt);BM.prototype.type="line";var an=BM;var Gr=[],uae=(function(){function i(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return i})();function NM(i,t,e){var r=i.cpx2,n=i.cpy2;return r!=null||n!=null?[(e?Xy:oi)(i.x1,i.cpx1,i.cpx2,i.x2,t),(e?Xy:oi)(i.y1,i.cpy1,i.cpy2,i.y2,t)]:[(e?Jy:Ai)(i.x1,i.cpx1,i.x2,t),(e?Jy:Ai)(i.y1,i.cpy1,i.y2,t)]}var VM=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uae},t.prototype.buildPath=function(e,r){var n=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,c=r.cpy1,d=r.cpx2,u=r.cpy2,h=r.percent;h!==0&&(e.moveTo(n,o),d==null||u==null?(h<1&&(Fc(n,l,a,h,Gr),l=Gr[1],a=Gr[2],Fc(o,c,s,h,Gr),c=Gr[1],s=Gr[2]),e.quadraticCurveTo(l,c,a,s)):(h<1&&(Pc(n,l,d,a,h,Gr),l=Gr[1],d=Gr[2],a=Gr[3],Pc(o,c,u,s,h,Gr),c=Gr[1],u=Gr[2],s=Gr[3]),e.bezierCurveTo(l,c,d,u,a,s)))},t.prototype.pointAt=function(e){return NM(this.shape,e,!1)},t.prototype.tangentAt=function(e){var r=NM(this.shape,e,!0);return Ly(r,r)},t})(tt);VM.prototype.type="bezier-curve";var Qp=VM;var mae=(function(){function i(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return i})();var zM=(function(i){We(t,i);function t(e){return i.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new mae},t.prototype.buildPath=function(e,r){var n=r.cx,o=r.cy,a=Math.max(r.r,0),s=r.startAngle,l=r.endAngle,c=r.clockwise,d=Math.cos(s),u=Math.sin(s);e.moveTo(d*a+n,u*a+o),e.arc(n,o,a,s,l,!c)},t})(tt);zM.prototype.type="arc";var ml=zM;var fae=(function(i){We(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,r=this.shapeChanged(),n=0;n<e.length;n++)r=r||e[n].shapeChanged();r&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],r=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(r[0],r[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,r){for(var n=r.paths||[],o=0;o<n.length;o++)n[o].buildPath(e,n[o].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],r=0;r<e.length;r++)e[r].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),tt.prototype.getBoundingRect.call(this)},t})(tt),g0=fae;var hae=(function(){function i(t){this.colorStops=t||[]}return i.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},i})(),v0=hae;var gae=(function(i){We(t,i);function t(e,r,n,o,a,s){var l=i.call(this,a)||this;return l.x=e??0,l.y=r??0,l.x2=n??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t})(v0),$c=gae;var vae=(function(i){We(t,i);function t(e,r,n,o,a){var s=i.call(this,o)||this;return s.x=e??.5,s.y=r??.5,s.r=n??.5,s.type="radial",s.global=a||!1,s}return t})(v0),_0=vae;var xx=Math.min,_ae=Math.max,b0=Math.abs,fl=[0,0],hl=[0,0],Ji=Yy(),y0=Ji.minTv,x0=Ji.maxTv,bae=(function(){function i(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new zt;for(var r=0;r<2;r++)this._axes[r]=new zt;
1822t&&this.fromBoundingRect(t,e)}return i.prototype.fromBoundingRect=function(t,e){var r=this._corners,n=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(r[0].set(o,a),r[1].set(s,a),r[2].set(s,l),r[3].set(o,l),e)for(var c=0;c<4;c++)r[c].transform(e);zt.sub(n[0],r[1],r[0]),zt.sub(n[1],r[3],r[0]),n[0].normalize(),n[1].normalize();for(var c=0;c<2;c++)this._origin[c]=n[c].dot(r[0])},i.prototype.intersect=function(t,e,r){var n=!0,o=!e;return e&&zt.set(e,0,0),Ji.reset(r,!o),!this._intersectCheckOneSide(this,t,o,1)&&(n=!1,o)||!this._intersectCheckOneSide(t,this,o,-1)&&(n=!1,o)||!o&&!Ji.negativeSize&&zt.copy(e,n?Ji.useDir?Ji.dirMinTv:y0:x0),n},i.prototype._intersectCheckOneSide=function(t,e,r,n){for(var o=!0,a=0;a<2;a++){var s=t._axes[a];if(t._getProjMinMaxOnAxis(a,t._corners,fl),t._getProjMinMaxOnAxis(a,e._corners,hl),Ji.negativeSize||fl[1]<hl[0]||fl[0]>hl[1]){if(o=!1,Ji.negativeSize||r)return o;var l=b0(hl[0]-fl[1]),c=b0(fl[0]-hl[1]);xx(l,c)>x0.len()&&(l<c?zt.scale(x0,s,-l*n):zt.scale(x0,s,c*n))}else if(!r){var l=b0(hl[0]-fl[1]),c=b0(fl[0]-hl[1]);(Ji.useDir||xx(l,c)<y0.len())&&((l<c||!Ji.bidirectional)&&(zt.scale(y0,s,l*n),Ji.useDir&&Ji.calcDirMTV()),(l>=c||!Ji.bidirectional)&&(zt.scale(y0,s,-c*n),Ji.useDir&&Ji.calcDirMTV()))}}return o},i.prototype._getProjMinMaxOnAxis=function(t,e,r){for(var n=this._axes[t],o=this._origin,a=e[0].dot(n)+o[t],s=a,l=a,c=1;c<e.length;c++){var d=e[c].dot(n)+o[t];s=xx(d,s),l=_ae(d,l)}r[0]=s+Ji.touchThreshold,r[1]=l-Ji.touchThreshold,Ji.negativeSize=r[1]<r[0]},i})(),C0=bae;var yae=[],xae=(function(i){We(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,r){e.call(r,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,r){r?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,r){r=r||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],r)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var r=this._cursor;r<this._displayables.length;r++)e&&e(this._displayables[r]);for(var r=0;r<this._temporaryDisplayables.length;r++)e&&e(this._temporaryDisplayables[r])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var r=this._displayables[e];r.parent=this,r.update(),r.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var r=this._temporaryDisplayables[e];r.parent=this,r.update(),r.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Be(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var n=this._displayables[r],o=n.getBoundingRect().clone();
1822n.needLocalTransform()&&o.applyTransform(n.getLocalTransform(yae)),e.union(o)}this._rect=e}return this._rect},t.prototype.contain=function(e,r){var n=this.transformCoordToLocal(e,r),o=this.getBoundingRect();if(o.contain(n[0],n[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(e,r))return!0}return!1},t})(Eo),S0=xae;var Cae=ht();function Sae(i,t,e,r,n){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=i==="update";if(s){var c=void 0,d=void 0,u=void 0;r?(c=Fe(r.duration,200),d=Fe(r.easing,"cubicOut"),u=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),d=t.getShallow(l?"animationEasingUpdate":"animationEasing"),u=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(d=o.easing),o.delay!=null&&(u=o.delay)),we(u)&&(u=u(e,n)),we(c)&&(c=c(e));var h={duration:c||0,delay:u,easing:d};return h}else return null}function Cx(i,t,e,r,n,o,a){var s=!1,l;we(n)?(a=o,o=n,n=null):ve(n)&&(o=n.cb,a=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var c=i==="leave";c||t.stopAnimation("leave");var d=Sae(i,r,n,c?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,n):null);if(d&&d.duration>0){var u=d.duration,h=d.delay,g=d.easing,_={duration:u,delay:h||0,easing:g,done:o,force:!!o||!!a,setToFinal:!c,scope:i,during:a};s?t.animateFrom(e,_):t.animateTo(e,_)}else t.stopAnimation(),!s&&t.attr(e),a&&a(1),o&&o()}function hi(i,t,e,r,n,o){Cx("update",i,t,e,r,n,o)}function vr(i,t,e,r,n,o){Cx("enter",i,t,e,r,n,o)}function gl(i){if(!i.__zr)return!0;for(var t=0;t<i.animators.length;t++){var e=i.animators[t];if(e.scope==="leave")return!0}return!1}function Zc(i,t,e,r,n,o){gl(i)||Cx("leave",i,t,e,r,n,o)}function UM(i,t,e,r){i.removeTextContent(),i.removeTextGuideLine(),Zc(i,{style:{opacity:0}},t,e,r)}function Qc(i,t,e){function r(){i.parent&&i.parent.remove(i)}i.isGroup?i.traverse(function(n){n.isGroup||UM(n,t,e,r)}):UM(i,t,e,r)}function w0(i){Cae(i).oldStyle=i.style}var Tx={},ea=["x","y"],vl=["width","height"];function kx(i){return tt.extend(i)}var wae=TM;function Ix(i,t){return wae(i,t)}function sn(i,t){Tx[i]=t}function Dx(i){if(Tx.hasOwnProperty(i))return Tx[i]}function Xc(i,t,e,r){var n=wM(i,t);return e&&(r==="center"&&(e=GM(e,n.getBoundingRect())),E0(n,e)),n}function Xp(i,t,e){var r=new Wr({style:{image:i,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var o={width:n.width,height:n.height};r.setStyle(GM(t,o))}}});return r}function GM(i,t){var e=t.width/t.height,r=i.height*e,n;r<=i.width?n=i.height:(r=i.width,n=r/e);var o=i.x+i.width/2,a=i.y+i.height/2;return{x:o-r/2,y:a-n/2,width:r,height:n}}var Mx=EM;function E0(i,t){if(i.applyTransform){var e=i.getBoundingRect(),r=e.calculateTransform(t);i.applyTransform(r)}}function _l(i,t){return n0(i,i,{lineWidth:t}),i}function Tae(i,t){return o0(i,i,t),i}var Eae=qa;function Px(i,t){for(var e=Yo([]);i&&i!==t;)qn(e,i.getLocalTransform(),e),i=i.parent;return e}function k0(i,t,e){return t&&!_i(t)&&(t=Ep.getLocalTransform(t)),e&&(t=tn([],t)),bi([],i,t)}function kae(i,t,e){var r=t[4]===0||t[5]===0||t[0]===0?1:Zn(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Zn(2*t[4]/t[2]),o=[i==="left"?-r:i==="right"?r:0,i==="top"?-n:i==="bottom"?n:0];return o=k0(o,t,e),Zn(o[0])>Zn(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function HM(i){return!i.isGroup}function Iae(i){return i.shape!=null}function Fx(i,t,e){if(!i||!t)return;function r(a){var s={};return a.traverse(function(l){HM(l)&&l.anid&&(s[l.anid]=l)}),s}function n(a){var s={x:a.x,y:a.y,rotation:a.rotation};return Iae(a)&&(s.shape=He(a.shape)),s}var o=r(i);t.traverse(function(a){if(HM(a)&&a.anid){var s=o[a.anid];if(s){var l=n(a);a.attr(n(s)),hi(a,l,e,pt(a).dataIndex)}}})}function Rx(i,t){return ue(i,function(e){var r=e[0];r=Ir(r,t.x),r=Bc(r,t.x+t.width);var n=e[1];return n=Ir(n,t.y),n=Bc(n,t.y+t.height),[r,n]})}function Lx(i,t){var e=Ir(i.x,t.x),r=Bc(i.x+i.width,t.x+t.width),n=Ir(i.y,t.y),o=Bc(i.y+i.height,t.y+t.height);if(r>=e&&o>=n)return{x:e,y:n,width:r-e,height:o-n}}function bl(i,t,e){var r=se({rectHover:!0},t),n=r.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},i)return i.indexOf("image://")===0?(n.image=i.slice(8),qe(n,e),new Wr(r)):Xc(i.replace("path://",""),r,e,"center")}function Dae(i,t,e,r,n){for(var o=0,a=n[n.length-1];o<n.length;o++){var s=n[o];if(qM(i,t,e,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function qM(i,t,e,r,n,o,a,s){var l=e-i,c=r-t,d=a-n,u=s-o,h=Sx(d,u,l,c);if(Mae(h))return!1;var g=i-n,_=t-o,y=Sx(g,_,l,c)/h;if(y<0||y>1)return!1;var C=Sx(g,_,d,u)/h;return!(C<0||C>1)}function Sx(i,t,e,r){return i*r-e*t}function Mae(i){return i<=1e-6&&i>=-1e-6}
1822function Jc(i,t,e,r,n){return t==null||(st(t)?ei[0]=ei[1]=ei[2]=ei[3]=t:(ei[0]=t[0],ei[1]=t[1],ei[2]=t[2],ei[3]=t[3]),r&&(ei[0]=Ir(0,ei[0]),ei[1]=Ir(0,ei[1]),ei[2]=Ir(0,ei[2]),ei[3]=Ir(0,ei[3])),e&&(ei[0]=-ei[0],ei[1]=-ei[1],ei[2]=-ei[2],ei[3]=-ei[3]),WM(i,ei,"x","width",3,1,n&&n[0]||0),WM(i,ei,"y","height",0,2,n&&n[1]||0)),i}var ei=[0,0,0,0];function WM(i,t,e,r,n,o,a){var s=t[o]+t[n],l=i[r];i[r]+=s,a=Ir(0,Bc(a,l)),i[r]<a?(i[r]=a,i[e]+=t[n]>=0?-t[n]:t[o]>=0?l+t[o]:Zn(s)>1e-8?(l-a)*t[n]/s:0):i[e]-=t[n]}function ed(i){var t=i.itemTooltipOption,e=i.componentModel,r=i.itemName,n=pe(t)?{formatter:t}:t,o=e.mainType,a=e.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=i.formatterParamsExtra;l&&P(dt(l),function(d){Li(s,d)||(s[d]=l[d],s.$vars.push(d))});var c=pt(i.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:r,option:qe({content:r,encodeHTMLContent:!0,formatterParams:s},n)}}function Ex(i,t){var e;i.isGroup&&(e=t(i)),e||i.traverse(t)}function yl(i,t){if(i)if(ne(i))for(var e=0;e<i.length;e++)Ex(i[e],t);else Ex(i,t)}function I0(i){return!i||Zn(i[1])<T0&&Zn(i[2])<T0||Zn(i[0])<T0&&Zn(i[3])<T0}var T0=1e-5;function td(i,t){return i?Be.copy(i,t):t.clone()}function D0(i,t){return t?kc(i||fr(),t):void 0}function Ox(i){return{z:i.get("z")||0,zlevel:i.get("zlevel")||0}}function Pae(i){var t=-1/0,e=1/0;Ex(i,function(o){r(o),r(o.getTextContent()),r(o.getTextGuideLine())});function r(o){if(!(!o||o.isGroup)){var a=o.currentStates;if(a.length)for(var s=0;s<a.length;s++)n(o.states[a[s]]);n(o)}}function n(o){if(o){var a=o.z2;a>t&&(t=a),a<e&&(e=a)}}return e>t&&(e=t=0),{min:e,max:t}}function Ax(i,t,e){jM(i,t,e,-1/0)}function jM(i,t,e,r){if(i.ignoreModelZ)return r;var n=i.getTextContent(),o=i.getTextGuideLine(),a=i.isGroup;if(a)for(var s=i.childrenRef(),l=0;l<s.length;l++)r=Ir(jM(s[l],t,e,r),r);else i.z=t,i.zlevel=e,r=Ir(i.z2||0,r);if(n&&(n.z=t,n.zlevel=e,isFinite(r)&&(n.z2=r+2)),o){var c=i.textGuideLineConfig;o.z=t,o.zlevel=e,isFinite(r)&&(o.z2=r+(c&&c.showAbove?1:-1))}return r}sn("circle",pl);sn("ellipse",qp);sn("sector",Fo);sn("ring",Kp);sn("polygon",$p);sn("polyline",Zp);sn("rect",Ct);sn("line",an);sn("bezierCurve",Qp);sn("arc",ml);var M0={};function Fae(i,t){for(var e=0;e<Nn.length;e++){var r=Nn[e],n=t[r],o=i.ensureState(r);o.style=o.style||{},o.style.text=n}var a=i.currentStates.slice();i.clearStates(!0),i.setStyle({text:t.normal}),i.useStates(a,!0)}function YM(i,t,e){var r=i.labelFetcher,n=i.labelDataIndex,o=i.labelDimIndex,a=t.normal,s;r&&(s=r.getFormattedLabel(n,"normal",null,o,a&&a.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=we(i.defaultText)?i.defaultText(n,i,e):i.defaultText);for(var l={normal:s},c=0;c<Nn.length;c++){var d=Nn[c],u=t[d];l[d]=Fe(r?r.getFormattedLabel(n,d,null,o,u&&u.get("formatter")):null,s)}return l}function Ya(i,t,e,r){e=e||M0;for(var n=i instanceof Zt,o=!1,a=0;a<sx.length;a++){var s=t[sx[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=n?i:i.getTextContent();if(o){n||(l||(l=new Zt,i.setTextContent(l)),i.stateProxy&&(l.stateProxy=i.stateProxy));var c=YM(e,t),d=t.normal,u=!!d.getShallow("show"),h=Xn(d,r&&r.normal,e,!1,!n);h.text=c.normal,n||i.setTextConfig(KM(d,e,!1));for(var a=0;a<Nn.length;a++){var g=Nn[a],s=t[g];if(s){var _=l.ensureState(g),y=!!Fe(s.getShallow("show"),u);if(y!==u&&(_.ignore=!y),_.style=Xn(s,r&&r[g],e,!0,!n),_.style.text=c[g],!n){var C=i.ensureState(g);C.textConfig=KM(s,e,!0)}}}l.silent=!!d.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!u,l.useStyle(h),l.dirty(),e.enableTextSetter&&(id(l).setLabelText=function(x){var w=YM(e,t,x);Fae(l,w)})}else l&&(l.ignore=!0);i.dirty()}function Ka(i,t){t=t||"label";for(var e={normal:i.getModel(t)},r=0;r<Nn.length;r++){var n=Nn[r];e[n]=i.getModel([n,t])}return e}function Xn(i,t,e,r,n){var o={};return Rae(o,i,e,r,n),t&&se(o,t),o}function KM(i,t,e){t=t||{};var r={},n,o=i.getShallow("rotate"),a=Fe(i.getShallow("distance"),e?null:5),s=i.getShallow("offset");return n=i.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(r.position=n),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=i.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function Rae(i,t,e,r,n){e=e||M0;var o=t.ecModel,a=o&&o.option.textStyle,s=Lae(t),l;if(s){l={};var c="richInheritPlainLabel",d=Fe(t.get(c),o?o.get(c):void 0);for(var u in s)if(s.hasOwnProperty(u)){var h=t.getModel(["rich",u]);XM(l[u]={},h,a,t,d,e,r,n,!1,!0)}}l&&(i.rich=l);var g=t.get("overflow");g&&(i.overflow=g);var _=t.get("lineOverflow");_&&(i.lineOverflow=_);var y=i,C=t.get("minMargin");if(C!=null)C=st(C)?C/2:0,y.margin=[C,C,C,C],y.__marginType=xl.minMargin;else{var x=t.get("textMargin");x!=null&&(y.margin=Fs(x),y.__marginType=xl.textMargin)}XM(i,t,a,null,null,e,r,n,!0,!1)}function Lae(i){for(var t;i&&i!==i.ecModel;){var e=(i.option||M0).rich;if(e){t=t||{};for(var r=dt(e),n=0;n<r.length;n++){var o=r[n];t[o]=1}}i=i.parentModel}return t}var $M=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ZM=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],QM=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function XM(i,t,e,r,n,o,a,s,l,c){e=!a&&e||M0;var d=o&&o.inheritColor,u=t.getShallow("color"),h=t.getShallow("textBorderColor"),g=Fe(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(d?u=d:u=null),(h==="inherit"||h==="auto")&&(d?h=d:h=null),s||(u=u||e.color,h=h||e.textBorderColor),u!=null&&(i.fill=u),h!=null&&(i.stroke=h);var _=Fe(t.getShallow("textBorderWidth"),e.textBorderWidth);_!=null&&(i.lineWidth=_);var y=Fe(t.getShallow("textBorderType"),e.textBorderType);y!=null&&(i.lineDash=y);
1822var C=Fe(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);C!=null&&(i.lineDashOffset=C),!a&&g==null&&!c&&(g=o&&o.defaultOpacity),g!=null&&(i.opacity=g),!a&&!s&&i.fill==null&&o.inheritColor&&(i.fill=o.inheritColor);for(var x=0;x<$M.length;x++){var w=$M[x],E=n!==!1&&r?En(t.getShallow(w),r.getShallow(w),e[w]):Fe(t.getShallow(w),e[w]);E!=null&&(i[w]=E)}for(var x=0;x<ZM.length;x++){var w=ZM[x],E=t.getShallow(w);E!=null&&(i[w]=E)}if(i.verticalAlign==null){var k=t.getShallow("baseline");k!=null&&(i.verticalAlign=k)}if(!l||!o.disableBox){for(var x=0;x<QM.length;x++){var w=QM[x],E=t.getShallow(w);E!=null&&(i[w]=E)}var D=t.getShallow("borderType");D!=null&&(i.borderDash=D),(i.backgroundColor==="auto"||i.backgroundColor==="inherit")&&d&&(i.backgroundColor=d),(i.borderColor==="auto"||i.borderColor==="inherit")&&d&&(i.borderColor=d)}}function JM(i,t){var e=t&&t.getModel("textStyle");return Qi([i.fontStyle||e&&e.getShallow("fontStyle")||"",i.fontWeight||e&&e.getShallow("fontWeight")||"",(i.fontSize||e&&e.getShallow("fontSize")||12)+"px",i.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var id=ht();function eP(i,t,e,r){if(i){var n=id(i);n.prevValue=n.value,n.value=e;var o=t.normal;n.valueAnimation=o.get("valueAnimation"),n.valueAnimation&&(n.precision=o.get("precision"),n.defaultInterpolatedText=r,n.statesModels=t)}}var xl={minMargin:1,textMargin:2};var Oae=["textStyle","color"],Bx=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Nx=new Zt,Aae=(function(){function i(){}return i.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Oae):null)},i.prototype.getFont=function(){return JM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},i.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<Bx.length;r++)e[Bx[r]]=this.getShallow(Bx[r]);return Nx.useStyle(e),Nx.update(),Nx.getBoundingRect()},i})(),tP=Aae;var Vx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Bae=wo(Vx),iP=(function(){function i(){}return i.prototype.getLineStyle=function(t){return Bae(this,t)},i})();var zx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Nae=wo(zx),rP=(function(){function i(){}return i.prototype.getItemStyle=function(t,e){return Nae(this,t,e)},i})();var Cl=(function(){function i(t,e,r){this.parentModel=e,this.ecModel=r,this.option=t}return i.prototype.init=function(t,e,r){for(var n=[],o=3;o<arguments.length;o++)n[o-3]=arguments[o]},i.prototype.mergeOption=function(t,e){ct(this.option,t,!0)},i.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},i.prototype.getShallow=function(t,e){var r=this.option,n=r==null?r:r[t];if(n==null&&!e){var o=this.parentModel;o&&(n=o.getShallow(t))}return n},i.prototype.getModel=function(t,e){var r=t!=null,n=r?this.parsePath(t):null,o=r?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new i(o,e,this.ecModel)},i.prototype.isEmpty=function(){return this.option==null},i.prototype.restoreData=function(){},i.prototype.clone=function(){var t=this.constructor;return new t(He(this.option))},i.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},i.prototype.resolveParentPath=function(t){return t},i.prototype.isAnimationEnabled=function(){if(!Ue.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},i.prototype._doGet=function(t,e){var r=this.option;if(!t)return r;for(var n=0;n<t.length&&!(t[n]&&(r=r&&typeof r=="object"?r[t[n]]:null,r==null));n++);return r==null&&e&&(r=e._doGet(this.resolveParentPath(t),e.parentModel)),r},i})();Hc(Cl);cD(Cl);Zi(Cl,iP);Zi(Cl,rP);Zi(Cl,dD);Zi(Cl,tP);var Nt=Cl;var Vae=Math.round(Math.random()*10);function $a(i){return[i||"",Vae++].join("_")}function nP(i){var t={};i.registerSubTypeDefaulter=function(e,r){var n=Hr(e);t[n.main]=r},i.determineSubType=function(e,r){var n=r.type;if(!n){var o=Hr(e).main;i.hasSubTypes(e)&&t[o]&&(n=t[o](r))}return n}}function oP(i,t){i.topologicalTravel=function(o,a,s,l){if(!o.length)return;var c=e(a),d=c.graph,u=c.noEntryList,h={};for(P(o,function(w){h[w]=!0});u.length;){var g=u.pop(),_=d[g],y=!!h[g];y&&(s.call(l,g,_.originalDeps.slice()),delete h[g]),P(_.successor,y?x:C)}P(h,function(){var w="";throw new Error(w)});function C(w){d[w].entryCount--,d[w].entryCount===0&&u.push(w)}function x(w){h[w]=!0,C(w)}};function e(o){var a={},s=[];return P(o,function(l){var c=r(a,l),d=c.originalDeps=t(l),u=n(d,o);c.entryCount=u.length,c.entryCount===0&&s.push(l),P(u,function(h){je(c.predecessor,h)<0&&c.predecessor.push(h);var g=r(a,h);je(g.successor,h)<0&&g.successor.push(l)})}),{graph:a,noEntryList:s}}function r(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function n(o,a){var s=[];return P(o,function(l){je(a,l)>=0&&s.push(l)}),s}}function P0(i,t){return ct(ct({},i,!0),t,!0)}var aP={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1822ay","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}};var sP={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}
1822\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var R0="ZH",Hx="EN",rd=Hx,F0={},Wx={},L0=Ue.domSupported?(function(){var i=(document.documentElement.lang||navigator.language||navigator.browserLanguage||rd).toUpperCase();return i.indexOf(R0)>-1?R0:rd})():rd;function O0(i,t){i=i.toUpperCase(),Wx[i]=new Nt(t),F0[i]=t}function lP(i){if(pe(i)){var t=F0[i.toUpperCase()]||{};return i===R0||i===Hx?He(t):ct(He(t),He(F0[rd]),!1)}else return ct(He(i),He(F0[rd]),!1)}function cP(i){return Wx[i]}function dP(){return Wx[rd]}O0(Hx,aP);O0(R0,sP);var zae=null;function xi(){return zae}var N0=1e3,V0=N0*60,nd=V0*60,ln=nd*24,Gx=ln*365,Uae={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},B0={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Hae="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",A0="{yyyy}-{MM}-{dd}",qx={year:"{yyyy}",month:"{yyyy}-{MM}",day:A0,hour:A0+" "+B0.hour,minute:A0+" "+B0.minute,second:A0+" "+B0.second,millisecond:Hae},qr=["year","month","day","hour","minute","second","millisecond"],pP=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function uP(i){return!pe(i)&&!we(i)?Wae(i):i}function Wae(i){i=i||{};var t={},e=!0;return P(qr,function(r){e&&(e=i[r]==null)}),P(qr,function(r,n){var o=i[r];t[r]={};for(var a=null,s=n;s>=0;s--){var l=qr[s],c=ve(o)&&!ne(o)?o[l]:o,d=void 0;ne(c)?(d=c.slice(),a=d[0]||""):pe(c)?(a=c,d=[a]):(a==null?a=B0[r]:Uae[l].test(a)||(a=t[l][l][0]+" "+a),d=[a],e&&(d[1]="{primary|"+a+"}")),t[r][l]=d}}),t}function _r(i,t){return i+="","0000".substr(0,t-i.length)+i}function od(i){switch(i){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return i}}function mP(i){return i===od(i)}function fP(i){switch(i){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ta(i,t,e,r){var n=Dr(i),o=n[jx(e)](),a=n[z0(e)]()+1,s=Math.floor((a-1)/3)+1,l=n[U0(e)](),c=n["get"+(e?"UTC":"")+"Day"](),d=n[H0(e)](),u=(d-1)%12+1,h=n[W0(e)](),g=n[G0(e)](),_=n[q0(e)](),y=d>=12?"pm":"am",C=y.toUpperCase(),x=r instanceof Nt?r:cP(r||L0)||dP(),w=x.getModel("time"),E=w.get("month"),k=w.get("monthAbbr"),D=w.get("dayOfWeek"),I=w.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,y+"").replace(/{A}/g,C+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,_r(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,E[a-1]).replace(/{MMM}/g,k[a-1]).replace(/{MM}/g,_r(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,_r(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,D[c]).replace(/{ee}/g,I[c]).replace(/{e}/g,c+"").replace(/{HH}/g,_r(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,_r(u+"",2)).replace(/{h}/g,u+"").replace(/{mm}/g,_r(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,_r(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,_r(_,3)).replace(/{S}/g,_+"")}function hP(i,t,e,r,n){var o=null;if(pe(e))o=e;else if(we(e)){var a={time:i.time,level:i.time.level},s=xi();s&&s.makeAxisLabelFormatterParamBreak(a,i.break),o=e(i.value,t,a)}else{var l=i.time;if(l){var c=e[l.lowerTimeUnit][l.upperTimeUnit];o=c[Math.min(l.level,c.length-1)]||""}else{var d=Sl(i.value,n);o=e[d][d][0]}}return ta(new Date(i.value),o,n,r)}function Sl(i,t){var e=Dr(i),r=e[z0(t)]()+1,n=e[U0(t)](),o=e[H0(t)](),a=e[W0(t)](),s=e[G0(t)](),l=e[q0(t)](),c=l===0,d=c&&s===0,u=d&&a===0,h=u&&o===0,g=h&&n===1,_=g&&r===1;return _?"year":g?"month":h?"day":u?"hour":d?"minute":c?"second":"millisecond"}function ad(i,t,e){switch(t){case"year":i[Yx(e)](0);case"month":i[Kx(e)](1);case"day":i[$x(e)](0);case"hour":i[Zx(e)](0);case"minute":i[Qx(e)](0);case"second":i[Xx(e)](0)}return i}function jx(i){return i?"getUTCFullYear":"getFullYear"}function z0(i){return i?"getUTCMonth":"getMonth"}function U0(i){return i?"getUTCDate":"getDate"}function H0(i){return i?"getUTCHours":"getHours"}function W0(i){return i?"getUTCMinutes":"getMinutes"}function G0(i){return i?"getUTCSeconds":"getSeconds"}function q0(i){return i?"getUTCMilliseconds":"getMilliseconds"}function gP(i){return i?"setUTCFullYear":"setFullYear"}function Yx(i){return i?"setUTCMonth":"setMonth"}function Kx(i){return i?"setUTCDate":"setDate"}function $x(i){return i?"setUTCHours":"setHours"}function Zx(i){return i?"setUTCMinutes":"setMinutes"}function Qx(i){return i?"setUTCSeconds":"setSeconds"}function Xx(i){return i?"setUTCMilliseconds":"setMilliseconds"}function Jx(i,t,e,r,n,o,a,s){var l=new Zt({style:{text:i,font:t,align:e,verticalAlign:r,padding:n,rich:o,overflow:a?"truncate":null,lineHeight:s}});
1822return l.getBoundingRect()}function Jp(i){if(!Mp(i))return pe(i)?i:"-";var t=(i+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function sd(i,t){return i=(i||"").toLowerCase().replace(/-(.)/g,function(e,r){return r.toUpperCase()}),t&&i&&(i=i.charAt(0).toUpperCase()+i.slice(1)),i}var Ro=Fs;function j0(i,t,e){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(d){return d&&Qi(d)?d:"-"}function o(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var a=t==="time",s=i instanceof Date;if(a||s){var l=a?Dr(i):i;if(isNaN(+l)){if(s)return"-"}else return ta(l,r,e)}if(t==="ordinal")return wc(i)?n(i):st(i)&&o(i)?i+"":"-";var c=Fn(i);return o(c)?Jp(c):wc(i)?n(i):typeof i=="boolean"?i+"":"-"}var vP=["a","b","c","d","e","f","g"],eC=function(i,t){return"{"+i+(t??"")+"}"};function ld(i,t,e){ne(t)||(t=[t]);var r=t.length;if(!r)return"";for(var n=t[0].$vars||[],o=0;o<n.length;o++){var a=vP[o];i=i.replace(eC(a),eC(a,0))}for(var s=0;s<r;s++)for(var l=0;l<n.length;l++){var c=t[s][n[l]];i=i.replace(eC(vP[l],s),e?Oi(c):c)}return i}function Y0(i,t){var e=pe(i)?{color:i,extraCssText:t}:i||{},r=e.color,n=e.type;t=e.extraCssText;var o=e.renderMode||"html";if(!r)return"";if(o==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Oi(r)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Oi(r)+";"+(t||"")+'"></span>';var a=e.markerId||"markerX";return{renderMode:o,content:"{"+a+"|}  ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function _P(i,t,e){(i==="week"||i==="month"||i==="quarter"||i==="half-year"||i==="year")&&(i=`MM-dd
1823yyyy`);var r=Dr(t),n=e?"getUTC":"get",o=r[n+"FullYear"](),a=r[n+"Month"]()+1,s=r[n+"Date"](),l=r[n+"Hours"](),c=r[n+"Minutes"](),d=r[n+"Seconds"](),u=r[n+"Milliseconds"]();return i=i.replace("MM",_r(a,2)).replace("M",a).replace("yyyy",o).replace("yy",_r(o%100+"",2)).replace("dd",_r(s,2)).replace("d",s).replace("hh",_r(l,2)).replace("h",l).replace("mm",_r(c,2)).replace("m",c).replace("ss",_r(d,2)).replace("s",d).replace("SSS",_r(u,3)),i}function bP(i){return i&&i.charAt(0).toUpperCase()+i.substr(1)}function Jn(i,t){return t=t||"transparent",pe(i)?i:ve(i)&&i.colorStops&&(i.colorStops[0]||{}).color||t}var $0={},tC={},Gae=(function(){function i(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return i.prototype.create=function(t,e){this._nonSeriesBoxMasterList=r($0,!0),this._normalMasterList=r(tC,!1);function r(n,o){var a=[];return P(n,function(s,l){var c=s.create(t,e);a=a.concat(c||[])}),a}},i.prototype.update=function(t,e){P(this._normalMasterList,function(r){r.update&&r.update(t,e)})},i.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},i.register=function(t,e){if(t==="matrix"||t==="calendar"){$0[t]=e;return}tC[t]=e},i.get=function(t){return tC[t]||$0[t]},i})();function qae(i){return!!$0[i]}var iC={coord:1,coord2:2};var jae=Me();function yP(i){var t=i.getShallow("coord",!0),e=iC.coord;if(t==null){var r=jae.get(i.type);r&&r.getCoord2&&(e=iC.coord2,t=r.getCoord2(i))}return{coord:t,from:e}}var ia={none:0,dataCoordSys:1,boxCoordSys:2};function Yae(i,t){var e=i.getShallow("coordinateSystem"),r=i.getShallow("coordinateSystemUsage",!0),n=r!=null,o=ia.none;if(e){var a=i.mainType==="series";r==null&&(r=a?"data":"box"),r==="data"?(o=ia.dataCoordSys,a||(o=ia.none)):r==="box"&&(o=ia.boxCoordSys,!a&&!qae(e)&&(o=ia.none))}return{coordSysType:e,kind:o}}function xP(i){var t=i.targetModel,e=i.coordSysType,r=i.coordSysProvider,n=i.isDefaultDataCoordSys,o=i.allowNotFound,a=Yae(t,!0),s=a.kind,l=a.coordSysType;if(n&&s!==ia.dataCoordSys&&(s=ia.dataCoordSys,l=e),s===ia.none||l!==e)return!1;var c=r(e,t);return c?(s===ia.dataCoordSys?t.coordinateSystem=c:t.boxCoordinateSystem=c,!0):!1}var cd=Gae;var X0=P,Kae=["left","right","top","bottom","width","height"],Z0=[["width","left","right"],["height","top","bottom"]];function rC(i,t,e,r,n){var o=0,a=0;r==null&&(r=1/0),n==null&&(n=1/0);var s=0;
1823t.eachChild(function(l,c){var d=l.getBoundingRect(),u=t.childAt(c+1),h=u&&u.getBoundingRect(),g,_;if(i==="horizontal"){var y=d.width+(h?-h.x+d.x:0);g=o+y,g>r||l.newline?(o=0,g=y,a+=s+e,s=d.height):s=Math.max(s,d.height)}else{var C=d.height+(h?-h.y+d.y:0);_=a+C,_>n||l.newline?(o+=s+e,a=0,_=C,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),i==="horizontal"?o=g+e:a=_+e)})}var wl=rC,H7e=Bt(rC,"vertical"),W7e=Bt(rC,"horizontal");function CP(i,t){return{left:i.getShallow("left",t),top:i.getShallow("top",t),right:i.getShallow("right",t),bottom:i.getShallow("bottom",t),width:i.getShallow("width",t),height:i.getShallow("height",t)}}function Lo(i,t,e){e=Ro(e||0);var r=t.width,n=t.height,o=yi(i.left,r),a=yi(i.top,n),s=yi(i.right,r),l=yi(i.bottom,n),c=yi(i.width,r),d=yi(i.height,n),u=e[2]+e[0],h=e[1]+e[3],g=i.aspect;switch(isNaN(c)&&(c=r-s-h-o),isNaN(d)&&(d=n-l-u-a),g!=null&&(isNaN(c)&&isNaN(d)&&(g>r/n?c=r*.8:d=n*.8),isNaN(c)&&(c=g*d),isNaN(d)&&(d=c/g)),isNaN(o)&&(o=r-s-c-h),isNaN(a)&&(a=n-l-d-u),i.left||i.right){case"center":o=r/2-c/2-e[3];break;case"right":o=r-c-h;break}switch(i.top||i.bottom){case"middle":case"center":a=n/2-d/2-e[0];break;case"bottom":a=n-d-u;break}o=o||0,a=a||0,isNaN(c)&&(c=r-h-o-(s||0)),isNaN(d)&&(d=n-u-a-(l||0));var _=new Be((t.x||0)+o+e[3],(t.y||0)+a+e[0],c,d);return _.margin=e,_}var Q0={rect:1,point:2};function J0(i,t,e){var r,n,o,a=i.boxCoordinateSystem,s;if(a){var l=yP(i),c=l.coord,d=l.from;if(a.dataToLayout){o=Q0.rect,s=d;var u=a.dataToLayout(c);r=u.contentRect||u.rect}else e&&e.enableLayoutOnlyByCenter&&a.dataToPoint&&(o=Q0.point,s=d,n=a.dataToPoint(c))}return o==null&&(o=Q0.rect),o===Q0.rect&&(r||(r={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[r.x+r.width/2,r.y+r.height/2]),{type:o,refContainer:r,refPoint:n,boxCoordFrom:s}}function Za(i){var t=i.layoutMode||i.constructor.layoutMode;return ve(t)?t:t?{type:t}:null}function cn(i,t,e){var r=e&&e.ignoreSize;!ne(r)&&(r=[r,r]);var n=a(Z0[0],0),o=a(Z0[1],1);l(Z0[0],i,n),l(Z0[1],i,o);function a(c,d){var u={},h=0,g={},_=0,y=2;if(X0(c,function(w){g[w]=i[w]}),X0(c,function(w){Li(t,w)&&(u[w]=g[w]=t[w]),s(u,w)&&h++,s(g,w)&&_++}),r[d])return s(t,c[1])?g[c[2]]=null:s(t,c[2])&&(g[c[1]]=null),g;if(_===y||!h)return g;if(h>=y)return u;for(var C=0;C<c.length;C++){var x=c[C];if(!Li(u,x)&&Li(i,x)){u[x]=i[x];break}}return u}function s(c,d){return c[d]!=null&&c[d]!=="auto"}function l(c,d,u){X0(c,function(h){d[h]=u[h]})}}function Oo(i){return $ae({},i)}function $ae(i,t){return t&&i&&X0(Kae,function(e){Li(t,e)&&(i[e]=t[e])}),i}var Zae=ht(),dd=(function(i){xe(t,i);function t(e,r,n){var o=i.call(this,e,r,n)||this;return o.uid=$a("ec_cpt_model"),o}return t.prototype.init=function(e,r,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,r){var n=Za(this),o=n?Oo(e):{},a=r.getTheme();ct(e,a.get(this.mainType)),ct(e,this.getDefaultOption()),n&&cn(e,o,n)},t.prototype.mergeOption=function(e,r){ct(this.option,e,!0);var n=Za(this);
1823n&&cn(this.option,e,n)},t.prototype.optionUpdated=function(e,r){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!lD(e))return e.defaultOption;var r=Zae(this);if(!r.defaultOption){for(var n=[],o=e;o;){var a=o.prototype.defaultOption;a&&n.push(a),o=o.superClass}for(var s={},l=n.length-1;l>=0;l--)s=ct(s,n[l],!0);r.defaultOption=s}return r.defaultOption},t.prototype.getReferringComponents=function(e,r){var n=e+"Index",o=e+"Id";return za(this.ecModel,e,{index:this.get(n,!0),id:this.get(o,!0)},r)},t.prototype.getBoxLayoutParams=function(){return CP(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(Nt);Jh(dd,Nt);Ua(dd);nP(dd);oP(dd,Qae);function Qae(i){var t=[];return P(dd.getClassesByMainType(i),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=ue(t,function(e){return Hr(e).main}),i!=="dataset"&&je(t,"dataset")<=0&&t.unshift("dataset"),t}var wt=dd;var Tl={color:{},darkColor:{},size:{}},gi=Tl.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};se(gi,{primary:gi.neutral80,secondary:gi.neutral70,tertiary:gi.neutral60,quaternary:gi.neutral50,disabled:gi.neutral20,border:gi.neutral30,borderTint:gi.neutral20,borderShade:gi.neutral40,background:gi.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:gi.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:gi.neutral70,axisLineTint:gi.neutral40,axisTick:gi.neutral70,axisTickMinor:gi.neutral60,axisLabel:gi.neutral70,axisSplitLine:gi.neutral15,axisMinorSplitLine:gi.neutral05});for(Qa in gi)gi.hasOwnProperty(Qa)&&(oC=gi[Qa],Qa==="theme"?Tl.darkColor.theme=gi.theme.slice():Qa==="highlight"?Tl.darkColor.highlight="rgba(255,231,130,0.4)":Qa.indexOf("accent")===0?Tl.darkColor[Qa]=Lc(oC,null,function(i){return i*.5},function(i){return Math.min(1,1.3-i)}):Tl.darkColor[Qa]=Lc(oC,null,function(i){return i*.9},function(i){return 1-Math.pow(i,1.5)}));var oC,Qa;Tl.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Ae=Tl;var SP="";typeof navigator<"u"&&(SP=navigator.platform||"");var pd="rgba(0, 0, 0, 0.2)",wP=Ae.color.theme[0],Xae=Lc(wP,null,null,.9),TP={darkMode:"auto",colorBy:"series",color:Ae.color.theme,gradientColor:[Xae,wP],aria:{decal:{decals:[{color:pd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:pd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:pd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:pd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:pd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:pd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:SP.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};
1823var eg=Me(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Bi="original",Pi="arrayRows",Pr="objectRows",dn="keyedColumns",pn="typedArray",aC="unknown",un="column",Ao="row";var Fr={Must:1,Might:2,Not:3},EP=ht();function kP(i){EP(i).datasetMap=Me()}function IP(i,t,e){var r={},n=sC(t);if(!n||!i)return r;var o=[],a=[],s=t.ecModel,l=EP(s).datasetMap,c=n.uid+"_"+e.seriesLayoutBy,d,u;i=i.slice(),P(i,function(y,C){var x=ve(y)?y:i[C]={name:y};x.type==="ordinal"&&d==null&&(d=C,u=_(x)),r[x.name]=[]});var h=l.get(c)||l.set(c,{categoryWayDim:u,valueWayDim:0});P(i,function(y,C){var x=y.name,w=_(y);if(d==null){var E=h.valueWayDim;g(r[x],E,w),g(a,E,w),h.valueWayDim+=w}else if(d===C)g(r[x],0,w),g(o,0,w);else{var E=h.categoryWayDim;g(r[x],E,w),g(a,E,w),h.categoryWayDim+=w}});function g(y,C,x){for(var w=0;w<x;w++)y.push(C+w)}function _(y){var C=y.dimsDef;return C?C.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function sC(i){var t=i.get("data",!0);if(!t)return za(i.ecModel,"dataset",{index:i.get("datasetIndex",!0),id:i.get("datasetId",!0)},or).models[0]}function DP(i){return!i.get("transform",!0)&&!i.get("fromTransformResult",!0)?[]:za(i.ecModel,"dataset",{index:i.get("fromDatasetIndex",!0),id:i.get("fromDatasetId",!0)},or).models}function tg(i,t){return Jae(i.data,i.sourceFormat,i.seriesLayoutBy,i.dimensionsDefine,i.startIndex,t)}function Jae(i,t,e,r,n,o){var a,s=5;if(di(i))return Fr.Not;var l,c;if(r){var d=r[o];ve(d)?(l=d.name,c=d.type):pe(d)&&(l=d)}if(c!=null)return c==="ordinal"?Fr.Must:Fr.Not;if(t===Pi){var u=i;if(e===Ao){for(var h=u[o],g=0;g<(h||[]).length&&g<s;g++)if((a=k(h[n+g]))!=null)return a}else for(var g=0;g<u.length&&g<s;g++){var _=u[n+g];if(_&&(a=k(_[o]))!=null)return a}}else if(t===Pr){var y=i;if(!l)return Fr.Not;for(var g=0;g<y.length&&g<s;g++){var C=y[g];if(C&&(a=k(C[l]))!=null)return a}}else if(t===dn){var x=i;if(!l)return Fr.Not;var h=x[l];if(!h||di(h))return Fr.Not;for(var g=0;g<h.length&&g<s;g++)if((a=k(h[g]))!=null)return a}else if(t===Bi)for(var w=i,g=0;g<w.length&&g<s;g++){var C=w[g],E=Qo(C);if(!ne(E))return Fr.Not;if((a=k(E[o]))!=null)return a}function k(D){var I=pe(D);if(D!=null&&Number.isFinite(Number(D))&&D!=="")return I?Fr.Might:Fr.Not;if(I&&D!=="-")return Fr.Must}return Fr.Not}var ese=Me();function MP(i,t,e){var r=ese.get(t);if(!r)return e;var n=r(i);if(!n)return e;if(0)for(var o;o<n.length;o++);return e.concat(n)}var PP=ht(),d8e=ht(),eu=(function(){function i(){}return i.prototype.getColorFromPalette=function(t,e,r){var n=ai(this.get("color",!0)),o=this.get("colorLayer",!0);return ise(this,PP,n,o,t,e,r)},i.prototype.clearColorPalette=function(){rse(this,PP)},i})();function tse(i,t){for(var e=i.length,r=0;r<e;r++)if(i[r].length>t)return i[r];return i[e-1]}function ise(i,t,e,r,n,o,a){o=o||i;var s=t(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(n))return c[n];var d=a==null||!r?e:tse(r,a);if(d=d||e,!(!d||!d.length)){var u=d[l];return n&&(c[n]=u),s.paletteIdx=(l+1)%d.length,u}}function rse(i,t){t(i).paletteIdx=0,t(i).paletteNameMap={}}var ig,tu,FP,RP="\0_ec_inner",nse=1;var BP=(function(i){xe(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(e,r,n,o,a,s){o=o||{},this.option=null,this._theme=new Nt(o),this._locale=new Nt(a),this._optionManager=s},t.prototype.setOption=function(e,r,n){var o=AP(r);this._optionManager.setOption(e,n,o),this._resetOption(null,o)},t.prototype.resetOption=function(e,r){return this._resetOption(e,AP(r))},t.prototype._resetOption=function(e,r){var n=!1,o=this._optionManager;if(!e||e==="recreate"){var a=o.mountOption(e==="recreate");!this.option||e==="recreate"?FP(this,a):(this.restoreData(),this._mergeOption(a,r)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=o.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,r))}if(!e||e==="recreate"||e==="media"){var l=o.getMediaOption(this);l.length&&P(l,function(c){n=!0,this._mergeOption(c,r)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,r){var n=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Me(),c=r&&r.replaceMergeMainTypeMap;kP(this),P(e,function(u,h){u!=null&&(wt.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?He(u):ct(n[h],u,!0))}),c&&c.each(function(u,h){wt.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),wt.topologicalTravel(s,wt.getAllClassMainTypes(),d,this);function d(u){var h=MP(this,u,ai(e[u])),g=o.get(u),_=g?c&&c.get(u)?"replaceMerge":"normalMerge":"replaceAll",y=iD(g,h,_);nD(y,u,wt),n[u]=null,o.set(u,null),a.set(u,0);var C=[],x=[],w=0,E,k;P(y,function(D,I){var F=D.existing,A=D.newOption;if(!A)F&&(F.mergeOption({},this),F.optionUpdated({},!1));else{var U=u==="series",q=wt.getClass(u,D.keyInfo.subType,!U);if(!q){if(0)var z,Z;return}if(u==="tooltip"){if(E)return;E=!0}if(F&&F.constructor===q)F.name=D.keyInfo.name,F.mergeOption(A,this),F.optionUpdated(A,!1);else{var j=se({componentIndex:I},D.keyInfo);F=new q(A,this,this,j),se(F,j),D.brandNew&&(F.__requireNewView=!0),F.init(A,this,this),F.optionUpdated(null,!0)}}F?(C.push(F.option),x.push(F),w++):(C.push(void 0),x.push(void 0))},this),n[u]=C,o.set(u,x),a.set(u,w),u==="series"&&ig(this)}this._seriesIndices||ig(this)},t.prototype.getOption=function(){var e=He(this.option);return P(e,function(r,n){if(wt.hasClass(n)){for(var o=ai(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!zc(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,e[n]=o}}),delete e[RP],e},t.prototype.setTheme=function(e){this._theme=new Nt(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,r){var n=this._componentsMap.get(e);if(n){var o=n[r||0];if(o)return o;if(r==null){for(var a=0;a<n.length;a++)if(n[a])return n[a]}}},t.prototype.queryComponents=function(e){var r=e.mainType;if(!r)return[];var n=e.index,o=e.id,a=e.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return n!=null?(l=[],P(ai(n),function(c){s[c]&&l.push(s[c])})):o!=null?l=LP("id",o,s):a!=null?l=LP("name",a,s):l=Gt(s,function(c){return!!c}),OP(l,e)},t.prototype.findComponents=function(e){var r=e.query,n=e.mainType,o=s(r),a=o?this.queryComponents(o):Gt(this._componentsMap.get(n),function(c){return!!c});return l(OP(a,e));function s(c){var d=n+"Index",u=n+"Id",h=n+"Name";return c&&(c[d]!=null||c[u]!=null||c[h]!=null)?{mainType:n,index:c[d],id:c[u],name:c[h]}:null}function l(c){return e.filter?Gt(c,e.filter):c}},t.prototype.eachComponent=function(e,r,n){var o=this._componentsMap;if(we(e)){var a=r,s=e;o.each(function(u,h){for(var g=0;u&&g<u.length;g++){var _=u[g];_&&s.call(a,h,_,_.componentIndex)}})}else for(var l=pe(e)?o.get(e):ve(e)?this.findComponents(e):null,c=0;l&&c<l.length;c++){var d=l[c];d&&r.call(n,d,d.componentIndex)}},t.prototype.getSeriesByName=function(e){var r=nn(e,null);return Gt(this._componentsMap.get("series"),function(n){return!!n&&r!=null&&n.name===r})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Gt(this._componentsMap.get("series"),function(r){return!!r&&r.subType===e})},t.prototype.getSeries=function(){return Gt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,r){tu(this),P(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];e.call(r,o,n)},this)},t.prototype.eachRawSeries=function(e,r){P(this._componentsMap.get("series"),function(n){n&&e.call(r,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,r,n){tu(this),P(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===e&&r.call(n,a,o)},this)},t.prototype.eachRawSeriesByType=function(e,r,n){return P(this.getSeriesByType(e),r,n)},t.prototype.isSeriesFiltered=function(e){return tu(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,r){tu(this);var n=[];P(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];e.call(r,a,o)&&n.push(o)},this),this._seriesIndices=n,this._seriesIndicesMap=Me(n)},t.prototype.restoreData=function(e){ig(this);var r=this._componentsMap,n=[];r.each(function(o,a){wt.hasClass(a)&&n.push(a)}),wt.topologicalTravel(n,wt.getAllClassMainTypes(),function(o){P(r.get(o),function(a){a&&(o!=="series"||!ose(a,e))&&a.restoreData()})})},t.internalField=(function(){ig=function(e){var r=e._seriesIndices=[];P(e._componentsMap.get("series"),function(n){n&&r.push(n.componentIndex)}),e._seriesIndicesMap=Me(r)},tu=function(e){},FP=function(e,r){e.option={},e.option[RP]=nse,e._componentsMap=Me({series:[]}),e._componentsCount=Me();var n=r.aria;ve(n)&&n.enabled==null&&(n.enabled=!0),ase(r,e._theme.option),ct(r,TP,!1),e._mergeOption(r,null)}})(),t})(Nt);function ose(i,t){if(t){var e=t.seriesIndex,r=t.seriesId,n=t.seriesName;return e!=null&&i.componentIndex!==e||r!=null&&i.id!==r||n!=null&&i.name!==n}}function ase(i,t){var e=i.color&&!i.colorLayer;P(t,function(r,n){n==="colorLayer"&&e||n==="color"&&i.color||wt.hasClass(n)||(typeof r=="object"?i[n]=i[n]?ct(i[n],r,!1):He(r):i[n]==null&&(i[n]=r))})}function LP(i,t,e){if(ne(t)){var r=Me();
1823return P(t,function(o){if(o!=null){var a=nn(o,null);a!=null&&r.set(o,!0)}}),Gt(e,function(o){return o&&r.get(o[i])})}else{var n=nn(t,null);return Gt(e,function(o){return o&&n!=null&&o[i]===n})}}function OP(i,t){return t.hasOwnProperty("subType")?Gt(i,function(e){return e&&e.subType===t.subType}):i}function AP(i){var t=Me();return i&&P(ai(i.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Zi(BP,eu);var rg=BP;var sse=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],lse=(function(){function i(t){P(sse,function(e){this[e]=rt(t[e],t)},this)}return i})(),ng=lse;var cse=/^(min|max)?(.+)$/,dse=(function(){function i(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return i.prototype.setOption=function(t,e,r){t&&(P(ai(t.series),function(a){a&&a.data&&di(a.data)&&Rs(a.data)}),P(ai(t.dataset),function(a){a&&a.source&&di(a.source)&&Rs(a.source)})),t=He(t);var n=this._optionBackup,o=pse(t,e,!n);this._newBaseOption=o.baseOption,n?(o.timelineOptions.length&&(n.timelineOptions=o.timelineOptions),o.mediaList.length&&(n.mediaList=o.mediaList),o.mediaDefault&&(n.mediaDefault=o.mediaDefault)):this._optionBackup=o},i.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],He(t?e.baseOption:this._newBaseOption)},i.prototype.getTimelineOption=function(t){var e,r=this._timelineOptions;if(r.length){var n=t.getComponent("timeline");n&&(e=He(r[n.getCurrentIndex()]))}return e},i.prototype.getMediaOption=function(t){var e=this._api.getWidth(),r=this._api.getHeight(),n=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!n.length&&!o)return s;for(var l=0,c=n.length;l<c;l++)use(n[l].query,e,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!fse(a,this._currentMediaIndices)&&(s=ue(a,function(d){return He(d===-1?o.option:n[d].option)})),this._currentMediaIndices=a,s},i})();function pse(i,t,e){var r=[],n,o,a=i.baseOption,s=i.timeline,l=i.options,c=i.media,d=!!i.media,u=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((u||d)&&(i.options=i.media=null),o=i),d&&ne(c)&&P(c,function(g){g&&g.option&&(g.query?r.push(g):n||(n=g))}),h(o),P(l,function(g){return h(g)}),P(r,function(g){return h(g.option)});function h(g){P(t,function(_){_(g,e)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:n,mediaList:r}}function use(i,t,e){var r={width:t,height:e,aspectratio:t/e},n=!0;return P(i,function(o,a){var s=a.match(cse);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();mse(r[c],o,l)||(n=!1)}}),n}function mse(i,t,e){return e==="min"?i>=t:e==="max"?i<=t:i===t}function fse(i,t){return i.join(",")===t.join(",")}var NP=dse;var eo=P,ru=ve,VP=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function lC(i){var t=i&&i.itemStyle;if(t)for(var e=0,r=VP.length;e<r;e++){var n=VP[e],o=t.normal,a=t.emphasis;o&&o[n]&&(i[n]=i[n]||{},i[n].normal?ct(i[n].normal,o[n]):i[n].normal=o[n],o[n]=null),a&&a[n]&&(i[n]=i[n]||{},i[n].emphasis?ct(i[n].emphasis,a[n]):i[n].emphasis=a[n],a[n]=null)}}function br(i,t,e){if(i&&i[t]&&(i[t].normal||i[t].emphasis)){var r=i[t].normal,n=i[t].emphasis;r&&(e?(i[t].normal=i[t].emphasis=null,qe(i[t],r)):i[t]=r),n&&(i.emphasis=i.emphasis||{},i.emphasis[t]=n,n.focus&&(i.emphasis.focus=n.focus),n.blurScope&&(i.emphasis.blurScope=n.blurScope))}}function iu(i){br(i,"itemStyle"),br(i,"lineStyle"),br(i,"areaStyle"),br(i,"label"),br(i,"labelLine"),br(i,"upperLabel"),br(i,"edgeLabel")}function Ci(i,t){var e=ru(i)&&i[t],r=ru(e)&&e.textStyle;if(r)for(var n=0,o=P1.length;n<o;n++){var a=P1[n];r.hasOwnProperty(a)&&(e[a]=r[a])}}function Vn(i){i&&(iu(i),Ci(i,"label"),i.emphasis&&Ci(i.emphasis,"label"))}function hse(i){if(ru(i)){lC(i),iu(i),Ci(i,"label"),Ci(i,"upperLabel"),Ci(i,"edgeLabel"),i.emphasis&&(Ci(i.emphasis,"label"),Ci(i.emphasis,"upperLabel"),Ci(i.emphasis,"edgeLabel"));var t=i.markPoint;t&&(lC(t),Vn(t));var e=i.markLine;e&&(lC(e),Vn(e));var r=i.markArea;r&&Vn(r);var n=i.data;if(i.type==="graph"){n=n||i.nodes;var o=i.links||i.edges;if(o&&!di(o))for(var a=0;a<o.length;a++)Vn(o[a]);P(i.categories,function(c){iu(c)})}if(n&&!di(n))for(var a=0;a<n.length;a++)Vn(n[a]);if(t=i.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)Vn(s[a]);if(e=i.markLine,e&&e.data)for(var l=e.data,a=0;a<l.length;
1823a++)ne(l[a])?(Vn(l[a][0]),Vn(l[a][1])):Vn(l[a]);i.type==="gauge"?(Ci(i,"axisLabel"),Ci(i,"title"),Ci(i,"detail")):i.type==="treemap"?(br(i.breadcrumb,"itemStyle"),P(i.levels,function(c){iu(c)})):i.type==="tree"&&iu(i.leaves)}}function ra(i){return ne(i)?i:i?[i]:[]}function zP(i){return(ne(i)?i[0]:i)||{}}function cC(i,t){eo(ra(i.series),function(r){ru(r)&&hse(r)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),eo(e,function(r){eo(ra(i[r]),function(n){n&&(Ci(n,"axisLabel"),Ci(n.axisPointer,"label"))})}),eo(ra(i.parallel),function(r){var n=r&&r.parallelAxisDefault;Ci(n,"axisLabel"),Ci(n&&n.axisPointer,"label")}),eo(ra(i.calendar),function(r){br(r,"itemStyle"),Ci(r,"dayLabel"),Ci(r,"monthLabel"),Ci(r,"yearLabel")}),eo(ra(i.radar),function(r){Ci(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap)}),eo(ra(i.geo),function(r){ru(r)&&(Vn(r),eo(ra(r.regions),function(n){Vn(n)}))}),eo(ra(i.timeline),function(r){Vn(r),br(r,"label"),br(r,"itemStyle"),br(r,"controlStyle",!0);var n=r.data;ne(n)&&P(n,function(o){ve(o)&&(br(o,"label"),br(o,"itemStyle"))})}),eo(ra(i.toolbox),function(r){br(r,"iconStyle"),eo(r.feature,function(n){br(n,"iconStyle")})}),Ci(zP(i.axisPointer),"label"),Ci(zP(i.tooltip).axisPointer,"label")}function gse(i,t){for(var e=t.split(","),r=i,n=0;n<e.length&&(r=r&&r[e[n]],r!=null);n++);return r}function vse(i,t,e,r){for(var n=t.split(","),o=i,a,s=0;s<n.length-1;s++)a=n[s],o[a]==null&&(o[a]={}),o=o[a];(r||o[n[s]]==null)&&(o[n[s]]=e)}function UP(i){i&&P(_se,function(t){t[0]in i&&!(t[1]in i)&&(i[t[1]]=i[t[0]])})}var _se=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],bse=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],dC=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function nu(i){var t=i&&i.itemStyle;if(t)for(var e=0;e<dC.length;e++){var r=dC[e][1],n=dC[e][0];t[r]!=null&&(t[n]=t[r])}}function HP(i){i&&i.alignTo==="edge"&&i.margin!=null&&i.edgeDistance==null&&(i.edgeDistance=i.margin)}function WP(i){i&&i.downplay&&!i.blur&&(i.blur=i.downplay)}function yse(i){i&&i.focusNodeAdjacency!=null&&(i.emphasis=i.emphasis||{},i.emphasis.focus==null&&(i.emphasis.focus="adjacency"))}function GP(i,t){if(i)for(var e=0;e<i.length;e++)t(i[e]),i[e]&&GP(i[e].children,t)}function og(i,t){cC(i,t),i.series=ai(i.series),P(i.series,function(e){if(ve(e)){var r=e.type;if(r==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(r==="pie"||r==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),HP(e.label);var n=e.data;if(n&&!di(n))for(var o=0;o<n.length;o++)HP(n[o]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(r==="gauge"){var a=gse(e,"pointer.color");a!=null&&vse(e,"itemStyle.color",a)}else if(r==="bar"){nu(e),nu(e.backgroundStyle),nu(e.emphasis);var n=e.data;if(n&&!di(n))for(var o=0;o<n.length;o++)typeof n[o]=="object"&&(nu(n[o]),nu(n[o]&&n[o].emphasis))}else if(r==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),WP(e),GP(e.data,WP)}else r==="graph"||r==="sankey"?yse(e):r==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&qe(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),UP(e)}}),i.dataRange&&(i.visualMap=i.dataRange),P(bse,function(e){var r=i[e];r&&(ne(r)||(r=[r]),P(r,function(n){UP(n)}))})}function pC(i){var t=Me();i.eachSeries(function(e){var r=e.get("stack");if(r){var n=t.get(r)||t.set(r,[]),o=e.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;n.push(a)}}),t.each(function(e){if(e.length!==0){var r=e[0].seriesModel,n=r.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),P(e,function(o,a){o.data.setCalculationInfo("stackedOnSeries",a>0?e[a-1].seriesModel:null)}),xse(e)}})}function xse(i){P(i,function(t,e){var r=[],n=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(c,d,u){var h=a.get(t.stackedDimension,u);if(isNaN(h))return n;var g,_;s?_=a.getRawIndex(u):g=a.get(t.stackedByDimension,u);for(var y=NaN,C=e-1;C>=0;C--){var x=i[C];if(s||(_=x.data.rawIndexOf(x.stackedByDimension,g)),_>=0){var w=x.data.getByRawIndex(x.stackResultDimension,_);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&h>=0&&w>0||l==="samesign"&&h<=0&&w<0){h=Y3(h,w),y=w;break}}}return r[0]=h,r[1]=y,r})})}var ag=(function(){function i(t){this.data=t.data||(t.sourceFormat===dn?{}:[]),this.sourceFormat=t.sourceFormat||aC,this.seriesLayoutBy=t.seriesLayoutBy||un,this.startIndex=t.startIndex||
18230,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var r=0;r<e.length;r++){var n=e[r];n.type==null&&tg(this,r)===Fr.Must&&(n.type="ordinal")}}return i})();function ud(i){return i instanceof ag}function ou(i,t,e){e=e||uC(i);var r=t.seriesLayoutBy,n=Cse(i,e,r,t.sourceHeader,t.dimensions),o=new ag({data:i,sourceFormat:e,seriesLayoutBy:r,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:He(t)});return o}function md(i){return new ag({data:i,sourceFormat:di(i)?pn:Bi})}function YP(i){return new ag({data:i.data,sourceFormat:i.sourceFormat,seriesLayoutBy:i.seriesLayoutBy,dimensionsDefine:He(i.dimensionsDefine),startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount})}function uC(i){var t=aC;if(di(i))t=pn;else if(ne(i)){i.length===0&&(t=Pi);for(var e=0,r=i.length;e<r;e++){var n=i[e];if(n!=null){if(ne(n)||di(n)){t=Pi;break}else if(ve(n)){t=Pr;break}}}}else if(ve(i)){for(var o in i)if(Li(i,o)&&_i(i[o])){t=dn;break}}return t}function Cse(i,t,e,r,n){var o,a;if(!i)return{dimensionsDefine:qP(n),startIndex:a,dimensionsDetectedCount:o};if(t===Pi){var s=i;r==="auto"||r==null?jP(function(c){c!=null&&c!=="-"&&(pe(c)?a==null&&(a=1):a=0)},e,s,10):a=st(r)?r:r?1:0,!n&&a===1&&(n=[],jP(function(c,d){n[d]=c!=null?c+"":""},e,s,1/0)),o=n?n.length:e===Ao?s.length:s[0]?s[0].length:null}else if(t===Pr)n||(n=Sse(i));else if(t===dn)n||(n=[],P(i,function(c,d){n.push(d)}));else if(t===Bi){var l=Qo(i[0]);o=ne(l)&&l.length||1}return{startIndex:a,dimensionsDefine:qP(n),dimensionsDetectedCount:o}}function Sse(i){for(var t=0,e;t<i.length&&!(e=i[t++]););if(e)return dt(e)}function qP(i){if(i){var t=Me();return ue(i,function(e,r){e=ve(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var o=t.get(n.name);return o?n.name+="-"+o.count++:t.set(n.name,{count:1}),n})}}function jP(i,t,e,r){if(t===Ao)for(var n=0;n<e.length&&n<r;n++)i(e[n]?e[n][0]:null,n);else for(var o=e[0]||[],n=0;n<o.length&&n<r;n++)i(o[n],n)}function sg(i){var t=i.sourceFormat;return t===Pr||t===dn}var El,kl,Il,Dl,KP,$P,cg=(function(){function i(t,e){var r=ud(t)?t:md(t);this._source=r;var n=this._data=r.data,o=r.sourceFormat,a=r.seriesLayoutBy;if(o===pn&&(this._offset=0,this._dimSize=e,this._data=n),0)var s;$P(this,n,r)}return i.prototype.getSource=function(){return this._source},i.prototype.count=function(){return 0},i.prototype.getItem=function(t,e){},i.prototype.appendData=function(t){},i.prototype.clean=function(){},i.protoInitialize=(function(){var t=i.prototype;t.pure=!1,t.persistent=!0})(),i.internalField=(function(){var t;$P=function(a,s,l){var c=l.sourceFormat,d=l.seriesLayoutBy,u=l.startIndex,h=l.dimensionsDefine,g=KP[vC(c,d)];if(se(a,g),c===pn)a.getItem=e,a.count=n,a.fillStorage=r;else{var _=fC(c,d);a.getItem=rt(_,null,s,u,h);var y=hC(c,d);a.count=rt(y,null,s,u,h)}};var e=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,d=c*a,u=0;u<c;u++)s[u]=l[d+u];return s},r=function(a,s,l,c){for(var d=this._data,u=this._dimSize,h=0;h<u;h++){for(var g=c[h],_=g[0]==null?1/0:g[0],y=g[1]==null?-1/0:g[1],C=s-a,x=l[h],w=0;w<C;w++){var E=d[w*u+h];x[a+w]=E,E<_&&(_=E),E>y&&(y=E)}g[0]=_,g[1]=y}},n=function(){return this._data?this._data.length/this._dimSize:0};KP=(t={},t[Pi+"_"+un]={pure:!0,appendData:o},t[Pi+"_"+Ao]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Pr]={pure:!0,appendData:o},t[dn]={pure:!0,appendData:function(a){var s=this._data;P(a,function(l,c){for(var d=s[c]||(s[c]=[]),u=0;u<(l||[]).length;u++)d.push(l[u])})}},t[Bi]={appendData:o},t[pn]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}})(),i})();var lg=function(i){ne(i)||D1("series.data or dataset.source must be an array.")},K8e=(El={},El[Pi+"_"+un]=lg,El[Pi+"_"+Ao]=lg,El[Pr]=lg,El[dn]=function(i,t){for(var e=0;e<t.length;e++){var r=t[e].name;r==null&&D1("dimension name must not be null/undefined.")}},El[Bi]=lg,El),ZP=function(i,t,e,r){return i[r]},wse=(kl={},kl[Pi+"_"+un]=function(i,t,e,r){return i[r+t]},kl[Pi+"_"+Ao]=function(i,t,e,r,n){r+=t;for(var o=n||[],a=i,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},kl[Pr]=ZP,kl[dn]=function(i,t,e,r,n){for(var o=n||[],a=0;a<e.length;a++){var s=e[a].name,l=s!=null?i[s]:null;o[a]=l?l[r]:null}return o},kl[Bi]=ZP,kl);function fC(i,t){var e=wse[vC(i,t)];return e}var QP=function(i,t,e){return i.length},Tse=(Il={},Il[Pi+"_"+un]=function(i,t,e){return Math.max(0,i.length-t)},Il[Pi+"_"+Ao]=function(i,t,e){var r=i[0];return r?Math.max(0,r.length-t):0},Il[Pr]=QP,Il[dn]=function(i,t,e){var r=e[0].name,n=r!=null?i[r]:null;return n?n.length:0},Il[Bi]=QP,Il);function hC(i,t){var e=Tse[vC(i,t)];return e}var mC=function(i,t,e){return i[t]},Ese=(Dl={},Dl[Pi]=mC,Dl[Pr]=function(i,t,e){return i[e]},Dl[dn]=mC,Dl[Bi]=function(i,t,e){var r=Qo(i);return r instanceof Array?r[t]:r},Dl[pn]=mC,Dl);function gC(i){var t=Ese[i];return t}function vC(i,t){return i===Pi?i+"_"+t:i}function na(i,t,e){if(i){var r=i.getRawDataItem(t);
1823if(r!=null){var n=i.getStore(),o=n.getSource().sourceFormat;if(e!=null){var a=i.getDimensionIndex(e),s=n.getDimensionProperty(a);return gC(o)(r,a,s)}else{var l=r;return o===Bi&&(l=Qo(r)),l}}}}var kse=/\{@(.+?)\}/g,XP=(function(){function i(){}return i.prototype.getDataParams=function(t,e){var r=this.getData(e),n=this.getRawValue(t,e),o=r.getRawIndex(t),a=r.getName(t),s=r.getRawDataItem(t),l=r.getItemVisual(t,"style"),c=l&&l[r.getItemVisual(t,"drawType")||"fill"],d=l&&l.stroke,u=this.mainType,h=u==="series",g=r.userOutput&&r.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:o,data:s,dataType:e,value:n,color:c,borderColor:d,dimensionNames:g?g.fullDimensions:null,encode:g?g.encode:null,$vars:["seriesName","name","value"]}},i.prototype.getFormattedLabel=function(t,e,r,n,o,a){e=e||"normal";var s=this.getData(r),l=this.getDataParams(t,r);if(a&&(l.value=a.interpolatedValue),n!=null&&ne(l.value)&&(l.value=l.value[n]),!o){var c=s.getItemModel(t);o=c.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(we(o))return l.status=e,l.dimensionIndex=n,o(l);if(pe(o)){var d=ld(o,l);return d.replace(kse,function(u,h){var g=h.length,_=h;_.charAt(0)==="["&&_.charAt(g-1)==="]"&&(_=+_.slice(1,g-1));var y=na(s,t,_);if(a&&ne(a.interpolatedValue)){var C=s.getDimensionIndex(_);C>=0&&(y=a.interpolatedValue[C])}return y!=null?y+"":""})}},i.prototype.getRawValue=function(t,e){return na(this.getData(e),t)},i.prototype.formatTooltip=function(t,e,r){},i})();function _C(i){var t,e;return ve(i)?i.type&&(e=i):t=i,{text:t,frag:e}}function Xa(i){return new Ise(i)}var Ise=(function(){function i(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return i.prototype.perform=function(t){var e=this._upstream,r=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!r&&(o=this._plan(this.context));var a=d(this._modBy),s=this._modDataCount||0,l=d(t&&t.modBy),c=t&&t.modDataCount||0;(a!==l||s!==c)&&(o="reset");function d(w){return!(w>=1)&&(w=1),w}var u;(this._dirty||o==="reset")&&(this._dirty=!1,u=this._doReset(r)),this._modBy=l,this._modDataCount=c;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,_=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(u||g<_)){var y=this._progress;if(ne(y))for(var C=0;C<y.length;C++)this._doProgress(y[C],g,_,l,c);else this._doProgress(y,g,_,l,c)}this._dueIndex=_;var x=this._settedOutputEnd!=null?this._settedOutputEnd:_;this._outputDueEnd=x}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},i.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},i.prototype._doProgress=function(t,e,r,n,o){JP.reset(e,r,n,o),this._callingProgress=t,this._callingProgress({start:e,end:r,count:r-e,next:JP.next},this.context)},i.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,r;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(r=e.forceFirstProgress,e=e.progress),ne(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),r},i.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},i.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},i.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},i.prototype.getUpstream=function(){return this._upstream},i.prototype.getDownstream=function(){return this._downstream},i.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},i})();var JP=(function(){var i,t,e,r,n,o={reset:function(l,c,d,u){t=l,i=c,e=d,r=u,n=Math.ceil(r/e),o.next=e>1&&r>0?s:a}};return o;function a(){return t<i?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),c=t>=i?null:l<r?l:t;return t++,c}})();function fd(i,t){var e=t&&t.type;return e==="ordinal"?i:(e==="time"&&!st(i)&&i!=null&&i!=="-"&&(i=+Dr(i)),i==null||i===""?NaN:Number(i))}var oVe=Me({number:function(i){return parseFloat(i)},time:function(i){return+Dr(i)},trim:function(i){return pe(i)?Qi(i):i}});var Dse={lt:function(i,t){return i<t},lte:function(i,t){return i<=t},gt:function(i,t){return i>t},gte:function(i,t){return i>=t}},aVe=(function(){function i(t,e){if(!st(e)){var r="";Xi(r)}this._opFn=Dse[t],this._rvalFloat=Fn(e)}return i.prototype.evaluate=function(t){return st(t)?this._opFn(t,this._rvalFloat):this._opFn(Fn(t),this._rvalFloat)},i})(),e5=(function(){function i(t,e){var r=t==="desc";this._resultLT=r?1:-1,e==null&&(e=r?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return i.prototype.evaluate=function(t,e){var r=st(t)?t:Fn(t),n=st(e)?e:Fn(e),o=isNaN(r),a=isNaN(n);if(o&&(r=this._incomparable),a&&(n=this._incomparable),o&&a){var s=pe(t),l=pe(e);s&&(r=l?t:0),l&&(n=s?e:0)}return r<n?this._resultLT:r>n?-this._resultLT:0},i})();var sVe=(function(){function i(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Fn(e)}return i.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var r=typeof t;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(e=Fn(t)===this._rvalFloat)}return this._isEQ?e:!e},i})();var Mse=(function(){function i(){}return i.prototype.getRawData=function(){throw new Error("not supported")},i.prototype.getRawDataItem=function(t){throw new Error("not supported")},i.prototype.cloneRawData=function(){},i.prototype.getDimensionInfo=function(t){},i.prototype.cloneAllDimensionInfo=function(){},i.prototype.count=function(){},i.prototype.retrieveValue=function(t,e){},i.prototype.retrieveValueFromItem=function(t,e){},i.prototype.convertValue=function(t,e){return fd(t,e)},i})();function Pse(i,t){var e=new Mse,r=i.data,n=e.sourceFormat=i.sourceFormat,o=i.startIndex,a="";i.seriesLayoutBy!==un&&Xi(a);var s=[],l={},c=i.dimensionsDefine;if(c)P(c,function(y,C){var x=y.name,w={index:C,name:x,displayName:y.displayName};if(s.push(w),x!=null){var E="";Li(l,x)&&Xi(E),l[x]=w}});else for(var d=0;d<i.dimensionsDetectedCount;d++)s.push({index:d});var u=fC(n,un);t.__isBuiltIn&&(e.getRawDataItem=function(y){return u(r,o,s,y)},e.getRawData=rt(Fse,null,i)),e.cloneRawData=rt(Rse,null,i);var h=hC(n,un);e.count=rt(h,null,r,o,s);var g=gC(n);e.retrieveValue=function(y,C){var x=u(r,o,s,y);return _(x,C)};var _=e.retrieveValueFromItem=function(y,C){if(y!=null){var x=s[C];if(x)return g(y,C,x.name)}};return e.getDimensionInfo=rt(Lse,null,s,l),e.cloneAllDimensionInfo=rt(Ose,null,s),e}function Fse(i){var t=i.sourceFormat;if(!bC(t)){var e="";Xi(e)}return i.data}function Rse(i){var t=i.sourceFormat,e=i.data;if(!bC(t)){var r="";Xi(r)}if(t===Pi){for(var n=[],o=0,a=e.length;o<a;o++)n.push(e[o].slice());return n}else if(t===Pr){for(var n=[],o=0,a=e.length;o<a;o++)n.push(se({},e[o]));return n}}function Lse(i,t,e){if(e!=null){if(st(e)||!isNaN(e)&&!Li(t,e))return i[e];if(Li(t,e))return t[e]}}function Ose(i){return He(i)}var t5=Me();function i5(i){i=He(i);var t=i.type,e="";t||Xi(e);var r=t.split(":");r.length!==2&&Xi(e);var n=!1;r[0]==="echarts"&&(t=r[1],n=!0),i.__isBuiltIn=n,t5.set(t,i)}function r5(i,t,e){var r=ai(i),n=r.length,o="";n||Xi(o);for(var a=0,s=n;a<s;a++){var l=r[a];t=Ase(l,t,e,n===1?null:a),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function Ase(i,t,e,r){var n="";t.length||Xi(n),ve(i)||Xi(n);
1823var o=i.type,a=t5.get(o);a||Xi(n);var s=ue(t,function(d){return Pse(d,a)}),l=ai(a.transform({upstream:s[0],upstreamList:s,config:He(i.config)}));if(0&&i.print)var c;return ue(l,function(d,u){var h="";ve(d)||Xi(h),d.data||Xi(h);var g=uC(d.data);bC(g)||Xi(h);var _,y=t[0];if(y&&u===0&&!d.dimensions){var C=y.startIndex;C&&(d.data=y.data.slice(0,C).concat(d.data)),_={seriesLayoutBy:un,sourceHeader:C,dimensions:y.metaRawOption.dimensions}}else _={seriesLayoutBy:un,sourceHeader:0,dimensions:d.dimensions};return ou(d.data,_,null)})}function bC(i){return i===Pi||i===Pr}var dg="undefined",Bse=typeof Uint32Array===dg?Array:Uint32Array,Nse=typeof Uint16Array===dg?Array:Uint16Array,xC=typeof Int32Array===dg?Array:Int32Array,n5=typeof Float64Array===dg?Array:Float64Array,a5={float:n5,int:xC,ordinal:Array,number:Array,time:n5},yC;function hd(i){return i>65535?Bse:Nse}function gd(){return[1/0,-1/0]}function Vse(i){var t=i.constructor;return t===Array?i.slice():new t(i)}function o5(i,t,e,r,n){var o=a5[e||"float"];if(n){var a=i[t],s=a&&a.length;if(s!==r){for(var l=new o(r),c=0;c<s;c++)l[c]=a[c];i[t]=l}}else i[t]=new o(r)}var zse=(function(){function i(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Me()}return i.prototype.initData=function(t,e,r){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),o=this.defaultDimValueGetter=yC[n.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[];var a=sg(n);this._dimensions=ue(e,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},i.prototype.getProvider=function(){return this._provider},i.prototype.getSource=function(){return this._provider.getSource()},i.prototype.ensureCalculationDimension=function(t,e){var r=this._calcDimNameToIdx,n=this._dimensions,o=r.get(t);if(o!=null){if(n[o].type===e)return o}else o=n.length;return n[o]={type:e},r.set(t,o),this._chunks[o]=new a5[e||"float"](this._rawCount),this._rawExtent[o]=gd(),o},i.prototype.collectOrdinalMeta=function(t,e){var r=this._chunks[t],n=this._dimensions[t],o=this._rawExtent,a=n.ordinalOffset||0,s=r.length;a===0&&(o[t]=gd());for(var l=o[t],c=a;c<s;c++){var d=r[c]=e.parseAndCollect(r[c]);isNaN(d)||(l[0]=Math.min(d,l[0]),l[1]=Math.max(d,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},i.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],r=e.ordinalMeta;return r},i.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},i.prototype.appendData=function(t){var e=this._provider,r=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=r),r<n&&this._initDataFromProvider(r,n,!0),[r,n]},i.prototype.appendValues=function(t,e){for(var r=this._chunks,n=this._dimensions,o=n.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),c=0;c<o;c++){var d=n[c];o5(r,c,d.type,l,!0)}for(var u=[],h=s;h<l;h++)for(var g=h-s,_=0;_<o;_++){var d=n[_],y=yC.arrayRows.call(this,t[g]||u,d.property,g,_);r[_][h]=y;var C=a[_];y<C[0]&&(C[0]=y),y>C[1]&&(C[1]=y)}return this._rawCount=this._count=l,{start:s,end:l}},i.prototype._initDataFromProvider=function(t,e,r){for(var n=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=ue(a,function(w){return w.property}),d=0;d<s;d++){var u=a[d];l[d]||(l[d]=gd()),o5(o,d,u.type,e,r)}if(n.fillStorage)n.fillStorage(t,e,o,l);else for(var h=[],g=t;g<e;g++){h=n.getItem(g,h);for(var _=0;_<s;_++){var y=o[_],C=this._dimValueGetter(h,c[_],g,_);y[g]=C;var x=l[_];C<x[0]&&(x[0]=C),C>x[1]&&(x[1]=C)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},i.prototype.count=function(){return this._count},i.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var r=this._chunks[t];return r?r[this.getRawIndex(e)]:NaN},i.prototype.getValues=function(t,e){var r=[],n=[];if(e==null){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)n.push(o)}else n=t;for(var o=0,a=n.length;o<a;o++)r.push(this.get(n[o],e));return r},i.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var r=this._chunks[t];return r?r[e]:NaN},i.prototype.getSum=function(t){var e=this._chunks[t],r=0;if(e)for(var n=0,o=this.count();n<o;n++){var a=this.get(t,n);
1823isNaN(a)||(r+=a)}return r},i.prototype.getMedian=function(t){var e=[];this.each([t],function(o){isNaN(o)||e.push(o)});var r=e.sort(function(o,a){return o-a}),n=this.count();return n===0?0:n%2===1?r[(n-1)/2]:(r[n/2]+r[n/2-1])/2},i.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,r=e[t];if(r!=null&&r<this._count&&r===t)return t;for(var n=0,o=this._count-1;n<=o;){var a=(n+o)/2|0;if(e[a]<t)n=a+1;else if(e[a]>t)o=a-1;else return a}return-1},i.prototype.getIndices=function(){var t,e=this._indices;if(e){var r=e.constructor,n=this._count;if(r===Array){t=new r(n);for(var o=0;o<n;o++)t[o]=e[o]}else t=new r(e.buffer,0,n)}else{var r=hd(this._rawCount);t=new r(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},i.prototype.filter=function(t,e){if(!this._count)return this;for(var r=this.clone(),n=r.count(),o=hd(r._rawCount),a=new o(n),s=[],l=t.length,c=0,d=t[0],u=r._chunks,h=0;h<n;h++){var g=void 0,_=r.getRawIndex(h);if(l===0)g=e(h);else if(l===1){var y=u[d][_];g=e(y,h)}else{for(var C=0;C<l;C++)s[C]=u[t[C]][_];s[C]=h,g=e.apply(null,s)}g&&(a[c++]=_)}return c<n&&(r._indices=a),r._count=c,r._extent=[],r._updateGetRawIdx(),r},i.prototype.selectRange=function(t){var e=this.clone(),r=e._count;if(!r)return this;var n=dt(t),o=n.length;if(!o)return this;var a=e.count(),s=hd(e._rawCount),l=new s(a),c=0,d=n[0],u=t[d][0],h=t[d][1],g=e._chunks,_=!1;if(!e._indices){var y=0;if(o===1){for(var C=g[n[0]],x=0;x<r;x++){var w=C[x];(w>=u&&w<=h||isNaN(w))&&(l[c++]=y),y++}_=!0}else if(o===2){for(var C=g[n[0]],E=g[n[1]],k=t[n[1]][0],D=t[n[1]][1],x=0;x<r;x++){var w=C[x],I=E[x];(w>=u&&w<=h||isNaN(w))&&(I>=k&&I<=D||isNaN(I))&&(l[c++]=y),y++}_=!0}}if(!_)if(o===1)for(var x=0;x<a;x++){var F=e.getRawIndex(x),w=g[n[0]][F];(w>=u&&w<=h||isNaN(w))&&(l[c++]=F)}else for(var x=0;x<a;x++){for(var A=!0,F=e.getRawIndex(x),U=0;U<o;U++){var q=n[U],w=g[q][F];(w<t[q][0]||w>t[q][1])&&(A=!1)}A&&(l[c++]=e.getRawIndex(x))}return c<a&&(e._indices=l),e._count=c,e._extent=[],e._updateGetRawIdx(),e},i.prototype.map=function(t,e){var r=this.clone(t);return this._updateDims(r,t,e),r},i.prototype.modify=function(t,e){this._updateDims(this,t,e)},i.prototype._updateDims=function(t,e,r){for(var n=t._chunks,o=[],a=e.length,s=t.count(),l=[],c=t._rawExtent,d=0;d<e.length;d++)c[e[d]]=gd();for(var u=0;u<s;u++){for(var h=t.getRawIndex(u),g=0;g<a;g++)l[g]=n[e[g]][h];l[a]=u;var _=r&&r.apply(null,l);if(_!=null){typeof _!="object"&&(o[0]=_,_=o);for(var d=0;d<_.length;d++){var y=e[d],C=_[d],x=c[y],w=n[y];w&&(w[h]=C),C<x[0]&&(x[0]=C),C>x[1]&&(x[1]=C)}}}},i.prototype.lttbDownSample=function(t,e){var r=this.clone([t],!0),n=r._chunks,o=n[t],a=this.count(),s=0,l=Math.floor(1/e),c=this.getRawIndex(0),d,u,h,g=new(hd(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));g[s++]=c;for(var _=1;_<a-1;_+=l){for(var y=Math.min(_+l,a-1),C=Math.min(_+l*2,a),x=(C+y)/2,w=0,E=y;E<C;E++){var k=this.getRawIndex(E),D=o[k];isNaN(D)||(w+=D)}w/=C-y;var I=_,F=Math.min(_+l,a),A=_-1,U=o[c];d=-1,h=I;for(var q=-1,z=0,E=I;E<F;E++){var k=this.getRawIndex(E),D=o[k];if(isNaN(D)){z++,q<0&&(q=k);continue}u=Math.abs((A-x)*(D-U)-(A-E)*(w-U)),u>d&&(d=u,h=k)}z>0&&z<F-I&&(g[s++]=Math.min(q,h),h=Math.max(q,h)),g[s++]=h,c=h}return g[s++]=this.getRawIndex(a-1),r._count=s,r._indices=g,r.getRawIndex=this._getRawIdx,r},i.prototype.minmaxDownSample=function(t,e){for(var r=this.clone([t],!0),n=r._chunks,o=Math.floor(1/e),a=n[t],s=this.count(),l=new(hd(this._rawCount))(Math.ceil(s/o)*2),c=0,d=0;d<s;d+=o){var u=d,h=a[this.getRawIndex(u)],g=d,_=a[this.getRawIndex(g)],y=o;d+o>s&&(y=s-d);for(var C=0;C<y;C++){var x=this.getRawIndex(d+C),w=a[x];w<h&&(h=w,u=d+C),w>_&&(_=w,g=d+C)}var E=this.getRawIndex(u),k=this.getRawIndex(g);u<g?(l[c++]=E,l[c++]=k):(l[c++]=k,l[c++]=E)}return r._count=c,r._indices=l,r._updateGetRawIdx(),r},i.prototype.downSample=function(t,e,r,n){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/e),c=a[t],d=this.count(),u=o._rawExtent[t]=gd(),h=new(hd(this._rawCount))(Math.ceil(d/l)),g=0,_=0;_<d;_+=l){l>d-_&&(l=d-_,s.length=l);for(var y=0;y<l;y++){var C=this.getRawIndex(_+y);s[y]=c[C]}var x=r(s),w=this.getRawIndex(Math.min(_+n(s,x)||0,d-1));c[w]=x,x<u[0]&&(u[0]=x),x>u[1]&&(u[1]=x),h[g++]=w}return o._count=g,o._indices=h,o._updateGetRawIdx(),o},i.prototype.each=function(t,e){if(this._count)for(var r=t.length,n=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(r){case 0:e(o);break;case 1:e(n[t[0]][s],o);break;case 2:e(n[t[0]][s],n[t[1]][s],o);break;default:for(var l=0,c=[];l<r;l++)c[l]=n[t[l]][s];c[l]=o,e.apply(null,c)}}},i.prototype.getDataExtent=function(t){var e=this._chunks[t],r=gd();if(!e)return r;var n=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=r;for(var s=a[0],l=a[1],c=0;c<n;c++){var d=this.getRawIndex(c),u=e[d];u<s&&(s=u),u>l&&(l=u)}return a=[s,l],this._extent[t]=a,a},i.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var r=[],n=this._chunks,o=0;o<n.length;o++)r.push(n[o][e]);return r},i.prototype.clone=function(t,e){var r=new i,n=this._chunks,o=t&&mr(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<n.length;a++)r._chunks[a]=o[a]?Vse(n[a]):n[a];else r._chunks=n;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},i.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=He(this._extent),t._rawExtent=He(this._rawExtent)},i.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var r=this._indices.length;
1823e=new t(r);for(var n=0;n<r;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},i.prototype._getRawIdxIdentity=function(t){return t},i.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},i.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},i.internalField=(function(){function t(e,r,n,o){return fd(e[o],this._dimensions[o])}yC={arrayRows:t,objectRows:function(e,r,n,o){return fd(e[r],this._dimensions[o])},keyedColumns:t,original:function(e,r,n,o){var a=e&&(e.value==null?e:e.value);return fd(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(e,r,n,o){return e[o]}}})(),i})(),au=zse;var l5=(function(){function i(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return i.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},i.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},i.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},i.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},i.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),r=!!e.length,n,o;if(pg(t)){var a=t,s=void 0,l=void 0,c=void 0;if(r){var d=e[0];d.prepareSource(),c=d.getSource(),s=c.data,l=c.sourceFormat,o=[d._getVersionSign()]}else s=a.get("data",!0),l=di(s)?pn:Bi,o=[];var u=this._getSourceMetaRawOption()||{},h=c&&c.metaRawOption||{},g=Fe(u.seriesLayoutBy,h.seriesLayoutBy)||null,_=Fe(u.sourceHeader,h.sourceHeader),y=Fe(u.dimensions,h.dimensions),C=g!==h.seriesLayoutBy||!!_!=!!h.sourceHeader||y;n=C?[ou(s,{seriesLayoutBy:g,sourceHeader:_,dimensions:y},l)]:[]}else{var x=t;if(r){var w=this._applyTransform(e);n=w.sourceList,o=w.upstreamSignList}else{var E=x.get("source",!0);n=[ou(E,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(n,o)},i.prototype._applyTransform=function(t){var e=this._sourceHost,r=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var o="";t.length!==1&&s5(o)}var a,s=[],l=[];return P(t,function(c){c.prepareSource();var d=c.getSource(n||0),u="";n!=null&&!d&&s5(u),s.push(d),l.push(c._getVersionSign())}),r?a=r5(r,s,{datasetIndex:e.componentIndex}):n!=null&&(a=[YP(s[0])]),{sourceList:a,upstreamSignList:l}},i.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var r=t[e];if(r._isDirty()||this._upstreamSignList[e]!==r._getVersionSign())return!0}},i.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(t)}return e},i.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},i.prototype._innerGetDataStore=function(t,e,r){var n=0,o=this._storeList,a=o[n];a||(a=o[n]={});var s=a[r];if(!s){var l=this._getUpstreamSourceManagers()[0];pg(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,r):(s=new au,s.initData(new cg(e,t.length),t)),a[r]=s}return s},i.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(pg(t)){var e=sC(t);return e?[e.getSourceManager()]:[]}else return ue(DP(t),function(r){return r.getSourceManager()})},i.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,r,n;if(pg(t))e=t.get("seriesLayoutBy",!0),r=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;e=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),n=o.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:r,dimensions:n}},i})();function pg(i){return i.mainType==="series"}function s5(i){throw new Error(i)}var Use="line-height:1";function c5(i){var t=i.lineHeight;return t==null?Use:"line-height:"+Oi(t+"")+"px"}
1823function d5(i,t){var e=i.color||Ae.color.tertiary,r=i.fontSize||12,n=i.fontWeight||"400",o=i.color||Ae.color.secondary,a=i.fontSize||14,s=i.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Oi(r+"")+"px;color:"+Oi(e)+";font-weight:"+Oi(n+""),valueStyle:"font-size:"+Oi(a+"")+"px;color:"+Oi(o)+";font-weight:"+Oi(s+"")}:{nameStyle:{fontSize:r,fill:e,fontWeight:n},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var Hse=[0,10,20,30],Wse=["",`
1824`,`
1825
1826`,`
1827
1828
1829`];function Ml(i,t){return t.type=i,t}function CC(i){return i.type==="section"}function p5(i){return CC(i)?Gse:qse}function u5(i){if(CC(i)){var t=0,e=i.blocks.length,r=e>1||e>0&&!i.noHeader;return P(i.blocks,function(n){var o=u5(n);o>=t&&(t=o+ +(r&&(!o||CC(n)&&!n.noHeader)))}),t}return 0}function Gse(i,t,e,r){var n=t.noHeader,o=jse(u5(t)),a=[],s=t.blocks||[];Ii(!s||ne(s)),s=s||[];var l=i.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Li(c,l)){var d=new e5(c[l],null);s.sort(function(y,C){return d.evaluate(y.sortParam,C.sortParam)})}else l==="seriesDesc"&&s.reverse()}P(s,function(y,C){var x=t.valueFormatter,w=p5(y)(x?se(se({},i),{valueFormatter:x}):i,y,C>0?o.html:0,r);w!=null&&a.push(w)});var u=i.renderMode==="richText"?a.join(o.richText):SC(r,a.join(""),n?e:o.html);if(n)return u;var h=j0(t.header,"ordinal",i.useUTC),g=d5(r,i.renderMode).nameStyle,_=c5(r);return i.renderMode==="richText"?m5(i,h,g)+o.richText+u:SC(r,'<div style="'+g+";"+_+';">'+Oi(h)+"</div>"+u,e)}function qse(i,t,e,r){var n=i.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=i.useUTC,d=t.valueFormatter||i.valueFormatter||function(k){return k=ne(k)?k:[k],ue(k,function(D,I){return j0(D,ne(g)?g[I]:g,c)})};if(!(o&&a)){var u=s?"":i.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Ae.color.secondary,n),h=o?"":j0(l,"ordinal",c),g=t.valueType,_=a?[]:d(t.value,t.dataIndex),y=!s||!o,C=!s&&o,x=d5(r,n),w=x.nameStyle,E=x.valueStyle;return n==="richText"?(s?"":u)+(o?"":m5(i,h,w))+(a?"":$se(i,_,y,C,E)):SC(r,(s?"":u)+(o?"":Yse(h,!s,w))+(a?"":Kse(_,y,C,E)),e)}}function wC(i,t,e,r,n,o){if(i){var a=p5(i),s={useUTC:n,renderMode:e,orderMode:r,markupStyleCreator:t,valueFormatter:i.valueFormatter};return a(s,i,0,o)}}function jse(i){return{html:Hse[i],richText:Wse[i]}}function SC(i,t,e){var r='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",o=c5(i);return'<div style="'+n+";"+o+';">'+t+r+"</div>"}function Yse(i,t,e){var r=t?"margin-left:2px":"";return'<span style="'+e+";"+r+'">'+Oi(i)+"</span>"}function Kse(i,t,e,r){var n=e?"10px":"20px",o=t?"float:right;margin-left:"+n:"";return i=ne(i)?i:[i],'<span style="'+o+";"+r+'">'+ue(i,function(a){return Oi(a)}).join("&nbsp;&nbsp;")+"</span>"}function m5(i,t,e){return i.markupStyleCreator.wrapRichTextStyle(t,e)}function $se(i,t,e,r,n){var o=[n],a=r?10:20;return e&&o.push({padding:[0,0,0,a],align:"right"}),i.markupStyleCreator.wrapRichTextStyle(ne(t)?t.join("  "):t,o)}function f5(i,t){var e=i.getData().getItemVisual(t,"style"),r=e[i.visualDrawType];return Jn(r)}function ug(i,t){var e=i.get("padding");return e??(t==="richText"?[8,10]:10)}var mg=(function(){function i(){this.richTextStyles={},this._nextStyleNameId=Zh()}return i.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},i.prototype.makeTooltipMarker=function(t,e,r){var n=r==="richText"?this._generateStyleName():null,o=Y0({color:e,type:t,renderMode:r,markerId:n});return pe(o)?o:(this.richTextStyles[n]=o.style,o.content)},i.prototype.wrapRichTextStyle=function(t,e){var r={};ne(e)?P(e,function(o){return se(r,o)}):se(r,e);var n=this._generateStyleName();return this.richTextStyles[n]=r,"{"+n+"|"+t+"}"},i})();function h5(i){var t=i.series,e=i.dataIndex,r=i.multipleSeries,n=t.getData(),o=n.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(e),l=ne(s),c=f5(t,e),d,u,h,g;if(a>1||l&&!a){var _=Zse(s,t,e,o,c);d=_.inlineValues,u=_.inlineValueTypes,h=_.blocks,g=_.inlineValues[0]}else if(a){var y=n.getDimensionInfo(o[0]);g=d=na(n,e,o[0]),u=y.type}else g=d=l?s[0]:s;var C=Uc(t),x=C&&t.name||"",w=n.getName(e),E=r?x:w;
1829return Ml("section",{header:x,noHeader:r||!C,sortParam:g,blocks:[Ml("nameValue",{markerType:"item",markerColor:c,name:E,noName:!Qi(E),value:d,valueType:u,dataIndex:e})].concat(h||[])})}function Zse(i,t,e,r,n){var o=t.getData(),a=mr(i,function(u,h,g){var _=o.getDimensionInfo(g);return u=u||_&&_.tooltip!==!1&&_.displayName!=null},!1),s=[],l=[],c=[];r.length?P(r,function(u){d(na(o,e,u),u)}):P(i,d);function d(u,h){var g=o.getDimensionInfo(h);!g||g.otherDims.tooltip===!1||(a?c.push(Ml("nameValue",{markerType:"subItem",markerColor:n,name:g.displayName,value:u,valueType:g.type})):(s.push(u),l.push(g.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var Ja=ht();function fg(i,t){return i.getName(t)||i.getId(t)}var Qse="__universalTransitionEnabled",hg=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,r,n){this.seriesIndex=this.componentIndex,this.dataTask=Xa({count:Jse,reset:ele}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var o=Ja(this).sourceManager=new l5(this);o.prepareSource();var a=this.getInitialData(e,n);v5(a,this),this.dataTask.context.data=a,Ja(this).dataBeforeProcessed=a,g5(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(e,r){var n=Za(this),o=n?Oo(e):{},a=this.subType;wt.hasClass(a)&&(a+="Series"),ct(e,r.getTheme().get(this.subType)),ct(e,this.getDefaultOption()),M1(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&cn(e,o,n)},t.prototype.mergeOption=function(e,r){e=ct(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Za(this);
1829n&&cn(this.option,e,n);var o=Ja(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(e,r);v5(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Ja(this).dataBeforeProcessed=a,g5(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!di(e))for(var r=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&M1(e[n],"label",r)},t.prototype.getInitialData=function(e,r){},t.prototype.appendData=function(e){var r=this.getRawData();r.appendData(e.data)},t.prototype.getData=function(e){var r=TC(this);if(r){var n=r.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Ja(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var r=TC(this);if(r){var n=r.context;n.outputData=e,r!==this.dataTask&&(n.data=e)}Ja(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Me(e)},t.prototype.getSourceManager=function(){return Ja(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ja(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,r,n,o){var a=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var c=l.dataToCoord(n);o==null&&(o=1/0);var d=[],u=1/0,h=-1,g=0;return a.each(r,function(_,y){var C=l.dataToCoord(_),x=c-C,w=Math.abs(x);w<=o&&((w<u||w===u&&x>=0&&h<0)&&(u=w,h=x,g=0),x===h&&(d[g++]=y))}),d.length=g,d},t.prototype.formatTooltip=function(e,r,n){return h5({series:this,dataIndex:e,multipleSeries:r})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Ue.node&&!(e&&e.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,r,n){var o=this.ecModel,a=eu.prototype.getColorFromPalette.call(this,e,r,n);return a||(a=o.getColorFromPalette(e,r,n)),a},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,r){this._innerSelect(this.getData(r),e)},t.prototype.unselect=function(e,r){var n=this.option.selectedMap;if(n){var o=this.option.selectedMode,a=this.getData(r);if(o==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],c=fg(a,l);n[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(e,r){for(var n=[],o=0;o<e.length;o++)n[0]=e[o],this.isSelected(e[o],r)?this.unselect(n,r):this.select(n,r)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,r=dt(e),n=[],o=0;o<r.length;o++){var a=e[r[o]];a>=0&&n.push(a)}return n},t.prototype.isSelected=function(e,r){var n=this.option.selectedMap;if(!n)return!1;var o=this.getData(r);return(n==="all"||n[fg(o,e)])&&!o.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Qse])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,r){var n,o,a=this.option,s=a.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){ve(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,d=0;d<l;d++){var u=r[d],h=fg(e,u);c[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(u)}}else if(s==="single"||s===!0){var g=r[l-1],h=fg(e,g);a.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(o={},o[h]=e.getRawIndex(g),o)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var r=[];e.hasItemOption&&e.each(function(n){var o=e.getRawDataItem(n);o&&o.selected&&r.push(n)}),r.length>0&&this._innerSelect(e,r)}},t.registerClass=function(e){return wt.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(wt);Zi(hg,XP);Zi(hg,eu);Jh(hg,wt);function g5(i){var t=i.name;Uc(i)||(i.name=Xse(i)||t)}function Xse(i){var t=i.getRawData(),e=t.mapDimensionsAll("seriesName"),r=[];return P(e,function(n){var o=t.getDimensionInfo(n);o.displayName&&r.push(o.displayName)}),r.join(" ")}function Jse(i){return i.model.getRawData().count()}function ele(i){var t=i.model;return t.setData(t.getRawData().cloneShallow()),tle}function tle(i,t){t.outputData&&i.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function v5(i,t){P(Iy(i.CHANGABLE_METHODS,i.DOWNSAMPLE_METHODS),function(e){i.wrapMethod(e,Bt(ile,t))})}function ile(i,t){var e=TC(i);return e&&e.setOutputEnd((t||this).count()),t}function TC(i){var t=(i.ecModel||{}).scheduler,e=t&&t.getPipeline(i.uid);if(e){var r=e.currentTask;if(r){var n=r.agentStubMap;n&&(r=n.get(i.uid))}return r}}var Rr=hg;var EC=(function(){function i(){this.group=new Mt,this.uid=$a("viewComponent")}return i.prototype.init=function(t,e){},i.prototype.render=function(t,e,r,n){},i.prototype.dispose=function(t,e){},i.prototype.updateView=function(t,e,r,n){},i.prototype.updateLayout=function(t,e,r,n){},i.prototype.updateVisual=function(t,e,r,n){},i.prototype.toggleBlurSeries=function(t,e,r){},i.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},i})();Hc(EC);Ua(EC);var Ni=EC;function Pl(){var i=ht();return function(t){var e=i(t),r=t.pipelineContext,n=!!e.large,o=!!e.progressiveRen
1829der,a=e.large=!!(r&&r.large),s=e.progressiveRender=!!(r&&r.progressiveRender);return(n!==a||o!==s)&&"reset"}}var y5=ht(),rle=Pl(),kC=(function(){function i(){this.group=new Mt,this.uid=$a("viewChart"),this.renderTask=Xa({plan:nle,reset:ole}),this.renderTask.context={view:this}}return i.prototype.init=function(t,e){},i.prototype.render=function(t,e,r,n){},i.prototype.highlight=function(t,e,r,n){var o=t.getData(n&&n.dataType);o&&b5(o,n,"emphasis")},i.prototype.downplay=function(t,e,r,n){var o=t.getData(n&&n.dataType);o&&b5(o,n,"normal")},i.prototype.remove=function(t,e){this.group.removeAll()},i.prototype.dispose=function(t,e){},i.prototype.updateView=function(t,e,r,n){this.render(t,e,r,n)},i.prototype.updateLayout=function(t,e,r,n){this.render(t,e,r,n)},i.prototype.updateVisual=function(t,e,r,n){this.render(t,e,r,n)},i.prototype.eachRendered=function(t){yl(this.group,t)},i.markUpdateMethod=function(t,e){y5(t).updateMethod=e},i.protoInitialize=(function(){var t=i.prototype;t.type="chart"})(),i})();function _5(i,t,e){i&&Wp(i)&&(t==="emphasis"?ll:cl)(i,e)}function b5(i,t,e){var r=Rn(i,t),n=t&&t.highlightKey!=null?hM(t.highlightKey):null;r!=null?P(ai(r),function(o){_5(i.getItemGraphicEl(o),e,n)}):i.eachItemGraphicEl(function(o){_5(o,e,n)})}Hc(kC,["dispose"]);Ua(kC);function nle(i){return rle(i.model)}function ole(i){var t=i.model,e=i.ecModel,r=i.api,n=i.payload,o=t.pipelineContext.progressiveRender,a=i.view,s=n&&y5(n).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,e,r,n),ale[l]}var ale={incrementalPrepareRender:{progress:function(i,t){t.view.incrementalRender(i,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(i,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},sr=kC;var gg="\0__throttleOriginMethod",x5="\0__throttleRate",C5="\0__throttleType";function Fl(i,t,e){var r,n=0,o=0,a=null,s,l,c,d;t=t||0;function u(){o=new Date().getTime(),a=null,i.apply(l,c||[])}var h=function(){for(var g=[],_=0;_<arguments.length;_++)g[_]=arguments[_];r=new Date().getTime(),l=this,c=g;var y=d||t,C=d||e;d=null,s=r-(C?n:o)-y,clearTimeout(a),C?a=setTimeout(u,y):s>=0?u():a=setTimeout(u,-s),n=r};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(g){d=g},h}function vg(i,t,e,r){var n=i[t];if(n){var o=n[gg]||n,a=n[C5],s=n[x5];if(s!==e||a!==r){if(e==null||!r)return i[t]=o;n=i[t]=Fl(o,e,r==="debounce"),n[gg]=o,n[C5]=r,n[x5]=e}return n}}function su(i,t){var e=i[t];e&&e[gg]&&(e.clear&&e.clear(),i[t]=e[gg])}var S5=ht(),w5={itemStyle:wo(zx,!0),lineStyle:wo(Vx,!0)},lle={lineStyle:"stroke",itemStyle:"fill"};function T5(i,t){var e=i.visualStyleMapper||w5[t];return e||(console.warn("Unknown style type '"+t+"'."),w5.itemStyle)}function E5(i,t){var e=i.visualDrawType||lle[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var k5={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,t){var e=i.getData(),r=i.visualStyleAccessPath||"itemStyle",n=i.getModel(r),o=T5(i,r),a=o(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=E5(i,r),c=a[l],d=we(c)?c:null,u=a.fill==="auto"||a.stroke==="auto";if(!a[l]||d||u){var h=i.getColorFromPalette(i.name,null,t.getSeriesCount());a[l]||(a[l]=h,e.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||we(a.fill)?h:a.fill,a.stroke=a.stroke==="auto"||we(a.stroke)?h:a.stroke}if(e.setVisual("style",a),e.setVisual("drawType",l),!t.isSeriesFiltered(i)&&d)return e.setVisual("colorFromPalette",!1),{dataEach:function(g,_){var y=i.getDataParams(_),C=se({},a);C[l]=d(y),g.setItemVisual(_,"style",C)}}}},lu=new Nt,I5={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,t){if(!(i.ignoreStyleOnData||t.isSeriesFiltered(i))){var e=i.getData(),r=i.visualStyleAccessPath||"itemStyle",n=T5(i,r),o=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){lu.option=l[r];var c=n(lu),d=a.ensureUniqueItemVisual(s,"style");se(d,c),lu.option.decal&&(a.setItemVisual(s,"decal",lu.option.decal),lu.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},D5={performRawSeries:!0,overallReset:function(i){var t=Me();i.eachSeries(function(e){var r=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+r,o=t.get(n);o||(o={},t.set(n,o)),S5(e).scope=o}}),i.eachSeries(function(e){if(!(e.isColorBySeries()||i.isSeriesFiltered(e))){var r=e.getRawData(),n={},o=e.getData(),a=S5(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=E5(e,s);o.each(function(c){var d=o.getRawIndex(c);n[d]=c}),r.each(function(c){var d=n[c],u=o.getItemVisual(d,"colorFromPalette");
1829if(u){var h=o.ensureUniqueItemVisual(d,"style"),g=r.getName(c)||c+"",_=r.count();h[l]=e.getColorFromPalette(g,a,_)}})}})}};var _g=Math.PI;function IC(i,t){t=t||{},qe(t,{text:"loading",textColor:Ae.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Ae.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Mt,r=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(r);var n=new Zt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new Ct({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(o);var a;return t.showSpinner&&(a=new ml({shape:{startAngle:-_g/2,endAngle:-_g/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:_g*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:_g*3/2}).delay(300).start("circularInOut"),e.add(a)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(i.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),d=i.getHeight()/2;t.showSpinner&&a.setShape({cx:c,cy:d}),o.setShape({x:c-l,y:d-l,width:l*2,height:l*2}),r.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},e.resize(),e}var cle=(function(){function i(t,e,r,n){this._stageTaskMap=Me(),this.ecInstance=t,this.api=e,r=this._dataProcessorHandlers=r.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=r.concat(n)}return i.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(r){var n=r.overallTask;n&&n.dirty()})},i.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),n=r.context,o=!e&&r.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>r.blockIndex,a=o?r.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},i.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},i.prototype.updateStreamModes=function(t,e){var r=this._pipelineMap.get(t.uid),n=t.getData(),o=n.count(),a=r.progressiveEnabled&&e.incrementalPrepareRender&&o>=r.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},i.prototype.restorePipelines=function(t){var e=this,r=e._pipelineMap=Me();t.eachSeries(function(n){var o=n.getProgressive(),a=n.uid;r.set(a,{id:a,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:o&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),e._pipe(n,n.dataTask)})},i.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),r=this.api;P(this._allHandlers,function(n){var o=t.get(n.uid)||t.set(n.uid,{}),a="";Ii(!(n.reset&&n.overallReset),a),n.reset&&this._createSeriesStageTask(n,o,e,r),n.overallReset&&this._createOverallStageTask(n,o,e,r)},this)},i.prototype.prepareView=function(t,e,r,n){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=r,a.api=n,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},i.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},i.prototype.performVisualTasks=function(t,e,r){this._performStageTasks(this._visualHandlers,t,e,r)},i.prototype._performStageTasks=function(t,e,r,n){n=n||{};var o=!1,a=this;P(t,function(l,c){if(!(n.visualType&&n.visualType!==l.visualType)){var d=a._stageTaskMap.get(l.uid),u=d.seriesTaskMap,h=d.overallTask;if(h){var g,_=h.agentStubMap;_.each(function(C){s(n,C)&&(C.dirty(),g=!0)}),g&&h.dirty(),a.updatePayload(h,r);var y=a.getPerformArgs(h,n.block);_.each(function(C){C.perform(y)}),h.perform(y)&&(o=!0)}else u&&u.each(function(C,x){s(n,C)&&C.dirty();var w=a.getPerformArgs(C,n.block);w.skip=!l.performRawSeries&&e.isSeriesFiltered(C.context.model),a.updatePayload(C,r),C.perform(w)&&(o=!0)})}});
1829function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||this.unfinished},i.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(r){e=r.dataTask.perform()||e}),this.unfinished=e||this.unfinished},i.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},i.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},i.prototype._createSeriesStageTask=function(t,e,r,n){var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=Me(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(d):l?r.eachRawSeriesByType(l,d):c&&c(r,n).each(d);function d(u){var h=u.uid,g=s.set(h,a&&a.get(h)||Xa({plan:fle,reset:hle,count:vle}));g.context={model:u,ecModel:r,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(u,g)}},i.prototype._createOverallStageTask=function(t,e,r,n){var o=this,a=e.overallTask=e.overallTask||Xa({reset:dle});a.context={ecModel:r,api:n,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Me(),c=t.seriesType,d=t.getTargetSeries,u=!0,h=!1,g="";Ii(!t.createOnAllSeries,g),c?r.eachRawSeriesByType(c,_):d?d(r,n).each(_):(u=!1,P(r.getSeries(),_));function _(y){var C=y.uid,x=l.set(C,s&&s.get(C)||(h=!0,Xa({reset:ple,onDirty:mle})));x.context={model:y,overallProgress:u},x.agent=a,x.__block=u,o._pipe(y,x)}h&&a.dirty()},i.prototype._pipe=function(t,e){var r=t.uid,n=this._pipelineMap.get(r);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},i.wrapStageHandler=function(t,e){return we(t)&&(t={overallReset:t,seriesType:_le(t)}),t.uid=$a("stageHandler"),e&&(t.visualType=e),t},i})();function dle(i){i.overallReset(i.ecModel,i.api,i.payload)}function ple(i){return i.overallProgress&&ule}function ule(){this.agent.dirty(),this.getDownstream().dirty()}function mle(){this.agent&&this.agent.dirty()}function fle(i){return i.plan?i.plan(i.model,i.ecModel,i.api,i.payload):null}function hle(i){i.useClearVisual&&i.data.clearAllVisual();var t=i.resetDefines=ai(i.reset(i.model,i.ecModel,i.api,i.payload));return t.length>1?ue(t,function(e,r){return M5(r)}):gle}var gle=M5(0);function M5(i){return function(t,e){var r=e.data,n=e.resetDefines[i];if(n&&n.dataEach)for(var o=t.start;o<t.end;o++)n.dataEach(r,o);else n&&n.progress&&n.progress(t,r)}}function vle(i){return i.data.count()}function _le(i){bg=null;try{i(cu,P5)}catch(t){}return bg}var cu={},P5={},bg;F5(cu,rg);F5(P5,ng);cu.eachSeriesByType=cu.eachRawSeriesByType=function(i){bg=i};cu.eachComponent=function(i){i.mainType==="series"&&i.subType&&(bg=i.subType)};function F5(i,t){for(var e in t.prototype)i[e]=Di}var DC=cle;var Ee=Ae.darkColor,ble=Ee.background,du=function(){return{axisLine
1829:{lineStyle:{color:Ee.axisLine}},splitLine:{lineStyle:{color:Ee.axisSplitLine}},splitArea:{areaStyle:{color:[Ee.backgroundTint,Ee.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Ee.axisMinorSplitLine}},axisLabel:{color:Ee.axisLabel},axisName:{}}},R5={label:{color:Ee.secondary},itemStyle:{borderColor:Ee.borderTint},dividerLineStyle:{color:Ee.border}},L5={darkMode:!0,color:Ee.theme,backgroundColor:ble,axisPointer:{lineStyle:{color:Ee.border},crossStyle:{color:Ee.borderShade},label:{color:Ee.tertiary}},legend:{textStyle:{color:Ee.secondary},pageTextStyle:{color:Ee.tertiary}},textStyle:{color:Ee.secondary},title:{textStyle:{color:Ee.primary},subtextStyle:{color:Ee.quaternary}},toolbox:{iconStyle:{borderColor:Ee.accent50}},tooltip:{backgroundColor:Ee.neutral20,defaultBorderColor:Ee.border,textStyle:{color:Ee.tertiary}},dataZoom:{borderColor:Ee.accent10,textStyle:{color:Ee.tertiary},brushStyle:{color:Ee.backgroundTint},handleStyle:{color:Ee.neutral00,borderColor:Ee.accent20},moveHandleStyle:{color:Ee.accent40},emphasis:{handleStyle:{borderColor:Ee.accent50}},dataBackground:{lineStyle:{color:Ee.accent30},areaStyle:{color:Ee.accent20}},selectedDataBackground:{lineStyle:{color:Ee.accent50},areaStyle:{color:Ee.accent30}}},visualMap:{textStyle:{color:Ee.secondary},handleStyle:{borderColor:Ee.neutral30}},timeline:{lineStyle:{color:Ee.accent10},label:{color:Ee.tertiary},controlStyle:{color:Ee.accent30,borderColor:Ee.accent30}},calendar:{itemStyle:{color:Ee.neutral00,borderColor:Ee.neutral20},dayLabel:{color:Ee.tertiary},monthLabel:{color:Ee.secondary},yearLabel:{color:Ee.secondary}},matrix:{x:R5,y:R5,backgroundColor:{borderColor:Ee.axisLine},body:{itemStyle:{borderColor:Ee.borderTint}}},timeAxis:du(),logAxis:du(),valueAxis:du(),categoryAxis:du(),line:{symbol:"circle"},graph:{color:Ee.theme},gauge:{title:{color:Ee.secondary},axisLine:{lineStyle:{color:[[1,Ee.neutral05]]}},axisLabel:{color:Ee.axisLabel},detail:{color:Ee.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Ee.background}},radar:(function(){var i=du();return i.axisName={color:Ee.axisLabel},i.axisLine.lineStyle.color=Ee.neutral20,i})(),treemap:{breadcrumb:{itemStyle:{color:Ee.neutral20,textStyle:{color:Ee.secondary}},emphasis:{itemStyle:{color:Ee.neutral30}}}},sunburst:{itemStyle:{borderColor:Ee.background}},map:{itemStyle:{borderColor:Ee.border,areaColor:Ee.neutral10},label:{color:Ee.tertiary},emphasis:{label:{color:Ee.primary},itemStyle:{areaColor:Ee.highlight}},select:{label:{color:Ee.primary},itemStyle:{areaColor:Ee.highlight}}},geo:{itemStyle:{borderColor:Ee.border,areaColor:Ee.neutral10},emphasis:{label:{color:Ee.primary},itemStyle:{areaColor:Ee.highlight}},select:{label:{color:Ee.primary},itemStyle:{color:Ee.highlight}}}};L5.categoryAxis.splitLine.show=!1;var O5=L5;var A5=(function(){function i(){}return i.prototype.normalizeQuery=function(t){var e={},r={},n={};if(pe(t)){var o=Hr(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};P(t,function(l,c){for(var d=!1,u=0;u<a.length;u++){var h=a[u],g=c.lastIndexOf(h);if(g>0&&g===c.length-h.length){var _=c.slice(0,g);_!=="data"&&(e.mainType=_,e[h.toLowerCase()]=l,d=!0)}}s.hasOwnProperty(c)&&(r[c]=l,d=!0),d||(n[c]=l)})}return{cptQuery:e,dataQuery:r,otherQuery:n}},i.prototype.filter=function(t,e){var r=this.eventInfo;if(!r)return!0;var n=r.targetEl,o=r.packedEvent,a=r.model,s=r.view;if(!a||!s)return!0;var l=e.cptQuery,c=e.dataQuery;return d(l,a,"mainType")&&d(l,a,"subType")&&d(l,a,"index","componentIndex")&&d(l,a,"name")&&d(l,a,"id")&&d(c,o,"name")&&d(c,o,"dataIndex")&&d(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,o));function d(u,h,g,_){return u[g]==null||h[_||g]===u[g]}},i.prototype.afterTrigger=function(){this.eventInfo=null},i})();var MC=["symbol","symbolSize","symbolRotate","symbolOffset"],B5=MC.concat(["symbolKeepAspect"]),N5={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,t){var e=i.getData();if(i.legendIcon&&e.setVisual("legendIcon",i.legendIcon),!i.hasSymbolVisual)return;for(var r={},n={},o=!1,a=0;a<MC.length;a++){var s=MC[a],l=i.get(s);we(l)?(o=!0,n[s]=l):r[s]=l}if(r.symbol=r.symbol||i.defaultSymbol,e.setVisual(se({legendIcon:i.legendIcon||r.symbol,symbolKeepAspect:i.get("symbolKeepAspect")},r)),t.isSeriesFiltered(i))return;var c=dt(n);function d(u,h){for(var g=i.getRawValue(h),_=i.getDataParams(h),y=0;y<c.length;y++){var C=c[y];u.setItemVisual(h,C,n[C](g,_))}}return{dataEach:o?d:null}}},V5={createOnAllSeries:!0,performRawSeries:!0,reset:function(i,t){if(!i.hasSymbolVisual||t.isSeriesFiltered(i))return;var e=i.getData();function r(n,o){for(var a=n.getItemModel(o),s=0;s<B5.length;s++){var l=B5[s],c=a.getShallow(l,!0);c!=null&&n.setItemVisual(o,l,c)}}return{dataEach:e.hasItemOption?r:null}}};function z5(i,t,e){switch(e){case"color":var r=i.getItemVisual(t,"style");return r[i.getVisual("drawType")];case"opacity":return i.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(t,e);default:}}function U5(i,t){switch(t){case"color":var e=i.getVisual("style");return e[i.getVisual("drawType")];case"opacity":return i.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getVisual(t);default:}}function vd(i,t,e,r,n){var o=i+t;e.isSilent(o)||r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,c=n.selected,d=0;d<c.length;d++)if(c[d].seriesIndex===s){var u=a.getData(),h=Rn(u,n.fromActionPayload);e.trigger(o,{type:o,seriesId:a.id,name:ne(h)?u.getName(h[0]):u.getName(h),selected:pe(l)?l:se({},l)})}})}function H5(i,t,e){i.on("selectchanged",function(r){var n=e.getModel();r.isFromClick?(vd("map","selectchanged",t,n,r),vd("pie","selectchanged",t,n,r)):r.fromAction==="select"?(vd("map","selected",t,n,r),vd("pie","selected",t,n,r)):r.fromAction==="unselect"&&(vd("map","unselected",t,n,r),vd("pie","unselected",t,n,r))})}function Rl(i,t,e){for(var r;i&&!(t(i)&&(r=i,e));)i=i.__hostTarget||i.parent;return r}var yle=Math.round(Math.random()*9),xle=typeof Object.defineProperty=="function",Cle=(function(){function i(){this._id="__ec_inner_"+yle++}return i.prototype.get=function(t){return this._guard(t)[this._id]},i.prototype.set=function(t,e){var r=this._guard(t);return xle?Object.defineProperty(r,this._id,{value:e,enumerable:!1,
1829configurable:!0}):r[this._id]=e,this},i.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},i.prototype.has=function(t){return!!this._guard(t)[this._id]},i.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},i})(),W5=Cle;var Sle=tt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,t){var e=t.cx,r=t.cy,n=t.width/2,o=t.height/2;i.moveTo(e,r-o),i.lineTo(e+n,r+o),i.lineTo(e-n,r+o),i.closePath()}}),wle=tt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(i,t){var e=t.cx,r=t.cy,n=t.width/2,o=t.height/2;i.moveTo(e,r-o),i.lineTo(e+n,r),i.lineTo(e,r+o),i.lineTo(e-n,r),i.closePath()}}),Tle=tt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,t){var e=t.x,r=t.y,n=t.width/5*3,o=Math.max(n,t.height),a=n/2,s=a*a/(o-a),l=r-o+a+s,c=Math.asin(s/a),d=Math.cos(c)*a,u=Math.sin(c),h=Math.cos(c),g=a*.6,_=a*.7;i.moveTo(e-d,l+s),i.arc(e,l,a,Math.PI-c,Math.PI*2+c),i.bezierCurveTo(e+d-u*g,l+s+h*g,e,r-_,e,r),i.bezierCurveTo(e,r-_,e-d+u*g,l+s+h*g,e-d,l+s),i.closePath()}}),Ele=tt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(i,t){var e=t.height,r=t.width,n=t.x,o=t.y,a=r/3*2;i.moveTo(n,o),i.lineTo(n+a,o+e),i.lineTo(n,o+e/4*3),i.lineTo(n-a,o+e),i.lineTo(n,o),i.closePath()}}),kle={line:an,rect:Ct,roundRect:Ct,square:Ct,circle:pl,diamond:wle,pin:Tle,arrow:Ele,triangle:Sle},Ile={line:function(i,t,e,r,n){n.x1=i,n.y1=t+r/2,n.x2=i+e,n.y2=t+r/2},rect:function(i,t,e,r,n){n.x=i,n.y=t,n.width=e,n.height=r},roundRect:function(i,t,e,r,n){n.x=i,n.y=t,n.width=e,n.height=r,n.r=Math.min(e,r)/4},square:function(i,t,e,r,n){var o=Math.min(e,r);n.x=i,n.y=t,n.width=o,n.height=o},circle:function(i,t,e,r,n){n.cx=i+e/2,n.cy=t+r/2,n.r=Math.min(e,r)/2},diamond:function(i,t,e,r,n){n.cx=i+e/2,n.cy=t+r/2,n.width=e,n.height=r},pin:function(i,t,e,r,n){n.x=i+e/2,n.y=t+r/2,n.width=e,n.height=r},arrow:function(i,t,e,r,n){n.x=i+e/2,n.y=t+r/2,n.width=e,n.height=r},triangle:function(i,t,e,r,n){n.cx=i+e/2,n.cy=t+r/2,n.width=e,n.height=r}},PC={};P(kle,function(i,t){PC[t]=new i});var Dle=tt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(i,t,e){var r=$s(i,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(r.y=e.y+e.height*.4),r},buildPath:function(i,t,e){var r=t.symbolType;if(r!=="none"){var n=PC[r];n||(r="rect",n=PC[r]),Ile[r](t.x,t.y,t.width,t.height,n.shape),n.buildPath(i,n.shape,e)}}});function Mle(i,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=i,e.fill=t||Ae.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=i:e.fill=i,this.markRedraw()}}function mn(i,t,e,r,n,o,a){var s=i.indexOf("empty")===0;s&&(i=i.substr(5,1).toLowerCase()+i.substr(6));var l;return i.indexOf("image://")===0?l=Xp(i.slice(8),new Be(t,e,r,n),a?"center":"cover"):i.indexOf("path://")===0?l=Xc(i.slice(7),{},new Be(t,e,r,n),a?"center":"cover"):l=new Dle({shape:{symbolType:i,x:t,y:e,width:r,height:n}}),l.__isEmptyBrush=s,l.setColor=Mle,o&&l.setColor(o),l}function G5(i){return ne(i)||(i=[+i,+i]),[i[0]||0,i[1]||0]}function yg(i,t){if(i!=null)return ne(i)||(i=[i,i]),[yi(i[0],t[0])||0,yi(Fe(i[1],i[0]),t[1])||0]}function Ll(i){return isFinite(i)}function Ple(i,t,e){var r=t.x==null?0:t.x,n=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(r=r*e.width+e.x,n=n*e.width+e.x,o=o*e.height+e.y,a=a*e.height+e.y),r=Ll(r)?r:0,n=Ll(n)?n:1,o=Ll(o)?o:0,a=Ll(a)?a:0;var s=i.createLinearGradient(r,o,n,a);return s}function Fle(i,t,e){var r=e.width,n=e.height,o=Math.min(r,n),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*r+e.x,s=s*n+e.y,l=l*o),a=Ll(a)?a:.5,s=Ll(s)?s:.5,l=l>=0&&Ll(l)?l:.5;var c=i.createRadialGradient(a,s,0,a,s,l);return c}function pu(i,t,e){for(var r=t.type==="radial"?Fle(i,t,e):Ple(i,t,e),n=t.colorStops,o=0;o<n.length;o++)r.addColorStop(n[o].offset,n[o].color);return r}function q5(i,t){if(i===t||!i&&!t)return!1;if(!i||!t||i.length!==t.length)return!0;for(var e=0;e<i.length;e++)if(i[e]!==t[e])return!0;return!1}function xg(i){return parseInt(i,10)}function uu(i,t,e){var r=["width","height"][t],n=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(e[r]!=null&&e[r]!=="auto")return parseFloat(e[r]);var s=document.defaultView.getComputedStyle(i);
1829return(i[n]||xg(s[r])||xg(i.style[r]))-(xg(s[o])||0)-(xg(s[a])||0)|0}function Rle(i,t){return!i||i==="solid"||!(t>0)?null:i==="dashed"?[4*t,2*t]:i==="dotted"?[t]:st(i)?[i]:ne(i)?i:null}function FC(i){var t=i.style,e=t.lineDash&&t.lineWidth>0&&Rle(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(e){var n=t.strokeNoScale&&i.getLineScale?i.getLineScale():1;n&&n!==1&&(e=ue(e,function(o){return o/n}),r/=n)}return[e,r]}var Lle=new on(!0);function Cg(i){var t=i.stroke;return!(t==null||t==="none"||!(i.lineWidth>0))}function j5(i){return typeof i=="string"&&i!=="none"}function Sg(i){var t=i.fill;return t!=null&&t!=="none"}function Y5(i,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=i.globalAlpha;i.globalAlpha=t.fillOpacity*t.opacity,i.fill(),i.globalAlpha=e}else i.fill()}function K5(i,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=i.globalAlpha;i.globalAlpha=t.strokeOpacity*t.opacity,i.stroke(),i.globalAlpha=e}else i.stroke()}function wg(i,t,e){var r=A1(t.image,t.__image,e);if(Wc(r)){var n=i.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*dh),o.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(o)}return n}}function Ole(i,t,e,r){var n,o=Cg(e),a=Sg(e),s=e.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var d=t.path||Lle,u=t.__dirty;if(!r){var h=e.fill,g=e.stroke,_=a&&!!h.colorStops,y=o&&!!g.colorStops,C=a&&!!h.image,x=o&&!!g.image,w=void 0,E=void 0,k=void 0,D=void 0,I=void 0;(_||y)&&(I=t.getBoundingRect()),_&&(w=u?pu(i,h,I):t.__canvasFillGradient,t.__canvasFillGradient=w),y&&(E=u?pu(i,g,I):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),C&&(k=u||!t.__canvasFillPattern?wg(i,h,t):t.__canvasFillPattern,t.__canvasFillPattern=k),x&&(D=u||!t.__canvasStrokePattern?wg(i,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=D),_?i.fillStyle=w:C&&(k?i.fillStyle=k:a=!1),y?i.strokeStyle=E:x&&(D?i.strokeStyle=D:o=!1)}var F=t.getGlobalScale();d.setScale(F[0],F[1],t.segmentIgnoreThreshold);var A,U;i.setLineDash&&e.lineDash&&(n=FC(t),A=n[0],U=n[1]);var q=!0;(c||u&La)&&(d.setDPR(i.dpr),l?d.setContext(null):(d.setContext(i),q=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),q&&d.rebuildPath(i,l?s:1),A&&(i.setLineDash(A),i.lineDashOffset=U),r||(e.strokeFirst?(o&&K5(i,e),a&&Y5(i,e)):(a&&Y5(i,e),o&&K5(i,e))),A&&i.setLineDash([])}function Ale(i,t,e){var r=t.__image=A1(e.image,t.__image,t,t.onload);if(!(!r||!Wc(r))){var n=e.x||0,o=e.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=r.width,s=r.height),e.sWidth&&e.sHeight){var c=e.sx||0,d=e.sy||0;i.drawImage(r,c,d,e.sWidth,e.sHeight,n,o,a,s)}else if(e.sx&&e.sy){var c=e.sx,d=e.sy,u=a-c,h=s-d;i.drawImage(r,c,d,u,h,n,o,a,s)}else i.drawImage(r,n,o,a,s)}}function Ble(i,t,e){var r,n=e.text;if(n!=null&&(n+=""),n){i.font=e.font||Tn,i.textAlign=e.textAlign,i.textBaseline=e.textBaseline;var o=void 0,a=void 0;i.setLineDash&&e.lineDash&&(r=FC(t),o=r[0],a=r[1]),o&&(i.setLineDash(o),i.lineDashOffset=a),e.strokeFirst?(Cg(e)&&i.strokeText(n,e.x,e.y),Sg(e)&&i.fillText(n,e.x,e.y)):(Sg(e)&&i.fillText(n,e.x,e.y),Cg(e)&&i.strokeText(n,e.x,e.y)),o&&i.setLineDash([])}}var $5=["shadowBlur","shadowOffsetX","shadowOffsetY"],Z5=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function iF(i,t,e,r,n){var o=!1;if(!r&&(e=e||{},t===e))return!1;if(r||t.opacity!==e.opacity){jr(i,n),o=!0;var a=Math.max(Math.min(t.opacity,1),0);i.globalAlpha=isNaN(a)?To.opacity:a}(r||t.blend!==e.blend)&&(o||(jr(i,n),o=!0),i.globalCompositeOperation=t.blend||To.blend);for(var s=0;s<$5.length;s++){var l=$5[s];(r||t[l]!==e[l])&&(o||(jr(i,n),o=!0),i[l]=i.dpr*(t[l]||0))}return(r||t.shadowColor!==e.shadowColor)&&(o||(jr(i,n),o=!0),i.shadowColor=t.shadowColor||To.shadowColor),o}function Q5(i,t,e,r,n){var o=mu(t,n.inHover),a=r?null:e&&mu(e,n.inHover)||{};if(o===a)return!1;var s=iF(i,o,a,r,n);if((r||o.fill!==a.fill)&&(s||(jr(i,n),s=!0),j5(o.fill)&&(i.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(jr(i,n),s=!0),j5(o.stroke)&&(i.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(jr(i,n),s=!0),i.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);i.lineWidth!==c&&(s||(jr(i,n),s=!0),i.lineWidth=c)}for(var d=0;d<Z5.length;d++){var u=Z5[d],h=u[0];(r||o[h]!==a[h])&&(s||(jr(i,n),s=!0),i[h]=o[h]||u[1])}return s}function Nle(i,t,e,r,n){return iF(i,mu(t,n.inHover),e&&mu(e,n.inHover),r,n)}function rF(i,t){var e=t.transform,r=i.dpr||1;e?i.setTransform(r*e[0],r*e[1],r*e[2],r*e[3],r*e[4],r*e[5]):i.setTransform(r,0,0,r,0,0)}function Vle(i,t,e){for(var r=!1,n=0;n<i.length;n++){var o=i[n];r=r||o.isZeroArea(),rF(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}e.allClipped=r}function zle(i,t){return i&&t?i[0]!==t[0]||i[1]!==t[1]||i[2]!==t[2]||i[3]!==t[3]||i[4]!==t[4]||i[5]!==t[5]:!(!i&&!t)}var X5=1,J5=2,eF=3,tF=4;function Ule(i){var t=Sg(i),e=Cg(i);return!(i.lineDash||!(+t^+e)||t&&typeof i.fill!="string"||e&&typeof i.stroke!="string"||i.strokePercent<1||i.strokeOpacity<1||i.fillOpacity<1)}function jr(i,t){t.batchFill&&i.fill(),t.batchStroke&&i.stroke(),t.batchFill="",t.batchStroke=""}function mu(i,t){return t&&i.__hoverStyle||i.style}function _d(i,t){es(i,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function es(i,t,e,r){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~Mi,t.__isRendered=!1;return}var o=t.__clipPaths,a=e.prevElClipPaths,s=!1,l=!1;
1829if((!a||q5(o,a))&&(a&&a.length&&(jr(i,e),i.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),o&&o.length&&(jr(i,e),i.save(),Vle(o,i,e),s=!0),e.prevElClipPaths=o),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=e.prevEl;c||(l=s=!0);var d=t instanceof tt&&t.autoBatch&&Ule(t.style);s||zle(n,c.transform)?(jr(i,e),rF(i,t)):d||jr(i,e);var u=mu(t,e.inHover);t instanceof tt?(e.lastDrawType!==X5&&(l=!0,e.lastDrawType=X5),Q5(i,t,c,l,e),(!d||!e.batchFill&&!e.batchStroke)&&i.beginPath(),Ole(i,t,u,d),d&&(e.batchFill=u.fill||"",e.batchStroke=u.stroke||"")):t instanceof Ap?(e.lastDrawType!==eF&&(l=!0,e.lastDrawType=eF),Q5(i,t,c,l,e),Ble(i,t,u)):t instanceof Wr?(e.lastDrawType!==J5&&(l=!0,e.lastDrawType=J5),Nle(i,t,c,l,e),Ale(i,t,u)):t.getTemporalDisplayables&&(e.lastDrawType!==tF&&(l=!0,e.lastDrawType=tF),Hle(i,t,e)),d&&r&&jr(i,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Hle(i,t,e){var r=t.getDisplayables(),n=t.getTemporalDisplayables();i.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},a,s;for(a=t.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),es(i,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var c=0,d=n.length;c<d;c++){var l=n[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),es(i,l,o,c===d-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,i.restore()}var RC=new W5,nF=new Co(100),oF=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fu(i,t){if(i==="none")return null;var e=t.getDevicePixelRatio(),r=t.getZr(),n=r.painter.type==="svg";i.dirty&&RC.delete(i);var o=RC.get(i);if(o)return o;var a=qe(i,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=n?1:1/e,RC.set(i,s),i.dirty=!1,s;function l(c){for(var d=[e],u=!0,h=0;h<oF.length;++h){var g=a[oF[h]];if(g!=null&&!ne(g)&&!pe(g)&&!st(g)&&typeof g!="boolean"){u=!1;break}d.push(g)}var _;if(u){_=d.join(",")+(n?"-svg":"");var y=nF.get(_);y&&(n?c.svgElement=y:c.image=y)}var C=sF(a.dashArrayX),x=Wle(a.dashArrayY),w=aF(a.symbol),E=Gle(C),k=lF(x),D=!n&&$i.createCanvas(),I=n&&{tag:"g",attrs:{},key:"dcl",children:[]},F=U(),A;D&&(D.width=F.width*e,D.height=F.height*e,A=D.getContext("2d")),q(),u&&nF.put(_,D||I),c.image=D,c.svgElement=I,c.svgWidth=F.width,c.svgHeight=F.height;function U(){for(var z=1,Z=0,j=E.length;Z<j;++Z)z=I1(z,E[Z]);for(var X=1,Z=0,j=w.length;Z<j;++Z)X=I1(X,w[Z].length);z*=X;var le=k*E.length*w.length;if(0)var me;return{width:Math.max(1,Math.min(z,a.maxTileWidth)),height:Math.max(1,Math.min(le,a.maxTileHeight))}}function q(){A&&(A.clearRect(0,0,D.width,D.height),a.backgroundColor&&(A.fillStyle=a.backgroundColor,A.fillRect(0,0,D.width,D.height)));for(var z=0,Z=0;Z<x.length;++Z)z+=x[Z];if(z<=0)return;for(var j=-k,X=0,le=0,me=0;j<F.height;){if(X%2===0){for(var ze=le/2%w.length,fe=0,Ie=0,Le=0;fe<F.width*2;){for(var Oe=0,Z=0;Z<C[me].length;++Z)Oe+=C[me][Z];if(Oe<=0)break;if(Ie%2===0){var Re=(1-a.symbolSize)*.5,nt=fe+C[me][Ie]*Re,Pt=j+x[X]*Re,ii=C[me][Ie]*a.symbolSize,Or=x[X]*a.symbolSize,ro=Le/2%w[ze].length;Bo(nt,Pt,ii,Or,w[ze][ro])}fe+=C[me][Ie],++Le,++Ie,Ie===C[me].length&&(Ie=0)}++me,me===C.length&&(me=0)}j+=x[X],++le,++X,X===x.length&&(X=0)}function Bo(Kr,tr,ut,Tt,ms){var yr=n?1:e,G2=mn(ms,Kr*yr,tr*yr,ut*yr,Tt*yr,a.color,a.symbolKeepAspect);if(n){var q2=r.painter.renderOneToVNode(G2);q2&&I.children.push(q2)}else _d(A,G2)}}}}function aF(i){if(!i||i.length===0)return[["rect"]];if(pe(i))return[[i]];for(var t=!0,e=0;e<i.length;++e)if(!pe(i[e])){t=!1;break}if(t)return aF([i]);for(var r=[],e=0;e<i.length;++e)pe(i[e])?r.push([i[e]]):r.push(i[e]);return r}
1829function sF(i){if(!i||i.length===0)return[[0,0]];if(st(i)){var t=Math.ceil(i);return[[t,t]]}for(var e=!0,r=0;r<i.length;++r)if(!st(i[r])){e=!1;break}if(e)return sF([i]);for(var n=[],r=0;r<i.length;++r)if(st(i[r])){var t=Math.ceil(i[r]);n.push([t,t])}else{var t=ue(i[r],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function Wle(i){if(!i||typeof i=="object"&&i.length===0)return[0,0];if(st(i)){var t=Math.ceil(i);return[t,t]}var e=ue(i,function(r){return Math.ceil(r)});return i.length%2?e.concat(e):e}function Gle(i){return ue(i,function(t){return lF(t)})}function lF(i){for(var t=0,e=0;e<i.length;++e)t+=i[e];return i.length%2===1?t*2:t}function LC(i,t){i.eachRawSeries(function(e){if(!i.isSeriesFiltered(e)){var r=e.getData();r.hasItemVisual()&&r.each(function(a){var s=r.getItemVisual(a,"decal");if(s){var l=r.ensureUniqueItemVisual(a,"style");l.decal=fu(s,t)}});var n=r.getVisual("decal");if(n){var o=r.getVisual("style");o.decal=fu(n,t)}}})}var qle=new nr,zn=qle;var cF={};function dF(i,t){cF[i]=t}function OC(i){return cF[i]}var jle={};function Tg(i,t){jle[i]=t}var Yle="6.0.0",Kle={zrender:"6.0.0"},$le=1,Zle=800,Qle=900,Xle=1e3,Jle=2e3,ece=5e3,bF=1e3,tce=1100,YC=2e3,yF=3e3,ice=4e3,Lg=4500,rce=4600,nce=5e3,oce=6e3,xF=7e3,KC={PROCESSOR:{FILTER:Xle,SERIES_FILTER:Zle,STATISTIC:ece},VISUAL:{LAYOUT:bF,PROGRESSIVE_LAYOUT:tce,GLOBAL:YC,CHART:yF,POST_CHART_LAYOUT:rce,COMPONENT:ice,BRUSH:nce,CHART_ITEM:Lg,ARIA:oce,DECAL:xF}},Fi="__flagInMainProcess",Eg="__mainProcessVersion",er="__pendingUpdate",AC="__needsUpdateStatus",pF=/^[a-zA-Z0-9_]+$/,BC="__connectUpdateStatus",uF=0,ace=1,sce=2;function CF(i){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return wF(this,i,t)}}function SF(i){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return wF(this,i,t)}}function wF(i,t,e){return e[0]=e[0]&&e[0].toLowerCase(),nr.prototype[t].apply(i,e)}var TF=(function(i){xe(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t})(nr),EF=TF.prototype;EF.on=SF("on");EF.off=SF("off");var Ol,NC,kg,oa,Ig,VC,zC,bd,yd,mF,fF,UC,hF,Dg,gF,kF,Un,vF,xd,Mg=(function(i){xe(t,i);function t(e,r,n){var o=i.call(this,new A5)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],n=n||{},o._dom=e;var a="canvas",s="auto",l=!1;if(o[Eg]=1,0)var c;n.ssr&&E1(function(g){var _=pt(g),y=_.dataIndex;if(y!=null){var C=Me();return C.set("series_index",_.seriesIndex),C.set("data_index",y),_.ssrType&&C.set("ssr_type",_.ssrType),C}});var d=o._zr=qh(e,{renderer:n.renderer||a,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Fe(n.useDirtyRect,l),useCoarsePointer:Fe(n.useCoarsePointer,s),pointerSize:n.pointerSize});o._ssr=n.ssr,o._throttledZrFlush=Fl(rt(d.flush,d),17),o._updateTheme(r),o._locale=lP(n.locale||L0),o._coordSysMgr=new cd;var u=o._api=gF(o);function h(g,_){return g.__prio-_.__prio}return zs(Fg,h),zs(GC,h),o._scheduler=new DC(o,u,GC,Fg),o._messageCenter=new TF,o._initEvents(),o.resize=rt(o.resize,o),d.animation.on("frame",o._onframe,o),mF(d,o),fF(d,o),Rs(o),o}return t.prototype._onframe=function(){if(!this._disposed){vF(this);var e=this._scheduler;if(this[er]){var r=this[er].silent;this[Fi]=!0,xd(this);try{Ol(this),oa.update.call(this,null,this[er].updateParams)}catch(l){throw this[Fi]=!1,this[er]=null,l}this._zr.flush(),this[Fi]=!1,this[er]=null,bd.call(this,r),yd.call(this,r)}else if(e.unfinished){var n=$le,o=this._model,a=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(o),e.performDataProcessorTasks(o),VC(this,o),e.performVisualTasks(o),Dg(this,this._model,a,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,r,n){if(!this[Fi]){if(this._disposed){this.id;return}var o,a,s;if(ve(r)&&(n=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[Fi]=!0,xd(this),!this._model||r){var l=new NP(this._api),c=this._theme,d=this._model=new rg;
1829d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,c,this._locale,l)}this._model.setOption(e,{replaceMerge:a},qC);var u={seriesTransition:s,optionChanged:!0};if(n)this[er]={silent:o,updateParams:u},this[Fi]=!1,this.getZr().wakeUp();else{try{Ol(this),oa.update.call(this,null,u)}catch(h){throw this[er]=null,this[Fi]=!1,h}this._ssr||this._zr.flush(),this[er]=null,this[Fi]=!1,bd.call(this,o),yd.call(this,o)}}},t.prototype.setTheme=function(e,r){if(!this[Fi]){if(this._disposed){this.id;return}var n=this._model;if(n){var o=r&&r.silent,a=null;this[er]&&(o==null&&(o=this[er].silent),a=this[er].updateParams,this[er]=null),this[Fi]=!0,xd(this);try{this._updateTheme(e),n.setTheme(this._theme),Ol(this),oa.update.call(this,{type:"setTheme"},a)}catch(s){throw this[Fi]=!1,s}this[Fi]=!1,bd.call(this,o),yd.call(this,o)}}},t.prototype._updateTheme=function(e){pe(e)&&(e=IF[e]),e&&(e=He(e),e&&og(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ue.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var r=this._zr.painter;return r.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,r=e.storage.getDisplayList();return P(r,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var r=e.excludeComponents,n=this._model,o=[],a=this;P(r,function(l){n.eachComponent({mainType:l},function(c){var d=a._componentsMap[c.__viewId];d.group.ignore||(o.push(d),d.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return P(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var r=e.type==="svg",n=this.group,o=Math.min,a=Math.max,s=1/0;if(Rg[n]){var l=s,c=s,d=-s,u=-s,h=[],g=e&&e.pixelRatio||this.getDevicePixelRatio();P(Al,function(E,k){if(E.group===n){var D=r?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(He(e)),I=E.getDom().getBoundingClientRect();l=o(I.left,l),c=o(I.top,c),d=a(I.right,d),u=a(I.bottom,u),h.push({dom:D,left:I.left,top:I.top})}}),l*=g,c*=g,d*=g,u*=g;var _=d-l,y=u-c,C=$i.createCanvas(),x=qh(C,{renderer:r?"svg":"canvas"});if(x.resize({width:_,height:y}),r){var w="";return P(h,function(E){var k=E.left-l,D=E.top-c;w+='<g transform="translate('+k+","+D+')">'+E.dom+"</g>"}),x.painter.getSvgRoot().innerHTML=w,e.connectedBackgroundColor&&x.painter.setBackgroundColor(e.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}else return e.connectedBackgroundColor&&x.add(new Ct({shape:{x:0,y:0,width:_,height:y},style:{fill:e.connectedBackgroundColor}})),P(h,function(E){var k=new Wr({style:{x:E.left*g-l,y:E.top*g-c,image:E.dom}});x.add(k)}),x.refreshImmediately(),C.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,r,n){return Ig(this,"convertToPixel",e,r,n)},t.prototype.convertToLayout=function(e,r,n){return Ig(this,"convertToLayout",e,r,n)},t.prototype.convertFromPixel=function(e,r,n){return Ig(this,"convertFromPixel",e,r,n)},t.prototype.containPixel=function(e,r){if(this._disposed){this.id;return}var n=this._model,o,a=Xh(n,e);return P(a,function(s,l){l.indexOf("Models")>=0&&P(s,function(c){var d=c.coordinateSystem;if(d&&d.containPoint)o=o||!!d.containPoint(r);else if(l==="seriesModels"){var u=this._chartsMap[c.__viewId];u&&u.containPoint&&(o=o||u.containPoint(r,c))}},this)},this),!!o},t.prototype.getVisual=function(e,r){var n=this._model,o=Xh(n,e,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?z5(s,l,r):U5(s,r)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;P(lce,function(n){var o=function(a){var s=e.getModel(),l=a.target,c,d=n==="globalout";if(d?c={}:l&&Rl(l,function(y){var C=pt(y);if(C&&C.dataIndex!=null){var x=C.dataModel||s.getSeriesByIndex(C.seriesIndex);return c=x&&x.getDataParams(C.dataIndex,C.dataType,l)||{},!0}else if(C.eventData)return c=se({},C.eventData),!0}
1829,!0),c){var u=c.componentType,h=c.componentIndex;(u==="markLine"||u==="markPoint"||u==="markArea")&&(u="series",h=c.seriesIndex);var g=u&&h!=null&&s.getComponent(u,h),_=g&&e[g.mainType==="series"?"_chartsMap":"_componentsMap"][g.__viewId];c.event=a,c.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:g,view:_},e.trigger(n,c)}};o.zrEventfulCallAtLast=!0,e._zr.on(n,o,e)});var r=this._messageCenter;P(WC,function(n,o){r.on(o,function(a){e.trigger(o,a)})}),H5(r,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&F1(this.getDom(),ZC,"");var r=this,n=r._api,o=r._model;P(r._componentsViews,function(a){a.dispose(o,n)}),P(r._chartsViews,function(a){a.dispose(o,n)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete Al[r.id]},t.prototype.resize=function(e){if(!this[Fi]){if(this._disposed){this.id;return}this._zr.resize(e);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var n=r.resetOption("media"),o=e&&e.silent;this[er]&&(o==null&&(o=this[er].silent),n=!0,this[er]=null),this[Fi]=!0,xd(this);try{n&&Ol(this),oa.update.call(this,{type:"resize",animation:se({duration:0},e&&e.animation)})}catch(a){throw this[Fi]=!1,a}this[Fi]=!1,bd.call(this,o),yd.call(this,o)}}},t.prototype.showLoading=function(e,r){if(this._disposed){this.id;return}if(ve(e)&&(r=e,e=""),e=e||"default",this.hideLoading(),!!jC[e]){var n=jC[e](this._api,r),o=this._zr;this._loadingFX=n,o.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var r=se({},e);return r.type=HC[e.type],r},t.prototype.dispatchAction=function(e,r){if(this._disposed){this.id;return}if(ve(r)||(r={silent:!!r}),!!Pg[e.type]&&this._model){if(this[Fi]){this._pendingActions.push(e);return}var n=r.silent;zC.call(this,e,n);var o=r.flush;o?this._zr.flush():o!==!1&&Ue.browser.weChat&&this._throttledZrFlush(),bd.call(this,n),yd.call(this,n)}},t.prototype.updateLabelLayout=function(){zn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var r=e.seriesIndex,n=this.getModel(),o=n.getSeriesByIndex(r);o.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Ol=function(u){var h=u._scheduler;h.restorePipelines(u._model),h.prepareStageTasks(),NC(u,!0),NC(u,!1),h.plan()},NC=function(u,h){for(var g=u._model,_=u._scheduler,y=h?u._componentsViews:u._chartsViews,C=h?u._componentsMap:u._chartsMap,x=u._zr,w=u._api,E=0;E<y.length;E++)y[E].__alive=!1;h?g.eachComponent(function(I,F){I!=="series"&&k(F)}):g.eachSeries(k);function k(I){var F=I.__requireNewView;I.__requireNewView=!1;var A="_ec_"+I.id+"_"+I.type,U=!F&&C[A];if(!U){var q=Hr(I.type),z=h?Ni.getClass(q.main,q.sub):sr.getClass(q.sub);U=new z,U.init(g,w),C[A]=U,y.push(U),x.add(U.group)}I.__viewId=U.__id=A,U.__alive=!0,U.__model=I,U.group.__ecComponentInfo={mainType:I.mainType,index:I.componentIndex},!h&&_.prepareView(U,I,g,w)}for(var E=0;E<y.length;){var D=y[E];D.__alive?E++:(!h&&D.renderTask.dispose(),x.remove(D.group),D.dispose(g,w),y.splice(E,1),C[D.__id]===D&&delete C[D.__id],D.__id=D.group.__ecComponentInfo=null)}},kg=function(u,h,g,_,y){var C=u._model;if(C.setUpdatePayload(g),!_){P([].concat(u._componentsViews).concat(u._chartsViews),D);return}var x={};x[_+"Id"]=g[_+"Id"],x[_+"Index"]=g[_+"Index"],x[_+"Name"]=g[_+"Name"];var w={mainType:_,query:x};y&&(w.subType=y);var E=g.excludeSeriesId,k;E!=null&&(k=Me(),P(ai(E),function(I){var F=nn(I,null);F!=null&&k.set(F,!0)})),C&&C.eachComponent(w,function(I){var F=k&&k.get(I.id)!=null;if(!F)if(hx(g))if(I instanceof Rr)g.type===ja&&!g.notBlur&&!I.get(["emphasis","disabled"])&&cM(I,g,u._api);else{var A=d0(I.mainType,I.componentIndex,g.name,u._api),U=A.focusSelf,q=A.dispatchers;g.type===ja&&U&&!g.notBlur&&a0(I.mainType,I.componentIndex,u._api),q&&P(q,function(z){g.type===ja?ll(z):cl(z)}
1829)}else p0(g)&&I instanceof Rr&&(uM(I,g,u._api),fx(I),Un(u))},u),C&&C.eachComponent(w,function(I){var F=k&&k.get(I.id)!=null;F||D(u[_==="series"?"_chartsMap":"_componentsMap"][I.__viewId])},u);function D(I){I&&I.__alive&&I[h]&&I[h](I.__model,C,u._api,g)}},oa={prepareAndUpdate:function(u){Ol(this),oa.update.call(this,u,u&&{optionChanged:u.newOption!=null})},update:function(u,h){var g=this._model,_=this._api,y=this._zr,C=this._coordSysMgr,x=this._scheduler;if(g){g.setUpdatePayload(u),x.restoreData(g,u),x.performSeriesTasks(g),C.create(g,_),x.performDataProcessorTasks(g,u),VC(this,g),C.update(g,_),r(g),x.performVisualTasks(g,u);var w=g.get("backgroundColor")||"transparent";y.setBackgroundColor(w);var E=g.get("darkMode");E!=null&&E!=="auto"&&y.setDarkMode(E),UC(this,g,_,u,h),zn.trigger("afterupdate",g,_)}},updateTransform:function(u){var h=this,g=this._model,_=this._api;if(g){g.setUpdatePayload(u);var y=[];g.eachComponent(function(x,w){if(x!=="series"){var E=h.getViewOfComponentModel(w);if(E&&E.__alive)if(E.updateTransform){var k=E.updateTransform(w,g,_,u);k&&k.update&&y.push(E)}else y.push(E)}});var C=Me();g.eachSeries(function(x){var w=h._chartsMap[x.__viewId];if(w.updateTransform){var E=w.updateTransform(x,g,_,u);E&&E.update&&C.set(x.uid,1)}else C.set(x.uid,1)}),r(g),this._scheduler.performVisualTasks(g,u,{setDirty:!0,dirtyMap:C}),Dg(this,g,_,u,{},C),zn.trigger("afterupdate",g,_)}},updateView:function(u){var h=this._model;h&&(h.setUpdatePayload(u),sr.markUpdateMethod(u,"updateView"),r(h),this._scheduler.performVisualTasks(h,u,{setDirty:!0}),UC(this,h,this._api,u,{}),zn.trigger("afterupdate",h,this._api))},updateVisual:function(u){var h=this,g=this._model;g&&(g.setUpdatePayload(u),g.eachSeries(function(_){_.getData().clearAllVisual()}),sr.markUpdateMethod(u,"updateVisual"),r(g),this._scheduler.performVisualTasks(g,u,{visualType:"visual",setDirty:!0}),g.eachComponent(function(_,y){if(_!=="series"){var C=h.getViewOfComponentModel(y);C&&C.__alive&&C.updateVisual(y,g,h._api,u)}}),g.eachSeries(function(_){var y=h._chartsMap[_.__viewId];y.updateVisual(_,g,h._api,u)}),zn.trigger("afterupdate",g,this._api))},updateLayout:function(u){oa.update.call(this,u)}};function e(u,h,g,_,y){if(u._disposed){u.id;return}for(var C=u._model,x=u._coordSysMgr.getCoordinateSystems(),w,E=Xh(C,g),k=0;k<x.length;k++){var D=x[k];if(D[h]&&(w=D[h](C,E,_,y))!=null)return w}}Ig=e,VC=function(u,h){var g=u._chartsMap,_=u._scheduler;h.eachSeries(function(y){_.updateStreamModes(y,g[y.__viewId])})},zC=function(u,h){var g=this,_=this.getModel(),y=u.type,C=u.escapeConnect,x=Pg[y],w=(x.update||"update").split(":"),E=w.pop(),k=w[0]!=null&&Hr(w[0]);this[Fi]=!0,xd(this);var D=[u],I=!1;u.batch&&(I=!0,D=ue(u.batch,function(me){return me=qe(se({},me),u),me.batch=null,me}));var F=[],A,U=[],q=x.nonRefinedEventType,z=p0(u),Z=hx(u);if(Z&&mx(this._api),P(D,function(me){var ze=x.action(me,_,g._api);if(x.refineEvent?U.push(ze):A=ze,A=A||se({},me),A.type=q,F.push(A),Z){var fe=Fp(u),Ie=fe.queryOptionMap,Le=fe.mainTypeSpecified,Oe=Le?Ie.keys()[0]:"series";kg(g,E,me,Oe),Un(g)}else z?(kg(g,E,me,"series"),Un(g)):k&&kg(g,E,me,k.main,k.sub)}),E!=="none"&&!Z&&!z&&!k)try{this[er]?(Ol(this),oa.update.call(this,u),this[er]=null):oa[E].call(this,u)}catch(me){throw this[Fi]=!1,me}if(I?A={type:q,escapeConnect:C,batch:F}:A=F[0],this[Fi]=!1,!h){var j=void 0;if(x.refineEvent){var X=x.refineEvent(U,u,_,this._api).eventContent;Ii(ve(X)),j=qe({type:x.refinedEventType},X),j.fromAction=u.type,j.fromActionPayload=u,j.escapeConnect=!0}var le=this._messageCenter;le.trigger(A.type,A),j&&le.trigger(j.type,j)}},bd=function(u){for(var h=this._pendingActions;h.length;){var g=h.shift();zC.call(this,g,u)}},yd=function(u){!u&&this.trigger("updated")},mF=function(u,h){u.on("rendered",function(g){h.trigger("rendered",g),u.animation.isFinished()&&!h[er]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},fF=function(u,h){u.on("mouseover",function(g){var _=g.target,y=Rl(_,Wp);y&&(dM(y,g,h._api),Un(h))}).on("mouseout",function(g){var _=g.target,y=Rl(_,Wp);y&&(pM(y,g,h._api),Un(h))}).on("click",function(g){var _=g.target,y=Rl(_,function(w){return pt(w).dataIndex!=null},!0);if(y){var C=y.selected?"unselect":"select",x=pt(y);h._api.dispatchAction({type:C,dataType:x.dataType,dataIndexInside:x.dataIndex,seriesIndex:x.seriesIndex,isFromClick:!0})}})};
1829function r(u){u.clearColorPalette(),u.eachSeries(function(h){h.clearColorPalette()})}function n(u){var h=[],g=[],_=!1;if(u.eachComponent(function(w,E){var k=E.get("zlevel")||0,D=E.get("z")||0,I=E.getZLevelKey();_=_||!!I,(w==="series"?g:h).push({zlevel:k,z:D,idx:E.componentIndex,type:w,key:I})}),_){var y=h.concat(g),C,x;zs(y,function(w,E){return w.zlevel===E.zlevel?w.z-E.z:w.zlevel-E.zlevel}),P(y,function(w){var E=u.getComponent(w.type,w.idx),k=w.zlevel,D=w.key;C!=null&&(k=Math.max(C,k)),D?(k===C&&D!==x&&k++,x=D):x&&(k===C&&k++,x=""),C=k,E.setZLevel(k)})}}UC=function(u,h,g,_,y){n(h),hF(u,h,g,_,y),P(u._chartsViews,function(C){C.__alive=!1}),Dg(u,h,g,_,y),P(u._chartsViews,function(C){C.__alive||C.remove(h,g)})},hF=function(u,h,g,_,y,C){P(C||u._componentsViews,function(x){var w=x.__model;c(w,x),x.render(w,h,g,_),l(w,x),d(w,x)})},Dg=function(u,h,g,_,y,C){var x=u._scheduler;y=se(y||{},{updatedSeries:h.getSeries()}),zn.trigger("series:beforeupdate",h,g,y);var w=!1;h.eachSeries(function(E){var k=u._chartsMap[E.__viewId];k.__alive=!0;var D=k.renderTask;x.updatePayload(D,_),c(E,k),C&&C.get(E.uid)&&D.dirty(),D.perform(x.getPerformArgs(D))&&(w=!0),k.group.silent=!!E.get("silent"),s(E,k),fx(E)}),x.unfinished=w||x.unfinished,zn.trigger("series:layoutlabels",h,g,y),zn.trigger("series:transition",h,g,y),h.eachSeries(function(E){var k=u._chartsMap[E.__viewId];l(E,k),d(E,k)}),a(u,h),zn.trigger("series:afterupdate",h,g,y)},Un=function(u){u[AC]=!0,u.getZr().wakeUp()},xd=function(u){u[Eg]=(u[Eg]+1)%1e3},vF=function(u){u[AC]&&(u.getZr().storage.traverse(function(h){gl(h)||o(h)}),u[AC]=!1)};function o(u){for(var h=[],g=u.currentStates,_=0;_<g.length;_++){var y=g[_];y==="emphasis"||y==="blur"||y==="select"||h.push(y)}u.selected&&u.states.select&&h.push("select"),u.hoverState===Np&&u.states.emphasis?h.push("emphasis"):u.hoverState===Bp&&u.states.blur&&h.push("blur"),u.useStates(h)}function a(u,h){var g=u._zr,_=g.storage,y=0;_.traverse(function(C){C.isGroup||y++}),y>h.get("hoverLayerThreshold")&&!Ue.node&&!Ue.worker&&h.eachSeries(function(C){if(!C.preventUsingHoverLayer){var x=u._chartsMap[C.__viewId];x.__alive&&x.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function s(u,h){var g=u.get("blendMode")||null;h.eachRendered(function(_){_.isGroup||(_.style.blend=g)})}function l(u,h){if(!u.preventAutoZ){var g=Ox(u);h.eachRendered(function(_){return Ax(_,g.z,g.zlevel),!0})}}function c(u,h){h.eachRendered(function(g){if(!gl(g)){var _=g.getTextContent(),y=g.getTextGuideLine();g.stateTransition&&(g.stateTransition=null),_&&_.stateTransition&&(_.stateTransition=null),y&&y.stateTransition&&(y.stateTransition=null),g.hasState()?(g.prevStates=g.currentStates,g.clearStates()):g.prevStates&&(g.prevStates=null)}})}function d(u,h){var g=u.getModel("stateAnimation"),_=u.isAnimationEnabled(),y=g.get("duration"),C=y>0?{duration:y,delay:g.get("delay"),easing:g.get("easing")}:null;h.eachRendered(function(x){if(x.states&&x.states.emphasis){if(gl(x))return;if(x instanceof tt&&gM(x),x.__dirty){var w=x.prevStates;w&&x.useStates(w)}if(_){x.stateTransition=C;var E=x.getTextContent(),k=x.getTextGuideLine();E&&(E.stateTransition=C),k&&(k.stateTransition=C)}x.__dirty&&o(x)}})}gF=function(u){return new((function(h){xe(g,h);function g(){return h!==null&&h.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return u._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(_){for(;_;){var y=_.__ecComponentInfo;if(y!=null)return u._model.getComponent(y.mainType,y.index);_=_.parent}},g.prototype.enterEmphasis=function(_,y){ll(_,y),Un(u)},g.prototype.leaveEmphasis=function(_,y){cl(_,y),Un(u)},g.prototype.enterBlur=function(_){sM(_),Un(u)},g.prototype.leaveBlur=function(_){dx(_),Un(u)},g.prototype.enterSelect=function(_){px(_),Un(u)},g.prototype.leaveSelect=function(_){ux(_),Un(u)},g.prototype.getModel=function(){return u.getModel()},g.prototype.getViewOfComponentModel=function(_){return u.getViewOfComponentModel(_)},g.prototype.getViewOfSeriesModel=function(_){return u.getViewOfSeriesModel(_)},g.prototype.getMainProcessVersion=function(){return u[Eg]},g})(ng))(u)},kF=function(u){function h(g,_){for(var y=0;y<g.length;y++){var C=g[y];C[BC]=_}}P(HC,function(g,_){u._messageCenter.on(_,function(y){if(Rg[u.group]&&u[BC]!==uF){if(y&&y.escapeConnect)return;var C=u.makeActionFromEvent(y),x=[];
1829P(Al,function(w){w!==u&&w.group===u.group&&x.push(w)}),h(x,uF),P(x,function(w){w[BC]!==ace&&w.dispatchAction(C)}),h(x,sce)}})})}})(),t})(nr),$C=Mg.prototype;$C.on=CF("on");$C.off=CF("off");$C.one=function(i,t,e){var r=this;function n(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),r.off(i,n)}this.on.call(this,i,n,e)};var lce=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Pg={},HC={},WC={},GC=[],qC=[],Fg=[],IF={},jC={},Al={},Rg={},cce=+new Date-0,dce=+new Date-0,ZC="_echarts_instance_";function pce(i,t,e){var r=!(e&&e.ssr);if(r){var n=QC(i);if(n)return n}var o=new Mg(i,t,e);return o.id="ec_"+cce++,Al[o.id]=o,r&&F1(i,ZC,o.id),kF(o),zn.trigger("afterinit",o),o}function uce(i){if(ne(i)){var t=i;i=null,P(t,function(e){e.group!=null&&(i=e.group)}),i=i||"g_"+dce++,P(t,function(e){e.group=i})}return Rg[i]=!0,i}function DF(i){Rg[i]=!1}var mce=DF;function fce(i){pe(i)?i=Al[i]:i instanceof Mg||(i=QC(i)),i instanceof Mg&&!i.isDisposed()&&i.dispose()}function QC(i){return Al[oD(i,ZC)]}function hce(i){return Al[i]}function XC(i,t){IF[i]=t}function Og(i){je(qC,i)<0&&qC.push(i)}function Ag(i,t){rS(GC,i,t,Jle)}function JC(i){hu("afterinit",i)}function eS(i){hu("afterupdate",i)}function hu(i,t){zn.on(i,t)}function ts(i,t,e){var r,n,o,a,s;we(t)&&(e=t,t=""),ve(i)?(r=i.type,n=i.event,a=i.update,s=i.publishNonRefinedEvent,e||(e=i.action),o=i.refineEvent):(r=i,n=t);function l(d){return d.toLowerCase()}n=l(n||r);var c=o?l(r):n;Pg[r]||(Ii(pF.test(r)&&pF.test(n)),o&&Ii(n!==r),Pg[r]={actionType:r,refinedEventType:n,nonRefinedEventType:c,update:a,action:e,refineEvent:o},WC[n]=1,o&&s&&(WC[c]=1),HC[c]=r)}function tS(i,t){cd.register(i,t)}function gce(i){var t=cd.get(i);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function vce(i,t){Tg(i,t)}function iS(i,t){rS(Fg,i,t,bF,"layout")}function aa(i,t){rS(Fg,i,t,yF,"visual")}var _F=[];function rS(i,t,e,r,n){if((we(t)||ve(t))&&(e=t,t=r),!(je(_F,e)>=0)){_F.push(e);var o=DC.wrapStageHandler(e,n);o.__prio=t,o.__raw=e,i.push(o)}}function Bg(i,t){jC[i]=t}function _ce(i){sh({createCanvas:i})}function nS(i,t,e){var r=OC("registerMap");r&&r(i,t,e)}function bce(i){var t=OC("getMap");return t&&t(i)}var oS=i5;aa(YC,k5);aa(Lg,I5);aa(Lg,D5);aa(YC,N5);aa(Lg,V5);aa(xF,LC);Og(og);Ag(Qle,pC);Bg("default",IC);ts({type:ja,event:ja,update:ja},Di);ts({type:Vp,event:Vp,update:Vp},Di);ts({type:zp,event:l0,update:zp,action:Di,refineEvent:aS,publishNonRefinedEvent:!0});ts({type:s0,event:l0,update:s0,action:Di,refineEvent:aS,publishNonRefinedEvent:!0});ts({type:Up,event:l0,update:Up,action:Di,refineEvent:aS,publishNonRefinedEvent:!0});function aS(i,t,e,r){return{eventContent:{selected:mM(e),isFromClick:t.isFromClick||!1}}}XC("default",{});XC("dark",O5);var yce={};function gu(i){return i==null?0:i.length||1}function MF(i){return i}var xce=(function(){function i(t,e,r,n,o,a){this._old=t,this._new=e,this._oldKeyGetter=r||MF,this._newKeyGetter=n||MF,this.context=o,this._diffModeMultiple=a==="multiple"}return i.prototype.add=function(t){return this._add=t,this},i.prototype.update=function(t){return this._update=t,this},i.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},i.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},i.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},i.prototype.remove=function(t){return this._remove=t,this},i.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},i.prototype._executeOneToOne=function(){var t=this._old,e=this._new,r={},n=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,r,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=n[a],l=r[s],c=gu(l);if(c>1){var d=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(d,a)}else c===1?(r[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,r)},i.prototype._executeMultiple=function(){var t=this._old,e=this._new,r={},n={},o=[],a=[];this._initIndexMap(t,r,o,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],c=r[l],d=n[l],u=gu(c),h=gu(d);if(u>1&&h===1)this._updateManyToOne&&this._updateManyToOne(d,c),n[l]=null;else if(u===1&&h>
18291)this._updateOneToMany&&this._updateOneToMany(d,c),n[l]=null;else if(u===1&&h===1)this._update&&this._update(d,c),n[l]=null;else if(u>1&&h>1)this._updateManyToMany&&this._updateManyToMany(d,c),n[l]=null;else if(u>1)for(var g=0;g<u;g++)this._remove&&this._remove(c[g]);else this._remove&&this._remove(c)}this._performRestAdd(a,n)},i.prototype._performRestAdd=function(t,e){for(var r=0;r<t.length;r++){var n=t[r],o=e[n],a=gu(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);e[n]=null}},i.prototype._initIndexMap=function(t,e,r,n){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[n](t[a],a);if(o||(r[a]=s),!!e){var l=e[s],c=gu(l);c===0?(e[s]=a,o&&r.push(s)):c===1?e[s]=[l,a]:l.push(a)}}},i})(),PF=xce;var Cce=(function(){function i(t,e){this._encode=t,this._schema=e}return i.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},i.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},i})();function FF(i,t){var e={},r=e.encode={},n=Me(),o=[],a=[],s={};P(i.dimensions,function(h){var g=i.getDimensionInfo(h),_=g.coordDim;if(_){var y=g.coordDimIndex;sS(r,_)[y]=h,g.isExtraCoord||(n.set(_,1),Sce(g.type)&&(o[0]=h),sS(s,_)[y]=i.getDimensionIndex(g.name)),g.defaultTooltip&&a.push(h)}eg.each(function(C,x){var w=sS(r,x),E=g.otherDims[x];E!=null&&E!==!1&&(w[E]=g.name)})});var l=[],c={};n.each(function(h,g){var _=r[g];c[g]=_[0],l=l.concat(_)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=ue(l,function(h){return i.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=c;var d=r.label;d&&d.length&&(o=d.slice());var u=r.tooltip;return u&&u.length?a=u.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,e.userOutput=new Cce(s,t),e}function sS(i,t){return i.hasOwnProperty(t)||(i[t]=[]),i[t]}function RF(i){return i==="category"?"ordinal":i==="time"?"time":"float"}function Sce(i){return!(i==="ordinal"||i==="time")}var wce=(function(){function i(t){this.otherDims={},t!=null&&se(this,t)}return i})(),Cd=wce;var Tce=ht(),Ece={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},lS=(function(){function i(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return i.prototype.isDimensionOmitted=function(){return this._dimOmitted},i.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=dS(this.source)))},i.prototype.getSourceDimensionIndex=function(t){return Fe(this._dimNameMap.get(t),-1)},i.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},i.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=sg(this.source),r=!pS(t),n="",o=[],a=0,s=0;a<t;a++){var l=void 0,c=void 0,d=void 0,u=this.dimensions[s];if(u&&u.storeDimIndex===a)l=e?u.name:null,c=u.type,d=u.ordinalMeta,s++;else{var h=this.getSourceDimension(a);h&&(l=e?h.name:null,c=h.type)}o.push({property:l,type:c,ordinalMeta:d}),e&&l!=null&&(!u||!u.isCalculationCoord)&&(n+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=Ece[c]||"f",d&&(n+=d.uid),n+="$"}var g=this.source,_=[g.seriesLayoutBy,g.startIndex,n].join("$$");return{dimensions:o,hash:_}},i.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,r=0;e<this._fullDimCount;e++){var n=void 0,o=this.dimensions[r];if(o&&o.storeDimIndex===e)o.isCalculationCoord||(n=o.name),r++;else{var a=this.getSourceDimension(e);a&&(n=a.name)}t.push(n)}return t},i.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},i})();function Ng(i){return i instanceof lS}function cS(i){for(var t=Me(),e=0;e<(i||[]).length;e++){var r=i[e],n=ve(r)?r.name:r;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function dS(i){var t=Tce(i);return t.dimNameMap||(t.dimNameMap=cS(i.dimensionsDefine))}function pS(i){return i>30}var vu=ve,is=ue,kce=typeof Int32Array>"u"?Array:Int32Array,Ice="e\0\0",LF=-1,Dce=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Mce=["_approximateExtent"],OF,Vg,_u,bu,uS,yu,mS,Pce=(function(){function i(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual
1829={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,n=!1;Ng(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,r=t),r=r||["x","y"];for(var o={},a=[],s={},l=!1,c={},d=0;d<r.length;d++){var u=r[d],h=pe(u)?new Cd({name:u}):u instanceof Cd?u:new Cd(u),g=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=g,h.coordDimIndex=0);var _=h.otherDims=h.otherDims||{};a.push(g),o[g]=h,c[g]!=null&&(l=!0),h.createInvertedIndices&&(s[g]=[]);var y=d;st(h.storeDimIndex)&&(y=h.storeDimIndex),_.itemName===0&&(this._nameDimIdx=y),_.itemId===0&&(this._idDimIdx=y),n&&(h.storeDimIndex=d)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var C=this._dimIdxToName=Me();P(a,function(x){C.set(o[x].storeDimIndex,x)})}}return i.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var r=this._dimIdxToName.get(e);if(r!=null)return r;var n=this._schema.getSourceDimension(e);if(n)return n.name},i.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var r=this._getDimInfo(t);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},i.prototype._recognizeDimIndex=function(t){if(st(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},i.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},i.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},i.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(r){return e.hasOwnProperty(r)?e[r]:void 0}:function(r){return e[r]}},i.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},i.prototype.mapDimension=function(t,e){var r=this._dimSummary;if(e==null)return r.encodeFirstDimNotExtra[t];var n=r.encode[t];return n?n[e]:null},i.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,r=e.encode[t];return(r||[]).slice()},i.prototype.getStore=function(){return this._store},i.prototype.initData=function(t,e,r){var n=this,o;if(t instanceof au&&(o=t),!o){var a=this.dimensions,s=ud(t)||_i(t)?new cg(t,a.length):t;o=new au;var l=is(a,function(c){return{type:n._dimInfos[c].type,property:c}});o.initData(s,l,r)}this._store=o,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=FF(this,this._schema),this.userOutput=this._dimSummary.userOutput},i.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},i.prototype.appendValues=function(t,e){var r=this._store.appendValues(t,e&&e.length),n=r.start,o=r.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<o;s++){var l=s-n;this._nameList[s]=e[l],a&&mS(this,s)}},i.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,r=0;r<e.length;r++){var n=this._dimInfos[e[r]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},i.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==pn&&!t.fillStorage},i.prototype._doInit=function(t,e){if(!(t>=e)){var r=this._store,n=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=n.getSource().sourceFormat,l=s===Bi;if(l&&!n.pure)for(var c=[],d=t;d<e;d++){var u=n.getItem(d,c);if(!this.hasItemOption&&tD(u)&&(this.hasItemOption=!0),u){var h=u.name;o[d]==null&&h!=null&&(o[d]=nn(h,null));var g=u.id;a[d]==null&&g!=null&&(a[d]=nn(g,null))}}if(this._shouldMakeIdFromName())for(var d=t;d<e;d++)mS(this,d);OF(this)}},i.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},i.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},i.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},i.prototype.setCalculationInfo=function(t,e){vu(t)?se(this._calculationInfo,t):this._calculationInfo[t]=e},i.prototype.getName=function(t){var e=this.getRawIndex(t),r=this._nameList[e];return r==null&&this._nameDimIdx!=null&&(r=_u(this,this._nameDimIdx,e)),r==null&&(r=""),r},i.prototype._getCategory=function(t,e){var r=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[r]:r},i.prototype.getId=function(t){return Vg(this,this.getRawIndex(t))},i.prototype.count=function(){return this._store.count()}
1829,i.prototype.get=function(t,e){var r=this._store,n=this._dimInfos[t];if(n)return r.get(n.storeDimIndex,e)},i.prototype.getByRawIndex=function(t,e){var r=this._store,n=this._dimInfos[t];if(n)return r.getByRawIndex(n.storeDimIndex,e)},i.prototype.getIndices=function(){return this._store.getIndices()},i.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},i.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},i.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},i.prototype.getValues=function(t,e){var r=this,n=this._store;return ne(t)?n.getValues(is(t,function(o){return r._getStoreDimIndex(o)}),e):n.getValues(t)},i.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,r=0,n=e.length;r<n;r++)if(isNaN(this._store.get(e[r],t)))return!1;return!0},i.prototype.indexOfName=function(t){for(var e=0,r=this._store.count();e<r;e++)if(this.getName(e)===t)return e;return-1},i.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},i.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},i.prototype.rawIndexOf=function(t,e){var r=t&&this._invertedIndicesMap[t],n=r&&r[e];return n==null||isNaN(n)?LF:n},i.prototype.each=function(t,e,r){"use strict";we(t)&&(r=e,e=t,t=[]);var n=r||this,o=is(bu(t),this._getStoreDimIndex,this);this._store.each(o,n?rt(e,n):e)},i.prototype.filterSelf=function(t,e,r){"use strict";we(t)&&(r=e,e=t,t=[]);var n=r||this,o=is(bu(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,n?rt(e,n):e),this},i.prototype.selectRange=function(t){"use strict";var e=this,r={},n=dt(t),o=[];return P(n,function(a){var s=e._getStoreDimIndex(a);r[s]=t[a],o.push(s)}),this._store=this._store.selectRange(r),this},i.prototype.mapArray=function(t,e,r){"use strict";we(t)&&(r=e,e=t,t=[]),r=r||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},r),n},i.prototype.map=function(t,e,r,n){"use strict";var o=r||n||this,a=is(bu(t),this._getStoreDimIndex,this),s=yu(this);return s._store=this._store.map(a,o?rt(e,o):e),s},i.prototype.modify=function(t,e,r,n){var o=this,a=r||n||this,s=is(bu(t),this._getStoreDimIndex,this);this._store.modify(s,a?rt(e,a):e)},i.prototype.downSample=function(t,e,r,n){var o=yu(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,r,n),o},i.prototype.minmaxDownSample=function(t,e){var r=yu(this);return r._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),r},i.prototype.lttbDownSample=function(t,e){var r=yu(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),r},i.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},i.prototype.getItemModel=function(t){var e=this.hostModel,r=this.getRawDataItem(t);return new Nt(r,e,e&&e.ecModel)},i.prototype.diff=function(t){var e=this;return new PF(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(r){return Vg(t,r)},function(r){return Vg(e,r)})},i.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},i.prototype.setVisual=function(t,e){this._visual=this._visual||{},vu(t)?se(this._visual,t):this._visual[t]=e},i.prototype.getItemVisual=function(t,e){var r=this._itemVisuals[t],n=r&&r[e];return n??this.getVisual(e)},i.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},i.prototype.ensureUniqueItemVisual=function(t,e){var r=this._itemVisuals,n=r[t];n||(n=r[t]={});var o=n[e];return o==null&&(o=this.getVisual(e),ne(o)?o=o.slice():vu(o)&&(o=se({},o)),n[e]=o),o},i.prototype.setItemVisual=function(t,e,r){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,vu(e)?se(n,e):n[e]=r},i.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},i.prototype.setLayout=function(t,e){vu(t)?se(this._layout,t):this._layout[t]=e},i.prototype.getLayout=function(t){return this._layout[t]},i.prototype.getItemLayout=function(t){return this._itemLayouts[t]},i.prototype.setItemLayout=function(t,e,r){this._itemLayouts[t]=r?se(this._itemLayouts[t]||{},e):e},i.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},i.prototype.setItemGraphicEl=function(t,e){var r=this.hostModel&&this.hostModel.seriesIndex;ZD(r,this.dataType,t,e),this._graphicEls[t]=e},i.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},i.prototype.eachItemGraphicEl=function(t,e){P(this._graphicEls,function(r,n){r&&t&&t.call(e,r,n)})},i.prototype.cloneShallow=function(t){return t||(t=new i(this._schema?this._schema:is(this.dimensions,this._getDimInfo,this),this.hostModel)),uS(t,this),t._store=this._store,t},i.prototype.wrapMethod=function(t,e){var r=this[t];we(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=r.apply(this,arguments);return e.apply(this,[n].concat(cp(arguments)))})},i.internalField=(function(){OF=function(t){var e=t._invertedIndicesMap;P(e,function(r,n){var o=t._dimInfos[n],a=o.ordinalMeta,s=t._store;if(a){r=e[n]=new kce(a.categories.length);for(var l=0;l<r.length;l++)r[l]=LF;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},_u=function(t,e,r){return nn(t._getCategory(e,r),null)},Vg=function(t,e){var r=t._idList[e];return r==null&&t._idDimIdx!=null&&(r=_u(t,t._idDimIdx,e)),r==null&&(r=Ice+e),r},bu=function(t){return ne(t)||(t=t!=null?[t]:[]),t},yu=function(t){var e=new i(t._schema?t._schema:is(t.dimensions,t._getDimInfo,t),t.hostModel);return uS(e,t),e},uS=function(t,e){P(Dce.concat(e.__wrappedMethods||[]),function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t.__wrappedMethods=e.__wrappedMethods,P(Mce,function(r){t[r]=He(e[r])}),t._calculationInfo=se({},e._calculationInfo)},mS=function(t,e){var r=t._nameList,n=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=r[e],l=n[e];if(s==null&&o!=null&&(r[e]=s=_u(t,o,e)),l==null&&a!=null&&(n[e]=l=_u(t,a,e)),l==null&&s!=null){var c=t._nameRepeatCount,d=c[s]=(c[s]||0)+1;l=s,d>1&&(l+="__ec__"+d),n[e]=l}}})(),i})(),zg=Pce;var SS={};$r(SS,{createDimensions:()=>AF,createList:()=>mde,createScale:()=>hde,createSymbol:()=>mn,createTextStyle:()=>vde,dataStack:()=>fde,enableHoverEmphasis:()=>jc,getECData:()=>pt,getLayoutRect:()=>Lo,mixinAxisModelCommonMethods:()=>gde});
1829function AF(i,t){return Ug(i,t).dimensions}function Ug(i,t){ud(i)||(i=md(i)),t=t||{};var e=t.coordDimensions||[],r=t.dimensionsDefine||i.dimensionsDefine||[],n=Me(),o=[],a=Rce(i,e,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&pS(a),l=r===i.dimensionsDefine,c=l?dS(i):cS(r),d=t.encodeDefine;!d&&t.encodeDefaulter&&(d=t.encodeDefaulter(i,a));for(var u=Me(d),h=new xC(a),g=0;g<h.length;g++)h[g]=-1;function _(U){var q=h[U];if(q<0){var z=r[U],Z=ve(z)?z:{name:z},j=new Cd,X=Z.name;X!=null&&c.get(X)!=null&&(j.name=j.displayName=X),Z.type!=null&&(j.type=Z.type),Z.displayName!=null&&(j.displayName=Z.displayName);var le=o.length;return h[U]=le,j.storeDimIndex=U,o.push(j),j}return o[q]}if(!s)for(var g=0;g<a;g++)_(g);u.each(function(U,q){var z=ai(U).slice();if(z.length===1&&!pe(z[0])&&z[0]<0){u.set(q,!1);return}var Z=u.set(q,[]);P(z,function(j,X){var le=pe(j)?c.get(j):j;le!=null&&le<a&&(Z[X]=le,C(_(le),q,X))})});var y=0;P(e,function(U){var q,z,Z,j;if(pe(U))q=U,j={};else{j=U,q=j.name;var X=j.ordinalMeta;j.ordinalMeta=null,j=se({},j),j.ordinalMeta=X,z=j.dimsDef,Z=j.otherDims,j.name=j.coordDim=j.coordDimIndex=j.dimsDef=j.otherDims=null}var le=u.get(q);if(le!==!1){if(le=ai(le),!le.length)for(var me=0;me<(z&&z.length||1);me++){for(;y<a&&_(y).coordDim!=null;)y++;y<a&&le.push(y++)}P(le,function(ze,fe){var Ie=_(ze);if(l&&j.type!=null&&(Ie.type=j.type),C(qe(Ie,j),q,fe),Ie.name==null&&z){var Le=z[fe];!ve(Le)&&(Le={name:Le}),Ie.name=Ie.displayName=Le.name,Ie.defaultTooltip=Le.defaultTooltip}Z&&qe(Ie.otherDims,Z)})}});function C(U,q,z){eg.get(q)!=null?U.otherDims[q]=z:(U.coordDim=q,U.coordDimIndex=z,n.set(q,!0))}var x=t.generateCoord,w=t.generateCoordCount,E=w!=null;w=x?w||1:0;var k=x||"value";function D(U){U.name==null&&(U.name=U.coordDim)}if(s)P(o,function(U){D(U)}),o.sort(function(U,q){return U.storeDimIndex-q.storeDimIndex});else for(var I=0;I<a;I++){var F=_(I),A=F.coordDim;A==null&&(F.coordDim=Lce(k,n,E),F.coordDimIndex=0,(!x||w<=0)&&(F.isExtraCoord=!0),w--),D(F),F.type==null&&(tg(i,I)===Fr.Must||F.isExtraCoord&&(F.otherDims.itemName!=null||F.otherDims.seriesName!=null))&&(F.type="ordinal")}return Fce(o),new lS({source:i,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Fce(i){for(var t=Me(),e=0;e<i.length;e++){var r=i[e],n=r.name,o=t.get(n)||0;o>0&&(r.name=n+(o-1)),o++,t.set(n,o)}}function Rce(i,t,e,r){var n=Math.max(i.dimensionsDetectedCount||1,t.length,e.length,r||0);return P(t,function(o){var a;ve(o)&&(a=o.dimsDef)&&(n=Math.max(n,a.length))}),n}function Lce(i,t,e){if(e||t.hasKey(i)){for(var r=0;t.hasKey(i+r);)r++;i+=r}return t.set(i,!0),i}var Oce=(function(){function i(t){this.coordSysDims=[],this.axisMap=Me(),this.categoryAxisMap=Me(),this.coordSysName=t}return i})();function BF(i){var t=i.get("coordinateSystem"),e=new Oce(t),r=Ace[t];if(r)return r(i,e,e.axisMap,e.categoryAxisMap),e}var Ace={cartesian2d:function(i,t,e,r){var n=i.getReferringComponents("xAxis",or).models[0],o=i.getReferringComponents("yAxis",or).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",o),Sd(n)&&(r.set("x",n),t.firstCategoryDimIndex=0),Sd(o)&&(r.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(i,t,e,r){var n=i.getReferringComponents("singleAxis",or).models[0];t.coordSysDims=["single"],e.set("single",n),Sd(n)&&(r.set("single",n),t.firstCategoryDimIndex=0)},polar:function(i,t,e,r){var n=i.getReferringComponents("polar",or).models[0],o=n.findAxisModel("radiusAxis"),a=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",o),e.set("angle",a),Sd(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),Sd(a)&&(r.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(i,t,e,r){t.coordSysDims=["lng","lat"]},parallel:function(i,t,e,r){var n=i.ecModel,o=n.getComponent("parallel",i.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();P(o.parallelAxisIndex,function(s,l){var c=n.getComponent("parallelAxis",s),d=a[l];e.set(d,c),Sd(c)&&(r.set(d,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(i,t,e,r){var n=i.getReferringComponents("matrix",or).models[0];t.coordSysDims=["x","y"];var o=n.getDimensionModel("x"),a=n.getDimensionModel("y");e.set("x",o),e.set("y",a),r.set("x",o),r.set("y",a)}};function Sd(i){return i.get("type")==="category"}function Hg(i,t,e){e=e||{};var r=e.byIndex,n=e.stackedCoordDimension,o,a,s;Bce(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(i&&i.get("stack")),c,d,u,h;if(P(o,function(w,E){pe(w)&&(o[E]=w={name:w}),l&&!w.isExtraCoord&&(!r&&!c&&w.ordinalMeta&&(c=w),!d&&w.type!=="ordinal"&&w.type!=="time"&&(!n||n===w.coordDim)&&(d=w))}),d&&!r&&!c&&(r=!0),d){u="__\0ecstackresult_"+i.id,h="__\0ecstackedover_"+i.id,c&&(c.createInvertedIndices=!0);var g=d.coordDim,_=d.type,y=0;
1829P(o,function(w){w.coordDim===g&&y++});var C={name:u,coordDim:g,coordDimIndex:y,type:_,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},x={name:h,coordDim:h,coordDimIndex:y+1,type:_,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(C.storeDimIndex=s.ensureCalculationDimension(h,_),x.storeDimIndex=s.ensureCalculationDimension(u,_)),a.appendCalculationDimension(C),a.appendCalculationDimension(x)):(o.push(C),o.push(x))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:r,stackedOverDimension:h,stackResultDimension:u}}function Bce(i){return!Ng(i.schema)}function to(i,t){return!!t&&t===i.getCalculationInfo("stackedDimension")}function Wg(i,t){return to(i,t)?i.getCalculationInfo("stackResultDimension"):t}function Nce(i,t){var e=i.get("coordinateSystem"),r=cd.get(e),n;return t&&t.coordSysDims&&(n=ue(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=RF(l)}return a})),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function Vce(i,t,e){var r,n;return e&&P(i,function(o,a){var s=o.coordDim,l=e.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(n=!0)}),!n&&r!=null&&(i[r].otherDims.itemName=0),r}function zce(i,t,e){e=e||{};var r=t.getSourceManager(),n,o=!1;i?(o=!0,n=md(i)):(n=r.getSource(),o=n.sourceFormat===Bi);var a=BF(t),s=Nce(t,a),l=e.useEncodeDefaulter,c=we(l)?l:l?Bt(IP,s,t):null,d={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},u=Ug(n,d),h=Vce(u.dimensions,e.createInvertedIndices,a),g=o?null:r.getSharedDataStore(u),_=Hg(t,{schema:u,store:g}),y=new zg(u,t);y.setCalculationInfo(_);var C=h!=null&&Uce(n)?function(x,w,E,k){return k===h?E:this.defaultDimValueGetter(x,w,E,k)}:null;return y.hasItemOption=!1,y.initData(o?n:g,null,C),y}function Uce(i){if(i.sourceFormat===Bi){var t=Hce(i.data||[]);return!ne(Qo(t))}}function Hce(i){for(var t=0;t<i.length&&i[t]==null;)t++;return i[t]}var rs=zce;function xu(i){return i.type==="interval"||i.type==="log"}function UF(i,t,e,r,n){var o={},a=o.interval=Vc(t/e,!0);r!=null&&a<r&&(a=o.interval=r),n!=null&&a>n&&(a=o.interval=n);var s=o.intervalPrecision=ns(a),l=o.niceTickExtent=[Jt(Math.ceil(i[0]/a)*a,s),Jt(Math.floor(i[1]/a)*a,s)];return Wce(l,i),o}function Gg(i){var t=Math.pow(10,Nc(i)),e=i/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Jt(e*t)}function ns(i){return kr(i)+2}function NF(i,t,e){i[t]=Math.max(Math.min(i[t],e[1]),e[0])}function Wce(i,t){!isFinite(i[0])&&(i[0]=t[0]),!isFinite(i[1])&&(i[1]=t[1]),NF(i,0,t),NF(i,1,t),i[0]>i[1]&&(i[0]=i[1])}function wd(i,t){return i>=t[0]&&i<=t[1]}var HF=(function(){function i(){this.normalize=VF,this.scale=zF}return i.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=rt(t.normalize,t),this.scale=rt(t.scale,t)):(this.normalize=VF,this.scale=zF)},i})();function VF(i,t){return t[1]===t[0]?.5:(i-t[0])/(t[1]-t[0])}function zF(i,t){return i*(t[1]-t[0])+t[0]}function Cu(i,t,e){var r=Math.log(i);return[Math.log(e?t[0]:Math.max(0,t[0]))/r,Math.log(e?t[1]:Math.max(0,t[1]))/r]}var WF=(function(){function i(t){this._calculator=new HF,this._setting=t||{},this._extent=[1/0,-1/0];var e=xi();e&&(this._brkCtx=e.createScaleBreakContext(),this._brkCtx.update(this._extent))}return i.prototype.getSetting=function(t){return this._setting[t]},i.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},i.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},i.prototype.getExtent=function(){return this._extent.slice()},i.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},i.prototype._innerSetExtent=function(t,e){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(e)||(r[1]=e),this._brkCtx&&this._brkCtx.update(r)},i.prototype.setBreaksFromOption=function(t){var e=xi();e&&this._innerSetBreak(e.parseAxisBreakOption(t,rt(this.parse,this)))},i.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},i.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},i.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},i.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},i.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},i.prototype.isBlank=function(){return this._isBlank},i.prototype.setBlank=function(t){this._isBlank=t},i})();Ua(WF);var Hn=WF;var Gce=0,qce=(function(){function i(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Gce,this._onCollect=t.onCollect}return i.createByAxisModel=function(t){var e=t.option,r=e.data,n=r&&ue(r,jce);return new i({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},i.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},i.prototype.parseAndCollect=function(t){var e,r=this._needCollect;if(!pe(t)&&!r)return t;if(r&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(r?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},i.prototype._getOrCreateMap=function(){return this._map||(this._map=Me(this.categories))},i})();function jce(i){return ve(i)&&i.value!=null?i.value:i+""}var Su=qce;var GF=(function(i){xe(t,i);function t(e){var r=i.call(this,e)||this;r.type="ordinal";var n=r.getSetting("ordinalMeta");return n||(n=new Su({})),ne(n)&&(n=new Su({categories:ue(n,function(o){return ve(o)?o.value:o})})),r._ordinalMeta=n,r._extent=r.getSetting("extent")||[0,n.categories.length-1],r}return t.prototype.parse=function(e){return e==null?NaN:pe(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return wd(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],r=this._extent,n=r[0];n<=r[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);a<l;++a){var c=r[a];n[a]=c,o[c]=a}for(var d=0;a<s;++a){for(;o[d]!=null;)d++;n.push(d),o[d]=a}},t.prototype._getTickNumber=function(e){var r=this._ticksByOrdinalNumber;return r&&e>=0&&e<r.length?r[e]:e},t.prototype.getRawOrdinalNumber=function(e){var r=this._ordinalNumbersByTick;return r&&e>=0&&e<r.length?r[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var r=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[r];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Hn);Hn.registerClass(GF);var qF=GF;var os=Jt,jF=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return wd(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=ns(e)},t.prototype.getTicks=function(e){e=e||{};var r=this._interval,n=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=xi(),l=[];
1829if(!r)return l;if(e.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var c=1e4;n[0]<o[0]&&(e.expandToNicedExtent?l.push({value:os(o[0]-r,a)}):l.push({value:n[0]}));for(var d=function(_,y){return Math.round((y-_)/r)},u=o[0];u<=o[1];){if(l.push({value:u}),u=os(u+r,a),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(u,d);h>=0&&(u=os(u+h*r,a))}if(l.length>0&&u===l[l.length-1].value)break;if(l.length>c)return[]}var g=l.length?l[l.length-1].value:o[1];return n[1]>g&&(e.expandToNicedExtent?l.push({value:os(g+r,a)}):l.push({value:n[1]})),s&&s.pruneTicksByBreak(e.pruneByBreak,l,this._brkCtx.breaks,function(_){return _.value},this._interval,this._extent),e.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},t.prototype.getMinorTicks=function(e){for(var r=this.getTicks({expandToNicedExtent:!0}),n=[],o=this.getExtent(),a=1;a<r.length;a++){var s=r[a],l=r[a-1];if(!(l.break||s.break)){for(var c=0,d=[],u=s.value-l.value,h=u/e,g=ns(h);c<e-1;){var _=os(l.value+(c+1)*h,g);_>o[0]&&_<o[1]&&d.push(_),c++}var y=xi();y&&y.pruneTicksByBreak("auto",d,this._getNonTransBreaks(),function(C){return C},this._interval,o),n.push(d)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,r){if(e==null)return"";var n=r&&r.precision;n==null?n=kr(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var o=os(e.value,n,!0);return Jp(o)},t.prototype.calcNiceTicks=function(e,r,n){e=e||5;var o=this._extent.slice(),a=this._getExtentSpanWithBreaks();if(isFinite(a)){a<0&&(a=-a,o.reverse(),this._innerSetExtent(o[0],o[1]),o=this._extent.slice());var s=UF(o,a,e,r,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var r=this._extent.slice();if(r[0]===r[1])if(r[0]!==0){var n=Math.abs(r[0]);e.fixMax||(r[1]+=n/2),r[0]-=n/2}else r[1]=1;var o=r[1]-r[0];isFinite(o)||(r[0]=0,r[1]=1),this._innerSetExtent(r[0],r[1]),r=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var a=this._interval,s=this._intervalPrecision;e.fixMin||(r[0]=os(Math.floor(r[0]/a)*a,s)),e.fixMax||(r[1]=os(Math.ceil(r[1]/a)*a,s)),this._innerSetExtent(r[0],r[1])},t.prototype.setNiceExtent=function(e,r){this._niceExtent=[e,r]},t.type="interval",t})(Hn);Hn.registerClass(jF);var sa=jF;var YF=typeof Float32Array<"u",Yce=YF?Float32Array:Array;function fn(i){return ne(i)?YF?new Float32Array(i):i:new Yce(i)}var Kce="__ec_stack_";function hS(i){return i.get("stack")||Kce+i.seriesIndex}function gS(i){return i.dim+i.index}function vS(i,t){var e=[];return t.eachSeriesByType(i,function(r){QF(r)&&e.push(r)}),e}function $ce(i){var t={};P(i,function(l){var c=l.coordinateSystem,d=c.getBaseAxis();if(!(d.type!=="time"&&d.type!=="value"))for(var u=l.getData(),h=d.dim+"_"+d.index,g=u.getDimensionIndex(u.mapDimension(d.dim)),_=u.getStore(),y=0,C=_.count();y<C;++y){var x=_.get(g,y);t[h]?t[h].push(x):t[h]=[x]}});var e={};for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];if(n){n.sort(function(l,c){return l-c});for(var o=null,a=1;a<n.length;++a){var s=n[a]-n[a-1];s>0&&(o=o===null?s:Math.min(o,s))}e[r]=o}}return e}function _S(i){var t=$ce(i),e=[];return P(i,function(r){var n=r.coordinateSystem,o=n.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,c=t[l],d=Math.abs(a[1]-a[0]),u=o.scale.getExtent(),h=Math.abs(u[1]-u[0]);s=c?d/h*c:d}else{var g=r.getData();s=Math.abs(a[1]-a[0])/g.count()}var _=yi(r.get("barWidth"),s),y=yi(r.get("barMaxWidth"),s),C=yi(r.get("barMinWidth")||(XF(r)?.5:1),s),x=r.get("barGap"),w=r.get("barCategoryGap"),E=r.get("defaultBarGap");e.push({bandWidth:s,barWidth:_,barMaxWidth:y,barMinWidth:C,barGap:x,barCategoryGap:w,defaultBarGap:E,axisKey:gS(o),stackId:hS(r)})}),Zce(e)}function Zce(i){var t={};P(i,function(r,n){var o=r.axisKey,a=r.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:r.defaultBarGap||0,stacks:{}},l=s.stacks;t[o]=s;var c=r.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var d=r.barWidth;d&&!l[c].width&&(l[c].width=d,d=Math.min(s.remainedWidth,d),s.remainedWidth-=d);var u=r.barMaxWidth;u&&(l[c].maxWidth=u);var h=r.barMinWidth;h&&(l[c].minWidth=h);var g=r.barGap;g!=null&&(s.gap=g);var _=r.barCategoryGap;_!=null&&(s.categoryGap=_)});var e={};return P(t,function(r,n){e[n]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=dt(o).length;s=Math.max(35-l*4,15)+"%"}var c=yi(s,a),d=yi(r.gap,1),u=r.remainedWidth,h=r.autoWidthCount,g=(u-c)/(h+(h-1)*d);g=Math.max(g,0),P(o,function(x){var w=x.maxWidth,E=x.minWidth;
1829if(x.width){var k=x.width;w&&(k=Math.min(k,w)),E&&(k=Math.max(k,E)),x.width=k,u-=k+d*k,h--}else{var k=g;w&&w<k&&(k=Math.min(w,u)),E&&E>k&&(k=E),k!==g&&(x.width=k,u-=k+d*k,h--)}}),g=(u-c)/(h+(h-1)*d),g=Math.max(g,0);var _=0,y;P(o,function(x,w){x.width||(x.width=g),y=x,_+=x.width*(1+d)}),y&&(_-=y.width*d);var C=-_/2;P(o,function(x,w){e[n][w]=e[n][w]||{bandWidth:a,offset:C,width:x.width},C+=x.width*(1+d)})}),e}function KF(i,t,e){if(i&&t){var r=i[gS(t)];return r!=null&&e!=null?r[hS(e)]:r}}function $F(i,t){var e=vS(i,t),r=_S(e);P(e,function(n){var o=n.getData(),a=n.coordinateSystem,s=a.getBaseAxis(),l=hS(n),c=r[gS(s)][l],d=c.offset,u=c.width;o.setLayout({bandWidth:c.bandWidth,offset:d,size:u})})}function ZF(i){return{seriesType:i,plan:Pl(),reset:function(t){if(QF(t)){var e=t.getData(),r=t.coordinateSystem,n=r.getBaseAxis(),o=r.getOtherAxis(n),a=e.getDimensionIndex(e.mapDimension(o.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),c=e.mapDimension(o.dim),d=e.getCalculationInfo("stackResultDimension"),u=to(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),h=o.isHorizontal(),g=Qce(n,o),_=XF(t),y=t.get("barMinHeight")||0,C=d&&e.getDimensionIndex(d),x=e.getLayout("size"),w=e.getLayout("offset");return{progress:function(E,k){for(var D=E.count,I=_&&fn(D*3),F=_&&l&&fn(D*3),A=_&&fn(D),U=r.master.getRect(),q=h?U.width:U.height,z,Z=k.getStore(),j=0;(z=E.next())!=null;){var X=Z.get(u?C:a,z),le=Z.get(s,z),me=g,ze=void 0;u&&(ze=+X-Z.get(a,z));var fe=void 0,Ie=void 0,Le=void 0,Oe=void 0;if(h){var Re=r.dataToPoint([X,le]);if(u){var nt=r.dataToPoint([ze,le]);me=nt[0]}fe=me,Ie=Re[1]+w,Le=Re[0]-me,Oe=x,Math.abs(Le)<y&&(Le=(Le<0?-1:1)*y)}else{var Re=r.dataToPoint([le,X]);if(u){var nt=r.dataToPoint([le,ze]);me=nt[1]}fe=Re[0]+w,Ie=me,Le=x,Oe=Re[1]-me,Math.abs(Oe)<y&&(Oe=(Oe<=0?-1:1)*y)}_?(I[j]=fe,I[j+1]=Ie,I[j+2]=h?Le:Oe,F&&(F[j]=h?U.x:fe,F[j+1]=h?Ie:U.y,F[j+2]=q),A[z]=z):k.setItemLayout(z,{x:fe,y:Ie,width:Le,height:Oe}),j+=3}_&&k.setLayout({largePoints:I,largeDataIndices:A,largeBackgroundPoints:F,valueAxisHorizontal:h})}}}}}}function QF(i){return i.coordinateSystem&&i.coordinateSystem.type==="cartesian2d"}function XF(i){return i.pipelineContext&&i.pipelineContext.large}function Qce(i,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var Xce=function(i,t,e,r){for(;e<r;){var n=e+r>>>1;i[n][1]<t?e=n+1:r=n}return e},e4=(function(i){xe(t,i);function t(e){var r=i.call(this,e)||this;return r.type="time",r}return t.prototype.getLabel=function(e){var r=this.getSetting("useUTC");return ta(e.value,qx[fP(od(this._minLevelUnit))]||qx.second,r,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,r,n){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return hP(e,r,n,a,o)},t.prototype.getTicks=function(e){e=e||{};var r=this._interval,n=this._extent,o=xi(),a=[];if(!r)return a;var s=this.getSetting("useUTC");if(o&&e.breakTicks==="only_break")return xi().addBreaksToTicks(a,this._brkCtx.breaks,this._extent),a;var l=Sl(n[1],s);a.push({value:n[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var c=ode(this._minLevelUnit,this._approxInterval,s,n,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(c);var d=Sl(n[1],s);a.push({value:n[1],time:{level:0,upperTimeUnit:d,lowerTimeUnit:d}});var u=this.getSetting("useUTC"),h=qr.length-1,g=0;return P(a,function(_){h=Math.min(h,je(qr,_.time.upperTimeUnit)),g=Math.max(g,_.time.level)}),o&&xi().pruneTicksByBreak(e.pruneByBreak,a,this._brkCtx.breaks,function(_){return _.value},this._approxInterval,this._extent),o&&e.breakTicks!=="none"&&xi().addBreaksToTicks(a,this._brkCtx.breaks,this._extent,function(_){for(var y=Math.max(je(qr,Sl(_.vmin,u)),je(qr,Sl(_.vmax,u))),C=0,x=0;x<qr.length;x++)if(!t4(qr[x],_.vmin,_.vmax,u)){C=x;break}var w=Math.min(C,h),E=Math.max(w,y);return{level:g,lowerTimeUnit:qr[E],upperTimeUnit:qr[w]}}),a},t.prototype.calcNiceExtent=function(e){var r=this.getExtent();if(r[0]===r[1]&&(r[0]-=ln,r[1]+=ln),r[1]===-1/0&&r[0]===1/0){var n=new Date;r[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),r[0]=r[1]-ln}this._innerSetExtent(r[0],r[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,r,n){e=e||10;var o=this._getExtentSpanWithBreaks();this._approxInterval=o/e,r!=null&&this._approxInterval<r&&(this._approxInterval=r),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var a=qg.length,s=Math.min(Xce(qg,this._approxInterval,0,a),a-1);this._interval=qg[s][1],this._intervalPrecision=ns(this._interval),this._minLevelUnit=qg[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return st(e)?e:+Dr(e)},t.prototype.contain=function(e){return wd(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t})(sa),qg=[["second",N0],["minute",V0],["hour",nd],["quarter-day",nd*6],["half-day",nd*12],["day",ln*1.2],["half-week",ln*3.5],["week",ln*7],["month",ln*31],["quarter",ln*95],["half-year",Gx/2],["year",Gx]];function t4(i,t,e,r){return ad(new Date(t),i,r).getTime()===ad(new Date(e),i,r).getTime()}
1829function Jce(i,t){return i/=ln,i>16?16:i>7.5?7:i>3.5?4:i>1.5?2:1}function ede(i){var t=30*ln;return i/=t,i>6?6:i>3?3:i>2?2:1}function tde(i){return i/=nd,i>12?12:i>6?6:i>3.5?4:i>2?2:1}function JF(i,t){return i/=t?V0:N0,i>30?30:i>20?20:i>15?15:i>10?10:i>5?5:i>2?2:1}function ide(i){return Vc(i,!0)}function rde(i,t,e){var r=Math.max(0,je(qr,t)-1);return ad(new Date(i),qr[r],e).getTime()}function nde(i,t){var e=new Date(0);e[i](1);var r=e.getTime();e[i](1+t);var n=e.getTime()-r;return function(o,a){return Math.max(0,Math.round((a-o)/n))}}function ode(i,t,e,r,n,o){var a=1e4,s=pP,l=0;function c(j,X,le,me,ze,fe,Ie){for(var Le=nde(ze,j),Oe=X,Re=new Date(Oe);Oe<le&&Oe<=r[1]&&(Ie.push({value:Oe}),!(l++>a));)if(Re[ze](Re[me]()+j),Oe=Re.getTime(),o){var nt=o.calcNiceTickMultiple(Oe,Le);nt>0&&(Re[ze](Re[me]()+nt*j),Oe=Re.getTime())}Ie.push({value:Oe,notAdd:!0})}function d(j,X,le){var me=[],ze=!X.length;if(!t4(od(j),r[0],r[1],e)){ze&&(X=[{value:rde(r[0],j,e)},{value:r[1]}]);for(var fe=0;fe<X.length-1;fe++){var Ie=X[fe].value,Le=X[fe+1].value;if(Ie!==Le){var Oe=void 0,Re=void 0,nt=void 0,Pt=!1;switch(j){case"year":Oe=Math.max(1,Math.round(t/ln/365)),Re=jx(e),nt=gP(e);break;case"half-year":case"quarter":case"month":Oe=ede(t),Re=z0(e),nt=Yx(e);break;case"week":case"half-week":case"day":Oe=Jce(t,31),Re=U0(e),nt=Kx(e),Pt=!0;break;case"half-day":case"quarter-day":case"hour":Oe=tde(t),Re=H0(e),nt=$x(e);break;case"minute":Oe=JF(t,!0),Re=W0(e),nt=Zx(e);break;case"second":Oe=JF(t,!1),Re=G0(e),nt=Qx(e);break;case"millisecond":Oe=ide(t),Re=q0(e),nt=Xx(e);break}Le>=r[0]&&Ie<=r[1]&&c(Oe,Ie,Le,Re,nt,Pt,me),j==="year"&&le.length>1&&fe===0&&le.unshift({value:le[0].value-Oe})}}for(var fe=0;fe<me.length;fe++)le.push(me[fe])}}for(var u=[],h=[],g=0,_=0,y=0;y<s.length;++y){var C=od(s[y]);if(mP(s[y])){d(s[y],u[u.length-1]||[],h);var x=s[y+1]?od(s[y+1]):null;if(C!==x){if(h.length){_=g,h.sort(function(j,X){return j.value-X.value});for(var w=[],E=0;E<h.length;++E){var k=h[E].value;(E===0||h[E-1].value!==k)&&(w.push(h[E]),k>=r[0]&&k<=r[1]&&g++)}var D=n/t;if(g>D*1.5&&_>D/1.5||(u.push(w),g>D||i===s[y]))break}h=[]}}}for(var I=Gt(ue(u,function(j){return Gt(j,function(X){return X.value>=r[0]&&X.value<=r[1]&&!X.notAdd})}),function(j){return j.length>0}),F=[],A=I.length-1,y=0;y<I.length;++y)for(var U=I[y],q=0;q<U.length;++q){var z=Sl(U[q].value,e);F.push({value:U[q].value,time:{level:A-y,upperTimeUnit:z,lowerTimeUnit:z}})}F.sort(function(j,X){return j.value-X.value});for(var Z=[],y=0;y<F.length;++y)(y===0||F[y].value!==F[y-1].value)&&Z.push(F[y]);return Z}Hn.registerClass(e4);var i4=e4;var bS=Jt,ade=Math.floor,sde=Math.ceil,jg=Math.pow,Yg=Math.log,r4=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new sa,e}return t.prototype.getTicks=function(e){e=e||{};var r=this._extent.slice(),n=this._originalScale.getExtent(),o=i.prototype.getTicks.call(this,e),a=this.base,s=this._originalScale._innerGetBreaks(),l=xi();return ue(o,function(c){var d=c.value,u=null,h=jg(a,d);d===r[0]&&this._fixMin?u=n[0]:d===r[1]&&this._fixMax&&(u=n[1]);var g;if(l){var _=l.getTicksLogTransformBreak(c,a,s,Kg);g=_.vBreak,u==null&&(u=_.brkRoundingCriterion)}return u!=null&&(h=Kg(h,u)),{value:h,break:g}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(e,r){this._originalScale.setExtent(e,r);var n=Cu(this.base,[e,r]);i.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var e=this.base,r=i.prototype.getExtent.call(this);r[0]=jg(e,r[0]),r[1]=jg(e,r[1]);var n=this._originalScale.getExtent();return this._fixMin&&(r[0]=Kg(r[0],n[0])),this._fixMax&&(r[1]=Kg(r[1],n[1])),r},t.prototype.unionExtentFromData=function(e,r){this._originalScale.unionExtentFromData(e,r);var n=Cu(this.base,e.getApproximateExtent(r),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e=e||10;var r=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var o=$h(n),a=e/n*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[bS(sde(r[0]/o)*o),bS(ade(r[1]/o)*o)];this._interval=o,this._intervalPrecision=ns(o),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){i.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.f
1829ixMax},t.prototype.contain=function(e){return e=Yg(e)/Yg(this.base),i.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Yg(e)/Yg(this.base),i.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=i.prototype.scale.call(this,e),jg(this.base,e)},t.prototype.setBreaksFromOption=function(e){var r=xi();if(r){var n=r.logarithmicParseBreaksFromOption(e,this.base,rt(this.parse,this)),o=n.parsedOriginal,a=n.parsedLogged;this._originalScale._innerSetBreak(o),this._innerSetBreak(a)}},t.type="log",t})(sa);function Kg(i,t){return bS(i,kr(t))}Hn.registerClass(r4);var n4=r4;var lde=(function(){function i(t,e,r){this._prepareParams(t,e,r)}return i.prototype._prepareParams=function(t,e,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var o=e.get("min",!0);o==null&&(o=e.get("startValue",!0));var a=this._modelMinRaw=o;we(a)?this._modelMinNum=$g(t,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=$g(t,a));var s=this._modelMaxRaw=e.get("max",!0);if(we(s)?this._modelMaxNum=$g(t,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=$g(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),c=ne(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Pn(c[0],1),Pn(c[1],1)]}},i.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,r=this._dataMax,n=this._axisDataLen,o=this._boundaryGapInner,a=t?null:r-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?r:this._modelMaxNum,c=s!=null,d=l!=null;s==null&&(s=t?n?0:NaN:e-o[0]*a),l==null&&(l=t?n?n-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var u=Go(s)||Go(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!d&&(l=0));var h=this._determinedMin,g=this._determinedMax;return h!=null&&(s=h,c=!0),g!=null&&(l=g,d=!0),{min:s,max:l,minFixed:c,maxFixed:d,isBlank:u}},i.prototype.modifyDataMinMax=function(t,e){this[dde[t]]=e},i.prototype.setDeterminedMinMax=function(t,e){var r=cde[t];this[r]=e},i.prototype.freeze=function(){this.frozen=!0},i})();var cde={min:"_determinedMin",max:"_determinedMax"},dde={min:"_dataMin",max:"_dataMax"};function o4(i,t,e){var r=i.rawExtentInfo;return r||(r=new lde(i,t,e),i.rawExtentInfo=r,r)}function $g(i,t){return t==null?null:Go(t)?NaN:i.parse(t)}function yS(i,t){var e=i.type,r=o4(i,t,i.getExtent()).calculate();i.setBlank(r.isBlank);var n=r.min,o=r.max,a=t.ecModel;if(a&&e==="time"){var s=vS("bar",a),l=!1;if(P(s,function(u){l=l||u.getBaseAxis()===t.axis}),l){var c=_S(s),d=pde(n,o,t,c);n=d.min,o=d.max}}return{extent:[n,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function pde(i,t,e,r){var n=e.axis.getExtent(),o=Math.abs(n[1]-n[0]),a=KF(r,e.axis);if(a===void 0)return{min:i,max:t};var s=1/0;P(a,function(g){s=Math.min(g.offset,s)});var l=-1/0;P(a,function(g){l=Math.max(g.offset+g.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,d=t-i,u=1-(s+l)/o,h=d/u-d;return t+=h*(l/c),i-=h*(s/c),{min:i,max:t}}function wu(i,t){var e=t,r=yS(i,e),n=r.extent,o=e.get("splitNumber");i instanceof n4&&(i.base=e.get("logBase"));
1829var a=i.type,s=e.get("interval"),l=a==="interval"||a==="time";i.setBreaksFromOption(xS(e)),i.setExtent(n[0],n[1]),i.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&i.setInterval&&i.setInterval(s)}function Zg(i,t){if(t=t||i.get("type"),t)switch(t){case"category":return new qF({ordinalMeta:i.getOrdinalMeta?i.getOrdinalMeta():i.getCategories(),extent:[1/0,-1/0]});case"time":return new i4({locale:i.ecModel.getLocaleModel(),useUTC:i.ecModel.get("useUTC")});default:return new(Hn.getClass(t)||sa)}}function a4(i){var t=i.scale.getExtent(),e=t[0],r=t[1];return!(e>0&&r>0||e<0&&r<0)}function Ed(i){var t=i.getLabelModel().get("formatter");if(i.type==="time"){var e=uP(t);return function(n,o){return i.scale.getFormattedLabel(n,o,e)}}else{if(pe(t))return function(n){var o=i.scale.getLabel(n),a=t.replace("{value}",o??"");return a};if(we(t)){if(i.type==="category")return function(n,o){return t(Td(i,n),n.value-i.scale.getExtent()[0],null)};var r=xi();return function(n,o){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(Td(i,n),o,a)}}else return function(n){return i.scale.getLabel(n)}}}function Td(i,t){return i.type==="category"?i.scale.getLabel(t):t.value}function Qg(i){var t=i.get("interval");return t??"auto"}function Xg(i){return i.type==="category"&&Qg(i.getLabelModel())===0}function s4(i,t){var e={};return P(i.mapDimensionsAll(t),function(r){e[Wg(i,r)]=!0}),dt(e)}function as(i){return i==="middle"||i==="center"}function Bl(i){return i.getShallow("show")}function xS(i){var t=i.get("breaks",!0);if(t!=null)return!xi()||!ude(i.axis)?void 0:t}function ude(i){return(i.dim==="x"||i.dim==="y"||i.dim==="z"||i.dim==="single")&&i.type!=="category"}var Jg=(function(){function i(){}return i.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},i.prototype.getCoordSysModel=function(){},i})();function mde(i){return rs(null,i)}var fde={isDimensionStacked:to,enableDataStack:Hg,getStackedDimension:Wg};function hde(i,t){var e=t;t instanceof Nt||(e=new Nt(t));var r=Zg(e);return r.setExtent(i[0],i[1]),wu(r,e),r}function gde(i){Zi(i,Jg)}function vde(i,t){return t=t||{},Xn(i,null,null,t.state!=="normal")}var l4=[],_de={registerPreprocessor:Og,registerProcessor:Ag,registerPostInit:JC,registerPostUpdate:eS,registerUpdateLifecycle:hu,registerAction:ts,registerCoordinateSystem:tS,registerLayout:iS,registerVisual:aa,registerTransform:oS,registerLoading:Bg,registerMap:nS,registerImpl:dF,PRIORITY:KC,ComponentModel:wt,ComponentView:Ni,SeriesModel:Rr,ChartView:sr,registerComponentModel:function(i){wt.registerClass(i)},registerComponentView:function(i){Ni.registerClass(i)},registerSeriesModel:function(i){Rr.registerClass(i)},registerChartView:function(i){sr.registerClass(i)},registerCustomSeries:function(i,t){Tg(i,t)},registerSubTypeDefaulter:function(i,t){wt.registerSubTypeDefaulter(i,t)},registerPainter:function(i,t){T1(i,t)}};function Lr(i){if(ne(i)){P(i,function(t){Lr(t)});return}je(l4,i)>=0||(l4.push(i),we(i)&&(i={install:i}),i.install(_de))}var bde=1e-8;function c4(i,t){return Math.abs(i-t)<bde}function wS(i,t,e){var r=0,n=i[0];if(!n)return!1;for(var o=1;o<i.length;o++){var a=i[o];r+=An(n[0],n[1],a[0],a[1],t,e),n=a}var s=i[0];return(!c4(n[0],s[0])||!c4(n[1],s[1]))&&(r+=An(n[0],n[1],s[0],s[1],t,e)),r!==0}var xde=[];function TS(i,t){for(var e=0;e<i.length;e++)bi(i[e],i[e],t)}function d4(i,t,e,r){for(var n=0;n<i.length;n++){var o=i[n];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(kn(t,t,o),In(e,e,o))}}function Cde(i){for(var t=0,e=0,r=0,n=i.length,o=i[n-1][0],a=i[n-1][1],s=0;s<n;s++){var l=i[s][0],c=i[s][1],d=o*c-l*a;t+=d,e+=(o+l)*d,r+=(a+c)*d,o=l,a=c}return t?[e/t/3,r/t/3,t]:[i[0][0]||0,i[0][1]||0]}var p4=(function(){function i(t){this.name=t}return i.prototype.setCenter=function(t){this._center=t},i.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},i})();var ES=(function(){function i(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return i})();var kS=(function(){function i(t){this.type="linestring",this.points=t}return i})();var u4=(function(i){xe(t,i);function t(e,r,n){var o=i.call(this,e)||this;return o.type="geoJSON",o.geometries=r,o._center=n&&[n[0],n[1]],o}return t.prototype.calcCenter=function(){for(var e=this.geometries,r,n=0,o=0;o<e.length;o++){var a=e[o],s=a.exterior,l=s&&s.length;l>n&&(r=a,n=l)}if(r)return Cde(r.exterior);
1829var c=this.getBoundingRect();return[c.x+c.width/2,c.y+c.height/2]},t.prototype.getBoundingRect=function(e){var r=this._rect;if(r&&!e)return r;var n=[1/0,1/0],o=[-1/0,-1/0],a=this.geometries;return P(a,function(s){s.type==="polygon"?d4(s.exterior,n,o,e):P(s.points,function(l){d4(l,n,o,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(o[0])&&isFinite(o[1])||(n[0]=n[1]=o[0]=o[1]=0),r=new Be(n[0],n[1],o[0]-n[0],o[1]-n[1]),e||(this._rect=r),r},t.prototype.contain=function(e){var r=this.getBoundingRect(),n=this.geometries;if(!r.contain(e[0],e[1]))return!1;e:for(var o=0,a=n.length;o<a;o++){var s=n[o];if(s.type==="polygon"){var l=s.exterior,c=s.interiors;if(wS(l,e[0],e[1])){for(var d=0;d<(c?c.length:0);d++)if(wS(c[d],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,r,n,o){var a=this.getBoundingRect(),s=a.width/a.height;n?o||(o=n/s):n=s*o;for(var l=new Be(e,r,n,o),c=a.calculateTransform(l),d=this.geometries,u=0;u<d.length;u++){var h=d[u];h.type==="polygon"?(TS(h.exterior,c),P(h.interiors,function(g){TS(g,c)})):P(h.points,function(g){TS(g,c)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var r=new t(e,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},t})(p4);var SWe=(function(i){xe(t,i);function t(e,r){var n=i.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=r,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,r=e.getBoundingRect(),n=[r.x+r.width/2,r.y+r.height/2],o=Yo(xde),a=e;a&&!a.isGeoSVGGraphicRoot;)qn(o,a.getLocalTransform(),o),a=a.parent;return tn(o,o),bi(n,n,o),n},t})(p4);function Sde(i){if(!i.UTF8Encoding)return i;var t=i,e=t.UTF8Scale;e==null&&(e=1024);var r=t.features;return P(r,function(n){var o=n.geometry,a=o.encodeOffsets,s=o.coordinates;if(a)switch(o.type){case"LineString":o.coordinates=m4(s,a,e);break;case"Polygon":IS(s,a,e);break;case"MultiLineString":IS(s,a,e);break;case"MultiPolygon":P(s,function(l,c){return IS(l,a[c],e)})}}),t.UTF8Encoding=!1,t}function IS(i,t,e){for(var r=0;r<i.length;r++)i[r]=m4(i[r],t[r],e)}function m4(i,t,e){for(var r=[],n=t[0],o=t[1],a=0;a<i.length;a+=2){var s=i.charCodeAt(a)-64,l=i.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=o,n=s,o=l,r.push([s/e,l/e])}return r}function ev(i,t){return i=Sde(i),ue(Gt(i.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var r=e.properties,n=e.geometry,o=[];switch(n.type){case"Polygon":var a=n.coordinates;o.push(new ES(a[0],a.slice(1)));break;case"MultiPolygon":P(n.coordinates,function(l){l[0]&&o.push(new ES(l[0],l.slice(1)))});break;case"LineString":o.push(new kS([n.coordinates]));break;case"MultiLineString":o.push(new kS(n.coordinates))}var s=new u4(r[t||"name"],o,r.cp);return s.properties=r,s})}var DS={};$r(DS,{MAX_SAFE_INTEGER:()=>K3,asc:()=>q3,getPercentWithPrecision:()=>j3,getPixelPrecision:()=>Kh,getPrecision:()=>kr,getPrecisionSafe:()=>k1,isNumeric:()=>Mp,isRadianAroundZero:()=>Qs,linearMap:()=>Ip,nice:()=>Vc,numericToNumber:()=>Fn,parseDate:()=>Dr,parsePercent:()=>yi,quantile:()=>$3,quantity:()=>$h,quantityExponent:()=>Nc,reformIntervals:()=>Z3,remRadian:()=>Dp,round:()=>Jt});var MS={};$r(MS,{format:()=>ta,parse:()=>Dr,roundTime:()=>ad});var PS={};$r(PS,{Arc:()=>ml,BezierCurve:()=>Qp,BoundingRect:()=>Be,Circle:()=>pl,CompoundPath:()=>g0,Ellipse:()=>qp,Group:()=>Mt,Image:()=>Wr,IncrementalDisplayable:()=>S0,Line:()=>an,LinearGradient:()=>$c,Polygon:()=>$p,Polyline:()=>Zp,RadialGradient:()=>_0,Rect:()=>Ct,Ring:()=>Kp,Sector:()=>Fo,Text:()=>Zt,clipPointsByRect:()=>Rx,clipRectByRect:()=>Lx,createIcon:()=>bl,extendPath:()=>Ix,extendShape:()=>kx,getShapeClass:()=>Dx,getTransform:()=>Px,initProps:()=>vr,makeImage:()=>Xp,makePath:()=>Xc,mergePath:()=>Mx,registerShape:()=>sn,resizePath:()=>E0,updateProps:()=>hi});var FS={};$r(FS,{addCommas:()=>Jp,capitalFirst:()=>bP,encodeHTML:()=>Oi,formatTime:()=>_P,formatTpl:()=>ld,getTextRect:()=>Jx,getTooltipMarker:()=>Y0,normalizeCssArray:()=>Ro,toCamelCase:()=>sd,truncateText:()=>V1});var RS={};$r(RS,{bind:()=>rt,clone:()=>He,curry:()=>Bt,defaults:()=>qe,each:()=>P,extend:()=>se,filter:()=>Gt,indexOf:()=>je,inherits:()=>lp,isArray:()=>ne,isFunction:()=>we,isObject:()=>ve,isString:()=>pe,map:()=>ue,merge:()=>ct,reduce:()=>mr});
1829var wde=ht(),Tu=ht(),Yr={estimate:1,determine:2};function kd(i){return{out:{noPxChangeTryDetermine:[]},kind:i}}function f4(i,t){var e=ue(t,function(r){return i.scale.parse(r)});return i.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function h4(i,t){var e=i.getLabelModel().get("customValues");if(e){var r=Ed(i),n=i.scale.getExtent(),o=f4(i,e),a=Gt(o,function(s){return s>=n[0]&&s<=n[1]});return{labels:ue(a,function(s){var l={value:s};return{formattedLabel:r(l),rawLabel:i.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return i.type==="category"?Tde(i,t):kde(i)}function g4(i,t,e){var r=i.getTickModel().get("customValues");if(r){var n=i.scale.getExtent(),o=f4(i,r);return{ticks:Gt(o,function(a){return a>=n[0]&&a<=n[1]})}}return i.type==="category"?Ede(i,t):{ticks:ue(i.scale.getTicks(e),function(a){return a.value})}}function Tde(i,t){var e=i.getLabelModel(),r=v4(i,e,t);return!e.get("show")||i.scale.isBlank()?{labels:[]}:r}function v4(i,t,e){var r=Dde(i),n=Qg(t),o=e.kind===Yr.estimate;if(!o){var a=b4(r,n);if(a)return a}var s,l;we(n)?s=S4(i,n):(l=n==="auto"?Mde(i,e):n,s=C4(i,l));var c={labels:s,labelCategoryInterval:l};return o?e.out.noPxChangeTryDetermine.push(function(){return LS(r,n,c),!0}):LS(r,n,c),c}function Ede(i,t){var e=Ide(i),r=Qg(t),n=b4(e,r);if(n)return n;var o,a;if((!t.get("show")||i.scale.isBlank())&&(o=[]),we(r))o=S4(i,r,!0);else if(r==="auto"){var s=v4(i,i.getLabelModel(),kd(Yr.determine));a=s.labelCategoryInterval,o=ue(s.labels,function(l){return l.tickValue})}else a=r,o=C4(i,a,!0);return LS(e,r,{ticks:o,tickCategoryInterval:a})}function kde(i){var t=i.scale.getTicks(),e=Ed(i);return{labels:ue(t,function(r,n){return{formattedLabel:e(r,n),rawLabel:i.scale.getLabel(r),tickValue:r.value,time:r.time,break:r.break}})}}var Ide=_4("axisTick"),Dde=_4("axisLabel");function _4(i){return function(e){return Tu(e)[i]||(Tu(e)[i]={list:[]})}}function b4(i,t){for(var e=0;e<i.list.length;e++)if(i.list[e].key===t)return i.list[e].value}function LS(i,t,e){return i.list.push({key:t,value:e}),e}function Mde(i,t){if(t.kind===Yr.estimate){var e=i.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Tu(i).autoInterval=e,!0}),e}var r=Tu(i).autoInterval;return r??(Tu(i).autoInterval=i.calculateCategoryInterval(t))}function y4(i,t){var e=t.kind,r=Fde(i),n=Ed(i),o=(r.axisRotate-r.labelRotate)/180*Math.PI,a=i.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var c=1,d=40;l>d&&(c=Math.max(1,Math.floor(l/d)));for(var u=s[0],h=i.dataToCoord(u+1)-i.dataToCoord(u),g=Math.abs(h*Math.cos(o)),_=Math.abs(h*Math.sin(o)),y=0,C=0;u<=s[1];u+=c){var x=0,w=0,E=Uh(n({value:u}),r.font,"center","top");x=E.width*1.3,w=E.height*1.3,y=Math.max(y,x,7),C=Math.max(C,w,7)}var k=y/g,D=C/_;isNaN(k)&&(k=1/0),isNaN(D)&&(D=1/0);var I=Math.max(0,Math.floor(Math.min(k,D)));if(e===Yr.estimate)return t.out.noPxChangeTryDetermine.push(rt(Pde,null,i,I,l)),I;var F=x4(i,I,l);return F??I}function Pde(i,t,e){return x4(i,t,e)==null}function x4(i,t,e){var r=wde(i.model),n=i.getExtent(),o=r.lastAutoInterval,a=r.lastTickCount;if(o!=null&&a!=null&&Math.abs(o-t)<=1&&Math.abs(a-e)<=1&&o>t&&r.axisExtent0===n[0]&&r.axisExtent1===n[1])return o;r.lastTickCount=e,r.lastAutoInterval=t,r.axisExtent0=n[0],r.axisExtent1=n[1]}function Fde(i){var t=i.getLabelModel();return{axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function C4(i,t,e){var r=Ed(i),n=i.scale,o=n.getExtent(),a=i.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],d=n.count();c!==0&&l>1&&d/l>2&&(c=Math.round(Math.ceil(c/l)*l));var u=Xg(i),h=a.get("showMinLabel")||u,g=a.get("showMaxLabel")||u;h&&c!==o[0]&&y(o[0]);for(var _=c;_<=o[1];_+=l)y(_);g&&_-l!==o[1]&&y(o[1]);function y(C){var x={value:C};s.push(e?C:{formattedLabel:r(x),rawLabel:n.getLabel(x),tickValue:C,time:void 0,break:void 0})}return s}function S4(i,t,e){var r=i.scale,n=Ed(i),o=[];return P(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;t(a.value,s)&&o.push(e?l:{formattedLabel:n(a),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),o}var w4=[0,1],Rde=(function(){function i(t,e,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=r||[0,0]}return i.prototype.contain=function(t){var e=this._extent,r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=r&&t<=n},i.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},i.prototype.getExtent=function(){return this._extent.slice()},i.prototype.getPixelPrecision=function(t){return Kh(t||this.scale.getExtent(),this._extent)},i.prototype.setExtent=function(t,e){var r=this._extent;r[0]=t,r[1]=e},i.prototype.dataToCoord=function(t,e){var r=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(r=r.slice(),T4(r,n.count())),Ip(t,w4,r,e)}
1829,i.prototype.coordToData=function(t,e){var r=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(r=r.slice(),T4(r,n.count()));var o=Ip(t,r,w4,e);return this.scale.scale(o)},i.prototype.pointToData=function(t,e){},i.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),r=g4(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=r.ticks,o=ue(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=e.get("alignWithLabel");return Lde(this,o,a,t.clamp),o},i.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var r=this.scale.getMinorTicks(e),n=ue(r,function(o){return ue(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return n},i.prototype.getViewLabels=function(t){return t=t||kd(Yr.determine),h4(this,t).labels},i.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},i.prototype.getTickModel=function(){return this.model.getModel("axisTick")},i.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),r=e[1]-e[0]+(this.onBand?1:0);r===0&&(r=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/r},i.prototype.calculateCategoryInterval=function(t){return t=t||kd(Yr.determine),y4(this,t)},i})();function T4(i,t){var e=i[1]-i[0],r=t,n=e/r/2;i[0]+=n,i[1]-=n}function Lde(i,t,e,r){var n=t.length;if(!i.onBand||e||!n)return;var o=i.getExtent(),a,s;if(n===1)t[0].coord=o[0],t[0].onBand=!0,a=t[1]={coord:o[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,c=(t[n-1].coord-t[0].coord)/l;P(t,function(g){g.coord-=c/2,g.onBand=!0});var d=i.scale.getExtent();s=1+d[1]-t[n-1].tickValue,a={coord:t[n-1].coord+c*s,tickValue:d[1]+1,onBand:!0},t.push(a)}var u=o[0]>o[1];h(t[0].coord,o[0])&&(r?t[0].coord=o[0]:t.shift()),r&&h(o[0],t[0].coord)&&t.unshift({coord:o[0],onBand:!0}),h(o[1],a.coord)&&(r?a.coord=o[1]:t.pop()),r&&h(a.coord,o[1])&&t.push({coord:o[1],onBand:!0});function h(g,_){return g=Jt(g),_=Jt(_),u?g>_:g<_}}var tv=Rde;function Ode(i){var t=wt.extend(i);return wt.registerClass(t),t}function Ade(i){var t=Ni.extend(i);return Ni.registerClass(t),t}function Bde(i){var t=Rr.extend(i);return Rr.registerClass(t),t}function Nde(i){var t=sr.extend(i);return sr.registerClass(t),t}var E4=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Vde=1,iv=2,I4=Vde|iv;function Eu(i,t,e){e=e||I4,t?i.dirty|=e:i.dirty&=~e}function D4(i,t){return t=t||I4,i.dirty==null||!!(i.dirty&t)}function io(i){if(i)return D4(i)&&zde(i,i.label,i),i}function zde(i,t,e){var r=t.getComputedTransform();i.transform=D0(i.transform,r);var n=i.localRect=td(i.localRect,t.getBoundingRect()),o=t.style,a=o.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,c=e&&e.marginDefault,d=o.__marginType;d==null&&c&&(a=c,d=xl.textMargin);for(var u=0;u<4;u++)OS[u]=d===xl.minMargin&&l&&l[u]!=null?l[u]:s&&s[u]!=null?s[u]:a?a[u]:0;d===xl.textMargin&&Jc(n,OS,!1,!1);var h=i.rect=td(i.rect,n);return r&&h.applyTransform(r),d===xl.minMargin&&Jc(h,OS,!1,!1),i.axisAligned=I0(r),(i.label=i.label||{}).ignore=t.ignore,Eu(i,!1),Eu(i,!0,iv),i}var OS=[0,0,0,0];function M4(i,t,e){return i.transform=D0(i.transform,e),i.localRect=td(i.localRect,t),i.rect=td(i.rect,t),e&&i.rect.applyTransform(e),i.axisAligned=I0(e),i.obb=void 0,(i.label=i.label||{}).ignore=!1,i}function P4(i,t){if(i){i.label.x+=t.x,i.label.y+=t.y,i.label.markRedraw();var e=i.transform;e&&(e[4]+=t.x,e[5]+=t.y);var r=i.rect;r&&(r.x+=t.x,r.y+=t.y);var n=i.obb;n&&n.fromBoundingRect(i.localRect,e)}}function AS(i,t){for(var e=0;e<E4.length;e++){var r=E4[e];i[r]==null&&(i[r]=t[r])}return io(i)}function k4(i){var t=i.obb;return(!t||D4(i,iv))&&(i.obb=t=t||new C0,t.fromBoundingRect(i.localRect,i.transform),Eu(i,!1,iv)),t}function F4(i){var t=[];i.sort(function(c,d){return(d.suggestIgnore?1:0)-(c.suggestIgnore?1:0)||d.priority-c.priority});function e(c){if(!c.ignore){var d=c.ensureState("emphasis");d.ignore==null&&(d.ignore=!1)}c.ignore=!0}for(var r=0;r<i.length;r++){var n=io(i[r]);if(!n.label.ignore){for(var o=n.label,a=n.labelLine,s=!1,l=0;l<t.length;l++)if(rv(n,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(o),a&&e(a)):t.push(n)}}}function rv(i,t,e,r){return!i||!t||i.label&&i.label.ignore||t.label&&t.label.ignore||!i.rect.intersect(t.rect,e,r)?!1:i.axisAligned&&t.axisAligned?!0:k4(i).intersect(k4(t),e,r)}var Ude=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){if(0)var r;return rs(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var r=new Mt,n=mn("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);r.add(n),n.setStyle(e.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"cir
1829cle":o,l=e.itemHeight*.8,c=mn(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);r.add(c),c.setStyle(e.itemStyle);var d=e.iconRotate==="inherit"?a:e.iconRotate||0;return c.rotation=d*Math.PI/180,c.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill=Ae.color.neutral00,c.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Rr),R4=Ude;function Id(i,t){var e=i.mapDimensionsAll("defaultedLabel"),r=e.length;if(r===1){var n=na(i,t,e[0]);return n!=null?n+"":null}else if(r){for(var o=[],a=0;a<e.length;a++)o.push(na(i,t,e[a]));return o.join(" ")}}function nv(i,t){var e=i.mapDimensionsAll("defaultedLabel");if(!ne(t))return t+"";for(var r=[],n=0;n<e.length;n++){var o=i.getDimensionIndex(e[n]);o>=0&&r.push(t[o])}return r.join(" ")}var Hde=(function(i){xe(t,i);function t(e,r,n,o){var a=i.call(this)||this;return a.updateData(e,r,n,o),a}return t.prototype._createSymbol=function(e,r,n,o,a,s){this.removeAll();var l=mn(e,-1,-1,2,2,null,s);l.attr({z2:Fe(a,100),culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=Wde,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){ll(this.childAt(0))},t.prototype.downplay=function(){cl(this.childAt(0))},t.prototype.setZ=function(e,r){var n=this.childAt(0);n.zlevel=e,n.z=r},t.prototype.setDraggable=function(e,r){var n=this.childAt(0);n.draggable=e,n.cursor=!r&&e?"move":n.cursor},t.prototype.updateData=function(e,r,n,o){this.silent=!1;var a=e.getItemVisual(r,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,r),c=t.getSymbolZ2(e,r),d=a!==this._symbolType,u=o&&o.disableAnimation;if(d){var h=e.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,e,r,l,c,h)}else{var g=this.childAt(0);g.silent=!1;var _={scaleX:l[0]/2,scaleY:l[1]/2};u?g.attr(_):hi(g,_,s,r),w0(g)}if(this._updateCommon(e,r,l,n,o),d){var g=this.childAt(0);if(!u){var _={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:g.style.opacity}};g.scaleX=g.scaleY=0,g.style.opacity=0,vr(g,_,s,r)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,r,n,o,a){var s=this.childAt(0),l=e.hostModel,c,d,u,h,g,_,y,C,x;if(o&&(c=o.emphasisItemStyle,d=o.blurItemStyle,u=o.selectItemStyle,h=o.focus,g=o.blurScope,y=o.labelStatesModels,C=o.hoverScale,x=o.cursorStyle,_=o.emphasisDisabled),!o||e.hasItemOption){var w=o&&o.itemModel?o.itemModel:e.getItemModel(r),E=w.getModel("emphasis");c=E.getModel("itemStyle").getItemStyle(),u=w.getModel(["select","itemStyle"]).getItemStyle(),d=w.getModel(["blur","itemStyle"]).getItemStyle(),h=E.get("focus"),g=E.get("blurScope"),_=E.get("disabled"),y=Ka(w),C=E.getShallow("scale"),x=w.getShallow("cursor")}var k=e.getItemVisual(r,"symbolRotate");s.attr("rotation",(k||0)*Math.PI/180||0);var D=yg(e.getItemVisual(r,"symbolOffset"),n);D&&(s.x=D[0],s.y=D[1]),x&&s.attr("cursor",x);var I=e.getItemVisual(r,"style"),F=I.fill;if(s instanceof Wr){var A=s.style;s.useStyle(se({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},I))}else s.__isEmptyBrush?s.useStyle(se({},I)):s.useStyle(I),s.style.decal=null,s.setColor(F,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var U=e.getItemVisual(r,"liftZ"),q=this._z2;U!=null?q==null&&(this._z2=s.z2,s.z2+=U):q!=null&&(s.z2=q,this._z2=null);var z=a&&a.useNameLabel;Ya(s,y,{labelFetcher:l,labelDataIndex:r,defaultText:Z,inheritColor:F,defaultOpacity:I.opacity});function Z(le){return z?e.getName(le):Id(e,le)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var j=s.ensureState("emphasis");j.style=c,s.ensureState("select").style=u,s.ensureState("blur").style=d;var X=C==null||C===!0?Math.max(1.1,3/this._sizeY):isFinite(C)&&C>0?+C:1;j.scaleX=this._sizeX*X,j.scaleY=this._sizeY*X,this.setSymbolScale(1),dl(this,h,g,_)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,r,n){var o=this.childAt(0),a=pt(this).dataIndex,s=n&&n.animation;if(this.silent=o.silent=!0,n&&n.fadeLabel){var l=o.getTextContent();l&&Zc(l,{style:{opacity:0}
1829},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Zc(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,r){return G5(e.getItemVisual(r,"symbolSize"))},t.getSymbolZ2=function(e,r){return e.getItemVisual(r,"z2")},t})(Mt);function Wde(i,t){this.parent.drift(i,t)}var ku=Hde;function NS(i,t,e,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(e))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&i.getItemVisual(e,"symbol")!=="none"}function L4(i){return i!=null&&!ve(i)&&(i={isIgnore:i}),i||{}}function O4(i){var t=i.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ka(t),cursorStyle:t.get("cursor")}}var Gde=(function(){function i(t){this.group=new Mt,this._SymbolCtor=t||ku}return i.prototype.updateData=function(t,e){this._progressiveEls=null,e=L4(e);var r=this.group,n=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=O4(t),c={disableAnimation:s},d=e.getSymbolPoint||function(u){return t.getItemLayout(u)};o||r.removeAll(),t.diff(o).add(function(u){var h=d(u);if(NS(t,h,u,e)){var g=new a(t,u,l,c);g.setPosition(h),t.setItemGraphicEl(u,g),r.add(g)}}).update(function(u,h){var g=o.getItemGraphicEl(h),_=d(u);if(!NS(t,_,u,e)){r.remove(g);return}var y=t.getItemVisual(u,"symbol")||"circle",C=g&&g.getSymbolType&&g.getSymbolType();if(!g||C&&C!==y)r.remove(g),g=new a(t,u,l,c),g.setPosition(_);else{g.updateData(t,u,l,c);var x={x:_[0],y:_[1]};s?g.attr(x):hi(g,x,n)}r.add(g),t.setItemGraphicEl(u,g)}).remove(function(u){var h=o.getItemGraphicEl(u);h&&h.fadeOut(function(){r.remove(h)},n)}).execute(),this._getSymbolPoint=d,this._data=t},i.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(r,n){var o=t._getSymbolPoint(n);r.setPosition(o),r.markRedraw()})},i.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=O4(t),this._data=null,this.group.removeAll()},i.prototype.incrementalUpdate=function(t,e,r){this._progressiveEls=[],r=L4(r);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(NS(e,a,o,r)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(n),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},i.prototype.eachRendered=function(t){yl(this._progressiveEls||this.group,t)},i.prototype.remove=function(t){var e=this.group,r=this._data;r&&t?r.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},r.hostModel)}):e.removeAll()},i})(),A4=Gde;function ov(i,t,e){var r=i.getBaseAxis(),n=i.getOtherAxis(r),o=qde(n,e),a=r.dim,s=n.dim,l=t.mapDimension(s),c=t.mapDimension(a),d=s==="x"||s==="radius"?1:0,u=ue(i.dimensions,function(_){return t.mapDimension(_)}),h=!1,g=t.getCalculationInfo("stackResultDimension");return to(t,u[0])&&(h=!0,u[0]=g),to(t,u[1])&&(h=!0,u[1]=g),{dataDimsForPoint:u,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!h,valueDim:l,baseDim:c,baseDataOffset:d,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function qde(i,t){var e=0,r=i.scale.getExtent();return t==="start"?e=r[0]:t==="end"?e=r[1]:st(t)&&!isNaN(t)?e=t:r[0]>0?e=r[0]:r[1]<0&&(e=r[1]),e}function av(i,t,e,r){var n=NaN;i.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),r)),isNaN(n)&&(n=i.valueStart);var o=i.baseDataOffset,a=[];return a[o]=e.get(i.baseDim,r),a[1-o]=n,t.dataToPoint(a)}function jde(i,t){var e=[];return t.diff(i).add(function(r){e.push({cmd:"+",idx:r})}).update(function(r,n){e.push({cmd:"=",idx:n,idx1:r})}).remove(function(r){e.push({cmd:"-",idx:r})}).execute(),e}function VS(i,t,e,r,n,o,a,s){for(var l=jde(i,t),c=[],d=[],u=[],h=[],g=[],_=[],y=[],C=ov(n,t,a),x=i.getLayout("points")||[],w=t.getLayout("points")||[],E=0;E<l.length;E++){var k=l[E],D=!0,I=void 0,F=void 0;switch(k.cmd){case"=":I=k.idx*2,F=k.idx1*2;var A=x[I],U=x[I+1],q=w[F],z=w[F+1];(isNaN(A)||isNaN(U))&&(A=q,U=z),c.push(A,U),d.push(q,z),u.push(e[I],e[I+1]),h.push(r[F],r[F+1]),y.push(t.getRawIndex(k.idx1));break;case"+":var Z=k.idx,j=C.dataDimsForPoint,X=n.dataToPoint([t.get(j[0],Z),t.get(j[1],Z)]);F=Z*2,c.push(X[0],X[1]),d.push(w[F],w[F+1]);var le=av(C,n,t,Z);u.push(le[0],le[1]),h.push(r[F],r[F+1]),y.push(t.getRawIndex(Z));break;case"-":D=!1}D&&(g.push(k),_.push(_.length))}_.sort(function(ii,Or){return y[ii]-y[Or]});for(var me=c.length,ze=fn(me),fe=fn(me),Ie=fn(me),Le=fn(me),Oe=[],E=0;E<_.length;E++){var Re=_[E],nt=E*2,Pt=Re*2;ze[nt]=c[Pt],ze[nt+1]=c[Pt+1],fe[nt]=d[Pt],fe[nt+1]=d[Pt+1],Ie[nt]=u[Pt],Ie[nt+1]=u[Pt+1],Le[nt]=h[Pt],Le[nt+1]=h[Pt+1],Oe[E]=g[Re]}return{current:ze,next:fe,stackedOnCurrent:Ie,stackedOnNext:Le,status:Oe}}var ss=Math.min,ls=Math.max;function Nl(i,t){return isNaN(i)||isNaN(t)}function zS(i,t,e,r,n,o,a,s,l){for(var c,d,u,h,g,_,y=e,C=0;C<r;C++){var x=t[y*2],w=t[y*2+1];if(y>=n||y<0)break;if(Nl(x,w)){if(l){y+=o;continue}break}if(y===e)i[o>0?"moveTo":"lineTo"](x,w),u=x,h=w;else{var E=x-c,k=w-d;if(E*E+k*k<.5){y+=o;continue}if(a>0){for(var D=y+o,I=t[D*2],F=t[D*2+1];I===x&&F===w&&C<r;)C++,D+=o,y+=o,I=t[D*2],F=t[D*2+1],x=t[y*2],w=t[y*2+1],E=x-c,k=w-d;var A=C+1;if(l)for(;Nl(I,F)&&A<r;)A++,D+=o,I=t[D*2],F=t[D*2+1];var U=.5,q=0,z=0,Z=void 0,j=void 0;if(A>=r||Nl(I,F))g=x,_=w;else{q=I-c,z=F-d;var X=x-c,le=I-x,me=w-d,ze=F-w,fe=void 0,Ie=void 0;if(s==="x"){fe=Math.abs(X),Ie=Math.abs(le);var Le=q>0?1:-1;g=x-Le*fe*a,_=w,Z=x+Le*Ie*a,j=w}else if(s==="y"){fe=Math.abs(me),Ie=Math.abs(ze);var Oe=z>0?1:-1;g=x,_=w-Oe*fe*a,Z=x,j=w+Oe*Ie*a}else fe=Math.sqrt(X*X+me*me),Ie=Math.sqrt(le*le+ze*ze),U=Ie/(Ie+fe),g=x-q*a*(1-U),_=w-z*a*(1-U),Z=x+q*a*U,j=w+z*a
1829*U,Z=ss(Z,ls(I,x)),j=ss(j,ls(F,w)),Z=ls(Z,ss(I,x)),j=ls(j,ss(F,w)),q=Z-x,z=j-w,g=x-q*fe/Ie,_=w-z*fe/Ie,g=ss(g,ls(c,x)),_=ss(_,ls(d,w)),g=ls(g,ss(c,x)),_=ls(_,ss(d,w)),q=x-g,z=w-_,Z=x+q*Ie/fe,j=w+z*Ie/fe}i.bezierCurveTo(u,h,g,_,x,w),u=Z,h=j}else i.lineTo(x,w)}c=x,d=w,y+=o}return C}var B4=(function(){function i(){this.smooth=0,this.smoothConstraint=!0}return i})(),N4=(function(i){xe(t,i);function t(e){var r=i.call(this,e)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:Ae.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new B4},t.prototype.buildPath=function(e,r){var n=r.points,o=0,a=n.length/2;if(r.connectNulls){for(;a>0&&Nl(n[a*2-2],n[a*2-1]);a--);for(;o<a&&Nl(n[o*2],n[o*2+1]);o++);}for(;o<a;)o+=zS(e,n,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(e,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,o=n.data,a=on.CMD,s,l,c=r==="x",d=[],u=0;u<o.length;){var h=o[u++],g=void 0,_=void 0,y=void 0,C=void 0,x=void 0,w=void 0,E=void 0;switch(h){case a.M:s=o[u++],l=o[u++];break;case a.L:if(g=o[u++],_=o[u++],E=c?(e-s)/(g-s):(e-l)/(_-l),E<=1&&E>=0){var k=c?(_-l)*E+l:(g-s)*E+s;return c?[e,k]:[k,e]}s=g,l=_;break;case a.C:g=o[u++],_=o[u++],y=o[u++],C=o[u++],x=o[u++],w=o[u++];var D=c?Hs(s,g,y,x,e,d):Hs(l,_,C,w,e,d);if(D>0)for(var I=0;I<D;I++){var F=d[I];if(F<=1&&F>=0){var k=c?oi(l,_,C,w,F):oi(s,g,y,x,F);return c?[e,k]:[k,e]}}s=x,l=w;break}}},t})(tt);var Yde=(function(i){xe(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t})(B4),V4=(function(i){xe(t,i);function t(e){var r=i.call(this,e)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Yde},t.prototype.buildPath=function(e,r){var n=r.points,o=r.stackedOnPoints,a=0,s=n.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Nl(n[s*2-2],n[s*2-1]);s--);for(;a<s&&Nl(n[a*2],n[a*2+1]);a++);}for(;a<s;){var c=zS(e,n,a,s,s,1,r.smooth,l,r.connectNulls);zS(e,o,a+c-1,c,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=c+1,e.closePath()}},t})(tt);function US(i,t,e,r,n){var o=i.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,d=e.get(["lineStyle","width"])||0;a-=d/2,s-=d/2,l+=d,c+=d,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var u=new Ct({shape:{x:a,y:s,width:l,height:c}});if(t){var h=i.getBaseAxis(),g=h.isHorizontal(),_=h.inverse;g?(_&&(u.shape.x+=l),u.shape.width=0):(_||(u.shape.y+=c),u.shape.height=0);var y=we(n)?function(C){n(C,u)}:null;vr(u,{shape:{width:l,height:c,x:a,y:s}},e,null,r,y)}return u}function HS(i,t,e){var r=i.getArea(),n=Jt(r.r0,1),o=Jt(r.r,1),a=new Fo({shape:{cx:Jt(i.cx,1),cy:Jt(i.cy,1),r0:n,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var s=i.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=n,vr(a,{shape:{endAngle:r.endAngle,r:o}},e)}return a}function z4(i,t,e,r,n){if(i){if(i.type==="polar")return HS(i,t,e);if(i.type==="cartesian2d")return US(i,t,e,r,n)}else return null;return null}function Iu(i,t){return i.type===t}function U4(i,t){if(i.length===t.length){for(var e=0;e<i.length;e++)if(i[e]!==t[e])return;return!0}}function H4(i){for(var t=1/0,e=1/0,r=-1/0,n=-1/0,o=0;o<i.length;){var a=i[o++],s=i[o++];isNaN(a)||(t=Math.min(a,t),r=Math.max(a,r)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[r,n]]}function W4(i,t){var e=H4(i),r=e[0],n=e[1],o=H4(t),a=o[0],s=o[1];return Math.max(Math.abs(r[0]-a[0]),Math.abs(r[1]-a[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function G4(i){return st(i)?i:i?.5:0}function Kde(i,t,e){if(!e.valueDim)return[];for(var r=t.count(),n=fn(r*2),o=0;o<r;o++){var a=av(e,i,t,o);n[o*2]=a[0],n[o*2+1]=a[1]}return n}function cs(i,t,e,r,n){var o=e.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,c=[],d=[],u=[],h=[];if(n){for(l=0;l<i.length;l+=2){var g=t||i;!isNaN(g[l])&&!isNaN(g[l+1])&&h.push(i[l],i[l+1])}i=h}for(l=0;l<i.length-2;l+=2)switch(u[0]=i[l+2],u[1]=i[l+3],d[0]=i[l],d[1]=i[l+1],s.push(d[0],d[1]),r){case"end":c[a]=u[a],c[1-a]=d[1-a],s.push(c[0],c[1]);break;case"middle":var _=(d[a]+u[a])/2,y=[];c[a]=y[a]=_,c[1-a]=d[1-a],y[1-a]=u[1-a],s.push(c[0],c[1]),s.push(y[0],y[1]);break;default:c[a]=d[a],c[1-a]=u[1-a],s.push(c[0],c[1])}return s.push(i[l++],i[l++]),s}function $de(i,t){var e=[],r=i.length,n,o;function a(d,u,h){var g=d.coord,_=(h-g)/(u.coord-g),y=Mh(_,[d.color,u.color]);return{coord:h,color:y}}for(var s=0;s<r;s++){var l=i[s],c=l.coord;
1829if(c<0)n=l;else if(c>t){o?e.push(a(o,l,t)):n&&e.push(a(n,l,0),a(n,l,t));break}else n&&(e.push(a(n,l,0)),n=null),e.push(l),o=l}return e}function Zde(i,t,e){var r=i.getVisual("visualMeta");if(!(!r||!r.length||!i.count())&&t.type==="cartesian2d"){for(var n,o,a=r.length-1;a>=0;a--){var s=i.getDimensionInfo(r[a].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){o=r[a];break}}if(o){var l=t.getAxis(n),c=ue(o.stops,function(E){return{coord:l.toGlobalCoord(l.dataToCoord(E.value)),color:E.color}}),d=c.length,u=o.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),u.reverse());var h=$de(c,n==="x"?e.getWidth():e.getHeight()),g=h.length;if(!g&&d)return c[0].coord<0?u[1]?u[1]:c[d-1].color:u[0]?u[0]:c[0].color;var _=10,y=h[0].coord-_,C=h[g-1].coord+_,x=C-y;if(x<.001)return"transparent";P(h,function(E){E.offset=(E.coord-y)/x}),h.push({offset:g?h[g-1].offset:.5,color:u[1]||"transparent"}),h.unshift({offset:g?h[0].offset:.5,color:u[0]||"transparent"});var w=new $c(0,0,0,0,h,!0);return w[n]=y,w[n+"2"]=C,w}}}function Qde(i,t,e){var r=i.get("showAllSymbol"),n=r==="auto";if(!(r&&!n)){var o=e.getAxesByScale("ordinal")[0];if(o&&!(n&&Xde(o,t))){var a=t.mapDimension(o.dim),s={};return P(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function Xde(i,t){var e=i.getExtent(),r=Math.abs(e[1]-e[0])/i.scale.count();isNaN(r)&&(r=0);for(var n=t.count(),o=Math.max(1,Math.round(n/5)),a=0;a<n;a+=o)if(ku.getSymbolSize(t,a)[i.isHorizontal()?1:0]*1.5>r)return!1;return!0}function Jde(i,t){return isNaN(i)||isNaN(t)}function epe(i){for(var t=i.length/2;t>0&&Jde(i[t*2-2],i[t*2-1]);t--);return t-1}function q4(i,t){return[i[t*2],i[t*2+1]]}function tpe(i,t,e){for(var r=i.length/2,n=e==="x"?0:1,o,a,s=0,l=-1,c=0;c<r;
1829c++)if(a=i[c*2+n],!(isNaN(a)||isNaN(i[c*2+1-n]))){if(c===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=c;break}s=c,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function j4(i){if(i.get(["endLabel","show"]))return!0;for(var t=0;t<Nn.length;t++)if(i.get([Nn[t],"endLabel","show"]))return!0;return!1}function WS(i,t,e,r){if(Iu(t,"cartesian2d")){var n=r.getModel("endLabel"),o=n.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=j4(r)?function(g,_){i._endLabelOnDuring(g,_,a,s,o,n,t)}:null,c=t.getBaseAxis().isHorizontal(),d=US(t,e,r,function(){var g=i._endLabel;g&&e&&s.originalX!=null&&g.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var u=d.shape,h=Math.max(u.width,u.height);c?(u.y-=h,u.height+=h*2):(u.x-=h,u.width+=h*2)}return l&&l(1,d),d}else return HS(t,e,r)}function ipe(i,t){var e=t.getBaseAxis(),r=e.isHorizontal(),n=e.inverse,o=r?n?"right":"left":"center",a=r?"middle":n?"top":"bottom";return{normal:{align:i.get("align")||o,verticalAlign:i.get("verticalAlign")||a}}}var rpe=(function(i){xe(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Mt,r=new A4;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=e,this._changePolyState=rt(this._changePolyState,this)},t.prototype.render=function(e,r,n){var o=e.coordinateSystem,a=this.group,s=e.getData(),l=e.getModel("lineStyle"),c=e.getModel("areaStyle"),d=s.getLayout("points")||[],u=o.type==="polar",h=this._coordSys,g=this._symbolDraw,_=this._polyline,y=this._polygon,C=this._lineGroup,x=!r.ssr&&e.get("animation"),w=!c.isEmpty(),E=c.get("origin"),k=ov(o,s,E),D=w&&Kde(o,s,k),I=e.get("showSymbol"),F=e.get("connectNulls"),A=I&&!u&&Qde(e,s,o),U=this._data;U&&U.eachItemGraphicEl(function(ii,Or){ii.__temp&&(a.remove(ii),U.setItemGraphicEl(Or,null))}),I||g.remove(),a.add(C);var q=u?!1:e.get("step"),z;o&&o.getArea&&e.get("clip",!0)&&(z=o.getArea(),z.width!=null?(z.x-=.1,z.y-=.1,z.width+=.2,z.height+=.2):z.r0&&(z.r0-=.5,z.r+=.5)),this._clipShapeForSymbol=z;var Z=Zde(s,o,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(_&&h.type===o.type&&q===this._step))I&&g.updateData(s,{isIgnore:A,clipShape:z,disableAnimation:!0,getSymbolPoint:function(ii){return[d[ii*2],d[ii*2+1]]}}),x&&this._initSymbolLabelAnimation(s,o,z),q&&(D&&(D=cs(D,d,o,q,F)),d=cs(d,null,o,q,F)),_=this._newPolyline(d),w?y=this._newPolygon(d,D):y&&(C.remove(y),y=this._polygon=null),u||this._initOrUpdateEndLabel(e,o,Jn(Z)),C.setClipPath(WS(this,o,!0,e));else{w&&!y?y=this._newPolygon(d,D):y&&!w&&(C.remove(y),y=this._polygon=null),u||this._initOrUpdateEndLabel(e,o,Jn(Z));var j=C.getClipPath();if(j){var X=WS(this,o,!1,e);vr(j,{shape:X.shape},e)}else C.setClipPath(WS(this,o,!0,e));I&&g.updateData(s,{isIgnore:A,clipShape:z,disableAnimation:!0,getSymbolPoint:function(ii){return[d[ii*2],d[ii*2+1]]}}),(!U4(this._stackedOnPoints,D)||!U4(this._points,d))&&(x?this._doUpdateAnimation(s,D,o,n,q,E,F):(q&&(D&&(D=cs(D,d,o,q,F)),d=cs(d,null,o,q,F)),_.setShape({points:d}),y&&y.setShape({points:d,stackedOnPoints:D})))}var le=e.getModel("emphasis"),me=le.get("focus"),ze=le.get("blurScope"),fe=le.get("disabled");if(_.useStyle(qe(l.getLineStyle(),{fill:"none",stroke:Z,lineJoin:"bevel"})),Hp(_,e,"lineStyle"),_.style.lineWidth>
18290&&e.get(["emphasis","lineStyle","width"])==="bolder"){var Ie=_.getState("emphasis").style;Ie.lineWidth=+_.style.lineWidth+1}pt(_).seriesIndex=e.seriesIndex,dl(_,me,ze,fe);var Le=G4(e.get("smooth")),Oe=e.get("smoothMonotone");if(_.setShape({smooth:Le,smoothMonotone:Oe,connectNulls:F}),y){var Re=s.getCalculationInfo("stackedOnSeries"),nt=0;y.useStyle(qe(c.getAreaStyle(),{fill:Z,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Re&&(nt=G4(Re.get("smooth"))),y.setShape({smooth:Le,stackedOnSmooth:nt,smoothMonotone:Oe,connectNulls:F}),Hp(y,e,"areaStyle"),pt(y).seriesIndex=e.seriesIndex,dl(y,me,ze,fe)}var Pt=this._changePolyState;s.eachItemGraphicEl(function(ii){ii&&(ii.onHoverStateChange=Pt)}),this._polyline.onHoverStateChange=Pt,this._data=s,this._coordSys=o,this._stackedOnPoints=D,this._points=d,this._step=q,this._valueOrigin=E,e.get("triggerLineEvent")&&(this.packEventData(e,_),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,r){pt(r).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,r,n,o){var a=e.getData(),s=Rn(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),c=a.getItemGraphicEl(s);if(!c){var d=l[s*2],u=l[s*2+1];if(isNaN(d)||isNaN(u)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,u))return;var h=e.get("zlevel")||0,g=e.get("z")||0;c=new ku(a,s),c.x=d,c.y=u,c.setZ(h,g);var _=c.getSymbolPath().getTextContent();_&&(_.zlevel=h,_.z=g,_.z2=this._polyline.z2+1),c.__temp=!0,a.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else sr.prototype.highlight.call(this,e,r,n,o)},t.prototype.downplay=function(e,r,n,o){var a=e.getData(),s=Rn(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else sr.prototype.downplay.call(this,e,r,n,o)},t.prototype._changePolyState=function(e){var r=this._polygon;cx(this._polyline,e),r&&cx(r,e)},t.prototype._newPolyline=function(e){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new N4({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(e,r){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new V4({shape:{points:e,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,r,n){var o,a,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):r.type==="polar"&&(o=s.dim==="angle",a=!0);var c=e.hostModel,d=c.get("animationDuration");we(d)&&(d=d(null));var u=c.get("animationDelay")||0,h=we(u)?u(null):u;e.eachItemGraphicEl(function(g,_){var y=g;if(y){var C=[g.x,g.y],x=void 0,w=void 0,E=void 0;if(n)if(a){var k=n,D=r.pointToCoord(C);o?(x=k.startAngle,w=k.endAngle,E=-D[1]/180*Math.PI):(x=k.r0,w=k.r,E=D[0])}else{var I=n;o?(x=I.x,w=I.x+I.width,E=g.x):(x=I.y+I.height,w=I.y,E=g.y)}var F=w===x?0:(E-x)/(w-x);l&&(F=1-F);var A=we(u)?u(_):d*F+h,U=y.getSymbolPath(),q=U.getTextContent();y.attr({scaleX:0,scaleY:0}),y.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),q&&q.animateFrom({style:{opacity:0}},{duration:300,delay:A}),U.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,r,n){var o=e.getModel("endLabel");if(j4(e)){var a=e.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new Zt({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var d=epe(l);d>=0&&(Ya(s,Ka(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:d,defaultText:function(u,h,g){return g!=null?nv(a,g):Id(a,u)},enableTextSetter:!0},ipe(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,r,n,o,a,s,l){var c=this._endLabel,d=this._polyline;if(c){e<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var u=n.getLayout("points"),h=n.hostModel,g=h.get("connectNulls"),_=s.get("precision"),y=s.get("distance")||0,C=l.getBaseAxis(),x=C.isHorizontal(),w=C.inverse,E=r.shape,k=w?x?E.x:E.y+E.height:x?E.x+E.width:E.y,D=(x?y:0)*(w?-1:1),I=(x?0:-y)*(w?-1:1),F=x?"x":"y",A=tpe(u,k,F),U=A.range,q=U[1]-U[0],z=void 0;if(q>=1){if(q>1&&!g){var Z=q4(u,U[0]);c.attr({x:Z[0]+D,y:Z[1]+I}),a&&(z=h.getRawValue(U[0]))}else{var Z=d.getPointOn(k,F);Z&&c.attr({x:Z[0]+D,y:Z[1]+I});var j=h.getRawValue(U[0]),X=h.getRawValue(U[1]);a&&(z=R1(n,_,j,X,A.t))}o.lastFrameIndex=U[0]}else{var le=e===1||o.lastFrameIndex>0?U[0]:0,Z=q4(u,le);a&&(z=h.getRawValue(le)),c.attr({x:Z[0]+D,y:Z[1]+I})}if(a){var me=id(c);typeof me.setLabelText=="function"&&me.setLabelText(z)}}},t.prototype._doUpdateAnimation=function(e,r,n,o,a,s,l){var c=this._polyline,d=this._polygon,u=e.hostModel,h=VS(this._data,e,this._stackedOnPoints,r,this._coordSys,n,this._valueOrigin,s),g=h.current,_=h.stackedOnCurrent,y=h.next,C=h.stackedOnNext;if(a&&(_=cs(h.stackedOnCurrent,h.current,n,a,l),g=cs(h.current,null,n,a,l),C=cs(h.stackedOnNext,h.next,n,a,l),y=cs(h.next,null,n,a,l)),W4(g,y)>3e3||d&&W4(_,C)>3e3){c.stopAnimation(),c.setShape({points:y}
1829),d&&(d.stopAnimation(),d.setShape({points:y,stackedOnPoints:C}));return}c.shape.__points=h.current,c.shape.points=g;var x={shape:{points:y}};h.current!==g&&(x.shape.__points=h.next),c.stopAnimation(),hi(c,x,u),d&&(d.setShape({points:g,stackedOnPoints:_}),d.stopAnimation(),hi(d,{shape:{stackedOnPoints:C}},u),c.shape.points!==d.shape.points&&(d.shape.points=c.shape.points));for(var w=[],E=h.status,k=0;k<E.length;k++){var D=E[k].cmd;if(D==="="){var I=e.getItemGraphicEl(E[k].idx1);I&&w.push({el:I,ptIdx:k})}}c.animators&&c.animators.length&&c.animators[0].during(function(){d&&d.dirtyShape();for(var F=c.shape.__points,A=0;A<w.length;A++){var U=w[A].el,q=w[A].ptIdx*2;U.x=F[q],U.y=F[q+1],U.markRedraw()}})},t.prototype.remove=function(e){var r=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(o,a){o.__temp&&(r.remove(o),n.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(sr),Y4=rpe;function GS(i,t){return{seriesType:i,plan:Pl(),reset:function(e){var r=e.getData(),n=e.coordinateSystem,o=e.pipelineContext,a=t||o.large;if(n){var s=ue(n.dimensions,function(g){return r.mapDimension(g)}).slice(0,2),l=s.length,c=r.getCalculationInfo("stackResultDimension");to(r,s[0])&&(s[0]=c),to(r,s[1])&&(s[1]=c);var d=r.getStore(),u=r.getDimensionIndex(s[0]),h=r.getDimensionIndex(s[1]);return l&&{progress:function(g,_){for(var y=g.end-g.start,C=a&&fn(y*l),x=[],w=[],E=g.start,k=0;E<g.end;E++){var D=void 0;if(l===1){var I=d.get(u,E);D=n.dataToPoint(I,null,w)}else x[0]=d.get(u,E),x[1]=d.get(h,E),D=n.dataToPoint(x,null,w);a?(C[k++]=D[0],C[k++]=D[1]):_.setItemLayout(E,D.slice())}a&&_.setLayout("points",C)}}}}}}var npe={average:function(i){for(var t=0,e=0,r=0;r<i.length;r++)isNaN(i[r])||(t+=i[r],e++);return e===0?NaN:t/e},sum:function(i){for(var t=0,e=0;e<i.length;e++)t+=i[e]||0;return t},max:function(i){for(var t=-1/0,e=0;e<i.length;e++)i[e]>t&&(t=i[e]);return isFinite(t)?t:NaN},min:function(i){for(var t=1/0,e=0;e<i.length;e++)i[e]<t&&(t=i[e]);return isFinite(t)?t:NaN},nearest:function(i){return i[0]}},ope=function(i){return Math.round(i.length/2)};function Du(i){return{seriesType:i,reset:function(t,e,r){var n=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=n.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),c=a.getOtherAxis(l),d=l.getExtent(),u=r.getDevicePixelRatio(),h=Math.abs(d[1]-d[0])*(u||1),g=Math.round(s/h);if(isFinite(g)&&g>1){o==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(c.dim),1/g)):o==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(c.dim),1/g));var _=void 0;pe(o)?_=npe[o]:we(o)&&(_=o),_&&t.setData(n.downSample(n.mapDimension(c.dim),1/g,_,ope))}}}}}function qS(i){i.registerChartView(Y4),i.registerSeriesModel(R4),i.registerLayout(GS("line",!0)),i.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",r)}}),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,Du("line"))}var K4=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,r){return rs(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,r,n){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(e),s=o.dataToPoint(a);if(n)P(o.getAxes(),function(h,g){if(h.type==="category"&&r!=null){var _=h.getTicksCoords(),y=h.getTickModel().get("alignWithLabel"),C=a[g],x=r[g]==="x1"||r[g]==="y1";if(x&&!y&&(C+=1),_.length<2)return;if(_.length===2){s[g]=h.toGlobalCoord(h.getExtent()[x?1:0]);return}for(var w=void 0,E=void 0,k=1,D=0;D<_.length;D++){var I=_[D].coord,F=D===_.length-1?_[D-1].tickValue+k:_[D].tickValue;if(F===C){E=I;break}else if(F<C)w=I;else if(w!=null&&F>C){E=(I+w)/2;break}D===1&&(k=F-_[0].tickValue)}E==null&&(w?w&&(E=_[_.length-1].coord):E=_[0].coord),s[g]=h.toGlobalCoord(E)}});else{var l=this.getData(),c=l.getLayout("offset"),d=l.getLayout("size"),u=o.getBaseAxis().isHorizontal()?0:1;s[u]+=c+d/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(Rr);Rr.registerClass(K4);var jS=K4;var ape=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return rs(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>e&&(e=r),e},t.prototype.brushSelector=function(e,r,n){return n.rect(r.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=P0(jS.defaultOption,{clip:!0,roundCap:!1,showBackgroun
1829d:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Ae.color.primary,borderWidth:2}},realtimeSort:!1}),t})(jS),$4=ape;var spe=(function(){function i(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return i})(),lpe=(function(i){xe(t,i);function t(e){var r=i.call(this,e)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new spe},t.prototype.buildPath=function(e,r){var n=r.cx,o=r.cy,a=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-a)*.5,c=a+l,d=r.startAngle,u=r.endAngle,h=r.clockwise,g=Math.PI*2,_=h?u-d<g:d-u<g;_||(d=u-(h?g:-g));var y=Math.cos(d),C=Math.sin(d),x=Math.cos(u),w=Math.sin(u);_?(e.moveTo(y*a+n,C*a+o),e.arc(y*c+n,C*c+o,l,-Math.PI+d,d,!h)):e.moveTo(y*s+n,C*s+o),e.arc(n,o,s,d,u,!h),e.arc(x*c+n,w*c+o,l,u-Math.PI*2,u-Math.PI,!h),a!==0&&e.arc(n,o,a,u,d,h)},t})(tt),YS=lpe;function Z4(i,t){t=t||{};var e=t.isRoundCap;return function(r,n,o){var a=n.position;if(!a||a instanceof Array)return $s(r,n,o);var s=i(a),l=n.distance!=null?n.distance:5,c=this.shape,d=c.cx,u=c.cy,h=c.r,g=c.r0,_=(h+g)/2,y=c.startAngle,C=c.endAngle,x=(y+C)/2,w=e?Math.abs(h-g)/2:0,E=Math.cos,k=Math.sin,D=d+h*E(y),I=u+h*k(y),F="left",A="top";switch(s){case"startArc":D=d+(g-l)*E(x),I=u+(g-l)*k(x),F="center",A="top";break;case"insideStartArc":D=d+(g+l)*E(x),I=u+(g+l)*k(x),F="center",A="bottom";break;case"startAngle":D=d+_*E(y)+sv(y,l+w,!1),I=u+_*k(y)+lv(y,l+w,!1),F="right",A="middle";break;case"insideStartAngle":D=d+_*E(y)+sv(y,-l+w,!1),I=u+_*k(y)+lv(y,-l+w,!1),F="left",A="middle";break;case"middle":D=d+_*E(x),I=u+_*k(x),F="center",A="middle";break;case"endArc":D=d+(h+l)*E(x),I=u+(h+l)*k(x),F="center",A="bottom";break;case"insideEndArc":D=d+(h-l)*E(x),I=u+(h-l)*k(x),F="center",A="top";break;case"endAngle":D=d+_*E(C)+sv(C,l+w,!0),I=u+_*k(C)+lv(C,l+w,!0),F="left",A="middle";break;case"insideEndAngle":D=d+_*E(C)+sv(C,-l+w,!0),I=u+_*k(C)+lv(C,-l+w,!0),F="right",A="middle";break;default:return $s(r,n,o)}return r=r||{},r.x=D,r.y=I,r.align=F,r.verticalAlign=A,r}}function Q4(i,t,e,r){if(st(r)){i.setTextConfig({rotation:r});return}else if(ne(t)){i.setTextConfig({rotation:0});return}var n=i.shape,o=n.clockwise?n.startAngle:n.endAngle,a=n.clockwise?n.endAngle:n.startAngle,s=(o+a)/2,l,c=e(t);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:i.setTextConfig({rotation:0});return}var d=Math.PI*1.5-l;c==="middle"&&d>Math.PI/2&&d<Math.PI*1.5&&(d-=Math.PI),i.setTextConfig({rotation:d})}function sv(i,t,e){return t*Math.sin(i)*(e?-1:1)}function lv(i,t,e){return t*Math.cos(i)*(e?1:-1)}function X4(i,t,e){var r=i.get("borderRadius");if(r==null)return e?{cornerRadius:0}:null;ne(r)||(r=[r,r,r,r]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:ue(r,function(o){return Pn(o,n)})}}var KS=Math.max,$S=Math.min;function cpe(i,t){var e=i.getArea&&i.getArea();if(Iu(i,"cartesian2d")){var r=i.getBaseAxis();if(r.type!=="category"||!r.onBand){var n=t.getLayout("bandWidth");r.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var dpe=(function(i){xe(t,i);function t(){var e=i.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,r,n,o){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var a=e.get("coordinateSystem");(a==="cartesian2d"||a==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,r,n):this._renderNormal(e,r,n,o))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,r){this._progressiveEls=[],this._incrementalRenderLarge(e,r)},t.prototype.eachRendered=function(e){yl(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var r=e.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},t.prototype._renderNormal=function(e,r,n,o){var a=this.group,s=e.getData(),l=this._data,c=e.coordinateSystem,d=c.getBaseAxis(),u;c.type==="cartesian2d"?u=d.isHorizontal():c.type==="polar"&&(u=d.dim==="angle");var h=e.isAnimationEnabled()?e:null,g=ppe(e,c);g&&this._enableRealtimeSort(g,s,n);var _=e.get("clip",!0)||g,y=cpe(c,s);a.removeClipPath();
1829var C=e.get("roundCap",!0),x=e.get("showBackground",!0),w=e.getModel("backgroundStyle"),E=w.get("borderRadius")||0,k=[],D=this._backgroundEls,I=o&&o.isInitSort,F=o&&o.type==="changeAxisOrder";function A(z){var Z=cv[c.type](s,z);if(!Z)return null;var j=_pe(c,u,Z);return j.useStyle(w.getItemStyle()),c.type==="cartesian2d"?j.setShape("r",E):j.setShape("cornerRadius",E),k[z]=j,j}s.diff(l).add(function(z){var Z=s.getItemModel(z),j=cv[c.type](s,z,Z);if(j&&(x&&A(z),!(!s.hasValue(z)||!rR[c.type](j)))){var X=!1;_&&(X=J4[c.type](y,j));var le=eR[c.type](e,s,z,j,u,h,d.model,!1,C);g&&(le.forceLabelAnimation=!0),nR(le,s,z,Z,j,e,u,c.type==="polar"),I?le.attr({shape:j}):g?tR(g,h,le,j,z,u,!1,!1):vr(le,{shape:j},e,z),s.setItemGraphicEl(z,le),a.add(le),le.ignore=X}}).update(function(z,Z){var j=s.getItemModel(z),X=cv[c.type](s,z,j);if(X){if(x){var le=void 0;D.length===0?le=A(Z):(le=D[Z],le.useStyle(w.getItemStyle()),c.type==="cartesian2d"?le.setShape("r",E):le.setShape("cornerRadius",E),k[z]=le);var me=cv[c.type](s,z),ze=cR(u,me,c);hi(le,{shape:ze},h,z)}var fe=l.getItemGraphicEl(Z);if(!s.hasValue(z)||!rR[c.type](X)){a.remove(fe);return}var Ie=!1;_&&(Ie=J4[c.type](y,X),Ie&&a.remove(fe));var Le=fe&&(fe.type==="sector"&&C||fe.type==="sausage"&&!C);if(Le&&(fe&&Qc(fe,e,Z),fe=null),fe?w0(fe):fe=eR[c.type](e,s,z,X,u,h,d.model,!0,C),g&&(fe.forceLabelAnimation=!0),F){var Oe=fe.getTextContent();if(Oe){var Re=id(Oe);Re.prevValue!=null&&(Re.prevValue=Re.value)}}else nR(fe,s,z,j,X,e,u,c.type==="polar");I?fe.attr({shape:X}):g?tR(g,h,fe,X,z,u,!0,F):hi(fe,{shape:X},e,z,null),s.setItemGraphicEl(z,fe),fe.ignore=Ie,a.add(fe)}}).remove(function(z){var Z=l.getItemGraphicEl(z);Z&&Qc(Z,e,z)}).execute();var U=this._backgroundGroup||(this._backgroundGroup=new Mt);U.removeAll();for(var q=0;q<k.length;++q)U.add(k[q]);a.add(U),this._backgroundEls=k,this._data=s},t.prototype._renderLarge=function(e,r,n){this._clear(),aR(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,r){this._removeBackground(),aR(r,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var r=e.get("clip",!0)&&z4(e.coordinateSystem,!1,e),n=this.group;r?n.setClipPath(r):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,r,n){var o=this;if(r.count()){var a=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,e,n),this._isFirstFrame=!1;else{var s=function(l){var c=r.getItemGraphicEl(l),d=c&&c.shape;return d&&Math.abs(a.isHorizontal()?d.height:d.width)||0};this._onRendered=function(){o._updateSortWithinSameData(r,s,a,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,r,n){var o=[];return e.each(e.mapDimension(r.dim),function(a,s){var l=n(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:ue(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,r,n){for(var o=n.scale,a=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,c=o.getOrdinalMeta().categories.length;l<c;++l){var d=e.rawIndexOf(a,o.getRawOrdinalNumber(l)),u=d<0?Number.MIN_VALUE:r(e.indexOfRawIndex(d));if(u>s)return!0;s=u}return!1},t.prototype._isOrderDifferentInView=function(e,r){for(var n=r.scale,o=n.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],n.getOrdinalMeta().categories.length-1);a<=s;++a)if(e.ordinalNumbers[a]!==n.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(e,r,n,o){if(this._isOrderChangedWithinSameData(e,r,n)){var a=this._dataSort(e,n,r);this._isOrderDifferentInView(a,n)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(e,r,n){var o=r.baseAxis,a=this._dataSort(e,o,function(s){return e.get(e.mapDimension(r.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(e,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(e,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var r=this.group,n=this._data;
1829e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(o){Qc(o,e,pt(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(sr),J4={cartesian2d:function(i,t){var e=t.width<0?-1:1,r=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var n=i.x+i.width,o=i.y+i.height,a=KS(t.x,i.x),s=$S(t.x+t.width,n),l=KS(t.y,i.y),c=$S(t.y+t.height,o),d=s<a,u=c<l;return t.x=d&&a>n?s:a,t.y=u&&l>o?c:l,t.width=d?0:s-a,t.height=u?0:c-l,e<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),d||u},polar:function(i,t){var e=t.r0<=t.r?1:-1;if(e<0){var r=t.r;t.r=t.r0,t.r0=r}var n=$S(t.r,i.r),o=KS(t.r0,i.r0);t.r=n,t.r0=o;var a=n-o<0;if(e<0){var r=t.r;t.r=t.r0,t.r0=r}return a}},eR={cartesian2d:function(i,t,e,r,n,o,a,s,l){var c=new Ct({shape:se({},r),z2:1});if(c.__dataIndex=e,c.name="item",o){var d=c.shape,u=n?"height":"width";d[u]=0}return c},polar:function(i,t,e,r,n,o,a,s,l){var c=!n&&l?YS:Fo,d=new c({shape:r,z2:1});d.name="item";var u=lR(n);if(d.calculateTextPosition=Z4(u,{isRoundCap:c===YS}),o){var h=d.shape,g=n?"r":"endAngle",_={};h[g]=n?r.r0:r.startAngle,_[g]=r[g],(s?hi:vr)(d,{shape:_},o)}return d}};function ppe(i,t){var e=i.get("realtimeSort",!0),r=t.getBaseAxis();if(e&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function tR(i,t,e,r,n,o,a,s){var l,c;o?(c={x:r.x,width:r.width},l={y:r.y,height:r.height}):(c={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?hi:vr)(e,{shape:l},t,n,null);var d=t?i.baseAxis.model:null;(a?hi:vr)(e,{shape:c},d,n)}function iR(i,t){for(var e=0;e<t.length;e++)if(!isFinite(i[t[e]]))return!0;return!1}var upe=["x","y","width","height"],mpe=["cx","cy","r","startAngle","endAngle"],rR={cartesian2d:function(i){return!iR(i,upe)},polar:function(i){return!iR(i,mpe)}},cv={cartesian2d:function(i,t,e){var r=i.getItemLayout(t);if(!r)return null;var n=e?hpe(e,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*n/2,y:r.y+a*n/2,width:r.width-o*n,height:r.height-a*n}},polar:function(i,t,e){var r=i.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function fpe(i){return i.startAngle!=null&&i.endAngle!=null&&i.startAngle===i.endAngle}function lR(i){return(function(t){var e=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+e;default:return r}}})(i)}function nR(i,t,e,r,n,o,a,s){var l=t.getItemVisual(e,"style");if(s){if(!o.get("roundCap")){var d=i.shape,u=X4(r.getModel("itemStyle"),d,!0);se(d,u),i.setShape(d)}}else{var c=r.get(["itemStyle","borderRadius"])||0;i.setShape("r",c)}i.useStyle(l);var h=r.getShallow("cursor");h&&i.attr("cursor",h);var g=s?a?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":a?n.height>=0?"bottom":"top":n.width>=0?"right":"left",_=Ka(r);Ya(i,_,{labelFetcher:o,labelDataIndex:e,defaultText:Id(o.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:g});var y=i.getTextContent();if(s&&y){var C=r.get(["label","position"]);i.textConfig.inside=C==="middle"?!0:null,Q4(i,C==="outside"?g:C,lR(a),r.get(["label","rotate"]))}eP(y,_,o.getRawValue(e),function(w){return nv(t,w)});var x=r.getModel(["emphasis"]);dl(i,x.get("focus"),x.get("blurScope"),x.get("disabled")),Hp(i,r),fpe(n)&&(i.style.fill="none",i.style.stroke="none",P(i.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function hpe(i,t){var e=i.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var r=i.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,n,o)}var gpe=(function(){function i(){}return i})(),oR=(function(i){xe(t,i);function t(e){var r=i.call(this,e)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new gpe},t.prototype.buildPath=function(e,r){for(var n=r.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],c=this.barWidth,d=0;d<n.length;d+=3)l[o]=c,l[a]=n[d+2],s[o]=n[d+o],s[a]=n[d+a],e.rect(s[0],s[1],l[0],l[1])},t})(tt);function aR(i,t,e,r){var n=i.getData(),o=n.getLayout("valueAxisHorizontal")?1:0,a=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=i.getModel("backgroundStyle"),c=n.getLayout("largeBackgroun
1829dPoints");if(c){var d=new oR({shape:{points:c},incremental:!!r,silent:!0,z2:0});d.baseDimIdx=o,d.largeDataIndices=a,d.barWidth=s,d.useStyle(l.getItemStyle()),t.add(d),e&&e.push(d)}var u=new oR({shape:{points:n.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});u.baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,t.add(u),u.useStyle(n.getVisual("style")),u.style.stroke=null,pt(u).seriesIndex=i.seriesIndex,i.get("silent")||(u.on("mousedown",sR),u.on("mousemove",sR)),e&&e.push(u)}var sR=Fl(function(i){var t=this,e=vpe(t,i.offsetX,i.offsetY);pt(t).dataIndex=e>=0?e:null},30,!1);function vpe(i,t,e){for(var r=i.baseDimIdx,n=1-r,o=i.shape.points,a=i.largeDataIndices,s=[],l=[],c=i.barWidth,d=0,u=o.length/3;d<u;d++){var h=d*3;if(l[r]=c,l[n]=o[h+2],s[r]=o[h+r],s[n]=o[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return a[d]}return-1}function cR(i,t,e){if(Iu(e,"cartesian2d")){var r=t,n=e.getArea();return{x:i?r.x:n.x,y:i?n.y:r.y,width:i?r.width:n.width,height:i?n.height:r.height}}else{var n=e.getArea(),o=t;return{cx:n.cx,cy:n.cy,r0:i?n.r0:o.r0,r:i?n.r:o.r,startAngle:i?o.startAngle:0,endAngle:i?o.endAngle:Math.PI*2}}}function _pe(i,t,e){var r=i.type==="polar"?Fo:Ct;return new r({shape:cR(t,e,i),silent:!0,z2:0})}var dR=dpe;function ZS(i){i.registerChartView(dR),i.registerSeriesModel($4),i.registerLayout(i.PRIORITY.VISUAL.LAYOUT,Bt($F,"bar")),i.registerLayout(i.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZF("bar")),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,Du("bar")),i.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var r=t.componentType||"series";e.eachComponent({mainType:r,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var QS={left:0,right:0,top:0,bottom:0},Mu=["25%","25%"],bpe=(function(i){xe(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,r){var n=Oo(e.outerBounds);i.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&cn(e.outerBounds,n)},t.prototype.mergeOption=function(e,r){i.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&cn(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:QS,outerBoundsContain:"all",outerBoundsClampWidth:Mu[0],outerBoundsClampHeight:Mu[1],backgroundColor:Ae.color.transparent,borderWidth:1,borderColor:Ae.color.neutral30},t})(wt),pR=bpe;var dv=(function(i){xe(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",or).models[0]},t.type="cartesian2dAxis",t})(wt);Zi(dv,Jg);var uR={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:Ae.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Ae.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Ae.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Ae.color.backgroundTint,Ae.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Ae.color.neutral00,borderColor:Ae.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},ype=ct({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}}
1829,uR),XS=ct({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Ae.color.axisMinorSplitLine,width:1}}},uR),xpe=ct({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},XS),Cpe=qe({logBase:10},XS),mR={category:ype,value:XS,time:xpe,log:Cpe};var fR={value:1,category:1,time:1,log:1};var Spe=null;function Vl(){return Spe}function pv(i,t,e,r){P(fR,function(n,o){var a=ct(ct({},mR[o],!0),r,!0),s=(function(l){xe(c,l);function c(){var d=l!==null&&l.apply(this,arguments)||this;return d.type=t+"Axis."+o,d}return c.prototype.mergeDefaultAndTheme=function(d,u){var h=Za(this),g=h?Oo(d):{},_=u.getTheme();ct(d,_.get(o+"Axis")),ct(d,this.getDefaultOption()),d.type=hR(d),h&&cn(d,g,h)},c.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=Su.createByAxisModel(this))},c.prototype.getCategories=function(d){var u=this.option;if(u.type==="category")return d?u.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.prototype.updateAxisBreaks=function(d){var u=Vl();return u?u.updateModelAxisBreak(this,d):{breaks:[]}},c.type=t+"Axis."+o,c.defaultOption=a,c})(e);i.registerComponentModel(s)}),i.registerSubTypeDefaulter(t+"Axis",hR)}function hR(i){return i.type||(i.data?"category":"value")}var wpe=(function(){function i(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return i.prototype.getAxis=function(t){return this._axes[t]},i.prototype.getAxes=function(){return ue(this._dimList,function(t){return this._axes[t]},this)},i.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Gt(this.getAxes(),function(e){return e.scale.type===t})},i.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},i})(),gR=wpe;var uv=["x","y"];function vR(i){return(i.type==="interval"||i.type==="time")&&!i.hasBreaks()}var Tpe=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=uv,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!vR(e)||!vR(r))){var n=e.getExtent(),o=r.getExtent(),a=this.dataToPoint([n[0],o[0]]),s=this.dataToPoint([n[1],o[1]]),l=n[1]-n[0],c=o[1]-o[0];if(!(!l||!c)){var d=(s[0]-a[0])/l,u=(s[1]-a[1])/c,h=a[0]-n[0]*d,g=a[1]-o[0]*u,_=this._transform=[d,0,0,u,h,g];this._invTransform=tn([],_)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var r=this.getAxis("x"),n=this.getAxis("y");return r.contain(r.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,r){var n=this.dataToPoint(e),o=this.dataToPoint(r),a=this.getArea(),s=new Be(n[0],n[1],o[0]-n[0],o[1]-n[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,r,n){n=n||[];var o=e[0],a=e[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return bi(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(o,r)),n[1]=l.toGlobalCoord(l.dataToCoord(a,r)),n},t.prototype.clampData=function(e,r){var n=this.getAxis("x").scale,o=this.getAxis("y").scale,a=n.getExtent(),s=o.getExtent(),l=n.parse(e[0]),c=o.parse(e[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),r[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r},t.prototype.pointToData=function(e,r,n){if(n=n||[],this._invTransform)return bi(n,e,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.coordToData(o.toLocalCoord(e[0]),r),n[1]=a.coordToData(a.toLocalCoord(e[1]),r),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var r=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),o=Math.min(r[0],r[1])-e,a=Math.min(n[0],n[1])-e,s=Math.max(r[0],r[1])-o+e,l=Math.max(n[0],n[1])-a+e;return new Be(o,a,s,l)},t})(gR),_R=Tpe;var Epe=(function(i){xe(t,i);function t(e,r,n,o,a){var s=i.call(this,e,r,n)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),e&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(e,r){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),r)}
1829,t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(tv),bR=Epe;var yR="expandAxisBreak";var ds=Math.PI,kpe=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Ipe=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Ul=ht(),SR=ht(),e2=(function(){function i(t){this.recordMap={},this.resolveAxisNameOverlap=t}return i.prototype.ensureRecord=function(t){var e=t.axis.dim,r=t.componentIndex,n=this.recordMap,o=n[e]||(n[e]=[]);return o[r]||(o[r]={ready:{}})},i})();function Dpe(i,t,e,r){var n=e.axis,o=t.ensureRecord(e),a=[],s,l=r2(i.axisName)&&as(i.nameLocation);P(r,function(_){var y=io(_);if(!(!y||y.label.ignore)){a.push(y);var C=o.transGroup;l&&(C.transform?tn(Pu,C.transform):Yo(Pu),y.transform&&qn(Pu,Pu,y.transform),Be.copy(mv,y.localRect),mv.applyTransform(Pu),s?s.union(mv):Be.copy(s=new Be(0,0,0,0),mv))}});var c=Math.abs(o.dirVec.x)>.1?"x":"y",d=o.transGroup[c];if(a.sort(function(_,y){return Math.abs(_.label[c]-d)-Math.abs(y.label[c]-d)}),l&&s){var u=n.getExtent(),h=Math.min(u[0],u[1]),g=Math.max(u[0],u[1])-h;s.union(new Be(h,0,g,1))}o.stOccupiedRect=s,o.labelInfoList=a}var Pu=fr(),mv=new Be(0,0,0,0),t2=function(i,t,e,r,n,o){if(as(i.nameLocation)){var a=o.stOccupiedRect;a&&wR(M4({},a,o.transGroup.transform),r,n)}else i2(o.labelInfoList,o.dirVec,r,n)};function wR(i,t,e){var r=new zt;rv(i,t,r,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&P4(t,r)}function i2(i,t,e,r){for(var n=zt.dot(r,t)>=0,o=0,a=i.length;o<a;o++){var s=i[n?o:a-1-o];s.label.ignore||wR(s,e,r)}}var zl=(function(){function i(t,e,r,n){this.group=new Mt,this._axisModel=t,this._api=e,this._local={},this._shared=n||new e2(t2),this._resetCfgDetermined(r)}return i.prototype.updateCfg=function(t){if(0)var e;var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},i.prototype.__getRawCfg=function(){return this._cfg.raw},i.prototype._resetCfgDetermined=function(t){var e=this._axisModel,r=e.getDefaultOption?e.getDefaultOption():{},n=Fe(t.axisName,e.get("name")),o=e.get("nameMoveOverlap");(o==null||o==="auto")&&(o=Fe(t.defaultNameMoveOverlap,!0));var a={raw:t,position:t.position,rotation:t.rotation,nameDirection:Fe(t.nameDirection,1),tickDirection:Fe(t.tickDirection,1),labelDirection:Fe(t.labelDirection,1),labelOffset:Fe(t.labelOffset,0),silent:Fe(t.silent,!0),axisName:n,nameLocation:En(e.get("nameLocation"),r.nameLocation,"end"),shouldNameMoveOverlap:r2(n)&&o,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=a;var s=new Mt({x:a.position[0],y:a.position[1],rotation:a.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new zt(Math.cos(-a.rotation),Math.sin(-a.rotation))},i.prototype.build=function(t,e){var r=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),P(Mpe,function(n){t[n]&&Ppe[n](r._cfg,r._local,r._shared,r._axisModel,r.group,r._transformGroup,r._api,e||{})}),this},i.innerTextLayout=function(t,e,r){var n=Dp(e-t),o,a;return Qs(n)?(a=r>0?"top":"bottom",o="center"):Qs(n-ds)?(a=r>0?"bottom":"top",o="center"):(a="middle",n>0&&n<ds?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:n,textAlign:o,textVerticalAlign:a}},i.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},i.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},i})(),Mpe=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Ppe={axisLine
1829:function(i,t,e,r,n,o,a){if(0)var s;var l=r.get(["axisLine","show"]);if(l==="auto"&&(l=!0,i.raw.axisLineAutoShow!=null&&(l=!!i.raw.axisLineAutoShow)),!!l){var c=r.axis.getExtent(),d=o.transform,u=[c[0],0],h=[c[1],0],g=u[0]>h[0];d&&(bi(u,u,d),bi(h,h,d));var _=se({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),y={strokeContainThreshold:i.raw.strokeContainThreshold||5,silent:!0,z2:1,style:_};if(r.get(["axisLine","breakLine"])&&r.axis.scale.hasBreaks())Vl().buildAxisBreakLine(r,n,o,y);else{var C=new an(se({shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]}},y));_l(C.shape,C.style.lineWidth),C.anid="line",n.add(C)}var x=r.get(["axisLine","symbol"]);if(x!=null){var w=r.get(["axisLine","symbolSize"]);pe(x)&&(x=[x,x]),(pe(w)||st(w))&&(w=[w,w]);var E=yg(r.get(["axisLine","symbolOffset"])||0,w),k=w[0],D=w[1];P([{rotate:i.rotation+Math.PI/2,offset:E[0],r:0},{rotate:i.rotation-Math.PI/2,offset:E[1],r:Math.sqrt((u[0]-h[0])*(u[0]-h[0])+(u[1]-h[1])*(u[1]-h[1]))}],function(I,F){if(x[F]!=="none"&&x[F]!=null){var A=mn(x[F],-k/2,-D/2,k,D,_.stroke,!0),U=I.r+I.offset,q=g?h:u;A.attr({rotation:I.rotate,x:q[0]+U*Math.cos(i.rotation),y:q[1]-U*Math.sin(i.rotation),silent:!0,z2:11}),n.add(A)}})}}}
1829,axisTickLabelEstimate:function(i,t,e,r,n,o,a,s){if(0)var l;var c=CR(t,n,s);c&&xR(i,t,e,r,n,o,a,Yr.estimate)},axisTickLabelDetermine:function(i,t,e,r,n,o,a,s){if(0)var l;var c=CR(t,n,s);c&&xR(i,t,e,r,n,o,a,Yr.determine);var d=Ope(i,n,o,r);Lpe(i,t.labelLayoutList,d),Ape(i,n,o,r,i.tickDirection)},axisName:function(i,t,e,r,n,o,a,s){var l=e.ensureRecord(r);if(0)var c;t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var d=i.axisName;if(r2(d)){var u=i.nameLocation,h=i.nameDirection,g=r.getModel("nameTextStyle"),_=r.get("nameGap")||0,y=r.axis.getExtent(),C=r.axis.inverse?-1:1,x=new zt(0,0),w=new zt(0,0);u==="start"?(x.x=y[0]-C*_,w.x=-C):u==="end"?(x.x=y[1]+C*_,w.x=C):(x.x=(y[0]+y[1])/2,x.y=i.labelOffset+h*_,w.y=h);var E=fr();w.transform(Ls(E,E,i.rotation));var k=r.get("nameRotate");k!=null&&(k=k*ds/180);var D,I;as(u)?D=zl.innerTextLayout(i.rotation,k??i.rotation,h):(D=Fpe(i.rotation,u,k||0,y),I=i.raw.axisNameAvailableWidth,I!=null&&(I=Math.abs(I/Math.sin(D.rotation)),!isFinite(I)&&(I=null)));var F=g.getFont(),A=r.get("nameTruncate",!0)||{},U=A.ellipsis,q=Ps(i.raw.nameTruncateMaxWidth,A.maxWidth,I),z=s.nameMarginLevel||0,Z=new Zt({x:x.x,y:x.y,rotation:D.rotation,silent:zl.isLabelSilent(r),style:Xn(g,{text:d,font:F,overflow:"truncate",width:q,ellipsis:U,fill:g.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:g.get("align")||D.textAlign,verticalAlign:g.get("verticalAlign")||D.textVerticalAlign}),z2:1});if(ed({el:Z,componentModel:r,itemName:d}),Z.__fullText=d,Z.anid="name",r.get("triggerEvent")){var j=zl.makeAxisEventDataBase(r);j.targetType="axisName",j.name=d,pt(Z).eventData=j}o.add(Z),Z.updateTransform(),t.nameEl=Z;var X=l.nameLayout=io({label:Z,priority:Z.z2,defaultAttr:{ignore:Z.ignore},marginDefault:as(u)?kpe[z]:Ipe[z]});if(l.nameLocation=u,n.add(Z),Z.decomposeTransform(),i.shouldNameMoveOverlap&&X){var le=e.ensureRecord(r);e.resolveAxisNameOverlap(i,e,r,X,w,le)}}}};function xR(i,t,e,r,n,o,a,s){ER(t)||Bpe(i,t,n,s,r,a);var l=t.labelLayoutList;Npe(i,r,l,o),Upe(r,i.rotation,l);var c=i.optionHideOverlap;Rpe(r,l,c),c&&F4(Gt(l,function(d){return d&&!d.label.ignore})),Dpe(i,e,r,l)}function Fpe(i,t,e,r){var n=Dp(e-i),o,a,s=r[0]>r[1],l=t==="start"&&!s||t!=="start"&&s;return Qs(n-ds/2)?(a=l?"bottom":"top",o="center"):Qs(n-ds*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",n<ds*1.5&&n>ds/2?o=l?"left":"right":o=l?"right":"left"),{rotation:n,textAlign:o,textVerticalAlign:a}}function Rpe(i,t,e){if(Xg(i.axis))return;function r(s,l,c){var d=io(t[l]),u=io(t[c]);if(!(!d||!u)){if(s===!1||d.suggestIgnore){Fu(d.label);return}if(u.suggestIgnore){Fu(u.label);return}var h=.1;if(!e){var g=[0,0,0,0];d=AS({marginForce:g},d),u=AS({marginForce:g},u)}rv(d,u,null,{touchThreshold:h})&&Fu(s?u.label:d.label)}}var n=i.get(["axisLabel","showMinLabel"]),o=i.get(["axisLabel","showMaxLabel"]),a=t.length;r(n,0,1),r(o,a-1,a-2)}function Lpe(i,t,e){i.showMinorTicks||P(t,function(r){if(r&&r.label.ignore)for(var n=0;n<e.length;n++){var o=e[n],a=SR(o),s=Ul(r.label);if(a.tickValue!=null&&!a.onBand&&a.tickValue===s.tickValue){Fu(o);return}}})}function Fu(i){i&&(i.ignore=!0)}function TR(i,t,e,r,n){for(var o=[],a=[],s=[],l=0;l<i.length;l++){var c=i[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=e,t&&(bi(a,a,t),bi(s,s,t));var d=new an({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});_l(d.shape,d.style.lineWidth),d.anid=n+"_"+i[l].tickValue,o.push(d);var u=SR(d);u.onBand=!!i[l].onBand,u.tickValue=i[l].tickValue}return o}function Ope(i,t,e,r){var n=r.axis,o=r.getModel("axisTick"),a=o.get("show");if(a==="auto"&&(a=!0,i.raw.axisTickAutoShow!=null&&(a=!!i.raw.axisTickAutoShow)),!a||n.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),c=n.getTicksCoords(),d=TR(c,e.transform,l,qe(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<d.length;u++)t.add(d[u]);return d}function Ape(i,t,e,r,n){var o=r.axis,a=r.getModel("minorTick");if(!(!i.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),c=n*a.get("length"),d=qe(l.getLineStyle(),qe(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),u=0;u<s.length;u++)for(var h=TR(s[u],e.transform,c,d,"minorticks_"+u),g=0;g<h.length;g++)t.add(h[g])}}function CR(i,t,e){if(ER(i)){var r=i.axisLabelsCreationContext,n=r.out.noPxChangeTryDetermine;if(e.noPxChange){for(var o=!0,a=0;a<n.length;a++)o=o&&n[a]();if(o)return!1}n.length&&(t.remove(i.labelGroup),JS(i,null,null,null))}return!0}function Bpe(i,t,e,r,n,o){var a=n.axis,s=Ps(i.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new Mt;e.add(l);var c=kd(r);if(!s||a.scale.isBlank()){JS(t,[],l,c);return}var d=n.getModel("axisLabel"),u=a.getViewLabels(c),h=(Ps(i.raw.labelRotate,d.get("rotate"))||0)*ds/180,g=zl.innerTextLayout(i.rotation,h,i.labelDirection),_=n.getCategories&&n.getCategories(!0),y=[],C=n.get("triggerEvent"),x=1/0,w=-1/0;P(u,function(k,D){var I,F=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(k.tickValue):k.tickValue,A=k.formattedLabel,U=k.rawLabel,q=d;if(_&&_[F]){var z=_[F];ve(z)&&z.textStyle&&(q=new Nt(z.textStyle,d,n.ecModel))}var Z=q.getTextColor()||n.get(["axisLine","lineStyle","color"]),j=q.getShallow("align",!0)||g.textAlign,X=Fe(q.getShallow("alignMinLabel",!0),j),le=Fe(q.getShallow("alignMaxLabel",!0),j),me=q.getShallow("verticalAlign",!0)||q.getShallow("baseline",!0)||g.textVerticalAlign,ze=Fe(q.getShallow("verticalAlignMinLabel",!0),me),fe=Fe(q.getShallow("verticalAlignMaxLabel",!0),me),Ie=10+(((I=k.time)===null||I===void 0?void 0:I.level)||0);x=Math.min(x,Ie),w=Math.max(w,Ie);var Le=new Zt({x:0,y:0,rotation:0,silent:zl.isLabelSilent(n),z2:Ie,style:Xn(q,{text:A,align:D===0?X:D===u.length-1?le:j,verticalAlign:D===0?ze:D===u.length-1?fe:me,fill:we(Z)?Z(a.type==="category"?U:a.type==="value"?F+"":F,D):Z})});Le.anid="label_"+F;var Oe=Ul(Le);if(Oe.break=k.break,Oe.tickValue=F,Oe.layoutRotation=g.rotation,ed({el:Le,componentModel:n,itemName:A,formatterParamsExtra:{isTruncated:function(){return Le.isTruncated},value:U,tickIndex:D}}),C){var Re=zl.makeAxisEventDataBase(n);Re.targetType="axisLabel",Re.value=U,Re.tickIndex=D,k.break&&(Re.break={start:k.break.parsedBreak.vmin,end:k.break.parsedBreak.vmax}),a.type==="category"&&(Re.dataIndex=F),pt(Le).eventData=Re,k.break&&zpe(n,o,Le,k.break)}y.push(Le),l.add(Le)});
1829var E=ue(y,function(k){return{label:k,priority:Ul(k).break?k.z2+(w-x+1):k.z2,defaultAttr:{ignore:k.ignore}}});JS(t,E,l,c)}function ER(i){return!!i.labelLayoutList}function JS(i,t,e,r){i.labelLayoutList=t,i.labelGroup=e,i.axisLabelsCreationContext=r}function Npe(i,t,e,r){var n=t.get(["axisLabel","margin"]);P(e,function(o,a){var s=io(o);if(s){var l=s.label,c=Ul(l);s.suggestIgnore=l.ignore,l.ignore=!1,Vh(la,Vpe),la.x=t.axis.dataToCoord(c.tickValue),la.y=i.labelOffset+i.labelDirection*n,la.rotation=c.layoutRotation,r.add(la),la.updateTransform(),r.remove(la),la.decomposeTransform(),Vh(l,la),l.markRedraw(),Eu(s,!0),io(s)}})}var la=new Ct,Vpe=new Ct;function r2(i){return!!i}function zpe(i,t,e,r){e.on("click",function(n){var o={type:yR,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};o[i.axis.dim+"AxisIndex"]=i.componentIndex,t.dispatchAction(o)})}function Upe(i,t,e){var r=xi();if(r){var n=r.retrieveAxisBreakPairs(e,function(a){return a&&Ul(a.label).break},!0),o=i.get(["breakLabelLayout","moveOverlap"],!0);(o===!0||o==="auto")&&P(n,function(a){Vl().adjustBreakLabelPair(i.axis.inverse,t,[io(e[a[0]]),io(e[a[1]])])})}}var fv=zl;function Ru(i,t,e){e=e||{};var r=t.axis,n={},o=r.getAxesOnZeroOf()[0],a=r.position,s=o?"onZero":a,l=r.dim,c=[i.x,i.x+i.width,i.y,i.y+i.height],d={left:0,right:1,top:0,bottom:1,onZero:2},u=t.get("offset")||0,h=l==="x"?[c[2]-u,c[3]+u]:[c[0]-u,c[1]+u];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));h[d.onZero]=Math.max(Math.min(g,h[1]),h[0])}n.position=[l==="y"?h[d[s]]:c[0],l==="x"?h[d[s]]:c[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var _={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=_[a],n.labelOffset=o?h[d[a]]-h[d.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ps(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var y=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-y:y,n.z2=1,n}function kR(i){return i.coordinateSystem&&i.coordinateSystem.type==="cartesian2d"}function n2(i){var t={xAxisModel:null,yAxisModel:null};return P(t,function(e,r){var n=r.replace(/Model$/,""),o=i.getReferringComponents(n,or).models[0];t[r]=o}),t}function IR(i,t,e,r,n,o){for(var a=Ru(i,e),s=!1,l=!1,c=0;c<t.length;c++)xu(t[c].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new fv(e,r,a,n)}function DR(i,t,e){var r=Ru(t,e);if(0)var n;i.updateCfg(r)}function MR(i,t,e){var r,n=sa.prototype,o=n.getTicks.call(e),a=n.getTicks.call(e,{expandToNicedExtent:!0}),s=o.length-1,l=n.getInterval.call(e),c=yS(i,t),d=c.extent,u=c.fixMin,h=c.fixMax;i.type==="log"&&(d=Cu(i.base,d,!0)),i.setBreaksFromOption(xS(t)),i.setExtent(d[0],d[1]),i.calcNiceExtent({splitNumber:s,fixMin:u,fixMax:h});var g=n.getExtent.call(i);u&&(d[0]=g[0]),h&&(d[1]=g[1]);var _=n.getInterval.call(i),y=d[0],C=d[1];if(u&&h)_=(C-y)/s;else if(u)for(C=d[0]+_*s;C<d[1]&&isFinite(C)&&isFinite(d[1]);)_=Gg(_),C=d[0]+_*s;else if(h)for(y=d[1]-_*s;y>d[0]&&isFinite(y)&&isFinite(d[0]);)_=Gg(_),y=d[1]-_*s;else{var x=i.getTicks().length-1;x>s&&(_=Gg(_));var w=_*s;C=Math.ceil(d[1]/_)*_,y=Jt(C-w),y<0&&d[0]>=0?(y=0,C=Jt(w)):C>0&&d[1]<=0&&(C=0,y=-Jt(w))}var E=(o[0].value-a[0].value)/l,k=(o[s].value-a[s].value)/l;if(n.setExtent.call(i,y+_*E,C+_*k),n.setInterval.call(i,_),(E||k)&&n.setNiceExtent.call(i,y+_,C-_),0)var D}var PR=[[3,1],[0,2]],Wpe=(function(){function i(t,e,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=uv,this._initCartesian(t,e,r),this.model=t}return i.prototype.getRect=function(){return this._rect},i.prototype.update=function(t,e){var r=this._axesMap;this._updateScale(t,this.model);function n(a){var s,l=dt(a),c=l.length;if(c){for(var d=[],u=c-1;u>=0;u--){var h=+l[u],g=a[h],_=g.model,y=g.scale;xu(y)&&_.get("alignTicks")&&_.get("interval")==null?d.push(g):(wu(y,_),xu(y)&&(s=g))}d.length&&(s||(s=d.pop(),wu(s.scale,s.model)),P(d,function(C){MR(C.scale,C.model,s.scale)}
1829))}}n(r.x),n(r.y);var o={};P(r.x,function(a){FR(r,"y",a,o)}),P(r.y,function(a){FR(r,"x",a,o)}),this.resize(this.model,e)},i.prototype.resize=function(t,e,r){var n=J0(t,e),o=this._rect=Lo(t.getBoxLayoutParams(),n.refContainer),a=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(a2(a,o),!r){var c=qpe(o,s,a,l,e),d=void 0;if(l)OR?(OR(this._axesList,o),a2(a,o)):d=AR(o.clone(),"axisLabel",null,o,a,c,n);else{var u=jpe(t,o,n),h=u.outerBoundsRect,g=u.parsedOuterBoundsContain,_=u.outerBoundsClamp;h&&(d=AR(h,g,_,o,a,c,n))}BR(o,a,Yr.determine,null,d,n)}P(this._coordsList,function(y){y.calcAffineTransform()})},i.prototype.getAxis=function(t,e){var r=this._axesMap[t];if(r!=null)return r[e||0]},i.prototype.getAxes=function(){return this._axesList.slice()},i.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var r="x"+t+"y"+e;return this._coordsMap[r]}ve(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,o=this._coordsList;n<o.length;n++)if(o[n].getAxis("x").index===t||o[n].getAxis("y").index===e)return o[n]},i.prototype.getCartesians=function(){return this._coordsList.slice()},i.prototype.convertToPixel=function(t,e,r){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(r):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(r)):null},i.prototype.convertFromPixel=function(t,e,r){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(r):n.axis?n.axis.coordToData(n.axis.toLocalCoord(r)):null},i.prototype._findConvertTarget=function(t){var e=t.seriesModel,r=t.xAxisModel||e&&e.getReferringComponents("xAxis",or).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",or).models[0],o=t.gridModel,a=this._coordsList,s,l;if(e)s=e.coordinateSystem,je(a,s)<0&&(s=null);else if(r&&n)s=this.getCartesian(r.componentIndex,n.componentIndex);else if(r)l=this.getAxis("x",r.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(o){var c=o.coordinateSystem;c===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},i.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},i.prototype._initCartesian=function(t,e,r){var n=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",c("x"),this),e.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,P(s.x,function(d,u){P(s.y,function(h,g){var _="x"+u+"y"+g,y=new _R(_);y.master=n,y.model=t,n._coordsMap[_]=y,n._coordsList.push(y),y.addAxis(d),y.addAxis(h)})});function c(d){return function(u,h){if(o2(u,t)){var g=u.get("position");d==="x"?g!=="top"&&g!=="bottom"&&(g=a.bottom?"top":"bottom"):g!=="left"&&g!=="right"&&(g=a.left?"right":"left"),a[g]=!0;var _=new bR(d,Zg(u),[0,0],u.get("type"),g),y=_.type==="category";_.onBand=y&&u.get("boundaryGap"),_.inverse=u.get("inverse"),u.axis=_,_.model=u,_.grid=o,_.index=h,o._axesList.push(_),s[d][h]=_,l[d]++}}}},i.prototype._updateScale=function(t,e){P(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var o=n.model.get("categorySortInfo");n.scale.setSortInfo(o)}}),t.eachSeries(function(n){if(kR(n)){var o=n2(n),a=o.xAxisModel,s=o.yAxisModel;if(!o2(a,e)||!o2(s,e))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),c=n.getData(),d=l.getAxis("x"),u=l.getAxis("y");r(c,d),r(c,u)}},this);function r(n,o){P(s4(n,o.dim),function(a){o.scale.unionExtentFromData(n,a)})}},i.prototype.getTooltipAxes=function(t){var e=[],r=[];return P(this.getCartesians(),function(n){var o=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),a=n.getOtherAxis(o);je(e,o)<0&&e.push(o),je(r,a)<0&&r.push(a)}),{baseAxes:e,otherAxes:r}},i.create=function(t,e){var r=[];return t.eachComponent("grid",function(n,o){var a=new i(n,t,e);a.name="grid_"+o,a.resize(n,e,!0),n.coordinateSystem=a,r.push(a)}),t.eachSeries(function(n){xP({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:o});function o(){var a=n2(n),s=a.xAxisModel,l=a.yAxisModel,c=s.getCoordSysModel(),d=c.coordinateSystem;return d.getCartesian(s.componentIndex,l.componentIndex)}}),r},i.dimensions=uv,i})();function o2(i,t){return i.getCoordSysModel()===t}function FR(i,t,e,r){e.getAxesOnZeroOf=function(){return o?[o]:[]};var n=i[t],o,a=e.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)RR(n[l])&&(o=n[l]);else for(var c in n)if(n.hasOwnProperty(c)&&RR(n[c])&&!r[d(n[c])]){o=n[c];break}
1829o&&(r[d(o)]=!0);function d(u){return u.dim+"_"+u.index}}function RR(i){return i&&i.type!=="category"&&i.type!=="time"&&a4(i)}function Gpe(i,t){var e=i.getExtent(),r=e[0]+e[1];i.toGlobalCoord=i.dim==="x"?function(n){return n+t}:function(n){return r-n+t},i.toLocalCoord=i.dim==="x"?function(n){return n-t}:function(n){return r-n+t}}function a2(i,t){P(i.x,function(e){return LR(e,t.x,t.width)}),P(i.y,function(e){return LR(e,t.y,t.height)})}function LR(i,t,e){var r=[0,e],n=i.inverse?1:0;i.setExtent(r[n],r[1-n]),Gpe(i,t)}var OR;function AR(i,t,e,r,n,o,a){BR(r,n,Yr.estimate,t,!1,a);var s=[0,0,0,0];c(0),c(1),d(r,0,NaN),d(r,1,NaN);var l=Ey(s,function(h){return h>0})==null;return Jc(r,s,!0,!0,e),a2(n,r),l;function c(h){P(n[ea[h]],function(g){if(Bl(g.model)){var _=o.ensureRecord(g.model),y=_.labelInfoList;if(y)for(var C=0;C<y.length;C++){var x=y[C],w=g.scale.normalize(Ul(x.label).tickValue);w=h===1?1-w:w,d(x.rect,h,w),d(x.rect,1-h,NaN)}var E=_.nameLayout;if(E){var w=as(_.nameLocation)?.5:NaN;d(E.rect,h,w),d(E.rect,1-h,NaN)}}})}function d(h,g,_){var y=i[ea[g]]-h[ea[g]],C=h[vl[g]]+h[ea[g]]-(i[vl[g]]+i[ea[g]]);y=u(y,1-_),C=u(C,_);var x=PR[g][0],w=PR[g][1];s[x]=Ir(s[x],y),s[w]=Ir(s[w],C)}function u(h,g){return h>0&&!Go(g)&&g>1e-4&&(h/=g),h}}function qpe(i,t,e,r,n){var o=new e2(Ype);return P(e,function(a){return P(a,function(s){if(Bl(s.model)){var l=!r;s.axisBuilder=IR(i,t,s.model,n,o,l)}})}),o}function BR(i,t,e,r,n,o){var a=e===Yr.determine;P(t,function(c){return P(c,function(d){Bl(d.model)&&(DR(d.axisBuilder,i,d.model),d.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(c){s[ea[1-c]]=i[vl[c]]<=o.refContainer[vl[c]]*.5?0:1-c===1?2:1}P(t,function(c,d){return P(c,function(u){Bl(u.model)&&((r==="all"||a)&&u.axisBuilder.build({axisName:!0},{nameMarginLevel:s[d]}),a&&u.axisBuilder.build({axisLine:!0}))})})}function jpe(i,t,e){var r,n=i.get("outerBoundsMode",!0);n==="same"?r=t.clone():(n==null||n==="auto")&&(r=Lo(i.get("outerBounds",!0)||QS,e.refContainer));var o=i.get("outerBoundsContain",!0),a;o==null||o==="auto"||je(["all","axisLabel"],o)<0?a="all":a=o;var s=[Yh(Fe(i.get("outerBoundsClampWidth",!0),Mu[0]),t.width),Yh(Fe(i.get("outerBoundsClampHeight",!0),Mu[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:a,outerBoundsClamp:s}}var Ype=function(i,t,e,r,n,o){var a=e.axis.dim==="x"?"y":"x";t2(i,t,e,r,n,o),as(i.nameLocation)||P(t.recordMap[a],function(s){s&&s.labelInfoList&&s.dirVec&&i2(s.labelInfoList,s.dirVec,r,n)})},NR=Wpe;function VR(i,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Kpe(e,i,t),e.seriesInvolved&&Zpe(e,i),e}function Kpe(i,t,e){var r=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),o=n.get("link",!0)||[],a=[];P(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Dd(s.model),c=i.coordSysAxesInfo[l]={};i.coordSysMap[l]=s;var d=s.model,u=d.getModel("tooltip",r);if(P(s.getAxes(),Bt(y,!1,null)),s.getTooltipAxes&&r&&u.get("show")){var h=u.get("trigger")==="axis",g=u.get(["axisPointer","type"])==="cross",_=s.getTooltipAxes(u.get(["axisPointer","axis"]));(h||g)&&P(_.baseAxes,Bt(y,g?"cross":!0,h)),g&&P(_.otherAxes,Bt(y,"cross",!1))}function y(C,x,w){var E=w.model.getModel("axisPointer",n),k=E.get("show");if(!(!k||k==="auto"&&!C&&!l2(E))){x==null&&(x=E.get("triggerTooltip")),E=C?$pe(w,u,n,t,C,x):E;var D=E.get("snap"),I=E.get("triggerEmphasis"),F=Dd(w.model),A=x||D||w.type==="category",U=i.axesInfo[F]={key:F,axis:w,coordSys:s,axisPointerModel:E,triggerTooltip:x,triggerEmphasis:I,involveSeries:A,snap:D,useHandle:l2(E),seriesModels:[],linkGroup:null};c[F]=U,i.seriesInvolved=i.seriesInvolved||A;var q=Qpe(o,w);if(q!=null){var z=a[q]||(a[q]={axesInfo:{}});z.axesInfo[F]=U,z.mapper=o[q].mapper,U.linkGroup=z}}}})}function $pe(i,t,e,r,n,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};P(s,function(h){l[h]=He(a.get(h))}),l.snap=i.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var c=l.label||(l.label={});if(c.show==null&&(c.show=!1),n==="cross"){var d=a.get(["label","show"]);if(c.show=d??!0,!o){var u=l.lineStyle=a.get("crossStyle");u&&qe(c,u.textStyle)}}return i.model.getModel("axisPointer",new Nt(l,e,r))}function Zpe(i,t){t.eachSeries(function(e){var r=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),o=e.get(["tooltip","show"],!0);!r||!r.model||n==="none"||n===!1||n==="item"||o===!1||e.get(["axisPointer","show"],!0)===!1||P(i.coordSysAxesInfo[Dd(r.model)],function(a){var s=a.axis;r.getAxis(s.dim)===s&&(a.seriesModels.push(e),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=e.getData().count())})})}function Qpe(i,t){for(var e=t.model,r=t.dim,n=0;n<i.length;n++){var o=i[n]||{};
1829if(s2(o[r+"AxisId"],e.id)||s2(o[r+"AxisIndex"],e.componentIndex)||s2(o[r+"AxisName"],e.name))return n}}function s2(i,t){return i==="all"||ne(i)&&je(i,t)>=0||i===t}function zR(i){var t=hv(i);if(t){var e=t.axisPointerModel,r=t.axis.scale,n=e.option,o=e.get("status"),a=e.get("value");a!=null&&(a=r.parse(a));var s=l2(e);o==null&&(n.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),n.value=a,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function hv(i){var t=(i.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Dd(i)]}function UR(i){var t=hv(i);return t&&t.axisPointerModel}function l2(i){return!!i.get(["handle","show"])}function Dd(i){return i.type+"||"+i.id}var HR={},Xpe=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,n,o){this.axisPointerClass&&zR(e),i.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,r,n,o){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,r){var n=this._axisPointer;n&&n.remove(r)},t.prototype.dispose=function(e,r){this._disposeAxisPointer(r),i.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,r,n){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=UR(e);a?(this._axisPointer||(this._axisPointer=new o)).render(e,a,r,n):this._disposeAxisPointer(r)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,r){HR[e]=r},t.getAxisPointerClass=function(e){return e&&HR[e]},t.type="axis",t})(Ni),gv=Xpe;var d2=ht();function WR(i,t,e,r){var n=e.axis;if(!n.scale.isBlank()){var o=e.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=r.coordinateSystem.getRect(),c=n.getTicksCoords({tickModel:o,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(c.length){var d=s.length,u=d2(i).splitAreaColors,h=Me(),g=0;if(u)for(var _=0;_<c.length;_++){var y=u.get(c[_].tickValue);if(y!=null){g=(y+(d-1)*_)%d;break}}var C=n.toGlobalCoord(c[0].coord),x=a.getAreaStyle();s=ne(s)?s:[s];for(var _=1;_<c.length;_++){var w=n.toGlobalCoord(c[_].coord),E=void 0,k=void 0,D=void 0,I=void 0;n.isHorizontal()?(E=C,k=l.y,D=w-E,I=l.height,C=E+D):(E=l.x,k=C,D=l.width,I=w-k,C=k+I);var F=c[_-1].tickValue;F!=null&&h.set(F,g),t.add(new Ct({anid:F!=null?"area_"+F:null,shape:{x:E,y:k,width:D,height:I},style:qe({fill:s[g]},x),autoBatch:!0,silent:!0})),g=(g+1)%d}d2(i).splitAreaColors=h}}}function GR(i){d2(i).splitAreaColors=null}var Jpe=["splitArea","splitLine","minorSplitLine","breakArea"],qR=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,r,n,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Mt,this.group.add(this._axisGroup),!!Bl(e)){this._axisGroup.add(e.axis.axisBuilder.group),P(Jpe,function(l){e.get([l,"show"])&&eue[l](this,this._axisGroup,e,e.getCoordSysModel(),n)},this);var s=o&&o.type==="changeAxisOrder"&&o.isInitSort;s||Fx(a,this._axisGroup,e),i.prototype.render.call(this,e,r,n,o)}},t.prototype.remove=function(){GR(this)},t.type="cartesianAxis",t})(gv),eue={splitLine:function(i,t,e,r,n){var o=e.axis;if(!o.scale.isBlank()){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),c=a.get("showMinLine")!==!1,d=a.get("showMaxLine")!==!1;l=ne(l)?l:[l];for(var u=r.coordinateSystem.getRect(),h=o.isHorizontal(),g=0,_=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),y=[],C=[],x=s.getLineStyle(),w=0;w<_.length;w++){var E=o.toGlobalCoord(_[w].coord);if(!(w===0&&!c||w===_.length-1&&!d)){var k=_[w].tickValue;h?(y[0]=E,y[1]=u.y,C[0]=E,C[1]=u.y+u.height):(y[0]=u.x,y[1]=E,C[0]=u.x+u.width,C[1]=E);var D=g++%l.length,I=new an({anid:k!=null?"line_"+k:null,autoBatch:!0,shape:{x1:y[0],y1:y[1],x2:C[0],y2:C[1]},style:qe({stroke:l[D]},x),silent:!0});_l(I.shape,x.lineWidth),t.add(I)}}}},minorSplitLine:function(i,t,e,r,n){var o=e.axis,a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=r.coordinateSystem.getRect(),c=o.isHorizontal(),d=o.getMinorTicksCoords();if(d.length)for(var u=[],h=[],g=s.getLineStyle(),_=0;_<d.length;_++)for(var y=0;y<d[_].length;y++){var C=o.toGlobalCoord(d[_][y].coord);c?(u[0]=C,u[1]=l.y,h[0]=C,h[1]=l.y+l.height):(u[0]=l.x,u[1]=C,h[0]=l.x+l.width,h[1]=C);var x=new an({anid:"minor_line_"+d[_][y].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:g,silent:!0});_l(x.shape,g.lineWidth),t.add(x)}},splitArea:function(i,t,e,r,n){WR(i,t,e,r)},breakArea:function(i,t,e,r,n){var o=Vl(),a=e.axis.scale;o&&a.type!=="ordinal"&&o.rectCoordBuildBreakAxis(t,i,e,r.coordinateSystem.getRect(),n)}},p2=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(qR);var jR=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=p2.type,e}return t.type="yAxis",t})(qR);var tue=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,r){this.group.removeAll(),e.get("show")&&this.group.add(new Ct({shape:e.coordinateSystem.getRect(),style:qe({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}
1829))},t.type="grid",t})(Ni),YR={offset:0};function KR(i){i.registerComponentView(tue),i.registerComponentModel(pR),i.registerCoordinateSystem("cartesian2d",NR),pv(i,"x",dv,YR),pv(i,"y",dv,YR),i.registerComponentView(p2),i.registerComponentView(jR),i.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Hl=ht(),$R=He,u2=rt,iue=(function(){function i(){this._dragging=!1,this.animationThreshold=15}return i.prototype.render=function(t,e,r,n){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=r,!(!n&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,o,t,e,r);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=d;var u=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Mt,this.createPointerEl(s,c,t,e),this.createLabelEl(s,c,t,e),r.getZr().add(s);else{var h=Bt(ZR,e,u);this.updatePointerEl(s,c,h),this.updateLabelEl(s,c,h,e)}XR(s,e,!0),this._renderHandle(o)}},i.prototype.remove=function(t){this.clear(t)},i.prototype.dispose=function(t){this.clear(t)},i.prototype.determineAnimation=function(t,e){var r=e.get("animation"),n=t.axis,o=n.type==="category",a=e.get("snap");if(!a&&!o)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(o&&n.getBandWidth()>s)return!0;if(a){var l=hv(t).seriesDataCount,c=n.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return r===!0},i.prototype.makeElOption=function(t,e,r,n,o){},i.prototype.createPointerEl=function(t,e,r,n){var o=e.pointer;if(o){var a=Hl(t).pointerEl=new ar[o.type]($R(e.pointer));t.add(a)}},i.prototype.createLabelEl=function(t,e,r,n){if(e.label){var o=Hl(t).labelEl=new Zt($R(e.label));t.add(o),QR(o,n)}},i.prototype.updatePointerEl=function(t,e,r){var n=Hl(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),r(n,{shape:e.pointer.shape}))},i.prototype.updateLabelEl=function(t,e,r,n){var o=Hl(t).labelEl;o&&(o.setStyle(e.label.style),r(o,{x:e.label.x,y:e.label.y}),QR(o,n))},i.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,r=this._api.getZr(),n=this._handle,o=e.getModel("handle"),a=e.get("status");if(!o.get("show")||!a||a==="hide"){n&&r.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=bl(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){bh(c.event)},onmousedown:u2(this._onHandleDragMove,this,0,0),drift:u2(this._onHandleDragMove,this),ondragend:u2(this._onHandleDragEnd,this)}),r.add(n)),XR(n,e,!1),n.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ne(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,vg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},i.prototype._moveHandleToValue=function(t,e){ZR(this._axisPointerModel,!e&&this._moveAnimation,this._handle,m2(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},i.prototype._onHandleDragMove=function(t,e){var r=this._handle;if(r){this._dragging=!0;var n=this.updateHandleTransform(m2(r),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,r.stopAnimation(),r.attr(m2(n)),Hl(r).lastProp=null,this._doDispatchAxisPointer()}},i.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},i.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},i.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),r=this._group,n=this._handle;e&&r&&(this._lastGraphicKey=null,r&&e.remove(r),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),su(this,"_doDispat
1829chAxisPointer")},i.prototype.doClear=function(){},i.prototype.buildLabel=function(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}},i})();function ZR(i,t,e,r){JR(Hl(e).lastProp,r)||(Hl(e).lastProp=r,t?hi(e,r,i):(e.stopAnimation(),e.attr(r)))}function JR(i,t){if(ve(i)&&ve(t)){var e=!0;return P(t,function(r,n){e=e&&JR(i[n],r)}),!!e}else return i===t}function QR(i,t){i[t.get(["label","show"])?"show":"hide"]()}function m2(i){return{x:i.x||0,y:i.y||0,rotation:i.rotation||0}}function XR(i,t,e){var r=t.get("z"),n=t.get("zlevel");i&&i.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),n!=null&&(o.zlevel=n),o.silent=e)})}var eL=iue;function tL(i){var t=i.get("type"),e=i.getModel(t+"Style"),r;return t==="line"?(r=e.getLineStyle(),r.fill=null):t==="shadow"&&(r=e.getAreaStyle(),r.stroke=null),r}function rue(i,t,e,r,n){var o=e.get("value"),a=f2(o,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ro(s.get("padding")||0),c=s.getFont(),d=Uh(a,c),u=n.position,h=d.width+l[1]+l[3],g=d.height+l[0]+l[2],_=n.align;_==="right"&&(u[0]-=h),_==="center"&&(u[0]-=h/2);var y=n.verticalAlign;y==="bottom"&&(u[1]-=g),y==="middle"&&(u[1]-=g/2),nue(u,h,g,r);var C=s.get("backgroundColor");(!C||C==="auto")&&(C=t.get(["axisLine","lineStyle","color"])),i.label={x:u[0],y:u[1],style:Xn(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:C}),z2:10}}function nue(i,t,e,r){var n=r.getWidth(),o=r.getHeight();i[0]=Math.min(i[0]+t,n)-t,i[1]=Math.min(i[1]+e,o)-e,i[0]=Math.max(i[0],0),i[1]=Math.max(i[1],0)}function f2(i,t,e,r,n){i=t.scale.parse(i);var o=t.scale.getLabel({value:i},{precision:n.precision}),a=n.formatter;if(a){var s={value:Td(t,{value:i}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};P(r,function(l){var c=e.getSeriesByIndex(l.seriesIndex),d=l.dataIndexInside,u=c&&c.getDataParams(d);u&&s.seriesData.push(u)}),pe(a)?o=a.replace("{value}",o):we(a)&&(o=a(s))}return o}function h2(i,t,e){var r=fr();return Ls(r,r,e.rotation),Ic(r,r,e.position),k0([i.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],r)}function iL(i,t,e,r,n,o){var a=fv.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),rue(t,r,n,o,{position:h2(r.axis,i,e),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function rL(i,t,e){return e=e||0,{x1:i[e],y1:i[1-e],x2:t[e],y2:t[1-e]}}function nL(i,t,e){return e=e||0,{x:i[e],y:i[1-e],width:t[e],height:t[1-e]}}var oue=(function(i){xe(t,i);function t(){return i!==null&&i.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,r,n,o,a){var s=n.axis,l=s.grid,c=o.get("type"),d=aL(l,s).getOtherAxis(s).getGlobalExtent(),u=s.toGlobalCoord(s.dataToCoord(r,!0));if(c&&c!=="none"){var h=tL(o),g=aue[c](s,u,d);g.style=h,e.graphicKey=g.type,e.pointer=g}var _=Ru(l.getRect(),n);iL(r,e,_,n,o,a)},t.prototype.getHandleTransform=function(e,r,n){var o=Ru(r.axis.grid.getRect(),r,{labelInside:!1});o.labelMargin=n.get(["handle","margin"]);var a=h2(r.axis,e,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,r,n,o){var a=n.axis,s=a.grid,l=a.getGlobalExtent(!0),c=aL(s,a).getOtherAxis(a).getGlobalExtent(),d=a.dim==="x"?0:1,u=[e.x,e.y];u[d]+=r[d],u[d]=Math.min(l[1],u[d]),u[d]=Math.max(l[0],u[d]);var h=(c[1]+c[0])/2,g=[h,h];g[d]=u[d];var _=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:g,tooltipOption:_[d]}},t})(eL);function aL(i,t){var e={};return e[t.dim+"AxisIndex"]=t.index,i.getCartesian(e)}var aue={line:function(i,t,e){var r=rL([t,e[0]],[t,e[1]],sL(i));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(i,t,e){var r=Math.max(1,i.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:nL([t-r/2,e[0]],[r,n],sL(i))}}};function sL(i){return i.dim==="x"?0:1}var lL=oue;var sue=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Ae.color.border,width:1,type:"dashed"},shadowStyle:{color:Ae.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Ae.color.neutral00,padding:[5,7,5,7],backgroundColor:Ae.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:Ae.color.accent40,throttle:40}},t})(wt),cL=sue;var ca=ht(),lue=P;
1829function vv(i,t,e){if(!Ue.node){var r=t.getZr();ca(r).records||(ca(r).records={}),cue(r,t);var n=ca(r).records[i]||(ca(r).records[i]={});n.handler=e}}function cue(i,t){if(ca(i).initialized)return;ca(i).initialized=!0,e("click",Bt(dL,"click")),e("mousemove",Bt(dL,"mousemove")),e("globalout",pue);function e(r,n){i.on(r,function(o){var a=uue(t);lue(ca(i).records,function(s){s&&n(s,o,a.dispatchAction)}),due(a.pendings,t)})}}function due(i,t){var e=i.showTip.length,r=i.hideTip.length,n;e?n=i.showTip[e-1]:r&&(n=i.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function pue(i,t,e){i.handler("leave",null,e)}function dL(i,t,e,r){t.handler(i,e,r)}function uue(i){var t={showTip:[],hideTip:[]},e=function(r){var n=t[r.type];n?n.push(r):(r.dispatchAction=e,i.dispatchAction(r))};return{dispatchAction:e,pendings:t}}function Lu(i,t){if(!Ue.node){var e=t.getZr(),r=(ca(e).records||{})[i];r&&(ca(e).records[i]=null)}}var mue=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,n){var o=r.getComponent("tooltip"),a=e.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";vv("axisPointer",n,function(s,l,c){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,r){Lu("axisPointer",r)},t.prototype.dispose=function(e,r){Lu("axisPointer",r)},t.type="axisPointer",t})(Ni),uL=mue;function Ou(i,t){var e=[],r=i.seriesIndex,n;if(r==null||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Rn(o,i);if(a==null||a<0||ne(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(i.isStacked){var c=l.getBaseAxis(),d=l.getOtherAxis(c),u=d.dim,h=c.dim,g=u==="x"||u==="radius"?1:0,_=o.mapDimension(h),y=[];y[g]=o.get(_,a),y[1-g]=o.get(o.getCalculationInfo("stackResultDimension"),a),e=l.dataToPoint(y)||[]}else e=l.dataToPoint(o.getValues(ue(l.dimensions,function(x){return o.mapDimension(x)}),a))||[];else if(s){var C=s.getBoundingRect().clone();C.applyTransform(s.transform),e=[C.x+C.width/2,C.y+C.height/2]}return{point:e,el:s}}var mL=ht();function g2(i,t,e){var r=i.currTrigger,n=[i.x,i.y],o=i,a=i.dispatchAction||rt(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){_v(n)&&(n=Ou({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=_v(n),c=o.axesInfo,d=s.axesInfo,u=r==="leave"||_v(n),h={},g={},_={list:[],map:{}},y={showPointer:Bt(hue,g),showTooltip:Bt(gue,_)};P(s.coordSysMap,function(x,w){var E=l||x.containPoint(n);P(s.coordSysAxesInfo[w],function(k,D){var I=k.axis,F=yue(c,k);if(!u&&E&&(!c||F)){var A=F&&F.value;A==null&&!l&&(A=I.pointToData(n)),A!=null&&fL(k,A,y,!1,h)}})});var C={};return P(d,function(x,w){var E=x.linkGroup;E&&!g[w]&&P(E.axesInfo,function(k,D){var I=g[D];if(k!==x&&I){var F=I.value;E.mapper&&(F=x.axis.scale.parse(E.mapper(F,hL(k),hL(x)))),C[x.key]=F}})}),P(C,function(x,w){fL(d[w],x,y,!0,h)}),vue(g,d,h),_ue(_,n,i,a),bue(d,a,e),h}}function fL(i,t,e,r,n){var o=i.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!i.involveSeries){e.showPointer(i,t);return}var a=fue(t,i),s=a.payloadBatch,l=a.snapToValue;s[0]&&n.seriesIndex==null&&se(n,s[0]),!r&&i.snap&&o.containData(l)&&l!=null&&(t=l),e.showPointer(i,t,s),e.showTooltip(i,a,l)}}function fue(i,t){var e=t.axis,r=e.dim,n=i,o=[],a=Number.MAX_VALUE,s=-1;return P(t.seriesModels,function(l,c){var d=l.getData().mapDimensionsAll(r),u,h;if(l.getAxisTooltipData){var g=l.getAxisTooltipData(d,i,e);h=g.dataIndices,u=g.nestestValue}else{if(h=l.indicesOfNearest(r,d[0],i,e.type==="category"?.5:null),!h.length)return;u=l.getData().get(d[0],h[0])}if(!(u==null||!isFinite(u))){var _=i-u,y=Math.abs(_);y<=a&&((y<a||_>=0&&s<0)&&(a=y,s=_,n=u,o.length=0),P(h,function(C){o.push({seriesIndex:l.seriesIndex,dataIndexInside:C,dataIndex:l.getData().getRawIndex(C)})}))}}),{payloadBatch:o,snapToValue:n}}function hue(i,t,e,r){i[t.key]={value:e,payloadBatch:r}}function gue(i,t,e,r){var n=e.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,c=Dd(l),d=i.map[c];d||(d=i.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},i.list.push(d)),d.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function vue(i,t,e){var r=e.axesInfo=[];P(t,function(n,o){var a=n.axisPointerModel.option,s=i[o];s?(!n.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(a.status="hide"),a.status==="show"&&r.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:a.value})})}function _ue(i,t,e,r){if(_v(t)||!i.list.length){r({type:"hideTip"});return}var n=((i.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:i.list})}function bue(i,t,e){var r=e.getZr(),n="axisPointerLastHighlights",o=mL(r)[n]||{},a=mL(r)[n]={};P(i,function(c,d){var u=c.axisPointerModel.option;u.status==="show"&&c.triggerEmphasis&&P(u.seriesDataIndices,function(h){var g=h.seriesIndex+" | "+h.dataIndex;a[g]=h})});var s=[],l=[];P(o,function(c,d){!a[d]&&l.push(c)}),P(a,function(c,d){!o[d]&&s.push(c)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function yue(i,t){for(var e=0;e<(i||[]).length;e++){var r=i[e];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function hL(i){var t=i.axis.model,e={},r=e.axisDim=i.axis.dim;return e.axisIndex=e[r+"AxisIndex"]=t.componentIndex,e.axisName=e[r+"AxisName"]=t.name,e.axisId=e[r+"AxisId"]=t.id,e}function _v(i){return!i||i[0]==null||isNaN(i[0])||i[1]==null||isNaN(i[1])}function bv(i){gv.registerAxisPointerClass("CartesianAxisPointer",lL),i.registerComponentModel(cL),i.registerComponentView(uL),i.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!ne(e)&&(t.axisPointer.link=[e])}}),i.registerProcessor(i.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=VR(t,e)}),i.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},g2)}function v2(i){Lr(KR),Lr(bv)}function gL(i,t){var e=Ro(t.get("padding")),r=t.getItemStyle(["color","opacity"]);r.fill=t.get("backgroundColor");var n=new Ct({shape:{x:i.x-e[3],y:i.y-e[0],width:i.width+e[1]+e[3],height:i.height+e[0]+e[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}
1829);return n}var xue=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Ae.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Ae.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Ae.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Ae.color.tertiary,fontSize:14}},t})(wt),vL=xue;function yv(i){var t=i.get("confine");return t!=null?!!t:i.get("renderMode")==="richText"}function _L(i){if(Ue.domSupported){for(var t=document.documentElement.style,e=0,r=i.length;e<r;e++)if(i[e]in t)return i[e]}}var _2=_L(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bL=_L(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function b2(i,t){if(!i)return t;t=sd(t,!0);var e=i.indexOf(t);return i=e===-1?t:"-"+i.slice(0,e)+"-"+t,i.toLowerCase()}function yL(i,t){var e=i.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i);return e?t?e[t]:e:null}var Cue=b2(bL,"transition"),y2=b2(_2,"transform"),Sue="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ue.transform3dSupported?"will-change:transform;":"");function wue(i){return i=i==="left"?"right":i==="right"?"left":i==="top"?"bottom":"top",i}function Tue(i,t,e){if(!pe(e)||e==="inside")return"";var r=i.get("backgroundColor"),n=i.get("borderWidth");t=Jn(t);var o=wue(e),a=Math.max(Math.round(n)*1.5,6),s="",l=y2+":",c;je(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=o==="top"?225:45)+"deg)");var d=c*Math.PI/180,u=a+n,h=u*Math.abs(Math.cos(d))+u*Math.abs(Math.sin(d)),g=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-u)/2)*100)/100;s+=";"+o+":-"+g+"px";var _=t+" solid "+n+"px;",y=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+_,"border-right:"+_,"background-color:"+r+";"];return'<div style="'+y.join("")+'"></div>'}function Eue(i,t,e){var r="cubic-bezier(0.23,1,0.32,1)",n="",o="";return e&&(n=" "+i/2+"s "+r,o="opacity"+n+",visibility"+n),t||(n=" "+i+"s "+r,o+=(o.length?",":"")+(Ue.transformSupported?""+y2+n:",left"+n+",top"+n)),Cue+":"+o}function xL(i,t,e){var r=i.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!Ue.transformSupported)return e?"top:"+n+";left:"+r+";":[["top",n],["left",r]];var o=Ue.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+n+(o?",0":"")+")";return e?"top:0;left:0;"+y2+":"+a+";":[["top",0],["left",0],[_2,a]]}function kue(i){var t=[],e=i.get("fontSize"),r=i.getTextColor();r&&t.push("color:"+r),t.push("font:"+i.getFont());var n=Fe(i.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var o=i.get("textShadowColor"),a=i.get("textShadowBlur")||0,s=i.get("textShadowOffsetX")||0,l=i.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),P(["decoration","align"],function(c){var d=i.get(c);d&&t.push("text-"+c+":"+d)}),t.join(";")}function Iue(i,t,e,r){var n=[],o=i.get("transitionDuration"),a=i.get("backgroundColor"),s=i.get("shadowBlur"),l=i.get("shadowColor"),c=i.get("shadowOffsetX"),d=i.get("shadowOffsetY"),u=i.getModel("textStyle"),h=ug(i,"html"),g=c+"px "+d+"px "+s+"px "+l;return n.push("box-shadow:"+g),t&&o>0&&n.push(Eue(o,e,r)),a&&n.push("background-color:"+a),P(["width","color","radius"],function(_){var y="border-"+_,C=sd(y),x=i.get(C);x!=null&&n.push(y+":"+x+(_==="color"?"":"px"))}),n.push(kue(u)),h!=null&&n.push("padding:"+Ro(h).join("px ")+"px"),n.join(";")+";"}function CL(i,t,e,r,n){var o=t&&t.painter;if(e){var a=o&&o.getViewportRoot();a&&UI(i,a,e,r,n)}else{i[0]=r,i[1]=n;var s=o&&o.getViewportRootOffset();s&&(i[0]+=s.offsetLeft,i[1]+=s.offsetTop)}
1829i[2]=i[0]/t.getWidth(),i[3]=i[1]/t.getHeight()}var Due=(function(){function i(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ue.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var n=this._zr=t.getZr(),o=e.appendTo,a=o&&(pe(o)?document.querySelector(o):Ds(o)?o:we(o)&&o(t.getDom()));CL(this._styleCoord,n,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(r),this._api=t,this._container=a;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=n.handler,d=n.painter.getViewportRoot();Ur(d,l,!0),c.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return i.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),r=yL(e,"position"),n=e.style;n.position!=="absolute"&&r!=="absolute"&&(n.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},i.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,n=r.style,o=this._styleCoord;r.innerHTML?n.cssText=Sue+Iue(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+xL(o[0],o[1],!0)+("border-color:"+Jn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},i.prototype.setContent=function(t,e,r,n,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(pe(o)&&r.get("trigger")==="item"&&!yv(r)&&(s=Tue(r,n,o)),pe(t))a.innerHTML=t+s;else if(t){a.innerHTML="",ne(t)||(t=[t]);for(var l=0;l<t.length;l++)Ds(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var c=document.createElement("div");c.innerHTML=s,a.appendChild(c)}}},i.prototype.setEnterable=function(t){this._enterable=t},i.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},i.prototype.moveTo=function(t,e){if(this.el){var r=this._styleCoord;if(CL(r,this._zr,this._container,t,e),r[0]!=null&&r[1]!=null){var n=this.el.style,o=xL(r[0],r[1]);P(o,function(a){n[a[0]]=a[1]})}}},i.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},i.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",Ue.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},i.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(rt(this.hide,this),t)):this.hide())},i.prototype.isShow=function(){return this._show},i.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;HI(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var r=e.parentNode;r&&r.removeChild(e)}this.el=this._container=null},i})(),SL=Due;var Mue=(function(){function i(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),TL(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return i.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},i.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},i.prototype.setContent=function(t,e,r,n,o){var a=this;ve(t)&&Xi(""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new Zt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:ug(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),P(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){a.el.style[c]=r.get(c)}),P(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){a.el.style[c]=s.get(c)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},i.prototype.setEnterable=function(t){this._enterable=t},i.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect
1829(),r=wL(t.style);return[e.width+r.left+r.right,e.height+r.top+r.bottom]},i.prototype.moveTo=function(t,e){var r=this.el;if(r){var n=this._styleCoord;TL(n,this._zr,t,e),t=n[0],e=n[1];var o=r.style,a=ps(o.borderWidth||0),s=wL(o);r.x=t+a+s.left,r.y=e+a+s.top,r.markRedraw()}},i.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},i.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},i.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(rt(this.hide,this),t)):this.hide())},i.prototype.isShow=function(){return this._show},i.prototype.dispose=function(){this._zr.remove(this.el)},i})();function ps(i){return Math.max(0,i)}function wL(i){var t=ps(i.shadowBlur||0),e=ps(i.shadowOffsetX||0),r=ps(i.shadowOffsetY||0);return{left:ps(t-e),right:ps(t+e),top:ps(t-r),bottom:ps(t+r)}}function TL(i,t,e,r){i[0]=e,i[1]=r,i[2]=i[0]/t.getWidth(),i[3]=i[1]/t.getHeight()}var EL=Mue;var Pue=new Ct({shape:{x:-1,y:-1,width:2,height:2}}),Fue=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,r){if(!(Ue.node||!r.getDom())){var n=e.getComponent("tooltip"),o=this._renderMode=aD(n.get("renderMode"));this._tooltipContent=o==="richText"?new EL(r):new SL(r,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,r,n){if(!(Ue.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=r,this._api=n;var o=this._tooltipContent;o.update(e),o.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?vg(this,"_updatePosition",50,"fixRate"):su(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,r=e.get("triggerOn");vv("itemTooltip",this._api,rt(function(n,o,a){r!=="none"&&(r.indexOf(n)>=0?this._tryShow(o,a):n==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,r=this._ecModel,n=this._api,o=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&a.manuallyShowTip(e,r,n,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,r,n,o){if(!(o.from===this.uid||Ue.node||!n.getDom())){var a=kL(o,n);this._ticket="";var s=o.dataByCoordSys,l=Aue(o,r,n);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var d=Pue;d.x=o.x,d.y=o.y,d.update(),pt(d).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:d},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(e,r,n,o))return;var u=Ou(o,r),h=u.point[0],g=u.point[1];h!=null&&g!=null&&this._tryShow({offsetX:h,offsetY:g,target:u.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:n.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(e,r,n,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(kL(o,n))},t.prototype._manuallyAxisShowTip=function(e,r,n,o){var a=o.seriesIndex,s=o.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var c=r.getSeriesByIndex(a);if(c){var d=c.getData(),u=Au([d.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(u.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(e,r){var n=e.target,o=this._tooltipModel;if(o){this._lastX=e.offsetX,this._lastY=e.offsetY;var a=e.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,e);else if(n){var s=pt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;Rl(n,function(d){if(d.tooltipDisabled)return l=c=null,!0;l||c||(pt(d).dataIndex!=null?l=d:pt(d).tooltipConfig!=null&&(c=d))},!0),l?this._showSeriesItemTooltip(e,l,r):c?this._showComponentItemTooltip(e,c,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(e,r){var n=e.get("showDelay");r=rt(r,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(r,n):r()},t.prototype._showAxisTooltip=function(e,r){var n=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=Au([r.tooltipOption],o),l=this._renderMode,c=[],d=Ml("section",{blocks:[],noHeader:!0}),u=[],h=new mg;P(e,function(w){P(w.dataByAxis,function(E){var k=n.getComponent(E.axisDim+"Axis",E.axisIndex),D=E.value;if(!(!k||D==null)){var I=f2(D,k.axis,n,E.seriesDataIndices,E.valueLabelOpt),F=Ml("section",{header:I,noHeader:!Qi(I),sortBlocks:!0,blocks:[]});d.blocks.push(F),P(E.seriesDataIndices,function(A){var U=n.getSeriesByIndex(A.seriesIndex),q=A.dataIndexInside,z=U.getDataParams(q);if(!(z.dataIndex<0)){z.axisDim=E.axisDim,z.axisIndex=E.axisIndex,z.axisType=E.axisType,z.axisId=E.axisId,z.axisValue=Td(k.axis,{value:D}),z.axisValueLabel=I,z.marker=h.makeTooltipMarker("item",Jn(z.color),l);var Z=_C(U.formatTooltip(q,!0,null)),j=Z.frag;if(j){var X=Au([U],o).get("valueFormatter");F.blocks.push(X?se({valueFormatter:X},j):j)}Z.text&&u.push(Z.text),c.push(z)}})}})}),d.blocks.reverse(),u.reverse();var g=r.position,_=s.get("order"),y=wC(d,h,l,_,n.get("useUTC"),s.get("textStyle"));y&&u.unshift(y);var C=l==="richText"?`
1830
1831`:"<br/>",x=u.join(C);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,c)?this._updatePosition(s,g,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,x,c,Math.random()+"",a[0],a[1],g,null,h)})},t.prototype._showSeriesItemTooltip=function(e,r,n){var o=this._ecModel,a=pt(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,d=a.dataIndex,u=a.dataType,h=c.getData(u),g=this._renderMode,_=e.positionDefault,y=Au([h.getItemModel(d),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,_?{position:_}:null),C=y.get("trigger");if(!(C!=null&&C!=="item")){var x=c.getDataParams(d,u),w=new mg;x.marker=w.makeTooltipMarker("item",Jn(x.color),g);var E=_C(c.formatTooltip(d,!1,u)),k=y.get("order"),D=y.get("valueFormatter"),I=E.frag,F=I?wC(D?se({valueFormatter:D},I):I,w,g,k,o.get("useUTC"),y.get("textStyle")):E.text,A="item_"+c.name+"_"+d;this._showOrMove(y,function(){this._showTooltipContent(y,F,x,A,e.offsetX,e.offsetY,e.position,e.target,w)}),n({type:"showTip",dataIndexInside:d,dataIndex:h.getRawIndex(d),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,r,n){var o=this._renderMode==="html",a=pt(r),s=a.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(pe(l)){var d=l;l={content:d,formatter:d},c=!0}c&&o&&l.content&&(l=He(l),l.content=Oi(l.content));var u=[l],h=this._ecModel.getComponent(a.componentMainType,a.componentIndex);h&&u.push(h),u.push({formatter:l.content});var g=e.positionDefault,_=Au(u,this._tooltipModel,g?{position:g}
1831:null),y=_.get("content"),C=Math.random()+"",x=new mg;this._showOrMove(_,function(){var w=He(_.get("formatterParams")||{});this._showTooltipContent(_,y,w,C,e.offsetX,e.offsetY,e.position,r,x)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,r,n,o,a,s,l,c,d){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var g=r,_=this._getNearestPoint([a,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),y=_.color;if(h)if(pe(h)){var C=e.ecModel.get("useUTC"),x=ne(n)?n[0]:n,w=x&&x.axisType&&x.axisType.indexOf("time")>=0;g=h,w&&(g=ta(x.axisValue,g,C)),g=ld(g,n,!0)}else if(we(h)){var E=rt(function(k,D){k===this._ticket&&(u.setContent(D,d,e,y,l),this._updatePosition(e,l,a,s,u,n,c))},this);this._ticket=o,g=h(n,o,E)}else g=h;u.setContent(g,d,e,y,l),u.show(e,y),this._updatePosition(e,l,a,s,u,n,c)}},t.prototype._getNearestPoint=function(e,r,n,o,a){if(n==="axis"||ne(r))return{color:o||a};if(!ne(r))return{color:o||r.color||r.borderColor}},t.prototype._updatePosition=function(e,r,n,o,a,s,l){var c=this._api.getWidth(),d=this._api.getHeight();r=r||e.get("position");var u=a.getSize(),h=e.get("align"),g=e.get("verticalAlign"),_=l&&l.getBoundingRect().clone();if(l&&_.applyTransform(l.transform),we(r)&&(r=r([n,o],s,a.el,_,{viewSize:[c,d],contentSize:u.slice()})),ne(r))n=yi(r[0],c),o=yi(r[1],d);else if(ve(r)){var y=r;y.width=u[0],y.height=u[1];
1831var C=Lo(y,{width:c,height:d});n=C.x,o=C.y,h=null,g=null}else if(pe(r)&&l){var x=Oue(r,_,u,e.get("borderWidth"));n=x[0],o=x[1]}else{var x=Rue(n,o,a,c,d,h?null:20,g?null:20);n=x[0],o=x[1]}if(h&&(n-=IL(h)?u[0]/2:h==="right"?u[0]:0),g&&(o-=IL(g)?u[1]/2:g==="bottom"?u[1]:0),yv(e)){var x=Lue(n,o,a,c,d);n=x[0],o=x[1]}a.moveTo(n,o)},t.prototype._updateContentNotChangedOnAxis=function(e,r){var n=this._lastDataByCoordSys,o=this._cbParamsList,a=!!n&&n.length===e.length;return a&&P(n,function(s,l){var c=s.dataByAxis||[],d=e[l]||{},u=d.dataByAxis||[];a=a&&c.length===u.length,a&&P(c,function(h,g){var _=u[g]||{},y=h.seriesDataIndices||[],C=_.seriesDataIndices||[];a=a&&h.value===_.value&&h.axisType===_.axisType&&h.axisId===_.axisId&&y.length===C.length,a&&P(y,function(x,w){var E=C[w];a=a&&x.seriesIndex===E.seriesIndex&&x.dataIndex===E.dataIndex}),o&&P(h.seriesDataIndices,function(x){var w=x.seriesIndex,E=r[w],k=o[w];E&&k&&k.data!==E.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=r,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,r){Ue.node||!r.getDom()||(su(this,"_updatePosition"),this._tooltipContent.dispose(),Lu("itemTooltip",r))},t.type="tooltip",t})(Ni);function Au(i,t,e){var r=t.ecModel,n;e?(n=new Nt(e,r,r),n=new Nt(t.option,n,r)):n=t;for(var o=i.length-1;o>=0;o--){var a=i[o];a&&(a instanceof Nt&&(a=a.get("tooltip",!0)),pe(a)&&(a={formatter:a}),a&&(n=new Nt(a,n,r)))}return n}function kL(i,t){return i.dispatchAction||rt(t.dispatchAction,t)}function Rue(i,t,e,r,n,o,a){var s=e.getSize(),l=s[0],c=s[1];return o!=null&&(i+l+o+2>r?i-=l+o:i+=o),a!=null&&(t+c+a>n?t-=c+a:t+=a),[i,t]}function Lue(i,t,e,r,n){var o=e.getSize(),a=o[0],s=o[1];return i=Math.min(i+a,r)-a,t=Math.min(t+s,n)-s,i=Math.max(i,0),t=Math.max(t,0),[i,t]}function Oue(i,t,e,r){var n=e[0],o=e[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,c=t.width,d=t.height;switch(i){case"inside":s=t.x+c/2-n/2,l=t.y+d/2-o/2;break;case"top":s=t.x+c/2-n/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-n/2,l=t.y+d+a;break;case"left":s=t.x-n-a,l=t.y+d/2-o/2;break;case"right":s=t.x+c+a,l=t.y+d/2-o/2}return[s,l]}function IL(i){return i==="center"||i==="middle"}function Aue(i,t,e){var r=Fp(i).queryOptionMap,n=r.keys()[0];if(!(!n||n==="series")){var o=za(t,n,r.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=e.getViewOfComponentModel(a),l;if(s.group.traverse(function(c){var d=pt(c).tooltipConfig;if(d&&d.name===i.name)return l=c,!0}),l)return{componentMainType:n,componentIndex:a.componentIndex,el:l}}}}var DL=Fue;function x2(i){Lr(bv),i.registerComponentModel(vL),i.registerComponentView(DL),i.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Di),i.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Di)}var Bue=function(i,t){if(t==="all")return{type:"all",title:i.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:i.getLocaleModel().get(["legend","selector","inverse"])}},Nue=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,r,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,r){i.prototype.mergeOption.call(this,e,r),this._updateSelector(e)},t.prototype._updateSelector=function(e){var r=e.selector,n=this.ecModel;r===!0&&(r=e.selector=["all","inverse"]),ne(r)&&P(r,function(o,a){pe(o)&&(o={type:o}),r[a]=ct(o,Bue(n,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var r=!1,n=0;n<e.length;n++){var o=e[n].get("name");if(this.isSelected(o)){this.select(o),r=!0;break}}!r&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var r=[],n=[];e.eachRawSeries(function(l){var c=l.name;n.push(c);var d;if(l.legendVisualProvider){var u=l.legendVisualProvider,h=u.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(h)),h.length?r=r.concat(h):d=!0}else d=!0;d&&Uc(l)&&r.push(l.name)}),this._availableNames=n;var o=this.get("data")||r,a=Me(),s=ue(o,function(l){return(pe(l)||st(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new Nt(l,this,this.ecModel))},this);this._data=Gt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var r=this.option.selected,n=this.get("selectedMode");if(n==="single"){var o=this._data;P(o,function(a){r[a.get("name")]=!1})}r[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var r=this.option.selected;r.hasOwnProperty(e)||(r[e]=!0),this[r[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,r=this.option.selected;P(e,function(n){r[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,r=this.option.selected;P(e,function(n){var o=n.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},t.prototype.isSelected=function(e){var r=this.option.selected;return!(r.hasOwnProperty(e)&&!r[e])&&je(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:Ae.size.m,align:"auto",backgroundColor:Ae.color.transparent,borderColor:Ae.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Ae.color.disabled,inactiveBorderColor:Ae.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:Ae.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miter
1831Limit:"inherit"},textStyle:{color:Ae.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Ae.color.tertiary,borderWidth:1,borderColor:Ae.color.border},emphasis:{selectorLabel:{show:!0,color:Ae.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(wt),Bu=Nue;var Md=Bt,C2=P,xv=Mt,Vue=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new xv),this.group.add(this._selectorGroup=new xv),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,r,n){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var a=e.get("align"),s=e.get("orient");(!a||a==="auto")&&(a=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),c=e.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(a,e,r,n,l,s,c);var d=J0(e,n).refContainer,u=e.getBoxLayoutParams(),h=e.get("padding"),g=Lo(u,d,h),_=this.layoutInner(e,a,g,o,l,c),y=Lo(qe({width:_.width,height:_.height},u),d,h);this.group.x=y.x-_.x,this.group.y=y.y-_.y,this.group.markRedraw(),this.group.add(this._backgroundEl=gL(_,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,r,n,o,a,s,l){var c=this.getContentGroup(),d=Me(),u=r.get("selectedMode"),h=r.get("triggerEvent"),g=[];n.eachRawSeries(function(_){!_.get("legendHoverLink")&&g.push(_.id)}),C2(r.getData(),function(_,y){var C=this,x=_.get("name");if(!this.newlineDisabled&&(x===""||x===`
1832`)){var w=new xv;w.newline=!0,c.add(w);return}var E=n.getSeriesByName(x)[0];if(!d.get(x))if(E){var k=E.getData(),D=k.getVisual("legendLineStyle")||{},I=k.getVisual("legendIcon"),F=k.getVisual("style"),A=this._createItem(E,x,y,_,r,e,D,F,I,u,o);A.on("click",Md(ML,x,null,o,g)).on("mouseover",Md(S2,E.name,null,o,g)).on("mouseout",Md(w2,E.name,null,o,g)),n.ssr&&A.eachChild(function(U){var q=pt(U);q.seriesIndex=E.seriesIndex,q.dataIndex=y,q.ssrType="legend"}),h&&A.eachChild(function(U){C.packEventData(U,r,E,y,x)}),d.set(x,!0)}else n.eachRawSeries(function(U){var q=this;if(!d.get(x)&&U.legendVisualProvider){var z=U.legendVisualProvider;if(!z.containName(x))return;
1832var Z=z.indexOfName(x),j=z.getItemVisual(Z,"style"),X=z.getItemVisual(Z,"legendIcon"),le=hr(j.fill);le&&le[3]===0&&(le[3]=.2,j=se(se({},j),{fill:So(le,"rgba")}));var me=this._createItem(U,x,y,_,r,e,{},j,X,u,o);me.on("click",Md(ML,null,x,o,g)).on("mouseover",Md(S2,null,x,o,g)).on("mouseout",Md(w2,null,x,o,g)),n.ssr&&me.eachChild(function(ze){var fe=pt(ze);fe.seriesIndex=U.seriesIndex,fe.dataIndex=y,fe.ssrType="legend"}),h&&me.eachChild(function(ze){q.packEventData(ze,r,U,y,x)}),d.set(x,!0)}},this)},this),a&&this._createSelector(a,r,o,s,l)},t.prototype.packEventData=function(e,r,n,o,a){var s={componentType:"legend",componentIndex:r.componentIndex,dataIndex:o,value:a,seriesIndex:n.seriesIndex};pt(e).eventData=s},t.prototype._createSelector=function(e,r,n,o,a){var s=this.getSelectorGroup();C2(e,function(c){var d=c.type,u=new Zt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});s.add(u);var h=r.getModel("selectorLabel"),g=r.getModel(["emphasis","selectorLabel"]);Ya(u,{normal:h,emphasis:g},{defaultText:c.title}),jc(u)})},t.prototype._createItem=function(e,r,n,o,a,s,l,c,d,u,h){var g=e.visualDrawType,_=a.get("itemWidth"),y=a.get("itemHeight"),C=a.isSelected(r),x=o.get("symbolRotate"),w=o.get("symbolKeepAspect"),E=o.get("icon");d=E||d||"roundRect";var k=zue(d,o,l,c,g,C,h),D=new xv,I=o.getModel("textStyle");if(we(e.getLegendIcon)&&(!E||E==="inherit"))D.add(e.getLegendIcon({itemWidth:_,itemHeight:y,icon:d,iconRotate:x,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:w}));else{var F=E==="inherit"&&e.getData().getVisual("symbol")?x==="inherit"?e.getData().getVisual("symbolRotate"):x:0;D.add(Uue({itemWidth:_,itemHeight:y,icon:d,iconRotate:F,itemStyle:k.itemStyle,lineStyle:k.lineStyle,symbolKeepAspect:w}))}var A=s==="left"?_+5:-5,U=s,q=a.get("formatter"),z=r;pe(q)&&q?z=q.replace("{name}",r??""):we(q)&&(z=q(r));var Z=C?I.getTextColor():o.get("inactiveColor");D.add(new Zt({style:Xn(I,{text:z,x:A,y:y/2,fill:Z,align:U,verticalAlign:"middle"},{inheritColor:Z})}));var j=new Ct({shape:D.getBoundingRect(),style:{fill:"transparent"}}),X=o.getModel("tooltip");return X.get("show")&&ed({el:j,componentModel:a,itemName:r,itemTooltipOption:X.option}),D.add(j),D.eachChild(function(le){le.silent=!0}),j.silent=!u,this.getContentGroup().add(D),jc(D),D.__legendDataIndex=n,D},t.prototype.layoutInner=function(e,r,n,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();wl(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var d=l.getBoundingRect(),u=[-d.x,-d.y];if(c.markRedraw(),l.markRedraw(),a){wl("horizontal",c,e.get("selectorItemGap",!0));var h=c.getBoundingRect(),g=[-h.x,-h.y],_=e.get("selectorButtonGap",!0),y=e.getOrient().index,C=y===0?"width":"height",x=y===0?"height":"width",w=y===0?"y":"x";s==="end"?g[y]+=d[C]+_:u[y]+=h[C]+_,g[1-y]+=d[x]/2-h[x]/2,c.x=g[0],c.y=g[1],l.x=u[0],l.y=u[1];var E={x:0,y:0};return E[C]=d[C]+_+h[C],E[x]=Math.max(d[x],h[x]),E[w]=Math.min(0,h[w]+g[1-y]),E}else return l.x=u[0],l.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Ni);function zue(i,t,e,r,n,o,a){function s(C,x){C.lineWidth==="auto"&&(C.lineWidth=x.lineWidth>0?2:0),C2(C,function(w,E){C[E]==="inherit"&&(C[E]=x[E])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),d=i.lastIndexOf("empty",0)===0?"fill":"stroke",u=l.getShallow("decal");c.decal=!u||u==="inherit"?r.decal:fu(u,a),c.fill==="inherit"&&(c.fill=r[n]),c.stroke==="inherit"&&(c.stroke=r[d]),c.opacity==="inherit"&&(c.opacity=(n==="fill"?r:e).opacity),s(c,r);var h=t.getModel("lineStyle"),g=h.getLineStyle();if(s(g,e),c.fill==="auto"&&(c.fill=r.fill),c.stroke==="auto"&&(c.stroke=r.fill),g.stroke==="auto"&&(g.stroke=r.fill),!o){var _=t.get("inactiveBorderWidth"),y=c[d];c.lineWidth=_==="auto"?r.lineWidth>0&&y?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),g.stroke=h.get("inactiveColor"),g.lineWidth=h.get("inactiveWidth")}return{itemStyle:c,lineStyle:g}}function Uue(i){var t=i.icon||"roundRect",e=mn(t,0,0,i.itemWidth,i.itemHeight,i.itemStyle.fill,i.symbolKeepAspect);return e.setStyle(i.itemStyle),e.rotation=(i.iconRotate||0)*Math.PI/180,e.setOrigin([i.itemWidth/2,i.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=Ae.color.neutral00,e.style.lineWidth=2),e}function ML(i,t,e,r){w2(i,t,e,r),e.dispatchAction({type:"legendToggleSelect",name:i??t}),S2(i,t,e,r)}function PL(i){for(var t=i.getZr().storage.getDisplayList(),e,r=0,n=t.length;r<n&&!(e=t[r].states.emphasis);)r++;return e&&e.hoverLayer}function S2(i,t,e,r){PL(e)||e.dispatchAction({type:"highlight",seriesName:i,name:t,excludeSeriesId:r})}function w2(i,t,e,r){PL(e)||e.dispatchAction({type:"downplay",seriesName:i,name:t,excludeSeriesId:r})}var Cv=Vue;function T2(i){var t=i.findComponents({mainType:"legend"});t&&t.length&&i.filterSeries(function(e){for(var r=0;r<t.length;r++)if(!t[r].isSelected(e.name))return!1;return!0})}function Nu(i,t,e){var r=i==="allSelect"||i==="inverseSelect",n={},o=[];e.eachComponent({mainType:"legend",query:t},function(s){r?s[i]():s[i](t.name),FL(s,n),o.push(s.componentIndex)});var a={};return e.eachComponent("legend",function(s){P(n,function(l,c){s[l?"select":"unSelect"](c)}),FL(s,a)}),r?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function FL(i,t){var e=t||{};return P(i.getData(),function(r){var n=r.get("name");if(!(n===`
1833`||n==="")){var o=i.isSelected(n);Li(e,n)?e[n]=e[n]&&o:e[n]=o}}),e}function RL(i){i.registerAction("legendToggleSelect","legendselectchanged",Bt(Nu,"toggleSelected")),i.registerAction("legendAllSelect","legendselectall",Bt(Nu,"allSelect")),i.registerAction("legendInverseSelect","legendinverseselect",Bt(Nu,"inverseSelect")),i.registerAction("legendSelect","legendselected",Bt(Nu,"select")),i.registerAction("legendUnSelect","legendunselected",Bt(Nu,"unSelect"))}function Sv(i){i.registerComponentModel(Bu),i.registerComponentView(Cv),i.registerProcessor(i.PRIORITY.PROCESSOR.SERIES_FILTER,T2),i.registerSubTypeDefaulter("legend",function(){return"plain"}),RL(i)}var Hue=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,r,n){var o=Oo(e);i.prototype.init.call(this,e,r,n),LL(this,e,o)},t.prototype.mergeOption=function(e,r){i.prototype.mergeOption.call(this,e,r),LL(this,this.option,e)},t.type="legend.scroll",t.defaultOption=P0(Bu.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:Ae.color.accent50,pageIconInactiveColor:Ae.color.accent10,pageIconSize:15,pageTextStyle:{color:Ae.color.tert
1833iary},animationDurationUpdate:800}),t})(Bu);function LL(i,t,e){var r=i.getOrient(),n=[1,1];n[r.index]=0,cn(t,e,{type:"box",ignoreSize:!!n})}var OL=Hue;var AL=Mt,E2=["width","height"],k2=["x","y"],Wue=(function(i){xe(t,i);function t(){var e=i!==null&&i.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){i.prototype.init.call(this),this.group.add(this._containerGroup=new AL),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new AL)},t.prototype.resetInner=function(){i.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,r,n,o,a,s,l){var c=this;i.prototype.renderInner.call(this,e,r,n,o,a,s,l);var d=this._controllerGroup,u=r.get("pageIconSize",!0),h=ne(u)?u:[u,u];_("pagePrev",0);var g=r.getModel("pageTextStyle");d.add(new Zt({name:"pageText",style:{text:"xx/xx",fill:g.getTextColor(),font:g.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),_("pageNext",1);function _(y,C){var x=y+"DataIndex",w=bl(r.get("pageIcons",!0)[r.getOrient().name][C],{onclick:rt(c._pageGo,c,x,r,o)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});w.name=y,d.add(w)}},t.prototype.layoutInner=function(e,r,n,o,a,s){var l=this.getSelectorGroup(),c=e.getOrient().index,d=E2[c],u=k2[c],h=E2[1-c],g=k2[1-c];a&&wl("horizontal",l,e.get("selectorItemGap",!0));var _=e.get("selectorButtonGap",!0),y=l.getBoundingRect(),C=[-y.x,-y.y],x=He(n);a&&(x[d]=n[d]-y[d]-_);var w=this._layoutContentAndController(e,o,x,c,d,h,g,u);if(a){if(s==="end")C[c]+=w[d]+_;else{var E=y[d]+_;C[c]-=E,w[u]-=E}w[d]+=y[d]+_,C[1-c]+=w[g]+w[h]/2-y[h]/2,w[h]=Math.max(w[h],y[h]),w[g]=Math.min(w[g],y[g]+C[1-c]),l.x=C[0],l.y=C[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(e,r,n,o,a,s,l,c){var d=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;wl(e.get("orient"),d,e.get("itemGap"),o?n.width:null,o?null:n.height),wl("horizontal",h,e.get("pageButtonItemGap",!0));var g=d.getBoundingRect(),_=h.getBoundingRect(),y=this._showController=g[a]>n[a],C=[-g.x,-g.y];r||(C[o]=d[c]);var x=[0,0],w=[-_.x,-_.y],E=Fe(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(y){var k=e.get("pageButtonPosition",!0);k==="end"?w[o]+=n[a]-_[a]:x[o]+=_[a]+E}w[1-o]+=g[s]/2-_[s]/2,d.setPosition(C),u.setPosition(x),h.setPosition(w);var D={x:0,y:0};if(D[a]=y?n[a]:g[a],D[s]=Math.max(g[s],_[s]),D[l]=Math.min(0,_[l]+w[1-o]),u.__rectSize=n[a],y){var I={x:0,y:0};I[a]=Math.max(n[a]-_[a]-E,0),I[s]=D[s],u.setClipPath(new Ct({shape:I})),u.__rectSize=I[a]}else h.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var F=this._getPageInfo(e);return F.pageIndex!=null&&hi(d,{x:F.contentPosition[0],y:F.contentPosition[1]},y?e:null),this._updatePageInfoView(e,F),D},t.prototype._pageGo=function(e,r,n){var o=this._getPageInfo(r)[e];o!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},t.prototype._updatePageInfoView=function(e,r){var n=this._controllerGroup;P(["pagePrev","pageNext"],function(d){var u=d+"DataIndex",h=r[u]!=null,g=n.childOfName(d);g&&(g.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),g.cursor=h?"pointer":"default")});var o=n.childOfName("pageText"),a=e.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,c=r.pageCount;o&&a&&o.setStyle("text",pe(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(e){var r=e.get("scrollDataIndex",!0),n=this.getContentGroup(),o=this._containerGroup.__rectSize,a=e.getOrient().index,s=E2[a],l=k2[a],c=this._findTargetItemIndex(r),d=n.children(),u=d[c],h=d.length,g=h?1:0,_={contentPosition:[n.x,n.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return _;var y=k(u);_.contentPosition[a]=-y.s;for(var C=c+1,x=y,w=y,E=null;C<=h;++C)E=k(d[C]),(!E&&w.e>x.s+o||E&&!D(E,x.s))&&(w.i>x.i?x=w:x=E,x&&(_.pageNextDataIndex==null&&(_.pageNextDataIndex=x.i),++_.pageCount)),w=E;for(var C=c-1,x=y,w=y,E=null;C>=-1;--C)E=k(d[C]),(!E||!D(w,E.s))&&x.i<w.i&&(w=x,_.pagePrevDataIndex==null&&(_.pagePrevDataIndex=x.i),++_.pageCount,++_.pageIndex),x=E;return _;
1833function k(I){if(I){var F=I.getBoundingRect(),A=F[l]+I[l];return{s:A,e:A+F[s],i:I.__legendDataIndex}}}function D(I,F){return I.e>=F&&I.s<=F+o}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var r,n=this.getContentGroup(),o;return n.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===e&&(r=s)}),r??o},t.type="legend.scroll",t})(Cv),BL=Wue;function I2(i){i.registerAction("legendScroll","legendscroll",function(t,e){var r=t.scrollDataIndex;r!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(r)})})}function NL(i){Lr(Sv),i.registerComponentModel(OL),i.registerComponentView(BL),I2(i)}function D2(i){Lr(Sv),Lr(NL)}function VL(i,t,e){var r=$i.createCanvas(),n=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=n+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",i)),r.width=n*e,r.height=o*e,r}var Gue=(function(i){We(t,i);function t(e,r,n){var o=i.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;n=n||qs,typeof e=="string"?a=VL(e,r,n):ve(e)&&(a=e,e=a.id),o.id=e,o.dom=a;var s=a.style;return s&&(dp(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=n,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=VL("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,r,n,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new Be(0,0,0,0);function d(w){if(!(!w.isFinite()||w.isZero()))if(a.length===0){var E=new Be(0,0,0,0);E.copy(w),a.push(E)}else{for(var k=!1,D=1/0,I=0,F=0;F<a.length;++F){var A=a[F];if(A.intersect(w)){var U=new Be(0,0,0,0);U.copy(A),U.union(w),a[F]=U,k=!0;break}else if(l){c.copy(w),c.union(A);var q=w.width*w.height,z=A.width*A.height,Z=c.width*c.height,j=Z-q-z;j<D&&(D=j,I=F)}}if(l&&(a[I].union(w),k=!0),!k){var E=new Be(0,0,0,0);E.copy(w),a.push(E)}l||(l=a.length>=s)}}for(var u=this.__startIndex;u<this.__endIndex;++u){var h=e[u];if(h){var g=h.shouldBePainted(n,o,!0,!0),_=h.__isRendered&&(h.__dirty&Mi||!g)?h.getPrevPaintRect():null;_&&d(_);var y=g&&(h.__dirty&Mi||!h.__isRendered)?h.getPaintRect():null;y&&d(y)}}for(var u=this.__prevStartIndex;u<this.__prevEndIndex;++u){var h=r[u],g=h&&h.shouldBePainted(n,o,!0,!0);if(h&&(!g||!h.__zr)&&h.__isRendered){var _=h.getPrevPaintRect();_&&d(_)}}var C;do{C=!1;for(var u=0;u<a.length;){if(a[u].isZero()){a.splice(u,1);continue}for(var x=u+1;x<a.length;)a[u].intersect(a[x])?(C=!0,a[u].union(a[x]),a.splice(x,1)):x++;u++}}while(C);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,r){var n=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=e+"px",a.height=r+"px"),o.width=e*n,o.height=r*n,s&&(s.width=e*n,s.height=r*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,r,n){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var c=this.motionBlur&&!e,d=this.lastFrameAlpha,u=this.dpr,h=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/u,l/u));var g=this.domBack;function _(y,C,x,w){if(a.clearRect(y,C,x,w),r&&r!=="transparent"){var E=void 0;if(Wo(r)){var k=r.global||r.__width===x&&r.__height===w;E=k&&r.__canvasGradient||pu(a,r,{x:0,y:0,width:x,height:w}),r.__canvasGradient=E,r.__width=x,r.__height=w}else ky(r)&&(r.scaleX=r.scaleX||u,r.scaleY=r.scaleY||u,E=wg(a,r,{dirty:function(){h.setUnpainted(),h.painter.refresh()}}));
1833a.save(),a.fillStyle=E||r,a.fillRect(y,C,x,w),a.restore()}c&&(a.save(),a.globalAlpha=d,a.drawImage(g,y,C,x,w),a.restore())}!n||c?_(0,0,s,l):n.length&&P(n,function(y){_(y.x*u,y.y*u,y.width*u,y.height*u)})},t})(nr),wv=Gue;var zL=1e5,Wl=314159,Tv=.01,que=.001;function jue(i){return i?i.__builtin__?!0:!(typeof i.resize!="function"||typeof i.refresh!="function"):!1}function Yue(i,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+i+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var Kue=(function(){function i(t,e,r,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=r=se({},r||{}),this.dpr=r.devicePixelRatio||qs,this._singleCanvas=o,this.root=t;var a=t.style;a&&(dp(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var d=t,u=d.width,h=d.height;r.width!=null&&(u=r.width),r.height!=null&&(h=r.height),this.dpr=r.devicePixelRatio||1,d.width=u*this.dpr,d.height=h*this.dpr,this._width=u,this._height=h;var g=new wv(d,this,this.dpr);g.__builtin__=!0,g.initContext(),l[Wl]=g,g.zlevel=Wl,s.push(Wl),this._domRoot=t}else{this._width=uu(t,0,r),this._height=uu(t,1,r);var c=this._domRoot=Yue(this._width,this._height);t.appendChild(c)}}return i.prototype.getType=function(){return"canvas"},i.prototype.isSingleCanvas=function(){return this._singleCanvas},i.prototype.getViewportRoot=function(){return this._domRoot},i.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},i.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),r=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,r,t,this._redrawId);for(var o=0;o<n.length;o++){var a=n[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},i.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},i.prototype._paintHoverList=function(t){var e=t.length,r=this._hoverlayer;if(r&&r.clear(),!!e){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<e;a++){var s=t[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(zL)),o||(o=r.ctx,o.save()),es(o,s,n,a===e-1))}o&&o.restore()}},i.prototype.getHoverLayer=function(){return this.getLayer(zL)},i.prototype.paintOne=function(t,e){_d(t,e)},i.prototype._paintList=function(t,e,r,n){if(this._redrawId===n){r=r||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,e,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;vp(function(){l._paintList(t,e,r,n)})}}},i.prototype._compositeManually=function(){var t=this.getLayer(Wl).ctx,e=this._domRoot.width,r=this._domRoot.height;t.clearRect(0,0,e,r),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,r)})},i.prototype._doPaintList=function(t,e,r){for(var n=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||r)&&o.push(c)}for(var d=!0,u=!1,h=function(y){var C=o[y],x=C.ctx,w=a&&C.createRepaintRects(t,e,g._width,g._height),E=r?C.__startIndex:C.__drawIndex,k=!r&&C.incremental&&Date.now,D=k&&Date.now(),I=C.zlevel===g._zlevelList[0]?g._backgroundColor:null;if(C.__startIndex===C.__endIndex)C.clear(!1,I,w);else if(E===C.__startIndex){var F=t[E];(!F.incremental||!F.notClear||r)&&C.clear(!1,I,w)}E===-1&&(console.error("For some unknown reason. drawIndex is -1"),E=C.__startIndex);var A,U=function(j){var X={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(A=E;A<C.__endIndex;A++){var le=t[A];if(le.__inHover&&(u=!0),n._doPaintEl(le,C,a,j,X,A===C.__endIndex-1),k){var me=Date.now()-D;if(me>15)break}}
1833X.prevElClipPaths&&x.restore()};if(w)if(w.length===0)A=C.__endIndex;else for(var q=g.dpr,z=0;z<w.length;++z){var Z=w[z];x.save(),x.beginPath(),x.rect(Z.x*q,Z.y*q,Z.width*q,Z.height*q),x.clip(),U(Z),x.restore()}else x.save(),U(),x.restore();C.__drawIndex=A,C.__drawIndex<C.__endIndex&&(d=!1)},g=this,_=0;_<o.length;_++)h(_);return Ue.wxa&&P(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:d,needsRefreshHover:u}},i.prototype._doPaintEl=function(t,e,r,n,o,a){var s=e.ctx;if(r){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(es(s,t,o,a),t.setPrevPaintRect(l))}else es(s,t,o,a)},i.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Wl);var r=this._layers[t];return r||(r=new wv("zr_"+t,this,this.dpr),r.zlevel=t,r.__builtin__=!0,this._layerConfig[t]?ct(r,this._layerConfig[t],!0):this._layerConfig[t-Tv]&&ct(r,this._layerConfig[t-Tv],!0),e&&(r.virtual=e),this.insertLayer(t,r),r.initContext()),r},i.prototype.insertLayer=function(t,e){var r=this._layers,n=this._zlevelList,o=n.length,a=this._domRoot,s=null,l=-1;if(!r[t]&&jue(e)){if(o>0&&t>n[0]){for(l=0;l<o-1&&!(n[l]<t&&n[l+1]>t);l++);s=r[n[l]]}if(n.splice(l+1,0,t),r[t]=e,!e.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(e.dom,c.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.painter||(e.painter=this)}},i.prototype.eachLayer=function(t,e){for(var r=this._zlevelList,n=0;n<r.length;n++){var o=r[n];t.call(e,this._layers[o],o)}},i.prototype.eachBuiltinLayer=function(t,e){for(var r=this._zlevelList,n=0;n<r.length;n++){var o=r[n],a=this._layers[o];a.__builtin__&&t.call(e,a,o)}},i.prototype.eachOtherLayer=function(t,e){for(var r=this._zlevelList,n=0;n<r.length;n++){var o=r[n],a=this._layers[o];a.__builtin__||t.call(e,a,o)}},i.prototype.getLayers=function(){return this._layers},i.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(u,h){u.__dirty=u.__used=!1});function e(u){o&&(o.__endIndex!==u&&(o.__dirty=!0),o.__endIndex=u)}if(this._singleCanvas)for(var r=1;r<t.length;r++){var n=t[r];if(n.zlevel!==t[r-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var n=t[l],c=n.zlevel,d=void 0;s!==c&&(s=c,a=0),n.incremental?(d=this.getLayer(c+que,this._needsManuallyCompositing),d.incremental=!0,a=1):d=this.getLayer(c+(a>0?Tv:0),this._needsManuallyCompositing),d.__builtin__||Ms("ZLevel "+c+" has been used by unkown layer "+d.id),d!==o&&(d.__used=!0,d.__startIndex!==l&&(d.__dirty=!0),d.__startIndex=l,d.incremental?d.__drawIndex=-1:d.__drawIndex=l,e(l),o=d),n.__dirty&Mi&&!n.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(u,h){!u.__used&&u.getElementCount()>0&&(u.__dirty=!0,u.__startIndex=u.__endIndex=u.__drawIndex=0),u.__dirty&&u.__drawIndex<0&&(u.__drawIndex=u.__startIndex)})},i.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},i.prototype._clearLayer=function(t){t.clear()},i.prototype.setBackgroundColor=function(t){this._backgroundColor=t,P(this._layers,function(e){e.setUnpainted()})},i.prototype.configLayer=function(t,e){if(e){var r=this._layerConfig;r[t]?ct(r[t],e,!0):r[t]=e;for(var n=0;n<this._zlevelList.length;n++){var o=this._zlevelList[n];if(o===t||o===t+Tv){var a=this._layers[o];ct(a,r[t],!0)}}}},i.prototype.delLayer=function(t){var e=this._layers,r=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],r.splice(je(r,t),1))},i.prototype.resize=function(t,e){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var n=this._opts,o=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=uu(o,0,n),e=uu(o,1,n),r.style.display="",this._width!==t||e!==this._height){r.style.width=t+"px",r.style.height=e+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Wl).resize(t,e)}return this},i.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},i.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},i.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Wl].dom;var e=new wv("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var r=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,o=e.dom.height;this.eachLayer(function(u){u.__builtin__?r.drawImage(u.dom,0,0,n,o):u.renderToCanvas&&(r.save(),u.renderToCanvas(r),r.restore(
1833))})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var d=s[l];es(r,d,a,l===c-1)}return e.dom},i.prototype.getWidth=function(){return this._width},i.prototype.getHeight=function(){return this._height},i})(),UL=Kue;function M2(i){i.registerPainter("canvas",UL)}function $ue(i){return typeof i=="string"?()=>{throw new Error(i)}:i}function kv(i,t){let e=t?$ue(t):()=>{},r=!1;return(...n)=>r?e(...n):(r=!0,i(...n))}function qL(i){return i.endsWith("/")?i:`${i}/`}var Zue=(i,t)=>{let e=t.createElement("script");return e.type="text/javascript",e.defer=!0,e.async=!0,e.src=i,e},Que=new St("MATOMO_SCRIPT_FACTORY",{providedIn:"root",factory:()=>Zue});function Iv(i,t){if(i==null)throw new Error("Unexpected "+i+" value: "+t);return i}var jL=(()=>{class i{constructor(){this.scriptFactory=ie(Que),this.injector=ie(Yu),this.document=ie(vn)}injectDOMScript(e){let r=$u(this.injector,()=>this.scriptFactory(e,this.document)),n=Iv(this.document.getElementsByTagName("script")[0],"no existing script found");Iv(n.parentNode,"no script's parent node found").insertBefore(r,n)}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac})}}return i})(),Xue="No Matomo configuration found! Have you included Matomo module using MatomoModule.forRoot() or provideMatomo()?",O2=new St("MATOMO_ROUTER_ENABLED",{factory(){return!1}}),P2=new St("MATOMO_CONFIGURATION"),us=new St("INTERNAL_MATOMO_CONFIGURATION");function Jue(){let r=Iv(ie(P2,{optional:!0}),Xue),{mode:i,requireConsent:t}=r,e=j2(r,["mode","requireConsent"]);return lt({mode:i?ime(i):void 0,disabled:!1,enableLinkTracking:!0,trackAppInitialLoad:!ie(O2),requireConsent:t?rme(t):"none",enableJSErrorTracking:!1,runOutsideAngularZone:!0,disableCampaignParameters:!1,acceptDoNotTrack:!1},e)}var F2=new St("DEFERRED_INTERNAL_MATOMO_CONFIGURATION");function eme(){let i=ie(us),t;return{configuration:new Promise(r=>t=r),markReady(r){Iv(t,"resolveFn")(lt(lt({},i),r))}}}var tme=new St("ASYNC_INTERNAL_MATOMO_CONFIGURATION"),Vu=(function(i){return i[i.AUTO=0]="AUTO",i[i.MANUAL=1]="MANUAL",i[i.AUTO_DEFERRED=2]="AUTO_DEFERRED",i})(Vu||{});function ime(i){switch(i){case Vu.AUTO:return"auto";case Vu.MANUAL:return"manual";case Vu.AUTO_DEFERRED:return"deferred";default:return i}}var Ev=(function(i){return i[i.NONE=0]="NONE",i[i.COOKIE=1]="COOKIE",i[i.TRACKING=2]="TRACKING",i})(Ev||{});function rme(i){switch(i){case Ev.NONE:return"none";case Ev.COOKIE:return"cookie";case Ev.TRACKING:return"tracking";default:return i}}function nme(i){return i.mode==null||i.mode==="auto"||i.mode===Vu.AUTO}function YL(i){return i.siteId!=null&&i.trackerUrl!=null}function ome(i){return i.scriptUrl!=null&&!YL(i)}function ame(i){return YL(i)||KL(i)}function KL(i){return Array.isArray(i.trackers)}function sme(i){return KL(i)?i.trackers:[{trackerUrl:i.trackerUrl,siteId:i.siteId,trackerUrlSuffix:i.trackerUrlSuffix}]}function $L(){window._paq=window._paq||[]}function HL(i){let t=[...i];for(;t.length>0&&t[t.length-1]===void 0;)t.pop();return t}function lme(){let i=ie(us).disabled,t=Hi(ie(Od));return i||!t?new cme:new A2}var A2=(()=>{class i{constructor(){this.ngZone=ie(Si),this.config=ie(us),$L()}get(e){return this.pushFn(r=>r[e]())}pushFn(e){return new Promise(r=>{this.push([function(){r(e(this))}])})}push(e){this.config.runOutsideAngularZone?this.ngZone.runOutsideAngular(()=>{window._paq.push(HL(e))}):window._paq.push(HL(e))}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac})}}return i})(),cme=(()=>{class i{get(e){return Et(this,null,function*(){return Promise.reject("MatomoTracker is disabled")})}push(e){}pushFn(e){return Et(this,null,function*(){return Promise.reject("MatomoTracker is disabled")})}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac})}}return i})();var dme="Matomo trackers have already been initialized",pme="Matomo has already been initialized";function ume(i){return typeof i=="object"&&Object.keys(i).length===1&&i.productCategory!=null}function mme(i){return typeof i=="object"&&"productSKU"in i}var zu=(()=>{class i{constructor(){this.delegate=ie(A2),this._pageViewTracked=new Ze,this.pageViewTracked=this._pageViewTracked.asObservable(),ie(Zu).onDestroy(()=>this._pageViewTracked.complete())}trackPageView(e){this.delegate.push(["trackPageView",e]),this._pageViewTracked.next()}trackEvent(e,r,n,o,a){this.delegate.push(["trackEvent",e,r,n,o,a])}trackSiteSearch(e,r,n,o){this.delegate.push(["trackSiteSearch",e,r,n,o])}trackGoal(e,r,n){this.delegate.push(["trackGoal",e,r,n])}trackLink(e,r,n){this.delegate.push(["trackLink",e,r,n])}trackAllContentImpressions(){this.delegate.push(["trackAllContentImpressions"])}trackVisibleContentImpressions(e,r){this.delegate.push(["trackVisibleContentImpressions",e,r])}trackContentImpressionsWithinNode(e){this.delegate.push(["trackContentImpressionsWithinNode",e])}trackContentInteractionNode(e,r){this.delegate.push(["trackContentInteractionNode",e,r])}trackContentImpression(e,r,n){this.delegate.push(["trackContentImpression",e,r,n])}trackContentInteraction(e,r,n,o){this.delegate.push(["trackContentInteraction",e,r,n,o])}logAllContentBlocksOnPage(){this.delegate.push(["logAllContentBlocksOnPage"])}ping(){this.delegate.push(["ping"])}enableHeartBeatTimer(e){this.delegate.push(["enableHeartBeatTimer",e])}enableLinkTracking(e=!1){this.delegate.push(["enableLinkTracking",e])}disablePerformanceTracking(){this.delegate.push(["disablePerformanceTracking"])}enableCrossDomainLinking(){this.delegate.push(["enableCrossDomainLinking"])}setCrossDomainLinkingTimeout(e){this.delegate.push(["setCrossDomainLinkingTimeout",e])}getCrossDomainLinkingUrlParameter(){return this.delegate.get("getCrossDomainLinkingUrlParameter")}setIgnoreCampaignsForReferrers(e){this.delegate.push(["setIgnoreCampaignsForReferrers",e])}getIgnoreCampaignsForReferrers(){return this.delegate.get("getIgnoreCampaignsForReferrers")}setDocumentTitle(e){this.delegate.push(["setDocumentTitle",e])}setDomains(e){this.delegate.push(["setDomains",e])}setCustomUrl(e){this.delegate.push(["setCustomUrl",e])}setReferrerUrl(e){this.delegate.push(["setReferrerUrl",e])}setSiteId(e){this.delegate.push(["setSiteId",e])}setApiUrl(e){this.delegate.push(["setApiUrl",e])}setTrackerUrl(e){this.delegate.push(["setTrackerUrl",e])}addTracker(e,r){this.delegate.push(["addTracker",e,r])}getMatomoUrl(){return this.delegate.get("getMatomoUrl")}getPiwikUrl(){return this.delegate.get("getPiwikUrl")}getCurrentUrl(){return this.delegate.get("getCurrentUrl")}setDownloadClasses(e){this.delegate.push(["setDownloadClasses",e])}setDownloadExtensions(e){this.delegate.push(["setDownloadExtensions",e])}addDownloadExtensions(e){this.delegate.push(["addDownloadExtensions",e])}removeDownloadExtensions(e){this.delegate.push(["removeDownloadExtensions",e])}setIgnoreClasses(e){this.delegate.push(["setIgnoreClasses",e])}setLinkClasses(e){this.delegate.push(["setLinkClasses",e])}setLinkTrackingTimer(e){this.delegate.push(["setLinkTrackingTimer",e])}getLinkTrackingTimer(){return this.delegate.get("getLinkTrackingTimer")}discardHashTag(e){this.delegate.push(["discardHashTag",e])}setGenerationTimeMs(e){this.delegate.push(["setGenerationTimeMs",e])}setPagePerformanceTiming(e,r,n,o,a,s){let l;typeof e=="object"&&e?(l=e.networkTimeInMs,r=e.serverTimeInMs,n=e.transferTimeInMs,o=e.domProcessingTimeInMs,a=e.domCompletionTimeInMs,s=e.onloadTimeInMs):l=e,this.delegate.push(["setPagePerformanceTiming",l,r,n,o,a,s])}getCustomPagePerformanceTiming(){return this.delegate.get("getCustomPagePerformanceTiming")}appendToTrackingUrl(e){this.delegate.push(["appendToTrackingUrl",e])}setDoNotTrack(e){this.delegate.push(["setDoNotTrack",e])}killFrame(){this.delegate.push(["killFrame"])}redirectFile(e){this.delegate.push(["redirectFile",e])}setHeartBeatTimer(e,r){this.delegate.push(["setHeartBeatTimer",e,r])}getVisitorId(){return this.delegate.get("getVisitorId")}setVisitorId(e){this.delegate.push(["setVisitorId",e])}getVisitorInfo(){return this.delegate.get("getVisitorInfo")}getAttributionInfo(){return this.delegate.get("getAttributionInfo")}getAttributionCampaignName(){return this.delegate.get("getAttributionCampaignName")}getAttributionCampaignKeyword(){return this.delegate.get("getAttributionCampaignKeyword")}getAttributionReferrerTimestamp(){return this.delegate.get("getAttributionReferrerTimestamp")}getAttributionReferrerUrl(){return this.delegate.get("getAttributionReferrerUrl")}getUserId(){return this.delegate.get("getUserId")}setUserId(e){this.delegate.push(["setUserId",e])}resetUserId(){this.delegate.push(["resetUserId"])}setPageViewId(e){this.delegate.push(["setPageViewId",e])}getPageViewId(){return this.delegate.get("getPageViewId")}setCustomData(...e){this.delegate.push(["setCustomData",...e])}getCustomData(){return this.delegate.get("getCustomData")}setCustomVariable(e,r,n,o){this.delegate.push(["setCustomVariable",e,r,n,o])}deleteCustomVariable(e,r){this.delegate.push(["deleteCustomVariable",e,r])}deleteCustomVariables(e){this.delegate.push(["deleteCustomVariables",e])}getCustomVariable(e,r){return this.delegate.pushFn(n=>n.getCustomVariable(e,r))}storeCustomVariablesInCookie(){this.delegate.push(["storeCustomVariablesInCookie"])}setCustomDimension(e,r){this.delegate.push(["setCustomDimension",e,r])}deleteCustomDimension(e){this.delegate.push(["deleteCustomDimension",e])}getCustomDimension(e){return this.delegate.pushFn(r=>r.getCustomDimension(e))}setCampaignNameKey(e){this.delegate.push(["setCampaignNameKey",e])}setCampaignKeywordKey(e){this.delegate.push(["setCampaignKeywordKey",e])}setConversionAttributionFirstReferrer(e){this.delegate.push(["setConversionAttributionFirstReferrer",e])}setEcommerceView(e,r,n,o){ume(e)?this.delegate.push(["setEcommerceView",!1,!1,e.productCategory]):mme(e)?this.delegate.push(["setEcommerceView",e.productSKU,e.productName,e.productCategory,e.price]):this.delegate.push(["setEcommerceView",e,r,n,o])}addEcommerceItem(e,r,n,o,a){typeof e=="string"?this.delegate.push(["addEcommerceItem",e,r,n,o,a]):this.delegate.push(["addEcommerceItem",e.productSKU,e.productName,e.productCategory,e.price,e.quantity])}removeEcommerceItem(e){this.delegate.push(["removeEcommerceItem",e])}clearEcommerceCart(){this.delegate.push(["clearEcommerceCart"])}getEcommerceItems(){return this.delegate.get("getEcommerceItems")}trackEcommerceCartUpdate(e){this.delegate.push(["trackEcommerceCartUpdate",e])}trackEcommerceOrder(e,r,n,o,a,s){this.delegate.push(["trackEcommerceOrder",e,r,n,o,a,s])}requireConsent(){this.delegate.push(["requireConsent"])}setConsentGiven(){this.delegate.push(["setConsentGiven"])}rememberConsentGiven(e){this.delegate.push(["rememberConsentGiven",e])}forgetConsentGiven(){this.delegate.push(["forgetConsentGiven"])}hasRememberedConsent(){return this.delegate.get("hasRememberedConsent")}getRememberedConsent(){return this.delegate.get("getRememberedConsent")}isConsentRequired(){return this.delegate.get("isConsentRequired")}requireCookieConsent(){this.delegate.push(["requireCookieConsent"])}setCookieConsentGiven(){this.delegate.push(["setCookieConsentGiven"])}rememberCookieConsentGiven(e){this.delegate.push(["rememberCookieConsentGiven",e])}forgetCookieConsentGiven(){this.delegate.push(["forgetCookieConsentGiven"])}getRememberedCookieConsent(){return this.delegate.get("getRememberedCookieConsent")}areCookiesEnabled(){return this.delegate.get("areCookiesEnabled")}optUserOut(){this.delegate.push(["optUserOut"])}forgetUserOptOut(){this.delegate.push(["forgetUserOptOut"])}isUserOptedOut(){return this.delegate.get("isUserOptedOut")}disableCookies(){this.delegate.push(["disableCookies"])}deleteCookies(){this.delegate.push(["deleteCookies"])}hasCookies(){return this.delegate.get("hasCookies")}setCookieNamePrefix(e){this.delegate.push(["setCookieNamePrefix",e])}setCookieDomain(e){this.delegate.push(["setCookieDomain",e])}setCookiePath(e){this.delegate.push(["setCookiePath",e])}setSecureCookie(e){this.delegate.push(["setSecureCookie",e])}setCookieSameSite(e){this.delegate.push(["setCookieSameSite",e])}setVisitorCookieTimeout(e){this.delegate.push(["setVisitorCookieTimeout",e])}setReferralCookieTimeout(e){this.delegate.push(["setReferralCookieTimeout",e])}setSessionCookieTimeout(e){this.delegate.push(["setSessionCookieTimeout",e])}setReferrerUrlMaxLength(e){this.delegate.push(["setReferrerUrlMaxLength",e])}addListener(e){this.delegate.push(["addListener",e])}setRequestMethod(e){this.delegate.push(["setRequestMethod",e])}setCustomRequestProcessing(e){this.delegate.push(["setCustomRequestProcessing",e])}setRequestContentType(e){this.delegate.push(["setRequestContentType",e])}disableQueueRequest(){this.delegate.push(["disableQueueRequest"])}setRequestQueueInterval(e){this.delegate.push(["setRequestQueueInterval",e])}disableAlwaysUseSendBeacon(){this.delegate.push(["disableAlwaysUseSendBeacon"])}alwaysUseSendBeacon(){this.delegate.push(["alwaysUseSendBeacon"])}enableJSErrorTracking(){this.delegate.push(["enableJSErrorTracking"])}enableFileTracking(){this.delegate.push(["enableFileTracking"])}setExcludedReferrers(...e){let r=e.flat();this.delegate.push(["setExcludedReferrers",r])}getExcludedReferrers(){return this.delegate.get("getExcludedReferrers")}disableBrowserFeatureDetection(){this.delegate.push(["disableBrowserFeatureDetection"])}enableBrowserFeatureDetection(){this.delegate.push(["enableBrowserFeatureDetection"])}disableCampaignParameters(){this.delegate.push(["disableCampaignParameters"])}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac})}}return i})();function WL(i){return`${i}`}function GL(i,t){return t==null?qL(i)+fme:i+t}var fme="matomo.php",hme="matomo.js";function gme(){let i=ie(us).disabled,t=Hi(ie(Od));return i||!t?new R2:new L2}var R2=class{initialize(){}init(){}initializeTracker(t){}},L2=(()=>{class i{constructor(){this.config=ie(us),this.deferredConfig=ie(F2),this.tracker=ie(zu),this.scriptInjector=ie(jL),this.initialize=kv(()=>{this.runPreInitTasks(),nme(this.config)?this.injectMatomoScript(this.config):this.deferredConfig.markReady(this.config)},pme),this.injectMatomoScript=kv(e=>{if(ame(e)){let{scriptUrl:r}=e,[n,...o]=sme(e),a=r??qL(n.trackerUrl)+hme;this.registerMainTracker(n),this.registerAdditionalTrackers(o),this.scriptInjector.injectDOMScript(a)}else if(ome(e)){let{scriptUrl:r,trackers:n}=lt({trackers:[]},e);this.registerAdditionalTrackers(n),this.scriptInjector.injectDOMScript(r)}this.deferredConfig.markReady(e)},dme),$L()}init(){this.initialize()}initializeTracker(e){this.injectMatomoScript(e)}
1833registerMainTracker(e){let r=GL(e.trackerUrl,e.trackerUrlSuffix),n=WL(e.siteId);this.tracker.setTrackerUrl(r),this.tracker.setSiteId(n)}registerAdditionalTrackers(e){e.forEach(({trackerUrl:r,siteId:n,trackerUrlSuffix:o})=>{let a=GL(r,o),s=WL(n);this.tracker.addTracker(a,s)})}runPreInitTasks(){this.config.acceptDoNotTrack&&this.tracker.setDoNotTrack(!0),this.config.requireConsent==="cookie"?this.tracker.requireCookieConsent():this.config.requireConsent==="tracking"&&this.tracker.requireConsent(),this.config.enableJSErrorTracking&&this.tracker.enableJSErrorTracking(),this.config.disableCampaignParameters&&this.tracker.disableCampaignParameters(),this.config.trackAppInitialLoad&&this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking(this.config.enableLinkTracking==="enable-pseudo")}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac})}}return i})(),ZL=Symbol("MATOMO_PROVIDERS"),QL=Symbol("MATOMO_CHECKS");function B2(i,t,e){return{kind:i,[ZL]:t,[QL]:e}}function XL(i,...t){let e=[zu,jL,{provide:A2,useFactory:lme},{provide:L2,useFactory:gme},{provide:us,useFactory:Jue},{provide:F2,useFactory:eme},{provide:tme,useFactory:()=>ie(F2).configuration},{provide:ju,multi:!0,useValue(){ie(L2).initialize()}}],r=[];typeof i=="function"?e.push({provide:P2,useFactory:i}):e.push({provide:P2,useValue:i});for(let n of t)e.push(...n[ZL]),r.push(n.kind);for(let n of t)n[QL]?.(r);return Ku(e)}var tO=new St("MATOMO_ROUTER_CONFIGURATION"),vme={prependBaseHref:!0,trackPageTitle:!0,delay:0,exclude:[],navigationEndComparator:"fullUrl"},W2=new St("INTERNAL_ROUTER_CONFIGURATION");function _me(){let{disabled:i,enableLinkTracking:t}=ie(us),e=ie(tO,{optional:!0})||{};return pi(lt(lt({},vme),e),{enableLinkTracking:t,disabled:i})}var V2=new St("MATOMO_ROUTER_INTERCEPTORS");function bme(i){return typeof i.prototype?.beforePageTrack!="function"}var z2=class{constructor(t,e){this.fn=t,this.injector=e}beforePageTrack(t){return $u(this.injector,()=>this.fn(t))}};function yme(i){return bme(i)?{provide:V2,multi:!0,useFactory:()=>new z2(i,ie(Yu))}:{provide:V2,multi:!0,useClass:i}}function xme(i,t){return i.children.find(e=>e.outlet===t)}function iO(i,t){let e=xme(i,t);return e?iO(e,t):i}var U2=class{constructor(){this.router=ie(bt)}beforePageTrack(t){let e=this.getRoute(t),r=this.extractRouteData(e);return this.processRouteData(r)}getRoute(t){return iO(this.router.routerState.snapshot.root,RT)}},Cme="matomo",rO=new St("MATOMO_ROUTE_DATA_KEY",{providedIn:"root",factory:()=>Cme}),Sme=(()=>{class i extends U2{constructor(){super(...arguments),this.tracker=ie(zu),this.dataKey=ie(rO)}extractRouteData(e){return e.data[this.dataKey]}processRouteData(e){e&&(e.title&&this.tracker.setDocumentTitle(e.title),e.ecommerce&&this.tracker.setEcommerceView(e.ecommerce))}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=si(i)))(n||i)}})()}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac})}}return i})(),wme="MatomoRouter has already been initialized";function Tme(){return new Error('An invalid MATOMO_ROUTER_INTERCEPTORS provider was configured. Did you forget to set "multi: true" ?')}var nO=new St("MATOMO_PAGE_TITLE_PROVIDER"),Eme=(()=>{class i{constructor(){this.title=ie(tm)}getCurrentPageTitle(e){return hn(this.title.getTitle())}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac})}}return i})(),oO=new St("MATOMO_PAGE_URL_PROVIDER");function kme(){return new H2(ie(W2),ie(ww,{optional:!0}),ie(Sw))}function Ime(i){return i.endsWith("/")?i.slice(0,-1):i}var H2=class{constructor(t,e,r){this.config=t,this.baseHref=e,this.locationStrategy=r}getCurrentPageUrl(t){let e=this.config.prependBaseHref?this.getBaseHrefWithoutTrailingSlash()+t.urlAfterRedirects:t.urlAfterRedirects;return hn(e)}getBaseHrefWithoutTrailingSlash(){return Ime(this.baseHref??this.locationStrategy.getBaseHref()??"")}};function Dme(i){return i instanceof ym}function JL(i){return typeof i=="string"?new RegExp(i):i}function Mme(i){return i?Array.isArray(i)?i.map(JL):[JL(i)]:[]}function Pme(i){let t=Mme(i);return e=>!t.some(r=>e.urlAfterRedirects.match(r))}function Fme(i){return i.split("?")[0]}function eO(i){return(t,e)=>i(t)===i(e)}function Rme(i){switch(i.navigationEndComparator){case"fullUrl":return eO(t=>t.urlAfterRedirects);case"ignoreQueryParams":return eO(t=>Fme(t.urlAfterRedirects));default:return i.navigationEndComparator}}var N2=(()=>{class i{constructor(){this.router=ie(bt),this.platformId=ie(Od),this.config=ie(W2),this.pageTitleProvider=ie(nO),this.pageUrlProvider=ie(oO),this.tracker=ie(zu),this.interceptors=ie(V2,{optional:!0}),this.initialize=kv(()=>{if(this.config.disabled||!Hi(this.platformId))return;let r=this.config.delay===-1?K2:Nv(this.config.delay),n=Rme(this.config);this.router.events.pipe(hs(Dme),hs(Pme(this.config.exclude)),no(n),r,oo(o=>this.presetPageTitleAndUrl(o).pipe(Vi(({pageUrl:a})=>({pageUrl:a,event:o})))),tw(({event:o,pageUrl:a})=>this.callInterceptors(o).pipe(vs(()=>this.trackPageView(a))))).subscribe()},wme);let e=this.interceptors;if(e&&!Array.isArray(e))throw Tme()}init(){this.initialize()}callInterceptors(e){return this.interceptors?X2(this.interceptors.map(r=>{let n=r.beforePageTrack(e);return(n==null?hn(void 0):Fd(n)).pipe(qu(1),Bv(void 0))})).pipe(iw(void 0),Bv(void 0)):hn(void 0)}presetPageTitleAndUrl(e){let r=this.config.trackPageTitle?this.pageTitleProvider.getCurrentPageTitle(e).pi
1833pe(vs(o=>this.tracker.setDocumentTitle(o))):hn(void 0),n=Fd(this.pageUrlProvider.getCurrentPageUrl(e)).pipe(vs(o=>this.tracker.setCustomUrl(o)));return Hu([r,n]).pipe(Vi(([o,a])=>({pageUrl:a})))}trackPageView(e){this.tracker.trackPageView(),this.config.enableLinkTracking&&this.tracker.enableLinkTracking(this.config.enableLinkTracking==="enable-pseudo"),this.tracker.setReferrerUrl(e)}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275prov=Ye({token:i,factory:i.\u0275fac})}}return i})();function aO(i){let t=Lme(i);return B2("Router",t)}function Lme(i){return[N2,{provide:O2,useValue:!0},{provide:tO,useValue:i},{provide:W2,useFactory:_me},{provide:oO,useFactory:kme},{provide:nO,useClass:Eme},N2,{provide:ju,multi:!0,useValue(){ie(N2).initialize()}}]}function Ome(i){return t=>{if(!t.includes("Router"))throw new Error(`Matomo feature ${i} cannot be used without router feature! Did you forget to call withRouter()?`)}}function sO(i){let t=[yme(Sme)];return i&&t.push({provide:rO,useValue:i}),B2("BuiltInRouteDataInterceptor",t,Ome("withRouteData()"))}var Dv=class i{constructor(t){this.skillQueueService=t}id="ewb-tools";name="EVE Workbench Tools";icon="fa-duotone fa-solid fa-toolbox";prefixes=void 0;disablePreview=!0;minQueryLength=3;maxResults=10;tools=[{id:"market",title:"Market Browser",routerLink:["/market"]},{id:"tradetool",title:"Trade Tool",routerLink:["/tools/tradetool"]},{id:"refinery",title:"Refinery",routerLink:["/tools/refinery"]},{id:"appraisal",title:"Appraisal",routerLink:["/tools/appraisal"]},{id:"theory-crafter",title:"Theory Crafter (Alpha)",routerLink:["/tools/theory-crafter"]},{id:"add-fit",title:"Add Fit",routerLink:["/fit/import"],requiresAuth:!0},{id:"compose-fleet",title:"Compose Fleet",routerLink:["/fleet/compose"],requiresAuth:!0},{id:"compose-pilot-configuration",title:"Compose Pilot Configuration",routerLink:["/pilot-configuration/compose"],requiresAuth:!0},{id:"skill-queue",title:"Skill Queue",action:()=>this.skillQueueService.open(),requiresAuth:!0},{id:"devblog",title:"Our Dev Blog",externalUrl:"https://devblog.eveworkbench.com"},{id:"discord",title:"Join Our Discord Server",externalUrl:"https://discord.gg/dA3kHUv"}];search(t){let e=this.tools.filter(r=>r.title.toLowerCase().includes(t.toLowerCase())).slice(0,this.maxResults);return hn(e)}static \u0275fac=function(e){return new(e||i)(ti(Tm))};static \u0275prov=Ye({token:i,factory:i.\u0275fac})};var Mv=class i{constructor(t){this.fleetClient=t}id="fleets";name="Fleets";icon="fa-duotone fa-solid fa-users";prefixes=["fleet","fleets"];minQueryLength=2;search(t){let e=new Ql({searchQuery:t,skip:0,take:5});return this.fleetClient.postSearchFleets(e).pipe(Vi(r=>(r.results??[]).map(n=>({id:n.id,title:n.name??"Unknown fleet",subtitle:n.uploader?.name?`by ${n.uploader.name}`:void 0,routerLink:["/fleet",n.id],previewDetails:[...n.uploader?.name?[{label:"Author",value:n.uploader.name}]:[],...n.memberCount!=null?[{label:"Members",value:String(n.memberCount)}]:[],...n.fits?.length?[{label:"Fits",value:String(n.fits.length)}]:[]]}))))}static \u0275fac=function(e){return new(e||i)(ti(Wi))};static \u0275prov=Ye({token:i,factory:i.\u0275fac})};var Pv=class i{constructor(t){this.pilotConfigurationClient=t}id="pilot-configurations";name="Pilot Configurations";icon="fa-duotone fa-solid fa-user-astronaut";prefixes=["pc"];minQueryLength=2;maxResults=10;search(t){return this.pilotConfigurationClient.getAll(new Xl({search:t,take:this.maxResults,skip:0,onlyOwned:!1})).pipe(Vi(e=>(e.results??[]).map(r=>({id:r.id,title:r.name??"Unknown configuration",subtitle:r.uploaderName??void 0,routerLink:["/pilot-configuration",r.id],previewDetails:[...r.uploaderName?[{label:"Author",value:r.uploaderName}]:[],...r.skillCount!=null?[{label:"Skills",value:String(r.skillCount)}]:[],...r.implantCount!=null?[{label:"Implants",value:String(r.implantCount)}]:[]]}))))}static \u0275fac=function(e){return new(e||i)(ti(ha))};static \u0275prov=Ye({token:i,factory:i.\u0275fac})};function Ame(i,t){if(i&1&&(Y(0,"div",7)(1,"span")(2,"strong"),f(3,"Sell:"),B()(),Y(4,"span"),f(5),G(6,"numericFormatter"),B()()),i&2){let e=S(3);v(5),V("",ee(6,1,e.jitaAverageSell()," ",0)," ISK")}}function Bme(i,t){if(i&1&&(Y(0,"div",7)(1,"span")(2,"strong"),f(3,"Buy:"),B()(),Y(4,"span"),f(5),G(6,"numericFormatter"),B()()),i&2){let e=S(3);v(5),V("",ee(6,1,e.jitaAverageBuy()," ",0)," ISK")}}function Nme(i,t){if(i&1&&(Y(0,"div",6)(1,"em"),f(2,"Jita average price"),B()(),H(3,Ame,7,5,"div",7),H(4,Bme,7,5,"div",7)),i&2){let e=S(2);v(3),W(e.jitaAverageSell()>0?3:-1),v(),W(e.jitaAverageBuy()>0?4:-1)}}function Vme(i,t){if(i&1&&(Y(0,"div",7)(1,"span")(2,"strong"),f(3,"Sell:"),B()(),Y(4,"span"),f(5),G(6,"numericFormatter"),B()()),i&2){let e=S(3);v(5),V("",ee(6,1,e.amarrAverageSell()," ",0)," ISK")}}function zme(i,t){if(i&1&&(Y(0,"div",7)(1,"span")(2,"strong"),f(3,"Buy:"),B()(),Y(4,"span"),f(5),G(6,"numericFormatter"),B()()),i&2){let e=S(3);v(5),V("",ee(6,1,e.amarrAverageBuy()," ",0)," ISK")}}function Ume(i,t){if(i&1&&(Y(0,"div",6)(1,"em"),f(2,"Amarr average price"),B()(),H(3,Vme,7,5,"div",7),H(4,zme,7,5,"div",7)),i&2){let e=S(2);v(3),W(e.amarrAverageSell()>0?3:-1),v(),W(e.amarrAverageBuy()>0?4:-1)}}function Hme(i,t){if(i&1&&(Y(0,"div",5)(1,"div")(2,"strong"),f(3,"Market Information"),B()(),H(4,Nme,5,2),H(5,Ume,5,2),B()),i&2){let e=S();v(4),W(e.jitaAverageSell()>0||e.jitaAverageBuy()>0?4:-1),v(),W(e.amarrAverageSell()>0||e.amarrAverageBuy()>0?5:-1)}}function Wme(i,t){if(i&1&&(Y(0,"div",5)(1,"strong"),f(2,"Description:"),B(),zi(3,"br")(4,"span",8),B()),i&2){let e=S();v(4),lo("innerHTML",e.description(),ke)}}var Uu=class i{constructor(t,e){this.typeService=t;this.grpcService=e}id=jt.required();name=jt.required();description=jt.required();EveImageHelper=vi;priceResource=im({params:()=>this.id(),stream:({params:t})=>this.grpcService.getAveragePrices([t],[60003760,60008494])});prices=li(()=>this.priceResource.value()?.getPricesList()??[]);hasMarketData=li(()=>this.prices().length>0);jitaAverageSell=li(()=>this.prices().find(t=>t.getLocationid()===60003760&&t.getOrdertype()==="sell")?.getAverageprice()??0);jitaAverageBuy=li(()=>this.prices().find(t=>t.getLocationid()===60003760&&t.getOrdertype()==="buy")?.getAverageprice()??0);amarrAverageSell=li(()=>this.prices().find(t=>t.getLocationid()===60008494&&t.getOrdertype()==="sell")?.getAverageprice()??0);amarrAverageBuy=li(()=>this.prices().find(t=>t.getLocationid()===60008494&&t.getOrdertype()==="buy")?.getAverageprice()??0);static \u0275fac=function(e){return new(e||i)(N(xn),N(Nr))};static \u0275cmp=K({type:i,selectors:[["app-item-preview"]],inputs:{id:[1,"id"],name:[1,"name"],description:[1,"description"]},decls:9,vars:6,consts:[[1,"d-plex","justify-content-start"],[1,"ip-type-image"],[1,"img-64",3,"src","alt"],[1,"ms-2"],[1,"fa-duotone","fa-info-circle","ms-2","cursor-pointer",3,"click"],[1,"mt-3","small"],[1,"mt-2"],[1,"d-flex","justify-content-between","align-items-center"],[1,"ip-description-text",3,"innerHTML"]],template:function(e,r){e&1&&(Y(0,"div",0)(1,"span",1),zi(2,"img",2),B(),Y(3,"span",3)(4,"strong"),f(5),B(),Y(6,"i",4),bw("click",function(){return r.typeService.showTypeModal(r.id())}),B()()(),H(7,Hme,6,2,"div",5),H(8,Wme,5,1,"div",5)),e&2&&(v(2),lo("alt",De(r.name()))("src",r.EveImageHelper.getTypeImageUrl(r.id(),128,r.name()),re),v(3),$(r.name()),v(2),W(r.hasMarketData()?7:-1),v(),W(r.description().length>0?8:-1))},dependencies:[Wt],styles:[".ip-description-text[_ngcontent-%COMP%]{white-space:pre-line}"]})};var Fv=class i{constructor(t){this.grpcService=t}id="types";name="Types";icon="fa-duotone fa-solid fa-box";prefixes=["type","types"];minQueryLength=3;maxResults=25;previewWidth=400;recentPreviewComponent=Uu;search(t){return this.grpcService.typeSearch(t,0,this.maxResults).pipe(Vi(e=>e.getResultsList().map(r=>({id:String(r.getTypeid()),title:r.getName()||"Unknown Type",subtitle:"EVE Type",imageUrl:vi.getTypeImageUrl(r.getTypeid(),128,r.getName()),routerLink:[`/market/sell/${r.getTypeid()}
1833`],previewComponent:{component:Uu,inputs:{id:r.getTypeid(),name:r.getName(),description:r.getDescription()}}}))))}static \u0275fac=function(e){return new(e||i)(ti(Nr))};static \u0275prov=Ye({token:i,factory:i.\u0275fac})};function lO(i){return[{id:"home",label:"Home",icon:"fa-duotone fa-solid fa-home",routerLink:["/"]},{id:"fits",label:"Fits",icon:"fa-duotone fa-solid fa-crosshairs",routerLink:["/fits"]},{id:"fleets",label:"Fleets",icon:"fa-duotone fa-solid fa-users",routerLink:["/fleets"]},{id:"market",label:"Market",icon:"fa-duotone fa-solid fa-chart-line",routerLink:["/market"]},{id:"skill-queue",label:"Skill Queue",icon:"fa-duotone fa-solid fa-clock",requiresAuth:!0,action:()=>i.open()},{id:"theory-crafter",label:"Theory<br />Crafter",icon:"fa-duotone fa-solid fa-flask",routerLink:["/tools/theory-crafter"]},{id:"trade-tool",label:"Trade Tool",icon:"fa-duotone fa-solid fa-route",routerLink:["/tools/trade-tool"]},{id:"refinery",label:"Refinery",icon:"fa-duotone fa-solid fa-industry",routerLink:["/tools/refinery"]},{id:"appraisal",label:"Appraisal",icon:"fa-duotone fa-solid fa-scale-balanced",routerLink:["/tools/appraisal"]},{id:"pilot-configs",label:"Pilot Configs",icon:"fa-duotone fa-solid fa-id-card",routerLink:["/pilot-configuration/browse"]}]}var Rv=class i{constructor(t){this.http=t}uploadImage(t){return Et(this,null,function*(){let e=new FormData;return e.append("file",t),(yield gn(this.http.post(`${yn.apiBaseUrl}/Media/upload-image`,e))).url})}static \u0275fac=function(e){return new(e||i)(ti(Kl))};static \u0275prov=Ye({token:i,factory:i.\u0275fac,providedIn:"root"})};Lr([ZS,v2,M2,qS,D2,x2]);function Gme(i){return()=>i.preloadMetaData()}var cO={providers:[{provide:gw,useFactory:Gme,deps:[Ea],multi:!0},Cw({eventCoalescing:!0}),BT(Uk,NT()),Mw(Fw(),Pw([Hk])),wE(),dE(),CT({theme:{preset:TE,options:{darkModeSelection:"system",darkModeSelector:".ewb-dark-mode",cssLayer:{name:"primeng",order:"bootstrap-reboot, primeng"}}},ripple:!0}),{provide:Ia},{provide:Yl},Sk({echarts:BS}),{provide:$b,useValue:yn.adSenseClientId},{provide:rm,useValue:yn.apiBaseUrl},{provide:sE,useValue:yn.title},{provide:lE,useFactory:lO,deps:[Tm]},XL({disabled:yn.matomoScriptUrl===void 0,scriptUrl:yn.matomoScriptUrl?yn.matomoScriptUrl:""},aO(),sO()),{provide:OT,useClass:Om},QT,{provide:uE,useFactory:i=>t=>i.uploadImage(t),deps:[Rv]},{provide:bs,useClass:Dv,multi:!0},{provide:bs,useClass:Rm,multi:!0},{provide:bs,useClass:Mv,multi:!0},{provide:bs,useClass:Fv,multi:!0},{provide:bs,useClass:Lm,multi:!0},{provide:bs,useClass:Pv,multi:!0}]};Dw(Em,cO).catch(i=>console.error(i));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.